pi-aft-bash-activity0.1.2
Track AFT background Bash activity in Pi and emit session-local activity events
Untested on omp
This is a pi package. No one has reported whether it works on omp yet. If you try it, add your result below.
Reports 0
No reports yet.
Readme
pi-aft-bash-activity
This Pi extension publishes activity events for AFT background Bash tasks and shows their commands and elapsed time above the editor.
Activity events for integrations
The extension sends aft-bash:background-activity when it starts tracking the first task and again when no tracked tasks remain. A Herdr integration can use this signal to keep a pane marked as working if Pi finishes its turn before the build does.
Background task widget
In fullscreen mode, the widget shows how long each task has been in the background. The command appears below the description or <no description> if Pi did not supply one:
● AFT Bash tasks
├─ ⠋ 2m 14s Check the frontend production build
│ └─ npm run build
└─ ⠋ 8s <no description>
└─ cargo test --workspace
The timers keep updating while Pi is idle. The widget disappears when there are no tasks to show.
Install
pi install npm:pi-aft-bash-activity
If Pi is already open, run /reload.
Tested with Pi 1.6.1 and AFT 0.68.0 (@cortexkit/aft-pi).
Try it
Ask Pi:
Run the project's tests in the background. While they run, review my changes.
Configuration
To customize the extension, copy these defaults into ~/.pi/agent/extensions/pi-aft-bash-activity/config.json:
{
"emitEvents": true,
"showWidget": true,
"debugLogging": false
}
Set emitEvents to false to stop publishing activity events, or showWidget to false to hide the widget. Set debugLogging to true to record a local, rotating journal by session ID. Run /reload or restart Pi after editing the file.