feat(coding-agent): added multi-file edits in coding-agent with per-entry payloads

- Added multi-file edit payload support by requiring per-entry `edits` arrays across patch, hashline, replace, and chunk modes.
- Changed edit schemas and validators to move `path` (and `sel`->`path`) and op data into each edit entry.
- Changed edit execution flow to parse `file:selector` paths, run single-entry executors per file, and return grouped per-file results.
- Updated chunk diff rendering and test expectations to emit consistent anchor gutters with spaced pipes and `^` head-line markers.
This commit is contained in:
can1357
2026-04-13 06:59:01 +02:00
parent 11b7ba7846
commit 655a3bffea
21 changed files with 844 additions and 621 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ describe("computeHashlineDiff", () => {
await Bun.write(sourcePath, "first\n");
const result = await computeHashlineDiff(
{ path: sourcePath, edits: [{ loc: "append", content: "second" }] },
{ path: sourcePath, edits: [{ path: sourcePath, loc: "append", content: "second" }] },
tempDir,
);
expect("diff" in result).toBe(true);