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

51 lines 1.8 kB
/** * Error Recovery Strategies Module * * Contains implementations of different error recovery strategies */ import { CortexError, ErrorRecoveryResult, RetryConfiguration } from '../types/error-types'; import { CodeSavant } from '../code-savant'; import { CognitiveCanvas } from '../cognitive-canvas'; export declare class ErrorRecoveryStrategies { private codeSavant; private cognitiveCanvas; constructor(cognitiveCanvas: CognitiveCanvas, codeSavant?: CodeSavant); /** * Execute retry strategy with intelligent backoff */ executeRetryStrategy(error: CortexError, operation: () => Promise<any>, result: ErrorRecoveryResult, retryConfig: RetryConfiguration): Promise<boolean>; /** * Execute CodeSavant intervention strategy */ executeCodeSavantStrategy(error: CortexError, operation: () => Promise<any>, result: ErrorRecoveryResult): Promise<boolean>; /** * Execute fallback strategy */ executeFallbackStrategy(error: CortexError, operation: () => Promise<any>, result: ErrorRecoveryResult): Promise<boolean>; /** * Escalate error to human intervention */ escalateToHuman(error: CortexError, result: ErrorRecoveryResult): Promise<void>; /** * Calculate backoff delay based on strategy */ private calculateBackoffDelay; /** * Enhance error with additional context */ private enhanceError; /** * Store CodeSavant analysis pheromone */ private storeCodeSavantPheromone; /** * Store escalation pheromone */ private storeEscalationPheromone; private sleep; private waitForResourceAvailability; private assessComplexity; private determineEscalationUrgency; private estimateResolutionTime; } //# sourceMappingURL=strategies.d.ts.map