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

Function readText

packages/opencode/test/tool/apply_patch.test.ts:75–75  ·  view source on GitHub ↗
(filepath: string)

Source from the content-addressed store, hash-verified

73}
74
75const readText = (filepath: string) => Effect.promise(() => fs.readFile(filepath, "utf-8"))
76const writeText = (filepath: string, content: string) => Effect.promise(() => fs.writeFile(filepath, content, "utf-8"))
77const makeDir = (dir: string) => Effect.promise(() => fs.mkdir(dir, { recursive: true }))
78

Callers 2

expectReadFailureFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected