Commit dacc92c
committed
feat: Add relationship graph extraction for LLM consumption
Generate per-product relationship JSON files to static/relations/ that
map class inheritance, trait usage, dependencies, instantiation, and
static calls between symbols. This enables LLMs to understand codebase
architecture without direct code access.
- Add extract-relations.php (PHP tokenizer-based extractor)
- Add generate-relations.mjs (Node.js runner script)
- Add relations:generate npm script
- Update docs:generate to include relations step
- Update deploy.yml workflow to run relations generation
- Add static/relations/ to .gitignore1 parent 80809eb commit dacc92c
5 files changed
Lines changed: 793 additions & 1 deletion
File tree
- .github/workflows
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
0 commit comments