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
31 lines
630 B
Bash
Executable File
31 lines
630 B
Bash
Executable File
#!/bin/bash
|
|
cd "$(dirname "$0")/.."
|
|
|
|
PASS=0
|
|
FAIL=0
|
|
TOTAL=0
|
|
|
|
echo "=== Dev Intel v2 — Ground Truth Benchmark Suite ==="
|
|
echo ""
|
|
|
|
for gt in test/ground-truth/*.json; do
|
|
name=$(basename "$gt" .json)
|
|
TOTAL=$((TOTAL + 1))
|
|
result=$(node validate-ground-truth.js "$gt" 2>&1)
|
|
if echo "$result" | grep -q "^PASS"; then
|
|
echo "✅ PASS $name"
|
|
PASS=$((PASS + 1))
|
|
else
|
|
echo "❌ FAIL $name"
|
|
echo "$result" | grep -E "^(Entities|Relationships|Missing)" | sed 's/^/ /'
|
|
FAIL=$((FAIL + 1))
|
|
fi
|
|
done
|
|
|
|
echo ""
|
|
echo "=== Results: $PASS/$TOTAL passed, $FAIL failed ==="
|
|
|
|
if [ $FAIL -gt 0 ]; then
|
|
exit 1
|
|
fi
|