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

91 lines 2.87 kB
import { ClaudeClient } from '../claude-client'; import { CognitiveCanvas } from '../cognitive-canvas'; import { MCPClient } from '../mcp-client'; export interface CritiqueResult { success: boolean; critique?: { issues: Array<{ severity: 'low' | 'medium' | 'high'; type: string; location: string; description: string; suggestion?: string; }>; overallQuality: 'poor' | 'fair' | 'good' | 'excellent'; recommendations: string[]; }; critiqueNodeId?: string; error?: string; performance?: { analysisTimeMs: number; tokenUsage: { inputTokens: number; outputTokens: number; totalTokens: number; }; }; } export interface StructuredFeedback { artifactId: string; overallSeverity: 'low' | 'medium' | 'high'; issues: Array<{ severity: 'low' | 'medium' | 'high'; type: string; location: string; description: string; suggestion?: string; }>; actionRequired: boolean; pauseDownstream: boolean; recommendations: string[]; resolutionSteps: string[]; priority: 'low' | 'medium' | 'high' | 'urgent'; immediateAction?: boolean; } export declare class CritiqueAgent { private claudeClient; private cognitiveCanvas; private mcpClient?; private _isRunning; private _currentScanId; private scanInterval?; private feedbackCallback?; constructor(claudeClient: ClaudeClient, cognitiveCanvas: CognitiveCanvas, mcpClient?: MCPClient); get role(): string; get capabilities(): string[]; get isRunning(): boolean; get currentScanId(): string | null; /** * Start continuous scanning for new artifacts to critique */ startContinuousScanning(projectId: string, feedbackCallback?: (feedback: StructuredFeedback) => void): Promise<string | null>; /** * Stop continuous scanning */ stopScanning(): Promise<boolean>; /** * Analyze a specific artifact and provide critique */ analyzeArtifact(artifactId: string): Promise<CritiqueResult>; /** * Generate structured feedback for Orchestrator consumption */ generateStructuredFeedback(artifactId: string, critique: any, overallSeverity: 'low' | 'medium' | 'high'): Promise<StructuredFeedback>; /** * Batch analyze multiple artifacts efficiently */ batchAnalyzeArtifacts(artifactIds: string[]): Promise<CritiqueResult[]>; /** * Build critique prompt for Claude */ private buildCritiquePrompt; /** * Determine overall severity from individual issues */ private determineOverallSeverity; /** * Generate resolution steps from issues */ private generateResolutionSteps; } //# sourceMappingURL=critique.d.ts.map