@mariozechner/pi-coding-agent
Version:
Coding agent CLI with read, bash, edit, write tools and session management
20 lines • 861 B
TypeScript
/**
* Multi-line editor component for extensions.
* Supports Ctrl+G for external editor.
*/
import { Container, type EditorOptions, type Focusable, type TUI } from "@mariozechner/pi-tui";
import type { KeybindingsManager } from "../../../core/keybindings.js";
export declare class ExtensionEditorComponent extends Container implements Focusable {
private editor;
private onSubmitCallback;
private onCancelCallback;
private tui;
private keybindings;
private _focused;
get focused(): boolean;
set focused(value: boolean);
constructor(tui: TUI, keybindings: KeybindingsManager, title: string, prefill: string | undefined, onSubmit: (value: string) => void, onCancel: () => void, options?: EditorOptions);
handleInput(keyData: string): void;
private openExternalEditor;
}
//# sourceMappingURL=extension-editor.d.ts.map