@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/README.md
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -2834,8 +2834,15 @@ function format_ambiguity_error(edit_index, target_text, haystack, match_positio
|
|
|
2834
2834
|
if (remaining > 0) {
|
|
2835
2835
|
lines.push(` ... and ${remaining} more occurrence(s) not shown.`);
|
|
2836
2836
|
}
|
|
2837
|
+
lines.push(" To resolve, re-send this edit using ONE of these strategies:");
|
|
2837
2838
|
lines.push(
|
|
2838
|
-
|
|
2839
|
+
` 1. Set "match_mode": "all" to modify ALL ${total} occurrences (same target_text).`
|
|
2840
|
+
);
|
|
2841
|
+
lines.push(
|
|
2842
|
+
' 2. Set "match_mode": "first" to modify only the FIRST occurrence (same target_text).'
|
|
2843
|
+
);
|
|
2844
|
+
lines.push(
|
|
2845
|
+
' 3. Please provide more surrounding context in your target_text to uniquely identify a single location (keep the default "match_mode": "strict").'
|
|
2839
2846
|
);
|
|
2840
2847
|
return lines.join("\n");
|
|
2841
2848
|
}
|