MCPcopy Create free account
hub / github.com/anomalyco/opencode / expectOpencodeVersion

Function expectOpencodeVersion

packages/desktop/src/main/wsl/startup.ts:5–10  ·  view source on GitHub ↗
(installed: string | null, expected: string, distro = "Debian")

Source from the content-addressed store, hash-verified

3}
4
5export function expectOpencodeVersion(installed: string | null, expected: string, distro = "Debian") {
6 if (installed === expected) return
7 throw new Error(
8 `OpenCode update finished but ${distro} still reports ${installed ?? "no version"}; expected ${expected}`,
9 )
10}
11
12export const pendingRestartAfterWslInstall = (runtime: { available: boolean }) => !runtime.available
13

Callers 2

installOpencodeFunction · 0.90
servers.test.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected