MCPcopy Index your code
hub / github.com/anomalyco/opencode / install

Function install

packages/desktop/src/main/updater-controller.ts:79–93  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

77 },
78 check,
79 async install() {
80 if (state.status !== "ready") throw new Error("Update is not ready to install")
81 const version = state.version
82 transition({ status: "installing", version })
83 await input
84 .stop()
85 .then(() => {
86 input.backend.quitAndInstall()
87 transition({ status: "ready", version })
88 })
89 .catch((error) => {
90 transition({ status: "ready", version })
91 throw error
92 })
93 },
94 }
95}
96

Callers

nothing calls this directly

Calls 2

transitionFunction · 0.70
stopMethod · 0.45

Tested by

no test coverage detected