pi-tool-repair 0.3.3 → 0.3.5
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 +8 -0
- package/package.json +4 -3
package/README.md
CHANGED
|
@@ -17,6 +17,14 @@ _Fixes the finite set of tool-call mistakes open models make — before tools ex
|
|
|
17
17
|
>
|
|
18
18
|
> By adding a thin repair layer, DeepSeek V4 Pro beat Opus 4.7 in 6/10 internal evals — without changing the model. The same four mistakes repeat across DeepSeek, GLM, Qwen, and others. Each fix is 30–100 lines. Order matters.
|
|
19
19
|
|
|
20
|
+
## Pi 1.0 compatibility (0.3.5)
|
|
21
|
+
|
|
22
|
+
Tested with Pi **1.0.0**. Host-provided Pi packages and TypeBox are peers (`*`), not bundled runtime dependencies; development uses exact Pi 1.0.0 pins and host-compatible TypeBox where needed.
|
|
23
|
+
|
|
24
|
+
Repair still runs at `message_end`, before model-issued argument validation. Native `ctx.executeTool` calls validate independently before `tool_call`; malformed nested arguments are rejected rather than bypassing validation. Fabric-owned guest normalization remains Fabric's responsibility.
|
|
25
|
+
|
|
26
|
+
Run `bun run test:host` for the offline real-host load, native codemode/nested-call, module-identity and reload checks. Set `PI1_HOST_PACKAGE` to an installed Pi package directory to test that host explicitly; add `PI1_HOST_ENTRY=bundle` to check the bundled CLI runtime's constructors.
|
|
27
|
+
|
|
20
28
|
## What it fixes
|
|
21
29
|
|
|
22
30
|
| Problem | Model sends | After repair |
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-tool-repair",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.5",
|
|
4
4
|
"description": "Validate-then-repair extension for pi — fixes common LLM tool-call mistakes (null fields, stringified arrays, wrong field names, anchor bleed) before tools execute",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": "Tom X Nguyen",
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
36
|
"scripts": {
|
|
37
|
+
"test:host": "node scripts/pi1-host.mjs",
|
|
37
38
|
"test": "vitest run",
|
|
38
39
|
"test:watch": "vitest",
|
|
39
40
|
"test:coverage": "vitest run --coverage",
|
|
@@ -41,11 +42,11 @@
|
|
|
41
42
|
"lint:dead": "knip --no-gitignore"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
45
|
+
"@earendil-works/pi-coding-agent": "1.0.0",
|
|
45
46
|
"@types/node": "25.9.1",
|
|
46
47
|
"@vitest/coverage-v8": "4.1.7",
|
|
47
48
|
"knip": "6.14.1",
|
|
48
|
-
"typebox": "1.3.
|
|
49
|
+
"typebox": "1.3.27",
|
|
49
50
|
"typescript": "6.0.3",
|
|
50
51
|
"vitest": "4.1.7"
|
|
51
52
|
},
|