A way to ask OpenCode whether a newer version exists without upgrading, such as opencode upgrade --check, with JSON for tools. The pieces exist inside already; offered to implement it.
github.com/anomalyco/opencode/issues/51838 (opens in a new tab)