/** * ACE-TUI Command Registry * * KFE (Keys For Everything) command definitions. * Single command vocabulary for human operators, agents, and playbooks. */ export interface CommandDef { name: string; aliases: string[]; description: string; usage: string; handler: (args: string[], ctx: CommandContext) => Promise | void; completeFn?: (partial: string, ctx: CommandContext) => string[]; } export interface CommandContext { tui: TuiController; } /** Interface that the TUI main module must implement for commands to interact with it */ export interface TuiController { setProvider(name: string): boolean; getProvider(): string; getProviders(): string[]; setModel(name: string): void; getModel(): string; getProviderModels(provider?: string): Promise; searchModels(query: string): string[]; getOllamaModels(): Promise; pullModel(name: string): Promise; startAgent(role: string): Promise; stopAgent(role: string): void; getActiveAgents(): string[]; getAllAgentRoles(): string[]; switchTab(index: number): void; createChatTab(): void; createLogTab(): void; closeCurrentTab(): void; showMessage(text: string, level?: "info" | "warn" | "error"): void; clearView(): void; refresh(): void; getStatus(): Record; quit(): void; sendChatMessage(text: string): Promise; setConfig(key: string, value: string): void; getConfig(key: string): string | undefined; } export declare class CommandRegistry { private commands; register(cmd: CommandDef): void; get(name: string): CommandDef | undefined; getAll(): CommandDef[]; /** Parse and execute a command string */ execute(input: string, ctx: CommandContext): Promise; /** Get completions for a partial command */ complete(partial: string, ctx?: CommandContext): string[]; } export declare function registerBuiltinCommands(registry: CommandRegistry): void; //# sourceMappingURL=commands.d.ts.map