@hheei/pi-apply-patch 0.3.1 → 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 +1 -1
- package/dist/apply-patch/tool.js +4 -2
- package/package.json +10 -11
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Standalone `apply_patch` extension for Pi. Install with `pi install npm:@hheei/pi-apply-patch`. The tool is registered with `defaultActive: false`; enable it through your loadout.
|
|
4
4
|
|
|
5
|
-
Owns V4A parsing, pure JavaScript jsdiff worker matching, per-path publishing, partial outcomes and the `applyPatch` group in `ext_settings.json`. Confirmed edits persist after failure or cancellation.
|
|
5
|
+
Owns V4A parsing, pure JavaScript jsdiff worker matching, per-path publishing, partial outcomes and the `applyPatch` group in `ext_settings.json`. Confirmed edits persist after failure or cancellation.
|
|
6
6
|
|
|
7
7
|
No file tools, Bash, Python or UI extension is required. Optional UI rendering comes through ext-core; native tool text remains available without it. Worker code is included in `dist`.
|
|
8
8
|
|
package/dist/apply-patch/tool.js
CHANGED
|
@@ -178,8 +178,10 @@ export function createApplyPatchTool() {
|
|
|
178
178
|
throw new Error(`apply_patch failed: ${message}`);
|
|
179
179
|
}
|
|
180
180
|
finally {
|
|
181
|
-
// The
|
|
182
|
-
//
|
|
181
|
+
// The last operation usually lands inside an open window, so the trailing snapshot is
|
|
182
|
+
// delivered before the window closes; the result below is then the only authority for
|
|
183
|
+
// the finished call, and a repaint after it would rewrite a settled body.
|
|
184
|
+
repaint.flush();
|
|
183
185
|
repaint.dispose();
|
|
184
186
|
}
|
|
185
187
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hheei/pi-apply-patch",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "V4A apply_patch editing tool with worker matching and per-path publishing.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -23,33 +23,32 @@
|
|
|
23
23
|
"pi",
|
|
24
24
|
"pi-package",
|
|
25
25
|
"pi-extension",
|
|
26
|
-
"hepi",
|
|
27
26
|
"tools"
|
|
28
27
|
],
|
|
29
28
|
"license": "MIT",
|
|
30
29
|
"repository": {
|
|
31
30
|
"type": "git",
|
|
32
|
-
"url": "git+https://github.com/hheei/
|
|
31
|
+
"url": "git+https://github.com/hheei/pi-mono.git",
|
|
33
32
|
"directory": "packages/pi-apply-patch"
|
|
34
33
|
},
|
|
35
34
|
"publishConfig": {
|
|
36
35
|
"access": "public"
|
|
37
36
|
},
|
|
38
37
|
"dependencies": {
|
|
39
|
-
"@hheei/pi-ext-core": "^0.
|
|
38
|
+
"@hheei/pi-ext-core": "^0.8.0",
|
|
40
39
|
"diff": "^9.0.0"
|
|
41
40
|
},
|
|
42
41
|
"peerDependencies": {
|
|
43
|
-
"@earendil-works/pi-agent-core": ">=1.
|
|
44
|
-
"@earendil-works/pi-coding-agent": ">=1.
|
|
45
|
-
"@earendil-works/pi-tui": ">=1.
|
|
42
|
+
"@earendil-works/pi-agent-core": ">=1.0.1",
|
|
43
|
+
"@earendil-works/pi-coding-agent": ">=1.0.1",
|
|
44
|
+
"@earendil-works/pi-tui": ">=1.0.1",
|
|
46
45
|
"typebox": "*"
|
|
47
46
|
},
|
|
48
47
|
"devDependencies": {
|
|
49
|
-
"@earendil-works/pi-agent-core": "1.
|
|
50
|
-
"@earendil-works/pi-ai": "1.
|
|
51
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
52
|
-
"@earendil-works/pi-tui": "1.
|
|
48
|
+
"@earendil-works/pi-agent-core": "^1.4.0",
|
|
49
|
+
"@earendil-works/pi-ai": "^1.4.0",
|
|
50
|
+
"@earendil-works/pi-coding-agent": "^1.4.0",
|
|
51
|
+
"@earendil-works/pi-tui": "^1.4.0"
|
|
53
52
|
},
|
|
54
53
|
"scripts": {
|
|
55
54
|
"build": "node -e \"import { rmSync } from 'node:fs'; rmSync('dist', { recursive: true, force: true })\" && tsc -p tsconfig.build.json"
|