@helle253/pi-peon
v0.1.4
Published
Pi extension that forwards pi lifecycle events to peon-ping / OpenPeon.
Maintainers
Readme
pi-peon
Thin pi extension that forwards pi lifecycle events to the existing peon-ping runtime so pi can use your OpenPeon sounds.
Scope
This package only:
- forwards pi lifecycle events to
peon-ping - adds
/peon-enableand/peon-disablefor session or persistent toggling - supports
--peon-disabledand--peon-script
Everything else should be done with the regular peon CLI.
Event mapping
| pi event | peon-ping hook | CESP category |
| --------------------------------- | -------------------- | -------------------------------- |
| session_start | SessionStart | session.start |
| input | UserPromptSubmit | task.acknowledge / user.spam |
| tool_result with isError=true | PostToolUseFailure | task.error |
| agent_end | Stop | task.complete |
| session_before_compact | PreCompact | resource.limit |
Not auto-mapped right now:
input.requiredtask.progresssession.end
Install
1) Install peon-ping
Install and set up peon-ping first.
2) Install this package
From npm:
pi install npm:@helle253/pi-peonFrom this repo:
pi install /absolute/path/to/pi-peonFor a one-off test:
pi -e /absolute/path/to/pi-peon/extensions/pi-peon.tsUsage
Enabled by default.
Disable hooks for one run:
pi --peon-disabledToggle hooks only for the current session:
/peon-disable
/peon-enableWrite a persistent project or global default:
/peon-disable --project
/peon-enable --project
/peon-disable --global
/peon-enable --globalThe commands write to:
.pi/settings.jsonfor--project~/.pi/agent/settings.jsonfor--global
Equivalent manual config:
{
"piPeon": {
"enabled": false
}
}Use a custom hook script:
pi --peon-script /absolute/path/to/peon.shPrecedence is:
--peon-disabledfor the current run/peon-enableor/peon-disablefor the current sessionpiPeon.enabledin settings
The extension looks for the standard peon-ping hook script automatically.
Use the peon CLI for everything else
peon status
peon preview task.complete
peon packs list --registry
peon packs install glados