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 +1 -1
- package/src/hashline/resolve.ts +3 -3
package/package.json
CHANGED
package/src/hashline/resolve.ts
CHANGED
|
@@ -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
|
|
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
|
|
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);
|