co-mono/.pi/hooks/status-demo.ts
Mario Zechner 0ec8509de3 Fix markdown code block syntax highlighting
Marked v15 removed the highlight option from setOptions.
Use marked.use() with a custom renderer instead.
2026-01-01 21:42:18 +01:00

11 lines
295 B
TypeScript

import type { HookAPI } from "@mariozechner/pi-coding-agent";
export default function (pi: HookAPI) {
pi.on("turn_start", async (_event, ctx) => {
ctx.ui.setStatus("demo", "🔄 Thinking...");
});
pi.on("turn_end", async (_event, ctx) => {
ctx.ui.setStatus("demo", "✓ Ready");
});
}