@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 CHANGED
@@ -42,6 +42,7 @@ async function main() {
42
42
  type: "modify",
43
43
  target_text: "State of New York",
44
44
  new_text: "State of Delaware",
45
+ match_mode: "all",
45
46
  comment: "Standardizing governing law."
46
47
  }
47
48
  ]);
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
- " Please provide more surrounding context in your target_text to uniquely identify the location."
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
  }