MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / readFile

Method readFile

src/core/tools/ApplyPatchTool.ts:89–92  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

87
88 // Process each hunk
89 const readFile = async (filePath: string): Promise<string> => {
90 const absolutePath = path.resolve(task.cwd, filePath)
91 return await fs.readFile(absolutePath, "utf8")
92 }
93
94 let changes: ApplyPatchFileChange[]
95 try {

Callers 15

loadHistoryFunction · 0.45
loadTokenFunction · 0.45
loadCredentialsFunction · 0.45
loadSettingsFunction · 0.45
settings.test.tsFile · 0.45
apply-diff.test.tsFile · 0.45
callToolFunction · 0.45

Calls

no outgoing calls

Tested by 2

loadXAIFixturesFunction · 0.36
readFileContentFunction · 0.36