MCPcopy Create free account
hub / github.com/cloudflare/computer / onWrite

Function onWrite

packages/computer/src/tools/ai.test.ts:198–200  ·  view source on GitHub ↗
(path, content, opts)

Source from the content-addressed store, hash-verified

196 content: "old",
197 mode: 0o100755,
198 onWrite(path, content, opts) {
199 writes.push({ path, content: decode(content), mode: opts?.mode });
200 },
201 }),
202 });
203

Callers

nothing calls this directly

Calls 2

decodeFunction · 0.70
pushMethod · 0.65

Tested by

no test coverage detected