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
Update meta tags and remove unused styles for improved SEO and performance
fudjia9470e283cd2a
diff --git a/ARCHITECTURE.md b/ARCHITECTURE.mdindex c9a5372a1..fa50572f6 100644--- a/ARCHITECTURE.md+++ b/ARCHITECTURE.md@@ -2284,7 +2284,7 @@ sequenceDiagram| `introduction.md` · `how-it-works.md` · `start-here.md` · `quick-start.md` | Platform onboarding || `architecture.md` · `layers.md` | Narrative architecture (companion to this file) || `api-reference.md` · `api/` · `js-api.md` | REST + JS API reference |-| `sdk.md` · `sdk-launch.md` | SDK usage + publish runbook |+| `sdk.md` | SDK usage || `mcp.md` · `mcp-3d-studio.md` · `mcp-agent.md` · `mcp-studio.md` · `mcp-x402-bazaar.md` · `ibm-x402-mcp.md` | MCP server catalogs || `x402.md` · `aws-builder-center-marketplace-x402.md` | x402 payment rail || `smart-contracts.md` · `solana.md` · `solana-pumpfun.md` · `solana-reputation.md` · `onchain-agents.md` · `erc8004.md` | On-chain systems |@@ -2312,7 +2312,7 @@ sequenceDiagram| `docs/x402-offer-receipt/` | 7 x402 offer/receipt protocol docs || `docs/pumpfun-program/` | 6 pump.fun program references || `docs/zauth/` | 5 auth/identity protocol docs |-| `docs/agent-briefs/` | 4 agent briefs |+| `docs/agent-briefs/` | 3 agent briefs || `docs/ops/` · `docs/security/` | Operational + security runbooks || `docs/ibm.md` · `docs/aws-*` · `docs/nvidia-inception/` | Partner integration kits (IBM watsonx, AWS Marketplace, NVIDIA Inception) |diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/DEPLOY-NOTES.md b/docs/agent-briefs/X-prod-errors-2026-06-05/DEPLOY-NOTES.mddeleted file mode 100644index ab6feae6d..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/DEPLOY-NOTES.md+++ /dev/null@@ -1,77 +0,0 @@-# Deploy notes — production error remediation (2026-06-05)--All 12 fixes from [`prompts/`](prompts/) are implemented in the working tree. This file-records (a) what shipped as code, and (b) the **operational actions** that must accompany the-deploy — env vars and a migration that code alone can't set. Do the operational items or some-fixes only half-land.--## Code changes (this session)--| Fix | Files | What changed |-|-----|-------|--------------|-| 01 | `api/_lib/text-extract.js`, `api/widgets/[id]/[action].js` | (already in tree) jsdom→`node-html-parser`; knowledge ingest dynamically imported & isolated. Verified clean. |-| 02 | `api/_lib/rate-limit.js`, `api/_lib/cache.js` | (already in tree) `resilientLimiter` fails open (non-critical) / closed (money) on over-quota `UpstashError`; cache memo + memory fallback. Verified. |-| 03 | `api/_lib/chat-models.js`, `api/chat.js` | (already in tree) reliability-first order, capability-aware routing, dead routes removed, bounded fallback. Verified. |-| 04 | `api/_lib/migrations/20260605120000_usage_events.sql` (new), `api/agents.js` | New idempotent `usage_events` migration; `chat_count` query guarded so a missing table can't 500 the agent fetch. `forge_creations` already guarded + migration present. |-| 05 | `api/_lib/market/ohlcv.js`, `api/ibm/oracle.js` | GeckoTerminal: retry-once on 429, preserve 429 status; oracle wraps all 3 upstream calls → clean 503/404/502. Birdeye path already cached + degrades. |-| 06 | `api/brain/chat.js` | All OpenAI-compatible providers now use `.chat()` (Chat Completions) instead of the Responses API → fixes "Invalid Responses API request" / "unsupported content types"; adaptive retry parses "can only afford N" and re-streams within budget. |-| 07 | `api/_lib/token/config.js` | `publicConfig()` reports `treasury_configured:false` instead of throwing; `treasuryWallet()` stays strict (now a typed 503) on fund-routing. |-| 08 | `api/cron/[name].js` | `IDX_HEAD_CONFIRMATIONS` buffer (cross-RPC head-skew + reorg safety) fixes "block range extends beyond current head"; range/head errors now resume via cursor instead of erroring. RPC rotation/cursor/budget already present; `1rpc.io` already demoted to last. |-| 09 | `src/solana/vanity/grinder-node.js`, `vercel.json`, `api/pump/[action].js` | `ensureWasm` resolves the WASM from multiple candidate paths (bundler-proof); explicit `api/pump/[action].js` function entry ships `src/solana/vanity/wasm/**` + `maxDuration:60`; `uri` bounded to 200 so the launch tx can't overrun 1232 bytes (413 guard already present). Grinder verified working locally. |-| 10 | `api/agents/[id]/skills-pricing.js` | `sql.transaction()` rewritten to the Neon array contract (was the pg interactive callback). |-| 11 | `api/x402-pay/og.js` | Serves SVG directly (no `sharp`/libvips) → kills the Fontconfig error. `play-og.js` and `agent-og.js` already guarded (fallback card / UUID validation). |-| 12 | `api/_lib/db.js`, `api/tts/edge.js` | NUL bytes stripped from all string query params at the `sql` proxy boundary (fixes `0x00` UTF8 insert errors platform-wide); Edge-TTS retries once on the transient HTTP-200 handshake rejection. `llm/anthropic` double body-read already correct (each branch reads once). |--## ⚠️ Operational actions required (not code)--These are the half of the incident that is environment/quota, not logic. Each maps to a fix-above.--### 1. Apply the database migrations to production (Fix 04)-The prod Neon DB is missing `usage_events` (and was missing `forge_creations`). Run the-migration runner against the prod `DATABASE_URL`:-```-node scripts/run-migrations.mjs # uses DATABASE_URL from env-```-Confirm: `select to_regclass('public.usage_events'), to_regclass('public.forge_creations');`-both non-null, and the rows appear in `schema_migrations`.--### 2. Set `THREE_TREASURY_WALLET` in prod (Fix 07)-The token fund-routing path fails closed without it. Set it to the **real `$THREE` treasury-address** (confirm the value with the owner — do not invent one):-```-vercel env add THREE_TREASURY_WALLET production-```-Until set, `/api/token/config` now returns `treasury_configured:false` (clean) instead of 500,-but any treasury fund-routing stays blocked by design.--### 3. Upstash Redis quota (Fix 02)-The monthly 500k-command cap was exhausted. Code now degrades gracefully, but to restore-full rate-limiting/caching either **upgrade the Upstash plan** or keep usage under the cap.-The cache memo + fail-open changes reduce burn; monitor `UpstashError` frequency post-deploy.--### 4. LLM provider billing/quota (Fix 03 / 06)-- **OpenAI** key is over quota ("exceeded your current quota") — top up billing or it stays a- dead final tier (it's already ranked last so it only costs one wasted attempt).-- **OpenRouter** free tier credit ceiling drives the `brain/chat` "more credits" errors — the- adaptive retry handles it, but adding OpenRouter credits removes the degraded-budget path.--### 5. Paid Ethereum RPC for the delegations cron (Fix 08)-Public RPCs (`1rpc.io` etc.) 429 and don't all support `eth_getLogs`. Set a keyed RPC per-chain so it's tried first (the code already honours these env overrides):-```-RPC_URL_1=<alchemy/infura mainnet url>-RPC_URL_8453=<base url> # + testnet chains as needed-```--### 6. (Optional) Birdeye / market data keys (Fix 05)-If a `BIRDEYE_API_KEY` is configured the three-token path uses the higher tier. GeckoTerminal-is keyless; the retry + caching keep it under the free cap.--## Verification after deploy-Grep the next 24h of function logs — these signatures should be gone or near-zero:-`ERR_REQUIRE_ESM`, `max requests limit exceeded` (as 500s), `Invalid Responses API request`,-`relation "usage_events" does not exist`, `THREE_TREASURY_WALLET is required`,-`transaction() expects an array`, `invalid byte sequence ... 0x00`,-`vanity_grinder_bg.wasm` ENOENT, `encoding overruns Uint8Array`,-`block range extends beyond current head`, `Fontconfig error`, `invalid input syntax for type uuid`.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/README.md b/docs/agent-briefs/X-prod-errors-2026-06-05/README.mddeleted file mode 100644index c8734ccde..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/README.md+++ /dev/null@@ -1,48 +0,0 @@-# Production Error Remediation — 2026-06-05--Source: `3dagent-log-export-2026-06-05T10-18-30.json` (Vercel function logs, project `three.ws`).-Window: **2026-06-04 10:19 UTC → 2026-06-05 10:18 UTC** (24h).-Volume: **5,945 log lines** — 2,571 `error`, 563 `warning`, plus status-code rollups-(965×200, 4,030×500, 948×502).--Every line in the export traces back to **~12 distinct root causes**. This document-groups them, names the source of each, and ships a self-contained fix prompt per issue-under [`prompts/`](prompts/). Each prompt is written to be handed to one agent and-executed end-to-end — trace to source, fix properly, wire 100%, verify. No suppression,-no swallowing errors, no shortcuts.--## How to use this--1. Work the prompts in **priority order** (P0 → P2). P0 issues are taking whole- functions down (HTTP 500/502) and dwarf everything else by volume.-2. One agent per prompt file. Each prompt is the agent's complete brief.-3. After each fix: the agent must reproduce-or-prove the failure path, fix at the- source, redeploy/verify, and confirm the specific log signature can no longer occur.-4. Push to **both** remotes only on explicit user approval (see `CLAUDE.md`).--## Severity ledger (by blast radius, not just count)--| # | Prompt | Root cause | Endpoints hit | ~Lines | Sev |-|---|--------|-----------|---------------|-------:|-----|-| 01 | [`01-jsdom-esm-require-crash.md`](prompts/01-jsdom-esm-require-crash.md) | `jsdom → html-encoding-sniffer → @exodus/bytes` `ERR_REQUIRE_ESM` crashes the bundled function at load | widgets `stats`, `transcripts`, `knowledge`, `chat` | **1,242** | **P0** |-| 02 | [`02-upstash-request-limit.md`](prompts/02-upstash-request-limit.md) | Upstash Redis monthly request cap (500k) exhausted → every Redis-backed route 500s | explore, marketplace, agents, auth, solana-rpc, +15 more | **737** | **P0** |-| 03 | [`03-chat-provider-exhaustion.md`](prompts/03-chat-provider-exhaustion.md) | All LLM fallback routes 429/quota-exhausted; OpenAI billing quota hit; free OpenRouter models rate-limited | `/api/chat`, `/api/llm/anthropic` | ~700 | **P0** |-| 04 | [`04-missing-db-tables.md`](prompts/04-missing-db-tables.md) | Prod DB missing tables: `forge_creations`, `usage_events` (migrations/schema not applied) | forge-gallery, agents/[id] | ~25 | **P1** |-| 05 | [`05-birdeye-geckoterminal-429.md`](prompts/05-birdeye-geckoterminal-429.md) | Birdeye + GeckoTerminal 429 (no cache/backoff/key) | three-token, ibm/oracle | ~175 | **P1** |-| 06 | [`06-brain-chat-openrouter-credits.md`](prompts/06-brain-chat-openrouter-credits.md) | `/api/brain/chat` OpenRouter free-tier credit ceiling + invalid Responses-API payloads | `/api/brain/chat` | ~95 | **P1** |-| 07 | [`07-token-treasury-wallet-unset.md`](prompts/07-token-treasury-wallet-unset.md) | `THREE_TREASURY_WALLET` unset in prod → `/api/token/config` throws (fail-closed, correct, but unconfigured) | `/api/token/[action]` | 18 | **P1** |-| 08 | [`08-cron-eth-rpc-failures.md`](prompts/08-cron-eth-rpc-failures.md) | `index-delegations` cron: public ETH RPCs 429 / `eth_getLogs` unsupported / time-budget exceeded | `/api/cron/index-delegations` | ~40 | **P1** |-| 09 | [`09-pump-launch-wasm-and-tx.md`](prompts/09-pump-launch-wasm-and-tx.md) | `/api/pump/launch-agent`: missing bundled `vanity_grinder_bg.wasm`; `encoding overruns Uint8Array` tx serialize; 30s timeouts | `/api/pump/[action]` | ~16 | **P1** |-| 10 | [`10-skills-pricing-neon-transaction.md`](prompts/10-skills-pricing-neon-transaction.md) | `db.transaction()` called with wrong arg shape (Neon serverless contract) | `/api/agents/[id]/skills-pricing` | 4 | **P2** |-| 11 | [`11-og-and-url-edge-cases.md`](prompts/11-og-and-url-edge-cases.md) | `/api/play-og` Invalid URL; `agent-og` `:id` literal passed to uuid; `x402-pay/og` Fontconfig | play-og, agent-og, x402-pay/og | ~5 | **P2** |-| 12 | [`12-misc-data-integrity.md`](prompts/12-misc-data-integrity.md) | `explore` NUL byte in UTF8 insert; `llm/anthropic` double body-read; `tts/edge` ws 200 mishandle | explore, llm/anthropic, tts/edge | ~5 | **P2** |--## Cross-cutting note--Two P0s (01, 02) are responsible for the overwhelming majority of the 500/502 volume.-Fixing those two will quiet ~2,000 of the ~2,571 error lines. Do them first.--Issue 03 (LLM provider exhaustion) is partly operational (quota/billing) but the logs-also reveal **fixable** routing bugs (a free model with no tool-capable endpoint is-retried blindly; `brain/chat` sends payloads the Responses API rejects). The prompts-separate "add credits" (ops) from "fix the routing" (code) so the code half can ship.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/01-jsdom-esm-require-crash.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/01-jsdom-esm-require-crash.mddeleted file mode 100644index 3513c2184..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/01-jsdom-esm-require-crash.md+++ /dev/null@@ -1,74 +0,0 @@-# Fix 01 — `ERR_REQUIRE_ESM` crashing the widgets function (P0, ~1,242 lines)--## The error (verbatim from prod)--```-Error [ERR_REQUIRE_ESM]: require() of ES Module-/var/task/node_modules/@exodus/bytes/encoding-lite.js-from /var/task/node_modules/html-encoding-sniffer/lib/html-encoding-sniffer.js-not supported.-... code: 'ERR_REQUIRE_ESM'-Node.js process exited with exit status: 1.-```--Endpoints affected (all return **500**, the process *exits*, so it also poisons sibling-handlers in the same bundle):-- `/api/widgets/[id]/stats` (607)-- `/api/widgets/[id]/transcripts` (562)-- `/api/widgets/[id]/knowledge` (41)-- `/api/widgets/[id]/chat` (31)--## Root cause--The widgets function bundle pulls in `jsdom` (via `api/_lib/text-extract.js`, imported by-the knowledge-ingest path). `jsdom`'s transitive dep `html-encoding-sniffer` does a-**CommonJS `require()`** of `@exodus/bytes/encoding-lite.js`, which is **ESM-only** in the-version resolved on the deployed Node runtime. At cold start the bundler/runtime evaluates-the `require`, throws `ERR_REQUIRE_ESM`, and the **entire serverless function exits(1)** —-which is why `stats` and `transcripts` (which don't even need jsdom) die too.--There is already a comment in `api/widgets/[id]/[action].js` (lines ~23-25) acknowledging-this and *intending* to lazy-load `_knowledge.js`. The lazy-load is **not actually-preventing the crash** — the dependency is still reachable at module-eval / bundle time, so-verify whether the import is truly deferred or whether Vercel NFT is hoisting it.--## Required fix (trace to source, no shortcuts)--1. **Confirm the real entry point.** In `api/widgets/[id]/[action].js`, trace exactly how- `jsdom` enters the bundle for `stats`/`transcripts`. Map the import chain:- `[action].js → ? → _knowledge.js → text-extract.js → jsdom → html-encoding-sniffer → @exodus/bytes`.- Determine whether it's a static `import`, a hoisted dynamic `import()`, or NFT including- it regardless.-2. **Pick the proper fix, not suppression:**- - **Preferred:** eliminate the broken require chain. Pin `@exodus/bytes` (and/or- `html-encoding-sniffer`) to a version pair that is internally consistent (CJS-requires-CJS- or ESM-imports-ESM) for the deployed Node version. Check `npm ls @exodus/bytes- html-encoding-sniffer jsdom whatwg-encoding` and resolve the mismatch at the dependency- level. This makes the crash impossible, everywhere.- - **If a clean version pin isn't available:** replace `jsdom` for our HTML→text extraction- with a lighter, ESM-clean parser. We only use it in `text-extract.js` (`new JSDOM(raw)`- then DOM text walk). `@mozilla/readability` needs a DOM, but a `linkedom` or- `node-html-parser` based extractor would remove the entire `jsdom` chain. If you swap,- reproduce the exact extraction output (readable text, same fields) — no quality- regression.- - **Genuinely defer** the heavy path: make `stats` and `transcripts` provably independent- of the jsdom chain so they can never be taken down by knowledge-ingest, even if ingest- itself still needs work. A crash in `knowledge` must not 500 `stats`.-3. **Do not** wrap the require in try/catch and call it fixed — that hides a broken bundle.- The bundle must not contain a `require()` of an ESM module on the deployed runtime.--## Verification (must do all)--- `npm ls @exodus/bytes html-encoding-sniffer jsdom` shows a consistent, resolvable tree.-- Build the widgets function locally the way Vercel does (or `vercel build`) and confirm no- `ERR_REQUIRE_ESM` at function init.-- Hit `/api/widgets/<real-id>/stats`, `/transcripts`, `/knowledge`, `/chat` against a deploy- preview — all return their real payloads, not 500.-- Exercise the **knowledge ingest** path (the one that genuinely uses HTML extraction) and- confirm text extraction still produces correct readable text.-- Grep new logs after deploy: zero `ERR_REQUIRE_ESM`.--## Definition of done--All four widget sub-routes return real data, the HTML→text extraction still works on a real-page, the dependency tree is internally consistent, and the crash signature cannot recur.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/02-upstash-request-limit.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/02-upstash-request-limit.mddeleted file mode 100644index c1f873493..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/02-upstash-request-limit.md+++ /dev/null@@ -1,69 +0,0 @@-# Fix 02 — Upstash Redis request limit exhausted (P0, ~737 lines)--## The error (verbatim)--```-[api] unhandled UpstashError: Command failed:-ERR max requests limit exceeded. Limit: 500000, Usage: 500000.-See https://upstash.com/docs/redis/troubleshooting/max_request_limit_exceeded-```--Returns **500** on **every Redis-backed route**: `/api/explore`, `/api/marketplace/[action]`,-`/api/agents/[id]`, `/api/agents/[id]/skill-access`, `/api/auth/*`, `/api/solana-rpc`,-`/api/pump/*`, `/api/notifications`, `/api/community/*`, `/api/friends/presence-ticket`,-`/api/avatars/[id]`, `/api/widgets`, `/api/permissions/*`, `/api/erc8004/*`,-`/api/users/me/purchased-skills`, and more. The cap is account-wide so it takes down the-whole platform's caching/rate-limit/session layer at once.--## Root cause--Two compounding problems:-1. **Operational:** the Upstash plan's monthly request quota (500k) is fully consumed.-2. **Code-level (the part we fix here):** we are spending Redis requests far too liberally —- the volume that burned 500k commands in a month points at missing caching discipline:- per-request `GET`s with no in-memory/edge memoization, rate-limit checks on read paths,- chatty multi-command flows where a pipeline would do, and **hard failures when Redis is- unavailable** instead of degrading gracefully.--## Required fix (both halves — code first, it's the durable one)--### A. Fail open, never 500, when Redis is the dependency-not-the-payload-Audit the shared Redis client (the module every `[api] unhandled UpstashError` flows-through — find it: `grep -rln "UpstashError\|@upstash/redis\|Redis.fromEnv\|new Redis" api/_lib`).-- Cache reads (`explore`, `marketplace`, `agents`, `pump/trending`, token caches): on any- Redis error, **fall through to the source of truth** (DB / upstream API) and serve the- request. A cache miss is not a 500.-- Rate-limit checks: on Redis error, **fail open** (allow the request) — never block real- users because the limiter backend is down. Log once, don't throw.-- Session/auth: where Redis backs nonce/session, surface a clean 503 with retry semantics,- not an unhandled 500, and only where Redis is genuinely required for correctness.-- The goal: a Redis outage degrades performance, it does **not** take the API down.--### B. Stop burning requests-- **Memoize hot reads** in function memory with a short TTL (e.g. trending, token config,- marketplace listings) so repeated calls within a warm instance don't each hit Redis.-- **Pipeline / batch** multi-key flows (`MGET`, `redis.pipeline()`) instead of N round-trips.-- **Drop redundant reads:** trace `explore` (300 lines) and `marketplace` (211) — they are- the top burners. Confirm each Redis call is necessary; remove double-fetches and- read-after-write reads that can use the value already in hand.-- **Cap rate-limit writes:** only `INCR` when actually enforcing, not on every read.--### C. Operational (call out to the user, don't silently assume)-- The plan quota is exhausted. Surface this explicitly: the user must either upgrade the- Upstash plan or the usage reduction in (B) must bring monthly commands under 500k.- Quantify the expected reduction from (B) so the user can decide.--## Verification--- Force the Redis client to error (temporarily point it at a bad URL locally) and confirm- **every** affected route still returns real data (from DB/upstream), not 500.-- Add a counter/log of Redis commands per request for the top routes; confirm `explore` and- `marketplace` drop materially after memoization/pipelining.-- After deploy, grep logs: `UpstashError ... max requests limit` no longer produces 500s —- at most a single warn-level "redis degraded, served from source".--## Definition of done--No route 500s due to Redis being unavailable or over-quota; hot reads are memoized/pipelined;-the per-month command burn is measurably reduced; the user has the numbers to decide on plan-upgrade. Graceful degradation is wired everywhere Redis is touched.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/03-chat-provider-exhaustion.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/03-chat-provider-exhaustion.mddeleted file mode 100644index c8bd4766c..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/03-chat-provider-exhaustion.md+++ /dev/null@@ -1,73 +0,0 @@-# Fix 03 — `/api/chat` LLM provider fallback exhaustion + routing bugs (P0, ~700 lines)--## The errors (verbatim samples)--```-[chat:groq] 429 — falling over to groq/llama-3.1-8b-instant: {"error":{"message":"Rate limit reached for model `llama-3.3-70b-versatile`...-[chat:openrouter] 429 — falling over to openai/gpt-4o-mini: {"error":{"message":"Provider returned error","code":429...-[chat:openai] 429 (final — all 4 route(s) exhausted) You exceeded your current quota, please check your plan and billing-[chat:openrouter] meta-llama/llama-3.2-3b-instruct:free has no tool-capable endpoint — retrying without action tools-[chat:openrouter] 404 — falling over to groq/llama-3.3-70b-versatile: {"error":{"message":"No endpoints found for mistral...-[chat:openrouter] 403 (final — all 5 route(s) exhausted) openai/gpt-oss-120b:free requires moderation on OpenInference-```--`/api/chat` and `/api/llm/anthropic`. When the chain is fully exhausted the user gets a-hard failure. The chain churns through 4-5 providers per request, multiplying latency and-burning quota on every turn.--## Root cause--1. **Operational:** OpenAI key is over quota/billing (`exceeded your current quota`); free- OpenRouter models are aggressively rate-limited and some are gated (403 moderation, 404- no-endpoint). Groq free tier 429s under our load.-2. **Code-level (fix these — they are real bugs, not just quota):**- - The fallback ladder **leads with free, rate-limited models** and only reaches paid,- reliable models last — so the common path is "try 4 things that fail, then succeed,"- paying full latency every time.- - Models with **no tool-capable endpoint** are placed in a tool-calling chain and only- discovered at call time (`has no tool-capable endpoint — retrying without action- tools`). The route table should *know* a model's capabilities and skip it for- tool-required requests instead of round-tripping.- - **Dead/invalid routes** are in the ladder: `mistralai/mistral-7b-instruct:free` →- `404 No endpoints found`; `gpt-oss-120b:free` → `403 requires moderation`. These will- *never* succeed and should be removed.--## Required fix--Find the chat routing config (`grep -rln "DEFAULT_PROVIDER_ORDER\|PROVIDER_MODEL_DEFAULTS\|falling over" api/_lib api/chat*`; see `api/_lib/chat-models.js`).--1. **Reorder the ladder by reliability, not by cost-first.** Lead with a model that- actually answers under current quota. Keep cheaper/free models as *lower-priority*- fallbacks, not the primary path. Document the ordering rationale inline.-2. **Make routing capability-aware.** Annotate each model with `{ tools: bool, moderationGated: bool }`.- For tool-required requests, skip non-tool models entirely instead of calling then- retrying-without-tools. Never call a model the request can't use.-3. **Remove permanently-broken routes** from the table: any model returning `404 No- endpoints found` or `403 requires moderation` consistently. Don't carry dead weight.-4. **Bound the chain.** Cap total fallback attempts and total wall-clock so a request can't- churn through 5 providers and still time out at 30s. On full exhaustion, return a clean,- actionable error to the client (not a stack trace), and surface *which* providers failed.-5. **Surface the quota reality to the user (ops):** OpenAI is over quota. The user must- top up billing or we must not route to it as a "final" tier. State this explicitly with- the failing key/account so they can act.--## `/api/llm/anthropic` specific (2 lines, but a real bug)-`TypeError: Body is unusable: Body has already been read` — the upstream `Response` body is-read twice (e.g. `.json()` then `.text()` in the error path). Read it **once** into a-variable and reuse. See Fix 12 if scoped there; otherwise fix here.--## Verification--- Unit-test the route selector: a tool-required request never returns a non-tool model;- removed dead routes never appear; ordering is reliability-first.-- Drive `/api/chat` with a normal prompt and a tool-using prompt — first-attempt success on- the primary model under normal conditions (no 4-deep fallback churn in the happy path).-- Confirm bounded behavior: simulate all providers 429 → client gets one clean terminal- error within the time budget, not a 30s timeout.-- After deploy, logs show the fallback ladder is *short* in the common case.--## Definition of done--Happy-path chat hits a working model first; tool requests never round-trip through-non-tool models; dead routes are gone; exhaustion returns a clean bounded error; the user-knows exactly which provider account needs funding.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/04-missing-db-tables.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/04-missing-db-tables.mddeleted file mode 100644index 8a24f5afe..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/04-missing-db-tables.md+++ /dev/null@@ -1,62 +0,0 @@-# Fix 04 — Production DB missing tables (`forge_creations`, `usage_events`) (P1, ~25 lines)--## The errors (verbatim)--```-[forge-store] listCreations failed: relation "forge_creations" does not exist-[api] unhandled NeonDbError: relation "usage_events" does not exist (code 42P01)-```--- `forge_creations`: breaks `/api/forge-gallery` (19 lines).-- `usage_events`: breaks `/api/agents/[id]` (`handleGetOne`, 2 lines) and is referenced by- ~15 other files (`billing/summary`, `usage/summary`, `cron/[name]`, `agent-wallet`, etc.) —- so this will surface wider than the export shows.--## Root cause--The migrations that create these tables exist in the repo but were **never applied to the-production Neon database**:-- `api/_lib/migrations/20260604000000_forge_creations.sql` (dated 2026-06-04 — one day before- this log window; clearly never ran in prod).-- `usage_events` is defined in `api/_lib/schema.sql` (lines ~310-326, plus additive ALTERs at- ~707-709) — the base schema/those ALTERs aren't applied either.--Migration runner: `scripts/run-migrations.mjs` applies `api/_lib/migrations/*.sql` in-alphabetical order, tracked in a `schema_migrations` table. The base `schema.sql` bootstrap-and the newest migration both need to be applied to prod.--## Required fix (proper, no shortcuts)--1. **Reconcile schema vs migrations.** Confirm whether `usage_events` lives only in- `schema.sql` or also has a dedicated migration. If the migration runner is the source of- truth for prod, ensure `usage_events` (table + the additive `agent_id` column/index) is- represented as an **idempotent** migration file, not only in `schema.sql`. Same for any- other table that exists in `schema.sql` but has no migration. Don't leave prod dependent- on a manual `schema.sql` apply.-2. **Make the migrations idempotent and safe** (`create table if not exists`,- `create index if not exists`, `add column if not exists`) — they already mostly are;- verify the new/reconciled ones are too, so re-running is harmless.-3. **Apply to production.** Run the migration runner against the prod `DATABASE_URL`- (Neon). Confirm `schema_migrations` records them and the tables now exist.-4. **Verify the code's expected columns match** what the migration creates — `forge-store.js`- and `api/_lib/usage.js` / `api/agents/[id].js` query specific columns; the table shape- must satisfy every query (not just the table name).-5. **Guard the read paths** so a future missing-relation never becomes an unhandled 500:- `forge-gallery` should return an empty gallery (designed empty state) rather than 500 if- the table is somehow absent; `agents/[id]` should treat "no usage_events" as zero usage,- not a crash. Errors handled at the boundary.--## Verification--- `\dt` (or a `select to_regclass('public.forge_creations')`) against prod confirms both- tables exist with the expected columns.-- `/api/forge-gallery` returns real creations (or a clean empty state) — no 500.-- `/api/agents/<real-id>` returns the agent with usage stats — no 500.-- `select * from schema_migrations` shows the applied migration rows.-- Grep post-deploy logs: zero `relation "..." does not exist`.--## Definition of done--Both tables exist in prod via tracked idempotent migrations, every querying route returns-real data, read paths degrade gracefully if a relation is ever missing, and the-schema.sql-vs-migrations drift that caused this is reconciled so it can't recur.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/05-birdeye-geckoterminal-429.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/05-birdeye-geckoterminal-429.mddeleted file mode 100644index 16308c066..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/05-birdeye-geckoterminal-429.md+++ /dev/null@@ -1,52 +0,0 @@-# Fix 05 — Birdeye / GeckoTerminal upstream 429 (P1, ~175 lines)--## The errors (verbatim)--```-[three-token] birdeye error: Birdeye 429: {"success":false,"message":"Too many requests"}-[api] unhandled Error: GeckoTerminal 429: {"status":{"error_code":429,"error_message":"You've exceeded the Rate Limit..."}}-```--- Birdeye: `/api/three-token/[action]` (173 lines) — the heaviest single external-API failure.-- GeckoTerminal: `/api/ibm/oracle` (2 lines).--## Root cause--We call Birdeye and GeckoTerminal on hot read paths with **no caching, no backoff, and no-fallback chain** for the 429 case, so under normal traffic we blow their rate limits and-the failure propagates as a user-facing error. For `ibm/oracle` the 429 is also-**unhandled** (becomes a 500).--## Required fix--Find the call sites (`grep -rln "birdeye\|Birdeye\|geckoterminal\|GeckoTerminal" api/`).--1. **Cache aggressively.** Token price/market data changes on the order of seconds, not- milliseconds. Add a short-TTL cache (memory + the shared cache layer) keyed by token/mint- so repeated requests within the TTL never hit the upstream. Per `CLAUDE.md`, the default- chart pins `$THREE` — that hot key especially must be cached.-2. **Fallback chain on 429/5xx.** Birdeye and pump.fun/GeckoTerminal already coexist in this- codebase (see the pump-dashboard memory: `Birdeye → pump.fun fallback`). Wire the same- pattern here: on Birdeye 429, fall back to the alternate source rather than failing.- Make the fallback real (no mock/placeholder data — `CLAUDE.md` hard rule).-3. **Exponential backoff + jitter** for transient 429s before giving up, bounded so we never- exceed the function time budget.-4. **Handle the boundary** in `/api/ibm/oracle`: a GeckoTerminal 429 must become a graceful- degraded response (cached/last-known value or a clean 503), **never an unhandled 500**.-5. **Use an API key if we have one.** Check `.env` / `vercel env` for `BIRDEYE_API_KEY`- (and any GeckoTerminal Pro key). If present, authenticate to get the higher rate tier; if- missing and the platform needs it, surface that to the user once.--## Verification--- Hammer `/api/three-token/<action>` for `$THREE` repeatedly — the upstream is hit at most- once per TTL; the rest serve from cache; no 429 reaches the client.-- Simulate Birdeye 429 → confirm the fallback source serves real data.-- `/api/ibm/oracle` under upstream 429 returns a clean degraded payload, not 500.-- Post-deploy logs: Birdeye/GeckoTerminal 429 counts drop sharply and never produce 500s.--## Definition of done--Token/market reads are cached with a sane TTL, 429s trigger a real fallback (no fake data),-backoff is bounded, `ibm/oracle` handles the upstream error at the boundary, and any-available API key is used for the higher tier.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/06-brain-chat-openrouter-credits.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/06-brain-chat-openrouter-credits.mddeleted file mode 100644index df4aa882f..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/06-brain-chat-openrouter-credits.md+++ /dev/null@@ -1,65 +0,0 @@-# Fix 06 — `/api/brain/chat` OpenRouter credit ceiling + invalid Responses-API payloads (P1, ~95 lines)--## The errors (verbatim)--```-APICallError [AI_APICallError]: This request requires more credits, or fewer max_tokens.- You requested up to 1024 tokens, but can only afford 788. (also 300/4000/4096/8000)-APICallError [AI_APICallError]: Invalid Responses API request-APICallError [AI_APICallError]: Input contains unsupported content types or unsupported content fields-RetryError [AI_RetryError]: Failed after 3 attempts. Last error: Rate limit reached for model `llama-3.3-70b-versatile`-```--All on `/api/brain/chat`, which uses the Vercel AI SDK `OpenAIResponsesLanguageModel`-(`doStream`) against OpenRouter.--## Root cause--Three distinct, separately-fixable problems:--1. **`requires more credits, or fewer max_tokens`** — we send a fixed `max_tokens` (1024,- 4000, 4096, 8000…) that exceeds what the OpenRouter free-tier balance can afford for that- request. The model literally tells us the affordable ceiling (e.g. "can only afford 788")- and we don't adapt.-2. **`Invalid Responses API request`** — we're sending payloads the OpenAI **Responses API**- shape rejects. Likely a model that doesn't speak the Responses API is being routed- through `OpenAIResponsesLanguageModel`, or a malformed field. This is a code bug.-3. **`unsupported content types or unsupported content fields`** — we're passing message- content parts (images? tool blocks? custom fields?) the target model/endpoint doesn't- support. Another payload-shape bug.--## Required fix--Find the handler: `api/brain/chat.js` (source — the deployed file is bundled). Trace how the-model, `max_tokens`, and message content are assembled.--1. **Adaptive token budget.** Don't hardcode `max_tokens`. Either (a) lower the default to a- value the free tier reliably affords, or (b) parse the upstream "can only afford N" and- retry once with `max_tokens = N` (the API hands us the number). Prefer a sane default- *plus* the adaptive retry so we never hard-fail on this. Never silently truncate the- user's content — reduce the *completion* budget, not the input.-2. **Match the API surface to the model.** Audit which models `brain/chat` routes to and- whether each actually supports the **Responses API**. Models that don't must use the- Chat Completions surface (or a model that does). Fix the `Invalid Responses API request`- at the source — don't retry a structurally-invalid request.-3. **Sanitize content parts** to what the target model supports before sending. If a model- can't take a given content type (image/tool/custom field), either drop/transcode it for- that model or route to one that supports it. Validate the payload before the call.-4. **Bound retries** so `RetryError ... Failed after 3 attempts` on a rate-limited free model- falls over to a working model (coordinate with Fix 03's ladder) instead of dead-ending.--## Verification--- Drive `/api/brain/chat` with a long-completion request on the free tier — it succeeds with- an adapted token budget, no `requires more credits` failure.-- Send a multimodal / tool message — content is validated/sanitized; no `unsupported content- types`.-- Confirm no `Invalid Responses API request` for any routed model (each model uses the API- surface it actually supports).-- Post-deploy logs: these three `AI_APICallError` signatures gone.--## Definition of done--`brain/chat` adapts its token budget to the available balance, routes each model to the API-surface it supports, validates/sanitizes content before sending, and falls over cleanly on-rate limits — no `AI_APICallError` for these three causes.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/07-token-treasury-wallet-unset.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/07-token-treasury-wallet-unset.mddeleted file mode 100644index 10a59661b..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/07-token-treasury-wallet-unset.md+++ /dev/null@@ -1,58 +0,0 @@-# Fix 07 — `THREE_TREASURY_WALLET` unset in production (P1, 18 lines)--## The error (verbatim)--```-[api] unhandled Error: [token] THREE_TREASURY_WALLET is required in production- — refusing to route treasury funds to an unset address.- at treasuryWallet (api/token/[action].js)- at publicConfig → handleConfig-```--`/api/token/config` returns 500 on every call.--## Root cause--This is a **correct fail-closed guard** — the code rightly refuses to surface or route-treasury funds to an unset/zero address. The actual problem is **operational + a handler-design flaw**:--1. **Operational:** `THREE_TREASURY_WALLET` is not set in the production Vercel environment.-2. **Code:** `/api/token/config` is a *public config read* — it should not throw a 500 just- because a *write/treasury-routing* env var is missing. A misconfigured treasury must not- take down the public config endpoint. The guard belongs on the **fund-routing path**, not- the read-only config path.--## Required fix--`api/token/[action].js` — see `treasuryWallet()`, `publicConfig()`, `handleConfig()`.--1. **Set the env var (ops).** Set `THREE_TREASURY_WALLET` to the real treasury address in- Vercel prod (and preview if needed). Per `CLAUDE.md`, the only coin is `$THREE`- (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`); the treasury must be the project's real- `$THREE` treasury address — confirm the correct value with the user before setting it.- **Do not invent an address.**-2. **Fix the handler boundary.** `handleConfig`/`publicConfig` must not 500 when the treasury- is unset. Two clean options:- - Keep `treasuryWallet()` strict for any path that *routes funds* (correct — leave it),- but in `publicConfig` either omit the treasury field when unset, or return it as- explicitly `null`/`unconfigured` so the read endpoint stays 200 and the client can show- a "treasury not configured" state.- - The hard `throw` should fire only when something actually tries to **move funds** to the- treasury, not when reading config.-3. **No silent default.** Never fall back to a placeholder/zero address for fund routing —- the existing fail-closed behavior on the *routing* path is correct and must stay.--## Verification--- With `THREE_TREASURY_WALLET` set: `/api/token/config` returns the real config incl. the- treasury address.-- With it deliberately unset (local): `/api/token/config` returns 200 with treasury marked- unconfigured — **not** 500 — while any fund-routing call still hard-refuses.-- Post-deploy logs: zero `THREE_TREASURY_WALLET is required` 500s on the config read.--## Definition of done--The treasury env var is set in prod to the real `$THREE` treasury, the public config read-never 500s on a missing treasury, and fund-routing remains fail-closed. The user confirmed-the address before it was set.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/08-cron-eth-rpc-failures.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/08-cron-eth-rpc-failures.mddeleted file mode 100644index ad5ab9a7b..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/08-cron-eth-rpc-failures.md+++ /dev/null@@ -1,65 +0,0 @@-# Fix 08 — `index-delegations` cron ETH RPC failures (P1, ~40 lines)--## The errors (verbatim)--```-{"stage":"index-delegations","chainId":1,"error":"RPC HTTP 429 from https://1rpc.io/eth"}-{"stage":"index-delegations","chainId":1,"error":"RPC eth_getLogs error: method not available"}-{"stage":"index-delegations","chainId":1,"error":"RPC HTTP 400 from https://1rpc.io/eth"}-{"stage":"index-delegations","chainId":1,"error":"RPC eth_getLogs error: block range extends beyond current head block"}-{"stage":"index-delegations","chainId":1,"error":"fetch failed"}-{"stage":"index-delegations","chainId":84532/421614/11155111/11155420,"warning":"time-budget-exceeded"}-```--`/api/cron/index-delegations` (mainnet chainId 1 + testnets). The cron fails to index-delegation events.--## Root cause--The delegation indexer relies on **public, free Ethereum RPC endpoints** (`https://1rpc.io/eth`)-that:-- rate-limit us (HTTP 429),-- **don't support `eth_getLogs`** on the free tier (`method not available`),-- reject malformed/oversized requests (HTTP 400, `block range extends beyond current head`),-- and intermittently fail (`fetch failed`).--Plus a logic bug: we query a **block range past the chain head** (`block range extends-beyond current head block`) — we're not clamping `toBlock` to the latest block. And multiple-testnet chains blow the **time budget** because indexing is serial/over-wide.--## Required fix--Find the cron: `api/cron/[name].js` (the `index-delegations` stage). Trace RPC URL-selection, the `eth_getLogs` call, and block-range math.--1. **Use a real RPC provider that supports `eth_getLogs`.** Public `1rpc.io/eth` is- inadequate. Use the configured Alchemy/Infura/QuickNode endpoint (check `.env` /- `vercel env` for an existing key — this codebase already does Solana RPC and EVM work, so- a paid EVM RPC may exist). If none is configured, surface that to the user; never ship a- cron that depends on a free endpoint that doesn't support our calls.-2. **Clamp the block range.** Before `eth_getLogs`, fetch `eth_blockNumber` and set- `toBlock = min(desiredTo, head)`. Never request beyond head. Chunk large ranges into- bounded windows (e.g. ≤ provider max, commonly 10k blocks) and paginate.-3. **Backoff + rotation on 429.** Bounded exponential backoff; optionally rotate across a- small set of configured providers. On persistent failure for a chain, log and continue —- one chain's RPC outage must not abort the whole cron.-4. **Respect the time budget.** The `time-budget-exceeded` warnings mean we do too much per- invocation. Persist a per-chain cursor (this codebase already has cursor patterns — see- `pumpfun-monitor-cursor` migration) so each run resumes from the last indexed block and- does a bounded amount of work, then exits cleanly within budget.-5. **Handle `fetch failed`** as a transient: retry within budget, else checkpoint and resume- next run. Never lose the cursor.--## Verification--- Run the cron locally/preview against the real RPC: it indexes delegation events for- mainnet without 429/method-not-available, and resumes from its cursor.-- Force a bad block range → confirm it's clamped to head, no `beyond current head` error.-- Confirm each testnet chain completes within the time budget (cursor-bounded work).-- Post-deploy logs: `index-delegations` errors/time-budget warnings gone.--## Definition of done--The indexer uses an RPC that supports `eth_getLogs`, clamps and chunks block ranges, backs-off on 429, persists a per-chain cursor so each run stays within budget, and a single chain-failure doesn't abort the run.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/09-pump-launch-wasm-and-tx.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/09-pump-launch-wasm-and-tx.mddeleted file mode 100644index f548ccf51..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/09-pump-launch-wasm-and-tx.md+++ /dev/null@@ -1,70 +0,0 @@-# Fix 09 — `/api/pump/launch-agent` WASM missing + tx serialize overflow + timeout (P1, ~16 lines)--## The errors (verbatim)--```-[api] unhandled Error: ENOENT: no such file or directory,- open '/var/task/api/pump/wasm/vanity_grinder_bg.wasm'- at ensureWasm → grindVanityNode → handleLaunchAgent--[api] unhandled RangeError: encoding overruns Uint8Array- at Blob.encode (@solana/buffer-layout)- at MessageV0.serialize → VersionedTransaction.sign → handleLaunchAgent--Vercel Runtime Timeout Error: Task timed out after 30 seconds-```--`/api/pump/[action]` → `handleLaunchAgent`.--## Root cause--Three distinct bugs in the launch path:--1. **`vanity_grinder_bg.wasm` not bundled.** `ensureWasm()` does `readFileSync('/var/task/api/pump/wasm/vanity_grinder_bg.wasm')`- but the `.wasm` asset isn't included in the Vercel function bundle (Vercel NFT doesn't- trace `readFileSync` string paths). So vanity grinding crashes in prod.-2. **`encoding overruns Uint8Array`** during `VersionedTransaction.sign` → `MessageV0.serialize`.- The transaction is **too large / a field overflows its layout** — likely metadata- (name/symbol/uri/attributes) exceeding the on-chain byte budget. Note the memory- `onchain-brand-metadata`: the Attributes plugin has a **1232-byte tx budget** and needs a- byte-aware clamp. The launch path is exceeding the serialization limit.-3. **30s timeout** — vanity grinding (CPU-bound) + launch in one synchronous request blows- the function limit.--## Required fix--`api/pump/[action].js` — `ensureWasm`, `grindVanityNode`, `handleLaunchAgent`. Cross-check-`src/solana/vanity/brand.js` (the `3ws` mark, per memory `mint-mark-brand`) and-`api/_lib/three-brand.js` (metadata builder, per memory `onchain-brand-metadata`).--1. **Bundle the WASM properly.** Ensure `vanity_grinder_bg.wasm` ships in the function:- - Reference it so Vercel NFT traces it (e.g. `new URL('./wasm/vanity_grinder_bg.wasm', import.meta.url)`- and `fs.readFileSync(fileURLToPath(...))`), and/or add it to `vercel.json`- `functions.includeFiles` / `outputFileTracingIncludes`.- - Confirm the path resolves under `/var/task` at runtime. Test by deploying and hitting- the route — `ensureWasm` must find the file.-2. **Byte-budget the transaction.** Before serialize/sign, clamp the metadata to fit the tx- size limit (apply the existing byte-aware clamp from the brand metadata builder so name +- symbol + uri + attributes never overrun). Reproduce the overflowing input, confirm the- clamp keeps the tx within the layout budget, and the launch succeeds. Do **not** silently- drop the brand mark — clamp intelligently (truncate long fields, not the mark).-3. **Get vanity grinding off the request thread / within budget.** Either:- - Bound the grind difficulty so it provably completes well under 30s, or- - Move grinding to a background job / pre-generated vanity pool and have the launch request- consume a ready key. The launch endpoint must return within the function limit.- Pick the approach that keeps the `3ws` mark enforcement intact (memory `mint-mark-brand`:- `THREE_WS_MARK_ENFORCE`).--## Verification--- Deploy preview: `POST /api/pump/launch-agent` with a real launch payload (mint supplied at- runtime per `CLAUDE.md` — never hardcode a non-`$THREE` mint) → vanity step finds the WASM,- tx serializes/signs without `encoding overruns`, and the request returns under 30s.-- Test with maximal-length name/symbol/uri to confirm the byte clamp holds.-- Post-deploy logs: zero ENOENT for the wasm, zero `encoding overruns`, zero pump timeouts.--## Definition of done--The WASM is bundled and found at runtime, the launch tx is byte-clamped so it always-serializes within the on-chain budget (mark preserved), vanity grinding completes within the-function time limit, and a real launch succeeds end-to-end.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/10-skills-pricing-neon-transaction.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/10-skills-pricing-neon-transaction.mddeleted file mode 100644index 58e3b680f..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/10-skills-pricing-neon-transaction.md+++ /dev/null@@ -1,54 +0,0 @@-# Fix 10 — `skills-pricing` Neon `transaction()` misuse (P1, 4 lines)--## The error (verbatim)--```-[api] unhandled Error: transaction() expects an array of queries,- or a function returning an array of queries- at Xs.X.transaction (api/agents/[id]/skills-pricing.js)- at handlePut-```--`PUT /api/agents/[id]/skills-pricing` returns 500.--## Root cause--The Neon serverless driver's `sql.transaction()` has a specific contract: it takes **an-array of query promises** (or a function returning one), and runs them in a single-transaction — it is **not** the interactive `BEGIN…COMMIT` callback style of `node-postgres`.-`handlePut` is calling it the pg way (passing an `async (tx) => { ... }` that runs queries-imperatively), which the Neon driver rejects.--Ref: Neon serverless driver docs — `sql.transaction([sql\`...\`, sql\`...\`])`.--## Required fix--`api/agents/[id]/skills-pricing.js` — `handlePut`.--1. **Rewrite the transaction in the Neon contract.** Collect the parameterized queries into- an array and pass it: `await sql.transaction([ sql\`update ...\`, sql\`insert ...\` ])`.- If the logic needs values from one query to build the next (truly interactive), the Neon- HTTP driver can't do that in one `transaction()` call — restructure so all statements are- known up front, or use a single statement with CTEs (`WITH ... INSERT/UPDATE ... RETURNING`)- to keep it atomic in one round-trip.-2. **Keep it atomic.** Pricing writes must be all-or-nothing — don't split into separate- non-transactional calls just to dodge the API. Use the array form or a CTE so partial- writes can't happen.-3. **Validate input at the boundary** (price values, skill ids) before the write so bad input- returns a clean 400, not a 500.-4. **Check sibling handlers** in the same file (and other `*/skills-pricing.js`,- `skills-pricing` callers) for the same misuse — fix all instances.--## Verification--- `PUT /api/agents/<real-id>/skills-pricing` with a valid pricing update → 200, prices- persisted atomically; verify in DB.-- Send a malformed body → clean 400, no 500.-- Simulate a mid-transaction failure (e.g. constraint violation) → nothing partially- written.-- Post-deploy logs: zero `transaction() expects an array of queries`.--## Definition of done--Skills-pricing writes use the Neon `transaction()` contract correctly, remain atomic,-validate input at the boundary, and every call site is fixed.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/11-og-and-url-edge-cases.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/11-og-and-url-edge-cases.mddeleted file mode 100644index dedc28e2f..000000000--- a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/11-og-and-url-edge-cases.md+++ /dev/null@@ -1,58 +0,0 @@-# Fix 11 — OG image + URL edge cases (P2, ~5 lines)--## The errors (verbatim)--```-/api/play-og : TypeError: Invalid URL (code ERR_INVALID_URL, input: '/api/play-og')- at new URL (api/play-og.js:48)-/api/agent-og : NeonDbError: invalid input syntax for type uuid: ":id" (path /api/agent/:id/og)-/api/x402-pay/og: Fontconfig error: Cannot load default config file: No such file: (null)-```--## Root causes — three independent bugs--### A. `/api/play-og` — `new URL(req.url)` with a relative input-`req.url` is a **path** (`/api/play-og`), not an absolute URL. `new URL('/api/play-og')`-throws `ERR_INVALID_URL`. The handler needs a base. (The source already does-`new URL(req.url, 'http://x')` in one place — line ~191 — but the crashing line ~48 in the-deployed bundle doesn't pass a base, or constructs a URL from an unvalidated query param.)--**Fix:** never call `new URL(req.url)` without a base. Use `new URL(req.url, originOf(req))`-(the file already has `originOf(req)`), and validate/guard any URL built from query params —-on bad input, render the default OG image, not a 500. Trace line ~48 in source and fix at-the construction site.--### B. `/api/agent-og` — literal `:id` reaching the DB-The route received the **literal** `/api/agent/:id/og` (the unsubstituted path template), so-`:id` was passed straight into a `uuid` column → `invalid input syntax for type uuid`. Some-caller (a crawler, a prerender, or a broken internal link) is hitting the template path.--**Fix:** validate `id` is a real UUID **before** querying (`/^[0-9a-f-]{36}$/i` or a uuid-guard). If it isn't a valid UUID (or is the literal `:id`), return the **default OG image**-with a 200, not a DB error. Then hunt the source of the bad link — grep for `agent/:id/og`-or template strings that aren't being interpolated, and fix the caller so the template path-is never requested.--### C. `/api/x402-pay/og` — Fontconfig can't load default config-The OG renderer (likely `@vercel/og` / satori / a canvas lib) can't find a font config in-the serverless runtime. Per memory `seo-meta-and-og-runtime`, `@vercel/og` Edge runtime is-broken here — **use the node runtime**, and bundle/register the font explicitly.--**Fix:** ensure `/api/x402-pay/og` runs on the **node** runtime (not edge), register the-font file explicitly (load the `.ttf`/`.woff` and pass it to the renderer) and bundle it via-`includeFiles`, so it never depends on a system Fontconfig default. Confirm the OG image-renders with correct fonts.--## Verification--- `GET /api/play-og` (and with weird query params) → returns a valid PNG, never 500.-- `GET /api/agent-og?id=:id` and `?id=<garbage>` → default OG image, 200; valid UUID → real- agent OG. No `invalid input syntax for type uuid` in logs. The bad-link source is fixed.-- `GET /api/x402-pay/og` → renders with fonts, no Fontconfig error.-- Post-deploy logs: all three signatures gone.--## Definition of done--All three OG/URL endpoints handle bad/edge input gracefully (default image, never 500), the-literal-`:id` caller is traced and fixed, and the x402-pay OG renders on the node runtime-with an explicitly bundled font.diff --git a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/12-misc-data-integrity.md b/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/12-misc-data-integrity.mddeleted file mode 100644index 59dee7a1e..000000000Binary files a/docs/agent-briefs/X-prod-errors-2026-06-05/prompts/12-misc-data-integrity.md and /dev/null differdiff --git a/docs/sdk-launch.md b/docs/sdk-launch.mddeleted file mode 100644index 5763a4c8e..000000000--- a/docs/sdk-launch.md+++ /dev/null@@ -1,83 +0,0 @@-# `@three-ws/*` SDK suite — launch runbook--18 zero-dependency, pure-ESM SDKs that wrap already-live three.ws platform-capabilities. Each ships `src/` directly (no build step), hand-written `.d.ts`-types, and a `node --test` suite. They share one byte-identical HTTP core-(`src/http.js`) so error handling, base-URL resolution, and x402 `402` handling-are uniform across the suite.--## The 18--| Package | One-liner | Headline API |-|---|---|---|-| `@three-ws/forge` | text/image/sketch → rig-ready GLB | `forge()`, `rig()`, `catalog()` |-| `@three-ws/names` | ENS/SNS resolve + `*.threews.sol` + pay-by-name | `resolve()`, `mintSubdomain()`, `payByName()` |-| `@three-ws/intel` | token sentiment + market intel | `sentiment()`, `intel()`, `projects()`, `snapshot()` |-| `@three-ws/vanity` | local Solana vanity address mining | `grind()`, `expectedAttempts()` |-| `@three-ws/reputation` | ERC-8004 agent reputation read/attest | `reputation()`, `leaderboard()`, `attest()` |-| `@three-ws/voice` | ASR + TTS + audio2face lipsync | `transcribe()`, `speak()`, `lipsync()`, `say()` |-| `@three-ws/x402-server` | merchant side of x402 | `paid()`, `buildChallenge()`, `verifyPayment()` |-| `@three-ws/agent-memory` | embeddings-backed agent memory | `new AgentMemory()`, `remember()`, `recall()` |-| `@three-ws/agenc` | AgenC coordination protocol client | `listTasks()`, `getTask()`, `getAgent()` |-| `@three-ws/guardian` | content safety / moderation | `check()`, `govern()`, `moderate()` |-| `@three-ws/glb-tools` | inspect / theme / bake GLBs | `inspect()`, `theme()`, `bake()` |-| `@three-ws/agent-guards` | spend + trade guardrails | `policy()`, `guard()` |-| `@three-ws/skill-license` | on-chain skill licenses | `verifyLicense()`, `getLicense()`, `mintLicense()` |-| `@three-ws/mocap` | motion-capture clips → animation | `saveClip()`, `getClip()`, `listClips()` |-| `@three-ws/strategies` | DCA / copy / mirror trading | `dca()`, `copy()`, `mirror()` |-| `@three-ws/pumpfun-skills` | pump.fun create/swap/fees skills | `createCoin()`, `swap()`, `coinFees()` |-| `@three-ws/irl` | geofenced real-world presence | `checkIn()`, `nearby()`, `placePin()` |-| `@three-ws/pose` | pose-seed generation for avatars | `poseSeed()`, `presetPose()` |--## Conventions (all 18, uniform)--- **Pure ESM, ship `src/` directly — no build.** `main`/`module` → `./src/index.js`, `types` → `./src/index.d.ts`.-- **Zero runtime dependencies.** Node 18+ global fetch; works in the browser too.-- **Shared core** `src/http.js` is byte-identical across all 18: `createHttp()`, `ThreeWsError`, `PaymentRequiredError` (402 carries the x402 `accepts` challenge), `resolveBaseUrl()` (option → `THREE_WS_BASE_URL` → `https://three.ws`), `delay()`.-- **Ergonomics:** a `createX(options)` client factory **and** zero-config default functions over a lazy shared client. Responses are camelCased with a `.raw` escape hatch. Inputs validated before any network call.-- **Paid lanes:** pass a payment-aware `fetch` (e.g. `@three-ws/x402-fetch`) to auto-settle `402`s, or catch `PaymentRequiredError` and pay from `err.accepts`.--## Verify the whole suite--```bash-for p in forge names intel vanity reputation voice x402-server agent-memory \- agenc guardian glb-tools agent-guards skill-license mocap strategies \- pumpfun-skills irl pose; do- ( cd packages/$p && node --test test/*.test.js ) || echo "FAIL: $p"-done-```--All green at launch: **216 tests across 18 packages.**--## Pre-publish checklist--1. **Wire workspaces.** Add each `packages/<name>` to the `workspaces` array in- the root [package.json](../package.json). (Deferred from the build commit to- avoid racing concurrent edits to that file — do it when the tree is quiescent.)-2. **Run the suite** (command above) — confirm 18/18 green.-3. **Coin scan.** `grep -rniE '\b(bonk|wif|pepe|shib|usdt)\b' packages/*/src packages/*/test` must be empty. The only coin is `$THREE`.-4. **Smoke import** each: `node --input-type=module -e "import('./packages/<name>/src/index.js')"`.-5. **Dry-run publish** per package: `npm publish --dry-run -w packages/<name>` (or from the dir). Confirm `files` ships only `src`, `README.md`, `LICENSE`.--## Publish order--Publish leaves first; nothing in the suite depends on another at runtime (all-zero-dep), so order is for narrative, not resolution. Suggested:--1. `forge` — the flagship.-2. `names`, `voice`, `pose`, `glb-tools`, `mocap` — the avatar/3D cluster (compose with `@three-ws/avatar`).-3. `intel`, `vanity`, `reputation`, `agenc`, `agent-memory`, `guardian`, `agent-guards` — the agent cluster.-4. `x402-server`, `skill-license`, `strategies`, `pumpfun-skills`, `irl` — the payments/onchain cluster.--```bash-cd packages/forge && npm publish --access public-# …repeat per package, or: npm publish -w packages/<name> --access public-```--## On publish--- Add one `sdk`-tagged entry to [data/changelog.json](../data/changelog.json)- announcing the suite (holder-readable, `$THREE` only), then- `npm run build:pages` and `npm run changelog:push`.-- Flip the STRUCTURE.md surface-map rows for any promoted package from- "implemented, pending publish" to `Published as @three-ws/<name>`.diff --git a/docs/store-submissions/00-README.md b/docs/store-submissions/00-README.mdindex 46cda955f..353801767 100644--- a/docs/store-submissions/00-README.md+++ b/docs/store-submissions/00-README.md@@ -33,13 +33,13 @@ Authoritative sources (re-fetch at submission time; requirements move):## Run order### Track A — Claude Connectors Directory (do first)-1. `01-claude-tool-annotation-audit.md` — every tool has a correct `title` + annotation set. (Also unblocks OpenAI.)-2. `02-claude-reviewer-access-guide.md` — free verification path, graceful `PaymentRequired`, reviewer setup/test-account doc.-3. `03-claude-submission-package.md` — privacy URL, allowed-links, server metadata, the exact form-fill content + compliance acknowledgments.+1. `01-claude-tool-annotation-audit.md` — ✅ SHIPPED (verified 2026-07-07; prompt retired — deliverables live in the repo/`_generated/`) — every tool has a correct `title` + annotation set. (Also unblocks OpenAI.)+2. `02-claude-reviewer-access-guide.md` — ✅ SHIPPED (verified 2026-07-07; prompt retired — deliverables live in the repo/`_generated/`) — free verification path, graceful `PaymentRequired`, reviewer setup/test-account doc.+3. `03-claude-submission-package.md` — ✅ SHIPPED (verified 2026-07-07; prompt retired — deliverables live in the repo/`_generated/`) — privacy URL, allowed-links, server metadata, the exact form-fill content + compliance acknowledgments.### Track B — OpenAI ChatGPT App (do after Track A, or in parallel)4. `04-openai-free-3d-endpoint.md` — a free, non-crypto, scoped 3D-generation MCP endpoint.-5. `05-openai-apps-sdk-component.md` — the embedded GLB-viewer UI component the Apps SDK expects.+5. `05-openai-apps-sdk-component.md` — ✅ SHIPPED (verified 2026-07-07; prompt retired — deliverables live in the repo/`_generated/`) — the embedded GLB-viewer UI component the Apps SDK expects.6. `06-openai-submission-package.md` — OpenAI directory metadata, policy-compliance audit, screenshots, developer verification.### Track C — Differentiation layer (the 10x–100x; what makes us NOT just another listing)@@ -51,7 +51,7 @@ Baseline (01–06) gets us *listed*. Track C makes us *un-ignorable*. The thesisThe 100x meta-move (positioning, not a single prompt): don't just *be in* the stores — **own a category across them.** Publish an open pattern for 3D-native / spatial MCP responses (tool results that return live interactive scenes, not text) and x402 agent-commerce patterns, and be the reference implementation other apps call under the hood. Infrastructure, not an app.### Track D — Claude plugin & skill ecosystem (beyond the Connectors Directory)-10. `10-claude-code-plugin-marketplace.md` — finish, validate, and make installable the three.ws Claude Code plugin marketplace (`/plugin marketplace add`), incl. the missing 3D plugin.+10. `10-claude-code-plugin-marketplace.md` — ✅ SHIPPED (verified 2026-07-07; prompt retired — deliverables live in the repo/`_generated/`) — finish, validate, and make installable the three.ws Claude Code plugin marketplace (`/plugin marketplace add`), incl. the missing 3D plugin.11. `11-claude-agent-skills-pack.md` — harden the wallet/x402 skills into a distributable Agent Skills pack and add the 3D-creation skills. Tags a crypto-free creative subset the OpenAI track reuses.### Track E — OpenAI GPT Store + MCP registries@@ -59,7 +59,7 @@ The 100x meta-move (positioning, not a single prompt): don't just *be in* the st13. `13-mcp-registry-directories.md` — get every three.ws MCP server listed + consistent across the official registry, Smithery, Glama, mcp.so, PulseMCP, LobeHub, from one canonical metadata source.### Track F — Shared (run early, finish last)-14. `14-cross-store-asset-kit.md` — one canonical icon/screenshot/copy kit (Claude-full + OpenAI-free variants) every listing reuses, plus a live submission tracker across all targets.+14. `14-cross-store-asset-kit.md` — ✅ SHIPPED (verified 2026-07-07; prompt retired — deliverables live in the repo/`_generated/`) — one canonical icon/screenshot/copy kit (Claude-full + OpenAI-free variants) every listing reuses, plus a live submission tracker across all targets.### Track G — Net-new primitives at the 3D × AI × crypto × web3 intersection (the build layer)Tracks A–F get us *listed, packaged, and distributed*. Track G is where we **build tools people actually use** by fusing the four things only three.ws has in one place — generation, embeddable 3D, Solana/x402 rails, and agent identity. Each is a standalone, shippable primitive that also becomes a flagship use case for the listings above.diff --git a/docs/store-submissions/02-claude-reviewer-access-guide.md b/docs/store-submissions/02-claude-reviewer-access-guide.mddeleted file mode 100644index b5b94e987..000000000--- a/docs/store-submissions/02-claude-reviewer-access-guide.md+++ /dev/null@@ -1,35 +0,0 @@-# Prompt 02 — Claude reviewer access & free verification path--> Paste into a fresh Claude Code chat in the three.ws repo. Follow CLAUDE.md. Use TodoWrite. Prereq: prompt 01 done (tool inventory exists at `docs/store-submissions/_generated/tool-inventory.md`).--## Context-The Claude Connectors Directory reviewer **calls every tool** and checks that the connector "behaves well when every tool is called." Our problem: 16 of ~17 public tools require an x402 USDC payment. Without a funded wallet, a reviewer hits `PaymentRequired`. The directory **does** allow transactional connectors, but the reviewer must be able to (a) verify the server end-to-end for free, and (b) see clean, self-explanatory responses from the paid tools instead of errors that read as breakage.--Free path that already exists: `forge_free` (text→3D GLB on the free NVIDIA NIM lane — no wallet, no payment). OAuth gives account-scoped read tools (`list_my_avatars`, etc.) for free too.--## Objective-Make the server reviewer-friendly end-to-end and write the **reviewer setup / test-account guide** the submission form requires.--## Tasks-1. **Audit every paid tool's unpaid response.** Call each priced tool without an x402 payload against local dev (`npm run dev`). Confirm it returns a structured `PaymentRequired` (per the v2 MCP transport spec) that is:- - Not an `isError: true` failure that looks like a crash.- - Human-readable: states the price, the asset (USDC on Solana), and how to pay. If any tool returns a bare error or a stack trace, fix the handler/boundary so it returns the clean `PaymentRequired` shape. (See `api/_mcp/` payment middleware and `api/_mcp/auth.js`.)-2. **Guarantee a free end-to-end smoke path.** Verify `forge_free` works with no auth and no payment and returns a real GLB URL + viewer link. Verify at least one OAuth-gated read tool works after sign-in. If `forge_free` has any hidden dependency that could fail for a reviewer (rate limit, cold NIM lane), add a graceful fallback/retry so it reliably returns a result.-3. **Provide a funded review path for paid tools (so the reviewer can test them for real).** Choose and implement ONE, documented in the guide:- - A reviewer OAuth account flagged to bypass x402 (a server-side "review mode" entitlement on a specific account), **or**- - A small pre-funded Solana test wallet whose key + funding instructions go in the (private) reviewer notes.- Whichever you pick, it must be real and currently working — no mock bypass. Keep $THREE as the only coin referenced; use USDC for settlement only.-4. **Write `docs/store-submissions/_generated/claude-reviewer-guide.md`** containing: server URL(s), OAuth sign-in steps, the free smoke-test sequence, the funded path to exercise paid tools, expected outputs per tool category, and a "what `PaymentRequired` means" note so the reviewer doesn't read it as a bug.--## Verification (must actually run)-- Script or manually drive: for every tool, one call, capture response. Save transcript to `_generated/claude-tool-call-evidence.md`. Every tool either succeeds or returns a clean `PaymentRequired` — zero unexplained errors.-- `forge_free` end-to-end produces a viewable GLB (paste the URL).-- The funded/bypass review path actually returns a real generated result for at least `text_to_avatar` and one read tool.--## Definition of done-- No paid tool returns a crash-shaped error when unpaid.-- Free + funded review paths both demonstrably work, with evidence saved.-- `claude-reviewer-guide.md` is complete enough that someone with zero context can verify the whole server.--## Hand-off-Report which review path you implemented, any handlers you hardened, and the guide path. Feeds prompt 03 (the submission form references this guide). Commit/push only if the human asks; stage only touched paths; push both remotes.diff --git a/docs/store-submissions/03-claude-submission-package.md b/docs/store-submissions/03-claude-submission-package.mddeleted file mode 100644index 903b9c3b8..000000000--- a/docs/store-submissions/03-claude-submission-package.md+++ /dev/null@@ -1,43 +0,0 @@-# Prompt 03 — Claude Connectors Directory submission package--> Paste into a fresh Claude Code chat in the three.ws repo. Follow CLAUDE.md. Use TodoWrite. Prereqs: prompts 01 + 02 done.--## Context-Everything technical is in place. This chat assembles the **exact submission artifacts** and closes the non-code gaps the directory checks. Re-fetch the live checklist first — requirements change:-- https://claude.com/docs/connectors/building/submission-- https://support.claude.com/en/articles/12922490-remote-mcp-server-submission-guide--Known hard requirements:-- Team or Enterprise org + Owner/Directory-management role to use the in-app portal; otherwise the public MCP directory submission form.-- **Missing/incomplete privacy policy = immediate rejection.** Need a stable HTTPS privacy URL covering data collection, usage/storage, third-party sharing, retention, and contact.-- Every tool needs `title` + annotations (done in prompt 01).-- Test-account + step-by-step reviewer access (done in prompt 02).-- Declared allowed link URIs (every HTTPS origin / custom scheme the connector opens) — and you must own them.-- Seven compliance acknowledgments (directory guidelines, API usage, transactions, media generation, prompt injection, data collection, documentation).--## Objective-Produce a single `docs/store-submissions/_generated/claude-submission.md` that is a **copy-paste-ready answer sheet** for the submission form, plus fix any gaps it surfaces.--## Tasks-1. **Pick the primary server to submit.** Recommend the main server (`/api/mcp`) as the flagship; optionally also `/api/mcp-3d`. Decide and state why. Confirm its production URL resolves and `tools/list` works over streamable HTTP.-2. **Privacy policy.** Open `public/legal/privacy.html`. Verify it covers all required topics for an MCP connector (what tool inputs are collected, x402 payment data, wallet addresses, third-party model APIs used, retention, contact email). If anything's missing, add it. Confirm it's served at a stable HTTPS URL and linked from the server's public docs.-3. **Allowed links.** Enumerate every external origin/scheme any tool response can open (viewer links `https://three.ws/...`, GLB asset hosts, explorer links, etc.). List them; confirm we own/control them or they're reputable asset hosts. Put the declared list in the submission doc.-4. **Server metadata.** Write the submission fields: server name, URL, tagline (≤1 line), description, 3–5 concrete use cases, auth type (OAuth 2.1 + x402), transport (streamable HTTP), read/write capabilities summary, and the full tool list with titles (pull from `tool-inventory.md`).-5. **Reviewer instructions.** Embed/reference the `claude-reviewer-guide.md` from prompt 02 (free smoke path + funded path + test credentials placeholder for the human to fill privately).-6. **Compliance acknowledgments.** Draft a truthful answer to each of the seven statements; flag anything that needs the human's confirmation (e.g. legal entity for transactions).-7. **Manifest sanity.** Verify `server.json` (and `server-3d.json`) match the live server: schema URL current, name, description, URL, `$THREE` is the only coin referenced anywhere, no other token in any field.-8. **Changelog.** Add a `data/changelog.json` entry ("Submitted three.ws to the Claude Connectors Directory" — tag `feature` or `infra`, holder-readable) and run `npm run build:pages` to validate.--## Verification-- The production server URL returns a valid OAuth challenge and a working `tools/list`.-- Privacy URL loads over HTTPS and covers every required topic.-- `npm run build:pages` passes with the new changelog entry.-- The submission doc has **no blank required field** except clearly-marked `[HUMAN: fill in]` placeholders (test credentials, org plan confirmation).--## Definition of done-- `claude-submission.md` is a complete answer sheet; the human can paste it into the portal/form and submit.-- Privacy, allowed-links, metadata, reviewer guide, and acknowledgments all present and truthful.-- Manifests verified clean. Changelog validated.--## Hand-off-Report the chosen server, any privacy/manifest edits, and the submission doc path. Tell the human exactly which fields need their input and whether they need a Team/Enterprise org or the public form. Commit/push only if asked; stage touched paths; both remotes.diff --git a/docs/store-submissions/05-openai-apps-sdk-component.md b/docs/store-submissions/05-openai-apps-sdk-component.mddeleted file mode 100644index d1223a9fa..000000000--- a/docs/store-submissions/05-openai-apps-sdk-component.md+++ /dev/null@@ -1,38 +0,0 @@-# Prompt 05 — OpenAI Apps SDK embedded GLB-viewer component--> Paste into a fresh Claude Code chat in the three.ws repo. Follow CLAUDE.md. Use TodoWrite. Prereq: prompt 04 (the `/api/mcp-studio` endpoint exists and returns a GLB URL in structured content).--## Context-ChatGPT apps render an **interactive component** inline in the conversation via the Apps SDK. A text-only tool result is weaker and reads as "static frame with no meaningful interaction" — an explicit rejection reason. For a 3D-generation app the component is the product: the user types a prompt and **sees their generated 3D model render and orbit** right in ChatGPT.--Read the Apps SDK component/UI docs before building: https://developers.openai.com/apps-sdk (custom UX / components, `window.openai` host API, how a tool result references an HTML/JS component template).--We already have a Three.js GLB viewer in this repo — reuse it, don't rebuild. Find the existing viewer (`src/` — glTF/GLB loader, the avatar/model render path) and adapt it for the embedded, sandboxed component context.--## Objective-Build the Apps SDK component that renders the GLB returned by the `/api/mcp-studio` tools, wired so each generation tool result displays an interactive 3D preview in ChatGPT.--## Tasks-1. **Component bundle.** Create an Apps SDK component (HTML+JS, e.g. under `apps-sdk/studio-viewer/` or wherever the SDK expects the served template) that:- - Reads the GLB URL from the tool result's structured content (the key defined in prompt 04) via the Apps SDK host API.- - Loads it with Three.js + GLTFLoader, renders with orbit controls, sensible lighting/environment, auto-frames the model.- - Plays an idle animation if the GLB is rigged (reuse the existing animation/retarget pipeline where feasible — see `src/animation-retarget.js`, `src/glb-canonicalize.js`), else shows the static mesh cleanly.- - Has designed loading, empty, and error states (per CLAUDE.md): skeleton/spinner while the GLB loads, a clear message if the URL fails, never a blank canvas.- - Includes a "Download GLB" / "Open in three.ws" action linking to the viewer URL.-2. **Wire tool results to the component.** Update the `/api/mcp-studio` tool responses (coordinate with prompt 04's output) to reference the component template per the Apps SDK contract, so ChatGPT knows to render it.-3. **Sandbox-safe.** No external network calls except fetching the GLB asset and Three.js (bundle Three.js or load from an allowed CDN per SDK rules). No analytics, no token/crypto anything, no leaking internal IDs.-4. **Responsive + accessible.** Works at narrow ChatGPT panel widths; keyboard-operable controls; respects reduced-motion. Performance: dispose geometries/materials on unmount, cap pixel ratio, no jank.-5. **Build integration.** Ensure the component is built/served (Vite or a dedicated build step) and routed so the Apps SDK can fetch the template in production. Add to `vercel.json` if needed.--## Verification (must actually run)-- Run the app locally and load the component against a **real GLB URL** produced by `/api/mcp-studio` (from prompt 04). The model renders, orbits, and (if rigged) animates. Screenshot it.-- Trigger the error state with a bad URL — it shows the designed error, not a blank/crash.-- No console errors or warnings. Confirm in the browser devtools.-- `grep` the component for coin/token/wallet/x402 strings — clean.--## Definition of done-- A real, interactive GLB viewer renders generated models inline, with loading/empty/error states, download action, accessibility, and zero crypto surface.-- Wired to the `/api/mcp-studio` tool results per the Apps SDK contract. Screenshot saved to `docs/store-submissions/_generated/`.--## Hand-off-Report the component path, the served template URL, the screenshot path, and confirmation it renders a real generated GLB. Feeds prompt 06 (screenshots for the listing). Commit/push only if asked; stage touched paths; both remotes.diff --git a/docs/store-submissions/10-claude-code-plugin-marketplace.md b/docs/store-submissions/10-claude-code-plugin-marketplace.mddeleted file mode 100644index 5d3fc78ef..000000000--- a/docs/store-submissions/10-claude-code-plugin-marketplace.md+++ /dev/null@@ -1,55 +0,0 @@-# Prompt 10 — Claude Code plugin marketplace (publish & make installable)--> Paste into a fresh Claude Code chat in the three.ws repo. Follow CLAUDE.md. Use TodoWrite. No prereqs, but 01 (tool annotations) makes the bundled MCP servers cleaner.--## Context-This is a different surface from the Connectors Directory (01–03). Claude Code has its own **plugin** system: a marketplace is a repo containing `.claude-plugin/marketplace.json` that lists installable plugins, each of which can bundle **skills, slash commands, subagents, hooks, and MCP servers**. Users install with:--```-/plugin marketplace add nirholas/three.ws-/plugin install three-ws-core@three-ws-```--We already have a marketplace manifest at `.claude-plugin/marketplace.json` with three plugins:-- `three-ws-core` → `./.agents` (wallet + x402 skills: authenticate, fund, send, trade, bazaar, pay, monetize, query-onchain)-- `three-ws-developer` → `./marketplace/plugins/three-ws-developer` (scaffold agents, configure MCP, code examples)-- `three-ws-pump-fun` → `./pump-fun-skills` (create coins, swap, creator fees, tokenize agents, live avatar reactions)--The work is to **finish, validate, and make these genuinely installable**, then add the one plugin that's missing: a **3D / forge** plugin (the platform's most distinctive capability).--Re-fetch the live plugin + marketplace schema before editing — the spec evolves:-- Claude Code plugins: https://docs.claude.com/en/docs/claude-code/plugins-- Plugin marketplaces: https://docs.claude.com/en/docs/claude-code/plugin-marketplaces--## Objective-A validated, installable three.ws plugin marketplace with **four** polished plugins, each with a complete `plugin.json`, real bundled components (no empty skills), and a verified install from a clean checkout.--## Tasks-1. **Audit the three existing plugins.** For each `source` dir, open the `.claude-plugin/plugin.json` and confirm:- - Every declared skill/command/agent path actually exists and is non-empty.- - `name`, `version`, `description`, `author`, `homepage`, `repository`, `license`, `keywords`, `category` are all present and accurate.- - No dead component references. No `// TODO`, no stub skills. Each skill has a real `SKILL.md` with a precise `description` trigger line.-2. **Add the missing `three-ws-3d` plugin.** This is the platform's signature surface and currently has no plugin. Create `marketplace/plugins/three-ws-3d/` with:- - A `.claude-plugin/plugin.json` (category `3d` or `creative`).- - Skills wrapping the real generation flow: text→3D (`forge_free`, free lane), text→avatar, mesh forge, auto-rig. Each skill's `SKILL.md` documents the real endpoint/MCP tool, inputs, outputs (GLB URL + viewer link), and the free vs paid lanes. No fake data.- - The `@three-ws/scene-mcp` / `@three-ws/avatar-mcp` MCP server(s) wired in the plugin's MCP config so installing the plugin makes the 3D tools available.- - Register it in `.claude-plugin/marketplace.json`.-3. **Bundle MCP servers correctly.** For plugins that expose MCP tools, ensure the plugin ships an MCP server reference (npx `@three-ws/*` or a hosted URL) per the plugin MCP spec, so install wires the tools with zero extra config. Verify the referenced npm packages are published and the hosted URLs resolve.-4. **Validate the marketplace.** Confirm `marketplace.json` parses, every `source` resolves, and there are no duplicate plugin names. If a validator/CLI exists (`claude plugin validate` or equivalent), run it and paste output.-5. **Real install test.** From a clean clone or a fresh Claude Code session, run `/plugin marketplace add` against this repo and `/plugin install` each plugin. Confirm skills appear, commands register, and at least one bundled MCP tool lists. Capture the result.-6. **README + discovery.** Add a "Install in Claude Code" section to the repo `README.md` (the two install commands per plugin). Ensure the marketplace is discoverable: the repo root marketplace manifest is the canonical entry.-7. **Changelog.** Add a `data/changelog.json` entry ("three.ws Claude Code plugin marketplace — install agents, wallet, 3D, and pump.fun tools in one command", tag `feature`/`sdk`) and run `npm run build:pages`.--## Verification (must actually run)-- `marketplace.json` and every `plugin.json` parse as valid JSON and validate against the live schema.-- A real `/plugin install` of each of the four plugins succeeds; skills and MCP tools show up.-- Every skill `SKILL.md` has a real description trigger and real content — grep for `TODO`/`placeholder`/`not implemented` returns nothing.-- `$THREE` is the only coin referenced anywhere in plugin copy and skills.-- `npm run build:pages` passes.--## Definition of done-- Four installable plugins (core, developer, pump-fun, 3d), each validated and install-tested from a clean state.-- README documents install. Marketplace manifest is canonical and clean. Changelog validated.--## Hand-off-Report the four plugin names + install commands, the validator output, and the install-test result. Note any npm package that still needs publishing. Commit/push only if asked; stage touched paths; both remotes.diff --git a/docs/store-submissions/14-cross-store-asset-kit.md b/docs/store-submissions/14-cross-store-asset-kit.mddeleted file mode 100644index a646d5096..000000000--- a/docs/store-submissions/14-cross-store-asset-kit.md+++ /dev/null@@ -1,39 +0,0 @@-# Prompt 14 — Cross-store asset kit + submission tracker--> Paste into a fresh Claude Code chat in the three.ws repo. Follow CLAUDE.md. Use TodoWrite. Run early — every other prompt (03, 06, 07, 10, 12, 13) reuses these assets. Re-run near the end to fill the tracker.--## Context-Every listing — Claude Connectors, Claude plugins, OpenAI Apps, GPT Store, MCP directories — asks for the same raw materials: an icon, screenshots/demo media at specific sizes, a name, a tagline, a short and a long description, categories, and example prompts. Producing these ad hoc per submission causes drift and wasted work. This chat builds **one canonical asset + copy kit** every other prompt draws from, and a **tracker** that shows submission state across all stores at a glance.--Note the two-audience rule: the **paid/crypto-positioned** copy (Claude side) and the **free, zero-crypto** copy (OpenAI side) are different. Maintain both variants; never let a crypto string reach an OpenAI asset.--## Objective-A single source of truth for brand assets and listing copy at every required dimension/length, split into the Claude (full) and OpenAI (zero-crypto) variants, plus a live submission tracker.--## Tasks-1. **Brand assets.** Produce/collect under `docs/store-submissions/_generated/assets/`:- - App/connector icon at the sizes each store requires (square PNG/SVG; common: 512×512, 256×256, plus favicon). Use the real three.ws mark — find the existing logo in `public/` and export sizes; don't invent a new brand.- - At least 3 screenshots and 1 short demo capture (GIF/MP4) at the dimensions OpenAI + Claude specify. The hero shot is a **real generated 3D model rendering inline** (reuse prompt 05/07 output). Capture from the real app, not mockups.-2. **Copy matrix.** Create `docs/store-submissions/_generated/listing-copy.md` with, for **each** of `{Claude-full, OpenAI-free}`:- - Name candidates (descriptive, IP we own, no generic dictionary word for OpenAI).- - Tagline (≤60 chars), short description (≤2 lines), long description.- - Category + tags per store.- - 4–6 example prompts that reliably demo the product.- - Keep the OpenAI variant provably crypto-free; keep the Claude variant `$THREE`-only.-3. **Example-prompt validation.** Actually run each example prompt against the relevant live surface and confirm it produces the described result. Drop any that don't. Paste evidence.-4. **Compliance gate on assets.** grep all generated copy + asset filenames/alt-text for coin/token/wallet/x402/pump/aixbt strings; the OpenAI variant must be zero. Paste the result.-5. **Submission tracker.** Create `docs/store-submissions/_generated/TRACKER.md`: a table of every target (Claude Connectors, Claude plugin marketplace, Claude Skills pack, OpenAI Apps, OpenAI GPT Store, official MCP registry, Smithery, Glama, mcp.so, PulseMCP, LobeHub) × columns: status (not-started / blocked / ready-to-submit / submitted / live), owning prompt file, blocking `[HUMAN: ...]` items, listing URL once live. Initialize from the current repo state.-6. **Changelog.** No user-visible product change here — this is internal submission tooling, so **no changelog entry** (per CLAUDE.md, internal-only chores are skipped). State that explicitly in the report.--## Verification (must actually run)-- Every required asset exists at the correct dimensions (list them with sizes).-- Every example prompt in the copy matrix was run and produced the claimed result.-- The OpenAI-variant compliance grep returns zero crypto hits (paste it).-- The tracker reflects actual current state of each target.--## Definition of done-- Canonical assets + dual-variant copy matrix complete and validated against the live app.-- Tracker initialized and accurate. No changelog entry (internal tooling).--## Hand-off-Report the asset inventory with sizes, the copy-matrix path, the validated example prompts, and the tracker path with current per-target status. This kit is the input to 03, 06, 07, 10, 12, 13 — note which assets each consumes. Commit/push only if asked; stage touched paths; both remotes.diff --git a/docs/x-spaces.md b/docs/x-spaces.mddeleted file mode 100644index 790ad293f..000000000--- a/docs/x-spaces.md+++ /dev/null@@ -1,222 +0,0 @@-# Agents in X Spaces--three.ws agents can join live X/Twitter Spaces, listen to speakers, and respond with a synthesized voice — powered by the [`xspace-agent`](../xspace-agent/) package bundled in this repo.-------## How it works--```-X Space (live audio)- │-Puppeteer + Chrome DevTools Protocol- │-┌───────▼────────────┐-│ BrowserLifecycle │ Auth → Join → Request Speaker → Speak-└───────┬────────────┘- │ RTCPeerConnection audio hooks-┌───────▼────────────┐-│ AudioPipeline │ PCM capture → VAD → silence detection → WAV → TTS-└───────┬────────────┘- │-┌───────┼───────────────┐-▼ ▼ ▼-STT LLM TTS-│ │ │-└───────┴───────────────┘- │-Intelligence layer-(speaker ID · topic tracking · sentiment · context)- │-Turn management + FSM-(idle → launching → authenticating → joining → listening ↔ speaking → leaving)-```--The agent connects via a headless Chromium browser, hooks into the WebRTC audio stream, and routes everything through a configurable **STT → LLM → TTS** pipeline. Middleware hooks let you intercept any stage for logging, filtering, translation, or moderation.-------## Quick start--**1. Install**--```bash-npm install xspace-agent-```--**2. Environment**--```bash-# .env-X_AUTH_TOKEN=your_x_auth_token # from browser cookies after logging into X-X_CT0=your_x_ct0_cookie-OPENAI_API_KEY=sk-...-```--**3. Join a Space**--```typescript-import { XSpaceAgent } from 'xspace-agent'--const agent = new XSpaceAgent({- auth: { token: process.env.X_AUTH_TOKEN!, ct0: process.env.X_CT0! },- ai: {- provider: 'openai',- apiKey: process.env.OPENAI_API_KEY!,- model: 'gpt-4o',- systemPrompt: 'You are a helpful AI analyst. Be concise and data-driven.',- },- voice: {- sttProvider: 'deepgram',- ttsProvider: 'elevenlabs',- voiceId: 'rachel',- },-})--agent.on('transcription', ({ text, speaker }) => console.log(`${speaker}: ${text}`))-agent.on('response', ({ text }) => console.log(`Agent: ${text}`))--await agent.join('https://x.com/i/spaces/YOUR_SPACE_ID')-```--Or skip the code entirely with the CLI:--```bash-npx xspace-agent join https://x.com/i/spaces/YOUR_SPACE_ID --provider openai-```-------## Providers--| Category | Options |-|---|---|-| **LLM** | OpenAI (GPT-4o), Anthropic (Claude), Groq (Llama/Mixtral), any OpenAI-compatible API |-| **Speech-to-text** | Deepgram (streaming), OpenAI Whisper, custom |-| **Text-to-speech** | ElevenLabs, OpenAI TTS, custom |--Using Claude as the agent brain:--```typescript-ai: {- provider: 'anthropic',- apiKey: process.env.ANTHROPIC_API_KEY!,- model: 'claude-opus-4-7',-}-```-------## Multi-agent teams--Run multiple personalities in a single Space with automatic turn coordination:--```typescript-import { XSpaceTeam } from 'xspace-agent'--const team = new XSpaceTeam({- auth: { token: process.env.X_AUTH_TOKEN!, ct0: process.env.X_CT0! },- agents: [- {- name: 'Bull',- systemPrompt: 'You are a crypto bull. Always find the bullish case.',- voice: { ttsProvider: 'elevenlabs', voiceId: 'adam' },- },- {- name: 'Bear',- systemPrompt: 'You are a crypto bear. Always find the bearish risks.',- voice: { ttsProvider: 'elevenlabs', voiceId: 'rachel' },- },- ],- ai: { provider: 'openai', apiKey: process.env.OPENAI_API_KEY! },-})--await team.join('https://x.com/i/spaces/YOUR_SPACE_ID')-```-------## Middleware--Hook into any stage of the pipeline:--```typescript-agent.use('before:llm', async (ctx, next) => {- // Inject real-time token price into context- const price = await fetchPrice(ctx.transcript)- ctx.systemAppend = `Current price: $${price}`- return next(ctx)-})--agent.use('after:tts', async (ctx, next) => {- // Log every spoken response- console.log('[spoke]', ctx.text)- return next(ctx)-})-```--Available hooks: `before:stt`, `after:stt`, `before:llm`, `after:llm`, `before:tts`, `after:tts`.-------## Agent personalities--Pre-built personalities live in [`xspace-agent/personalities/presets/`](../xspace-agent/personalities/presets/). Load one directly:--```typescript-import agentZero from './xspace-agent/personalities/presets/agent-zero.json'--const agent = new XSpaceAgent({- auth: { ... },- ai: { provider: 'openai', apiKey: '...', ...agentZero.ai },- voice: agentZero.voice,-})-```--Available presets: `agent-zero`, `comedian`, `crypto-degen`, `educator`, `interviewer`, `tech-analyst`.-------## CLI reference--```bash-xspace-agent init # Interactive setup wizard-xspace-agent auth # Authenticate with X-xspace-agent join <url> # Join a Space-xspace-agent start # Start agent with admin panel-xspace-agent dashboard # Launch web dashboard only-```-------## Deploy--```bash-# Docker-docker run \- -e X_AUTH_TOKEN=... \- -e X_CT0=... \- -e OPENAI_API_KEY=... \- ghcr.io/nirholas/xspace-agent-```--One-click options: Railway, Render (see buttons in [`xspace-agent/README.md`](../xspace-agent/README.md)).-------## Requirements--- Node.js ≥ 18-- Chromium (bundled with Puppeteer, or supply your own via `BROWSER_MODE=connect`)-- X account — cookie-based auth (`X_AUTH_TOKEN` + `X_CT0`)-- At least one AI provider key-------## Further reading--- [Architecture overview](../xspace-agent/docs/architecture-overview.md)-- [All environment variables](../xspace-agent/docs/env-vars-reference.md)-- [Multi-Space support](../xspace-agent/docs/internal/multi-space-support.md)-- [Agent memory & RAG](../xspace-agent/docs/internal/agent-memory-rag.md)-- [Examples](../xspace-agent/examples/)diff --git a/pages/app-demo.html b/pages/app-demo.htmldeleted file mode 100644index b90459015..000000000--- a/pages/app-demo.html+++ /dev/null@@ -1,336 +0,0 @@-<!doctype html>-<html lang="en">- <head>- <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>- <meta charset="utf-8" />- <meta http-equiv="X-UA-Compatible" content="IE=edge" />- <title>three.ws — Viewer (studio skin demo)</title>- <meta- name="viewport"- content="width=device-width, initial-scale=1, viewport-fit=cover"- />- <meta name="author" content="nirholas" />- <meta- name="description"- content="The first embodied 3D AI agent. Not a chatbot. A presence — with a body, a place, an identity, and memory."- />- <meta- name="keywords"- content="three.ws, AI agent, embodied AI, glTF viewer, GLB viewer, 3D model viewer, WebGL, three.js, ERC-8004, agent identity"- />- <meta name="theme-color" content="#000000" />-- <!-- Open Graph -->- <meta property="og:type" content="website" />- <meta property="og:title" content="three.ws — The First Embodied AI Agent" />- <meta- property="og:description"- content="Agents have always been imagined as present. We made that real."- />- <meta property="og:url" content="https://three.ws/" />- <meta property="og:site_name" content="three.ws" />- <meta property="og:image" content="https://three.ws/og-image.png">- <meta property="og:image:width" content="1200">- <meta property="og:image:height" content="630">-- <!-- Twitter / X -->- <meta name="twitter:card" content="summary_large_image" />- <meta name="twitter:title" content="three.ws — Embodied AI" />- <meta- name="twitter:description"- content="The first three.ws with a body, a place, an identity, and memory."- />- <meta name="twitter:site" content="@trythreews" />- <meta name="twitter:creator" content="@nichxbt" />- <meta name="twitter:image" content="https://three.ws/og-image.png">-- <link rel="canonical" href="https://three.ws/app-demo" />- <meta name="robots" content="noindex" />- <link rel="icon" href="/favicon.ico" sizes="any" />- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />- <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />- <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />- <link rel="apple-touch-icon" href="/apple-touch-icon.png" />- <link rel="manifest" href="/site.webmanifest" />- <link rel="stylesheet" href="/style.css" />- <link rel="stylesheet" href="/app-demo.css" />- <link rel="stylesheet" href="/fonts/fonts.css" />- <script defer type="module" src="/src/app.js"></script>- <link rel="stylesheet" href="/nav.css" />- <link rel="stylesheet" href="/mobile.css" />- </head>- <body class="app-demo-body">- <header>- <h1>- <a href="/" aria-label="three.ws home"- ><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a- >- </h1>- <nav class="features-nav" aria-label="Primary">- <a href="/app" id="nav-viewer-link">Viewer</a>- <a href="/create">Create</a>- <a href="/features">Features</a>- <a href="/discover">Discover</a>- <a href="/widgets">Widgets</a>- <a href="/studio">Studio</a>- <a href="/chat">Chat</a>- <a href="/docs">Docs</a>- <a href="/dashboard">Dashboard</a>- <a- class="save-to-account-btn"- id="save-to-account-btn"- hidden- title="Save this model to your account"- >- <svg- xmlns="http://www.w3.org/2000/svg"- width="14"- height="14"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- aria-hidden="true"- >- <path d="M19 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11l5 5v11a2 2 0 0 1-2 2z" />- <polyline points="17 21 17 13 7 13 7 21" />- <polyline points="7 3 7 8 15 8" />- </svg>- <span>Save to account</span>- </a>- <a- class="make-widget-btn"- id="make-widget-btn"- href="/studio"- hidden- title="Save the current model as an embeddable widget"- >- <svg- xmlns="http://www.w3.org/2000/svg"- width="14"- height="14"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- aria-hidden="true"- >- <rect x="3" y="3" width="7" height="7" rx="1" />- <rect x="14" y="3" width="7" height="7" rx="1" />- <rect x="3" y="14" width="7" height="7" rx="1" />- <rect x="14" y="14" width="7" height="7" rx="1" />- </svg>- <span>Make this a widget</span>- </a>- <a- class="deploy-onchain-btn"- id="deploy-onchain-btn"- hidden- aria-label="Deploy this 3D asset on Solana"- title="Deploy on Solana — guided on-chain deployment for 3D assets"- >- <svg- xmlns="http://www.w3.org/2000/svg"- width="14"- height="14"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- aria-hidden="true"- focusable="false"- >- <polygon points="12 2 22 8.5 22 15.5 12 22 2 15.5 2 8.5 12 2" />- <line x1="12" y1="2" x2="12" y2="22" />- <polyline points="22 8.5 12 15.5 2 8.5" />- </svg>- <span data-state-label>Deploy on Solana</span>- </a>- <a- class="view-public-profile-btn"- id="view-public-profile-btn"- hidden- target="_blank"- rel="noopener noreferrer"- aria-label="Open this agent's public profile in a new tab"- title="Open this agent's public profile in a new tab"- >- <svg- xmlns="http://www.w3.org/2000/svg"- width="14"- height="14"- viewBox="0 0 24 24"- fill="none"- stroke="currentColor"- stroke-width="2"- stroke-linecap="round"- stroke-linejoin="round"- aria-hidden="true"- focusable="false"- >- <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />- <polyline points="15 3 21 3 21 9" />- <line x1="10" y1="14" x2="21" y2="3" />- </svg>- <span>Public profile</span>- </a>- <a href="/dashboard" class="nav-dashboard">Dashboard</a>- <div class="nav-user-wrap" id="nav-user-wrap" hidden>- <button class="nav-user" id="nav-user-btn" aria-haspopup="true" aria-expanded="false" type="button">- <span id="nav-user-label">Account</span>- </button>- <div class="nav-user-menu" id="nav-user-menu" role="menu" hidden>- <a href="/profile" id="nav-my-profile-link" class="nav-user-menu-item">My Profile</a>- <a href="/settings" class="nav-user-menu-item">Settings</a>- <a href="/dashboard" class="nav-user-menu-item">Dashboard</a>- <div class="nav-user-menu-sep" role="separator"></div>- <button class="nav-user-menu-item nav-user-menu-signout" id="nav-sign-out-btn" type="button">Sign out</button>- </div>- </div>- <a href="/login" class="nav-sign-in" id="nav-sign-in">Sign in</a>- </nav>- </header>-- <main class="wrap">- <!-- Agent presence panel — rendered by AgentHome -->- <div class="agent-presence-sidebar" id="agent-presence-sidebar">- <div id="agent-home-container"></div>- </div>-- <!-- Auth gate — shown only to anonymous visitors on the main viewer -->- <aside class="auth-gate" id="auth-gate">- <div class="auth-gate__inner">- <div class="auth-gate__eyebrow">- <span class="auth-gate__lock" aria-hidden="true">◎</span>- <span>Unlock the agent</span>- </div>- <h2 class="auth-gate__title">Your agent lives here</h2>- <p class="auth-gate__desc">- Sign in to access animations, scene controls, and your agent's on-chain- identity, memory, and skills.- </p>- <div class="auth-gate__actions">- <a class="auth-gate__btn auth-gate__btn--primary" href="/login">Sign in</a>- <a class="auth-gate__btn" href="/register">Create account</a>- </div>- <ul class="auth-gate__perks">- <li>Animations & presence controls</li>- <li>Save avatars to your account</li>- <li>Register on-chain agent identity</li>- <li>Scene, lighting & material editor</li>- </ul>- </div>- </aside>-- <!-- First-time onboarding banner — shown once per agent after creation -->- <aside- class="agent-onboarding"- id="agent-onboarding"- role="dialog"- aria-labelledby="agent-onboarding-title"- hidden- >- <div class="agent-onboarding__inner">- <button- class="agent-onboarding__close"- id="agent-onboarding-close"- type="button"- aria-label="Dismiss welcome message"- >- ×- </button>- <h2 class="agent-onboarding__title" id="agent-onboarding-title">- Your agent is ready 🎉- </h2>- <p class="agent-onboarding__desc">- This is your agent's studio. Try an animation from the strip below, drop a- new GLB to swap its body, or publish it on-chain so anyone can find and- embed it.- </p>- <div class="agent-onboarding__actions">- <a- class="agent-onboarding__btn agent-onboarding__btn--primary"- href="/deploy"- id="agent-onboarding-deploy"- >Deploy on-chain →</a- >- <a- class="agent-onboarding__btn"- id="agent-onboarding-share"- target="_blank"- rel="noopener noreferrer"- >View public profile</a- >- </div>- </div>- </aside>-- <!-- 3D Viewer -->- <div class="viewer-container" id="viewer-container"></div>-- <!-- Bottom bar -->- <div class="dropzone">- <div class="upload-btn">- <input type="file" name="file-input[]" id="file-input" multiple="" />- <label for="file-input">- <svg- xmlns="http://www.w3.org/2000/svg"- width="20"- height="17"- viewBox="0 0 20 17"- >- <path- d="M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z"- ></path>- </svg>- <span>Upload your own model</span>- </label>- </div>- <span class="drop-hint">or drag & drop glTF / GLB anywhere</span>- <a- class="create-avatar-btn"- id="create-avatar-btn"- href="/create"- title="Create a custom 3D avatar from a selfie"- >- <svg- xmlns="http://www.w3.org/2000/svg"- width="16"- height="16"- viewBox="0 0 24 24"- fill="currentColor"- >- <path- d="M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"- />- </svg>- <span>Create Avatar</span>- </a>- </div>- <div class="spinner"></div>- </main>-- <!-- Golden Ratio dev grid — toggle with Alt+G -->- <div class="phi-grid" id="phi-grid">- <div class="phi-grid-h"></div>- <div class="phi-grid-thirds"></div>- <div class="phi-grid-thirds-h"></div>- </div>- <div class="phi-grid-label" id="phi-grid-label">φ Grid — Alt+G to toggle</div>- <script>- document.addEventListener('keydown', function (e) {- if (e.altKey && e.key.toLowerCase() === 'g') {- document.getElementById('phi-grid').classList.toggle('visible');- }- });- </script>-- <script src="/brand.js" defer></script>-</body>-</html>diff --git a/pages/avatar-studio-demo.html b/pages/avatar-studio-demo.htmldeleted file mode 100644index 333864b84..000000000--- a/pages/avatar-studio-demo.html+++ /dev/null@@ -1,94 +0,0 @@-<!doctype html>-<html lang="en">- <head>- <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>- <meta charset="utf-8" />- <title>Avatar Studio · three.ws</title>- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <meta name="description" content="Create and customize 3D avatars — face sculpting, body morphs, outfits, and accessories. No third-party dependency." />- <meta property="og:type" content="website" />- <meta property="og:site_name" content="three.ws" />- <meta property="og:url" content="https://three.ws/avatar-studio" />- <meta property="og:title" content="Avatar Studio · three.ws" />- <meta property="og:description" content="Create and customize 3D avatars — face sculpting, body morphs, outfits, and accessories." />- <meta property="og:image" content="https://three.ws/og-image.png" />- <meta property="og:image:width" content="1200" />- <meta property="og:image:height" content="630" />- <meta name="twitter:card" content="summary_large_image" />- <meta name="twitter:site" content="@trythreews" />- <meta name="twitter:title" content="Avatar Studio · three.ws" />- <meta name="twitter:description" content="Create and customize 3D avatars — face sculpting, body morphs, outfits, and accessories." />- <meta name="twitter:image" content="https://three.ws/og-image.png" />- <meta name="theme-color" content="#000000" />- <link rel="icon" href="/favicon.ico" sizes="any" />- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />- <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />- <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />- <link rel="apple-touch-icon" href="/apple-touch-icon.png" />- <link rel="manifest" href="/site.webmanifest" />- <link rel="stylesheet" href="/style.css" />- <link rel="stylesheet" href="/fonts/fonts.css" />- <link rel="stylesheet" href="/mobile.css" />- <link rel="stylesheet" href="/avatar-studio-demo.css" />- </head>- <body>- <!-- ── Header ──────────────────────────────────────────── -->- <header class="as-bar">- <a href="/" class="as-logo" aria-label="three.ws home">- <img src="/pwa-icon.svg" alt="" width="28" height="28" />- <span>Avatar Studio</span>- </a>- <div class="as-bar-actions">- <button class="as-btn as-btn-ghost" type="button" id="as-reset-all" title="Reset everything to default">Reset</button>- <button class="as-btn as-btn-primary" type="button" id="as-export" title="Download avatar as .glb">Export GLB</button>- </div>- </header>-- <!-- ── Main layout ─────────────────────────────────────── -->- <main class="as-main">- <!-- 3D viewport -->- <section class="as-viewport" id="as-viewport">- <div class="as-viewport-loader" id="as-viewport-loader">- <div class="as-spinner"></div>- <span>Loading avatar…</span>- </div>- <!-- Camera presets -->- <div class="as-cam-bar" id="as-cam-bar">- <button class="as-cam-btn active" type="button" data-preset="full" title="Full body">Full</button>- <button class="as-cam-btn" type="button" data-preset="head" title="Head closeup">Head</button>- <button class="as-cam-btn" type="button" data-preset="tight" title="Tight portrait">Portrait</button>- </div>- <!-- Animation controls -->- <div class="as-anim-bar" id="as-anim-bar">- <select class="as-anim-select" id="as-anim-select" title="Preview animation">- <option value="">Idle</option>- </select>- </div>- </section>-- <!-- Side panel -->- <aside class="as-panel" id="as-panel">- <!-- Tabs -->- <nav class="as-tabs" id="as-tabs" role="tablist">- <button class="as-tab active" role="tab" aria-selected="true" data-tab="outfit">Outfits</button>- <button class="as-tab" role="tab" aria-selected="false" data-tab="hat">Hats</button>- <button class="as-tab" role="tab" aria-selected="false" data-tab="glasses">Glasses</button>- <button class="as-tab" role="tab" aria-selected="false" data-tab="earrings">Earrings</button>- <button class="as-tab" role="tab" aria-selected="false" data-tab="sculpt">Sculpt</button>- </nav>-- <!-- Active chips -->- <div class="as-chips" id="as-chips"></div>-- <!-- Tab content -->- <div class="as-tab-content" id="as-tab-content"></div>-- <!-- Status -->- <div class="as-status" id="as-status"></div>- </aside>- </main>-- <script type="module" src="/src/avatar-studio-demo.js"></script>- <script src="/brand.js" defer></script>-</body>-</html>diff --git a/pages/create-character.html b/pages/create-character.htmldeleted file mode 100644index 54334761b..000000000--- a/pages/create-character.html+++ /dev/null@@ -1,103 +0,0 @@-<!doctype html>-<html lang="en">-<head>- <style>/* three.ws hidden-guard — make the `hidden` attribute authoritative; see scripts/lib/hidden-guard.mjs */[hidden]{display:none!important}</style>- <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>- <meta charset="utf-8" />- <meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />- <title>Character creator · three.ws</title>- <link rel="icon" href="/favicon.ico" sizes="any" />- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />- <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />- <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />- <link rel="apple-touch-icon" href="/apple-touch-icon.png" />- <link rel="manifest" href="/site.webmanifest" />- <meta name="description" content="Build your 3D character — generate it from a photo, a full-body avatar creator, or your own model, then dress it in the wardrobe and step into the world." />- <meta name="robots" content="index, follow" />-- <meta property="og:type" content="website" />- <meta property="og:site_name" content="three.ws" />- <meta property="og:url" content="https://three.ws/create/character" />- <meta property="og:title" content="Character creator · three.ws" />- <meta property="og:description" content="Build your 3D character and step into the world." />- <meta property="og:image" content="https://three.ws/og-image.png" />- <link rel="canonical" href="https://three.ws/create/character" />-- <link rel="stylesheet" href="/src/ui-juice.css" />- <link rel="stylesheet" href="/src/character-creator.css" />-</head>-<body>- <header class="cc-topbar">- <a class="back" href="/play" aria-label="Back to play">- <svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">- <line x1="19" y1="12" x2="5" y2="12" /><polyline points="12 19 5 12 12 5" />- </svg>- </a>- <div class="brand"><strong>three.ws</strong> · Character creator</div>- </header>-- <main class="cc-layout">- <!-- Live 3D turntable -->- <section class="cc-stage" id="cc-stage" data-state="loading" aria-label="Avatar preview">- <canvas id="cc-canvas"></canvas>- <div class="cc-veil cc-veil--spin" id="cc-stage-veil">Loading avatar…</div>- <div class="cc-stage__label" id="cc-avatar-label">Starter avatar</div>- <div class="cc-stage__hint" aria-hidden="true">drag to rotate</div>- </section>-- <!-- Controls -->- <section class="cc-panel" aria-label="Customize">- <h1>Create your character</h1>- <p class="cc-sub">Pick a body, dress it, and step into the world. Everything previews live, and your look follows you to every coin world.</p>-- <p class="cc-section-label">Choose your avatar</p>- <div class="cc-sources">- <button type="button" class="cc-source" id="cc-src-rpm">- <span class="ic" aria-hidden="true">🧍</span>- <span class="t">Avatar Creator</span>- <span class="d">Full-body builder</span>- </button>- <button type="button" class="cc-source" id="cc-src-selfie">- <span class="ic" aria-hidden="true">📸</span>- <span class="t">From a selfie</span>- <span class="d">Photo → 3D</span>- </button>- <button type="button" class="cc-source" id="cc-src-import">- <span class="ic" aria-hidden="true">📦</span>- <span class="t">Import</span>- <span class="d">.glb / .vrm</span>- </button>- </div>- <div class="cc-import-url">- <input type="url" id="cc-import-url" placeholder="…or paste a GLB/VRM URL" autocomplete="off" inputmode="url" />- <button type="button" id="cc-import-url-btn">Load</button>- </div>- <input type="file" id="cc-import-file" accept=".glb,.vrm,model/gltf-binary" hidden />-- <p class="cc-section-label">Wardrobe</p>- <div id="cc-wardrobe"></div>-- <div class="cc-finish">- <input type="text" id="cc-name-input" class="cc-name-input" placeholder="Name your character" maxlength="24" autocomplete="off" aria-label="Character name" />- <div class="cc-actions">- <button type="button" class="cc-btn cc-btn--ghost" id="cc-save-only">Save</button>- <button type="button" class="cc-btn cc-btn--primary" id="cc-save">Enter the world →</button>- </div>- </div>- </section>- </main>-- <!-- Avatar creator modal -->- <div class="cc-modal" id="cc-rpm-modal" role="dialog" aria-modal="true" aria-label="Avatar creator" hidden>- <div class="cc-modal__inner">- <button type="button" class="cc-modal__close" id="cc-rpm-close">Close</button>- <iframe id="cc-rpm-frame" title="Avatar creator" allow="camera *; microphone *; clipboard-write" src="about:blank"></iframe>- </div>- </div>-- <div class="cc-toast" id="cc-toast" role="status" aria-live="polite"></div>-- <script type="module" src="/src/character-creator.js"></script>- <script src="/brand.js" defer></script>-</body>-</html>diff --git a/pages/creating.html b/pages/creating.htmldeleted file mode 100644index cbbf70d2e..000000000--- a/pages/creating.html+++ /dev/null@@ -1,493 +0,0 @@-<!doctype html>-<html lang="en">- <head>- <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>- <meta charset="utf-8" />- <title>Your three.ws avatar is ready</title>- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <meta name="theme-color" content="#060606" />- <meta- name="description"- content="Preview the avatar three.ws generated from your selfies, then mint it on-chain."- />- <meta name="robots" content="noindex" />- <link rel="icon" href="/favicon.ico" sizes="any" />- <link rel="icon" type="image/svg+xml" href="/favicon.svg" />- <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />- <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />- <link rel="apple-touch-icon" href="/apple-touch-icon.png" />- <link rel="manifest" href="/site.webmanifest" />- <link rel="stylesheet" href="/style.css" />- <link rel="stylesheet" href="/nav.css" />- <link rel="stylesheet" href="/fonts/fonts.css" />- <link rel="stylesheet" href="/mobile.css" />- <script- type="module"- src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"- integrity="sha384-sr9b4Ux0WhAUGclJ0ym0FSY2zSOMmNSn0bP/SA0e6bNCrpn/5W3QL8mm+LdlQMKw"- crossorigin="anonymous"- ></script>- <style>- :root {- color-scheme: dark;- }- html,- body {- height: 100%;- }- body {- background: #060606;- color: #eee;- font:- 15px/1.5 -apple-system,- system-ui,- 'Segoe UI',- Roboto,- sans-serif;- margin: 0;- min-height: 100vh;- display: flex;- flex-direction: column;- }- .crumb {- padding: 14px 22px;- font-size: 13px;- color: #8a8d98;- }- .crumb a {- color: #8a8d98;- text-decoration: none;- }- .crumb a:hover {- color: #ffffff;- }- h1 {- font-size: 28px;- font-weight: 600;- letter-spacing: -0.015em;- margin: 0 0 6px;- }- .sub {- color: #8a8d98;- margin: 0 0 24px;- max-width: 64ch;- }- .stage {- flex: 1;- max-width: 1100px;- width: 100%;- margin: 0 auto;- padding: 16px 22px 80px;- box-sizing: border-box;- }- .grid {- display: grid;- grid-template-columns: minmax(0, 1fr) 380px;- gap: 28px;- align-items: start;- }- @media (max-width: 880px) {- .grid {- grid-template-columns: 1fr;- }- }- .viewer {- background: #101010;- border: 1.5px solid #202020;- border-radius: 14px;- aspect-ratio: 4 / 5;- min-height: 480px;- position: relative;- overflow: hidden;- }- .viewer model-viewer {- width: 100%;- height: 100%;- background: transparent;- --poster-color: transparent;- }- .viewer .skel {- position: absolute;- inset: 0;- display: flex;- align-items: center;- justify-content: center;- color: #6a6d7c;- font-size: 13px;- }- .panel {- background: #101010;- border: 1.5px solid #202020;- border-radius: 14px;- padding: 22px;- display: flex;- flex-direction: column;- gap: 14px;- }- .panel h2 {- margin: 0;- font-size: 18px;- font-weight: 600;- letter-spacing: -0.005em;- }- .panel .label {- display: block;- font-size: 12px;- color: #8a8d98;- text-transform: uppercase;- letter-spacing: 0.05em;- margin-bottom: 6px;- }- .panel input,- .panel textarea,- .panel select {- width: 100%;- box-sizing: border-box;- background: #080808;- color: #eee;- border: 1.5px solid #202020;- border-radius: 9px;- padding: 10px 12px;- font: inherit;- }- .panel input:focus,- .panel textarea:focus,- .panel select:focus {- outline: none;- border-color: #ffffff;- }- .panel textarea {- resize: vertical;- min-height: 64px;- }- .cta {- background: #ffffff;- color: #0a0a0a;- border: none;- border-radius: 10px;- padding: 11px 16px;- font: inherit;- font-weight: 600;- cursor: pointer;- transition: filter 0.15s;- }- .cta:hover {- filter: brightness(1.04);- }- .cta:disabled {- opacity: 0.35;- cursor: not-allowed;- }- .secondary {- background: transparent;- color: #eee;- border: 1.5px solid #202020;- border-radius: 10px;- padding: 10px 14px;- font: inherit;- cursor: pointer;- text-decoration: none;- display: inline-flex;- align-items: center;- gap: 6px;- }- .secondary:hover {- border-color: #2e2e2e;- }- .row {- display: flex;- gap: 10px;- flex-wrap: wrap;- }- .row > * {- flex: 1;- min-width: 0;- }- .log {- background: #080808;- border: 1px solid #202020;- border-radius: 9px;- padding: 10px 12px;- font-family: ui-monospace, monospace;- font-size: 11.5px;- color: #8a8d98;- max-height: 140px;- overflow: auto;- line-height: 1.5;- }- .log .ok {- color: #ffffff;- }- .log .err {- color: #ff6b6b;- }- .empty {- background: #101010;- border: 1.5px solid #202020;- border-radius: 14px;- padding: 32px;- text-align: center;- color: #8a8d98;- }- .empty a {- color: #ffffff;- }- .meta-tag {- display: inline-block;- background: #202020;- color: #8a8d98;- padding: 2px 8px;- border-radius: 6px;- font-size: 11px;- margin-right: 6px;- }- .banner {- background: rgba(255, 255, 255, 0.08);- border: 1px solid rgba(255, 255, 255, 0.25);- color: #ffffff;- border-radius: 9px;- padding: 8px 12px;- font-size: 12px;- margin-bottom: 16px;- }- </style>- <script src="/model-viewer-meshopt.js"></script>- </head>- <body>- <nav class="crumb">- <a href="/">three.ws</a> ·- <a href="/demos/selfie-fit">Selfie pipeline</a> ·- <span>Review & mint</span>- </nav>-- <main class="stage">- <div class="banner">- Sandbox flow at <code>/creating</code> — once this path is proven end-to-end it will- graduate to the main <code>/create</code> editor.- </div>-- <h1 id="heading">Your three.ws avatar is ready</h1>- <p class="sub" id="subhead">- Reconstructed from your three selfies. Preview below, then mint it as a draft- ERC-8004 agent or refine it in the editor.- </p>-- <div id="error-card" class="empty" style="display: none">- <p id="error-msg">Something went wrong.</p>- <p><a href="/demos/selfie-fit">← Try again with new selfies</a></p>- </div>-- <div id="content" class="grid" style="display: none">- <div class="viewer">- <div class="skel" id="viewer-skel">Loading 3D model…</div>- <model-viewer- id="mv"- camera-controls- auto-rotate- auto-rotate-delay="0"- rotation-per-second="20deg"- exposure="1"- environment-image="neutral"- style="display: none"- ></model-viewer>- </div>-- <div class="panel">- <h2 id="avatar-name">Untitled avatar</h2>- <div>- <span class="meta-tag" id="tag-source">reconstruct</span>- <span class="meta-tag" id="tag-vis">private</span>- <span class="meta-tag" id="tag-size">— KB</span>- </div>-- <div>- <label class="label" for="f-name">Name</label>- <input id="f-name" maxlength="120" placeholder="e.g. Studio agent" />- </div>- <div>- <label class="label" for="f-desc">Description (optional)</label>- <textarea- id="f-desc"- maxlength="500"- placeholder="Short bio for the agent"- ></textarea>- </div>- <div>- <label class="label" for="f-vis">Visibility</label>- <select id="f-vis">- <option value="private">Private — only you can see it</option>- <option value="unlisted">Unlisted — anyone with the link</option>- <option value="public">Public — listed in /discover</option>- </select>- </div>-- <button class="cta" id="save-btn">Save details</button>- <button class="cta" id="mint-btn">Mint as agent →</button>- <div class="row">- <a class="secondary" href="/demos/selfie-fit">↺ Retake selfies</a>- <a class="secondary" id="edit-link" href="#">✎ Open in editor</a>- </div>- <div class="log" id="log">ready.</div>- </div>- </div>- </main>-- <script type="module">- const $ = (s) => document.querySelector(s);- const logEl = $('#log');- function log(msg, cls = '') {- const line = document.createElement('div');- if (cls) line.className = cls;- line.textContent = msg;- logEl.appendChild(line);- logEl.scrollTop = logEl.scrollHeight;- }- function showError(msg) {- $('#error-card').style.display = '';- $('#error-msg').textContent = msg;- }-- const params = new URLSearchParams(location.search);- const avatarId = params.get('avatarId');- if (!avatarId) {- showError('Missing avatarId. Start at /demos/selfie-fit to capture a selfie set.');- } else {- boot(avatarId).catch((err) => {- console.error(err);- showError(`Could not load avatar: ${err.message}`);- });- }-- async function boot(id) {- log(`loading avatar ${id}…`);- const res = await fetch(`/api/avatars/${encodeURIComponent(id)}`, {- credentials: 'include',- });- if (!res.ok) {- throw new Error(`HTTP ${res.status} from /api/avatars/${id}`);- }- const data = await res.json();- const a = data.avatar || data;- if (!a || !a.id) throw new Error('avatar payload missing id');-- $('#content').style.display = '';-- $('#f-name').value = a.name || '';- $('#f-desc').value = a.description || '';- $('#f-vis').value = a.visibility || 'private';- $('#avatar-name').textContent = a.name || 'Untitled avatar';- $('#tag-source').textContent = a.source || 'unknown';- $('#tag-vis').textContent = a.visibility || 'private';- $('#tag-size').textContent = a.size_bytes- ? `${Math.round(a.size_bytes / 1024)} KB`- : '—';- $('#edit-link').href = `/create?avatarId=${encodeURIComponent(a.id)}`;-- const glbUrl =- a.url || a.signed_url || (a.storage_key ? `/api/avatars/${a.id}/glb` : null);- if (!glbUrl) throw new Error('no GLB URL in avatar payload');- log(`✓ metadata loaded`, 'ok');-- const mv = $('#mv');- mv.src = glbUrl;- mv.addEventListener(- 'load',- () => {- $('#viewer-skel').style.display = 'none';- mv.style.display = '';- log('✓ 3D model loaded', 'ok');- },- { once: true },- );- mv.addEventListener(- 'error',- (e) => {- log(- `model-viewer error: ${e.detail?.sourceError?.message || 'unknown'}`,- 'err',- );- },- { once: true },- );-- $('#save-btn').addEventListener('click', () => savePatch(a.id));- $('#mint-btn').addEventListener('click', () => mint(a.id));- }-- async function savePatch(id) {- const btn = $('#save-btn');- btn.disabled = true;- const original = btn.textContent;- btn.textContent = 'Saving…';- try {- const body = {- name: $('#f-name').value.trim(),- description: $('#f-desc').value.trim() || undefined,- visibility: $('#f-vis').value,- };- const res = await fetch(`/api/avatars/${encodeURIComponent(id)}`, {- method: 'PATCH',- credentials: 'include',- headers: { 'content-type': 'application/json' },- body: JSON.stringify(body),- });- if (!res.ok) {- const text = await res.text();- throw new Error(`HTTP ${res.status}: ${text.slice(0, 200)}`);- }- log('✓ details saved', 'ok');- btn.textContent = 'Saved ✓';- $('#avatar-name').textContent = body.name || 'Untitled avatar';- $('#tag-vis').textContent = body.visibility;- } catch (err) {- log(`save failed: ${err.message}`, 'err');- btn.textContent = original;- } finally {- setTimeout(() => {- btn.textContent = original;- btn.disabled = false;- }, 1200);- }- }-- async function mint(id) {- // Persist current edits first so the on-chain manifest reflects them.- const btn = $('#mint-btn');- btn.disabled = true;- const original = btn.textContent;- btn.textContent = 'Saving + minting…';- try {- await savePatchSilent(id);- // Hand off to the existing register-onchain flow. It lives in- // the main /create editor today; passing avatarId puts the- // user one click away from signing. When /creating proves out- // end-to-end we'll inline the DeployButton here directly.- location.href = `/create?avatarId=${encodeURIComponent(id)}&autoMint=1`;- } catch (err) {- log(`mint failed: ${err.message}`, 'err');- btn.disabled = false;- btn.textContent = original;- }- }-- async function savePatchSilent(id) {- const body = {- name: $('#f-name').value.trim(),- description: $('#f-desc').value.trim() || undefined,- visibility: $('#f-vis').value,- };- const res = await fetch(`/api/avatars/${encodeURIComponent(id)}`, {- method: 'PATCH',- credentials: 'include',- headers: { 'content-type': 'application/json' },- body: JSON.stringify(body),- });- if (!res.ok) {- const text = await res.text();- throw new Error(`patch HTTP ${res.status}: ${text.slice(0, 200)}`);- }- }- </script>- <script src="/brand.js" defer></script>- </body>-</html>diff --git a/pages/crypto.html b/pages/crypto.htmlindex ab25b649f..872e86859 100644--- a/pages/crypto.html+++ b/pages/crypto.html@@ -20,7 +20,7 @@content="Token snapshots, rug checks, holders, pump.fun launches, bonding-curve status, whale flow, trending & wallets — free and keyless. Wire it into your agent in one fetch."/><meta property="og:url" content="https://three.ws/crypto" />- <meta property="og:image" content="https://three.ws/og-image.png" />+ <meta property="og:image" content="https://three.ws/api/page-og?s=learn&t=Crypto+Data+API&d=Free%2C+keyless+crypto+data+for+AI+agents+in+one+API%3A+token+snapshots%2C+security%2Frug+signals%2C+holder+concentration%2C+live+pump.fun+launches%2C+bonding-curve+status%2C+w&p=%2Fcrypto" /><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" /><meta name="twitter:card" content="summary_large_image" />@@ -29,7 +29,7 @@name="twitter:description"content="Token snapshots, rug checks, holders, pump.fun launches, bonding & whale flow — free, keyless, one fetch."/>- <meta name="twitter:image" content="https://three.ws/og-image.png" />+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=learn&t=Crypto+Data+API&d=Free%2C+keyless+crypto+data+for+AI+agents+in+one+API%3A+token+snapshots%2C+security%2Frug+signals%2C+holder+concentration%2C+live+pump.fun+launches%2C+bonding-curve+status%2C+w&p=%2Fcrypto" /><link rel="icon" href="/favicon.ico" sizes="any" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" />@@ -257,7 +257,11 @@.cx-anchor { color: inherit; text-decoration: none; }.cx-anchor:hover { color: var(--ink-bright); }</style>- </head>++ <meta property="og:locale" content="en_US">+ <meta property="og:image:alt" content="Crypto Data API — three.ws">+ <meta name="twitter:site" content="@trythreews">+</head><body><a href="#cx-endpoints" class="h-skip-link">Skip to endpoints</a>diff --git a/pages/ibm/hello.html b/pages/ibm/hello.htmlindex a4b3e55f5..5bf128c91 100644--- a/pages/ibm/hello.html+++ b/pages/ibm/hello.html@@ -421,13 +421,13 @@ a:focus-visible{outline-offset:3px}<link rel="canonical" href="https://three.ws/ibm/hello"><meta property="og:site_name" content="three.ws"><meta property="og:url" content="https://three.ws/ibm/x402-demo">- <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=x402+Live+Demo+%28IBM+%C3%97+three.ws%29&d=A+self-contained+x402+micropayment+demo%3A+pay+%240.001+USDC+from+your+own+wallet+%E2%80%94+MetaMask+on+Base+or+Phantom+on+Solana+%E2%80%94+to+call+a+real+three.ws+data+API.+Watch+&p=%2Fibm%2Fx402-demo">+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=IBM+%C3%97+three.ws+partnership&d=The+IBM+%C3%97+three.ws+partnership+page%3A+how+three.ws%27s+agent+identity%2C+x402+payment+rails%2C+and+MCP+servers+integrate+with+IBM+watsonx+and+the+IBM+x402+ecosystem.+A&p=%2Fibm%2Fhello"><meta property="og:image:width" content="1200"><meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="x402 Live Demo (IBM × three.ws) · three.ws"><meta name="twitter:description" content="A self-contained x402 micropayment demo: pay $0.001 USDC from your own wallet — MetaMask on Base or Phantom on Solana — to call a real three.ws data API. Watch the live HTTP 402 challenge, sign a gasless authorization, and see the on-chain settlement receipt. No backend, no account; built as the public face of the IBM × three.ws partnership.">- <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=x402+Live+Demo+%28IBM+%C3%97+three.ws%29&d=A+self-contained+x402+micropayment+demo%3A+pay+%240.001+USDC+from+your+own+wallet+%E2%80%94+MetaMask+on+Base+or+Phantom+on+Solana+%E2%80%94+to+call+a+real+three.ws+data+API.+Watch+&p=%2Fibm%2Fx402-demo">+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=IBM+%C3%97+three.ws+partnership&d=The+IBM+%C3%97+three.ws+partnership+page%3A+how+three.ws%27s+agent+identity%2C+x402+payment+rails%2C+and+MCP+servers+integrate+with+IBM+watsonx+and+the+IBM+x402+ecosystem.+A&p=%2Fibm%2Fhello"><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"x402 Live Demo (IBM × three.ws)","description":"A self-contained x402 micropayment demo: pay $0.001 USDC from your own wallet — MetaMask on Base or Phantom on Solana — to call a real three.ws data API. Watch the live HTTP 402 challenge, sign a gasless authorization, and see the on-chain settlement receipt. No backend, no account; built as the public face of the IBM × three.ws partnership.","url":"https://three.ws/ibm/x402-demo","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script><!-- model-viewer renders the GLB returned by the paid Forge demo (Demo 01).Self-hosted (travels with this file under ./vendor/) so the page needs nodiff --git a/pages/sperax.html b/pages/sperax.htmlindex ea5e0e079..c412aebad 100644--- a/pages/sperax.html+++ b/pages/sperax.html@@ -36,7 +36,7 @@<meta property="og:locale" content="en_US" /><metaproperty="og:image"- content="https://three.ws/api/page-og?s=crypto&t=Sperax+%C3%97+three.ws&d=three.ws+is+live+inside+SperaxOS.+Connect+your+agent+to+chat.sperax.io+for+an+embodied+3D+body+%E2%80%94+and+claim+free+AI+credits.&p=%2Fsperax"+ content="https://three.ws/api/page-og?s=crypto&t=Sperax+on+three.ws&d=Free+AI+credits+for+three.ws+users+on+chat.sperax.io+%E2%80%94+what+the+integration+is+and+how+to+claim+it.&p=%2Fsperax"/><meta property="og:image:width" content="1200" /><meta property="og:image:height" content="630" />@@ -519,7 +519,9 @@}}</style>- </head>++ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Sperax+on+three.ws&amp;d=Free+AI+credits+for+three.ws+users+on+chat.sperax.io+%E2%80%94+what+the+integration+is+and+how+to+claim+it.&amp;p=%2Fsperax">+</head><body class="spx"><a href="#main-content" class="h-skip-link">Skip to main content</a><header><div id="nav-container"></div></header>diff --git a/pages/tour-builder.html b/pages/tour-builder.htmlindex 755bda0bd..3c0ff55f7 100644--- a/pages/tour-builder.html+++ b/pages/tour-builder.html@@ -1,6 +1,8 @@<!doctype html><html lang="en"><head>+ <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>+ <style>/* three.ws hidden-guard — make the `hidden` attribute authoritative; see scripts/lib/hidden-guard.mjs */[hidden]{display:none!important}</style><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1" /><title>Tour Builder — design a 3D store guide, then paste it into Shopify | three.ws</title>diff --git a/public/3d.html b/public/3d.htmlindex 9f9437498..8e4222005 100644--- a/public/3d.html+++ b/public/3d.html@@ -113,6 +113,21 @@.hero h1 { font-size: var(--text-2xl); }}</style>++ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">+ <meta property="og:site_name" content="three.ws">+ <meta property="og:locale" content="en_US">+ <meta property="og:image" content="https://three.ws/api/page-og?s=learn&t=3D+API&d=Free%2C+keyless+3D+API+for+AI+agents%3A+turn+a+text+prompt+into+a+real+GLB+model+and+validate%2Foptimize+any+glTF%2FGLB%2C+all+from+one+URL+with+a+live+OpenAPI+3.1+spec.+&p=%2F3d">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta property="og:image:type" content="image/png">+ <meta property="og:image:alt" content="3D API — three.ws">+ <meta name="twitter:card" content="summary_large_image">+ <meta name="twitter:site" content="@trythreews">+ <meta name="twitter:title" content="3D API · three.ws">+ <meta name="twitter:description" content="Free, keyless 3D API for AI agents: turn a text prompt into a real GLB model and validate/optimize any glTF/GLB, all from one URL with a live OpenAPI 3.1 spec. Free draft generation and inspection graduate to paid Forge Pro quality tiers and animation-ready Rigged Avatars. No key, no account.">+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=learn&t=3D+API&d=Free%2C+keyless+3D+API+for+AI+agents%3A+turn+a+text+prompt+into+a+real+GLB+model+and+validate%2Foptimize+any+glTF%2FGLB%2C+all+from+one+URL+with+a+live+OpenAPI+3.1+spec.+&p=%2F3d">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"3D API","description":"Free, keyless 3D API for AI agents: turn a text prompt into a real GLB model and validate/optimize any glTF/GLB, all from one URL with a live OpenAPI 3.1 spec. Free draft generation and inspection graduate to paid Forge Pro quality tiers and animation-ready Rigged Avatars. No key, no account.","url":"https://three.ws/3d","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=learn&t=3D+API&d=Free%2C+keyless+3D+API+for+AI+agents%3A+turn+a+text+prompt+into+a+real+GLB+model+and+validate%2Foptimize+any+glTF%2FGLB%2C+all+from+one+URL+with+a+live+OpenAPI+3.1+spec.+&p=%2F3d"}]}</script></head><body><script src="/nav.js"></script>diff --git a/public/app-demo.css b/public/app-demo.cssdeleted file mode 100644index ae02517ff..000000000--- a/public/app-demo.css+++ /dev/null@@ -1,452 +0,0 @@-/*- * app-demo.css — studio-skin override for /app- * Layered on top of style.css. Scoped to body.app-demo-body so it cannot- * leak into /app, /create, etc.- *- * Aesthetic sourced from /studio (public/studio/studio.css):- * - bg #0a0a0a, panels #151515 on #2b2b2b, radius 14px- * - Inter 14/1.45, sticky 60px header with backdrop blur- * - accent #ffffff, active nav as filled white pill- */--body.app-demo-body {- background: #0a0a0a;- color: #eee;- font-family: var(--font-body);- font-size: 14px;- line-height: 1.45;-}--/* ---------- Header / nav ---------- */--body.app-demo-body header {- position: sticky;- top: 0;- z-index: 50;- display: flex;- align-items: center;- justify-content: space-between;- gap: 1rem;- height: 60px;- min-height: 60px;- line-height: normal;- padding: 0 1.25rem;- background: rgba(10, 10, 15, 0.85);- backdrop-filter: blur(12px);- -webkit-backdrop-filter: blur(12px);- border-bottom: 1px solid rgba(255, 255, 255, 0.08);- box-shadow: none;-}--body.app-demo-body header h1 {- display: flex;- align-items: center;- gap: 0.55rem;- margin: 0;- font-size: 1rem;- font-weight: 600;- line-height: 1;-}--body.app-demo-body header h1 > a {- display: inline-flex;- align-items: center;- gap: 0.55rem;- color: #eee;- text-decoration: none;- line-height: 1;-}--body.app-demo-body header h1 .wordmark-logo {- width: 28px;- height: 28px;-}--body.app-demo-body header h1 .wordmark-dot {- display: none;-}--body.app-demo-body .features-nav {- display: flex;- align-items: center;- gap: 0.25rem;- flex-wrap: wrap;- margin: 0;-}--body.app-demo-body .features-nav a {- position: static;- display: inline-flex;- align-items: center;- gap: 0.4rem;- padding: 0.45rem 0.85rem;- font: inherit;- font-size: 0.9rem;- font-weight: 500;- color: #c8c8d4;- text-decoration: none;- background: transparent;- border: 1px solid transparent;- border-radius: 10px;- letter-spacing: 0;- text-transform: none;- transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;-}--body.app-demo-body .features-nav a:hover {- color: #fff;- background: rgba(255, 255, 255, 0.04);-}--body.app-demo-body .features-nav a.active,-body.app-demo-body .features-nav a[aria-current='page'] {- color: #000000;- background: #ffffff;- border-color: #ffffff;-}--body.app-demo-body .features-nav a.active::after,-body.app-demo-body .features-nav a[aria-current='page']::after {- content: none;-}--/* Pill action buttons in the header (Save / Make widget / Deploy / Public profile) */-body.app-demo-body .save-to-account-btn,-body.app-demo-body .make-widget-btn,-body.app-demo-body .deploy-onchain-btn,-body.app-demo-body .view-public-profile-btn,-body.app-demo-body .nav-dashboard {- display: inline-flex;- align-items: center;- gap: 0.4rem;- padding: 0.45rem 0.85rem;- font: inherit;- font-size: 0.85rem;- font-weight: 500;- color: #c8c8d4;- background: rgba(255, 255, 255, 0.04);- border: 1px solid rgba(255, 255, 255, 0.1);- border-radius: 10px;- text-decoration: none;- letter-spacing: 0;- text-transform: none;- box-shadow: none;- cursor: pointer;- transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;-}--body.app-demo-body .save-to-account-btn:hover,-body.app-demo-body .make-widget-btn:hover,-body.app-demo-body .deploy-onchain-btn:hover,-body.app-demo-body .view-public-profile-btn:hover,-body.app-demo-body .nav-dashboard:hover {- color: #fff;- background: rgba(255, 255, 255, 0.08);- border-color: rgba(255, 255, 255, 0.2);-}--/* Sign in / Sign out / user menu trigger — ghost-outline like studio */-body.app-demo-body .nav-sign-in,-body.app-demo-body .nav-user {- padding: 0.45rem 0.95rem;- font: inherit;- font-size: 0.85rem;- font-weight: 500;- color: #eee;- background: transparent;- border: 1px solid rgba(255, 255, 255, 0.18);- border-radius: 10px;- box-shadow: none;- letter-spacing: 0;- text-transform: none;-}--body.app-demo-body .nav-sign-in:hover,-body.app-demo-body .nav-user:hover {- background: rgba(255, 255, 255, 0.06);- border-color: rgba(255, 255, 255, 0.3);-}--body.app-demo-body .nav-user::before {- display: none;-}--body.app-demo-body .nav-user-menu {- background: #151515;- border: 1px solid #2b2b2b;- border-radius: 12px;- box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);- padding: 0.35rem;-}--body.app-demo-body .nav-user-menu-item {- border-radius: 8px;- color: #c8c8d4;-}--body.app-demo-body .nav-user-menu-item:hover {- background: rgba(255, 255, 255, 0.06);- color: #fff;-}--body.app-demo-body .nav-user-menu-sep {- background: rgba(255, 255, 255, 0.08);-}--/* ---------- Viewer wrap / viewer container ---------- */--body.app-demo-body .wrap {- min-height: calc(100vh - 60px);- padding: 1rem;- max-width: 1600px;- margin: 0 auto;- box-sizing: border-box;-}--body.app-demo-body .viewer-container {- border-radius: 14px;- overflow: hidden;- border: 1px solid #2b2b2b;- background:- linear-gradient(45deg, #151515 25%, transparent 25%) -8px 0,- linear-gradient(-45deg, #151515 25%, transparent 25%) -8px 0,- linear-gradient(45deg, transparent 75%, #151515 75%),- linear-gradient(-45deg, transparent 75%, #151515 75%),- #0f0f0f;- background-size: 16px 16px;-}--/* ---------- Bottom dropzone bar — turn it into a centered panel ---------- */--body.app-demo-body .dropzone {- position: fixed;- left: 50%;- bottom: 1.25rem;- transform: translateX(-50%);- width: auto;- max-width: calc(100vw - 2.5rem);- display: inline-flex;- align-items: center;- gap: 0.85rem;- padding: 0.65rem 0.85rem;- background: #151515;- border: 1px solid #2b2b2b;- border-radius: 14px;- box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5);- backdrop-filter: blur(8px);- -webkit-backdrop-filter: blur(8px);-}--body.app-demo-body .dropzone .upload-btn label {- display: inline-flex;- align-items: center;- gap: 0.45rem;- padding: 0.5rem 0.95rem;- font: inherit;- font-size: 0.85rem;- font-weight: 500;- color: #000000;- background: #ffffff;- border: 1px solid #ffffff;- border-radius: 10px;- box-shadow: none;- letter-spacing: 0;- text-transform: none;- cursor: pointer;- transition: background 0.15s ease, border-color 0.15s ease;-}--body.app-demo-body .dropzone .upload-btn label:hover {- background: var(--ink);- border-color: var(--ink);-}--body.app-demo-body .dropzone .upload-btn label:active {- background: #d4d4d4;- border-color: #d4d4d4;-}--body.app-demo-body .dropzone .upload-btn svg {- fill: currentColor;-}--body.app-demo-body .drop-hint {- color: rgba(232, 232, 232, 0.55);- font-size: 0.82rem;- font-weight: 400;- letter-spacing: 0;- text-transform: none;-}--body.app-demo-body .create-avatar-btn {- display: inline-flex;- align-items: center;- gap: 0.4rem;- padding: 0.5rem 0.85rem;- font: inherit;- font-size: 0.85rem;- font-weight: 500;- color: #c8c8d4;- background: rgba(255, 255, 255, 0.04);- border: 1px solid rgba(255, 255, 255, 0.12);- border-radius: 10px;- text-decoration: none;- letter-spacing: 0;- text-transform: none;- box-shadow: none;-}--body.app-demo-body .create-avatar-btn:hover {- color: #fff;- background: rgba(255, 255, 255, 0.08);- border-color: rgba(255, 255, 255, 0.22);-}--body.app-demo-body .create-avatar-btn svg {- fill: currentColor;-}--/* ---------- Auth gate aside — re-skin as a studio panel ---------- */--body.app-demo-body .auth-gate {- background: #151515;- border: 1px solid #2b2b2b;- border-radius: 14px;- box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);- padding: 1.25rem 1.4rem 1.4rem;-}--body.app-demo-body .auth-gate__inner {- gap: 0.75rem;-}--body.app-demo-body .auth-gate__eyebrow {- color: #ffffff;- letter-spacing: 0.06em;- text-transform: uppercase;- font-size: 0.72rem;- font-weight: 600;-}--body.app-demo-body .auth-gate__title {- font-family: var(--font-display);- font-size: 1.35rem;- font-weight: 600;- color: #fff;- letter-spacing: -0.01em;- margin: 0;-}--body.app-demo-body .auth-gate__desc {- color: rgba(232, 232, 232, 0.7);- font-size: 0.9rem;- line-height: 1.5;-}--body.app-demo-body .auth-gate__btn {- padding: 0.55rem 1rem;- font: inherit;- font-size: 0.88rem;- font-weight: 500;- color: #eee;- background: transparent;- border: 1px solid rgba(255, 255, 255, 0.18);- border-radius: 10px;- text-decoration: none;- letter-spacing: 0;- text-transform: none;-}--body.app-demo-body .auth-gate__btn:hover {- background: rgba(255, 255, 255, 0.06);- border-color: rgba(255, 255, 255, 0.3);-}--body.app-demo-body .auth-gate__btn--primary {- color: #000000;- background: #ffffff;- border-color: #ffffff;-}--body.app-demo-body .auth-gate__btn--primary:hover {- background: var(--ink);- border-color: var(--ink);-}--body.app-demo-body .auth-gate__perks li {- color: rgba(232, 232, 232, 0.65);- font-size: 0.85rem;-}--body.app-demo-body .auth-gate__perks li::before {- color: #ffffff;-}--/* ---------- Agent presence sidebar — soften into studio aesthetic ---------- */--body.app-demo-body .agent-presence-sidebar {- background: #151515;- border: 1px solid #2b2b2b;- border-radius: 14px;- box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);- overflow: hidden;-}--/* ---------- Onboarding banner ---------- */--body.app-demo-body .agent-onboarding {- background: #151515;- border: 1px solid #2b2b2b;- border-radius: 14px;- box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);-}--body.app-demo-body .agent-onboarding__title {- font-family: var(--font-display);-}--body.app-demo-body .agent-onboarding__btn {- padding: 0.55rem 1rem;- font-size: 0.88rem;- font-weight: 500;- border: 1px solid rgba(255, 255, 255, 0.18);- border-radius: 10px;- background: transparent;- color: #eee;- letter-spacing: 0;- text-transform: none;-}--body.app-demo-body .agent-onboarding__btn--primary {- color: #000000;- background: #ffffff;- border-color: #ffffff;-}--body.app-demo-body .agent-onboarding__btn--primary:hover {- background: var(--ink);- border-color: var(--ink);-}--/* ---------- Demo banner — tiny indicator so the user knows this isn't /app ---------- */--body.app-demo-body::before {- content: 'Studio-skin demo · /app-demo';- position: fixed;- left: 50%;- top: 0.4rem;- transform: translateX(-50%);- z-index: 60;- padding: 0.25rem 0.7rem;- font-size: 0.7rem;- font-weight: 500;- letter-spacing: 0.04em;- text-transform: uppercase;- color: rgba(255, 255, 255, 0.7);- background: rgba(255, 255, 255, 0.15);- border: 1px solid rgba(255, 255, 255, 0.4);- border-radius: 999px;- pointer-events: none;-}--/* ---------- Embed/deploy/explore mode — leave layout choices from style.css alone ---------- */diff --git a/vercel.json b/vercel.jsonindex da4260743..558e622c0 100644--- a/vercel.json+++ b/vercel.json@@ -987,10 +987,6 @@"src": "/avatar-artifact/?","dest": "/avatar-artifact.html"},- {- "src": "/avatar-studio-demo/?",- "dest": "/avatar-studio-demo.html"- },{"src": "/forge/embed/?","dest": "/forge-embed.html"@@ -4192,10 +4188,6 @@"Location": "/app"}},- {- "src": "/app-demo",- "dest": "/app-demo.html"- },{"src": "/embed-demo","dest": "/embed-demo.html"@@ -4326,14 +4318,6 @@"src": "/agent-studio/","dest": "/agent-studio.html"},- {- "src": "/creating",- "dest": "/creating.html"- },- {- "src": "/creating/",- "dest": "/creating.html"- },{"src": "/legal/privacy/?","dest": "/legal/privacy.html"diff --git a/vite.config.js b/vite.config.jsindex 781f7de2c..11e47caca 100644--- a/vite.config.js+++ b/vite.config.js@@ -309,7 +309,6 @@ const appConfig = {app: resolve(__dirname, 'pages/app.html'),proof: resolve(__dirname, 'pages/proof.html'),integrity: resolve(__dirname, 'pages/integrity.html'),- 'app-demo': resolve(__dirname, 'pages/app-demo.html'),'app-next': resolve(__dirname, 'pages/app-next.html'),home: resolve(__dirname, 'pages/home.html'),'what-is': resolve(__dirname, 'pages/what-is.html'),@@ -358,7 +357,6 @@ const appConfig = {'create-selfie': resolve(__dirname, 'pages/create-selfie.html'),'create-prompt': resolve(__dirname, 'pages/create-prompt.html'),genesis: resolve(__dirname, 'pages/genesis.html'),- 'create-character': resolve(__dirname, 'pages/create-character.html'),scan: resolve(__dirname, 'pages/scan.html'),worlds: resolve(__dirname, 'pages/worlds.html'),'avatar-studio': resolve(__dirname, 'pages/avatar-studio.html'),@@ -468,13 +466,11 @@ const appConfig = {galaxy: resolve(__dirname, 'pages/galaxy.html'),genome: resolve(__dirname, 'pages/genome.html'),'ar-page': resolve(__dirname, 'pages/ar.html'),- creating: resolve(__dirname, 'pages/creating.html'),pricing: resolve(__dirname, 'pages/pricing.html'),billing: resolve(__dirname, 'pages/billing.html'),credits: resolve(__dirname, 'pages/credits.html'),payments: resolve(__dirname, 'pages/payments.html'),'x-pricing': resolve(__dirname, 'pages/x-pricing.html'),- 'avatar-studio-demo': resolve(__dirname, 'pages/avatar-studio-demo.html'),'gallery-picker': resolve(__dirname, 'pages/gallery-picker.html'),status: resolve(__dirname, 'pages/status.html'),xr: resolve(__dirname, 'pages/xr.html'),@@ -751,7 +747,6 @@ support: resolve(__dirname, 'pages/support.html'),'/agent-identities': resolve(root, 'pages/agent-identities.html'),'/agent-identities/': resolve(root, 'pages/agent-identities.html'),'/app': resolve(root, 'pages/app.html'),- '/app-demo': resolve(root, 'pages/app-demo.html'),'/widget': resolve(root, 'pages/widget.html'),'/widget/': resolve(root, 'pages/widget.html'),'/login': resolve(root, 'public/login.html'),@@ -772,8 +767,6 @@ support: resolve(__dirname, 'pages/support.html'),'/create/prompt/': resolve(root, 'pages/create-prompt.html'),'/genesis': resolve(root, 'pages/genesis.html'),'/genesis/': resolve(root, 'pages/genesis.html'),- '/create/character': resolve(root, 'pages/create-character.html'),- '/create/character/': resolve(root, 'pages/create-character.html'),'/create/video': resolve(root, 'pages/create/video.html'),'/create/video/': resolve(root, 'pages/create/video.html'),'/extension/privacy': resolve(root, 'pages/extension-privacy.html'),