refactor: restructured hashline to use file-level hash validation with colon separators

- Replaced per-line hash anchors with file-level hash validation in hashline format, changing anchor syntax from LINE+HASH to bare LINE numbers.
- Simplified hashline line separator from pipe (|) to colon (:) and replaced replace operator (->) with colon, added delete operator (!) for explicit line deletion.
- Implemented file-read snapshot caching with multi-snapshot ring buffer per path and file-hash-based recovery to detect and recover from stale edits.
- Refactored hashline grammar, parser, and execution to support file-level hash binding, anchor-scoped validation, and structural bracket warnings for delete operations.
- Updated documentation and test fixtures to reflect new hashline syntax with file hashes, colon separators, and delete operator throughout.
This commit is contained in:
can1357
2026-05-26 12:34:01 +02:00
parent ebae144ad9
commit 30793c1655
57 changed files with 2520 additions and 1374 deletions
@@ -154,6 +154,6 @@ describe("read tool multi-range selector", () => {
expect(text).toContain("bridge four");
expect(text).toContain("bridge five");
expect(text).not.toContain("bridge three");
expect(text).not.toContain("disk");
expect(text).not.toContain("disk one");
});
});