fix(bundle): prune node_modules during agent tarball walk

This commit is contained in:
2026-05-10 05:17:32 -04:00
parent d3899dde96
commit 967aec56d2

View File

@@ -79,7 +79,7 @@ def _iter_included(root: pathlib.Path) -> list[tuple[pathlib.Path, str]]:
dirnames[:] = [
d for d in dirnames
if d != "__pycache__"
if d not in ("__pycache__", "node_modules")
and f"{rel_dir}/{d}" not in _EXCLUDED_DECNET_SUBTREES
]