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

Function read

packages/core/test/repository-cache.test.ts:107–109  ·  view source on GitHub ↗
(file: string)

Source from the content-addressed store, hash-verified

105}
106
107function read(file: string) {
108 return Effect.promise(() => fs.readFile(file, "utf8")).pipe(Effect.map((content) => content.replace(/\r\n/g, "\n")))
109}
110
111function exists(file: string) {
112 return Effect.promise(() =>

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected