Skip to content

Commit 9ed3440

Browse files
committed
fix(build): exclude runtime engine dir from .brxt payload
The brxt build was including the engine that bootstrap.ensure_engine caches at src/codegraphagent/engine/ during local smoke tests, ballooning codegraphagent.brxt from 12 KB to 45 MB. The engine is downloaded on first use; it must not ship inside the .brxt.
1 parent 5fa5cc9 commit 9ed3440

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/build-brxt.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,15 @@ OUT="${REPO_ROOT}/codegraphagent.brxt"
1616
rm -f "$OUT"
1717

1818
# zip preserves directory layout; we just include the files the .brxt format requires.
19+
# Critically, exclude src/codegraphagent/engine/ — that's the runtime download
20+
# location populated by bootstrap.ensure_engine(), not part of the .brxt payload.
1921
zip -r "$OUT" \
2022
manifest.json \
2123
README.md \
2224
pyproject.toml \
2325
src/codegraphagent \
24-
-x '*/__pycache__/*' '*.pyc'
26+
-x '*/__pycache__/*' '*.pyc' \
27+
'src/codegraphagent/engine/*' 'src/codegraphagent/engine'
2528

2629
echo
2730
echo "Built: $OUT"

0 commit comments

Comments
 (0)