UNPKG

@code-yeongyu/senpi

Version:

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

22 lines • 1.09 kB
import type { ToolExecutionRenderState } from "./tool-execution-types.ts"; /** A card spins while edit-like arguments stream in, or while a partial task or progress result is showing. */ export declare function toolCardSpins(toolName: string, card: ToolExecutionRenderState): boolean; /** A finished, successful todo card that completed tasks strikes them through once. */ export declare function toolCardStrikes(toolName: string, card: ToolExecutionRenderState): boolean; export interface ToolExecutionAnimationHost { /** The card's output changed: drop its render cache. */ invalidate(): void; /** Rebuild the card's display and ask the terminal for a frame. */ redraw(): void; } /** A tool card's spinner and todo-strike timers and the frame they advance. */ export declare class ToolExecutionAnimation { #private; constructor(host: ToolExecutionAnimationHost); get frame(): number | undefined; get running(): boolean; spin(on: boolean): void; strike(on: boolean): void; stop(): void; } //# sourceMappingURL=tool-execution-animation.d.ts.map