cortexweaver
Version:
CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate
43 lines • 1.64 kB
TypeScript
import { CognitiveCanvas } from '../cognitive-canvas';
import { SessionManager } from '../session';
import { CritiqueAgent } from '../agents/critique';
import { DebuggerAgent } from '../agents/debugger';
import { AgentSpawner } from './agent-spawner';
import { WorkflowManager } from './workflow-manager';
import { ErrorHandlingResult } from './error-handler-strategies';
export { ErrorContext, RecoveryStrategy, ErrorHandlingResult } from './error-handler-strategies';
export declare class ErrorHandler {
private canvas;
private sessionManager;
private agentSpawner;
private workflowManager;
private critiqueAgent;
private debuggerAgent;
private strategies;
constructor(canvas: CognitiveCanvas, sessionManager: SessionManager, agentSpawner: AgentSpawner, workflowManager: WorkflowManager, critiqueAgent: CritiqueAgent, debuggerAgent: DebuggerAgent);
/**
* Handle task failure with appropriate recovery strategy
*/
handleTaskFailure(taskId: string, failure: any): Promise<ErrorHandlingResult>;
/**
* Handle impasse situations
*/
handleImpasse(taskId: string): Promise<ErrorHandlingResult>;
/**
* Perform critique check for task
*/
performCritiqueCheck(taskId: string): Promise<boolean>;
/**
* Get active CodeSavant sessions for compatibility
*/
getActiveCodeSavantSessions(): Set<string>;
/**
* Get error history for a specific task
*/
getTaskErrorHistory(taskId: string): any[];
/**
* Get error recovery statistics
*/
getErrorRecoveryStatistics(): any;
}
//# sourceMappingURL=error-handler.d.ts.map