@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
40 lines • 1.97 kB
TypeScript
import { type Component, Loader, type LoaderIndicatorOptions, type TUI } from "@earendil-works/pi-tui";
export type StatusIndicatorKind = "working" | "retry" | "compaction" | "branchSummary";
export declare class StatusIndicator extends Loader {
readonly kind: StatusIndicatorKind;
constructor(kind: StatusIndicatorKind, ui: TUI, spinnerColorFn: (str: string) => string, messageColorFn: (str: string) => string, message: string, indicator?: LoaderIndicatorOptions);
renderInBorder(width: number): string;
renderSpinnerInBorder(width: number): string;
dispose(): void;
setProgressText(_progressText: string): void;
}
export declare class WorkingStatusIndicator extends StatusIndicator {
constructor(ui: TUI, message: string, indicator?: LoaderIndicatorOptions, colorFn?: (text: string) => string);
}
export declare class RetryStatusIndicator extends StatusIndicator {
private countdown;
private compactMessage;
constructor(ui: TUI, attempt: number, maxAttempts: number, delayMs: number, indicator?: LoaderIndicatorOptions, providerTrouble?: boolean, reason?: string);
renderInBorder(width: number): string;
dispose(): void;
}
export type CompactionStatusReason = "manual" | "threshold" | "overflow" | "pre_prompt" | "branch" | "extension";
export declare class CompactionStatusIndicator extends StatusIndicator {
private progressText;
private readonly progressLabel;
constructor(ui: TUI, reason: CompactionStatusReason);
setProgressText(progressText: string): void;
renderInBorder(width: number): string;
render(width: number): string[];
}
export declare class BranchSummaryStatusIndicator extends StatusIndicator {
constructor(ui: TUI);
}
export declare class IdleStatus implements Component {
private height;
constructor(height?: number);
setHeight(height: number): void;
invalidate(): void;
render(width: number): string[];
}
//# sourceMappingURL=status-indicator.d.ts.map