3D engine that AI agents drive
Stop shipping CHANGELOG.md in the npm package
Nguyen Xuan An9fbda1b440db
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 66aed99d..03c3d1f9 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,6 +2,7 @@## Unreleased+- Take 34 KB of headroom under the npm archive budget without raising it (issue #177). `CHANGELOG.md` no longer ships in the package, because GitHub serves it; the archive went from 740,972 to 705,961 bytes against the 740,000 budget. `bench/size/README.md` now says how the budget is set and what it protects.- Add a test that fails when the MCP tool count in `docs/guide.md`, `docs/mcp.md`, `index.html` or `scripts/smoke-mcp.mjs` differs from the `tools/list` result (issue #180). The server registers 22 tools; the 23rd `register(` in the file is the function definition, so the documented count was right.- A renderer no longer draws its shadow map a second time on the first frame when the frame has no assembly; the constructor already drew it. On `mountain-valley` that removes 9.72 million shadow triangles from the first frame, with identical pictures (issue #171). `node bench/reference/profile-scene.mjs <scene>` prints where a scene's time goes, and `frame-time.mjs --plain` measures scenes that are too large for the light bake.- Tell an agent when its scene is a closed room with no bake (issue #163). `scene_inspect` now returns a `closed-room-without-bake` diagnostic when 90 percent or more of 48 rays from the middle of the scene hit a front face, and names `bake`; measured against Cycles a closed room goes from 0.1430 and 0.1436 (`dark-shaft`, `temple-hall`) to 0.0609 and 0.0560 once baked. No frame cost and no schema change; agent scene entry grows 884 bytes gzip. `bakeSkyVisibility` in `light-bake` writes only the occlusion map (0.1021 and 0.0856 in under a second) and is not applied automatically. **A closed room without a bake now shows a warning in `scene_inspect`.**diff --git a/bench/size/README.md b/bench/size/README.mdindex 16025849..30f77d95 100644--- a/bench/size/README.md+++ b/bench/size/README.md@@ -43,6 +43,28 @@ Use `--set-budgets` to reset every budget to 2% over the current size. Use it afMoving code into installed dependencies would shrink the archive further but adds install size to every consumer, including library users who never run MCP. Making `@modelcontextprotocol/server` and `zod` dependencies saved about 125 KB of archive for about 14.5 MB on disk, so it was not kept.+### How the archive budget is set++The budget is a hand-set ceiling, not a measurement. Two rules decide it.++- **It protects install size.** The archive is what every consumer downloads, including library users who never run MCP. The ceiling stops slow growth that no single pull request notices.+- **It keeps 20 KB of headroom.** The next feature of normal size must fit without a budget change. When the archive is within 20 KB of the budget, remove something before raising the number. Raising it needs a reason in the pull request.++Measured 2026-11-02 with `npm pack --ignore-scripts --json`, gzipping each packed file alone. The archive was 740,972 bytes before the change below. The parts sum to more than that, because the archive compresses across files.++| Part | Bytes gzip |+| --- | --- |+| `build/` without `build/mcp/` | 458,778 |+| `build/mcp/` (`server.mjs` alone is 126,804) | 145,808 |+| `docs/` | 122,481 |+| `CHANGELOG.md` | 36,111 |+| `skills/` | 25,078 |+| the rest (README, notices, roadmap, `bin/`, `package.json`, license) | 13,967 |++What may leave without a loss for users is text that GitHub serves at a stable address: the changelog and the docs that only the site needs. A shipped doc then links the GitHub copy with an absolute URL, because a relative link to a file the package does not hold is dead inside `node_modules`. `npm run check:links:package` packs the archive, unpacks it and checks every link, and the `Test` workflow runs it.++`CHANGELOG.md` left the archive on 2026-11-02 for that reason. The archive is now 705,961 bytes, 34,039 under the budget. The 20 docs that `docs/guide.md` links but the package does not ship would add 64,477 bytes, so they stay on GitHub. Source maps are not packed, and the packed files hold no test fixtures or data.+## LimitsThe check reads gzip size only. It does not measure parse time, memory or runtime speed.diff --git a/package.json b/package.jsonindex 172087d1..5e6b4e12 100644--- a/package.json+++ b/package.json@@ -16,7 +16,6 @@"bin","README.md","LICENSE",- "CHANGELOG.md","ROADMAP.md","THIRD-PARTY-NOTICES.md","skills",