UNPKG

@code-yeongyu/senpi

Version:

Coding agent CLI with read, bash, edit, write tools and session management

23 lines • 674 B
/** * Redraws Extension * * Exposes /tui to show TUI redraw stats. */ import { Text } from "@earendil-works/pi-tui"; export default function (pi) { pi.registerCommand("tui", { description: "Show TUI stats", handler: async (_args, ctx) => { if (!ctx.hasUI) return; let redraws = 0; await ctx.ui.custom((tui, _theme, _keybindings, done) => { redraws = tui.fullRedraws; done(undefined); return new Text("", 0, 0); }); ctx.ui.notify(`TUI full redraws: ${redraws}`, "info"); }, }); } //# sourceMappingURL=redraws.js.map