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

Function wslOpencodeAction

packages/app/src/wsl/settings-model.ts:54–58  ·  view source on GitHub ↗
(check?: WslOpencodeCheck)

Source from the content-addressed store, hash-verified

52 runtime.kind === "failed" || runtime.kind === "stopped"
53
54export function wslOpencodeAction(check?: WslOpencodeCheck) {
55 if (!check) return
56 if (!check.resolvedPath) return "Install OpenCode"
57 if (check.matchesDesktop === false) return "Update OpenCode"
58}
59
60export function wslDistroReady(state: WslServersState | undefined, name: string) {
61 const installed = state?.installed.find((item) => item.name === name)

Callers 2

opencodeActionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected