/** * Command dispatch for all /command handlers. * * Extracted from main.ts. Receives an AppCommandContext so it remains * decoupled from global state. Import-heavy commands use dynamic imports * to keep startup time low. */ import { getProjectContext } from '../utils/project'; import { AppExecutionContext } from './agentExecution'; export interface AppCommandContext extends AppExecutionContext { sessionId: string; /** Switch the conversation. Also records it as config's currentSessionId, * which autosave and the next launch read. */ setSessionId: (id: string) => void; setProjectContext: (ctx: ReturnType) => void; setHasWriteAccess: (v: boolean) => void; } /** * Returns a hint for an Ollama model name based on parameter count. * Models ≥7B are suitable for agent mode; smaller ones are chat-only. */ export declare function handleCommand(command: string, args: string[], ctx: AppCommandContext): Promise;