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

Function write

packages/opencode/test/session/revert-compact.test.ts:89–89  ·  view source on GitHub ↗
(file: string, text: string)

Source from the content-addressed store, hash-verified

87
88const read = (file: string) => Effect.promise(() => fs.readFile(file, "utf-8"))
89const write = (file: string, text: string) => Effect.promise(() => fs.writeFile(file, text))
90
91const tokens = {
92 input: 0,

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected