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

Function ready

packages/app/src/utils/worktree.ts:45–53  ·  view source on GitHub ↗
(scope: ServerScope, directory: string)

Source from the content-addressed store, hash-verified

43 state.set(id, { status: "pending" })
44 },
45 ready(scope: ServerScope, directory: string) {
46 const id = key(scope, directory)
47 const next = { status: "ready" } as const
48 state.set(id, next)
49 const waiter = waiters.get(id)
50 if (!waiter) return
51 waiters.delete(id)
52 waiter.resolve(next)
53 },
54 failed(scope: ServerScope, directory: string, message: string) {
55 const id = key(scope, directory)
56 const next = { status: "failed", message } as const

Callers 3

LegacyLayoutFunction · 0.50
VirtualTimelineRowFunction · 0.50

Calls 4

keyFunction · 0.70
getMethod · 0.65
setMethod · 0.45
deleteMethod · 0.45

Tested by

no test coverage detected