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"); }); }