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
93 lines
1.7 KiB
JSON
93 lines
1.7 KiB
JSON
{
|
|
"file": "/tmp/deploy.sh",
|
|
"language": "bash",
|
|
"entities": [
|
|
{
|
|
"id": "deploy.sh",
|
|
"type": "Module",
|
|
"name": "deploy.sh",
|
|
"kind": "module",
|
|
"visibility": "public",
|
|
"line_range": [
|
|
1,
|
|
17
|
|
]
|
|
},
|
|
{
|
|
"id": "dep:./utils.sh",
|
|
"type": "Dependency",
|
|
"name": "./utils.sh",
|
|
"kind": "import",
|
|
"visibility": "internal",
|
|
"line_range": [
|
|
2,
|
|
2
|
|
]
|
|
},
|
|
{
|
|
"id": "deploy.sh:build_image",
|
|
"type": "Function",
|
|
"name": "build_image",
|
|
"kind": "function",
|
|
"visibility": "public",
|
|
"line_range": [
|
|
4,
|
|
8
|
|
]
|
|
},
|
|
{
|
|
"id": "deploy.sh:deploy_k8s",
|
|
"type": "Function",
|
|
"name": "deploy_k8s",
|
|
"kind": "function",
|
|
"visibility": "public",
|
|
"line_range": [
|
|
10,
|
|
12
|
|
]
|
|
}
|
|
],
|
|
"relationships": [
|
|
{
|
|
"type": "IMPORTS",
|
|
"source": "deploy.sh",
|
|
"target": "dep:./utils.sh"
|
|
},
|
|
{
|
|
"type": "CONTAINS",
|
|
"source": "deploy.sh",
|
|
"target": "deploy.sh:build_image"
|
|
},
|
|
{
|
|
"type": "CALLS",
|
|
"source": "deploy.sh:build_image",
|
|
"target": "docker"
|
|
},
|
|
{
|
|
"type": "CONTAINS",
|
|
"source": "deploy.sh",
|
|
"target": "deploy.sh:deploy_k8s"
|
|
},
|
|
{
|
|
"type": "CALLS",
|
|
"source": "deploy.sh:deploy_k8s",
|
|
"target": "kubectl"
|
|
},
|
|
{
|
|
"type": "CALLS",
|
|
"source": "deploy.sh",
|
|
"target": "echo"
|
|
},
|
|
{
|
|
"type": "CALLS",
|
|
"source": "deploy.sh",
|
|
"target": "build_image"
|
|
},
|
|
{
|
|
"type": "CALLS",
|
|
"source": "deploy.sh",
|
|
"target": "deploy_k8s"
|
|
}
|
|
]
|
|
}
|