MeshRight source + Homebrew hosted adapter

Pinned upstream: https://github.com/Huzy85/MeshRight/tree/4599a10cd6611a0d05a1e78a84ff3e46d11e886d
Version 0.2.1, commit 4599a10cd6611a0d05a1e78a84ff3e46d11e886d.
MeshRight and these hosted adaptations: GPL-3.0-or-later. See upstream/LICENSE.
The bundled Three.js has its own MIT license in upstream/src/meshright/web/vendor/three/LICENSE.

Modifications by Homebrew Printing, October 26 2026: private per-browser server
processes, upload/archive/output limits, Windows process memory cap and parent
lifecycle handling, idle cleanup, authenticated/CSRF-protected proxy, embedded-only
mesh resource resolution, website styling and studio transfers. Desktop app
launchers, external provider credentials and upstream problem email are disabled.
Original upstream sources in upstream/ are unmodified.

To run original MeshRight locally: Python 3.10+, pip install ./upstream, then
meshright serve. For the tested hosted runtime, create a separate virtualenv and
install homebrew-adapter/deploy/meshright-runtime.txt, then pip install --no-deps
./upstream. Override MESHRIGHT_PYTHON to point to that environment's interpreter.

Hosted adapter: meshright_integration.install(site_module), where site_module
provides app (Flask), DATA (private directory), rate(), body() and fail().
The website must authenticate its session into flask.g.session with token/csrf
fields and reject mutating requests without X-CSRF-Token. Add the separate
workspace template and ai-meshright.js controller to the existing Model Studio
page. Invoke window.aiMeshRight.init({api}) with the site's authenticated API
helper; activate()/deactivate() follow the MeshRight tool tab. The controller uses
the site's /api/uploads and existing Slicer/Support Fin upload routes for transfers.

For /model-studio/meshright/ responses, apply frame_csp(), SAMEORIGIN frame policy,
private no-store cache and noindex, nofollow. The parent page permits same-origin
iframes. A standalone upstream desktop installation does not need these website
integration hooks. These adapters are optional, separately licensed additions;
this archive contains no credentials, user files, databases or model G-code.
