/** * Slash-command handler for the Ink REPL. * All functions return string[] rather than printing directly to stdout, * so the Ink app can push them into Static history. */ import type { ExternalReplCommand } from './repl.js'; export interface CommandDeps { agentId: string; threadId: string; externalCommands: ExternalReplCommand[]; daemonPort?: number; resolveCommandInput?: (input: string) => Promise; } export interface CommandResult { handled: boolean; lines?: string[]; chatInput?: string; newAgentId?: string; newThreadId?: string; exit?: boolean; } export interface ResolvedCommandInput { kind: 'builtin' | 'chat' | 'unknown' | 'unsupported'; command: string; rawInput: string; text?: string; reason?: string; skillName?: string; } export declare function formatAutomationBlock(automation: { id?: string; name?: string; status?: 'ACTIVE' | 'PAUSED'; prompt?: string; rrule?: string; state?: { execution_status?: 'idle' | 'claimed' | 'running'; started_at?: string | null; claimed_at?: string | null; next_run?: string | null; last_run?: string | null; last_result_preview?: string | null; last_error?: string | null; run_count?: number; failure_count?: number; } | null; }): string[]; export declare function executeSlashCommand(input: string, deps: CommandDeps): Promise;