Package uno.anahata.asi.toolkit.resources.text.lines
package uno.anahata.asi.toolkit.resources.text.lines
Provides the next-generation surgical precision engine for line-based
text mutations.
This package implements an atomic editing model where file changes are decomposed into discrete semantic operations: insertions, replacements, and deletions.
Key Architectural Concepts:
- Coordinate Stability: Uses a bottom-up application strategy (descending line numbers) to ensure that individual edits do not shift the coordinates of subsequent operations.
- Semantic Intent: Differentiates between "push-down" insertions and range replacements to provide the ASI with maximum precision during code modification.
- Validation and Safety: Includes a robust overlap detection system that prevents conflicting edits within the same turn.
- Deterministic Ordering: The
SurgicalEditComparatorensures a predictable tie-breaking sequence when multiple edits target the same line.
- Author:
- anahata
-
ClassesClassDescriptionBase class for all surgical line-based edits.A safety-first deletion operation that removes a contiguous range of lines.A pure insertion operation that places new content before a specified line.VISUAL TARGET REPLACEMENT: Replaces a range of lines with new content.The definitive comparator for surgical line edits, ensuring coordinate stability and predictable tie-breaking.The next-generation surgical line editor for AGI.

