MCPcopy
hub / github.com/anomalyco/opencode / checkUpgrade

Function checkUpgrade

packages/opencode/src/cli/tui/worker.ts:59–62  ·  view source on GitHub ↗
(input: { directory: string })

Source from the content-addressed store, hash-verified

57 return { url: server.url.toString() }
58 },
59 async checkUpgrade(input: { directory: string }) {
60 await InstanceRuntime.load({ directory: input.directory })
61 await upgrade().catch(() => {})
62 },
63 async reload() {
64 await AppRuntime.runPromise(
65 Effect.gen(function* () {

Callers

nothing calls this directly

Calls 1

upgradeFunction · 0.90

Tested by

no test coverage detected