Commit c573a3f
feat(viz): surface AP all-file edges — doc References + File→File imports
AP 0.2.0 indexes every file (File nodes for .js/.md/.json/.pdf/...) and adds
direct File→File edges: Imports_File_File (.js import/require) and the new
References_File_File (Markdown [text](path) links). Query both in
_impact_for_graph and fold them into the file-level direction rollups so the
impact panel shows real edges for non-AST and frontend files:
- references / referenced_by (doc links)
- imports folded into depends_on / depended_on_by
Richest-graph selection + empty-state check updated to count them.
Frontend impact diagram renders the References groups.
Verified against the freshly all-file-indexed Cortex graph (1160 files):
References_File_File resolves (CONTRIBUTING.md→README.md, README.md→
docs/papers/science.md). py compile + ruff clean; trace.js parses.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent c07e179 commit c573a3f
2 files changed
Lines changed: 63 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
347 | 371 | | |
348 | 372 | | |
349 | 373 | | |
| |||
437 | 461 | | |
438 | 462 | | |
439 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
440 | 489 | | |
441 | 490 | | |
442 | 491 | | |
443 | 492 | | |
444 | 493 | | |
445 | | - | |
446 | | - | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
447 | 498 | | |
448 | 499 | | |
449 | 500 | | |
| |||
491 | 542 | | |
492 | 543 | | |
493 | 544 | | |
| 545 | + | |
| 546 | + | |
| 547 | + | |
| 548 | + | |
494 | 549 | | |
495 | 550 | | |
496 | 551 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
271 | 274 | | |
272 | 275 | | |
273 | 276 | | |
| |||
276 | 279 | | |
277 | 280 | | |
278 | 281 | | |
279 | | - | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
280 | 285 | | |
281 | 286 | | |
282 | 287 | | |
| |||
0 commit comments