mirror of
https://github.com/mark3labs/kit.git
synced 2026-06-14 03:30:26 +00:00
8b1665a4ce
Implement multi-edit functionality matching Pi's approach: - Add 'edits' array parameter for multiple disjoint replacements - All edits matched against original content (non-incremental) - Overlap detection prevents conflicting edits - Duplicate detection ensures unique matches - Atomic operations: all succeed or none applied - Detailed error messages with edit indices (edits[0], etc.) - Fuzzy matching works with multi-edit mode - Backward compatible with single-edit mode (old_text/new_text) Changes: - internal/core/edit.go: Multi-edit logic, validation, overlap detection - internal/ui/messages.go: Add 'edits' to body keys - internal/ui/tool_renderers.go: Render multi-edit diffs - internal/core/edit_test.go: 9 comprehensive multi-edit tests