/** * Task Handler * * Handles task orchestration requests */ import type { OrchestrationResult, OrchestrationTask } from '../types.js'; export interface TaskHandlerDeps { taskHistory: OrchestrationHistoryItem[]; activeTasks: Map; asideId?: string; } interface OrchestrationHistoryItem { sessionId: string; description: string; tasks: number; result: OrchestrationResult; timestamp: string; } /** * Task Handler * Processes orchestrate-task requests */ export declare class TaskHandler { private planner; /** * Handle orchestrate-task request */ handleOrchestrateTask(args: { description: string; tasks?: OrchestrationTask[]; sessionId?: string; executionMode?: string; timeout?: number; confer?: boolean; conferFixture?: boolean; collocatedText?: string; userAsideId?: string; setActiveAside?: boolean; clearActiveAside?: boolean; }, deps: TaskHandlerDeps): Promise<{ content: Array<{ type: string; text: string; }>; }>; /** * Execute the orchestration plan. * For known MCP skill servers (code-review, security-audit, researcher, etc.), * we actually call the target tool. For other agents we record the assignment. */ private executePlan; private mapAgentToTool; private extractTextFromMcpResult; /** * Format orchestration response */ private formatOrchestrationResponse; } export {};