@adeu/core 1.17.0 → 1.17.2

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/dist/index.d.cts CHANGED
@@ -186,6 +186,16 @@ declare class RedlineEngine {
186
186
  skipped_details: string[];
187
187
  constructor(doc: DocumentObject, author?: string);
188
188
  private _check_punctuation_warning;
189
+ /**
190
+ * Best-effort "did you mean" hint for a failed target. The common loop trap
191
+ * (observed in the field) is an anchored regex like `^\( x \)$` against a
192
+ * mid-document string: ^/$ bind to the whole full_text, so it never matches
193
+ * even though the literal `( x )` is present. We strip regex anchoring/escapes
194
+ * and probe full_text for a literal occurrence; if found, we tell the model
195
+ * the exact literal that WOULD match so it drops the anchors instead of
196
+ * escalating the regex further.
197
+ */
198
+ private _nearest_match_hint;
189
199
  private _build_edit_context_previews;
190
200
  private _scan_existing_ids;
191
201
  private _get_heading_path_and_page;
@@ -268,7 +278,7 @@ declare class RedlineEngine {
268
278
  private _anchor_reply_comment;
269
279
  private _clean_wrapping_comments;
270
280
  private _delete_comments_in_element;
271
- validate_edits(edits: any[]): string[];
281
+ validate_edits(edits: any[], index_offset?: number): string[];
272
282
  validate_review_actions(actions: any[]): string[];
273
283
  process_batch(changes: DocumentChange[], dry_run?: boolean): any;
274
284
  private _process_batch_internal;
package/dist/index.d.ts CHANGED
@@ -186,6 +186,16 @@ declare class RedlineEngine {
186
186
  skipped_details: string[];
187
187
  constructor(doc: DocumentObject, author?: string);
188
188
  private _check_punctuation_warning;
189
+ /**
190
+ * Best-effort "did you mean" hint for a failed target. The common loop trap
191
+ * (observed in the field) is an anchored regex like `^\( x \)$` against a
192
+ * mid-document string: ^/$ bind to the whole full_text, so it never matches
193
+ * even though the literal `( x )` is present. We strip regex anchoring/escapes
194
+ * and probe full_text for a literal occurrence; if found, we tell the model
195
+ * the exact literal that WOULD match so it drops the anchors instead of
196
+ * escalating the regex further.
197
+ */
198
+ private _nearest_match_hint;
189
199
  private _build_edit_context_previews;
190
200
  private _scan_existing_ids;
191
201
  private _get_heading_path_and_page;
@@ -268,7 +278,7 @@ declare class RedlineEngine {
268
278
  private _anchor_reply_comment;
269
279
  private _clean_wrapping_comments;
270
280
  private _delete_comments_in_element;
271
- validate_edits(edits: any[]): string[];
281
+ validate_edits(edits: any[], index_offset?: number): string[];
272
282
  validate_review_actions(actions: any[]): string[];
273
283
  process_batch(changes: DocumentChange[], dry_run?: boolean): any;
274
284
  private _process_batch_internal;