MCPcopy Index your code
hub / github.com/anomalyco/opencode / read

Function read

packages/opencode/test/plugin/install-concurrency.test.ts:50–52  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

48}
49
50async function read(file: string) {
51 return Filesystem.readJson<{ plugin?: unknown[] }>(file)
52}
53
54function mods(prefix: string, n: number) {
55 return Array.from({ length: n }, (_, i) => `${prefix}-${i}@1.0.0`)

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected