STL Splitter — Homebrew Printing adaptation of STL Cutter

Upstream: https://github.com/Gluhy/splitSTL
Pinned commit aeac97800c4760c6457ffc552577ded2f2d71d84.
STL Cutter: MIT, copyright (c) 2026 Gluhy. Original sources and license are under
vendor/STLCutter; those upstream production files are unmodified. Dependencies
retain their licenses in dependency-notices/. Homebrew's new adapter files are
also offered under the MIT license, copyright (c) 2026 Homebrew Printing.
Homebrew hardened package.json and package-lock.json on October 27, 2026;
see vendor/STLCutter/HOMEBREW-DEPENDENCIES.txt for the exact changes.

Adaptations made October 26, 2026: Model Studio tool card and style, a separate
browser worker for cutting with cancellation and a time limit, input/plan bounds,
invalidated stale exports, selected-part transfers to existing website upload
routes, and paused rendering when the workspace is hidden.

Reproduce the hosted workspace build with Node.js 24 (tested), or a version
supported by Vite 8: ^20.19.0 or >=22.12.0:
  npm ci --ignore-scripts
  npm ci --ignore-scripts --prefix vendor/STLCutter
  node scripts/build-stl-splitter.mjs
  node scripts/build-stl-splitter.mjs --check

The output is templates/stl_splitter_frame.html and static/stl-splitter/ assets.
For an independent local check, serve this folder with an HTTP server and open
/templates/stl_splitter_frame.html. The original upstream app can instead be run
with npm run dev --prefix vendor/STLCutter.

Website integration: serve the frame at /model-studio/stl-splitter and embed it
same-origin using templates/ai_stl_splitter_workspace.html. Bundle ai-stl-splitter.js
into the existing Model Studio controller, initialize window.aiSTLSplitter with
the authenticated site's {api} helper, and call activate/deactivate with the tool
tab. The parent controller uses the site's private /api/uploads endpoint and its
existing Slicer Studio / Support Fin Studio routes only on an explicit transfer.
Use same-origin framing, self-only scripts/resources, worker-src self/blob and
script-src wasm-unsafe-eval / unsafe-eval for this frame and worker assets only.
Inline style attributes require style-src unsafe-inline in the isolated frame.

The splitter and downloads work on-device without a server account. The hosted
studio-transfer buttons depend on Homebrew's existing authenticated upload flow.
This is not code from SplitSTL.com, and is not affiliated with that service.
