(check?: WslOpencodeCheck)
| 52 | runtime.kind === "failed" || runtime.kind === "stopped" |
| 53 | |
| 54 | export 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 | |
| 60 | export function wslDistroReady(state: WslServersState | undefined, name: string) { |
| 61 | const installed = state?.installed.find((item) => item.name === name) |
no outgoing calls
no test coverage detected