v2.1.3 first build was 540MB (vs Stanley 153MB). Investigation:
- Our zip: app/core/node_modules = 1200MB unzipped (467 dirs)
- Stanley: node_modules = 365MB unzipped (361 dirs)
Single biggest offender: @node-llama-cpp at 701MB (local LLM binary,
pulled transitively via clawdbot when we pre-installed bundled deps).
Stanley only `npm install openclaw` (transitive resolution gets ~360
dirs, no bundled plugin deps). OpenClaw lazy-stages plugin deps at
runtime. We were forcing pre-install of all 36 bundled deps which
pulled @node-llama-cpp + clawdbot tree.
Fix:
- Drop the "pre-install bundled deps" loop entirely
- Keep belt-and-suspenders prune of @node-llama-cpp in case it shows
up via a different transitive path