| 8 | // ============================================================================ |
| 9 | |
| 10 | export interface FrameworkAnalyzer { |
| 11 | /** Unique identifier for the analyzer (e.g., 'angular', 'react', 'vue') */ |
| 12 | readonly name: string; |
| 13 | |
| 14 | /** Framework version this analyzer supports */ |
| 15 | readonly version: string; |
| 16 | |
| 17 | /** File extensions this analyzer handles */ |
| 18 | readonly supportedExtensions: string[]; |
| 19 | |
| 20 | /** Check if this analyzer can handle a given file */ |
| 21 | canAnalyze(filePath: string, content?: string): boolean; |
| 22 | |
| 23 | /** Parse a file and extract structured information */ |
| 24 | analyze(filePath: string, content: string): Promise<AnalysisResult>; |
| 25 | |
| 26 | /** Detect framework-specific patterns and metadata from the entire codebase */ |
| 27 | detectCodebaseMetadata(rootPath: string): Promise<CodebaseMetadata>; |
| 28 | |
| 29 | /** |
| 30 | * Generate a concise summary of a code chunk (1-2 sentences) |
| 31 | * Optional - defaults to generic summary if not implemented |
| 32 | */ |
| 33 | summarize?(chunk: CodeChunk): string; |
| 34 | |
| 35 | /** Priority - higher number = higher priority (default: 50) */ |
| 36 | readonly priority: number; |
| 37 | |
| 38 | /** Get a regex to extract a code snippet for a detected pattern (optional) */ |
| 39 | getSnippetPattern?(category: string, name: string): RegExp | null; |
| 40 | } |
| 41 | |
| 42 | // ============================================================================ |
| 43 | // ANALYSIS RESULTS |
no outgoing calls
no test coverage detected