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

Function read

packages/desktop/scripts/finalize-latest-yml.ts:73–77  ·  view source on GitHub ↗
(subdir: string, filename: string)

Source from the content-addressed store, hash-verified

71}
72
73async function read(subdir: string, filename: string): Promise<LatestYml | undefined> {
74 const file = Bun.file(path.join(dir, subdir, filename))
75 if (!(await file.exists())) return undefined
76 return parse(await file.text())
77}
78
79const output: Record<string, string> = {}
80

Callers 1

Calls 4

fileMethod · 0.80
parseFunction · 0.70
textMethod · 0.65
existsMethod · 0.45

Tested by

no test coverage detected