New Features
- Selective provider base entry points - SDK users can pair
@earendil-works/pi-ai/baseand@earendil-works/pi-agent-core/basewith explicit provider registration to keep bundled applications from including unused provider transports. Seepi-aiBase Entry Point andpi-agent-coreBase Entry Point. - Mistral prompt caching - Mistral sessions now use provider-side prompt caching with session affinity and cached-token usage/cost accounting. See API Keys and Environment Variables.
- 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 and compaction events.
- OpenRouter Fusion alias -
openrouter/fusionis available as a built-in OpenRouter model alias. See API Keys.
Added
- Added inherited
@earendil-works/pi-ai/baseand@earendil-works/pi-agent-core/baseentry points for selective provider registration in bundled applications (#5348 by @FredKSchott). - Added inherited Mistral prompt caching using the pi session ID as
prompt_cache_key, including cached-token usage and cost accounting (#5854). - Added estimated post-compaction token counts to compact results and compaction events (#5877).
- Added the inherited OpenRouter Fusion alias as
openrouter/fusion(#5866 by @dannote).
Fixed
- Updated vulnerable runtime dependencies, including
undiciand the packagedprotobufjstransitive dependency. - Fixed compaction to refuse sessions with no eligible messages instead of producing empty summaries (#4811).
- Fixed successful overflow-triggered auto-compaction to avoid retrying completed assistant responses (#5720).