MCPcopy Index your code
hub / github.com/PatrickSys/codebase-context / FrameworkAnalyzer

Interface FrameworkAnalyzer

src/types/index.ts:10–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8// ============================================================================
9
10export 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

Implementers 4

AngularAnalyzersrc/analyzers/angular/index.ts
ReactAnalyzersrc/analyzers/react/index.ts
NextJsAnalyzersrc/analyzers/nextjs/index.ts
GenericAnalyzersrc/analyzers/generic/index.ts

Calls

no outgoing calls

Tested by

no test coverage detected