pi-hashline-edit-pro 5.0.0 → 6.0.0
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 +60 -61
- package/index.ts +10 -10
- package/package.json +1 -1
- package/prompts/copy.md +2 -0
- package/prompts/insert-guidelines.md +1 -1
- package/prompts/insert-snippet.md +1 -1
- package/prompts/insert.md +2 -2
- package/prompts/move-guidelines.md +0 -1
- package/prompts/move.md +2 -0
- package/prompts/read-guidelines.md +0 -2
- package/prompts/replace-guidelines.md +4 -2
- package/prompts/replace-match-guidelines.md +1 -0
- package/prompts/replace-match-snippet.md +1 -0
- package/prompts/replace-match.md +7 -0
- package/prompts/replace-snippet.md +1 -1
- package/prompts/replace.md +4 -4
- package/prompts/transfer-guidelines.md +2 -0
- package/prompts/undo-last-change-guidelines.md +1 -1
- package/prompts/undo-last-change-snippet.md +1 -1
- package/prompts/undo-last-change.md +1 -1
- package/src/batch.ts +323 -66
- package/src/commit.ts +4 -2
- package/src/config-ui.ts +2 -2
- package/src/config.ts +6 -6
- package/src/constants.ts +5 -5
- package/src/copy-move.ts +305 -97
- package/src/edit-common.ts +85 -65
- package/src/edit-fidelity.ts +440 -35
- package/src/glob.ts +2 -20
- package/src/grep.ts +2 -9
- package/src/hash-store.ts +0 -3
- package/src/hashline/apply.ts +0 -9
- package/src/hashline/index.ts +1 -1
- package/src/hashline/parse.ts +1 -1
- package/src/hashline/resolve.ts +38 -16
- package/src/insert.ts +13 -15
- package/src/payload-contract.ts +60 -87
- package/src/prompts.ts +12 -1
- package/src/replace-diff.ts +1 -5
- package/src/replace-match.ts +259 -0
- package/src/replace-render.ts +1 -1
- package/src/replace-response.ts +14 -7
- package/src/replace.ts +16 -13
- package/src/utils.ts +16 -32
- package/src/write-hook.ts +3 -5
- package/prompts/replace-within-guidelines.md +0 -3
- package/prompts/replace-within-snippet.md +0 -1
- package/prompts/replace-within.md +0 -5
- package/src/replace-within.ts +0 -227
|
@@ -1 +1 @@
|
|
|
1
|
-
Undo the last replace,
|
|
1
|
+
Undo the last replace, replace_match, insert, copy, or move on a file, restoring the previous content, BOM, and line endings. Use it when an edit removed or changed the wrong lines. If the file changed since that edit, the undo is refused with `[E_UNDO_STALE]` and nothing is modified: the record is kept, so verify the current state with read and stop instead of forcing the undo. A file deleted since the edit is restored. If the output says truncated, use read to see the full file.
|