pi-tool-repair 0.1.2 → 0.1.3

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 CHANGED
@@ -36,6 +36,12 @@ Reverse-engineered from [Command Code](https://commandcode.ai/)'s tool parsing p
36
36
 
37
37
  **With `pi install`** (recommended):
38
38
 
39
+ ```bash
40
+ pi install npm:pi-tool-repair
41
+ ```
42
+
43
+ Or install from GitHub:
44
+
39
45
  ```bash
40
46
  pi install https://github.com/monotykamary/pi-tool-repair
41
47
  ```
@@ -43,7 +49,7 @@ pi install https://github.com/monotykamary/pi-tool-repair
43
49
  **With npm**:
44
50
 
45
51
  ```bash
46
- npm install pi-tool-repair
52
+ npm install npm:pi-tool-repair
47
53
  ```
48
54
 
49
55
  **Manual** — add to `~/.pi/agent/settings.json`:
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-tool-repair",
3
- "version": "0.1.2",
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",
3
+ "version": "0.1.3",
4
+ "description": "Validate-then-repair extension for pi \u2014 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",
7
7
  "license": "MIT",
@@ -41,7 +41,7 @@
41
41
  "lint:dead": "knip --no-gitignore"
42
42
  },
43
43
  "devDependencies": {
44
- "@earendil-works/pi-coding-agent": "0.75.4",
44
+ "@earendil-works/pi-coding-agent": "0.79.4",
45
45
  "@types/node": "25.9.1",
46
46
  "@vitest/coverage-v8": "4.1.7",
47
47
  "knip": "6.14.1",
package/src/index.ts CHANGED
@@ -7,6 +7,8 @@
7
7
 
8
8
  // ─── Configuration ────────────────────────────────────────────────────────────
9
9
 
10
+ import type { MinimalAssistantMessage } from "./grammar-repair.js";
11
+
10
12
  export interface RepairConfig {
11
13
  debug: boolean;
12
14
  anchorBleedModels: RegExp[];