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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user