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

Function createProbeFailureGate

packages/app/src/wsl/settings-model.ts:321–334  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

319}
320
321export function createProbeFailureGate() {
322 let failed: string | undefined
323 return {
324 accepts(key: string) {
325 return key !== failed
326 },
327 settle(key: string, error?: unknown) {
328 if (error) failed = key
329 },
330 reset() {
331 failed = undefined
332 },
333 }
334}
335
336export async function runAddableProbePlan(input: {
337 plan: AddableProbePlan

Callers 2

useWslAddServerProbesFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected