Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat: implement widget studio foundation with routing and persistence API
nirholas641a2262970e
diff --git a/.npmrc b/.npmrcnew file mode 100644index 000000000..521a9f7c0--- /dev/null+++ b/.npmrc@@ -0,0 +1 @@+legacy-peer-deps=truediff --git a/CLAUDE.md b/CLAUDE.mddeleted file mode 100644index 933031fea..000000000--- a/CLAUDE.md+++ /dev/null@@ -1,236 +0,0 @@-# CLAUDE.md--**Read this first. Then act. Do not ask questions this file answers.**--Scoped guidance lives in [api/CLAUDE.md](api/CLAUDE.md), [src/CLAUDE.md](src/CLAUDE.md), and [contracts/CLAUDE.md](contracts/CLAUDE.md) — read whichever applies to where you're editing.-------## The one rule--**Stop asking me questions before you start working.** If a task is under ~50 lines, just do it. If you see an obvious default, take it. If a file obviously fits, use it. If you have a hunch about where something lives, grep — don't ask.--You are allowed to make judgment calls. I hired you to make them. Asking "should I proceed?", "which approach do you prefer?", "do you want me to also…?" before touching a single file is the #1 way you waste my time.--**What to do instead of asking:**-- Edit the file, show the diff, and *then* flag the one judgment call worth mentioning.-- If you genuinely cannot proceed, ask **one** specific question. Not a menu. Pick the one you'd do and say "going with B unless you say otherwise."-- If unsure about a name or placement, take the obvious default and mention it in one line.--**Must-ask-first — memorize this short list:**-1. Schema changes to Neon tables (see [api/CLAUDE.md](api/CLAUDE.md) for the table list).-2. Renames of public APIs, event-bus action types, manifest fields, or on-chain ABI.-3. Adding a dependency to [package.json](package.json) — zero-dep by principle, exhaust alternatives.-4. `git push`, `npm run deploy`, publishing, tagging, redeploying contracts.-5. Deleting files I didn't tell you to delete. Binary assets in [public/avatars/](public/avatars/).--Everything else: **do the work.**-------## What this project is--**3D Agent** — a browser-native 3D viewer that doubles as a runtime for *embodied agents*: 3D avatars with on-chain identity (ERC-8004), memory, skills, and an emotional presence layer. Started as a glTF/GLB viewer; evolving into a universal frontend that renders agents from other frameworks (MCP, A2A, Claude skills).--The viewer is the vehicle. The agent runtime is the product.--- **Production:** `3dagent.vercel.app` (also `3d.irish`)-- **Local dev:** `http://localhost:3000` via `npm run dev`-- **MCP endpoint:** `https://3dagent.vercel.app/api/mcp`-- **npm SDK:** [`@nirholas/agent-kit`](sdk/package.json) — separate package, lives in [sdk/](sdk/), not consumed by the main app-------## The stack (don't ask, don't change)--| Layer | What | Why |-|---|---|---|-| Renderer | three.js r176 + dat.gui | Existing viewer; no replacement. |-| Client JSX | **vhtml** (not React) | String-based, zero runtime. See `src/components/*.jsx`. |-| Bundler | Vite 8 | `TARGET=lib` splits between `dist/` and `dist-lib/`. |-| Backend | Vercel serverless in [api/](api/) | Small endpoints; reuse helpers in [api/_lib/](api/_lib/). |-| DB | Neon (Postgres) via `@neondatabase/serverless` | Tagged-template `sql` from [api/_lib/db.js](api/_lib/db.js). |-| Object storage | Cloudflare R2 (S3-compatible) | Avatars. Helpers in [api/_lib/r2.js](api/_lib/r2.js). |-| Auth | Session cookies + JWT (HS256) + API keys | Helpers in [api/_lib/auth.js](api/_lib/auth.js). **Never hand-roll.** |-| Rate limit | Upstash Redis via `@upstash/ratelimit` | Presets in [api/_lib/rate-limit.js](api/_lib/rate-limit.js). |-| Web3 | ethers v6 + Privy wallets + ERC-8004 | Contracts in [contracts/](contracts/), ABIs in [src/erc8004/abi.js](src/erc8004/abi.js). |-| Validation | zod | Helpers in [api/_lib/validate.js](api/_lib/validate.js). Every request body. |-| Styling | Plain CSS + tokens in [style.css](style.css) | **No Tailwind. No CSS-in-JS. No design system.** |-| Modules | ESM only (`"type": "module"`) | No CommonJS in `src/`. |-| Indentation | **Tabs, 4-wide** | Prettier-enforced. See [.prettierrc.json](.prettierrc.json). |--**Frameworks we do NOT use and will NOT add:** React, Next.js, Tailwind, TypeScript, CSS-in-JS, Redux, SWR, shadcn, any ORM, any testing framework.-------## Repo map--```-src/ # viewer + agent runtime (see src/CLAUDE.md)-api/ # Vercel serverless (see api/CLAUDE.md)-contracts/ # Foundry / ERC-8004 (see contracts/CLAUDE.md)-public/- agent/ # /agent/:id unfurl page + /agent/:id/embed iframe target- dashboard/ # /dashboard authenticated SPA (avatars, keys, MCP, billing)- studio/ # /studio — DOES NOT EXIST YET; it's the deliverable of prompts/widget-studio/00-sdk/ # @nirholas/agent-kit npm package (separate from main app)-specs/ # source-of-truth formats (manifest/skill/memory/embed v0.1)-examples/coach-leo/ # reference agent (manifest + instructions + skill)-prompts/ # task briefs (embed, pretext, scalability, widget-studio) — see Prompts workflow below-docs/ # authoritative docs: ARCHITECTURE, API, DEPLOYMENT, DEVELOPMENT, MCP, SETUP-scripts/ # animation fetchers + PWA icon generator-dist/, dist-lib/ # build output — never edit-.github/prompts/ # 21 Claude Code feature prompts (not CI)-```--**HTML entry points:** [index.html](index.html) (main app), [embed.html](embed.html) (embed editor), [features.html](features.html) (marketing/ERC-8004 page).--**Config glue you should know:**-- [vite.config.js](vite.config.js) — `TARGET=lib` switches to library build. Multi-entry for the three HTML files. PWA plugin + Workbox.-- [vercel.json](vercel.json) — routes for `/oauth/*`, `/dashboard/*`, `/agent/:id`, `/agent/:id/embed`, `/.well-known/*`. **Fallback `/(.*)` is last — never insert above it.**-- [cors.json](cors.json) — R2 bucket CORS (GET only, localhost + prod origins).-- [.env.example](.env.example) — every env var, grouped below.-------## Environment variables--**Server (no prefix, read via `process.env.X`):**-- `DATABASE_URL` — Neon Postgres-- `R2_ACCOUNT_ID`, `R2_ACCESS_KEY_ID`, `R2_SECRET_ACCESS_KEY`, `R2_BUCKET`, `R2_PUBLIC_BASE`-- `JWT_SECRET`, `JWT_KID` (default `k1`)-- `PASSWORD_ROUNDS` (default `11`)-- `UPSTASH_REDIS_REST_URL`, `UPSTASH_REDIS_REST_TOKEN` (falls back to in-memory for local dev)-- `PUBLIC_APP_ORIGIN` (default `https://3dagent.vercel.app`)-- `BASE_RPC_URL`, `BASE_SEPOLIA_RPC_URL`, `BASESCAN_API_KEY`, `DEPLOYER_PK` (contracts only)--**Client (`VITE_` prefix, read via `import.meta.env.VITE_X`):**-- `VITE_AVATURN_SUBDOMAIN` (avatar creator)-- `VITE_PRIVY_APP_ID` (wallet login)--All loaded via [api/_lib/env.js](api/_lib/env.js) server-side — import from there, don't touch `process.env` directly.-------## Canonical patterns (copy these, don't invent new ones)--### New API endpoint → see [api/CLAUDE.md](api/CLAUDE.md) for the full template.--### New agent skill-1. `src/skills/my-skill/manifest.json` — `{ spec: "skill/0.1", name, version, author, dependencies, provides: { tools } }`-2. `src/skills/my-skill/SKILL.md` — frontmatter (name, description, triggers, cost) + markdown instructions injected into LLM prompt-3. `src/skills/my-skill/tools.json` — Anthropic tool-use schema: `[{ name, description, input_schema }]`-4. `src/skills/my-skill/handlers.js` — `export default { toolName: async (args, ctx) => ({ ok: true, ... }) }` where `ctx` gives you `{ viewer, memory, llm, speak, listen, fetch, loadGLB, loadClip, loadJSON, call }`-5. Reference in the agent's manifest: `skills: [{ uri: "skills/my-skill/", version: "0.1.0" }]`--### New standalone page under `public/`-Follow [public/dashboard/dashboard.js](public/dashboard/dashboard.js). Pattern: one HTML file + one module JS + inline styles on top of global [style.css](style.css). Auth via `credentials: 'include'` + session cookies, never Bearer tokens in browser code. Hash-based tab routing (`#avatars`, `#keys`). vhtml for templating if JSX helps.--### New URL-driven viewer feature-Parse the hash in [src/app.js](src/app.js) — existing keys: `model`, `widget`, `agent`, `kiosk`, `brain`, `proxyURL`, `preset`, `cameraPosition`, `register`. Add your key next to those, don't invent a new routing layer.--### New protocol action-Add to `ACTION_TYPES` in [src/agent-protocol.js](src/agent-protocol.js), emit via `protocol.emit({ type, payload })`, subscribe in avatar/identity/home/memory as needed. **Never add direct module-to-module coupling.** Full event vocabulary in [src/CLAUDE.md](src/CLAUDE.md).-------## Pre-answered questions (stop asking these)--**"Should I use TypeScript?"** No. JS + JSDoc if you want types.--**"Should I add tests?"** No test suite exists. `npm test` is a no-op. Verify manually by running `npm run dev` and exercising the feature. Don't add Jest/Vitest/Playwright without asking.--**"React component or vanilla DOM?"** Vanilla DOM or vhtml JSX. Never React.--**"Should I make this reusable / add abstractions?"** No. Three similar lines beat a premature abstraction. Inline first, refactor when a third use case shows up.--**"Should I add error handling for [edge case]?"** Only validate at system boundaries (user input, external APIs). Trust internal calls. No defensive `try/catch` around code that can't throw.--**"Tabs or spaces?"** Tabs. Always. 4-wide.--**"Should I add comments?"** Default no. Only when *why* is non-obvious (hidden constraint, workaround, surprising invariant). Never describe *what* the code does.--**"Where should I put this new file?"** Look at what it's most similar to and put it next to that. `src/agent-*.js` for agent-runtime concerns. `src/skills/` for skills. `api/` for serverless. `public/<app>/` for a standalone native-DOM page.--**"Should I run the build?"** Yes, if you changed runtime code. `npm run build` must pass before you declare done. There is a pre-existing `@avaturn/sdk` resolution warning — ignore it, it's unrelated.--**"Should I commit?"** Only when I explicitly say so. Until then: edit, show diff, stop.--**"Should I update docs / README?"** No, unless I asked. Never create new `.md` files unless I asked.--**"Should I rename this for consistency while I'm here?"** No. Scope creep. Do the task I gave you.--**"Which env var holds X?"** Grep [.env.example](.env.example) first. Server-side → `process.env.X` (via [api/_lib/env.js](api/_lib/env.js)). Client-side → `import.meta.env.VITE_X`.--**"Should I split this into multiple PRs?"** Do whatever makes the diff easiest to review. One focused PR > three fragmented ones.--**"Does /studio exist?"** No — it's the deliverable of [prompts/widget-studio/00-studio-foundation.md](prompts/widget-studio/00-studio-foundation.md). Don't assume it's there when reading other code.-------## Running things--| Command | What |-|---|---|-| `npm run dev` | Vite dev server on :3000 |-| `npm run build` | Production build → `dist/` |-| `npm run build:lib` | Library build → `dist-lib/` (ES + UMD, Three.js + ethers bundled) |-| `npm run build:all` | Both |-| `npm run clean` | Wipe `dist/`, `dist-lib/` |-| `npm run fetch-animations` | Download Mixamo bundle (calls [scripts/download-animations.mjs](scripts/download-animations.mjs)) |-| `npm run generate-icons` | PWA icons via Sharp from [public/3d.png](public/3d.png) |-| `npm run deploy` | **Do not run without explicit ask.** |--No test suite. When you change runtime behavior, verify by running `npm run dev` and exercising the feature in the browser. Build success is not proof the feature works.-------## Don't touch without explicit ask--- [dist/](dist/), [dist-lib/](dist-lib/) — regenerated by build-- [contracts/out/](contracts/out/), [contracts/cache/](contracts/cache/) — Foundry artifacts-- `.env*` files — secrets-- [public/avatars/](public/avatars/) binary assets — check before replacing-- Deployed contract addresses in [src/erc8004/abi.js](src/erc8004/abi.js) — immutable on-chain-- [gitpretty.sh](gitpretty.sh) — destructive history rewrite, never run casually-- The fallback `/(.*)` route at the bottom of [vercel.json](vercel.json) — never insert new routes below it-------## Prompts workflow--When I hand you a file from [prompts/](prompts/), it is the full brief. Don't second-guess it.--1. Read the subdir's `README.md` first (execution order, ownership guardrails)-2. Parse the prompt: Goal → Prerequisites → "Read these first" (follow the line pointers, don't skip) → "Build this" → **"Do not do this"** (scope-creep guard — respect religiously) → Deliverables → Acceptance → Test plan-3. Read every file listed in "Read these first" before writing anything-4. Implement to the deliverables list exactly — filenames as stated-5. Respect file-ownership guardrails (cross-prompt merge safety depends on it)-6. Verify: `node --check` each JS file, `npx vite build`, manual test plan from the prompt-7. Report in the format the prompt's "Reporting" section asks for--**Subdir scopes at a glance:**-- [prompts/embed/](prompts/embed/) — OG images, oEmbed, agent-id resolver, referrer allowlist-- [prompts/pretext/](prompts/pretext/) — `@chenglou/pretext` text-wrap around avatar on `/features` hero-- [prompts/scalability/](prompts/scalability/) — viewer dispose, render-on-demand, module split, web-component wrap, shared renderer-- [prompts/widget-studio/](prompts/widget-studio/) — `/studio` no-code widget authoring (does not exist yet)--Scope creep from prompts is the second-biggest way agents waste my time. "While I'm here let me also…" — no. Do the task I gave you.-------## Commit style--Short, imperative, conventional-ish: `feat:`, `fix:`, `refactor:`, `chore:`. One-line summary, optional body. No emoji. See recent `git log` for tone.-------## TL;DR--1. Read this file + the relevant scoped CLAUDE.md ([api/](api/CLAUDE.md), [src/](src/CLAUDE.md), [contracts/](contracts/CLAUDE.md))-2. Read the target files-3. Make the change-4. Show me the diff-5. If something genuinely needed a decision, flag it in one line *after* the work--Don't ask. Don't plan. Don't propose. Just ship.diff --git a/package-lock.json b/package-lock.jsonindex 0946925bc..fecbb3378 100644--- a/package-lock.json+++ b/package-lock.json@@ -35,7 +35,7 @@"devDependencies": {"prettier": "^3.2.5","sharp": "^0.34.5",- "vite": "^8.0.8",+ "vite": "^7.3.2","vite-plugin-pwa": "^1.2.0","workbox-build": "^7.4.0","workbox-window": "^7.4.0"@@ -2485,38 +2485,457 @@"integrity": "sha512-A8GZN10REdFGsyuiUgLV8jjPDDFMg5GmgxGWV0I3igxBOnzj+jgz2VMmVD7g+SFyoctfeqHFxbNatKSzVRWtRg==","license": "MIT"},- "node_modules/@emnapi/core": {+ "node_modules/@emnapi/runtime": {"version": "1.9.2",- "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.2.tgz",- "integrity": "sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA==",+ "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.2.tgz",+ "integrity": "sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw==","dev": true,"license": "MIT","optional": true,"dependencies": {- "@emnapi/wasi-threads": "1.2.1","tslib": "^2.4.0"}},- "node_modules/@emnapi/runtime": {- "version": "1.9.2",- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.2.tgz",- "integrity": "sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw==",+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.27.7.tgz",+ "integrity": "sha512-EKX3Qwmhz1eMdEJokhALr0YiD0lhQNwDqkPYyPhiSwKrh7/4KRjQc04sZ8db+5DVVnZ1LmbNDI1uAMPEUBnQPg==",+ "cpu": [+ "ppc64"+ ],"dev": true,"license": "MIT","optional": true,- "dependencies": {- "tslib": "^2.4.0"+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.27.7.tgz",+ "integrity": "sha512-jbPXvB4Yj2yBV7HUfE2KHe4GJX51QplCN1pGbYjvsyCZbQmies29EoJbkEc+vYuU5o45AfQn37vZlyXy4YJ8RQ==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.27.7.tgz",+ "integrity": "sha512-62dPZHpIXzvChfvfLJow3q5dDtiNMkwiRzPylSCfriLvZeq0a1bWChrGx/BbUbPwOrsWKMn8idSllklzBy+dgQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.27.7.tgz",+ "integrity": "sha512-x5VpMODneVDb70PYV2VQOmIUUiBtY3D3mPBG8NxVk5CogneYhkR7MmM3yR/uMdITLrC1ml/NV1rj4bMJuy9MCg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.27.7.tgz",+ "integrity": "sha512-5lckdqeuBPlKUwvoCXIgI2D9/ABmPq3Rdp7IfL70393YgaASt7tbju3Ac+ePVi3KDH6N2RqePfHnXkaDtY9fkw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.27.7.tgz",+ "integrity": "sha512-rYnXrKcXuT7Z+WL5K980jVFdvVKhCHhUwid+dDYQpH+qu+TefcomiMAJpIiC2EM3Rjtq0sO3StMV/+3w3MyyqQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.27.7.tgz",+ "integrity": "sha512-B48PqeCsEgOtzME2GbNM2roU29AMTuOIN91dsMO30t+Ydis3z/3Ngoj5hhnsOSSwNzS+6JppqWsuhTp6E82l2w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.27.7.tgz",+ "integrity": "sha512-jOBDK5XEjA4m5IJK3bpAQF9/Lelu/Z9ZcdhTRLf4cajlB+8VEhFFRjWgfy3M1O4rO2GQ/b2dLwCUGpiF/eATNQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.27.7.tgz",+ "integrity": "sha512-RkT/YXYBTSULo3+af8Ib0ykH8u2MBh57o7q/DAs3lTJlyVQkgQvlrPTnjIzzRPQyavxtPtfg0EopvDyIt0j1rA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.27.7.tgz",+ "integrity": "sha512-RZPHBoxXuNnPQO9rvjh5jdkRmVizktkT7TCDkDmQ0W2SwHInKCAV95GRuvdSvA7w4VMwfCjUiPwDi0ZO6Nfe9A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.27.7.tgz",+ "integrity": "sha512-GA48aKNkyQDbd3KtkplYWT102C5sn/EZTY4XROkxONgruHPU72l+gW+FfF8tf2cFjeHaRbWpOYa/uRBz/Xq1Pg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.27.7.tgz",+ "integrity": "sha512-a4POruNM2oWsD4WKvBSEKGIiWQF8fZOAsycHOt6JBpZ+JN2n2JH9WAv56SOyu9X5IqAjqSIPTaJkqN8F7XOQ5Q==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.27.7.tgz",+ "integrity": "sha512-KabT5I6StirGfIz0FMgl1I+R1H73Gp0ofL9A3nG3i/cYFJzKHhouBV5VWK1CSgKvVaG4q1RNpCTR2LuTVB3fIw==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.27.7.tgz",+ "integrity": "sha512-gRsL4x6wsGHGRqhtI+ifpN/vpOFTQtnbsupUF5R5YTAg+y/lKelYR1hXbnBdzDjGbMYjVJLJTd2OFmMewAgwlQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.27.7.tgz",+ "integrity": "sha512-hL25LbxO1QOngGzu2U5xeXtxXcW+/GvMN3ejANqXkxZ/opySAZMrc+9LY/WyjAan41unrR3YrmtTsUpwT66InQ==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.27.7.tgz",+ "integrity": "sha512-2k8go8Ycu1Kb46vEelhu1vqEP+UeRVj2zY1pSuPdgvbd5ykAw82Lrro28vXUrRmzEsUV0NzCf54yARIK8r0fdw==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz",+ "integrity": "sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-arm64/-/netbsd-arm64-0.27.7.tgz",+ "integrity": "sha512-b6pqtrQdigZBwZxAn1UpazEisvwaIDvdbMbmrly7cDTMFnw/+3lVxxCTGOrkPVnsYIosJJXAsILG9XcQS+Yu6w==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.27.7.tgz",+ "integrity": "sha512-OfatkLojr6U+WN5EDYuoQhtM+1xco+/6FSzJJnuWiUw5eVcicbyK3dq5EeV/QHT1uy6GoDhGbFpprUiHUYggrw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-arm64/-/openbsd-arm64-0.27.7.tgz",+ "integrity": "sha512-AFuojMQTxAz75Fo8idVcqoQWEHIXFRbOc1TrVcFSgCZtQfSdc1RXgB3tjOn/krRHENUB4j00bfGjyl2mJrU37A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.27.7.tgz",+ "integrity": "sha512-+A1NJmfM8WNDv5CLVQYJ5PshuRm/4cI6WMZRg1by1GwPIQPCTs1GLEUHwiiQGT5zDdyLiRM/l1G0Pv54gvtKIg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/openharmony-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/openharmony-arm64/-/openharmony-arm64-0.27.7.tgz",+ "integrity": "sha512-+KrvYb/C8zA9CU/g0sR6w2RBw7IGc5J2BPnc3dYc5VJxHCSF1yNMxTV5LQ7GuKteQXZtspjFbiuW5/dOj7H4Yw==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openharmony"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.27.7.tgz",+ "integrity": "sha512-ikktIhFBzQNt/QDyOL580ti9+5mL/YZeUPKU2ivGtGjdTYoqz6jObj6nOMfhASpS4GU4Q/Clh1QtxWAvcYKamA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.27.7.tgz",+ "integrity": "sha512-7yRhbHvPqSpRUV7Q20VuDwbjW5kIMwTHpptuUzV+AA46kiPze5Z7qgt6CLCK3pWFrHeNfDd1VKgyP4O+ng17CA==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.27.7.tgz",+ "integrity": "sha512-SmwKXe6VHIyZYbBLJrhOoCJRB/Z1tckzmgTLfFYOfpMAx63BJEaL9ExI8x7v0oAO3Zh6D/Oi1gVxEYr5oUCFhw==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"}},- "node_modules/@emnapi/wasi-threads": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",- "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==",+ "node_modules/@esbuild/win32-x64": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.27.7.tgz",+ "integrity": "sha512-56hiAJPhwQ1R4i+21FVF7V8kSD5zZTdHcVuRFMW0hn753vVfQN8xlx4uOPT4xoGH0Z/oVATuR82AiqSTDIpaHg==",+ "cpu": [+ "x64"+ ],"dev": true,"license": "MIT","optional": true,- "dependencies": {- "tslib": "^2.4.0"+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=18"}},"node_modules/@gltf-transform/core": {@@ -3105,25 +3524,6 @@"@jridgewell/sourcemap-codec": "^1.4.14"}},- "node_modules/@napi-rs/wasm-runtime": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.3.tgz",- "integrity": "sha512-xK9sGVbJWYb08+mTJt3/YV24WxvxpXcXtP6B172paPZ+Ts69Re9dAr7lKwJoeIx8OoeuimEiRZ7umkiUVClmmQ==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@tybys/wasm-util": "^0.10.1"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/Brooooooklyn"- },- "peerDependencies": {- "@emnapi/core": "^1.7.1",- "@emnapi/runtime": "^1.7.1"- }- },"node_modules/@neondatabase/serverless": {"version": "0.10.4","resolved": "https://registry.npmjs.org/@neondatabase/serverless/-/serverless-0.10.4.tgz",@@ -3169,16 +3569,6 @@"url": "https://paulmillr.com/funding/"}},- "node_modules/@oxc-project/types": {- "version": "0.124.0",- "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.124.0.tgz",- "integrity": "sha512-VBFWMTBvHxS11Z5Lvlr3IWgrwhMTXV+Md+EQF0Xf60+wAdsGFTBx7X7K/hP4pi8N7dcm1RvcHwDxZ16Qx8keUg==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/Boshen"- }- },"node_modules/@privy-io/api-base": {"version": "1.8.3","resolved": "https://registry.npmjs.org/@privy-io/api-base/-/api-base-1.8.3.tgz",@@ -3259,27 +3649,109 @@"@privy-io/api-types": "0.8.0"}},- "node_modules/@rolldown/binding-android-arm64": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.0-rc.15.tgz",- "integrity": "sha512-YYe6aWruPZDtHNpwu7+qAHEMbQ/yRl6atqb/AhznLTnD3UY99Q1jE7ihLSahNWkF4EqRPVC4SiR4O0UkLK02tA==",+ "node_modules/@rollup/plugin-node-resolve": {+ "version": "15.3.1",+ "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.3.1.tgz",+ "integrity": "sha512-tgg6b91pAybXHJQMAAwW9VuWBO6Thi+q7BCNARLwSqlmsHz0XYURtGvh/AuwSADXSI4h/2uHbs7s4FzlZDGSGA==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@rollup/pluginutils": "^5.0.1",+ "@types/resolve": "1.20.2",+ "deepmerge": "^4.2.2",+ "is-module": "^1.0.0",+ "resolve": "^1.22.1"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "rollup": "^2.78.0||^3.0.0||^4.0.0"+ },+ "peerDependenciesMeta": {+ "rollup": {+ "optional": true+ }+ }+ },+ "node_modules/@rollup/plugin-terser": {+ "version": "0.4.4",+ "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.4.tgz",+ "integrity": "sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "serialize-javascript": "^6.0.1",+ "smob": "^1.0.0",+ "terser": "^5.17.4"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "rollup": "^2.0.0||^3.0.0||^4.0.0"+ },+ "peerDependenciesMeta": {+ "rollup": {+ "optional": true+ }+ }+ },+ "node_modules/@rollup/pluginutils": {+ "version": "5.3.0",+ "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.3.0.tgz",+ "integrity": "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==",+ "dev": true,+ "license": "MIT",+ "dependencies": {+ "@types/estree": "^1.0.0",+ "estree-walker": "^2.0.2",+ "picomatch": "^4.0.2"+ },+ "engines": {+ "node": ">=14.0.0"+ },+ "peerDependencies": {+ "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0"+ },+ "peerDependenciesMeta": {+ "rollup": {+ "optional": true+ }+ }+ },+ "node_modules/@rollup/rollup-android-arm-eabi": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.60.1.tgz",+ "integrity": "sha512-d6FinEBLdIiK+1uACUttJKfgZREXrF0Qc2SmLII7W2AD8FfiZ9Wjd+rD/iRuf5s5dWrr1GgwXCvPqOuDquOowA==","cpu": [- "arm64"+ "arm"],"dev": true,"license": "MIT","optional": true,"os": ["android"+ ]+ },+ "node_modules/@rollup/rollup-android-arm64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.60.1.tgz",+ "integrity": "sha512-YjG/EwIDvvYI1YvYbHvDz/BYHtkY4ygUIXHnTdLhG+hKIQFBiosfWiACWortsKPKU/+dUwQQCKQM3qrDe8c9BA==",+ "cpu": [+ "arm64"],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ]},- "node_modules/@rolldown/binding-darwin-arm64": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.0-rc.15.tgz",- "integrity": "sha512-oArR/ig8wNTPYsXL+Mzhs0oxhxfuHRfG7Ikw7jXsw8mYOtk71W0OkF2VEVh699pdmzjPQsTjlD1JIOoHkLP1Fg==",+ "node_modules/@rollup/rollup-darwin-arm64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.60.1.tgz",+ "integrity": "sha512-mjCpF7GmkRtSJwon+Rq1N8+pI+8l7w5g9Z3vWj4T7abguC4Czwi3Yu/pFaLvA3TTeMVjnu3ctigusqWUfjZzvw==","cpu": ["arm64"],@@ -3288,15 +3760,12 @@"optional": true,"os": ["darwin"- ],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ ]},- "node_modules/@rolldown/binding-darwin-x64": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.0-rc.15.tgz",- "integrity": "sha512-YzeVqOqjPYvUbJSWJ4EDL8ahbmsIXQpgL3JVipmN+MX0XnXMeWomLN3Fb+nwCmP/jfyqte5I3XRSm7OfQrbyxw==",+ "node_modules/@rollup/rollup-darwin-x64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.60.1.tgz",+ "integrity": "sha512-haZ7hJ1JT4e9hqkoT9R/19XW2QKqjfJVv+i5AGg57S+nLk9lQnJ1F/eZloRO3o9Scy9CM3wQ9l+dkXtcBgN5Ew==","cpu": ["x64"],@@ -3305,15 +3774,26 @@"optional": true,"os": ["darwin"+ ]+ },+ "node_modules/@rollup/rollup-freebsd-arm64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.60.1.tgz",+ "integrity": "sha512-czw90wpQq3ZsAVBlinZjAYTKduOjTywlG7fEeWKUA7oCmpA8xdTkxZZlwNJKWqILlq0wehoZcJYfBvOyhPTQ6w==",+ "cpu": [+ "arm64"],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ]},- "node_modules/@rolldown/binding-freebsd-x64": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.0-rc.15.tgz",- "integrity": "sha512-9Erhx956jeQ0nNTyif1+QWAXDRD38ZNjr//bSHrt6wDwB+QkAfl2q6Mn1k6OBPerznjRmbM10lgRb1Pli4xZPw==",+ "node_modules/@rollup/rollup-freebsd-x64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.60.1.tgz",+ "integrity": "sha512-KVB2rqsxTHuBtfOeySEyzEOB7ltlB/ux38iu2rBQzkjbwRVlkhAGIEDiiYnO2kFOkJp+Z7pUXKyrRRFuFUKt+g==","cpu": ["x64"],@@ -3322,15 +3802,12 @@"optional": true,"os": ["freebsd"- ],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ ]},- "node_modules/@rolldown/binding-linux-arm-gnueabihf": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.0-rc.15.tgz",- "integrity": "sha512-cVwk0w8QbZJGTnP/AHQBs5yNwmpgGYStL88t4UIaqcvYJWBfS0s3oqVLZPwsPU6M0zlW4GqjP0Zq5MnAGwFeGA==",+ "node_modules/@rollup/rollup-linux-arm-gnueabihf": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.60.1.tgz",+ "integrity": "sha512-L+34Qqil+v5uC0zEubW7uByo78WOCIrBvci69E7sFASRl0X7b/MB6Cqd1lky/CtcSVTydWa2WZwFuWexjS5o6g==","cpu": ["arm"],@@ -3339,15 +3816,26 @@"optional": true,"os": ["linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-arm-musleabihf": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.60.1.tgz",+ "integrity": "sha512-n83O8rt4v34hgFzlkb1ycniJh7IR5RCIqt6mz1VRJD6pmhRi0CXdmfnLu9dIUS6buzh60IvACM842Ffb3xd6Gg==",+ "cpu": [+ "arm"],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]},- "node_modules/@rolldown/binding-linux-arm64-gnu": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.0-rc.15.tgz",- "integrity": "sha512-eBZ/u8iAK9SoHGanqe/jrPnY0JvBN6iXbVOsbO38mbz+ZJsaobExAm1Iu+rxa4S1l2FjG0qEZn4Rc6X8n+9M+w==",+ "node_modules/@rollup/rollup-linux-arm64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.60.1.tgz",+ "integrity": "sha512-Nql7sTeAzhTAja3QXeAI48+/+GjBJ+QmAH13snn0AJSNL50JsDqotyudHyMbO2RbJkskbMbFJfIJKWA6R1LCJQ==","cpu": ["arm64"],@@ -3356,15 +3844,12 @@"optional": true,"os": ["linux"- ],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ ]},- "node_modules/@rolldown/binding-linux-arm64-musl": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.0-rc.15.tgz",- "integrity": "sha512-ZvRYMGrAklV9PEkgt4LQM6MjQX2P58HPAuecwYObY2DhS2t35R0I810bKi0wmaYORt6m/2Sm+Z+nFgb0WhXNcQ==",+ "node_modules/@rollup/rollup-linux-arm64-musl": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.60.1.tgz",+ "integrity": "sha512-+pUymDhd0ys9GcKZPPWlFiZ67sTWV5UU6zOJat02M1+PiuSGDziyRuI/pPue3hoUwm2uGfxdL+trT6Z9rxnlMA==","cpu": ["arm64"],@@ -3373,136 +3858,110 @@"optional": true,"os": ["linux"- ],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ ]},- "node_modules/@rolldown/binding-linux-ppc64-gnu": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.0-rc.15.tgz",- "integrity": "sha512-VDpgGBzgfg5hLg+uBpCLoFG5kVvEyafmfxGUV0UHLcL5irxAK7PKNeC2MwClgk6ZAiNhmo9FLhRYgvMmedLtnQ==",+ "node_modules/@rollup/rollup-linux-loong64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.60.1.tgz",+ "integrity": "sha512-VSvgvQeIcsEvY4bKDHEDWcpW4Yw7BtlKG1GUT4FzBUlEKQK0rWHYBqQt6Fm2taXS+1bXvJT6kICu5ZwqKCnvlQ==","cpu": [- "ppc64"+ "loong64"],"dev": true,"license": "MIT","optional": true,"os": ["linux"- ],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ ]},- "node_modules/@rolldown/binding-linux-s390x-gnu": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.0-rc.15.tgz",- "integrity": "sha512-y1uXY3qQWCzcPgRJATPSOUP4tCemh4uBdY7e3EZbVwCJTY3gLJWnQABgeUetvED+bt1FQ01OeZwvhLS2bpNrAQ==",+ "node_modules/@rollup/rollup-linux-loong64-musl": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.60.1.tgz",+ "integrity": "sha512-4LqhUomJqwe641gsPp6xLfhqWMbQV04KtPp7/dIp0nzPxAkNY1AbwL5W0MQpcalLYk07vaW9Kp1PBhdpZYYcEw==","cpu": [- "s390x"+ "loong64"],"dev": true,"license": "MIT","optional": true,"os": ["linux"- ],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ ]},- "node_modules/@rolldown/binding-linux-x64-gnu": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.15.tgz",- "integrity": "sha512-023bTPBod7J3Y/4fzAN6QtpkSABR0rigtrwaP+qSEabUh5zf6ELr9Nc7GujaROuPY3uwdSIXWrvhn1KxOvurWA==",+ "node_modules/@rollup/rollup-linux-ppc64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.60.1.tgz",+ "integrity": "sha512-tLQQ9aPvkBxOc/EUT6j3pyeMD6Hb8QF2BTBnCQWP/uu1lhc9AIrIjKnLYMEroIz/JvtGYgI9dF3AxHZNaEH0rw==","cpu": [- "x64"+ "ppc64"],"dev": true,"license": "MIT","optional": true,"os": ["linux"- ],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ ]},- "node_modules/@rolldown/binding-linux-x64-musl": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.15.tgz",- "integrity": "sha512-witB2O0/hU4CgfOOKUoeFgQ4GktPi1eEbAhaLAIpgD6+ZnhcPkUtPsoKKHRzmOoWPZue46IThdSgdo4XneOLYw==",+ "node_modules/@rollup/rollup-linux-ppc64-musl": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.60.1.tgz",+ "integrity": "sha512-RMxFhJwc9fSXP6PqmAz4cbv3kAyvD1etJFjTx4ONqFP9DkTkXsAMU4v3Vyc5BgzC+anz7nS/9tp4obsKfqkDHg==","cpu": [- "x64"+ "ppc64"],"dev": true,"license": "MIT","optional": true,"os": ["linux"- ],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ ]},- "node_modules/@rolldown/binding-openharmony-arm64": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.0-rc.15.tgz",- "integrity": "sha512-UCL68NJ0Ud5zRipXZE9dF5PmirzJE4E4BCIOOssEnM7wLDsxjc6Qb0sGDxTNRTP53I6MZpygyCpY8Aa8sPfKPg==",+ "node_modules/@rollup/rollup-linux-riscv64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.60.1.tgz",+ "integrity": "sha512-QKgFl+Yc1eEk6MmOBfRHYF6lTxiiiV3/z/BRrbSiW2I7AFTXoBFvdMEyglohPj//2mZS4hDOqeB0H1ACh3sBbg==","cpu": [- "arm64"+ "riscv64"],"dev": true,"license": "MIT","optional": true,"os": [- "openharmony"- ],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ "linux"+ ]},- "node_modules/@rolldown/binding-wasm32-wasi": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.0-rc.15.tgz",- "integrity": "sha512-ApLruZq/ig+nhaE7OJm4lDjayUnOHVUa77zGeqnqZ9pn0ovdVbbNPerVibLXDmWeUZXjIYIT8V3xkT58Rm9u5Q==",+ "node_modules/@rollup/rollup-linux-riscv64-musl": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.60.1.tgz",+ "integrity": "sha512-RAjXjP/8c6ZtzatZcA1RaQr6O1TRhzC+adn8YZDnChliZHviqIjmvFwHcxi4JKPSDAt6Uhf/7vqcBzQJy0PDJg==","cpu": [- "wasm32"+ "riscv64"],"dev": true,"license": "MIT","optional": true,- "dependencies": {- "@emnapi/core": "1.9.2",- "@emnapi/runtime": "1.9.2",- "@napi-rs/wasm-runtime": "^1.1.3"- },- "engines": {- "node": ">=14.0.0"- }+ "os": [+ "linux"+ ]},- "node_modules/@rolldown/binding-win32-arm64-msvc": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.0-rc.15.tgz",- "integrity": "sha512-KmoUoU7HnN+Si5YWJigfTws1jz1bKBYDQKdbLspz0UaqjjFkddHsqorgiW1mxcAj88lYUE6NC/zJNwT+SloqtA==",+ "node_modules/@rollup/rollup-linux-s390x-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.60.1.tgz",+ "integrity": "sha512-wcuocpaOlaL1COBYiA89O6yfjlp3RwKDeTIA0hM7OpmhR1Bjo9j31G1uQVpDlTvwxGn2nQs65fBFL5UFd76FcQ==","cpu": [- "arm64"+ "s390x"],"dev": true,"license": "MIT","optional": true,"os": [- "win32"- ],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ "linux"+ ]},- "node_modules/@rolldown/binding-win32-x64-msvc": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.0-rc.15.tgz",- "integrity": "sha512-3P2A8L+x75qavWLe/Dll3EYBJLQmtkJN8rfh+U/eR3MqMgL/h98PhYI+JFfXuDPgPeCB7iZAKiqii5vqOvnA0g==",+ "node_modules/@rollup/rollup-linux-x64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.1.tgz",+ "integrity": "sha512-77PpsFQUCOiZR9+LQEFg9GClyfkNXj1MP6wRnzYs0EeWbPcHs02AXu4xuUbM1zhwn3wqaizle3AEYg5aeoohhg==","cpu": ["x64"],@@ -3510,89 +3969,106 @@"license": "MIT","optional": true,"os": [- "win32"+ "linux"+ ]+ },+ "node_modules/@rollup/rollup-linux-x64-musl": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.60.1.tgz",+ "integrity": "sha512-5cIATbk5vynAjqqmyBjlciMJl1+R/CwX9oLk/EyiFXDWd95KpHdrOJT//rnUl4cUcskrd0jCCw3wpZnhIHdD9w==",+ "cpu": [+ "x64"],- "engines": {- "node": "^20.19.0 || >=22.12.0"- }+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ]},- "node_modules/@rolldown/pluginutils": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.15.tgz",- "integrity": "sha512-UromN0peaE53IaBRe9W7CjrZgXl90fqGpK+mIZbA3qSTeYqg3pqpROBdIPvOG3F5ereDHNwoHBI2e50n1BDr1g==",+ "node_modules/@rollup/rollup-openbsd-x64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.60.1.tgz",+ "integrity": "sha512-cl0w09WsCi17mcmWqqglez9Gk8isgeWvoUZ3WiJFYSR3zjBQc2J5/ihSjpl+VLjPqjQ/1hJRcqBfLjssREQILw==",+ "cpu": [+ "x64"+ ],"dev": true,- "license": "MIT"+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ]},- "node_modules/@rollup/plugin-node-resolve": {- "version": "15.3.1",- "resolved": "https://registry.npmjs.org/@rollup/plugin-node-resolve/-/plugin-node-resolve-15.3.1.tgz",- "integrity": "sha512-tgg6b91pAybXHJQMAAwW9VuWBO6Thi+q7BCNARLwSqlmsHz0XYURtGvh/AuwSADXSI4h/2uHbs7s4FzlZDGSGA==",+ "node_modules/@rollup/rollup-openharmony-arm64": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.60.1.tgz",+ "integrity": "sha512-4Cv23ZrONRbNtbZa37mLSueXUCtN7MXccChtKpUnQNgF010rjrjfHx3QxkS2PI7LqGT5xXyYs1a7LbzAwT0iCA==",+ "cpu": [+ "arm64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "@rollup/pluginutils": "^5.0.1",- "@types/resolve": "1.20.2",- "deepmerge": "^4.2.2",- "is-module": "^1.0.0",- "resolve": "^1.22.1"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "rollup": "^2.78.0||^3.0.0||^4.0.0"- },- "peerDependenciesMeta": {- "rollup": {- "optional": true- }- }+ "optional": true,+ "os": [+ "openharmony"+ ]+ },+ "node_modules/@rollup/rollup-win32-arm64-msvc": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.60.1.tgz",+ "integrity": "sha512-i1okWYkA4FJICtr7KpYzFpRTHgy5jdDbZiWfvny21iIKky5YExiDXP+zbXzm3dUcFpkEeYNHgQ5fuG236JPq0g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]},- "node_modules/@rollup/plugin-terser": {- "version": "0.4.4",- "resolved": "https://registry.npmjs.org/@rollup/plugin-terser/-/plugin-terser-0.4.4.tgz",- "integrity": "sha512-XHeJC5Bgvs8LfukDwWZp7yeqin6ns8RTl2B9avbejt6tZqsqvVoWI7ZTQrcNsfKEDWBTnTxM8nMDkO2IFFbd0A==",+ "node_modules/@rollup/rollup-win32-ia32-msvc": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.60.1.tgz",+ "integrity": "sha512-u09m3CuwLzShA0EYKMNiFgcjjzwqtUMLmuCJLeZWjjOYA3IT2Di09KaxGBTP9xVztWyIWjVdsB2E9goMjZvTQg==",+ "cpu": [+ "ia32"+ ],"dev": true,"license": "MIT",- "dependencies": {- "serialize-javascript": "^6.0.1",- "smob": "^1.0.0",- "terser": "^5.17.4"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "rollup": "^2.0.0||^3.0.0||^4.0.0"- },- "peerDependenciesMeta": {- "rollup": {- "optional": true- }- }+ "optional": true,+ "os": [+ "win32"+ ]},- "node_modules/@rollup/pluginutils": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.3.0.tgz",- "integrity": "sha512-5EdhGZtnu3V88ces7s53hhfK5KSASnJZv8Lulpc04cWO3REESroJXg73DFsOmgbU2BhwV0E20bu2IDZb3VKW4Q==",+ "node_modules/@rollup/rollup-win32-x64-gnu": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.60.1.tgz",+ "integrity": "sha512-k+600V9Zl1CM7eZxJgMyTUzmrmhB/0XZnF4pRypKAlAgxmedUA+1v9R+XOFv56W4SlHEzfeMtzujLJD22Uz5zg==",+ "cpu": [+ "x64"+ ],"dev": true,"license": "MIT",- "dependencies": {- "@types/estree": "^1.0.0",- "estree-walker": "^2.0.2",- "picomatch": "^4.0.2"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "rollup": "^1.20.0||^2.0.0||^3.0.0||^4.0.0"- },- "peerDependenciesMeta": {- "rollup": {- "optional": true- }- }+ "optional": true,+ "os": [+ "win32"+ ]+ },+ "node_modules/@rollup/rollup-win32-x64-msvc": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.60.1.tgz",+ "integrity": "sha512-lWMnixq/QzxyhTV6NjQJ4SFo1J6PvOX8vUx5Wb4bBPsEb+8xZ89Bz6kOXpfXj9ak9AHTQVQzlgzBEc1SyM27xQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ]},"node_modules/@scure/base": {"version": "1.2.6",@@ -4401,17 +4877,6 @@"string.prototype.matchall": "^4.0.6"}},- "node_modules/@tybys/wasm-util": {- "version": "0.10.1",- "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",- "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },"node_modules/@types/estree": {"version": "1.0.8","resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",@@ -5216,6 +5681,48 @@"url": "https://github.com/sponsors/ljharb"}},+ "node_modules/esbuild": {+ "version": "0.27.7",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz",+ "integrity": "sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=18"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.27.7",+ "@esbuild/android-arm": "0.27.7",+ "@esbuild/android-arm64": "0.27.7",+ "@esbuild/android-x64": "0.27.7",+ "@esbuild/darwin-arm64": "0.27.7",+ "@esbuild/darwin-x64": "0.27.7",+ "@esbuild/freebsd-arm64": "0.27.7",+ "@esbuild/freebsd-x64": "0.27.7",+ "@esbuild/linux-arm": "0.27.7",+ "@esbuild/linux-arm64": "0.27.7",+ "@esbuild/linux-ia32": "0.27.7",+ "@esbuild/linux-loong64": "0.27.7",+ "@esbuild/linux-mips64el": "0.27.7",+ "@esbuild/linux-ppc64": "0.27.7",+ "@esbuild/linux-riscv64": "0.27.7",+ "@esbuild/linux-s390x": "0.27.7",+ "@esbuild/linux-x64": "0.27.7",+ "@esbuild/netbsd-arm64": "0.27.7",+ "@esbuild/netbsd-x64": "0.27.7",+ "@esbuild/openbsd-arm64": "0.27.7",+ "@esbuild/openbsd-x64": "0.27.7",+ "@esbuild/openharmony-arm64": "0.27.7",+ "@esbuild/sunos-x64": "0.27.7",+ "@esbuild/win32-arm64": "0.27.7",+ "@esbuild/win32-ia32": "0.27.7",+ "@esbuild/win32-x64": "0.27.7"+ }+ },"node_modules/escalade": {"version": "3.2.0","resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",@@ -6367,267 +6874,6 @@"integrity": "sha512-lsmMmGXBxXIK/VMLEj0kL6MtUs1kBGj1nTCzi6zgQoG1DEwqwt2DQyHxcLykceIxAnfE3hya7NuIh6PpC6S3fA==","license": "MIT"},- "node_modules/lightningcss": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz",- "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==",- "dev": true,- "license": "MPL-2.0",- "dependencies": {- "detect-libc": "^2.0.3"- },- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- },- "optionalDependencies": {- "lightningcss-android-arm64": "1.32.0",- "lightningcss-darwin-arm64": "1.32.0",- "lightningcss-darwin-x64": "1.32.0",- "lightningcss-freebsd-x64": "1.32.0",- "lightningcss-linux-arm-gnueabihf": "1.32.0",- "lightningcss-linux-arm64-gnu": "1.32.0",- "lightningcss-linux-arm64-musl": "1.32.0",- "lightningcss-linux-x64-gnu": "1.32.0",- "lightningcss-linux-x64-musl": "1.32.0",- "lightningcss-win32-arm64-msvc": "1.32.0",- "lightningcss-win32-x64-msvc": "1.32.0"- }- },- "node_modules/lightningcss-android-arm64": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz",- "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-darwin-arm64": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz",- "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-darwin-x64": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz",- "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-freebsd-x64": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz",- "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm-gnueabihf": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz",- "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm64-gnu": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz",- "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm64-musl": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz",- "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-x64-gnu": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz",- "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-x64-musl": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz",- "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-win32-arm64-msvc": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz",- "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-win32-x64-msvc": {- "version": "1.32.0",- "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz",- "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },"node_modules/lodash": {"version": "4.18.1","resolved": "https://registry.npmjs.org/lodash/-/lodash-4.18.1.tgz",@@ -7283,38 +7529,49 @@"url": "https://github.com/sponsors/ljharb"}},- "node_modules/rolldown": {- "version": "1.0.0-rc.15",- "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.15.tgz",- "integrity": "sha512-Ff31guA5zT6WjnGp0SXw76X6hzGRk/OQq2hE+1lcDe+lJdHSgnSX6nK3erbONHyCbpSj9a9E+uX/OvytZoWp2g==",+ "node_modules/rollup": {+ "version": "4.60.1",+ "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.60.1.tgz",+ "integrity": "sha512-VmtB2rFU/GroZ4oL8+ZqXgSA38O6GR8KSIvWmEFv63pQ0G6KaBH9s07PO8XTXP4vI+3UJUEypOfjkGfmSBBR0w==","dev": true,"license": "MIT","dependencies": {- "@oxc-project/types": "=0.124.0",- "@rolldown/pluginutils": "1.0.0-rc.15"+ "@types/estree": "1.0.8"},"bin": {- "rolldown": "bin/cli.mjs"+ "rollup": "dist/bin/rollup"},"engines": {- "node": "^20.19.0 || >=22.12.0"+ "node": ">=18.0.0",+ "npm": ">=8.0.0"},"optionalDependencies": {- "@rolldown/binding-android-arm64": "1.0.0-rc.15",- "@rolldown/binding-darwin-arm64": "1.0.0-rc.15",- "@rolldown/binding-darwin-x64": "1.0.0-rc.15",- "@rolldown/binding-freebsd-x64": "1.0.0-rc.15",- "@rolldown/binding-linux-arm-gnueabihf": "1.0.0-rc.15",- "@rolldown/binding-linux-arm64-gnu": "1.0.0-rc.15",- "@rolldown/binding-linux-arm64-musl": "1.0.0-rc.15",- "@rolldown/binding-linux-ppc64-gnu": "1.0.0-rc.15",- "@rolldown/binding-linux-s390x-gnu": "1.0.0-rc.15",- "@rolldown/binding-linux-x64-gnu": "1.0.0-rc.15",- "@rolldown/binding-linux-x64-musl": "1.0.0-rc.15",- "@rolldown/binding-openharmony-arm64": "1.0.0-rc.15",- "@rolldown/binding-wasm32-wasi": "1.0.0-rc.15",- "@rolldown/binding-win32-arm64-msvc": "1.0.0-rc.15",- "@rolldown/binding-win32-x64-msvc": "1.0.0-rc.15"+ "@rollup/rollup-android-arm-eabi": "4.60.1",+ "@rollup/rollup-android-arm64": "4.60.1",+ "@rollup/rollup-darwin-arm64": "4.60.1",+ "@rollup/rollup-darwin-x64": "4.60.1",+ "@rollup/rollup-freebsd-arm64": "4.60.1",+ "@rollup/rollup-freebsd-x64": "4.60.1",+ "@rollup/rollup-linux-arm-gnueabihf": "4.60.1",+ "@rollup/rollup-linux-arm-musleabihf": "4.60.1",+ "@rollup/rollup-linux-arm64-gnu": "4.60.1",+ "@rollup/rollup-linux-arm64-musl": "4.60.1",+ "@rollup/rollup-linux-loong64-gnu": "4.60.1",+ "@rollup/rollup-linux-loong64-musl": "4.60.1",+ "@rollup/rollup-linux-ppc64-gnu": "4.60.1",+ "@rollup/rollup-linux-ppc64-musl": "4.60.1",+ "@rollup/rollup-linux-riscv64-gnu": "4.60.1",+ "@rollup/rollup-linux-riscv64-musl": "4.60.1",+ "@rollup/rollup-linux-s390x-gnu": "4.60.1",+ "@rollup/rollup-linux-x64-gnu": "4.60.1",+ "@rollup/rollup-linux-x64-musl": "4.60.1",+ "@rollup/rollup-openbsd-x64": "4.60.1",+ "@rollup/rollup-openharmony-arm64": "4.60.1",+ "@rollup/rollup-win32-arm64-msvc": "4.60.1",+ "@rollup/rollup-win32-ia32-msvc": "4.60.1",+ "@rollup/rollup-win32-x64-gnu": "4.60.1",+ "@rollup/rollup-win32-x64-msvc": "4.60.1",+ "fsevents": "~2.3.2"}},"node_modules/safe-array-concat": {@@ -8275,16 +8532,17 @@}},"node_modules/vite": {- "version": "8.0.8",- "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.8.tgz",- "integrity": "sha512-dbU7/iLVa8KZALJyLOBOQ88nOXtNG8vxKuOT4I2mD+Ya70KPceF4IAmDsmU0h1Qsn5bPrvsY9HJstCRh3hG6Uw==",+ "version": "7.3.2",+ "resolved": "https://registry.npmjs.org/vite/-/vite-7.3.2.tgz",+ "integrity": "sha512-Bby3NOsna2jsjfLVOHKes8sGwgl4TT0E6vvpYgnAYDIF/tie7MRaFthmKuHx1NSXjiTueXH3do80FMQgvEktRg==","dev": true,"license": "MIT","dependencies": {- "lightningcss": "^1.32.0",- "picomatch": "^4.0.4",- "postcss": "^8.5.8",- "rolldown": "1.0.0-rc.15",+ "esbuild": "^0.27.0",+ "fdir": "^6.5.0",+ "picomatch": "^4.0.3",+ "postcss": "^8.5.6",+ "rollup": "^4.43.0","tinyglobby": "^0.2.15"},"bin": {@@ -8301,10 +8559,9 @@},"peerDependencies": {"@types/node": "^20.19.0 || >=22.12.0",- "@vitejs/devtools": "^0.1.0",- "esbuild": "^0.27.0 || ^0.28.0","jiti": ">=1.21.0","less": "^4.0.0",+ "lightningcss": "^1.21.0","sass": "^1.70.0","sass-embedded": "^1.70.0","stylus": ">=0.54.8",@@ -8317,18 +8574,15 @@"@types/node": {"optional": true},- "@vitejs/devtools": {- "optional": true- },- "esbuild": {- "optional": true- },"jiti": {"optional": true},"less": {"optional": true},+ "lightningcss": {+ "optional": true+ },"sass": {"optional": true},diff --git a/package.json b/package.jsonindex ccd0d7b61..77bab1991 100644--- a/package.json+++ b/package.json@@ -72,8 +72,8 @@"devDependencies": {"prettier": "^3.2.5","sharp": "^0.34.5",- "vite": "^8.0.8",- "vite-plugin-pwa": "^0.19.8",+ "vite": "^7.3.2",+ "vite-plugin-pwa": "^1.2.0","workbox-build": "^7.4.0","workbox-window": "^7.4.0"}diff --git a/prompts/archive/widget-studio/00-studio-foundation.md b/prompts/archive/widget-studio/00-studio-foundation.mdnew file mode 100644index 000000000..1c8d2c0f6--- /dev/null+++ b/prompts/archive/widget-studio/00-studio-foundation.md@@ -0,0 +1,279 @@+# Prompt 00 — Widget Studio Foundation++**Branch:** `feat/studio-foundation`+**Depends on:** nothing — run this first.+**Blocks:** every other widget prompt (01–07).++## Goal++Build the foundation of the Widget Studio: a new authenticated route `/studio`, a widget-type picker, a live preview panel that reuses the existing viewer, a persistence API (Neon-backed) for saving widget configs, and a public `#widget=<id>` URL-param resolver that loads a saved widget inside the existing viewer.++After this prompt ships, **no widget actually functions yet** — that is correct. This is the scaffolding the five widget prompts (01–05) will plug into.++## What you are building (one paragraph)++A signed-in user visits `/studio`. They pick one of their saved avatars (from their R2-backed avatar list) and a widget type from a grid of five cards (Turntable, Animation Gallery, Talking Agent, Passport, Hotspot Tour — only Turntable will be functional after this prompt; others render a "coming soon" placeholder). They get a live preview using the existing `Viewer` class, a shared brand-config panel (background color, accent color, caption text, kiosk controls toggle), and a "Generate Embed" button that persists config to Neon and returns a stable widget ID. A public URL like `https://3d.irish/#widget=wdgt_abc123` loads that saved config back into the viewer with no login required.++## Prerequisites++None. This prompt assumes the current codebase state as of commit `ef3b0d4`. Read the files below before writing any code.++## Read these first (do not skip)++| File | Why |+|:---|:---|+| [src/app.js](../../src/app.js) — lines 36–100, 270–340 | Understand the existing App boot sequence, URL hash parsing, `view()` method signature, and how `protocol`/`identity`/`avatar`/`runtime` are wired. You will add `hash.widget` parsing here. |+| [src/viewer.js](../../src/viewer.js) — constructor + `load()` + `setCamera()` | The `Viewer` class is what you'll render inside the Studio preview iframe. It already supports `cameraPosition`, background color, HDR environments, animations. |+| [src/account.js](../../src/account.js) | Existing client for avatar CRUD against `/api/avatars`. Mirror this pattern for widgets. |+| [api/avatars/index.js](../../api/avatars/index.js) and [api/avatars/presign.js](../../api/avatars/presign.js) | Reference implementation for an authenticated Vercel serverless CRUD endpoint backed by Neon. Follow the same auth + error conventions. |+| [api/_lib/](../../api/_lib/) | Shared helpers: auth middleware, Neon client, response helpers. Use these — do not create duplicates. |+| [public/dashboard/dashboard.js](../../public/dashboard/dashboard.js) — lines 1–90 | Dashboard's native-DOM rendering pattern. The Studio UI should follow the same style (no framework, no JSX runtime on the client — use `vhtml` if you want JSX, same as the validator components). |+| [vercel.json](../../vercel.json) | Route table. You will add `/studio` and `/api/widgets/*` routes here. |+| [style.css](../../style.css) | Existing dark theme tokens. Reuse the CSS variables and classes; do not introduce a new design system. |+| [index.html](../../index.html) | The SPA shell. You need to understand how hash params are consumed so `#widget=<id>` can hook in without breaking existing `#model=` behavior. |++Also run `ls api/_lib` and open every file in there — one of them almost certainly has `requireAuth()` or equivalent. Use it. Do not hand-roll auth.++## Build this++### 1. Database schema (Neon)++Add a new table `widgets`. Write a migration file at `api/_lib/migrations/002_widgets.sql` (match the existing naming convention — verify by running `ls api/_lib/migrations/` first and copy the numbering).++```sql+create table if not exists widgets (+ id text primary key, -- wdgt_<12char>+ user_id text not null references users(id) on delete cascade,+ avatar_id text references avatars(id) on delete set null,+ type text not null, -- turntable | animation-gallery | talking-agent | passport | hotspot-tour+ config jsonb not null default '{}'::jsonb,+ name text not null, -- user-friendly label+ is_public boolean not null default true,+ created_at timestamptz not null default now(),+ updated_at timestamptz not null default now(),+ view_count bigint not null default 0+);++create index if not exists widgets_user_id_idx on widgets(user_id);+create index if not exists widgets_type_idx on widgets(type);+```++**Confirm the `users` and `avatars` tables exist before adding FKs.** If column names differ (e.g. `user_id` vs `owner_id`), match the existing convention instead of mine.++### 2. API endpoints (Vercel serverless)++Create the following under `api/widgets/`:++| File | Method + Path | Auth | Purpose |+|:---|:---|:---|:---|+| `api/widgets/index.js` | `GET /api/widgets` | required | List current user's widgets. |+| `api/widgets/index.js` | `POST /api/widgets` | required | Create a widget. Returns `{ id, ... }`. |+| `api/widgets/[id].js` | `GET /api/widgets/:id` | **public** | Fetch a widget config by id. If `is_public=false`, require auth + ownership. Increment `view_count`. |+| `api/widgets/[id].js` | `PATCH /api/widgets/:id` | required + owner | Update config/name/is_public. |+| `api/widgets/[id].js` | `DELETE /api/widgets/:id` | required + owner | Delete. |++ID format: `wdgt_` + 12 URL-safe random chars (use `crypto.randomBytes(9).toString('base64url')` and verify the length — 9 bytes → 12 base64url chars).++Add matching entries to `vercel.json` (mirror how `/api/avatars` routes are wired).++Validation: use `zod` (already in deps) to validate request bodies. Reject unknown widget `type` values.++### 3. Client-side persistence helper++Create `src/widgets.js` — a small ESM module that mirrors `src/account.js`. Exports:++```js+export async function listWidgets();+export async function getWidget(id); // public, no credentials+export async function createWidget({ type, name, avatar_id, config, is_public });+export async function updateWidget(id, patch);+export async function deleteWidget(id);+```++All write calls use `credentials: 'include'`. Error handling mirrors `account.js`.++### 4. Widget config schema++Create `src/widget-types.js`. Defines:++```js+export const WIDGET_TYPES = {+ 'turntable': { label: 'Turntable Showcase', status: 'ready', icon: '...', desc: '...' },+ 'animation-gallery': { label: 'Animation Gallery', status: 'pending', icon: '...', desc: '...' },+ 'talking-agent': { label: 'Talking Agent', status: 'pending', icon: '...', desc: '...' },+ 'passport': { label: 'ERC-8004 Passport', status: 'pending', icon: '...', desc: '...' },+ 'hotspot-tour': { label: 'Hotspot Tour', status: 'pending', icon: '...', desc: '...' },+};++// Shared brand config present on every widget+export const BRAND_DEFAULTS = {+ background: '#0a0a0a',+ accent: '#00e5a0',+ caption: '',+ showControls: true,+ autoRotate: true,+ envPreset: 'neutral',+ cameraPosition: null, // [x, y, z] or null for auto-frame+};++export function defaultConfig(type) { /* returns { ...BRAND_DEFAULTS, ...typeSpecificDefaults[type] } */ }+export function validateConfig(type, config) { /* zod parse, throws on invalid */ }+```++`status: 'ready'` on type `turntable` only (per run order — the Turntable prompt will flip more to `ready` as they ship).++### 5. The `/studio` route++Create `public/studio/index.html` and `public/studio/studio.js` — mirror the layout of `public/dashboard/`. Add these rewrites to `vercel.json`:++```+{ "src": "/studio", "dest": "/public/studio/index.html" },+{ "src": "/studio/", "dest": "/public/studio/index.html" },+{ "src": "/studio/(.*)", "dest": "/public/studio/$1" },+```++**Auth gate:** On page load, call `/api/auth/me`. If not signed in, redirect to `/login?return=/studio`.++**Layout (three-column):**++```+┌────────────────┬────────────────────────────┬────────────────┐+│ 1. Pick avatar │ 2. Live preview (iframe) │ 3. Config │+│ (list of │ of existing viewer │ (brand + │+│ user's R2 │ with current config │ type-specific│+│ avatars) │ │ fields) │+│ │ │ │+│ 2. Pick type │ │ │+│ (5 cards) │ │ [Save] │+│ │ │ [Generate] │+└────────────────┴────────────────────────────┴────────────────┘+```++Column 1 calls `api.listAvatars()` (reuse `dashboard.js`'s `api`). Thumbnail cards — clicking sets `state.avatar_id`.++Column 2 is an `<iframe src="/?widget-preview=1#model=<model_url>&kiosk=true&...">` that reloads whenever config changes (debounce 200ms). **Do not build a second viewer.** Reuse the existing one via URL hash params. To apply brand colors, post a message to the iframe (next section).++Column 3 is a form. All changes update in-memory state and trigger the debounced preview reload. Fields:+- **Name** (text, required)+- **Background color** (color picker)+- **Accent color** (color picker)+- **Caption** (text, optional — rendered as overlay)+- **Show controls** (toggle)+- **Auto rotate** (toggle)+- **Environment** (select: none, neutral, venice-sunset, footprint-court)+- **Camera** — "Use current view" button that captures `viewer.activeCamera.position` and stores it. (Read from `window.VIEWER.viewer.activeCamera` via `iframe.contentWindow.VIEWER`.)+- **Type-specific fields** — for `turntable`, just rotation speed. For others, show a placeholder "Configured by Widget 0X — coming soon."++Below the form:+- **[Save Draft]** button → `createWidget()` or `updateWidget()` if editing.+- **[Generate Embed]** button → saves, then opens a modal with:+ - Live preview+ - Shareable URL: `https://<host>/#widget=<id>`+ - Iframe snippet (600x600 default, editable dimensions)+ - One-line script snippet: `<script async src="https://<host>/embed.js" data-widget="<id>"></script>` (stub script file — create `public/embed.js` that just creates an iframe for now)+ - "Show HTML" disclosure showing the raw snippet+ - Copy-to-clipboard buttons++### 6. `postMessage` bridge between Studio and preview iframe++The Studio parent sends live config updates to the preview iframe without a full reload. In `src/app.js`, add a message listener that accepts `{ type: 'widget:config', config }` and applies:+- Background color → `viewer.setBackgroundColor(config.background)` (add this method to `Viewer` if missing — it already supports background color via dat.gui, so the logic exists).+- Auto-rotate → `viewer.controls.autoRotate = config.autoRotate`.+- Env preset → `viewer.setEnvironment(preset)` (already exists).+- Controls visibility → toggle header/GUI via the existing `kiosk` pattern.++The Studio calls `iframe.contentWindow.postMessage({ type: 'widget:config', config }, location.origin)` on every debounced config change. Fall back to a full iframe reload if the bridge hasn't initialized yet.++**Security:** verify `event.origin === location.origin` in the listener.++### 7. Public widget resolver (the critical integration)++In `src/app.js`, after parsing the hash:++```js+if (hash.widget) {+ const widget = await getWidget(hash.widget); // public endpoint+ // Apply widget.config to this.options before any viewer work:+ // - model URL comes from widget.avatar.model_url (server-joined or second fetch)+ // - cameraPosition, background, etc. from config+ // Then proceed with normal view() flow.+ // Also expose widget.type so later prompts can branch on it:+ window.VIEWER.widget = widget;+}+```++Extend the widget GET endpoint so it returns the joined avatar row (`model_url`, `name`, `thumbnail_url`) so the client only makes one round-trip.++If the widget id is unknown, show an in-page error: "Widget not found." Do not redirect.++### 8. Ship nothing else++- Do **not** implement the Turntable-specific runtime logic (that's Prompt 01).+- Do **not** build the Widgets dashboard tab (that's Prompt 06).+- Do **not** register anything on-chain. Do **not** touch the MCP server.+- Do **not** change the default behavior when no `#widget=` is present. Every existing URL pattern must still work.++## Do not do this++- Do not introduce React, Tailwind, or TypeScript.+- Do not rewrite `Viewer` or `App`. Extend them minimally.+- Do not duplicate auth logic — reuse the helper in `api/_lib/`.+- Do not create a mock mode. If the Neon connection fails locally, document how to run Neon in dev (probably via `DATABASE_URL` env var — check how `api/avatars` does it).+- Do not hardcode the production domain. Use `location.origin` client-side and `req.headers.host` (or Vercel env vars) server-side.+- Do not ship the widget type cards as unclickable placeholders. "Coming soon" types should be *clickable* and render a Studio form with a banner saying "This widget type isn't functional yet — you can save the config; the runtime will light up when its prompt ships." The config still saves and round-trips.++## Deliverables (exact file list)++**New:**+- `api/_lib/migrations/002_widgets.sql` (or next available number — verify first)+- `api/widgets/index.js`+- `api/widgets/[id].js`+- `src/widgets.js`+- `src/widget-types.js`+- `public/studio/index.html`+- `public/studio/studio.js`+- `public/studio/studio.css` (or extend `style.css` if it makes more sense)+- `public/embed.js` (stub iframe-injector script)++**Modified:**+- `src/app.js` — add `hash.widget` handling + postMessage listener+- `src/viewer.js` — add `setBackgroundColor()` if not already exposed as a public method+- `vercel.json` — add `/studio`, `/api/widgets`, `/api/widgets/*` routes+- `package.json` — no new deps should be needed; if you add one, justify it in the PR description++## Acceptance criteria++You are done when **all** of these are true:++- [ ] Signed-out user hitting `/studio` is redirected to `/login?return=/studio`.+- [ ] Signed-in user sees their R2 avatars in column 1 and five widget-type cards in column 2 picker.+- [ ] Selecting an avatar + `turntable` + adjusting brand fields updates the live preview in under 500ms of input idle.+- [ ] Clicking "Save Draft" persists the widget and shows a success toast. Reloading the page with `?edit=<id>` (or similar deep-link) loads the saved config back.+- [ ] Clicking "Generate Embed" opens a modal with a working `https://<host>/#widget=<id>` URL.+- [ ] Opening that URL in a **signed-out** private window loads the model with the saved camera, background, env, and caption applied. No errors in the console.+- [ ] `view_count` increments on each public load of the widget URL.+- [ ] Every existing URL (`#model=...`, bare `/`) still works unchanged.+- [ ] No new framework dependency appears in `package.json`.+- [ ] `npm run build` completes without errors.+- [ ] Lighthouse accessibility score on `/studio` ≥ 90. (Run it in Chrome devtools.)++## Test plan++1. `npm run dev`. Open `http://localhost:3000/studio` in a signed-out browser. Verify redirect to `/login`.+2. Sign in. Return to `/studio`. Verify your avatars load.+3. Pick an avatar, pick Turntable, change background to hot pink. Preview updates.+4. Click "Use current view" after orbiting — preview persists that camera.+5. Save draft. Refresh. Verify it re-loads the draft.+6. Generate embed. Copy the URL. Paste in a private window. Verify:+ - Model loads.+ - Background, camera, env are applied.+ - No dat.gui panel if `showControls=false`.+7. Deliberately break: visit `/#widget=wdgt_does_not_exist`. Verify graceful error, not a crash.+8. Open `public/embed.js` snippet in an HTML scratch file. Verify it injects an iframe.+9. `npm run build && npm run dev` — confirm production build works.++## When you finish++- Commit to `feat/studio-foundation`.+- Open a PR with a screenshot of the Studio UI and the public widget URL working in an incognito window.+- Ping: "Studio foundation shipped. 01–05 are unblocked."diff --git a/public/dashboard/index.html b/public/dashboard/index.htmlindex 8e0411b4d..82b3b3f93 100644--- a/public/dashboard/index.html+++ b/public/dashboard/index.html@@ -141,7 +141,7 @@<main id="main"></main></div><script type="module">-import { state, api, navigate, signOut } from './dashboard.js';+import { state, api, navigate, signOut } from '/dashboard/dashboard.js';window.signOut = signOut;(async () => {diff --git a/src/editor/scene-explorer.js b/src/editor/scene-explorer.jsindex b5ef43987..6496ee412 100644--- a/src/editor/scene-explorer.js+++ b/src/editor/scene-explorer.js@@ -70,7 +70,8 @@ export class SceneExplorer {}if (this.transformControls) {this.transformControls.detach();- this.viewer.scene.remove(this.transformControls);+ const helper = this.transformControls.getHelper ? this.transformControls.getHelper() : this.transformControls;+ this.viewer.scene.remove(helper);this.transformControls.dispose?.();this.transformControls = null;}@@ -417,7 +418,7 @@ export class SceneExplorer {this.viewer.invalidate();});tc.addEventListener('change', () => this.viewer.invalidate());- this.viewer.scene.add(tc);+ this.viewer.scene.add(tc.getHelper ? tc.getHelper() : tc);this.transformControls = tc;}diff --git a/vite.config.js b/vite.config.jsindex 87daebe5a..0303dce09 100644--- a/vite.config.js+++ b/vite.config.js@@ -1,5 +1,6 @@import { defineConfig } from 'vite';import { resolve } from 'path';+import { readFileSync } from 'fs';import { VitePWA } from 'vite-plugin-pwa';// The build emits two targets controlled by the TARGET env var:@@ -17,6 +18,7 @@ const appConfig = {jsx: 'transform',jsxFactory: 'vhtml',jsxFragment: '"div"',+ jsxDev: false,},build: {chunkSizeWarningLimit: 1000,@@ -31,6 +33,37 @@ const appConfig = {},},plugins: [+ {+ name: 'vercel-rewrites',+ configureServer(server) {+ const root = resolve(__dirname);+ const fileMap = {+ '/login': resolve(root, 'public/login.html'),+ '/register': resolve(root, 'public/register.html'),+ '/features': resolve(root, 'features.html'),+ '/dashboard': resolve(root, 'public/dashboard/index.html'),+ '/studio': resolve(root, 'public/studio/index.html'),+ '/widgets': resolve(root, 'public/widgets-gallery/index.html'),+ '/docs/widgets': resolve(root, 'public/docs-widgets.html'),+ '/agent': resolve(root, 'agent-home.html'),+ };+ server.middlewares.use(async (req, res, next) => {+ const path = (req.url || '/').split('?')[0];+ let filePath = fileMap[path];+ if (!filePath && /^\/agent\/[^/]+\/embed$/.test(path)) filePath = resolve(root, 'agent-embed.html');+ else if (!filePath && /^\/agent\/[^/]+$/.test(path)) filePath = resolve(root, 'agent-home.html');+ if (!filePath) return next();+ try {+ const html = readFileSync(filePath, 'utf8');+ const transformed = await server.transformIndexHtml(req.url, html);+ res.setHeader('Content-Type', 'text/html; charset=utf-8');+ res.end(transformed);+ } catch {+ next();+ }+ });+ },+ },VitePWA({registerType: 'autoUpdate',includeAssets: ['favicon.ico', 'pwa-192x192.png', 'pwa-512x512.png', 'pwa-icon.svg'],diff --git a/yarn.lock b/yarn.lockindex b774efef1..6f9f1d0b9 100644--- a/yarn.lock+++ b/yarn.lock@@ -1389,6 +1389,11 @@resolved "https://registry.npmjs.org/@chenglou/pretext/-/pretext-0.0.5.tgz"integrity sha512-A8GZN10REdFGsyuiUgLV8jjPDDFMg5GmgxGWV0I3igxBOnzj+jgz2VMmVD7g+SFyoctfeqHFxbNatKSzVRWtRg==+"@esbuild/[email protected]":+ version "0.27.7"+ resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.27.7.tgz"+ integrity sha512-hzznmADPt+OmsYzw1EE33ccA+HPdIqiCRq7cQeL1Jlq2gb1+OyWBkMCrYGBJ+sxVzve2ZJEVeePbLM2iEIZSxA==+"@gltf-transform/core@^4.3.0":version "4.3.0"resolved "https://registry.npmjs.org/@gltf-transform/core/-/core-4.3.0.tgz"@@ -1523,11 +1528,6 @@resolved "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz"integrity sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==-"@oxc-project/types@=0.124.0":- version "0.124.0"- resolved "https://registry.npmjs.org/@oxc-project/types/-/types-0.124.0.tgz"- integrity sha512-VBFWMTBvHxS11Z5Lvlr3IWgrwhMTXV+Md+EQF0Xf60+wAdsGFTBx7X7K/hP4pi8N7dcm1RvcHwDxZ16Qx8keUg==-"@privy-io/[email protected]":version "1.8.3"resolved "https://registry.npmjs.org/@privy-io/api-base/-/api-base-1.8.3.tgz"@@ -1576,21 +1576,6 @@dependencies:"@privy-io/api-types" "0.8.0"-"@rolldown/[email protected]":- version "1.0.0-rc.15"- resolved "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.0-rc.15.tgz"- integrity sha512-023bTPBod7J3Y/4fzAN6QtpkSABR0rigtrwaP+qSEabUh5zf6ELr9Nc7GujaROuPY3uwdSIXWrvhn1KxOvurWA==--"@rolldown/[email protected]":- version "1.0.0-rc.15"- resolved "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.0-rc.15.tgz"- integrity sha512-witB2O0/hU4CgfOOKUoeFgQ4GktPi1eEbAhaLAIpgD6+ZnhcPkUtPsoKKHRzmOoWPZue46IThdSgdo4XneOLYw==--"@rolldown/[email protected]":- version "1.0.0-rc.15"- resolved "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-rc.15.tgz"- integrity sha512-UromN0peaE53IaBRe9W7CjrZgXl90fqGpK+mIZbA3qSTeYqg3pqpROBdIPvOG3F5ereDHNwoHBI2e50n1BDr1g==-"@rollup/plugin-babel@^5.2.0":version "5.3.1"resolved "https://registry.npmjs.org/@rollup/plugin-babel/-/plugin-babel-5.3.1.tgz"@@ -1645,6 +1630,11 @@estree-walker "^2.0.2"picomatch "^4.0.2"+"@rollup/[email protected]":+ version "4.60.1"+ resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.60.1.tgz"+ integrity sha512-77PpsFQUCOiZR9+LQEFg9GClyfkNXj1MP6wRnzYs0EeWbPcHs02AXu4xuUbM1zhwn3wqaizle3AEYg5aeoohhg==+"@scure/base@~1.2.5":version "1.2.6"resolved "https://registry.npmjs.org/@scure/base/-/base-1.2.6.tgz"@@ -2169,7 +2159,7 @@magic-string "^0.25.0"string.prototype.matchall "^4.0.6"-"@types/estree@^1.0.0":+"@types/estree@^1.0.0", "@types/[email protected]":version "1.0.8"resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz"integrity sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==@@ -2519,7 +2509,7 @@ define-properties@^1.2.1:has-property-descriptors "^1.0.0"object-keys "^1.1.1"-detect-libc@^2.0.3, detect-libc@^2.1.2:+detect-libc@^2.1.2:version "2.1.2"resolved "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz"integrity sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==@@ -2641,6 +2631,38 @@ es-to-primitive@^1.3.0:is-date-object "^1.0.5"is-symbol "^1.0.4"+esbuild@^0.27.0:+ version "0.27.7"+ resolved "https://registry.npmjs.org/esbuild/-/esbuild-0.27.7.tgz"+ integrity sha512-IxpibTjyVnmrIQo5aqNpCgoACA/dTKLTlhMHihVHhdkxKyPO1uBBthumT0rdHmcsk9uMonIWS0m4FljWzILh3w==+ optionalDependencies:+ "@esbuild/aix-ppc64" "0.27.7"+ "@esbuild/android-arm" "0.27.7"+ "@esbuild/android-arm64" "0.27.7"+ "@esbuild/android-x64" "0.27.7"+ "@esbuild/darwin-arm64" "0.27.7"+ "@esbuild/darwin-x64" "0.27.7"+ "@esbuild/freebsd-arm64" "0.27.7"+ "@esbuild/freebsd-x64" "0.27.7"+ "@esbuild/linux-arm" "0.27.7"+ "@esbuild/linux-arm64" "0.27.7"+ "@esbuild/linux-ia32" "0.27.7"+ "@esbuild/linux-loong64" "0.27.7"+ "@esbuild/linux-mips64el" "0.27.7"+ "@esbuild/linux-ppc64" "0.27.7"+ "@esbuild/linux-riscv64" "0.27.7"+ "@esbuild/linux-s390x" "0.27.7"+ "@esbuild/linux-x64" "0.27.7"+ "@esbuild/netbsd-arm64" "0.27.7"+ "@esbuild/netbsd-x64" "0.27.7"+ "@esbuild/openbsd-arm64" "0.27.7"+ "@esbuild/openbsd-x64" "0.27.7"+ "@esbuild/openharmony-arm64" "0.27.7"+ "@esbuild/sunos-x64" "0.27.7"+ "@esbuild/win32-arm64" "0.27.7"+ "@esbuild/win32-ia32" "0.27.7"+ "@esbuild/win32-x64" "0.27.7"+escalade@^3.2.0:version "3.2.0"resolved "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz"@@ -3200,35 +3222,6 @@ libphonenumber-js@^1.10.44:resolved "https://registry.npmjs.org/libphonenumber-js/-/libphonenumber-js-1.12.41.tgz"integrity sha512-lsmMmGXBxXIK/VMLEj0kL6MtUs1kBGj1nTCzi6zgQoG1DEwqwt2DQyHxcLykceIxAnfE3hya7NuIh6PpC6S3fA==- version "1.32.0"- resolved "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz"- integrity sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==-- version "1.32.0"- resolved "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz"- integrity sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==--lightningcss@^1.32.0:- version "1.32.0"- resolved "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz"- integrity sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==- dependencies:- detect-libc "^2.0.3"- optionalDependencies:- lightningcss-android-arm64 "1.32.0"- lightningcss-darwin-arm64 "1.32.0"- lightningcss-darwin-x64 "1.32.0"- lightningcss-freebsd-x64 "1.32.0"- lightningcss-linux-arm-gnueabihf "1.32.0"- lightningcss-linux-arm64-gnu "1.32.0"- lightningcss-linux-arm64-musl "1.32.0"- lightningcss-linux-x64-gnu "1.32.0"- lightningcss-linux-x64-musl "1.32.0"- lightningcss-win32-arm64-msvc "1.32.0"- lightningcss-win32-x64-msvc "1.32.0"-lodash.debounce@^4.0.8:version "4.0.8"resolved "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz"@@ -3418,7 +3411,7 @@ picomatch@^2.2.2:resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz"integrity sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==-picomatch@^4.0.2, picomatch@^4.0.4:+picomatch@^4.0.2, picomatch@^4.0.3, picomatch@^4.0.4:version "4.0.4"resolved "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz"integrity sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==@@ -3428,7 +3421,7 @@ possible-typed-array-names@^1.0.0:resolved "https://registry.npmjs.org/possible-typed-array-names/-/possible-typed-array-names-1.1.0.tgz"integrity sha512-/+5VFTchJDoVj3bhoqi6UeymcD00DAwb1nJwamzPvHEszJ4FpF6SNNbUbOS8yI56qHzdV8eK0qEfOSiodkTdxg==-postcss@^8.5.8:+postcss@^8.5.6:version "8.5.9"resolved "https://registry.npmjs.org/postcss/-/postcss-8.5.9.tgz"integrity sha512-7a70Nsot+EMX9fFU3064K/kdHWZqGVY+BADLyXc8Dfv+mTLLVl6JzJpPaCZ2kQL9gIJvKXSLMHhqdRRjwQeFtw==@@ -3575,30 +3568,6 @@ resolve@^1.22.1, resolve@^1.22.11:path-parse "^1.0.7"supports-preserve-symlinks-flag "^1.0.0"- version "1.0.0-rc.15"- resolved "https://registry.npmjs.org/rolldown/-/rolldown-1.0.0-rc.15.tgz"- integrity sha512-Ff31guA5zT6WjnGp0SXw76X6hzGRk/OQq2hE+1lcDe+lJdHSgnSX6nK3erbONHyCbpSj9a9E+uX/OvytZoWp2g==- dependencies:- "@oxc-project/types" "=0.124.0"- "@rolldown/pluginutils" "1.0.0-rc.15"- optionalDependencies:- "@rolldown/binding-android-arm64" "1.0.0-rc.15"- "@rolldown/binding-darwin-arm64" "1.0.0-rc.15"- "@rolldown/binding-darwin-x64" "1.0.0-rc.15"- "@rolldown/binding-freebsd-x64" "1.0.0-rc.15"- "@rolldown/binding-linux-arm-gnueabihf" "1.0.0-rc.15"- "@rolldown/binding-linux-arm64-gnu" "1.0.0-rc.15"- "@rolldown/binding-linux-arm64-musl" "1.0.0-rc.15"- "@rolldown/binding-linux-ppc64-gnu" "1.0.0-rc.15"- "@rolldown/binding-linux-s390x-gnu" "1.0.0-rc.15"- "@rolldown/binding-linux-x64-gnu" "1.0.0-rc.15"- "@rolldown/binding-linux-x64-musl" "1.0.0-rc.15"- "@rolldown/binding-openharmony-arm64" "1.0.0-rc.15"- "@rolldown/binding-wasm32-wasi" "1.0.0-rc.15"- "@rolldown/binding-win32-arm64-msvc" "1.0.0-rc.15"- "@rolldown/binding-win32-x64-msvc" "1.0.0-rc.15"-rollup@^2.79.2:version "2.80.0"resolved "https://registry.npmjs.org/rollup/-/rollup-2.80.0.tgz"@@ -3606,6 +3575,40 @@ rollup@^2.79.2:optionalDependencies:fsevents "~2.3.2"+rollup@^4.43.0:+ version "4.60.1"+ resolved "https://registry.npmjs.org/rollup/-/rollup-4.60.1.tgz"+ integrity sha512-VmtB2rFU/GroZ4oL8+ZqXgSA38O6GR8KSIvWmEFv63pQ0G6KaBH9s07PO8XTXP4vI+3UJUEypOfjkGfmSBBR0w==+ dependencies:+ "@types/estree" "1.0.8"+ optionalDependencies:+ "@rollup/rollup-android-arm-eabi" "4.60.1"+ "@rollup/rollup-android-arm64" "4.60.1"+ "@rollup/rollup-darwin-arm64" "4.60.1"+ "@rollup/rollup-darwin-x64" "4.60.1"+ "@rollup/rollup-freebsd-arm64" "4.60.1"+ "@rollup/rollup-freebsd-x64" "4.60.1"+ "@rollup/rollup-linux-arm-gnueabihf" "4.60.1"+ "@rollup/rollup-linux-arm-musleabihf" "4.60.1"+ "@rollup/rollup-linux-arm64-gnu" "4.60.1"+ "@rollup/rollup-linux-arm64-musl" "4.60.1"+ "@rollup/rollup-linux-loong64-gnu" "4.60.1"+ "@rollup/rollup-linux-loong64-musl" "4.60.1"+ "@rollup/rollup-linux-ppc64-gnu" "4.60.1"+ "@rollup/rollup-linux-ppc64-musl" "4.60.1"+ "@rollup/rollup-linux-riscv64-gnu" "4.60.1"+ "@rollup/rollup-linux-riscv64-musl" "4.60.1"+ "@rollup/rollup-linux-s390x-gnu" "4.60.1"+ "@rollup/rollup-linux-x64-gnu" "4.60.1"+ "@rollup/rollup-linux-x64-musl" "4.60.1"+ "@rollup/rollup-openbsd-x64" "4.60.1"+ "@rollup/rollup-openharmony-arm64" "4.60.1"+ "@rollup/rollup-win32-arm64-msvc" "4.60.1"+ "@rollup/rollup-win32-ia32-msvc" "4.60.1"+ "@rollup/rollup-win32-x64-gnu" "4.60.1"+ "@rollup/rollup-win32-x64-msvc" "4.60.1"+ fsevents "~2.3.2"+safe-array-concat@^1.1.3:version "1.1.3"resolved "https://registry.npmjs.org/safe-array-concat/-/safe-array-concat-1.1.3.tgz"@@ -3951,7 +3954,7 @@ tr46@^1.0.1:dependencies:punycode "^2.1.0"-tslib@^2.4.0, tslib@^2.6.2:+tslib@^2.6.2:version "2.8.1"resolved "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz"integrity sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==@@ -4124,15 +4127,16 @@ vite-plugin-pwa@^1.2.0:workbox-build "^7.4.0"workbox-window "^7.4.0"-vite@^8.0.8:- version "8.0.8"- resolved "https://registry.npmjs.org/vite/-/vite-8.0.8.tgz"- integrity sha512-dbU7/iLVa8KZALJyLOBOQ88nOXtNG8vxKuOT4I2mD+Ya70KPceF4IAmDsmU0h1Qsn5bPrvsY9HJstCRh3hG6Uw==+vite@^7.3.2:+ version "7.3.2"+ resolved "https://registry.npmjs.org/vite/-/vite-7.3.2.tgz"+ integrity sha512-Bby3NOsna2jsjfLVOHKes8sGwgl4TT0E6vvpYgnAYDIF/tie7MRaFthmKuHx1NSXjiTueXH3do80FMQgvEktRg==dependencies:- lightningcss "^1.32.0"- picomatch "^4.0.4"- postcss "^8.5.8"- rolldown "1.0.0-rc.15"+ esbuild "^0.27.0"+ fdir "^6.5.0"+ picomatch "^4.0.3"+ postcss "^8.5.6"+ rollup "^4.43.0"tinyglobby "^0.2.15"optionalDependencies:fsevents "~2.3.3"