pi-hashline-edit-pro 0.8.0 → 0.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-hashline-edit-pro",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Strict hashline read/replace tool for pi-coding-agent with hash-anchored edits (3-char, 18-bit, perfect hashing)",
5
5
  "main": "index.ts",
6
6
  "repository": {
@@ -76,16 +76,16 @@ export function formatMismatchError(
76
76
  const notFound = mismatches.filter((m) => m.kind === "not_found");
77
77
  const ambiguous = mismatches.filter((m) => m.kind === "ambiguous");
78
78
 
79
+ const refList = notFound.map((m) => `"${m.ref.hash}"`).join(", ");
79
80
  if (notFound.length > 0) {
80
- const refList = notFound.map((m) => `"${m.ref.hash}"`).join(", ");
81
81
  out.push(
82
- `[E_STALE_ANCHOR] ${notFound.length} stale anchor${notFound.length > 1 ? "s" : ""}: ${refList}. Call read() to get fresh anchors, then copy the 4-character HASH from each line into your next replace call.`
82
+ `[E_STALE_ANCHOR] ${notFound.length} stale anchor${notFound.length > 1 ? "s" : ""}: ${refList}. Call read() to get fresh anchors, then copy the 3-character HASH from each line into your next replace call.`
83
83
  );
84
84
  }
85
85
  if (ambiguous.length > 0) {
86
86
  if (out.length > 0) out.push("");
87
87
  out.push(
88
- `[E_AMBIGUOUS_ANCHOR] ${ambiguous.length} ambiguous anchor${ambiguous.length > 1 ? "s" : ""}. Call read() to get fresh anchors, then copy the 4-character HASH from each line into your next replace call.`
88
+ `[E_AMBIGUOUS_ANCHOR] ${ambiguous.length} ambiguous anchor${ambiguous.length > 1 ? "s" : ""}. Call read() to get fresh anchors, then copy the 3-character HASH from each line into your next replace call.`
89
89
  );
90
90
  for (const m of ambiguous) {
91
91
  const sample = (m.candidates ?? []).slice(0, 5);