UNPKG

@opichi/smartcode

Version:

Universal code intelligence MCP server - analyze any codebase with TypeScript excellence and multi-language support

55 lines 1.62 kB
export interface CodeNode { id: string; type: 'class' | 'function' | 'variable' | 'import' | 'export' | 'route' | 'model' | 'controller'; name: string; filePath: string; startLine: number; endLine: number; content: string; embedding?: number[]; metadata: Record<string, any>; } export interface CodeRelationship { from: string; to: string; type: 'calls' | 'imports' | 'extends' | 'implements' | 'uses' | 'defines' | 'belongs_to' | 'has_many'; metadata?: Record<string, any>; } export interface ProjectStructure { type: 'nodejs' | 'python' | 'ruby' | 'php' | 'java' | 'unknown'; framework?: string; packageManager?: string; entryPoints: string[]; configFiles: string[]; testDirectories: string[]; buildDirectories: string[]; } export interface SemanticSearchResult { node: CodeNode; score: number; context: string; relationships: CodeRelationship[]; } export interface ArchitecturalPattern { name: string; type: 'mvc' | 'api' | 'service' | 'repository' | 'factory' | 'observer' | 'singleton'; components: CodeNode[]; description: string; confidence: number; } export interface ImpactAnalysis { changedNode: CodeNode; directlyAffected: CodeNode[]; indirectlyAffected: CodeNode[]; riskLevel: 'low' | 'medium' | 'high'; suggestions: string[]; } export interface CodeSuggestion { type: 'implementation' | 'refactor' | 'pattern' | 'fix'; description: string; code?: string; filePath?: string; confidence: number; reasoning: string; } //# sourceMappingURL=types.d.ts.map