MCPcopy Create free account
hub / github.com/cloudflare/agents / diff

Method diff

packages/shell/src/memory.ts:298–304  ·  view source on GitHub ↗
(pathA: string, pathB: string)

Source from the content-addressed store, hash-verified

296 }
297
298 async diff(pathA: string, pathB: string): Promise<string> {
299 const [before, after] = await Promise.all([
300 this.readFile(pathA),
301 this.readFile(pathB)
302 ]);
303 return diffContent(before, after, pathA, pathB);
304 }
305
306 async diffContent(path: string, newContent: string): Promise<string> {
307 return diffContent(await this.readFile(path), newContent, path, path);

Callers

nothing calls this directly

Calls 2

readFileMethod · 0.95
diffContentFunction · 0.90

Tested by

no test coverage detected