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

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.
Files changed (61) hide show
  1. package/CHANGELOG.md +45 -0
  2. package/README.md +6 -7
  3. package/dist/core/agent-session.d.ts.map +1 -1
  4. package/dist/core/agent-session.js +37 -36
  5. package/dist/core/agent-session.js.map +1 -1
  6. package/dist/core/compaction/compaction.d.ts +1 -0
  7. package/dist/core/compaction/compaction.d.ts.map +1 -1
  8. package/dist/core/compaction/compaction.js +3 -0
  9. package/dist/core/compaction/compaction.js.map +1 -1
  10. package/dist/core/extensions/loader.d.ts +2 -3
  11. package/dist/core/extensions/loader.d.ts.map +1 -1
  12. package/dist/core/extensions/loader.js +47 -7
  13. package/dist/core/extensions/loader.js.map +1 -1
  14. package/dist/core/model-registry.d.ts.map +1 -1
  15. package/dist/core/model-registry.js +16 -0
  16. package/dist/core/model-registry.js.map +1 -1
  17. package/dist/core/resolve-config-value.d.ts.map +1 -1
  18. package/dist/core/resolve-config-value.js +5 -3
  19. package/dist/core/resolve-config-value.js.map +1 -1
  20. package/dist/core/resource-loader.d.ts +1 -0
  21. package/dist/core/resource-loader.d.ts.map +1 -1
  22. package/dist/core/resource-loader.js +10 -4
  23. package/dist/core/resource-loader.js.map +1 -1
  24. package/dist/core/session-manager.d.ts.map +1 -1
  25. package/dist/core/session-manager.js +4 -2
  26. package/dist/core/session-manager.js.map +1 -1
  27. package/dist/core/tools/bash.d.ts.map +1 -1
  28. package/dist/core/tools/bash.js +8 -3
  29. package/dist/core/tools/bash.js.map +1 -1
  30. package/dist/core/tools/edit-diff.d.ts +22 -2
  31. package/dist/core/tools/edit-diff.d.ts.map +1 -1
  32. package/dist/core/tools/edit-diff.js +98 -18
  33. package/dist/core/tools/edit-diff.js.map +1 -1
  34. package/dist/modes/interactive/components/model-selector.d.ts.map +1 -1
  35. package/dist/modes/interactive/components/model-selector.js +2 -2
  36. package/dist/modes/interactive/components/model-selector.js.map +1 -1
  37. package/dist/modes/interactive/interactive-mode.d.ts.map +1 -1
  38. package/dist/modes/interactive/interactive-mode.js +0 -7
  39. package/dist/modes/interactive/interactive-mode.js.map +1 -1
  40. package/dist/modes/interactive/model-search.d.ts +5 -0
  41. package/dist/modes/interactive/model-search.d.ts.map +1 -1
  42. package/dist/modes/interactive/model-search.js +9 -0
  43. package/dist/modes/interactive/model-search.js.map +1 -1
  44. package/dist/utils/shell.d.ts +1 -0
  45. package/dist/utils/shell.d.ts.map +1 -1
  46. package/dist/utils/shell.js +12 -5
  47. package/dist/utils/shell.js.map +1 -1
  48. package/docs/custom-provider.md +4 -3
  49. package/docs/models.md +3 -2
  50. package/docs/rpc.md +4 -0
  51. package/examples/extensions/custom-provider-anthropic/package-lock.json +2 -2
  52. package/examples/extensions/custom-provider-anthropic/package.json +1 -1
  53. package/examples/extensions/custom-provider-gitlab-duo/package.json +1 -1
  54. package/examples/extensions/gondolin/package-lock.json +2 -2
  55. package/examples/extensions/gondolin/package.json +1 -1
  56. package/examples/extensions/sandbox/package-lock.json +2 -2
  57. package/examples/extensions/sandbox/package.json +1 -1
  58. package/examples/extensions/with-deps/package-lock.json +2 -2
  59. package/examples/extensions/with-deps/package.json +1 -1
  60. package/npm-shrinkwrap.json +60 -39
  61. package/package.json +6 -6
package/CHANGELOG.md CHANGED
@@ -1,5 +1,50 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.79.9] - 2026-06-20
4
+
5
+ ### New Features
6
+
7
+ - **Chat-template thinking compatibility** - OpenAI-compatible custom providers can map Pi thinking levels into `chat_template_kwargs`, enabling vLLM/Hugging Face chat-template models such as DeepSeek to use provider-native thinking controls. See [Custom Provider API Types](docs/custom-provider.md#api-types) and [OpenAI Compatibility](docs/models.md#openai-compatibility).
8
+ - **GLM-5.2 provider improvements** - GLM-5.2 now has corrected Fireworks OpenAI-compatible routing and OpenRouter `xhigh` thinking support, improving `/model` behavior and high-effort reasoning for GLM-5.2 users. See [Model Options](docs/usage.md#model-options).
9
+
10
+ ### Added
11
+
12
+ - Added inherited configurable `chat-template` thinking support for OpenAI-compatible providers that use `chat_template_kwargs`, such as DeepSeek models behind vLLM ([#5673](https://github.com/earendil-works/pi/issues/5673)).
13
+
14
+ ### Fixed
15
+
16
+ - Fixed inherited Fireworks GLM-5.2 metadata to use the OpenAI-compatible Chat Completions endpoint with `reasoning_effort` support ([#5923](https://github.com/earendil-works/pi/issues/5923)).
17
+ - Fixed same-directory session switches to reuse imported extension modules while preserving fresh extension instances and lifecycle events ([#5905](https://github.com/earendil-works/pi/issues/5905)).
18
+ - Fixed deep session branches taking quadratic time to build context or branch paths ([#5909](https://github.com/earendil-works/pi/issues/5909)).
19
+ - Fixed inherited OpenRouter GLM-5.2 metadata to expose `xhigh` reasoning and send OpenRouter's native `xhigh` effort ([#5770](https://github.com/earendil-works/pi/issues/5770)).
20
+ - Fixed inherited Markdown streaming code fence rendering so partial closing fences no longer make code blocks shrink or flicker while content streams ([#5846](https://github.com/earendil-works/pi/pull/5846) by [@xl0](https://github.com/xl0)).
21
+ - Fixed fuzzy `edit` matches to preserve untouched line blocks instead of rewriting the whole file through normalized content ([#5899](https://github.com/earendil-works/pi/issues/5899)).
22
+ - Fixed bash commands through legacy WSL `bash.exe` to pass scripts over stdin so shell variables expand in the target bash ([#5893](https://github.com/earendil-works/pi/issues/5893)).
23
+ - Fixed `/model` to hide GitHub Copilot models that are unavailable to the authenticated account ([#5897](https://github.com/earendil-works/pi/issues/5897)).
24
+ - Fixed `/model` selector search to rank exact provider-prefixed matches before proxy-provider model ID matches ([#5892](https://github.com/earendil-works/pi/issues/5892)).
25
+
26
+ ## [0.79.8] - 2026-06-19
27
+
28
+ ### New Features
29
+
30
+ - **Selective provider base entry points** - SDK users can pair `@earendil-works/pi-ai/base` and `@earendil-works/pi-agent-core/base` with explicit provider registration to keep bundled applications from including unused provider transports. See [`pi-ai` Base Entry Point](../ai/README.md#base-entry-point) and [`pi-agent-core` Base Entry Point](../agent/README.md#base-entry-point).
31
+ - **Mistral prompt caching** - Mistral sessions now use provider-side prompt caching with session affinity and cached-token usage/cost accounting. See [API Keys](docs/providers.md#api-keys) and [Environment Variables](docs/usage.md#environment-variables).
32
+ - **Post-compaction token estimates** - Compact results and compaction events now include estimated post-compaction token counts so clients can show the approximate context reduction. See [RPC compact](docs/rpc.md#compact) and [compaction events](docs/rpc.md#compaction_start--compaction_end).
33
+ - **OpenRouter Fusion alias** - `openrouter/fusion` is available as a built-in OpenRouter model alias. See [API Keys](docs/providers.md#api-keys).
34
+
35
+ ### Added
36
+
37
+ - Added inherited `@earendil-works/pi-ai/base` and `@earendil-works/pi-agent-core/base` entry points for selective provider registration in bundled applications ([#5348](https://github.com/earendil-works/pi/pull/5348) by [@FredKSchott](https://github.com/FredKSchott)).
38
+ - Added inherited Mistral prompt caching using the pi session ID as `prompt_cache_key`, including cached-token usage and cost accounting ([#5854](https://github.com/earendil-works/pi/issues/5854)).
39
+ - Added estimated post-compaction token counts to compact results and compaction events ([#5877](https://github.com/earendil-works/pi/issues/5877)).
40
+ - Added the inherited OpenRouter Fusion alias as `openrouter/fusion` ([#5866](https://github.com/earendil-works/pi/pull/5866) by [@dannote](https://github.com/dannote)).
41
+
42
+ ### Fixed
43
+
44
+ - Updated vulnerable runtime dependencies, including `undici` and the packaged `protobufjs` transitive dependency.
45
+ - Fixed compaction to refuse sessions with no eligible messages instead of producing empty summaries ([#4811](https://github.com/earendil-works/pi/issues/4811)).
46
+ - Fixed successful overflow-triggered auto-compaction to avoid retrying completed assistant responses ([#5720](https://github.com/earendil-works/pi/issues/5720)).
47
+
3
48
  ## [0.79.7] - 2026-06-18
4
49
 
5
50
  ### New Features
package/README.md CHANGED
@@ -7,11 +7,6 @@
7
7
  <a href="https://discord.com/invite/3cU7Bz4UPx"><img alt="Discord" src="https://img.shields.io/badge/discord-community-5865F2?style=flat-square&logo=discord&logoColor=white" /></a>
8
8
  <a href="https://www.npmjs.com/package/@earendil-works/pi-coding-agent"><img alt="npm" src="https://img.shields.io/npm/v/@earendil-works/pi-coding-agent?style=flat-square" /></a>
9
9
  </p>
10
- <p align="center">
11
- <a href="https://pi.dev">pi.dev</a> domain graciously donated by
12
- <br /><br />
13
- <a href="https://exe.dev"><img src="docs/images/exy.png" alt="Exy mascot" width="48" /><br />exe.dev</a>
14
- </p>
15
10
 
16
11
  > New issues and PRs from new contributors are auto-closed by default. Maintainers review auto-closed issues daily. See [CONTRIBUTING.md](../../CONTRIBUTING.md).
17
12
 
@@ -675,8 +670,6 @@ pi --thinking high "Solve this complex problem"
675
670
 
676
671
  See [CONTRIBUTING.md](../../CONTRIBUTING.md) for guidelines and [docs/development.md](docs/development.md) for setup, forking, and debugging.
677
672
 
678
- ---
679
-
680
673
  ## License
681
674
 
682
675
  MIT
@@ -686,3 +679,9 @@ MIT
686
679
  - [@earendil-works/pi-ai](https://www.npmjs.com/package/@earendil-works/pi-ai): Core LLM toolkit
687
680
  - [@earendil-works/pi-agent-core](https://www.npmjs.com/package/@earendil-works/pi-agent-core): Agent framework
688
681
  - [@earendil-works/pi-tui](https://www.npmjs.com/package/@earendil-works/pi-tui): Terminal UI components
682
+
683
+ <p align="center">
684
+ <a href="https://pi.dev">pi.dev</a> domain graciously donated by
685
+ <br /><br />
686
+ <a href="https://exe.dev"><img src="docs/images/exy.png" alt="Exy mascot" width="48" /><br />exe.dev</a>
687
+ </p>