UNPKG

arela

Version:

AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.

66 lines 1.85 kB
/** * Flow Analyzer Module * Main orchestration for flow analysis: * - Discovers entry points * - Traces execution paths * - Checks standards * - Generates refactor proposals */ import { EntryPoint } from './discovery.js'; import { StandardViolation } from './standards.js'; export interface AnalysisConfig { cwd: string; flowName: string; verbose?: boolean; } export interface RefactorProposal { id: string; title: string; description: string; affectedFiles: string[]; complexity: 'simple' | 'medium' | 'complex'; priority: number; estimatedEffort: string; impact: { performance?: string; security?: string; ux?: string; architecture?: string; }; implementationSteps: string[]; } export interface FlowAnalysisResult { flowName: string; timestamp: string; entryPoints: EntryPoint[]; executionPaths: any[]; standardViolations: StandardViolation[]; refactorProposals: RefactorProposal[]; analysis: { totalEntryPoints: number; totalPaths: number; totalViolations: number; averagePathDepth: number; scores: { security: number; ux: number; architecture: number; performance: number; overall: number; }; recommendations: string[]; }; } /** * Analyze a code flow from entry points through the codebase */ export declare function analyzeFlow(config: AnalysisConfig): Promise<FlowAnalysisResult>; /** * Export analysis result as JSON for further processing */ export declare function exportAnalysis(result: FlowAnalysisResult, outputPath: string): void; /** * Generate a markdown report */ export declare function generateMarkdownReport(result: FlowAnalysisResult): string; //# sourceMappingURL=analyzer.d.ts.map