Repository navigation
Conversation
A cold `npx -y @shapeitup/mcp-server` downloaded ~38 MB across 43 tarballs (129 MB on disk). On an ordinary connection that ran past Claude Code's 30 s MCP timeout, so a new user's first session started without ShapeItUp. Side by side from an empty cache: 76-105 s before, 14-20 s after, 52 MB on disk. - Ship manifold.js + manifold.wasm in dist/ instead of depending on manifold-3d. Its peer dependencies, which npm installs automatically, brought a second esbuild-wasm, @gltf-transform/* and the native sharp library: ~17 MB for a half-megabyte wasm. The loader and the viewer's asset resolver already look in dist/ first. - @mujoco/mujoco becomes an optional peer (npm installed the optional dependency for everyone, 5 MB). The error for engine: "mujoco" now gives the npx command that adds it. - Stop publishing source maps (1.3 MB gzipped). - release-check and the CI tarball smoke test check that manifold.wasm ships and no .map does. CLAUDE.md records why the tree must stay small. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
@asbis To me this sounds like it is fixing networking and caching delays that do not apply when installing this as a VS Code extension. This PR might cause further issues with dependency management, while it conflates the two distribution channels.
EDIT: I missed the fact that it depends on agent configuration and the recommended call to |
`tar -tzf | grep -qx …` let grep exit on its first match; GNU tar then
died writing to the closed pipe ("tar: stdout: write error"), and
pipefail failed the step even though the file was there. In the
source-map check the same race would have hidden a match inside the
`if`. BSD tar on macOS doesn't hit it, which is why it passed locally.
publish.yml had the same lines and would have failed the release.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Stacked on #11, which is stacked on #10 (all part of the unreleased 1.30.1).
Why
A first
npx -y @shapeitup/mcp-serverdownloaded ~38 MB across 43 tarballs (129 MB on disk) before the server could answerinitialize. Claude Code waits 30 s for that, Codex 10 s. On an ordinary connection a new user's first session simply started without ShapeItUp.What was in those 43 packages
@gltf-transform/functions→ ndarray-pixels → sharp (native)optionalDependencies, which npm installs for everyoneShapeItUp uses exactly one thing from manifold-3d:
manifold.js+manifold.wasm(~570 KB).Changes
copyManifoldToMcpDist()puts the two files inpackages/mcp-server/dist/in both build modes.manifold-3dmoves to devDependencies.loadManifoldNodeand the viewer's asset resolver look next to the bundle first (the resolver already did).peerDependenciesMeta.optional), which npm doesn't auto-install. Without it,engine: "mujoco"explains how to add it:npx -y -p @shapeitup/mcp-server -p @mujoco/mujoco shapeitup-mcp."!dist/**/*.map").release:checkrequiresmanifold.js/.wasmin the npm dist.manifold.wasmis missing or a.mapships.index.jsand again inviewer.js. It's the default dynamics engine, so making it opt-in would be a real regression for a modest gain.Results (empty npm cache, run alternately, same network)
initialize(The network was slow tonight; yesterday the old package took 34 s. The new run read its own ~3 MB tarball from disk, so it downloaded about that much less than it will from npm.)
Test plan
pnpm lint,pnpm build,pnpm test: 65 files, 1231 tests passpnpm pack:dist/manifold.{js,wasm}included, no.mapthreads.tapInto(Manifold) renders, with no "Manifold loader failed" on stderropen_viewerserves/manifold.wasm(200, 493,115 bytes)gravity-dropexample)engine: "mujoco"returns the opt-in instructionsnpx -y -p <tarball> -p @mujoco/mujoco shapeitup-mcp: the MuJoCo engine runs the same simulationnode scripts/release-check.mjs: manifest and asset checks pass🤖 Generated with Claude Code