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
42 lines • 1.82 kB
JavaScript
;
/**
* 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
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.ErrorRecoveryStrategies = exports.ErrorRecoveryCore = exports.ErrorRecoverySystem = void 0;
const core_1 = require("./error-recovery/core");
/**
* Enhanced Error Recovery System for CortexWeaver V3.0
* Implements intelligent retry logic, CodeSavant integration, and learning mechanisms
*/
class ErrorRecoverySystem {
constructor(cognitiveCanvas, codeSavant) {
this.core = new core_1.ErrorRecoveryCore(cognitiveCanvas, codeSavant);
}
/**
* Main error recovery orchestration method
*/
async recoverFromError(error, operation, config) {
return this.core.recoverFromError(error, operation, config);
}
/**
* Get recovery statistics for monitoring
*/
getRecoveryStatistics() {
return this.core.getRecoveryStatistics();
}
}
exports.ErrorRecoverySystem = ErrorRecoverySystem;
// Re-export modular components for direct access
var core_2 = require("./error-recovery/core");
Object.defineProperty(exports, "ErrorRecoveryCore", { enumerable: true, get: function () { return core_2.ErrorRecoveryCore; } });
var strategies_1 = require("./error-recovery/strategies");
Object.defineProperty(exports, "ErrorRecoveryStrategies", { enumerable: true, get: function () { return strategies_1.ErrorRecoveryStrategies; } });
//# sourceMappingURL=error-recovery.js.map