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

Function handler

packages/opencode/src/cli/cmd/debug/scrap.ts:8–15  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6 describe: "list all known projects",
7 builder: (yargs) => yargs,
8 async handler() {
9 const { Project } = await import("@/project/project")
10 const { AppNodeBuilder } = await import("@opencode-ai/core/effect/app-node-builder")
11 const { makeRuntime } = await import("@opencode-ai/core/effect/runtime")
12 const runtime = makeRuntime(Project.Service, AppNodeBuilder.build(Project.node))
13 const list = await runtime.runPromise((project) => project.list())
14 process.stdout.write(JSON.stringify(list, null, 2) + EOL)
15 },
16})

Callers

nothing calls this directly

Calls 3

writeMethod · 0.80
listMethod · 0.65
makeRuntimeFunction · 0.50

Tested by

no test coverage detected