Skip to content

Commit 3a82fd0

Browse files
committed
fix(graphify): exclude yaml config files and package directories from graph extraction, update knowledge graph
1 parent b3cdaae commit 3a82fd0

5 files changed

Lines changed: 228 additions & 3590 deletions

File tree

.graphifyignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,13 @@ graphify-out/
1313
*.log
1414
.DS_Store
1515
Thumbs.db
16+
17+
# Exclude packaging and extension folders
18+
editors/
19+
python-installer/
20+
python-installer-lang/
21+
design/
22+
*.vsix
23+
mkdocs.yml
24+
*.yml
25+
*.yaml

graphify-out/GRAPH_REPORT.md

Lines changed: 30 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
- cluster-only mode — file stats not available
55

66
## Summary
7-
- 131 nodes · 297 edges · 13 communities (10 shown, 3 thin omitted)
7+
- 25 nodes · 95 edges · 4 communities (3 shown, 1 thin omitted)
88
- Extraction: 100% EXTRACTED · 0% INFERRED · 0% AMBIGUOUS
99
- Token cost: 0 input · 0 output
1010

1111
## Graph Freshness
12-
- Built from commit: `89f884a7`
12+
- Built from commit: `b3cdaaec`
1313
- Run `git rev-parse HEAD` and compare to check if the graph is stale.
1414
- Run `graphify update .` after code changes (no API cost).
1515

@@ -18,95 +18,61 @@
1818
- [[_COMMUNITY_Community 1|Community 1]]
1919
- [[_COMMUNITY_Community 2|Community 2]]
2020
- [[_COMMUNITY_Community 3|Community 3]]
21-
- [[_COMMUNITY_Community 4|Community 4]]
22-
- [[_COMMUNITY_Community 5|Community 5]]
23-
- [[_COMMUNITY_Community 6|Community 6]]
24-
- [[_COMMUNITY_Community 7|Community 7]]
25-
- [[_COMMUNITY_Community 8|Community 8]]
26-
- [[_COMMUNITY_Community 9|Community 9]]
27-
- [[_COMMUNITY_Community 10|Community 10]]
28-
- [[_COMMUNITY_Community 11|Community 11]]
2921

3022
## God Nodes (most connected - your core abstractions)
3123
1. `techscript_cli` - 19 edges
3224
2. `techscript_common` - 18 edges
3325
3. `techscript_syntax` - 16 edges
3426
4. `techscript_ast` - 15 edges
35-
5. `StdlibRegistry` - 13 edges
36-
6. `Parser<'a>` - 12 edges
37-
7. `DiagnosticReporter` - 12 edges
38-
8. `ParseResult` - 12 edges
39-
9. `techscript_errors` - 12 edges
40-
10. `StdlibModule` - 10 edges
27+
5. `techscript_errors` - 12 edges
28+
6. `techscript_interpreter` - 10 edges
29+
7. `techscript_ir` - 10 edges
30+
8. `techscript_semantic` - 10 edges
31+
9. `techscript_vm` - 9 edges
32+
10. `techscript_runtime` - 8 edges
4133

4234
## Surprising Connections (you probably didn't know these)
43-
- `techscript_cli` --crate_depends_on--> `techscript_native_runtime` [EXTRACTED]
44-
cli/Cargo.toml → runtime/native_runtime/Cargo.toml
45-
- `techscript_cli` --crate_depends_on--> `techscript_package_manager` [EXTRACTED]
46-
cli/Cargo.toml → tools/package-manager/Cargo.toml
4735
- `techscript_cli` --crate_depends_on--> `techscript_ast` [EXTRACTED]
4836
cli/Cargo.toml → compiler/ast/Cargo.toml
4937
- `techscript_formatter` --crate_depends_on--> `techscript_ast` [EXTRACTED]
5038
tools/formatter/Cargo.toml → compiler/ast/Cargo.toml
5139
- `techscript_interpreter` --crate_depends_on--> `techscript_ast` [EXTRACTED]
5240
runtime/interpreter/Cargo.toml → compiler/ast/Cargo.toml
41+
- `techscript_linter` --crate_depends_on--> `techscript_ast` [EXTRACTED]
42+
tools/linter/Cargo.toml → compiler/ast/Cargo.toml
43+
- `techscript_lsp` --crate_depends_on--> `techscript_ast` [EXTRACTED]
44+
tools/lsp/Cargo.toml → compiler/ast/Cargo.toml
5345

5446
## Import Cycles
55-
- 1-file cycle: `compiler/bytecode/src/lib.rs -> compiler/bytecode/src/lib.rs`
56-
- 1-file cycle: `runtime/interpreter/src/lib.rs -> runtime/interpreter/src/lib.rs`
57-
- 1-file cycle: `stdlib/src/lib.rs -> stdlib/src/lib.rs`
47+
- None detected.
5848

59-
## Communities (13 total, 3 thin omitted)
49+
## Communities (4 total, 1 thin omitted)
6050

6151
### Community 0 - "Community 0"
62-
Cohesion: 0.23
63-
Nodes (15): DiagnosticReporter, Statement, ConstDecl, EnumDecl, ExportDecl, FuncDecl, Ident, ModelDecl (+7 more)
52+
Cohesion: 0.39
53+
Nodes (9): techscript_builtins, techscript_cli, techscript_gc, techscript_interpreter, techscript_native_runtime, techscript_package_manager, techscript_runtime, techscript_stdlib (+1 more)
6454

6555
### Community 1 - "Community 1"
66-
Cohesion: 0.34
67-
Nodes (24): techscript_ast, techscript_builtins, techscript_bytecode, techscript_cli, techscript_common, techscript_errors, techscript_formatter, techscript_gc (+16 more)
56+
Cohesion: 0.61
57+
Nodes (9): techscript_common, techscript_errors, techscript_formatter, techscript_lexer, techscript_linter, techscript_lsp, techscript_module_resolver, techscript_parser (+1 more)
6858

6959
### Community 2 - "Community 2"
70-
Cohesion: 0.16
71-
Nodes (11): BytecodeModule, CheckedProgram, Program, LoweringResult, Module, Result, RuntimeError, compile() (+3 more)
72-
73-
### Community 3 - "Community 3"
74-
Cohesion: 0.25
75-
Nodes (10): DiagnosticReporter, Program, Result, Statement, Vec, Diagnostic, parse(), parse_recovered() (+2 more)
76-
77-
### Community 4 - "Community 4"
78-
Cohesion: 0.26
79-
Nodes (4): Default, Self, StdlibRegistry, Option
80-
81-
### Community 5 - "Community 5"
82-
Cohesion: 0.31
83-
Nodes (8): Box, FnOnce, RuntimeContext, RuntimeValue, AsyncTask, Result, RuntimeError, Vec
84-
85-
### Community 6 - "Community 6"
86-
Cohesion: 0.29
87-
Nodes (6): Capability, HashMap, Rc, Scheduler, StdlibModule, VecDeque
88-
89-
### Community 7 - "Community 7"
90-
Cohesion: 0.25
91-
Nodes (5): Callable, MockFunction, StdFunction, StdFnCallback, String
92-
93-
### Community 8 - "Community 8"
94-
Cohesion: 0.40
95-
Nodes (4): Option, Commands, Cli, Commands
60+
Cohesion: 0.80
61+
Nodes (6): techscript_ast, techscript_bytecode, techscript_ir, techscript_llvm_backend, techscript_optimizer, techscript_syntax
9662

9763
## Knowledge Gaps
98-
- **25 isolated node(s):** `Commands`, `Option`, `Commands`, `Program`, `LoweringResult` (+20 more)
64+
- **4 isolated node(s):** `techscript_gc`, `techscript_native_runtime`, `techscript_package_manager`, `techscript_packager`
9965
These have ≤1 connection - possible missing edges or undocumented components.
100-
- **3 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
66+
- **1 thin communities (<3 nodes) omitted from report** — run `graphify query` to explore isolated nodes.
10167

10268
## Suggested Questions
10369
_Questions this graph is uniquely positioned to answer:_
10470

105-
- **Why does `StdlibRegistry` connect `Community 4` to `Community 6`, `Community 7`?**
106-
_High betweenness centrality (0.029) - this node is a cross-community bridge._
107-
- **Why does `StdFunction` connect `Community 7` to `Community 5`, `Community 6`?**
108-
_High betweenness centrality (0.017) - this node is a cross-community bridge._
109-
- **Why does `StdlibModule` connect `Community 6` to `Community 4`, `Community 5`, `Community 7`?**
110-
_High betweenness centrality (0.016) - this node is a cross-community bridge._
111-
- **What connects `Commands`, `Option`, `Commands` to the rest of the system?**
112-
_25 weakly-connected nodes found - possible documentation gaps or missing edges._
71+
- **Why does `techscript_cli` connect `Community 0` to `Community 1`, `Community 2`?**
72+
_High betweenness centrality (0.238) - this node is a cross-community bridge._
73+
- **Why does `techscript_interpreter` connect `Community 0` to `Community 1`, `Community 2`?**
74+
_High betweenness centrality (0.122) - this node is a cross-community bridge._
75+
- **Why does `techscript_common` connect `Community 1` to `Community 0`, `Community 2`?**
76+
_High betweenness centrality (0.112) - this node is a cross-community bridge._
77+
- **What connects `techscript_gc`, `techscript_native_runtime`, `techscript_package_manager` to the rest of the system?**
78+
_4 weakly-connected nodes found - possible documentation gaps or missing edges._

graphify-out/graph.html

Lines changed: 4 additions & 4 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)