@earendil-works/pi-coding-agent 0.79.7 → 0.79.8

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/docs/rpc.md CHANGED
@@ -374,11 +374,14 @@ Response:
374
374
  "summary": "Summary of conversation...",
375
375
  "firstKeptEntryId": "abc123",
376
376
  "tokensBefore": 150000,
377
+ "estimatedTokensAfter": 32000,
377
378
  "details": {}
378
379
  }
379
380
  }
380
381
  ```
381
382
 
383
+ `estimatedTokensAfter` is a heuristic estimate over the rebuilt message context immediately after compaction, not a provider-exact token count.
384
+
382
385
  #### set_auto_compaction
383
386
 
384
387
  Enable or disable automatic compaction when context is nearly full.
@@ -924,6 +927,7 @@ The `reason` field is `"manual"`, `"threshold"`, or `"overflow"`.
924
927
  "summary": "Summary of conversation...",
925
928
  "firstKeptEntryId": "abc123",
926
929
  "tokensBefore": 150000,
930
+ "estimatedTokensAfter": 32000,
927
931
  "details": {}
928
932
  },
929
933
  "aborted": false,
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider",
3
- "version": "0.79.7",
3
+ "version": "0.79.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-custom-provider",
9
- "version": "0.79.7",
9
+ "version": "0.79.8",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sdk": "^0.52.0"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-anthropic",
3
3
  "private": true,
4
- "version": "0.79.7",
4
+ "version": "0.79.8",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-custom-provider-gitlab-duo",
3
3
  "private": true,
4
- "version": "0.79.7",
4
+ "version": "0.79.8",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-gondolin",
3
- "version": "0.79.7",
3
+ "version": "0.79.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-gondolin",
9
- "version": "0.79.7",
9
+ "version": "0.79.8",
10
10
  "dependencies": {
11
11
  "@earendil-works/gondolin": "0.12.0"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-gondolin",
3
3
  "private": true,
4
- "version": "0.79.7",
4
+ "version": "0.79.8",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-sandbox",
3
- "version": "1.9.7",
3
+ "version": "1.9.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-sandbox",
9
- "version": "1.9.7",
9
+ "version": "1.9.8",
10
10
  "dependencies": {
11
11
  "@anthropic-ai/sandbox-runtime": "^0.0.26"
12
12
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-sandbox",
3
3
  "private": true,
4
- "version": "1.9.7",
4
+ "version": "1.9.8",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "pi-extension-with-deps",
3
- "version": "0.79.7",
3
+ "version": "0.79.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "pi-extension-with-deps",
9
- "version": "0.79.7",
9
+ "version": "0.79.8",
10
10
  "dependencies": {
11
11
  "ms": "^2.1.3"
12
12
  },
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "pi-extension-with-deps",
3
3
  "private": true,
4
- "version": "0.79.7",
4
+ "version": "0.79.8",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "clean": "echo 'nothing to clean'",
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-coding-agent",
3
- "version": "0.79.7",
3
+ "version": "0.79.8",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@earendil-works/pi-coding-agent",
9
- "version": "0.79.7",
9
+ "version": "0.79.8",
10
10
  "license": "MIT",
11
11
  "dependencies": {
12
- "@earendil-works/pi-agent-core": "^0.79.7",
13
- "@earendil-works/pi-ai": "^0.79.7",
14
- "@earendil-works/pi-tui": "^0.79.7",
12
+ "@earendil-works/pi-agent-core": "^0.79.8",
13
+ "@earendil-works/pi-ai": "^0.79.8",
14
+ "@earendil-works/pi-tui": "^0.79.8",
15
15
  "@silvia-odwyer/photon-node": "0.3.4",
16
16
  "chalk": "5.6.2",
17
17
  "cross-spawn": "7.0.6",
@@ -25,7 +25,7 @@
25
25
  "proper-lockfile": "4.1.2",
26
26
  "semver": "7.8.0",
27
27
  "typebox": "1.1.38",
28
- "undici": "8.3.0",
28
+ "undici": "8.5.0",
29
29
  "yaml": "2.9.0"
30
30
  },
31
31
  "optionalDependencies": {
@@ -474,11 +474,11 @@
474
474
  }
475
475
  },
476
476
  "node_modules/@earendil-works/pi-agent-core": {
477
- "version": "0.79.7",
478
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-0.79.7.tgz",
477
+ "version": "0.79.8",
478
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-agent-core/-/pi-agent-core-0.79.8.tgz",
479
479
  "license": "MIT",
480
480
  "dependencies": {
481
- "@earendil-works/pi-ai": "^0.79.7",
481
+ "@earendil-works/pi-ai": "^0.79.8",
482
482
  "ignore": "7.0.5",
483
483
  "typebox": "1.1.38",
484
484
  "yaml": "2.9.0"
@@ -488,15 +488,16 @@
488
488
  }
489
489
  },
490
490
  "node_modules/@earendil-works/pi-ai": {
491
- "version": "0.79.7",
492
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.79.7.tgz",
491
+ "version": "0.79.8",
492
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-ai/-/pi-ai-0.79.8.tgz",
493
493
  "license": "MIT",
494
494
  "dependencies": {
495
495
  "@anthropic-ai/sdk": "0.91.1",
496
496
  "@aws-sdk/client-bedrock-runtime": "3.1048.0",
497
- "@smithy/node-http-handler": "4.7.3",
498
497
  "@google/genai": "1.52.0",
499
- "@mistralai/mistralai": "2.2.1",
498
+ "@mistralai/mistralai": "2.2.6",
499
+ "@opentelemetry/api": "1.9.0",
500
+ "@smithy/node-http-handler": "4.7.3",
500
501
  "http-proxy-agent": "7.0.2",
501
502
  "https-proxy-agent": "7.0.6",
502
503
  "openai": "6.26.0",
@@ -511,8 +512,8 @@
511
512
  }
512
513
  },
513
514
  "node_modules/@earendil-works/pi-tui": {
514
- "version": "0.79.7",
515
- "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-0.79.7.tgz",
515
+ "version": "0.79.8",
516
+ "resolved": "https://registry.npmjs.org/@earendil-works/pi-tui/-/pi-tui-0.79.8.tgz",
516
517
  "license": "MIT",
517
518
  "dependencies": {
518
519
  "get-east-asian-width": "1.6.0",
@@ -741,14 +742,23 @@
741
742
  "optional": true
742
743
  },
743
744
  "node_modules/@mistralai/mistralai": {
744
- "version": "2.2.1",
745
- "resolved": "https://registry.npmjs.org/@mistralai/mistralai/-/mistralai-2.2.1.tgz",
746
- "integrity": "sha512-uKU8CZmL2RzYKmplsU01hii4p3pe4HqJefpWNRWXm1Tcm0Sm4xXfwSLIy4k7ZCPlbETCGcp69E7hZs+WOJ5itQ==",
745
+ "version": "2.2.6",
746
+ "resolved": "https://registry.npmjs.org/@mistralai/mistralai/-/mistralai-2.2.6.tgz",
747
+ "integrity": "sha512-W8pX7zHxjJvMIpw8JMxeJEleapXX0Q9NPszdNzqkM3MIEoIGPObdodujj+WHteXEvGfaP/AMwlNyRfEzSY6dQQ==",
747
748
  "license": "Apache-2.0",
748
749
  "dependencies": {
750
+ "@opentelemetry/semantic-conventions": "^1.40.0",
749
751
  "ws": "^8.18.0",
750
752
  "zod": "^3.25.0 || ^4.0.0",
751
753
  "zod-to-json-schema": "^3.25.0"
754
+ },
755
+ "peerDependencies": {
756
+ "@opentelemetry/api": "^1.9.0"
757
+ },
758
+ "peerDependenciesMeta": {
759
+ "@opentelemetry/api": {
760
+ "optional": true
761
+ }
752
762
  }
753
763
  },
754
764
  "node_modules/@nodable/entities": {
@@ -763,6 +773,24 @@
763
773
  }
764
774
  ]
765
775
  },
776
+ "node_modules/@opentelemetry/api": {
777
+ "version": "1.9.0",
778
+ "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.9.0.tgz",
779
+ "integrity": "sha512-3giAOQvZiH5F9bMlMiv8+GSPMeqg0dbaeo58/0SlA9sxSqZhnUtxzX9/2FzyhS9sWQf5S0GJE0AKBrFqjpeYcg==",
780
+ "license": "Apache-2.0",
781
+ "engines": {
782
+ "node": ">=8.0.0"
783
+ }
784
+ },
785
+ "node_modules/@opentelemetry/semantic-conventions": {
786
+ "version": "1.41.1",
787
+ "resolved": "https://registry.npmjs.org/@opentelemetry/semantic-conventions/-/semantic-conventions-1.41.1.tgz",
788
+ "integrity": "sha512-/UhIkaZgPutTFmQ7RnIJGgDXZmtEJ7Dvi86xNTFWcnRxVRNk/aotsqDJYeEvDP+FSMB2SdW+pQzNMcWP0rwuNA==",
789
+ "license": "Apache-2.0",
790
+ "engines": {
791
+ "node": ">=14"
792
+ }
793
+ },
766
794
  "node_modules/@protobufjs/aspromise": {
767
795
  "version": "1.1.2",
768
796
  "resolved": "https://registry.npmjs.org/@protobufjs/aspromise/-/aspromise-1.1.2.tgz",
@@ -782,9 +810,9 @@
782
810
  "license": "BSD-3-Clause"
783
811
  },
784
812
  "node_modules/@protobufjs/eventemitter": {
785
- "version": "1.1.0",
786
- "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.0.tgz",
787
- "integrity": "sha512-j9ednRT81vYJ9OfVuXG6ERSTdEL1xVsNgqpkxMsbIabzSo3goCjDIveeGv5d03om39ML71RdmrGNjG5SReBP/Q==",
813
+ "version": "1.1.1",
814
+ "resolved": "https://registry.npmjs.org/@protobufjs/eventemitter/-/eventemitter-1.1.1.tgz",
815
+ "integrity": "sha512-vW1GmwMZNnL+gMRaovlh9yZX74kc+TTU3FObkkurpMaRtBfLP3ldjS9KQWlwZgraRE0+dheEEoAxdzcJQ8eXZg==",
788
816
  "license": "BSD-3-Clause"
789
817
  },
790
818
  "node_modules/@protobufjs/fetch": {
@@ -802,12 +830,6 @@
802
830
  "integrity": "sha512-Ddb+kVXlXst9d+R9PfTIxh1EdNkgoRe5tOX6t01f1lYWOvJnSPDBlG241QLzcyPdoNTsblLUdujGSE4RzrTZGQ==",
803
831
  "license": "BSD-3-Clause"
804
832
  },
805
- "node_modules/@protobufjs/inquire": {
806
- "version": "1.1.2",
807
- "resolved": "https://registry.npmjs.org/@protobufjs/inquire/-/inquire-1.1.2.tgz",
808
- "integrity": "sha512-pa0vFRuws4wkvaXKK1uXZMAwAX4/t8ANaJo45iw/oQHNQ9q5xUzwgFmVJGXiga2BeN+zpX7Vf9vmsiIa2J+MUw==",
809
- "license": "BSD-3-Clause"
810
- },
811
833
  "node_modules/@protobufjs/path": {
812
834
  "version": "1.1.2",
813
835
  "resolved": "https://registry.npmjs.org/@protobufjs/path/-/path-1.1.2.tgz",
@@ -1585,23 +1607,22 @@
1585
1607
  }
1586
1608
  },
1587
1609
  "node_modules/protobufjs": {
1588
- "version": "7.5.9",
1589
- "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.5.9.tgz",
1590
- "integrity": "sha512-Od4muIm3HW1AouyHF5lONOf1FWo3hY1NbFDoy191X9GzhpgW1clCoaFjfVs2rKJNFYpTNJbje4cbAIDBZJ63ZA==",
1610
+ "version": "7.6.4",
1611
+ "resolved": "https://registry.npmjs.org/protobufjs/-/protobufjs-7.6.4.tgz",
1612
+ "integrity": "sha512-RJJPTTpvFfHcWLkIa2JFWK4XvtSzS0yEWDmunqHXli1h3JlkbcQZXDZdcWxv+JK3Xsl5/UFDPZ0iGm7DAengYw==",
1591
1613
  "license": "BSD-3-Clause",
1592
1614
  "dependencies": {
1593
1615
  "@protobufjs/aspromise": "^1.1.2",
1594
1616
  "@protobufjs/base64": "^1.1.2",
1595
1617
  "@protobufjs/codegen": "^2.0.5",
1596
- "@protobufjs/eventemitter": "^1.1.0",
1618
+ "@protobufjs/eventemitter": "^1.1.1",
1597
1619
  "@protobufjs/fetch": "^1.1.1",
1598
1620
  "@protobufjs/float": "^1.0.2",
1599
- "@protobufjs/inquire": "^1.1.2",
1600
1621
  "@protobufjs/path": "^1.1.2",
1601
1622
  "@protobufjs/pool": "^1.1.0",
1602
1623
  "@protobufjs/utf8": "^1.1.1",
1603
1624
  "@types/node": ">=13.7.0",
1604
- "long": "^5.0.0"
1625
+ "long": "^5.3.2"
1605
1626
  },
1606
1627
  "engines": {
1607
1628
  "node": ">=12.0.0"
@@ -1707,9 +1728,9 @@
1707
1728
  "license": "MIT"
1708
1729
  },
1709
1730
  "node_modules/undici": {
1710
- "version": "8.3.0",
1711
- "resolved": "https://registry.npmjs.org/undici/-/undici-8.3.0.tgz",
1712
- "integrity": "sha512-TkUDgb6tl7KOGZ+7e8E3d2FYgUQgF6z5YypqjWmixVQSQERFcVrVg0ySADm2LVLRh5ljAaHTCR5Fmz3Q34rB7Q==",
1731
+ "version": "8.5.0",
1732
+ "resolved": "https://registry.npmjs.org/undici/-/undici-8.5.0.tgz",
1733
+ "integrity": "sha512-xamtWoB1EshgjpmlXd7GGm2VfdDtw1+rD8uhry8pSNW3If6S8E0m2T2+orSKeZXEn/aPJMviCpDBA65WJt8zhg==",
1713
1734
  "license": "MIT",
1714
1735
  "engines": {
1715
1736
  "node": ">=22.19.0"
@@ -1746,9 +1767,9 @@
1746
1767
  }
1747
1768
  },
1748
1769
  "node_modules/ws": {
1749
- "version": "8.20.1",
1750
- "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.1.tgz",
1751
- "integrity": "sha512-It4dO0K5v//JtTXuPkfEOaI3uUN87iYPnqo/ZzqCoG3g8uhA66QUMs/SrM0YK7/NAu+r4LMh/9dq2A7k+rHs+w==",
1770
+ "version": "8.21.0",
1771
+ "resolved": "https://registry.npmjs.org/ws/-/ws-8.21.0.tgz",
1772
+ "integrity": "sha512-Vsp28b7DRcimFQvrqu2Wek3z1iYxDCWqHYB8Qsnk/S4RfaCQzPGPyBNuVjJV3cd6UiKtUtp6sNM77gWvzcCH+g==",
1752
1773
  "license": "MIT",
1753
1774
  "peerDependencies": {
1754
1775
  "bufferutil": "^4.0.1",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@earendil-works/pi-coding-agent",
3
- "version": "0.79.7",
3
+ "version": "0.79.8",
4
4
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
5
5
  "type": "module",
6
6
  "piConfig": {
@@ -36,9 +36,9 @@
36
36
  "prepublishOnly": "npm run clean && npm run build && npm run shrinkwrap"
37
37
  },
38
38
  "dependencies": {
39
- "@earendil-works/pi-agent-core": "^0.79.7",
40
- "@earendil-works/pi-ai": "^0.79.7",
41
- "@earendil-works/pi-tui": "^0.79.7",
39
+ "@earendil-works/pi-agent-core": "^0.79.8",
40
+ "@earendil-works/pi-ai": "^0.79.8",
41
+ "@earendil-works/pi-tui": "^0.79.8",
42
42
  "@silvia-odwyer/photon-node": "0.3.4",
43
43
  "chalk": "5.6.2",
44
44
  "cross-spawn": "7.0.6",
@@ -52,7 +52,7 @@
52
52
  "proper-lockfile": "4.1.2",
53
53
  "semver": "7.8.0",
54
54
  "typebox": "1.1.38",
55
- "undici": "8.3.0",
55
+ "undici": "8.5.0",
56
56
  "yaml": "2.9.0"
57
57
  },
58
58
  "overrides": {
@@ -74,7 +74,7 @@
74
74
  "@types/semver": "7.7.1",
75
75
  "shx": "0.4.0",
76
76
  "typescript": "5.9.3",
77
- "vitest": "3.2.4"
77
+ "vitest": "4.1.9"
78
78
  },
79
79
  "keywords": [
80
80
  "coding-agent",