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

Function wslDistroReady

packages/app/src/wsl/settings-model.ts:60–66  ·  view source on GitHub ↗
(state: WslServersState | undefined, name: string)

Source from the content-addressed store, hash-verified

58}
59
60export function wslDistroReady(state: WslServersState | undefined, name: string) {
61 const installed = state?.installed.find((item) => item.name === name)
62 const probe = state?.distroProbes[name]
63 if (!probe || !installed) return false
64 if (installed.version === 1) return false
65 return probe.canExecute && probe.hasBash && probe.hasCurl
66}
67
68export function addServerViewModel(input: {
69 state: WslServersState | undefined

Callers 3

addServerPrimaryButtonFunction · 0.85
addableProbePlanFunction · 0.85

Calls 1

findMethod · 0.65

Tested by

no test coverage detected