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

Method planEdits

packages/shell/src/memory.ts:396–407  ·  view source on GitHub ↗
(
    instructions: StateEditInstruction[]
  )

Source from the content-addressed store, hash-verified

394 }
395
396 async planEdits(
397 instructions: StateEditInstruction[]
398 ): Promise<StateEditPlan> {
399 return planTextEdits(instructions, async (path) => {
400 try {
401 return await this.readFile(path);
402 } catch (error) {
403 if (isEnoent(error)) return null;
404 throw error;
405 }
406 });
407 }
408
409 async applyEditPlan(
410 plan: StateEditPlan,

Callers

nothing calls this directly

Calls 3

readFileMethod · 0.95
planTextEditsFunction · 0.90
isEnoentFunction · 0.85

Tested by

no test coverage detected