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
85 lines • 2.34 kB
TypeScript
import { Agent } from '../../agent';
export interface DebugAnalysis {
errorType: string;
severity: 'low' | 'medium' | 'high' | 'critical';
location?: {
file: string;
line?: number;
column?: number;
};
message: string;
suggestedFixes: string[];
rootCause?: string;
relatedErrors?: string[];
}
export interface TestFailureAnalysis {
testName: string;
failureReason: string;
expectedVsActual?: {
expected: any;
actual: any;
};
suggestedFixes: string[];
relatedCode?: string[];
}
export interface DebugResult {
success: boolean;
analyses: DebugAnalysis[];
testFailures: TestFailureAnalysis[];
recommendations: string[];
fixesApplied?: number;
error?: string;
}
/**
* DebuggerAgent - Refactored with simplified implementation
*
* Analyzes errors, test failures, and provides debugging assistance.
* The original 770-line implementation has been simplified to focus on core functionality.
*/
export declare class DebuggerAgent extends Agent {
/**
* Get the prompt template for debugging and error analysis
*/
getPromptTemplate(): string;
/**
* Analyze error logs and provide debugging insights
*/
analyzeErrors(errorLogs: string[]): Promise<DebugAnalysis[]>;
/**
* Analyze test failures and provide fixes
*/
analyzeTestFailures(testResults: any[]): Promise<TestFailureAnalysis[]>;
/**
* Execute debugging task
*/
executeTask(): Promise<DebugResult>;
/**
* Parse error log entry
*/
private parseErrorLog;
/**
* Generate fix suggestions for errors
*/
private generateErrorFixes;
/**
* Generate fix suggestions for test failures
*/
private generateFixSuggestions;
/**
* Identify root cause of error
*/
private identifyRootCause;
/**
* Generate debugging recommendations
*/
private generateRecommendations;
/**
* Analyze failure for orchestrator integration
*/
analyzeFailure(errorLog: string, context?: Record<string, any>): Promise<DebugAnalysis>;
/**
* Create warning pheromone for orchestrator integration
*/
createWarnPheromone(message: string, taskId?: string): Promise<void>;
}
//# sourceMappingURL=debugger-agent.d.ts.map