/** * Exploration Orchestrator - Main coordinator for parallel explorations * * Coordinates the entire exploration lifecycle from initialization to cleanup */ import type { Exploration, ExplorationConfig, ExplorationSummary } from '../types/exploration.types.js'; import { type ExecutionResult } from './execution-modes.js'; /** * Get error message from unknown error */ export interface OrchestratorOptions { config: ExplorationConfig; sessionId?: string; task: string; } export interface OrchestratorResult { comparison_report_path?: string; execution_result: ExecutionResult; exploration_id: string; success: boolean; } /** * Main orchestrator for exploration lifecycle */ export declare class ExplorationOrchestrator { private containerManager; private resourceAllocator; private safetyValidator; private stateManager; private worktreeManager; constructor(); /** * Start a new exploration */ startExploration(options: OrchestratorOptions): Promise; /** * Create worktrees for exploration */ private createWorktrees; /** * Allocate resources for all worktrees */ private allocateResources; /** * Execute exploration using appropriate strategy */ private executeExploration; /** * Generate comparison report */ private generateComparisonReport; /** * Cleanup containers */ private cleanupContainers; /** * Full cleanup (containers, worktrees, state) */ cleanup(exploration: Exploration, force?: boolean): Promise; /** * Log exploration summary */ private logSummary; /** * Resume a stopped exploration */ resumeExploration(explorationId: string): Promise; /** * Stop a running exploration */ stopExploration(explorationId: string): Promise; /** * Get exploration status */ getExplorationStatus(explorationId: string): Promise; /** * List all explorations */ listExplorations(filters?: { activeOnly?: boolean; status?: string; }): Promise; } /** * Create and start a new exploration (convenience function) */ export declare function startExploration(task: string, config: ExplorationConfig): Promise; /** * Stop a running exploration (convenience function) */ export declare function stopExploration(explorationId: string): Promise; /** * Cleanup an exploration (convenience function) */ export declare function cleanupExploration(explorationId: string, force?: boolean): Promise; //# sourceMappingURL=orchestrator.d.ts.map