@adeu/core 1.16.0 → 1.17.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/README.md +1 -0
- package/dist/index.cjs +8 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/markup.test.ts +41 -6
- package/src/markup.ts +12 -1
- package/src/search_write_engine.test.ts +41 -0
package/dist/index.js
CHANGED
|
@@ -2783,8 +2783,15 @@ function format_ambiguity_error(edit_index, target_text, haystack, match_positio
|
|
|
2783
2783
|
if (remaining > 0) {
|
|
2784
2784
|
lines.push(` ... and ${remaining} more occurrence(s) not shown.`);
|
|
2785
2785
|
}
|
|
2786
|
+
lines.push(" To resolve, re-send this edit using ONE of these strategies:");
|
|
2786
2787
|
lines.push(
|
|
2787
|
-
|
|
2788
|
+
` 1. Set "match_mode": "all" to modify ALL ${total} occurrences (same target_text).`
|
|
2789
|
+
);
|
|
2790
|
+
lines.push(
|
|
2791
|
+
' 2. Set "match_mode": "first" to modify only the FIRST occurrence (same target_text).'
|
|
2792
|
+
);
|
|
2793
|
+
lines.push(
|
|
2794
|
+
' 3. Please provide more surrounding context in your target_text to uniquely identify a single location (keep the default "match_mode": "strict").'
|
|
2788
2795
|
);
|
|
2789
2796
|
return lines.join("\n");
|
|
2790
2797
|
}
|