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

Function getImportDetailsGraph

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

Source from the content-addressed store, hash-verified

297 type ImportDetailsGraph = Record<string, Record<string, ImportEdgeDetail>>;
298
299 function getImportDetailsGraph(): ImportDetailsGraph | null {
300 if (relationships?.graph?.importDetails) {
301 return relationships.graph.importDetails as ImportDetailsGraph;
302 }
303 const internalDetails = intelligence?.internalFileGraph?.importDetails;
304 if (internalDetails) {
305 return internalDetails as ImportDetailsGraph;
306 }
307 return null;
308 }
309
310 function normalizeGraphPath(filePath: string): string {
311 const normalized = filePath.replace(/\\/g, '/');

Callers 1

computeImpactCandidatesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected