UNPKG

@code-yeongyu/senpi

Version:

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

30 lines • 1.01 kB
/** * Simple text input component for extensions. */ import { Container, type Focusable, type TUI } from "@earendil-works/pi-tui"; export interface ExtensionInputOptions { secret?: boolean; deadlineAtMs?: number; tui?: TUI; timeout?: number; /** Text the input opens with; the cursor lands at its end. */ initialValue?: string; description?: string; } export declare class ExtensionInputComponent extends Container implements Focusable { private input; private onSubmitCallback; private onCancelCallback; private titleText; private baseTitle; private countdown; private secretTimer; readonly secret: boolean; private _focused; get focused(): boolean; set focused(value: boolean); constructor(title: string, _placeholder: string | undefined, onSubmit: (value: string) => void, onCancel: () => void, opts?: ExtensionInputOptions); handleInput(keyData: string): void; dispose(): void; } //# sourceMappingURL=extension-input.d.ts.map