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

Function readFile

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

Source from the content-addressed store, hash-verified

11 return { success: true, stdout: command === "pwd" ? `${opts?.cwd}\n` : "", stderr: "", exitCode: 0 };
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 {

Callers 9

handleRunFunction · 0.85
handleLiveReadFunction · 0.85
handleLiveSnapshotFunction · 0.85
applyNaiveFixFunction · 0.85
runFunction · 0.85
readStateRunIdFunction · 0.85
syncFunction · 0.85
readStateFunction · 0.85
runSampleFunction · 0.85

Calls 1

getMethod · 0.80

Tested by

no test coverage detected