UNPKG

@opichi/smartcode

Version:

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

33 lines 1.29 kB
import { CodeNode, CodeRelationship, ProjectStructure } from '../types.js'; export declare class CodeKnowledgeGraph { private nodes; private relationships; private projectStructure; constructor(); addNode(node: CodeNode): void; addNodes(nodes: CodeNode[]): void; addRelationship(relationship: CodeRelationship): void; setProjectStructure(structure: ProjectStructure): void; buildRelationships(): void; private buildImportRelationships; private buildClassMethodRelationships; private buildCallRelationships; private buildArchitecturalRelationships; private buildMVCRelationships; private buildRouteRelationships; private findNodesByFile; private findNodesByPattern; private isRelated; private extractEntityName; private extractControllerFromRoute; getRelatedNodes(nodeId: string, relationshipType?: CodeRelationship['type']): CodeNode[]; getNodesByType(type: CodeNode['type']): CodeNode[]; findNodesByName(name: string): CodeNode[]; getArchitecturalComponents(): Map<string, CodeNode[]>; getImpactRadius(nodeId: string, maxDepth?: number): Set<string>; exportGraph(): { nodes: CodeNode[]; relationships: CodeRelationship[]; }; } //# sourceMappingURL=graph.d.ts.map