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