UNPKG

codecrucible-synth

Version:

Production-Ready AI Development Platform with Multi-Voice Synthesis, Smithery MCP Integration, Enterprise Security, and Zero-Timeout Reliability

56 lines 1.34 kB
/** * Worker Thread for Non-Blocking Code Analysis * Based on research-driven optimization report recommendations */ export interface AnalysisTask { id: string; files: string[]; prompt: string; options: any; timeout?: number; } export interface AnalysisResult { id: string; success: boolean; result?: any; error?: string; duration: number; } /** * Worker Pool Manager for handling analysis tasks */ export declare class AnalysisWorkerPool { private workers; private activeWorkers; private taskQueue; private readonly maxWorkers; private readonly workerTimeout; constructor(maxWorkers?: number, workerTimeout?: number); /** * Execute analysis task in worker thread */ executeAnalysis(task: AnalysisTask, config: any): Promise<AnalysisResult>; /** * Process queued tasks */ private processQueue; /** * Remove worker from pool */ private removeWorker; /** * Cleanup all workers */ cleanup(): Promise<void>; /** * Get current status */ getStatus(): { activeWorkers: number; queuedTasks: number; totalWorkers: number; maxWorkers: number; }; } export declare const analysisWorkerPool: AnalysisWorkerPool; //# sourceMappingURL=analysis-worker.d.ts.map