UNPKG

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

38 lines 1.63 kB
/** * Error Recovery System - Main Entry Point * * This file serves as the main entry point for the Error Recovery System, now refactored * to use a modular structure to maintain the 500-line limit per file. * * Modular structure: * - error-recovery/core.ts - Main recovery orchestration, circuit breakers, and learning * - error-recovery/strategies.ts - Individual recovery strategy implementations */ import { CortexError, ErrorRecoveryResult, RetryConfiguration, ErrorLearningData, CircuitBreakerState } from './types/error-types'; import { CodeSavant } from './code-savant'; import { CognitiveCanvas } from './cognitive-canvas'; /** * Enhanced Error Recovery System for CortexWeaver V3.0 * Implements intelligent retry logic, CodeSavant integration, and learning mechanisms */ export declare class ErrorRecoverySystem { private core; constructor(cognitiveCanvas: CognitiveCanvas, codeSavant?: CodeSavant); /** * Main error recovery orchestration method */ recoverFromError(error: CortexError, operation: () => Promise<any>, config?: Partial<RetryConfiguration>): Promise<ErrorRecoveryResult>; /** * Get recovery statistics for monitoring */ getRecoveryStatistics(): { totalRecoveries: number; successRate: number; averageAttempts: number; circuitBreakerStates: Map<string, CircuitBreakerState>; learningDatabase: Map<string, ErrorLearningData>; }; } export { ErrorRecoveryCore } from './error-recovery/core'; export { ErrorRecoveryStrategies } from './error-recovery/strategies'; //# sourceMappingURL=error-recovery.d.ts.map