dsh-hashline-edit 0.3.11 → 0.4.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 +67 -28
- package/cordis.patch.yml +7 -5
- package/lib/client.js +7 -7
- package/lib/index.js +3549 -1035
- package/lib/types/dsh/guidance.d.ts +4 -5
- package/lib/types/dsh/hide.d.ts +6 -39
- package/lib/types/dsh/index.d.ts +17 -15
- package/lib/types/dsh/tools/edit.d.ts +3 -0
- package/lib/types/src/edit-tool.d.ts +41 -0
- package/lib/types/src/mutation-engine/engine.d.ts +31 -0
- package/lib/types/src/mutation-result.d.ts +35 -0
- package/lib/types/src/payload-contract.d.ts +64 -0
- package/lib/types/src/prompts-bundled.d.ts +11 -0
- package/package.json +5 -3
- package/src/edit-tool.ts +118 -0
- package/src/mutation-engine/engine.ts +175 -0
- package/src/mutation-result.ts +37 -0
- package/src/payload-contract.ts +511 -0
- package/src/prompts-bundled.ts +44 -0
- package/src/prompts.ts +21 -5
- package/lib/types/dsh/tools/undo.d.ts +0 -15
- package/prompts/apply-patch-guidelines.md +0 -10
- package/prompts/apply-patch.md +0 -1
- package/prompts/read-guidelines.md +0 -6
- package/prompts/read.md +0 -1
- package/prompts/undo-last-edit-guidelines.md +0 -2
- package/prompts/undo-last-edit-snippet.md +0 -1
- package/prompts/undo-last-edit.md +0 -1
- package/prompts/write-guidelines.md +0 -2
- package/prompts/write.md +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Undo the last `apply_patch` batch that touched the file at `path`, reverting the whole batch — every text hunk plus file lifecycle actions (add/delete/move) — to its previous state. Use when an `apply_patch` produced incorrect results (e.g., wrong content, duplicated lines, broken syntax). The file must be unchanged since that batch.
|
package/prompts/write.md
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
Read a file before overwriting it with `write`. `write` replaces the whole file: use it for a new file, or for a rewrite where every line changes. For a change to part of an existing file, use `apply_patch` identity hunks on the served rows instead.
|