Phase 1: extract.js — tree-sitter AST parser (TS/JS/Python/Go/Java/Bash) + config parsers (YAML/HCL) Phase 2: graph.js — in-memory directed graph store with build/query/diff CLI Phase 3: namespace.js — cross-repo namespace registry with 3-tier resolution Phase 4: semantic-diff.js — categorized diffs with impact scoring (0-100) Phase 5: pipeline.js — batch extraction, incremental diffing, benchmarking Benchmark: 4,325 files, 21,646 nodes, 133,979 edges in 67s (15ms/file) BMad SPA reviews: all phases GO
84 lines
1.6 KiB
JSON
84 lines
1.6 KiB
JSON
{
|
|
"file": "/tmp/test_deployment.yaml",
|
|
"language": "yaml",
|
|
"entities": [
|
|
{
|
|
"id": "test_deployment.yaml",
|
|
"type": "Config",
|
|
"name": "test_deployment.yaml",
|
|
"kind": "yaml-config",
|
|
"visibility": "public",
|
|
"line_range": [
|
|
1,
|
|
12
|
|
]
|
|
},
|
|
{
|
|
"id": "test_deployment.yaml:apiVersion",
|
|
"type": "Config",
|
|
"name": "apiVersion",
|
|
"kind": "yaml-key",
|
|
"visibility": "public",
|
|
"line_range": [
|
|
1,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"id": "test_deployment.yaml:kind",
|
|
"type": "Config",
|
|
"name": "kind",
|
|
"kind": "yaml-key",
|
|
"visibility": "public",
|
|
"line_range": [
|
|
1,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"id": "test_deployment.yaml:metadata",
|
|
"type": "Config",
|
|
"name": "metadata",
|
|
"kind": "yaml-key",
|
|
"visibility": "public",
|
|
"line_range": [
|
|
1,
|
|
1
|
|
]
|
|
},
|
|
{
|
|
"id": "test_deployment.yaml:spec",
|
|
"type": "Config",
|
|
"name": "spec",
|
|
"kind": "yaml-key",
|
|
"visibility": "public",
|
|
"line_range": [
|
|
1,
|
|
1
|
|
]
|
|
}
|
|
],
|
|
"relationships": [
|
|
{
|
|
"type": "CONTAINS",
|
|
"source": "test_deployment.yaml",
|
|
"target": "test_deployment.yaml:apiVersion"
|
|
},
|
|
{
|
|
"type": "CONTAINS",
|
|
"source": "test_deployment.yaml",
|
|
"target": "test_deployment.yaml:kind"
|
|
},
|
|
{
|
|
"type": "CONTAINS",
|
|
"source": "test_deployment.yaml",
|
|
"target": "test_deployment.yaml:metadata"
|
|
},
|
|
{
|
|
"type": "CONTAINS",
|
|
"source": "test_deployment.yaml",
|
|
"target": "test_deployment.yaml:spec"
|
|
}
|
|
]
|
|
}
|