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

Function getImportsGraph

src/tools/search-codebase.ts:286–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

284
285 // Helper to get imports graph from relationships sidecar (preferred) or intelligence
286 function getImportsGraph(): Record<string, string[]> | null {
287 if (relationships?.graph?.imports) {
288 return relationships.graph.imports as Record<string, string[]>;
289 }
290 if (intelligence?.internalFileGraph?.imports) {
291 return intelligence.internalFileGraph.imports as Record<string, string[]>;
292 }
293 return null;
294 }
295
296 type ImportEdgeDetail = { line?: number; importedSymbols?: string[] };
297 type ImportDetailsGraph = Record<string, Record<string, ImportEdgeDetail>>;

Callers 3

computeImpactCandidatesFunction · 0.85
handleFunction · 0.85
buildRelationshipHintsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected