@npm-ken/pi-macos-notify
v0.8.0
Published
Pi extension that sends configurable macOS notifications for Pi events.
Maintainers
Readme
pi-macos-notify
Minimal Pi extension for macOS notifications. No npm dependencies; it uses osascript.
Install
pi install npm:@npm-ken/pi-macos-notifyOr test from this checkout:
pi -e ./extensions/macos-notify.tsPublish
bun pm pack --dry-run
bun publish --access publicConfigure
On first load, the extension creates:
~/.pi/agent/extensions/pi-macos-notify/macos-notify.tomlProject override, only used after project trust:
cp macos-notify.toml.example .pi/macos-notify.tomlCustom path, loaded after the default and project override:
PI_MACOS_NOTIFY_CONFIG=/path/to/macos-notify.toml piDefaults notify on agent_settled and user_question. Set tool_error = true to include short tool error payloads when Pi provides them. user_question fires for question tools such as ask_question. Set message_end = true to pass message payload text through, truncated by max_message_length; it is off by default to avoid leaking chat content. Leave agent_start = false; it gets noisy.
ignore_nested_pi = true suppresses notifications from a Pi process launched by another Pi agent's bash tool (pi -e, pi -p, etc.). Pi exposes parent-session environment such as PI_SESSION_ID to bash-tool children, so this extension uses that as the cheap nested-process marker.
Test inside Pi:
/notify-test