fix(coding-agent/edit): added atom range-repair and multi-section preflight checks

- Allowed bare `LidA..LidB` to recover a missing-range-delete typo and accepted `|` as a legacy range replacement separator while validating ranges and replacement text.
- Enabled indented hashline statements to parse as replacement edits and added a preflight pass that validates all atom sections before any file write occurs.
- Updated hash-mismatch messaging, prompt wording, and tests to reflect hash-only rebase candidates and the new range/section behaviors.
This commit is contained in:
can1357
2026-04-30 00:43:27 +02:00
parent 222e1cd348
commit 863560ffb6
6 changed files with 151 additions and 35 deletions
@@ -3,7 +3,7 @@
*/
import { formatDuration, formatPercent, truncate } from "@oh-my-pi/pi-utils";
import { EDIT_FAILURE_CATEGORIES, type BenchmarkResult, type TaskResult } from "./runner";
import { type BenchmarkResult, EDIT_FAILURE_CATEGORIES, type TaskResult } from "./runner";
function getStatusEmoji(successRate: number, runsPerTask: number): string {
const passing = Math.round(successRate * runsPerTask);