Packages

@mariozechner/pi-ai

0.73.1 · 7 May 2026MIT593.1k / weekRepositoryHomepagenpmAtom feed

Deprecated by its maintainers: please use @earendil-works/pi-ai instead going forwardWhat to use instead
Your version

0.23.0

17 Dec 2025Where it was published

0.73.1 is the newest release of 0.23.x.

npm marks 0.23.0 as deprecated: please use @earendil-works/pi-ai instead going forward

In short

1 breaking2 new

  • Breaking

    Hooks: Replaced session_start and session_switch events with unified session event. Use event.reason ("start" | "switch" | "clear") to distinguish. Event now includes entries array 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 via onSession callback. See docs/custom-tools.md and examples/custom-tools/.

  • Hook and tool examples: Added examples/hooks/ and examples/custom-tools/ with working examples. Examples are now bundled in npm and binary releases.

Breaking Changes

  • Breaking

    Hooks: Replaced session_start and session_switch events with unified session event. Use event.reason ("start" | "switch" | "clear") to distinguish. Event now includes entries array 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.