@mariozechner/pi-ai
0.73.1 · 7 May 2026MIT593.1k / weekRepositoryHomepagenpmAtom feed
0.73.1 is the newest release of 0.23.x.
In short
1 breaking2 new
- Breaking
Hooks: Replaced
session_startandsession_switchevents with unifiedsessionevent. Useevent.reason("start" | "switch" | "clear") to distinguish. Event now includesentriesarray for state reconstruction.
Release note
Added
Custom tools: Extend pi with custom tools written in TypeScript. Tools can provide custom TUI rendering, interact with users via
pi.ui(select, confirm, input, notify), and maintain state across sessions viaonSessioncallback. See docs/custom-tools.md and examples/custom-tools/.Hook and tool examples: Added
examples/hooks/andexamples/custom-tools/with working examples. Examples are now bundled in npm and binary releases.
Breaking Changes
- Breaking
Hooks: Replaced
session_startandsession_switchevents with unifiedsessionevent. Useevent.reason("start" | "switch" | "clear") to distinguish. Event now includesentriesarray for state reconstruction.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.