Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ ctx
Function
ctx
packages/opencode/test/fixture/plug-worker.ts:64–70 ·
view source on GitHub ↗
(msg: Msg)
Source
from the content-addressed store, hash-verified
62
}
63
64
function
ctx(msg: Msg): PlugCtx {
65
return
{
66
vcs: msg.vcs ??
"git"
,
67
worktree: msg.worktree ?? msg.dir,
68
directory: msg.directory ?? msg.dir,
69
}
70
}
71
72
async
function
main() {
73
const
msg = input()
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected