@code-yeongyu/senpi
Version:
Coding agent CLI with read, bash, edit, write tools and session management
30 lines • 1.03 kB
TypeScript
/**
* Generic selector component for extensions.
* Displays a list of string options with keyboard navigation.
*/
import { Container, type TUI } from "@earendil-works/pi-tui";
export interface ExtensionSelectorOptions {
tui?: TUI;
timeout?: number;
onToggleToolsExpanded?: () => void;
description?: string;
}
export declare class ExtensionSelectorComponent extends Container {
private static readonly DEFAULT_MAX_VISIBLE_OPTIONS;
private options;
private selectedIndex;
private listContainer;
private onSelectCallback;
private onCancelCallback;
private titleText;
private baseTitle;
private countdown;
private onToggleToolsExpanded;
private maxVisibleOptions;
private answerSettled;
constructor(title: string, options: string[], onSelect: (option: string) => void, onCancel: () => void, opts?: ExtensionSelectorOptions);
private updateList;
handleInput(keyData: string): void;
dispose(): void;
}
//# sourceMappingURL=extension-selector.d.ts.map