diff --git a/scripts/lib/npm-pack-budget.mts b/scripts/lib/npm-pack-budget.mts index fbd7882547c4..b1d5e409a5e1 100644 --- a/scripts/lib/npm-pack-budget.mts +++ b/scripts/lib/npm-pack-budget.mts @@ -5,8 +5,9 @@ import { resolveNpmJsonEntries } from "./npm-json-output.mts"; // startup/doctor OOM reports. 2026.4.12 intentionally stages Matrix runtime // dependencies, including crypto wasm, so packaged installs do not miss Docker // and gateway runtime dependencies. Keep the budget below the 2026.3.12 bloat -// level while allowing that mirrored runtime surface. -const NPM_PACK_UNPACKED_SIZE_BUDGET_BYTES = 202 * 1024 * 1024; +// level while allowing that mirrored runtime surface and the installed agent's +// bundled user documentation. +const NPM_PACK_UNPACKED_SIZE_BUDGET_BYTES = 204 * 1024 * 1024; function formatMiB(bytes: number): string { return `${(bytes / (1024 * 1024)).toFixed(1)} MiB`; diff --git a/test/release-check.test.ts b/test/release-check.test.ts index af6c9e26447f..3e3804269629 100644 --- a/test/release-check.test.ts +++ b/test/release-check.test.ts @@ -913,7 +913,7 @@ describe("collectPackUnpackedSizeErrors", () => { expect( collectPackUnpackedSizeErrors([makePackResult("openclaw-2026.3.12.tgz", 224_002_564)]), ).toEqual([ - "openclaw-2026.3.12.tgz unpackedSize 224002564 bytes (213.6 MiB) exceeds budget 211812352 bytes (202.0 MiB). Investigate duplicate channel shims, copied extension trees, or other accidental pack bloat before release.", + "openclaw-2026.3.12.tgz unpackedSize 224002564 bytes (213.6 MiB) exceeds budget 213909504 bytes (204.0 MiB). Investigate duplicate channel shims, copied extension trees, or other accidental pack bloat before release.", ]); });