blob: 80a4b7a8d2a8877bda05f4adc2f185a415bd0695 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
// Alerts you when pi finishes processing a prompt.
// - rings the terminal bell -> tmux flags the window (blinks in status bar)
// - sets the window/pane title -> visible in tmux status + outer terminal
export default function (pi: ExtensionAPI) {
pi.on("agent_start", (_event, ctx) => {
ctx.ui.setTitle("pi \u2699 working\u2026");
});
pi.on("agent_end", (_event, ctx) => {
// BEL -> tmux monitor-bell turns this into a window bell flag
process.stdout.write("\x07");
ctx.ui.setTitle("\u{1F514} pi \u2014 done");
});
}
|