MCPcopy
hub / github.com/anomalyco/opencode / run

Function run

packages/opencode/test/plugin/meta.test.ts:14–19  ·  view source on GitHub ↗
(input: { file: string; spec: string; target: string; id: string })

Source from the content-addressed store, hash-verified

12const worker = path.join(import.meta.dir, "../fixture/plugin-meta-worker.ts")
13
14function run(input: { file: string; spec: string; target: string; id: string }) {
15 return Process.run([process.execPath, worker, JSON.stringify(input)], {
16 cwd: root,
17 nothrow: true,
18 })
19}
20
21async function map<Value>(file: string): Promise<Record<string, Value>> {
22 return Filesystem.readJson<Record<string, Value>>(file)

Callers 2

meta.test.tsFile · 0.70
install.test.tsFile · 0.70

Calls 1

runMethod · 0.45

Tested by

no test coverage detected