refactor(hashline): switched header syntax to bracketed [path#tag]

- Replaced `¶path#hash` prefix with `[path#hash]` delimiters across parser, tokenizer, and grammar.
- Updated prompts, docs, and recovery paths to the new bracketed form.
This commit is contained in:
can1357
2026-06-06 15:36:01 +02:00
parent 0f568ccf87
commit 860eef3f2f
35 changed files with 206 additions and 180 deletions
+2 -2
View File
@@ -276,7 +276,7 @@ describe("computeHashlineDiff", () => {
// preview/diff path MUST emit the SAME rejection so a successful preview
// never precedes a failing apply.
const result = await computeHashlineDiff(
{ input: `${relativePath}\ninsert tail:\n+second` },
{ input: `[${relativePath}]\ninsert tail:\n+second` },
tempDir,
new InMemorySnapshotStore(),
);
@@ -287,7 +287,7 @@ describe("computeHashlineDiff", () => {
});
test("returns a handled error when the source path is a local URL", async () => {
const result = await computeHashlineDiff(
{ input: "local://PLAN.md\ninsert tail:\n+x" },
{ input: "[local://PLAN.md]\ninsert tail:\n+x" },
tempDir,
new InMemorySnapshotStore(),
);