MCPcopy Create free account
hub / github.com/acoyfellow/cloudbox / writeFile

Function writeFile

tests/personal-computer.test.ts:14–14  ·  view source on GitHub ↗
(path: string, content: string)

Source from the content-addressed store, hash-verified

12 },
13 async readFile(path: string) { return { content: files.get(path) ?? "" }; },
14 async writeFile(path: string, content: string) { files.set(path, content); },
15 };
16 return {
17 namespace: { idFromName: (name: string) => name, get: () => sandbox } as any,

Callers 8

handleRunFunction · 0.85
handleLiveWriteFunction · 0.85
handleLiveRestoreFunction · 0.85
applyNaiveFixFunction · 0.85
runFunction · 0.85
cloudbox-live.mjsFile · 0.85
createBuggyRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected