@xynogen/pix-edit 0.2.14 → 0.2.16
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 +10 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/xynogen/pix-mono/main/.github/assets/pix-logo.svg" alt="Pix" width="152" height="80">
|
|
3
|
+
</p>
|
|
4
|
+
|
|
1
5
|
# pix-edit
|
|
2
6
|
|
|
3
7
|
Pi tool — precise text replacement edit with diff rendering.
|
|
4
8
|
|
|
5
9
|
## What it does
|
|
6
10
|
|
|
7
|
-
Replaces Pi's default `edit` tool with
|
|
11
|
+
Replaces Pi's default `edit` tool with a version that renders a side-by-side split diff after every edit. The diff is syntax-highlighted with gutter markers, line numbers, and a change summary produced by `pix-pretty`'s diff engine. Batched edits (multiple operations in one call) each render their own diff block. Call labels show the target file path and the number of edits being applied. Depends on `@xynogen/pix-pretty`, installed automatically as a dependency.
|
|
12
|
+
|
|
13
|
+
- **Hash anchors first.** Each operation is `{op, pos, end?, lines}` with `op` as `replace`, `insert_before`, or `insert_after`. `pos`/`end` are `LINE#HASH` anchors from `read` or `grep`. Use exact text `{oldText, newText}` only after a hash-anchor edit fails. One call never mixes the two formats.
|
|
14
|
+
- **Fresh anchors.** A successful edit returns the current `LINE#HASH|text` rows around each changed span, so the next edit needs no new read.
|
|
15
|
+
- **Stale anchors.** A stale or out-of-bounds anchor fails with the current anchors near the target.
|
|
16
|
+
- **Short argument errors.** Invalid arguments fail with a short message that says how to fix them.
|
|
8
17
|
|
|
9
18
|
## Auto-collapse
|
|
10
19
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xynogen/pix-edit",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Pi tool
|
|
3
|
+
"version": "0.2.16",
|
|
4
|
+
"description": "Pi tool — precise text replacement edit with diff rendering",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"exports": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"access": "public"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@xynogen/pix-pretty": "^1.
|
|
43
|
-
"@xynogen/pix-runtime": "^0.
|
|
42
|
+
"@xynogen/pix-pretty": "^1.38.0",
|
|
43
|
+
"@xynogen/pix-runtime": "^0.18.0"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
46
|
"typebox": "*",
|