3D engine that AI agents drive
Revert the dependency move; drop repeated notices and the unused Ajv shim instead
Nguyen Xuan Anc141365575b5
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3cab2885..5c0ecbf7 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -2,7 +2,8 @@## Unreleased-- Make room in the npm package (part of issue #36). `@modelcontextprotocol/server` (2.4.0) and `zod` (4.6.7) are now normal dependencies that npm installs next to the package, so `build/mcp/server.mjs` imports them instead of carrying a copy: it fell from 677,484 to 165,877 bytes and `build/mcp/LICENSES.md` from 35,999 to 2,469 bytes, and the archive from 802,581 to 677,563 bytes (370,000 free under 1 MiB; the target was 300,000). The price is install size: three more packages and about 14.5 MB more on disk in a consumer (SDK 7.0 MB, its core 1.4 MB, zod 6.1 MB unpacked from the registry), and a first `npx` run downloads them. Behaviour is unchanged: `npm audit --audit-level=high` finds nothing and both MCP client generations pass `npm run smoke:mcp-package`. `licenses/mcp/` and the embedded-license scan in `scripts/build-mcp.mjs` are gone because nothing prebundled is left to cover; `manifest.json` lists the three installed dependencies under `externalDependencies`. `npm run smoke:package` now loads every `exports` entry in a clean consumer. Film and site code were already outside the archive (`build/film.js` is excluded and `67js/addons/film` is not exported). Separate lazy-loaded packages were not built: the lazy addons together are about 157 KB gzip, so splitting them out could return at most that much of an archive that already has room, for the cost of a package, a release pipeline and a version matrix each; revisit when less than 150 KB is free. `archiveBytes` budget 815,000 to 687,800.+- Make room in the npm package without adding a dependency (part of issue #36). The archive fell from 802,581 to 695,041 bytes (353,535 free under 1 MiB; the target was 300,000), and every library and MCP install stays as light as before. Two causes: (1) every one of the 80 built files began with the full `LICENSE` and `THIRD-PARTY-NOTICES.md` text, about 4 KB each; they now carry a one-line notice and the complete texts stay once at the package root, about 61,000 bytes saved; (2) the MCP SDK's Node shim pulls in Ajv (the validator for elicitation answers, about 270 KB before minification) that this server never uses, so `build/mcp/server.mjs` now bundles `scripts/mcp-sdk-shims.mjs` instead, which fails with a clear message if elicitation is ever requested: `server.mjs` fell from 677,484 to 484,111 bytes and the archive by about 47,000 bytes. `build/mcp/LICENSES.md` no longer lists the Ajv family because that code is gone, and its unused copies left `licenses/mcp/`. Measured, and not worth doing: `zod/mini` (zod's classic layer is 30 KB of the server before gzip), source maps (none are shipped), standalone core copies (none in the archive), and docs (every packaged page is linked from the README, `llms.txt`, the MCP guide or the skills). `npm run smoke:package` now loads every `exports` entry in a clean consumer. Film and site code were already outside the archive. Separate lazy-loaded packages were not built: the lazy addons together are about 157 KB gzip, so splitting them out could return at most that much, for the cost of a package, a release pipeline and a version matrix each. `archiveBytes` budget 815,000 to 705,500. Module load of the server is no slower (minimum of 25 runs, 217 and 188 ms against 231 and 209 ms).+- Fix three gaps a demo film found in the recipe light bake (part of issue #55). A baked scene with `cloth` failed at render time for every frame after t=0 with "A light map needs lightUvs on rigid geometry, with no skin or morph", because the cloth simulation replaces the sheet's geometry each frame; cloth sheet nodes are now skipped and listed in `report.skipped`. The bake now lights with spot lights (the renderer's cone and soft edge) and area lights (front side only, one deterministic shadow ray to a point of the rectangle per hit), where it ignored both; a scene without them bakes the same bytes. The presets could not finish a normal scene (`standard` passed its 20 s limit on a 56 part room, `fine` hit the 30 s preview limit): a recipe bake now has a ray work budget of 10 million units (texels x samples x bounces x rays per hit), estimated from the unwrap before any ray is traced with no clock involved. A preset is scaled down to fit and `scene_inspect` `bake` reports `used` and `reduced`; explicit `samples`, `bounces` or `texelsPerUnit` are never reduced and fail with a message naming the number that fits. `bakeLightmaps` is now `planLightmaps`, `estimateBake` and `traceLightmaps` (still exported as one call). `entry:core` did not change; `entry:light-bake` grew by 1,033 bytes gzip (budget 25,900 to 26,900) and the lazy agent entries by about 1,580; the schema stayed within its total budget (the capability notes were shortened to fit).- Add `sculpt` and `shrinkwrap` mesh edits (part of issue #47; surface patches and a stack form are not built). `sculpt` applies up to 32 inflate, displace and smooth strokes to the vertices of the selected faces; `shrinkwrap` moves them onto a primitive, to the nearest point or projected along a direction, with an offset. Both are in `scene_capabilities` (`meshSculpt`) and in the `mesh_edit` schema, with the tool schema total unchanged (the face rule and tag prefix descriptions were shortened to pay for them). The stroke maths moved to `src/sculpt-strokes.js` and serves `sculptGeometry` too. Four Blender golden cases (two Shrinkwrap modifier comparisons; the sculpt reference runs the same brush formula on Blender's mesh), hostile input tests, and the suite task `ball-badge`, which needs a plate bent onto a ball.diff --git a/THIRD-PARTY-NOTICES.md b/THIRD-PARTY-NOTICES.mdindex 5150c0f6..a1789da4 100644--- a/THIRD-PARTY-NOTICES.md+++ b/THIRD-PARTY-NOTICES.md@@ -54,14 +54,18 @@ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USEOF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.+## Built files++Each file in `build/` starts with a one-line notice that points here and to `LICENSE`. The complete texts are kept once, in those two files.+## MCP command and browser preview-The packaged `build/mcp/preview.js` and its engine chunks bundle rendering dependencies, and-`build/mcp/LICENSES.md` contains their complete license and notice texts.+The packaged `build/mcp/server.mjs` and `build/mcp/preview.js` bundle the MCP SDK,+schema validation and rendering dependencies. `build/mcp/LICENSES.md` contains+their complete license and notice texts, including dependencies embedded in the SDK.`build/mcp/manifest.json` records dependency versions, license provenance and output SHA-256 hashes.-The MCP SDK (`@modelcontextprotocol/server`, Apache-2.0), `zod` (MIT) and the `playwright-core`-browser driver are normal dependencies that npm installs next to the package. Each carries its own-license and notices, including the dependencies prebundled inside the SDK.+Pinned upstream license copies for embedded dependencies are retained in `licenses/mcp/` in the source repository.+The external `playwright-core` browser driver includes its own license and notices in its dependency package.## RobotExpressive (test fixture, not in the npm package)diff --git a/bench/size/README.md b/bench/size/README.mdindex 0f1b68b0..06b19162 100644--- a/bench/size/README.md+++ b/bench/size/README.md@@ -39,9 +39,9 @@ Use `--set-budgets` to reset every budget to 2% over the current size. Use it af## Package archive-`archiveBytes` in `budgets.json` caps the npm archive that `npm pack` makes. `npm run smoke:package` checks it, after `npm run prepare:release`. The archive was 904,975 bytes before the MCP preview shared the package's engine chunks and 666,214 after; features then grew it to 802,581, and making `@modelcontextprotocol/server` and `zod` installed dependencies instead of bundled code brought it to 677,563 (the budget is that plus 1.5 percent). Lower `archiveBytes` when work shrinks it.+`archiveBytes` in `budgets.json` caps the npm archive that `npm pack` makes. `npm run smoke:package` checks it, after `npm run prepare:release`. The archive was 904,975 bytes before the MCP preview shared the package's engine chunks and 666,214 after; features then grew it to 802,581, and one-line notices in each built file plus a stub for the SDK's unused Ajv shim brought it to 695,041 (the budget is that plus 1.5 percent). Lower `archiveBytes` when work shrinks it.-Before adding a dependency to save archive bytes, weigh it: the archive number falls, and the consumer's install size and first-run download rise. The two packages above save about 125 KB of archive for about 14.5 MB on disk.+Moving 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.## Limitsdiff --git a/bench/size/budgets.json b/bench/size/budgets.jsonindex c59f55e4..3c8f7ec5 100644--- a/bench/size/budgets.json+++ b/bench/size/budgets.json@@ -1,5 +1,5 @@{- "archiveBytes": 687800,+ "archiveBytes": 705500,"goals": {"lit-box": 50000,"gltf-box": 80000,diff --git a/docs/release-verification.md b/docs/release-verification.mdindex 802c145c..bcfc3d03 100644--- a/docs/release-verification.md+++ b/docs/release-verification.md@@ -7,9 +7,8 @@ Source checks used Windows Node.js, installed Chrome and CPU SwiftShader. Regist| Check | Measured result || --- | --- |-| Archive | 802,581 bytes before, 677,563 after (the MCP SDK and zod are installed dependencies, not bundled), so 370,000 bytes are free under 1 MiB. Install size grows by about 14.5 MB. |+| Archive | 802,581 bytes before, 695,041 after (one-line notices in built files, no Ajv in the MCP server), so 353,535 bytes are free under 1 MiB. Install size is unchanged. || Every export | `npm run smoke:package` loads each `exports` entry in a clean consumer. |-| Audit | `npm audit --audit-level=high` found 0 vulnerabilities with the new dependencies. || Node tests | 1359 tests passed. || Clean source archive | `npm run smoke:package` passed. || Installed MCP CLI | `npm run smoke:mcp-package` (not protocol only) passed with a modern and a legacy client, and checked every `previewChunks` hash. |diff --git a/licenses/mcp/content-type-1.0.5.txt b/licenses/mcp/content-type-1.0.5.txtnew file mode 100644index 00000000..218310de--- /dev/null+++ b/licenses/mcp/content-type-1.0.5.txt@@ -0,0 +1,28 @@+Source: https://registry.npmjs.org/content-type/-/content-type-1.0.5.tgz+Integrity: sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA==++package/LICENSE++(The MIT License)++Copyright (c) 2015 Douglas Christopher Wilson++Permission is hereby granted, free of charge, to any person obtaining+a copy of this software and associated documentation files (the+'Software'), to deal in the Software without restriction, including+without limitation the rights to use, copy, modify, merge, publish,+distribute, sublicense, and/or sell copies of the Software, and to+permit persons to whom the Software is furnished to do so, subject to+the following conditions:++The above copyright notice and this permission notice shall be+included in all copies or substantial portions of the Software.++THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.diff --git a/package-lock.json b/package-lock.jsonindex bbd93a7e..6e797589 100644--- a/package-lock.json+++ b/package-lock.json@@ -9,9 +9,7 @@"version": "0.14.0","license": "MIT","dependencies": {- "@modelcontextprotocol/server": "2.4.0",- "playwright-core": "1.64.1",- "zod": "4.6.7"+ "playwright-core": "1.64.1"},"bin": {"67js-mcp": "bin/67js-mcp.mjs"@@ -20,6 +18,7 @@"@codepawlhq/orglet-ui": "0.2.1","@dimforge/rapier3d-compat": "0.21.0","@modelcontextprotocol/client": "2.4.0",+ "@modelcontextprotocol/server": "2.4.0","ajv": "^8.20.0","ajv-formats": "^3.0.1","esbuild": "0.28.2",@@ -32,7 +31,8 @@"three": "0.186.1","three-mesh-bvh": "0.9.16","vite": "8.3.5",- "wrangler": "4.156.0"+ "wrangler": "4.156.0",+ "zod": "4.6.7"},"engines": {"node": ">=20.19.0"@@ -1328,6 +1328,7 @@"version": "2.4.0","resolved": "https://registry.npmjs.org/@modelcontextprotocol/core/-/core-2.4.0.tgz","integrity": "sha512-z8QBKqdfXLPzkLQuG4xp8hrVEMm1PZ1IgxMN2sMbJiFiAKOWXnAzogXn2W4aqIBlP1ea6U5yiqVquvUNM1Cj6Q==",+ "dev": true,"license": "Apache-2.0","dependencies": {"zod": "^4.2.0"@@ -1340,6 +1341,7 @@"version": "2.4.0","resolved": "https://registry.npmjs.org/@modelcontextprotocol/server/-/server-2.4.0.tgz","integrity": "sha512-rgR9yxSaAJ+bcsi/XroT/S2AfPiIWloXAnrdfYSCms9ivVju0ishu/wW0J21Ho6+ZOR1r7RyeRbjiRuF87ix5Q==",+ "dev": true,"license": "Apache-2.0","dependencies": {"@modelcontextprotocol/core": "2.4.0",@@ -3630,6 +3632,7 @@"version": "4.6.7","resolved": "https://registry.npmjs.org/zod/-/zod-4.6.7.tgz","integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==",+ "dev": true,"license": "MIT","funding": {"url": "https://github.com/sponsors/colinhacks"diff --git a/package.json b/package.jsonindex ca6d21ee..b2cb18c6 100644--- a/package.json+++ b/package.json@@ -132,9 +132,7 @@"manifold-3d": "3.5.4"},"dependencies": {- "@modelcontextprotocol/server": "2.4.0",- "playwright-core": "1.64.1",- "zod": "4.6.7"+ "playwright-core": "1.64.1"},"peerDependenciesMeta": {"@dimforge/rapier3d-compat": {@@ -148,6 +146,7 @@"@codepawlhq/orglet-ui": "0.2.1","@dimforge/rapier3d-compat": "0.21.0","@modelcontextprotocol/client": "2.4.0",+ "@modelcontextprotocol/server": "2.4.0","ajv": "^8.20.0","ajv-formats": "^3.0.1","esbuild": "0.28.2",@@ -160,6 +159,7 @@"three": "0.186.1","three-mesh-bvh": "0.9.16","vite": "8.3.5",- "wrangler": "4.156.0"+ "wrangler": "4.156.0",+ "zod": "4.6.7"}}diff --git a/scripts/build-mcp.mjs b/scripts/build-mcp.mjsindex 72e23a59..5e6e8c87 100644--- a/scripts/build-mcp.mjs+++ b/scripts/build-mcp.mjs@@ -33,6 +33,7 @@ async function dependencyFor(moduleId) {async function collectLicenses(chunks) {const dependencies = new Map();+ const embedded = new Map();const rootsByModule = new Map();for (const chunk of chunks) {for (const [moduleId, information] of Object.entries(chunk.modules)) {@@ -45,9 +46,39 @@ async function collectLicenses(chunks) {if (!dependency) continue;const key = `${dependency.metadata.name}@${dependency.metadata.version}`;dependencies.set(key, dependency);+ // The SDK ships prebundled dependencies whose module roots are invisible to Rolldown.+ if (!dependency.metadata.name.startsWith('@modelcontextprotocol/')) continue;+ const source = await readFile(moduleId.split('?')[0], 'utf8');+ for (const match of source.matchAll(/\/\/#[rR]egion [^\n]*\/\.pnpm\/([^/]+)\/node_modules\/(?:@[^/]+\/)?[^/]+\//g)) {+ const encoded = match[1].split('_')[0];+ const versionOffset = encoded.lastIndexOf('@');+ if (versionOffset < 1) continue;+ const name = encoded.slice(0, versionOffset).replace('+', '/');+ const version = encoded.slice(versionOffset + 1);+ if (!/^\d+\.\d+\.\d+/.test(version)) continue;+ embedded.set(`${name}@${version}`, { name, version, bundledBy: key });+ }}}const gaps = [];+ const embeddedNotices = [];+ for (const [key, dependency] of embedded) {+ if (dependencies.has(key)) continue;+ const installed = await packageAt(join(root, 'node_modules', dependency.name));+ if (installed?.metadata.version === dependency.version) {+ dependencies.set(key, installed);+ } else {+ const filename = join(root, 'licenses', 'mcp', `${dependency.name.replaceAll('/', '_')}-${dependency.version}.txt`);+ if (existsSync(filename)) {+ const contents = await readFile(filename, 'utf8');+ embeddedNotices.push(`## ${key}\n\n${contents}`);+ dependency.licenseFile = relative(root, filename).replaceAll('\\', '/');+ dependency.licenseSha256 = digest(Buffer.from(contents));+ } else {+ gaps.push({ ...dependency, reason: 'Exact prebundled dependency license is unavailable in installed package roots or licenses/mcp.' });+ }+ }+ }const projectLicense = await readFile(join(root, 'LICENSE'), 'utf8');const notices = [`# MCP bundle licenses\n\n## ${JSON.parse(await readFile(join(root, 'package.json'), 'utf8')).name}\n\n${projectLicense}`];const records = [];@@ -61,14 +92,7 @@ async function collectLicenses(chunks) {notices.push(`## ${key}: ${filename}\n\n${await readFile(join(dependency.directory, filename), 'utf8')}`);}}- return { text: `${notices.join('\n\n')}\n`, dependencies: records, licenseGaps: gaps };-}--// Installed next to the package by npm, so the server bundle imports them instead of carrying a copy.-const INSTALLED_DEPENDENCY_PREFIXES = ['playwright-core', '@modelcontextprotocol/', 'zod'];--function isInstalledDependency(specifier) {- return INSTALLED_DEPENDENCY_PREFIXES.some(prefix => specifier === prefix || specifier.startsWith(prefix.endsWith('/') ? prefix : `${prefix}/`));+ return { text: `${[...notices, ...embeddedNotices].join('\n\n')}\n`, dependencies: records, embeddedDependencies: [...embedded.values()], licenseGaps: gaps };}function singleModule(result, filename) {@@ -78,7 +102,7 @@ function singleModule(result, filename) {}const chunk = outputs[0];for (const specifier of chunk.imports) {- if (!isBuiltin(specifier) && !isInstalledDependency(specifier)) {+ if (!isBuiltin(specifier) && specifier !== 'playwright-core') {throw new Error(`${filename} has an unexpected external import: ${specifier}.`);}}@@ -92,15 +116,6 @@ function singleModule(result, filename) {return chunk;}-async function installedDependencyRecords(names) {- const records = [];- for (const name of names) {- const installed = await packageAt(join(root, 'node_modules', name));- records.push({ name, version: installed.metadata.version, license: installed.metadata.license ?? null });- }- return records;-}-const PREVIEW_ENTRY_FILE = 'mcp/preview.js';/**@@ -166,14 +181,18 @@ export async function buildMcp({ outDir = join(root, 'build', 'mcp') } = {}) {const previewChunks = await reachablePreviewChunks(build, join(root, 'build'));const server = singleModule(await build({...configuration,- resolve: { conditions: ['node', 'import', 'default'], mainFields: ['main', 'module'] },+ resolve: {+ conditions: ['node', 'import', 'default'],+ mainFields: ['main', 'module'],+ alias: { '@modelcontextprotocol/server/_shims': join(root, 'scripts', 'mcp-sdk-shims.mjs') },+ },build: {...configuration.build,target: 'node20',lib: { entry: join(root, 'scripts', 'mcp-server.mjs'), formats: ['es'], fileName: () => 'server.mjs' },rolldownOptions: {platform: 'node',- external: specifier => isBuiltin(specifier) || isInstalledDependency(specifier) || specifier === 'manifold-3d' || specifier === '@dimforge/rapier3d-compat',+ external: specifier => isBuiltin(specifier) || specifier === 'playwright-core' || specifier === 'manifold-3d' || specifier === '@dimforge/rapier3d-compat',output: { codeSplitting: false, comments: { legal: true }, banner: legalBanner },},},@@ -203,8 +222,9 @@ export async function buildMcp({ outDir = join(root, 'build', 'mcp') } = {}) {sourceDirty: Boolean(status.stdout.trim()),nodeTarget: 'node20',buildTool: { name: 'vite', version: (await packageAt(join(root, 'node_modules', 'vite'))).metadata.version },- externalDependencies: await installedDependencyRecords(['playwright-core', '@modelcontextprotocol/server', 'zod']),+ externalDependencies: [{ name: 'playwright-core', version: (await packageAt(join(root, 'node_modules', 'playwright-core'))).metadata.version }],dependencies: licenses.dependencies,+ embeddedDependencies: licenses.embeddedDependencies,licenseGaps: licenses.licenseGaps,outputs,previewChunks: previewChunksdiff --git a/scripts/mcp-sdk-shims.mjs b/scripts/mcp-sdk-shims.mjsnew file mode 100644index 00000000..4b309e71--- /dev/null+++ b/scripts/mcp-sdk-shims.mjs@@ -0,0 +1,12 @@+// Replaces `@modelcontextprotocol/server/_shims` in the MCP server bundle.+// The SDK's Node shim pulls in Ajv (about 270 KB before minification) only to validate answers to elicitation+// requests, which this server never sends. Any code path that would need the validator fails with a clear message.+import process from 'node:process';++export class DefaultJsonSchemaValidator {+ getValidator() {+ throw new Error('This 67js server does not validate elicitation results; it never requests elicitation.');+ }+}++export { process };diff --git a/scripts/smoke-mcp-package.mjs b/scripts/smoke-mcp-package.mjsindex 8b3b6bbf..692d65d5 100644--- a/scripts/smoke-mcp-package.mjs+++ b/scripts/smoke-mcp-package.mjs@@ -36,11 +36,8 @@ const installed = JSON.parse(await readFile(join(installedRoot, 'package.json'),assert.equal(installed.version, metadata.version);assert.equal(installed.bin['67js-mcp'], './bin/67js-mcp.mjs');const sourceManifest = JSON.parse(await readFile('package.json', 'utf8'));-assert.deepEqual(installed.dependencies, sourceManifest.dependencies);-for (const dependency of ['@modelcontextprotocol/server', 'playwright-core', 'zod']) {- assert.equal(existsSync(join(consumer, 'node_modules', dependency)), true, `The installed package must bring its runtime dependency ${dependency}.`);-}-for (const dependency of ['vite', 'three', 'gl-matrix', '@modelcontextprotocol/client', 'playwright']) {+assert.deepEqual(installed.dependencies, { 'playwright-core': sourceManifest.dependencies['playwright-core'] });+for (const dependency of ['vite', 'zod', 'three', 'gl-matrix', '@modelcontextprotocol/server', '@modelcontextprotocol/client', 'playwright']) {assert.equal(existsSync(join(consumer, 'node_modules', dependency)), false, `Runtime must not depend on a checkout or ${dependency}.`);}assert.equal(existsSync(join(installedRoot, 'src')), false);diff --git a/vite.lib.config.js b/vite.lib.config.jsindex 8ca43649..4c85e56b 100644--- a/vite.lib.config.js+++ b/vite.lib.config.js@@ -1,12 +1,15 @@-import { readFileSync } from 'node:fs';import { defineConfig } from 'vite';+// The full texts sit once in LICENSE and THIRD-PARTY-NOTICES.md at the package root. Repeating them in each of the+// 80 built files cost about 4 KB of archive space per file.+const legalBanner = '/*! 67js, MIT License, Copyright (c) 2026 CodePawl. Bundled gl-matrix: Copyright (c) 2015-2025, Brandon Jones, Colin MacKenzie IV, MIT License. Complete license texts and third-party notices: LICENSE and THIRD-PARTY-NOTICES.md at the package root. */';+export default defineConfig({build: {copyPublicDir: false,rolldownOptions: {external: ['@dimforge/rapier3d-compat', 'manifold-3d'],- output: { banner: `/*! ${readFileSync('LICENSE', 'utf8')}\nThird-party notices: ${readFileSync('THIRD-PARTY-NOTICES.md', 'utf8')} */` },+ output: { banner: legalBanner },},outDir: 'build',lib: {