Dev Intel Pipeline v2 — multi-language semantic graph extractor
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
This commit is contained in:
98
test/ground-truth/go-server.json
Normal file
98
test/ground-truth/go-server.json
Normal file
@@ -0,0 +1,98 @@
|
||||
{
|
||||
"file": "/tmp/test_go.go",
|
||||
"language": "go",
|
||||
"entities": [
|
||||
{
|
||||
"id": "test_go.go",
|
||||
"type": "Module",
|
||||
"name": "test_go.go",
|
||||
"kind": "module",
|
||||
"visibility": "public",
|
||||
"line_range": [
|
||||
1,
|
||||
21
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "dep:fmt",
|
||||
"type": "Dependency",
|
||||
"name": "fmt",
|
||||
"kind": "import",
|
||||
"visibility": "internal",
|
||||
"line_range": [
|
||||
4,
|
||||
4
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "dep:net/http",
|
||||
"type": "Dependency",
|
||||
"name": "net/http",
|
||||
"kind": "import",
|
||||
"visibility": "internal",
|
||||
"line_range": [
|
||||
5,
|
||||
5
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "test_go.go:Start",
|
||||
"type": "Function",
|
||||
"name": "Start",
|
||||
"kind": "method",
|
||||
"visibility": "public",
|
||||
"line_range": [
|
||||
12,
|
||||
15
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "test_go.go:main",
|
||||
"type": "Function",
|
||||
"name": "main",
|
||||
"kind": "function",
|
||||
"visibility": "internal",
|
||||
"line_range": [
|
||||
17,
|
||||
20
|
||||
]
|
||||
}
|
||||
],
|
||||
"relationships": [
|
||||
{
|
||||
"type": "IMPORTS",
|
||||
"source": "test_go.go",
|
||||
"target": "dep:fmt"
|
||||
},
|
||||
{
|
||||
"type": "IMPORTS",
|
||||
"source": "test_go.go",
|
||||
"target": "dep:net/http"
|
||||
},
|
||||
{
|
||||
"type": "CONTAINS",
|
||||
"source": "test_go.go",
|
||||
"target": "test_go.go:Start"
|
||||
},
|
||||
{
|
||||
"type": "CALLS",
|
||||
"source": "test_go.go:Start",
|
||||
"target": "fmt.Println"
|
||||
},
|
||||
{
|
||||
"type": "CALLS",
|
||||
"source": "test_go.go:Start",
|
||||
"target": "http.ListenAndServe"
|
||||
},
|
||||
{
|
||||
"type": "CONTAINS",
|
||||
"source": "test_go.go",
|
||||
"target": "test_go.go:main"
|
||||
},
|
||||
{
|
||||
"type": "CALLS",
|
||||
"source": "test_go.go:main",
|
||||
"target": "s.Start"
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user