()
| 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, '/'); |
no outgoing calls
no test coverage detected