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

67 lines 2 kB
/** * Interface for analyzing diff content */ export interface DiffAnalysis { addedLines: number; removedLines: number; modifiedLines: number; complexity: 'low' | 'medium' | 'high'; hasStructuralChanges: boolean; } /** * Interface for content validation */ export interface ContentValidation { isValid: boolean; hasContent: boolean; hasChanges: boolean; estimatedImpact: 'minimal' | 'moderate' | 'significant'; } /** * PromptAnalyzer handles diff generation, content analysis, and validation * for prompt improvement workflows */ export declare class PromptAnalyzer { /** * Generate unified diff between original and improved content */ generateUnifiedDiff(originalContent: string, improvedContent: string, filename: string): Promise<string>; /** * Create a unified diff format string */ private createUnifiedDiff; /** * Analyze diff content for complexity and impact */ analyzeDiff(diff: string): DiffAnalysis; /** * Validate content for basic requirements */ validateContent(originalContent: string, improvedContent: string): ContentValidation; /** * Apply diff to content (simplified implementation) */ applyDiffToContent(originalContent: string, diff: string): string; /** * Extract key metrics from prompt content */ extractContentMetrics(content: string): { wordCount: number; lineCount: number; characterCount: number; hasInstructions: boolean; hasExamples: boolean; hasConstraints: boolean; }; /** * Compare content metrics between original and improved versions */ compareContentMetrics(originalContent: string, improvedContent: string): { wordCountDelta: number; lineCountDelta: number; characterCountDelta: number; structuralChanges: string[]; improvementIndicators: string[]; }; } //# sourceMappingURL=analyzer.d.ts.map