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
chore(pages): apply the dash-free copy pass across the arm, objects, payments, pitch, pipeline, oracle-docs, rankings, shopper and visualizer pages
nirholas49b3aa53600b
diff --git a/STRUCTURE.md b/STRUCTURE.mdindex f8375ed9e..08720615d 100644--- a/STRUCTURE.md+++ b/STRUCTURE.md@@ -40,7 +40,7 @@ bottom.| Onboarding tier (Simple ⇄ Everything) | Menu tags [public/nav-data.js](public/nav-data.js), runtime + `window.twsTier` [public/nav.js](public/nav.js), styles [public/nav.css](public/nav.css), homepage start path + gate [pages/home.html](pages/home.html) + [public/home.css](public/home.css) | Live | Progressive disclosure for first-time visitors: the platform's ~119 nav destinations and ten deep homepage sections were competing with its core promise, so a new visitor now gets the ~28 links and the sections that carry one journey (make an avatar, build an agent, publish it) with a three-step start path under the hero. Everything else (the whole Launch menu, trading, token economy, Oracle, pay-per-call, dev platform, the stack) is tagged `tier: 'advanced'` / `data-tier="advanced"` and revealed by one control. Mechanism is one `<html>` class (`tws-lite`) over one localStorage key (`tws:tier`), applied pre-paint and never re-rendered (the nav binds document-level listeners once), with the two surfaces synced through a `tws:tier-change` event. Deep links into a gated section reveal it for that visit. Nothing is removed, only deferred. Docs: [docs/onboarding-tier.md](docs/onboarding-tier.md). Tests: [tests/onboarding-tier.test.js](tests/onboarding-tier.test.js) || Tour Builder (no-code playground) | [pages/tour-builder.html](pages/tour-builder.html) `→ /tour-builder` | Live | Point-and-click editor over a demo storefront: pick avatar, add stops, preview the real tour, export curriculum + Shopify snippets. Also ships **Templates** — ready-made tours (Sperax's DeFi protocol tour is the first) that load straight into the editor. Logic: [public/tour-builder/builder.js](public/tour-builder/builder.js), presets: [public/tour-builder/presets/](public/tour-builder/presets). Sperax template doc: [docs/tutorials/sperax-tour.md](docs/tutorials/sperax-tour.md) || Avatar builder (full app) | [character-studio/](character-studio) | Fork of [m3-org/CharacterStudio](https://github.com/M3-org/CharacterStudio), MIT, see [character-studio/LICENSE](character-studio/LICENSE) | Web-first character creator |-| Scene Studio (3D scene editor) | [src/scene-studio/](src/scene-studio) `→ /scene`: boot [main.js](src/scene-studio/main.js), shared GLB loader [loader.js](src/scene-studio/loader.js), action bar [actions.js](src/scene-studio/actions.js), first-run overlay [empty-state.js](src/scene-studio/empty-state.js), gizmo labels [toolbar-a11y.js](src/scene-studio/toolbar-a11y.js), chrome [studio.css](src/scene-studio/studio.css) | Vendored [mrdoob/three.js](https://github.com/mrdoob/three.js) r184 editor, MIT, see [src/scene-studio/vendor/README.md](src/scene-studio/vendor/README.md) | Import GLBs, compose scenes, edit materials/lights, export. The sibling modules never touch `vendor/**`: they add the Import-from-Forge / Export-presets / Share bar (which docks beside the resizable sidebar rather than over its tabs), the empty-state card a brand-new scene needs, accessible names plus `aria-pressed` on the icon-only translate/rotate/scale buttons, and toast-based failures in place of native `alert()`/`prompt()`. Pinned under the nav by `--nav-h` (the real injected-header height), not `--header-h`. Deep links: `?model=<glb_url>`, `?handoff=1` from `/pose`, `#file=<url>`. Docs: [docs/scene-studio.md](docs/scene-studio.md), [src/scene-studio/README.md](src/scene-studio/README.md). Tests: [tests/scene-studio-actions.test.js](tests/scene-studio-actions.test.js) |+| Scene Studio (3D scene editor) | [src/scene-studio/](src/scene-studio) `→ /scene`: boot [main.js](src/scene-studio/main.js), shared GLB loader [loader.js](src/scene-studio/loader.js), action bar [actions.js](src/scene-studio/actions.js), first-run overlay [empty-state.js](src/scene-studio/empty-state.js), icon-button labels [toolbar-a11y.js](src/scene-studio/toolbar-a11y.js), chrome [studio.css](src/scene-studio/studio.css) | Vendored [mrdoob/three.js](https://github.com/mrdoob/three.js) r184 editor, MIT, see [src/scene-studio/vendor/README.md](src/scene-studio/vendor/README.md) | Import GLBs, compose scenes, edit materials/lights, export. The sibling modules never touch `vendor/**`: they add the Import-from-Forge / Export-presets / Share bar (which docks beside the resizable sidebar rather than over its tabs), the empty-state card a brand-new scene needs, accessible names plus `aria-pressed` on the icon-only translate/rotate/scale buttons and names on the animation timeline's play/pause/stop transport, and toast-based failures in place of native `alert()`/`prompt()`. Below 600px the sidebar dock drops the vendored `.TabbedPanel` 335px floor so it fits a 320px screen instead of hanging 15px off it, and the empty-state card starts below the action bar and caps itself at the viewport region. Pinned under the nav by `--nav-h` (the real injected-header height), not `--header-h`. Deep links: `?model=<glb_url>`, `?handoff=1` from `/pose`, `#file=<url>`. Docs: [docs/scene-studio.md](docs/scene-studio.md), [src/scene-studio/README.md](src/scene-studio/README.md). Tests: [tests/scene-studio-actions.test.js](tests/scene-studio-actions.test.js) || Diorama (text → 3D world) | [src/diorama/](src/diorama) `→ /diorama` | In-repo · backend [api/diorama.js](api/diorama.js) | One sentence → an explorable 3D diorama: Claude composes the scene, each object is forged to a real GLB, assembled live, saved to a public gallery + shareable permalink || Scene Composer (dress an avatar) | [pages/compose.html](pages/compose.html) `→ /compose` + [src/scene-compose.js](src/scene-compose.js) | Live | Forge props from text and parent them to a rigged avatar's skeleton bones, then Export GLB or save them back onto the avatar record as `appearance.attachments`. Bones are grouped into readable regions and stripped of rig prefixes; transform gizmos, 50-deep undo, grid snap, camera presets. Feeds off [api/forge.js](api/forge.js), [api/forge-gallery.js](api/forge-gallery.js) (own creations, falling back to the community showcase for a first-time visitor), [api/explore.js](api/explore.js) `?source=avatar&only3d=1` for the avatar picker, and `PATCH /api/avatars/:id` for Save outfit. Below 900px the scene panel becomes a drawer. Docs: [docs/compose.md](docs/compose.md) || Creator portfolio (human profile) | [pages/profile.html](pages/profile.html) `→ /u/:username` (self-view `/profile`), backend [api/users/[username].js](api/users/%5Busername%5D.js) + paginated [api/users/[username]/creations.js](api/users/%5Busername%5D/creations.js) `→ /api/users/:username/creations` | Live | Every three.ws user's public portfolio: avatars, agents, widgets, skills, plugins, coins, memories, items for sale, and (added 2026-07-12, extended 2026-07-23) a **Creations** tab merging forged 3D models + Scene Studio worlds + Material Studio restyles — real, live, spinning `<model-viewer>` cards, cursor-paginated for 100+ items. `/forge`, `/diorama`, and `/restyle` all stay anonymous by default (no login required); a signed-in creator's `user_id` is attached to `forge_creations`/`dioramas` rows at generation/save time (migration [api/_lib/migrations/20260712010000_creator_portfolio_user_ids.sql](api/_lib/migrations/20260712010000_creator_portfolio_user_ids.sql)) and to a new `material_restyles` row per AI restyle or colorway variant (migration [api/_lib/migrations/20260723140000_material_restyles.sql](api/_lib/migrations/20260723140000_material_restyles.sql), store [api/_lib/material-restyle-store.js](api/_lib/material-restyle-store.js)) so those creations surface here. The same opt-in attribution now links back from the diorama viewer HUD, the diorama gallery cards, and the forge result bar ("by @user") whenever a creation's creator is known. `/@:handle` ([pages/handle.html](pages/handle.html)) is a separate, narrower agent-embed page — not the human portfolio. |@@ -231,6 +231,7 @@ bottom.| Never sell 100% of a winner (moon-bag policy) | rule [workers/agent-sniper/exit-logic.js](workers/agent-sniper/exit-logic.js) (`moonbagExitFraction`, `moonbagAlways`), retained-bag booking [workers/agent-sniper/executor.js](workers/agent-sniper/executor.js), position fields [api/_lib/migrations/20260725100000_sniper_moonbag_always.sql](api/_lib/migrations/20260725100000_sniper_moonbag_always.sql), board [api/sniper/experiments.js](api/sniper/experiments.js) + [src/sniper-experiments.js](src/sniper-experiments.js) `→ /sniper/experiments` | Live | Fleet-wide owner rule: a terminal exit that is IN PROFIT sells down to the moon-bag floor (default 15%) instead of to zero, and the retained tokens ride indefinitely. Once the cost basis is back the remainder is free, so a bag that goes to zero costs nothing and a bag that runs is the whole upside; selling the last slice for a rounding error gives that up. Applies with or without the proactive 2x ladder. A loss exit with the stake still at risk is still a FULL exit and the hard stop-loss is never overridden. The position still books `closed`, so realized P&L and the `max_concurrent_positions` slot are unaffected and a held bag can never stop an arm trading; only the tokens stay behind (`moonbag_base_amount`). Per-strategy opt-out `moonbag_always = false`. Tests: [tests/sniper-laddered-exit.test.js](tests/sniper-laddered-exit.test.js), [tests/trading-experiment-e2e.test.js](tests/trading-experiment-e2e.test.js). See [docs/trading-experiment.md](docs/trading-experiment.md) || Autonomous Trading hub (front door) | [pages/trading.html](pages/trading.html) `→ /trading` + [src/trading-hub.js](src/trading-hub.js), pure formatters [src/trading-hub-format.js](src/trading-hub-format.js), surface + doc directory [src/trading-hub-data.js](src/trading-hub-data.js), styles [src/trading-hub.css](src/trading-hub.css) | Live | One entry point for a trading system that had grown to ~20 pages with no front door. Live fleet vitals from `GET /api/sniper/status` (mode, armed strategies, open positions, feed health, funding, uptime), the agent scoreboard from `GET /api/sniper/leaderboard` (realized P&L only, closed trades only, with cumulative sparkline), the five-gate entry-to-exit explainer, and directories of every trading surface and doc. Feed health is reported separately from process health because a beating worker with a silent feed reads as green while seeing nothing. Directory is data, so [tests/trading-hub.test.js](tests/trading-hub.test.js) asserts every link resolves against `data/pages.json` and the docs tree. Docs: [docs/trading-hub.md](docs/trading-hub.md), tutorial [docs/tutorials/read-the-trading-fleet.md](docs/tutorials/read-the-trading-fleet.md) || Sniper Experiments (rules vs LLM A/B fleet) | [pages/sniper-experiments.html](pages/sniper-experiments.html) + [src/sniper-experiments.js](src/sniper-experiments.js) `→ /sniper/experiments`, aggregate [api/sniper/experiments.js](api/sniper/experiments.js), LLM judge [workers/agent-sniper/llm-judge.js](workers/agent-sniper/llm-judge.js), fleet seeding [scripts/seed-sniper-experiments.mjs](scripts/seed-sniper-experiments.mjs) | Live | The sniper fleet runs labeled rule-set variants side by side (strict shields, oracle-gated, and `decision_mode=llm` arms judged per-launch by Grok / Claude / OpenRouter auto with no shields), all behind the same safety rails. The page is the live scoreboard of which entry conditions actually make money; real on-chain fills only. |+| Arm your agent (Oracle conviction on autopilot) | [pages/arm.html](pages/arm.html) + [src/arm.js](src/arm.js) `→ /oracle/arm` (also `/arm`), config + graded ledger API [api/oracle/watch.js](api/oracle/watch.js) `→ /api/oracle/watch`, alert test [api/oracle/test-alert.js](api/oracle/test-alert.js), live stream [api/oracle/feed.js](api/oracle/feed.js), proof of edge [api/oracle/backtest.js](api/oracle/backtest.js) | Live | The rules screen that turns an Oracle score into an agent that acts. Four steps: the conviction floor (Prime / Strong+ / Lean+, each showing its real 30-day win rate, average peak and 3x count for that exact bar), position sizing with hard daily and open-position caps, an optional personal Telegram alert with a send-test button, and simulate-or-live arming. Beside the form is a live preview of every coin clearing the rules as they stand, updated every 20 seconds, with the size the agent would commit to each: tighten the bar and the list shrinks in front of you. The agent spends only from its own custodial Solana wallet, whose balance and remaining trade runway sit in the control bar, and every action it takes is graded against the outcome in the ledger below. The conviction preview and edge readout are public endpoints, so a signed-out visitor sees the product working before being asked for an account. Arming in live mode is gated on the shared risk acknowledgement ([src/shared/risk-ack.js](src/shared/risk-ack.js)). || Oracle Lab (the conviction model, published) | [pages/oracle-lab.html](pages/oracle-lab.html) + [src/oracle-lab.js](src/oracle-lab.js) `→ /oracle-lab`, model API [api/oracle/model.js](api/oracle/model.js) `→ /api/oracle/model`, SDK [packages/oracle-model/](packages/oracle-model) `→ @three-ws/oracle-model` | Live | The glass box over the Oracle. Publishes the scoring model itself, not a summary of it: every bucket weight with the number of labeled launches behind it and what happened to them, the held-out reliability curve for each tier claim, the version history of every refit INCLUDING the candidates the promotion gate refused and why, and a scorer that runs the real weights in the visitor's browser. The model is a lookup table (~32KB), so `@three-ws/oracle-model` downloads it once and reproduces any score offline with no key, no rate limit and no telemetry; `verify()` re-measures our published AUC/Brier/reliability against a caller's own labeled outcomes, and `diff()` shows every weight that moved between two versions. `?view=registry` and `?view=diff&from=&to=` serve the same data server-side. Docs: [docs/oracle-model.md](docs/oracle-model.md) `→ /docs/oracle-model`. Tests: [packages/oracle-model/test/](packages/oracle-model/test) (23), [tests/oracle/fit.test.js](tests/oracle/fit.test.js) (43) || Oracle conviction model (three heads, learned on a clock) | Fitter [api/_lib/oracle/fit.js](api/_lib/oracle/fit.js), scorer [api/_lib/oracle/conviction.js](api/_lib/oracle/conviction.js), DB-backed weights [api/_lib/oracle/model-store.js](api/_lib/oracle/model-store.js), learning loop [api/cron/oracle-refit.js](api/cron/oracle-refit.js) (every 6h), CLI [scripts/oracle-fit.mjs](scripts/oracle-fit.mjs) | Live, v3 | v2 ranked "spikes 3x or graduates", so a coin that ran 3x and went to zero counted as a hit: Prime-tier coins hit that target 58.2% of the time and rugged 53.0% of the time. v3 fits three heads over one design matrix (`win` = ran and the holder kept it, `rug` = holder down more than half, `moon` = ran at all) and anchors the public score on `win`, publishing `giveBackRisk = 1 - P(win)/P(moon)` beside it: given it runs, how often a coin like this hands the run straight back. Weights moved out of the container image into `oracle_model_versions`, so the refit cron can promote a better model between deploys; it was frozen at its 2026-08-09 fit for nineteen days because nothing but a human could refit it. Every candidate faces a promotion gate (complete fit, absolute AUC floor, every tier band still earning its claim, no feature-set collapse, a material gain over the incumbent, no regression on the other heads) and is stored either way with the reason. Thin buckets are shrunk toward zero by `n/(n+200)` so 34 samples cannot reverse a verdict. Docs: [docs/oracle-model.md](docs/oracle-model.md) || Price-independent outcome labels | [workers/agent-sniper/intel/learn.js](workers/agent-sniper/intel/learn.js) `deriveOutcome`, migrations [20260828170000](api/_lib/migrations/20260828170000_oracle_price_independent_labels.sql) + [20260828190000](api/_lib/migrations/20260828190000_oracle_recompute_rug_flag.sql) | Live | The rug flag was a readout of the SOL price. It was decided by "market cap under $3,000", and an empty pump.fun bonding curve is worth a fixed `30 * 1e9 / 1073000191 = 27.958993 SOL`, so the test amounted to asking whether SOL was above about $107.30 that day: of 206,428 coins labeled rugged, 206,419 were under $3,000; of 25,180 labeled survivors, the cheapest was exactly $3,000. Same dead curves, sorted by a price feed. Labels now use `retained = last_mc/ath_mc` and `hold_multiple = ath_multiple * retained`, both taken from the same reading so the price cancels; the real rug rate is 11.4%, not 91%, and it holds within two points from 60 minutes to three days. `label_version` marks which rule judged a row and the fitter trains on version 2 only. The training-set upsert also stopped being `do nothing`, which had made a written label permanently uncorrectable. |diff --git a/docs/api-reference.md b/docs/api-reference.mdindex 7d0cc5224..0d2aa3e0c 100644--- a/docs/api-reference.md+++ b/docs/api-reference.md@@ -3650,6 +3650,99 @@ curl -s 'https://three.ws/api/v1/pump/whales?mint=FeMbDoX7R1Psc4GEcvJdsbNbZA3bfz---+## Recording Pipeline API++One call that answers "is the data loop actually running?" for the closed loop+behind three.ws's pump.fun signal: the always-on launch recorder, signal intel,+ground-truth outcomes, Oracle conviction, the wallet reputation graph, trained+per-signal weights, and the agents trading on the result. Each link lives in a+different table, so checking it by hand otherwise means six queries across six+surfaces. The board that renders this is [three.ws/pipeline](https://three.ws/pipeline).++### Pipeline health++```+GET /api/pipeline?network=mainnet|devnet+```++No auth, IP rate-limited, `cache-control: public, max-age=8`. `network`+defaults to `mainnet`; anything that is not `devnet` is read as `mainnet`.++```json+{+ "ok": true,+ "network": "mainnet",+ "health": "flowing",+ "summary": "Pipeline flowing on mainnet: 1473 launches recorded in the last hour, ...",+ "next_action": { "step": "running", "label": "Loop is running end to end", "detail": "..." },+ "stages": {+ "recorder": { "state": "live", "reason": null, "mode": "live", "network": "mainnet",+ "feedLive": true, "heartbeatAgeMs": 20916, "lastEventAgeMs": 3829, "reconnects": 0 },+ "intel": { "total": 133507, "observed_24h": 29837, "observed_1h": 1473, "avg_quality": 21,+ "healthy": 1613, "mixed": 6321, "risky": 21903, "smart_money_touched": 65 },+ "outcomes": { "labeled": 131750, "graduated": 4389, "rugged": 22378, "pumped": 10184, "labeled_24h": 31916 },+ "oracle": { "scored_total": 888109, "scored_24h": 14376, "prime": 803, "strong": 1043, "open_actions": 26 },+ "reputation": { "wallets": 746777, "smart_money": 2272 },+ "learning": { "sample_size": 20000, "trained_at": "2026-09-08T16:30:27.974Z",+ "weights": [{ "signal": "organic_score", "weight": 0.1812 }] },+ "trading": { "strategies_armed": 11, "open_positions": 0, "snipes_24h": 26, "trades_24h": 4 }+ },+ "docs": "https://three.ws/pipeline",+ "t": 1788885583351+}+```++`health` is one of:++| Value | Meaning |+| --- | --- |+| `flowing` | the recorder is live and launches arrived in the last hour |+| `recording` | the recorder is live but nothing has arrived in the last hour |+| `idle` | the recorder is not live, so nothing downstream can advance |++`recorder.state` is the operational truth behind that word: `live`, `degraded`+(the worker beats but its feed is silent or disconnected), `down` (the heartbeat+is stale), `offline` (never started, or recording a different network), or+`unknown` (the status store was unreachable). Every non-live state carries a+plain-language `reason`. **The recorder is network-scoped**: the worker writes a+single heartbeat row for whichever network it records, so asking about the other+network answers `offline` with `reason: "recording mainnet, not devnet"` rather+than lending one network's liveness to the other.++`next_action` is the single most useful move given that state, ordered by where+the loop is actually blocked, so an agent can act on it without interpreting the+numbers:++| `step` | Needs an operator | Meaning |+| --- | --- | --- |+| `deploy_recorder` | yes | no heartbeat; `command` is `npm run deploy:sniper` |+| `check_feed` | yes | the worker is up but its pump.fun feed went silent |+| `accumulate` | no | recording; fewer than 50 outcomes labeled, the learner is waiting |+| `await_training` | no | enough labels, waiting on the next training pass |+| `arm_agents` | yes | trained and scored, but no strategy armed; `command` is `POST /api/sniper/strategy` |+| `running` | no | recording, scoring, learning, and trading are all active |++Every stage is queried independently and degrades on its own: a table that does+not exist yet on a fresh database, or a worker that never booted, reports an+honest zero or `offline` for that stage instead of failing the whole response.+There is no `5xx` for "nothing recorded yet."++**Example**++```bash+curl -s 'https://three.ws/api/pipeline?network=mainnet' | jq '{health, next: .next_action.step}'+curl -s 'https://three.ws/api/pipeline?network=devnet' | jq '.stages.recorder'+```++**Errors**++| Status | Code | Meaning |+| ------ | -------------- | --------------------------------- |+| `405` | `method_not_allowed` | anything but `GET` or `OPTIONS` |+| `429` | `rate_limited` | over the per-IP limit |++---+## Trader Passport APIA trader's daily on-chain score attestation (`threews.tradescore.v1`), served as adiff --git a/docs/payment-sessions.md b/docs/payment-sessions.mdindex f0d03298e..5346919f9 100644--- a/docs/payment-sessions.md+++ b/docs/payment-sessions.md@@ -36,6 +36,55 @@ Base URL: `https://three.ws`(`/api/cron/payment-session-sweep`, every 5 minutes) does the same forsessions that pass their expiry while still active.+## The dashboard at /payments++Everything below is available in the browser at+[three.ws/payments](https://three.ws/payments), which is the fastest way to+create a first session and watch it spend. The page lists every session you+own with its budget bar, remaining balance, expiry countdown, host allowlist+and per-transaction cap, and expanding a card loads that session's last ten+executions with a Solscan link per settled payment. Press `N` anywhere on the+page to open the create dialog.++Two things the dashboard does that the API does not do for you:++- **The token is shown exactly once**, right after creation, with a copy button+ and a ready-made `PAYMENT_SESSION_TOKEN=` line. Only its HMAC hash is stored,+ so there is no endpoint that can hand it back later. Copy it before closing.+- **Cancel and refund** is one button per active session, and it tells you how+ much went back to your credits.++### Using a session from an MCP client++Each session card carries a **Copy MCP config** button that emits the block+below for [`@three-ws/agentcore-payments-mcp`](https://www.npmjs.com/package/@three-ws/agentcore-payments-mcp),+which exposes the session tools to any MCP client:++```json+{+ "mcpServers": {+ "three-ws-payments": {+ "command": "npx",+ "args": ["-y", "@three-ws/agentcore-payments-mcp"],+ "env": {+ "THREE_WS_SESSION": "${THREE_WS_SESSION}",+ "PAYMENT_SESSION_TOKEN": "${PAYMENT_SESSION_TOKEN}"+ }+ }+ }+}+```++The config references the two environment variables rather than inlining either+secret, so the file itself never carries a credential. Export both before+starting the server:++- `PAYMENT_SESSION_TOKEN`: the `pss_...` token shown once when the session was+ created. Backs the `pay_with_session` tool when no inline token is passed.+- `THREE_WS_SESSION`: the **value** of your `__Host-sid` browser cookie, with no+ `__Host-sid=` name prefix. Only the session-management tools (create, list,+ cancel) need it; paying does not.+## AuthenticationThe session-management and credits endpoints accept either credential:diff --git a/pages/arm.html b/pages/arm.htmlindex 1e4c676cc..2c608a5e3 100644--- a/pages/arm.html+++ b/pages/arm.html@@ -205,6 +205,8 @@.qual-head .qh-count { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }.qual-head .qh-meta { font: 600 10px/1 var(--mono); color: var(--faint); white-space: nowrap; }.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); color: var(--up); box-shadow: 0 0 0 0 color-mix(in srgb, var(--up) 60%, transparent); animation: pulse 1.9s infinite; flex: none; }+ /* The dot claims the stream is live, so it must stop claiming it when the feed stops answering. */+ .live-dot.stale { background: var(--muted); color: var(--muted); box-shadow: none; animation: none; }.qual-sub { font-size: 12px; color: var(--muted); margin: 0 0 12px; }.qrow { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(255,255,255,0.05); }.qrow:first-child { border-top: none; }@@ -245,7 +247,7 @@<meta property="og:image:alt" content="Arm your agent: automate Oracle conviction, three.ws"><meta name="twitter:site" content="@trythreews"><meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Arm+your+agent%3A+automate+Oracle+conviction&d=Configure+your+3D+agent+to+trade+Oracle+conviction+automatically%3A+set+the+minimum+score%2C+position+size%2C+daily+and+open-position+caps%2C+narrative+filters+and&p=%2Foracle%2Farm">- <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Arm your agent: automate Oracle conviction","description":"Configure your 3D agent to trade Oracle conviction automatically: set the minimum score, position size, daily and open-position caps, narrative filters and Telegram alerts, then arm it in simulate or live mode. Every action is graded against the outcome.","url":"https://three.ws/oracle/arm","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=crypto&t=Arm+your+agent+%E2%80%94+automate+Oracle+conviction&d=Configure+your+3D+agent+to+trade+Oracle+conviction+automatically%3A+set+the+minimum+score%2C+position+size%2C+daily+and+open-position+caps%2C+narrative+filters+and+Tele&p=%2Foracle%2Farm"},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://three.ws/"},{"@type":"ListItem","position":2,"name":"Oracle","item":"https://three.ws/oracle"},{"@type":"ListItem","position":3,"name":"Arm","item":"https://three.ws/oracle/arm"}]}]}</script>+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Arm your agent: automate Oracle conviction","description":"Configure your 3D agent to trade Oracle conviction automatically: set the minimum score, position size, daily and open-position caps, narrative filters and Telegram alerts, then arm it in simulate or live mode. Every action is graded against the outcome.","url":"https://three.ws/oracle/arm","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=crypto&t=Arm+your+agent%3A+automate+Oracle+conviction&d=Configure+your+3D+agent+to+trade+Oracle+conviction+automatically%3A+set+the+minimum+score%2C+position+size%2C+daily+and+open-position+caps%2C+narrative+filters+and+Tele&p=%2Foracle%2Farm"},{"@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://three.ws/"},{"@type":"ListItem","position":2,"name":"Oracle","item":"https://three.ws/oracle"},{"@type":"ListItem","position":3,"name":"Arm","item":"https://three.ws/oracle/arm"}]}]}</script></head><body><header><div id="nav-container"></div></header>@@ -379,7 +381,7 @@<div class="col-side"><div class="card" id="qualCard"><div class="qual-head">- <div class="qh-count"><span class="live-dot"></span><span id="qualCount" data-i18n="arm.reading_the_conviction_stream">Reading the conviction stream…</span></div>+ <div class="qh-count"><span class="live-dot" id="liveDot"></span><span id="qualCount" data-i18n="arm.reading_the_conviction_stream">Reading the conviction stream…</span></div><div class="qh-meta" id="qualMeta"></div></div><p class="qual-sub" data-i18n="arm.live_coins_that_clear_every_rule_you">Live coins that clear every rule you've set — exactly what your agent would act on right now. Tighten or loosen the rules and watch this list change.</p>@@ -410,7 +412,7 @@</div><div class="foot">- Conviction is a probability, not a promise — nothing here is financial advice. Your agent only ever spends from its own custodial wallet, never your personal one, and never beyond the daily and per-trade caps you set above. Trade small, especially early.+ Conviction is a probability, not a promise, and nothing here is financial advice. Your agent only ever spends from its own custodial wallet, never your personal one, and never beyond the daily and per-trade caps you set. Trade small, especially early.</div></main>diff --git a/pages/objects.html b/pages/objects.htmlindex c8a6cb97e..3c14125c7 100644--- a/pages/objects.html+++ b/pages/objects.html@@ -103,15 +103,27 @@position: relative; display: block; aspect-ratio: 1 / 1;background: radial-gradient(120% 120% at 50% 20%, rgba(255,255,255,.05), rgba(0,0,0,.25));}- .ch-card-mv { width: 100%; height: 100%; --poster-color: transparent; background: transparent; }+ .ch-card-img {+ position: absolute; inset: 0; display: block; width: 100%; height: 100%;+ object-fit: contain; background: transparent;+ transition: opacity var(--duration-normal, .2s) var(--ease-standard);+ }+ .ch-card-img--blank { background: repeating-linear-gradient(45deg, rgba(255,255,255,.03) 0 8px, transparent 8px 16px); }+ /* The live viewer sits on top of the still and the still fades out only+ once the GLB has actually painted, so an upgrade never flashes empty. */+ .ch-card-thumb.is-live .ch-card-img { opacity: 0; }+ .ch-card-mv {+ position: absolute; inset: 0; z-index: 1;+ width: 100%; height: 100%; --poster-color: transparent; background: transparent;+ }.ch-card-pill {- position: absolute; top: 10px; left: 10px; z-index: 2;+ position: absolute; top: 10px; left: 10px; z-index: 3;font-family: var(--font-mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase;padding: 3px 8px; border-radius: 999px; color: var(--ink);background: rgba(0,0,0,.5); border: 1px solid var(--stroke-strong); backdrop-filter: blur(6px);}.ch-card-play {- position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;+ position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;font-size: 30px; color: rgba(255,255,255,.0); transition: color var(--duration-fast) var(--ease-standard); pointer-events: none;}.ch-card-thumb:hover .ch-card-play { color: rgba(255,255,255,.85); }@@ -150,9 +162,41 @@.ch-hbtn--secondary { background: var(--surface-1); color: var(--ink); }.ch-hbtn--secondary:hover { border-color: var(--stroke-strong); }+ .ch-more { display: flex; justify-content: center; padding: 28px 0 8px; }+ .ch-more-btn {+ padding: 11px 22px; border-radius: var(--radius-md); border: 1px solid var(--stroke);+ background: var(--surface-1); color: var(--ink); font-size: 14px; font-weight: 600;+ cursor: pointer; min-height: 44px;+ transition: border-color var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard);+ }+ .ch-more-btn:hover { border-color: var(--stroke-strong); background: var(--surface-2); }+ .ch-more-btn:active { transform: translateY(1px); }++ /* Keyboard focus has to be visible on every control this page owns:+ none of these classes inherit a focus ring from style.css. */+ .ch-chip:focus-visible,+ .ch-btn:focus-visible,+ .ch-hbtn:focus-visible,+ .ch-more-btn:focus-visible,+ .ch-card-thumb:focus-visible,+ .ch-search:focus-visible,+ .ch-sort:focus-visible {+ outline: 2px solid var(--accent);+ outline-offset: 2px;+ }+ .ch-card-thumb:focus-visible { outline-offset: -2px; }++ @media (prefers-reduced-motion: reduce) {+ .ch-card, .ch-card-img, .ch-chip, .ch-btn { transition: none; }+ .ch-skeleton { animation: none; }+ }+@media (max-width: 560px) {.ch-grid, .ch-skeleton-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }.ch-card-actions { flex-wrap: wrap; }+ /* Three side-by-side pills fall under the 24px touch minimum on a+ 150px card, so each action gets a full-width row instead. */+ .ch-card-actions .ch-btn { flex: 1 1 100%; padding: 9px 8px; }}</style>@@ -211,6 +255,10 @@<div data-role="grid" class="ch-grid" hidden></div>+ <div data-role="more" class="ch-more" hidden>+ <button type="button" class="ch-more-btn" data-role="load-more" data-i18n="objects.load_more">Load more</button>+ </div>+<div data-role="empty" class="ch-state" hidden><div class="ch-state-icon">📦</div><h2 data-i18n="objects.object_library_coming_online">Object library coming online</h2>diff --git a/pages/oracle-docs.html b/pages/oracle-docs.htmlindex d89ec407a..c721416ba 100644--- a/pages/oracle-docs.html+++ b/pages/oracle-docs.html@@ -216,8 +216,10 @@/* tier ladder */.ladder { display: flex; flex-direction: column; gap: 7px; }- .ladder .rung { display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 14px; }+ .ladder .rung { display: grid; grid-template-columns: 86px 1fr auto; align-items: center; gap: 4px 14px; }.ladder .bar { height: 30px; border-radius: 7px; display: flex; align-items: center; padding: 0 12px; font-weight: 700; font-size: 13px; color: #06070d; white-space: nowrap; overflow: hidden; }+ .ladder .obs { grid-column: 2 / -1; font-size: 12.5px; color: var(--muted); padding-left: 2px; }+ .ladder .rung + .rung { margin-top: 5px; }.ladder .rng { font-family: var(--mono); font-size: 12px; color: var(--muted); }.ladder .nm { font-weight: 700; }@@ -511,11 +513,11 @@ score = min(score, 45 if rugger_creator)<div class="diagram"><div class="cap">Conviction tiers: score → tier → measured odds</div><div class="ladder">- <div class="rung"><span class="nm" style="color:#eceff5">Prime</span><div class="bar" data-tier="prime" data-i18n-owned="1" style="background:#eceff5; width:100%">86-100 · claims 45% · observed 45.7% over 300</div><span class="rng">≥ 86</span></div>- <div class="rung"><span class="nm" style="color:#cdd2e0">Strong</span><div class="bar" data-tier="strong" data-i18n-owned="1" style="background:#cdd2e0; width:84%">72-85 · claims 25% · observed 29.2% over 1,133</div><span class="rng">≥ 72</span></div>- <div class="rung"><span class="nm" style="color:#9aa0b0">Lean</span><div class="bar" data-tier="lean" data-i18n-owned="1" style="background:#9aa0b0; width:70%; color:#06070d">56-71 · claims 12% · observed 20.1% over 3,465</div><span class="rng">≥ 56</span></div>- <div class="rung"><span class="nm" style="color:#8a92a8">Watch</span><div class="bar" data-tier="watch" data-i18n-owned="1" style="background:#8a92a8; width:58%; color:#06070d">34-55 · claims 5% · observed 7.2% over 9,572</div><span class="rng">≥ 34</span></div>- <div class="rung"><span class="nm" style="color:#6c7280">Avoid</span><div class="bar" data-tier="avoid" data-i18n-owned="1" style="background:#6c7280; width:46%">0-33 · claims nothing · observed 1.4% over 85,530</div><span class="rng">≥ 0</span></div>+ <div class="rung"><span class="nm" style="color:#eceff5">Prime</span><div class="bar" data-tier="prime" data-i18n-owned="1" style="background:#eceff5; width:100%">86-100</div><span class="rng">≥ 86</span><div class="obs" data-obs="prime" data-i18n-owned="1">Claims 45% · holdout observed 45.7% good over 300 launches</div></div>+ <div class="rung"><span class="nm" style="color:#cdd2e0">Strong</span><div class="bar" data-tier="strong" data-i18n-owned="1" style="background:#cdd2e0; width:84%">72-85</div><span class="rng">≥ 72</span><div class="obs" data-obs="strong" data-i18n-owned="1">Claims 25% · holdout observed 29.2% good over 1,133 launches</div></div>+ <div class="rung"><span class="nm" style="color:#9aa0b0">Lean</span><div class="bar" data-tier="lean" data-i18n-owned="1" style="background:#9aa0b0; width:70%">56-71</div><span class="rng">≥ 56</span><div class="obs" data-obs="lean" data-i18n-owned="1">Claims 12% · holdout observed 20.1% good over 3,465 launches</div></div>+ <div class="rung"><span class="nm" style="color:#8a92a8">Watch</span><div class="bar" data-tier="watch" data-i18n-owned="1" style="background:#8a92a8; width:58%">34-55</div><span class="rng">≥ 34</span><div class="obs" data-obs="watch" data-i18n-owned="1">Claims 5% · holdout observed 7.2% good over 9,572 launches</div></div>+ <div class="rung"><span class="nm" style="color:#6c7280">Avoid</span><div class="bar" data-tier="avoid" data-i18n-owned="1" style="background:#6c7280; width:46%">0-33</div><span class="rng">≥ 0</span><div class="obs" data-obs="avoid" data-i18n-owned="1">Claims nothing · holdout observed 1.4% good over 85,530 launches</div></div></div></div><p>Alongside the score, the engine emits <b>badges</b> (e.g. <code class="t">smart-money</code>, <code class="t">structure-flag</code>, <code class="t">pedigree-flag</code>, <code class="t">news</code>, <code class="t">momentum</code>, <code class="t">thin-data</code>, <code class="t">prime</code>) for fast visual scanning, and an ordered list of <b>reasons</b>: strongest evidence first, each quoting the observed outcome rate for the bucket it hit ("organic demand ≥0.8: 60% of similar launches worked"). The engine cites its training data instead of asserting adjectives.</p>@@ -982,13 +984,15 @@ moon = graduated ∨ ATH ≥ 3× <span class="c">// it rfor (const bar of document.querySelectorAll('.ladder .bar[data-tier]')) {const tier = bar.dataset.tier;const rung = rungs.get(tier);+ const obs = document.querySelector('.ladder .obs[data-obs="' + tier + '"]');const range = TIER_RANGE[tier] || '';- if (!rung) { bar.textContent = range + ' · not published in this fit'; continue; }- const claims = rung.claims ? 'claims ' + Math.round(rung.claims * 100) + '%' : 'claims nothing';- const observed = rung.observed != null- ? ' · observed ' + pct(rung.observed) + ' over ' + num(rung.samples)- : ' · not enough resolved launches yet';- bar.textContent = range + ' · ' + claims + observed;+ bar.textContent = range;+ if (!obs) continue;+ if (!rung) { obs.textContent = 'Not published in this fit.'; continue; }+ const claims = rung.claims ? 'Claims ' + Math.round(rung.claims * 100) + '%' : 'Claims nothing';+ obs.textContent = rung.observed != null+ ? claims + ' · holdout observed ' + pct(rung.observed) + ' good over ' + num(rung.samples) + ' launches'+ : claims + ' · not enough resolved launches in this band yet';}}diff --git a/pages/payments.html b/pages/payments.htmlindex f6422db74..4ccae1359 100644--- a/pages/payments.html+++ b/pages/payments.html@@ -500,7 +500,15 @@...opts,});const d = await res.json().catch(() => ({}));- if (!res.ok) throw Object.assign(new Error(d.message || d.error || `HTTP ${res.status}`), { status: res.status, code: d.code });+ // api/_lib/http.js answers `{ error: <machine code>, error_description: <sentence> }`.+ // Reading `d.error` as the message put the raw code ("insufficient_credits")+ // in front of the user and left `err.code` undefined, so every branch that+ // keys off a code was unreachable.+ if (!res.ok) {+ const code = d.code || d.error || null;+ const message = d.error_description || d.message || `HTTP ${res.status}`;+ throw Object.assign(new Error(message), { status: res.status, code });+ }return d;}diff --git a/pages/pipeline.html b/pages/pipeline.htmlindex a52f16aa6..de59f0e19 100644--- a/pages/pipeline.html+++ b/pages/pipeline.html@@ -212,7 +212,6 @@const metaEl = document.getElementById('pl-meta');const ctaEl = document.getElementById('pl-cta');const refreshBtn = document.getElementById('pl-refresh');- const rawApiEl = document.getElementById('pl-raw-api');const netBtns = [...document.querySelectorAll('.pl-net button')];let network = 'mainnet';@@ -409,6 +408,10 @@const controller = new AbortController();inFlightController = controller;const asked = network;+ // Re-queried rather than cached: the runtime i18n pass can replace this+ // paragraph after first render, and a stale node would leave the link+ // pointing at whichever network the page booted on.+ document.getElementById('pl-raw-api')?.setAttribute('href', '/api/pipeline?network=' + asked);refreshBtn.classList.add('spin');flow.setAttribute('aria-busy', 'true');try {@@ -436,7 +439,6 @@if (b.dataset.net === network) return;network = b.dataset.net;netBtns.forEach((x) => x.setAttribute('aria-pressed', String(x.dataset.net === network)));- rawApiEl.href = '/api/pipeline?network=' + network;skeletons();load();}));diff --git a/pages/pitch.html b/pages/pitch.htmlindex bc1b926f9..98dfb430b 100644--- a/pages/pitch.html+++ b/pages/pitch.html@@ -40,6 +40,7 @@<link rel="stylesheet" href="/style.css" /><link rel="stylesheet" href="/pitch.css" />+ <script src="/corner-stack.js"></script><script src="/model-viewer-meshopt.js"></script><scripttype="module"@@ -115,6 +116,7 @@<div class="title-stage" aria-label="Live 3D avatar"><model-viewersrc="/animations/soldier.glb"+ poster="/media/pitch/soldier-title.webp"alt="A live, rigged 3D character rendered in the browser"autoplayauto-rotate@@ -125,8 +127,22 @@shadow-intensity="0.6"exposure="1.05"environment-image="neutral"- camera-orbit="0deg 88deg 2.4m"+ camera-orbit="180deg 85deg 3.7m"></model-viewer>+ <div class="stage-fallback" data-stage-fallback hidden>+ <img+ src="/media/pitch/soldier-title.webp"+ alt="A rigged 3D character from the three.ws pipeline, shown as a still frame"+ width="720"+ height="720"+ decoding="async"+ />+ <p class="stage-fallback-note" data-i18n-html="pitch.stage_fallback_note">+ <strong>The live 3D runtime did not load.</strong>+ This still frame is the same character, rendered from the same glTF file.+ </p>+ <button class="btn btn-ghost btn-sm" type="button" data-retry-3d data-i18n="pitch.retry_the_live_render">Retry the live render</button>+ </div><span class="stage-label" data-i18n-html="pitch.live_drag_to_orbit"><span class="live-dot"></span>Live · drag to orbit</span></div></div>@@ -305,6 +321,7 @@<div class="title-stage demo-stage" data-rise="3" style="aspect-ratio:1/1; max-height:64vh"><model-viewersrc="/animations/soldier.glb"+ poster="/media/pitch/soldier-demo.webp"alt="A live, interactive 3D character you can orbit with the mouse"autoplaycamera-controls@@ -315,8 +332,22 @@shadow-intensity="0.7"exposure="1.1"environment-image="neutral"- camera-orbit="-18deg 86deg 2.6m"+ camera-orbit="200deg 84deg 3.8m"></model-viewer>+ <div class="stage-fallback" data-stage-fallback hidden>+ <img+ src="/media/pitch/soldier-demo.webp"+ alt="A rigged 3D character from the three.ws pipeline, shown as a still frame"+ width="760"+ height="760"+ decoding="async"+ />+ <p class="stage-fallback-note" data-i18n-html="pitch.stage_fallback_note_2">+ <strong>The live 3D runtime did not load.</strong>+ This still frame is the same character, rendered from the same glTF file.+ </p>+ <button class="btn btn-ghost btn-sm" type="button" data-retry-3d data-i18n="pitch.retry_the_live_render_2">Retry the live render</button>+ </div><span class="stage-label" data-i18n-html="pitch.live_in_browser_render_drag_to_orbit"><span class="live-dot"></span>Live in-browser render · drag to orbit</span></div></div>@@ -520,7 +551,7 @@<section class="slide" data-title="The ask" aria-roledescription="slide" aria-label="Closing"><div class="slide-inner closing"><p class="eyebrow is-num" data-rise="1" style="justify-content:center" data-i18n-html="pitch.13_the_ask"><span class="ey-n">13</span> · The ask</p>- <h1 data-rise="2" data-i18n-html="pitch.give_your_ai_a_body_2">Give your AI <span class="grad-text">a body.</span></h1>+ <h2 class="closing-h" data-rise="2" data-i18n-html="pitch.give_your_ai_a_body_2">Give your AI <span class="grad-text">a body.</span></h2><p class="lede" data-rise="3" data-i18n="pitch.the_brains_are_everywhere_the_bodies_aren">The brains are everywhere. The bodies aren't built yet. We're the teamthat already shipped the layer that gives them one — and we're raising@@ -584,7 +615,6 @@});let index = 0;- let prevIndex = 0;function clamp(n) { return Math.max(0, Math.min(total - 1, n)); }@@ -593,6 +623,7 @@s.classList.toggle('is-active', i === index);s.classList.toggle('is-prev', i < index);s.setAttribute('aria-hidden', i === index ? 'false' : 'true');+ s.inert = i !== index;});dots.forEach((d, i) => {d.classList.toggle('is-active', i === index);@@ -605,10 +636,9 @@nextBtn.disabled = index === total - 1;}- function go(n, opts) {+ function go(n) {const target = clamp(n);if (target === index) return;- prevIndex = index;index = target;render();const hash = '#' + (index + 1);@@ -704,10 +734,109 @@index = fromHash();window.addEventListener('hashchange', () => {const n = fromHash();- if (n !== index) { prevIndex = index; index = n; render(); }+ if (n !== index) { index = n; render(); }});render();++ // ── Live 3D: real loading, real failure ──────────────────────────+ // Each stage ships a poster rendered from the same glTF file, so the+ // slide is never an empty box while the model streams. When the render+ // genuinely cannot happen (the model-viewer module is blocked, the+ // GLB 404s, WebGL is unavailable) the poster is promoted into a+ // labelled fallback that says so and offers a real retry, instead of+ // leaving a "Live - drag to orbit" badge over nothing.+ const MODEL_VIEWER_SRC =+ 'https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js';+ const MODEL_VIEWER_TIMEOUT = 12000;++ function stageOf(mv) { return mv.closest('.title-stage'); }++ function showFallback(mv) {+ const stage = stageOf(mv);+ if (!stage) return;+ stage.classList.add('is-fallback');+ const box = stage.querySelector('[data-stage-fallback]');+ if (box) box.hidden = false;+ }++ function hideFallback(mv) {+ const stage = stageOf(mv);+ if (!stage) return;+ stage.classList.remove('is-fallback');+ const box = stage.querySelector('[data-stage-fallback]');+ if (box) box.hidden = true;+ }++ const viewers = Array.from(document.querySelectorAll('model-viewer'));+ viewers.forEach((mv) => {+ mv.addEventListener('error', () => showFallback(mv));+ mv.addEventListener('load', () => hideFallback(mv));+ });++ // The custom element upgrades only once its module executes. A blocked+ // or failed CDN leaves <model-viewer> an inert unknown element that+ // fires nothing at all, so this is the only signal that path gives.+ function waitForUpgrade() {+ return Promise.race([+ customElements.whenDefined('model-viewer'),+ new Promise((_, reject) =>+ setTimeout(() => reject(new Error('model-viewer timeout')), MODEL_VIEWER_TIMEOUT),+ ),+ ]);+ }++ function watchUpgrade() {+ waitForUpgrade().then(+ () => {+ viewers.forEach((mv) => {+ if (mv.loaded) hideFallback(mv);+ });+ },+ () => viewers.forEach(showFallback),+ );+ }+ watchUpgrade();++ document.querySelectorAll('[data-retry-3d]').forEach((btn) => {+ btn.addEventListener('click', () => {+ const stage = btn.closest('.title-stage');+ const mv = stage && stage.querySelector('model-viewer');+ if (!mv) return;+ btn.disabled = true;+ hideFallback(mv);+ if (customElements.get('model-viewer')) {+ const src = mv.getAttribute('src');+ mv.removeAttribute('src');+ mv.setAttribute('src', src);+ } else {+ // Re-fetch the runtime past a failed/blocked first attempt.+ const tag = document.createElement('script');+ tag.type = 'module';+ tag.src = MODEL_VIEWER_SRC + '?retry=' + Date.now();+ tag.crossOrigin = 'anonymous';+ tag.addEventListener('error', () => showFallback(mv));+ document.head.appendChild(tag);+ watchUpgrade();+ }+ setTimeout(() => { btn.disabled = false; }, MODEL_VIEWER_TIMEOUT);+ });+ });++ // ── Corner stack ────────────────────────────────────────────────+ // The deck is a full-viewport fixed shell, so corner-stack's dock probe+ // (which ignores anything taller than half the screen) cannot see the+ // slide controls underneath it. Declare the band explicitly, or the+ // language switcher lands on the slide counter.+ function reserveDeckChrome() {+ const stack = window.twsCornerStack;+ if (!stack) return;+ const rect = prevBtn.getBoundingClientRect();+ const height = Math.max(0, Math.round(window.innerHeight - rect.top + 12));+ if (height > 0) stack.reserve('pitch-deck-chrome', { height });+ }+ reserveDeckChrome();+ window.addEventListener('resize', reserveDeckChrome, { passive: true });})();</script><!-- Runtime i18n: detects locale, swaps annotated copy, mounts <lang-switcher>. -->diff --git a/pages/pump-visualizer.html b/pages/pump-visualizer.htmlindex 2a8359814..983978183 100644--- a/pages/pump-visualizer.html+++ b/pages/pump-visualizer.html@@ -10,7 +10,7 @@<link rel="apple-touch-icon" href="/apple-touch-icon.png" /><link rel="manifest" href="/manifest.webmanifest" /><meta name="viewport" content="width=device-width, initial-scale=1.0">- <title data-i18n="pump_visualizer.meta_title">3D-Agent · Pump.fun Visualizer</title>+ <title data-i18n="pump_visualizer.meta_title">Pump.fun Visualizer · three.ws</title><meta name="description" content="A real-time 3D visualization of trending tokens on Pump.fun. Each sphere is a live coin, sized by market cap." data-i18n-attr="content:pump_visualizer.meta_description"><link rel="canonical" href="https://three.ws/pump-visualizer"><link rel="stylesheet" href="/style.css">@@ -121,6 +121,19 @@font-family: var(--font-mono);font-size: 12px;}+ /* Screen-reader-only text: the page heading and the search field's label.+ The stage is a full-bleed canvas with no room for visible chrome, but a+ heading and a labelled input are not optional. */+ .vz-sr-only {+ position: absolute;+ width: 1px; height: 1px;+ padding: 0; margin: -1px;+ overflow: hidden;+ clip: rect(0 0 0 0);+ clip-path: inset(50%);+ white-space: nowrap;+ border: 0;+ }.vz-search {position: relative;display: flex;@@ -797,20 +810,20 @@<meta property="og:type" content="website"><meta property="og:site_name" content="three.ws"><meta property="og:title" content="Pump Visualizer · three.ws" data-i18n-attr="content:pump_visualizer.meta_og_title">- <meta property="og:description" content="3D visualizer of trending pump.fun tokens — live market data rendered as an interactive scene." data-i18n-attr="content:pump_visualizer.meta_og_description">+ <meta property="og:description" content="3D visualizer of trending pump.fun tokens: live market data rendered as an interactive scene." data-i18n-attr="content:pump_visualizer.meta_og_description"><meta property="og:url" content="https://three.ws/pump-visualizer"><meta property="og:image" content="https://three.ws/api/page-og?s=crypto&t=Pump+Visualizer&d=3D+visualizer+of+trending+pump.fun+tokens%3A+live+market+data+rendered+as+an+interactive+scene.&p=%2Fpump-visualizer"><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="Pump Visualizer · three.ws" data-i18n-attr="content:pump_visualizer.meta_twitter_title">- <meta name="twitter:description" content="3D visualizer of trending pump.fun tokens — live market data rendered as an interactive scene." data-i18n-attr="content:pump_visualizer.meta_twitter_description">+ <meta name="twitter:description" content="3D visualizer of trending pump.fun tokens: live market data rendered as an interactive scene." data-i18n-attr="content:pump_visualizer.meta_twitter_description"><meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&t=Pump+Visualizer&d=3D+visualizer+of+trending+pump.fun+tokens%3A+live+market+data+rendered+as+an+interactive+scene.&p=%2Fpump-visualizer">- <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Pump Visualizer","description":"3D visualizer of trending pump.fun tokens — live market data rendered as an interactive scene.","url":"https://three.ws/pump-visualizer","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Pump Visualizer","description":"3D visualizer of trending pump.fun tokens: live market data rendered as an interactive scene.","url":"https://three.ws/pump-visualizer","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script><meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1"><meta property="og:locale" content="en_US">- <meta property="og:image:alt" content="Pump Visualizer — three.ws">+ <meta property="og:image:alt" content="Pump Visualizer, three.ws"><meta name="twitter:site" content="@trythreews"></head><body>@@ -818,16 +831,17 @@<script src="/nav.js"></script><div id="vz-stage">+ <h1 class="vz-sr-only" data-i18n="pump_visualizer.page_heading">Live 3D visualizer of pump.fun tokens</h1><div id="vz-canvas-host"></div><div class="vz-overlay vz-status" id="vz-status" data-state="loading" data-mode="feed" role="status" aria-live="polite"><span class="dot"></span><span id="vz-status-text" data-i18n="pump_visualizer.connecting_to_pump_fun_firehose">Connecting to pump.fun firehose…</span><span class="sep"></span>- <span class="stat" data-i18n-html="pump_visualizer.0_tokens"><b id="vz-stat-count">0</b> tokens</span>+ <span class="stat"><b id="vz-stat-count">0</b> <span data-i18n="pump_visualizer.tokens_label">tokens</span></span><span class="sep"></span>- <span class="stat" id="vz-stat-rate-wrap" data-i18n-html="pump_visualizer.min"><b id="vz-stat-rate">—</b> <span id="vz-stat-rate-unit">/min</span></span>- <span class="stat" id="vz-stat-mcap-wrap" data-i18n-html="pump_visualizer.total">total <b id="vz-stat-mcap">—</b></span>+ <span class="stat" id="vz-stat-rate-wrap"><b id="vz-stat-rate"></b> <span id="vz-stat-rate-per-min" data-i18n="pump_visualizer.per_minute_label">/min</span><span id="vz-stat-rate-per-hr" data-i18n="pump_visualizer.per_hour_label" hidden>/hr</span></span>+ <span class="stat" id="vz-stat-mcap-wrap"><span data-i18n="pump_visualizer.total_label">total</span> <b id="vz-stat-mcap"></b></span><button id="vz-refresh" type="button" title="Refresh data (R)" disabled data-i18n-attr="title:pump_visualizer.refresh_data_r_title">↻ <span class="countdown" id="vz-countdown">●</span></button></div>@@ -837,8 +851,9 @@<button type="button" data-mode="migrations" data-i18n-html="pump_visualizer.migrations"><span class="live-dot"></span>Migrations</button><button type="button" data-mode="trending" data-i18n="pump_visualizer.trending">Trending</button></div>- <label class="vz-search">- <input type="search" id="vz-search-input" placeholder="Search name, symbol, mint…" autocomplete="off" spellcheck="false" />+ <label class="vz-search" for="vz-search-input">+ <span class="vz-sr-only" data-i18n="pump_visualizer.search_label">Search tokens by name, symbol or mint</span>+ <input type="search" id="vz-search-input" placeholder="Search name, symbol, mint…" autocomplete="off" spellcheck="false" data-i18n-attr="placeholder:pump_visualizer.search_placeholder" /></label><div class="vz-sort" role="tablist" aria-label="Sort tokens"><button type="button" data-sort="mcap" class="is-active" data-i18n="pump_visualizer.mcap">Mcap</button>@@ -936,6 +951,9 @@import { UnrealBloomPass } from 'three/addons/postprocessing/UnrealBloomPass.js';import { OutputPass } from 'three/addons/postprocessing/OutputPass.js';+ // Every "no value yet" slot renders this one glyph. Declared as an escape+ // sequence because the literal character is banned in this repo's source.+ const NO_VALUE = '\u2014';const TRENDING_API = '/api/pump/trending?limit=50&rich=1';const LIVE_FEED_API = '/api/agents/pumpfun-feed?kind=mint';const MIGRATIONS_FEED_API = '/api/agents/pumpfun-feed?kind=graduation';@@ -990,7 +1008,16 @@const statCountEl = document.getElementById('vz-stat-count');const statMcapEl = document.getElementById('vz-stat-mcap');const statRateEl = document.getElementById('vz-stat-rate');- const statRateUnitEl = document.getElementById('vz-stat-rate-unit');+ statRateEl.textContent = NO_VALUE;+ statMcapEl.textContent = NO_VALUE;+ const statRatePerMinEl = document.getElementById('vz-stat-rate-per-min');+ const statRatePerHrEl = document.getElementById('vz-stat-rate-per-hr');+ // The rate unit ships as two pre-translated spans rather than a string the+ // script writes, so switching feed/migrations never drops back to English.+ function setRateUnit(perHour) {+ statRatePerMinEl.hidden = perHour;+ statRatePerHrEl.hidden = !perHour;+ }const controlsEl = document.getElementById('vz-controls');const searchInput = document.getElementById('vz-search-input');const sortBtns = controlsEl.querySelectorAll('.vz-sort button');@@ -1802,7 +1829,7 @@document.getElementById('vz-detail-mcap').textContent = formatMcap(token.usd_market_cap);document.getElementById('vz-detail-ath').textContent = formatMcap(token.ath_market_cap);- document.getElementById('vz-detail-replies').textContent = token.reply_count != null ? Number(token.reply_count).toLocaleString() : '—';+ document.getElementById('vz-detail-replies').textContent = token.reply_count != null ? Number(token.reply_count).toLocaleString() : NO_VALUE;document.getElementById('vz-detail-age').textContent = formatAge(token.created_timestamp);renderDetailExtra(token);@@ -1996,7 +2023,7 @@// ── formatters ───────────────────────────────────────────────function formatMcap(v) {const n = Number(v);- if (!Number.isFinite(n) || n <= 0) return '—';+ if (!Number.isFinite(n) || n <= 0) return NO_VALUE;if (n >= 1e9) return '$' + (n / 1e9).toFixed(2) + 'B';if (n >= 1e6) return '$' + (n / 1e6).toFixed(2) + 'M';if (n >= 1e3) return '$' + (n / 1e3).toFixed(1) + 'K';@@ -2004,7 +2031,7 @@}function formatAge(ts) {const n = Number(ts);- if (!Number.isFinite(n) || n <= 0) return '—';+ if (!Number.isFinite(n) || n <= 0) return NO_VALUE;const ms = Date.now() - n;const days = ms / 86_400_000;if (days >= 30) return Math.floor(days / 30) + 'mo';@@ -2467,15 +2494,15 @@function updateStats() {if (state.mode === 'feed') {statCountEl.textContent = tokenMeshes.length;- statRateEl.textContent = state.feed.mintsPerMin || '—';- statRateUnitEl.textContent = '/min';+ statRateEl.textContent = state.feed.mintsPerMin || NO_VALUE;+ setRateUnit(false);statusText.textContent = 'pump.fun firehose · live mints';return;}if (state.mode === 'migrations') {statCountEl.textContent = tokenMeshes.length;- statRateEl.textContent = state.feed.gradsPerHour || '—';- statRateUnitEl.textContent = '/hr';+ statRateEl.textContent = state.feed.gradsPerHour || NO_VALUE;+ setRateUnit(true);statusText.textContent = 'pump.fun firehose · live migrations';return;}diff --git a/pages/rankings.html b/pages/rankings.htmlindex 5f28f7028..fb494c8d0 100644--- a/pages/rankings.html+++ b/pages/rankings.html@@ -5,7 +5,7 @@<meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover" /><title data-i18n="rankings.meta_title">Rankings · three.ws</title>- <meta name="description" content="The cross-surface three.ws leaderboard — creators ranked by real creations, remixes received, coin launches, followers, and distance walked. Track your streak and earn badges for showing up." data-i18n-attr="content:rankings.meta_description"/>+ <meta name="description" content="The cross-surface three.ws leaderboard: creators ranked by real creations, remixes received, coin launches, followers, and distance walked. Track your streak and earn badges for showing up." data-i18n-attr="content:rankings.meta_description"/><link rel="canonical" href="https://three.ws/rankings" /><link rel="icon" href="/favicon.ico" sizes="any" /><link rel="icon" type="image/svg+xml" href="/favicon.svg" />@@ -18,14 +18,14 @@<meta property="og:site_name" content="three.ws" /><meta property="og:url" content="https://three.ws/rankings" /><meta property="og:title" content="Rankings · three.ws" data-i18n-attr="content:rankings.meta_og_title"/>- <meta property="og:description" content="Creators ranked by real creations, remixes received, coin launches, followers, and distance walked — one board across every surface." data-i18n-attr="content:rankings.meta_og_description"/>+ <meta property="og:description" content="Creators ranked by real creations, remixes received, coin launches, followers, and distance walked. One board across every surface." data-i18n-attr="content:rankings.meta_og_description"/><meta property="og:image" content="https://three.ws/api/page-og?s=labs&t=Rankings&d=The+cross-surface+three.ws+leaderboard%3A+creators+ranked+by+real+creations%2C+remixes+received%2C+coin+launches%2C+followers%2C+and+distance+walked.+Track+your+streak&p=%2Frankings" /><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="Rankings · three.ws" data-i18n-attr="content:rankings.meta_twitter_title"/>- <meta name="twitter:description" content="Creators ranked by real creations, remixes, launches, followers, and walk distance — one board across every surface." data-i18n-attr="content:rankings.meta_twitter_description"/>+ <meta name="twitter:description" content="Creators ranked by real creations, remixes, launches, followers, and walk distance. One board across every surface." data-i18n-attr="content:rankings.meta_twitter_description"/><meta name="twitter:image" content="https://three.ws/api/page-og?s=labs&t=Rankings&d=The+cross-surface+three.ws+leaderboard%3A+creators+ranked+by+real+creations%2C+remixes+received%2C+coin+launches%2C+followers%2C+and+distance+walked.+Track+your+streak&p=%2Frankings" /><meta name="theme-color" content="#0a0a0a" /><style>@@ -140,6 +140,11 @@.rk-footer-links a:active { background: var(--surface-2); }.rk-footer-links a:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }+ .sr-only {+ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;+ overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;+ }+@media (max-width: 640px) {.rk-head, .rk-row, .rk-skel-row { grid-template-columns: 40px 1fr 96px; }.rk-title { font-size: var(--text-xl); }@@ -148,8 +153,8 @@<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1"><meta property="og:locale" content="en_US">- <meta property="og:image:alt" content="Rankings — three.ws">- <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Rankings","description":"The cross-surface three.ws leaderboard — creations, remixes, launches, followers, and walk distance, ranked.","url":"https://three.ws/rankings","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}]}</script>+ <meta property="og:image:alt" content="Rankings · three.ws">+ <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Rankings","description":"The cross-surface three.ws leaderboard: creations, remixes, launches, followers, and walk distance, ranked.","url":"https://three.ws/rankings","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}]}</script></head><body><header><div id="nav-container"></div></header>@@ -159,7 +164,7 @@<section class="rk-hero"><p class="rk-kicker" data-i18n-html="rankings.cross_surface_updates_live"><span class="rk-live-dot" aria-hidden="true"></span> Cross-surface · updates live</p><h1 id="rk-title" class="rk-title" data-i18n="rankings.rankings">Rankings</h1>- <p class="rk-sub" data-i18n="rankings.one_board_across_every_surface_creations_for">One board across every surface — creations forged, remixes earned, coins launched, creators followed, and distance walked. Show up daily to build a streak and earn badges.</p>+ <p class="rk-sub" data-i18n="rankings.one_board_across_every_surface_creations_for">One board across every surface: creations forged, remixes earned, coins launched, creators followed, and distance walked. Show up daily to build a streak and earn badges.</p></section><div class="rk-streak-card" id="rk-streak-card">@@ -187,8 +192,9 @@<span data-i18n="rankings.creator">Creator</span><span class="rk-col-num" id="rk-metric-label" data-i18n="rankings.creations_2">Creations</span></div>- <div id="rk-rows" aria-live="polite"></div>+ <div id="rk-rows"></div></section>+ <p id="rk-status" class="sr-only" role="status" aria-live="polite"></p><button type="button" id="rk-loadmore" class="rk-loadmore" hidden data-i18n="rankings.show_more">Show more</button><p id="rk-more-error" class="rk-more-error" role="status" hidden></p>@@ -219,6 +225,7 @@const meTag = meWrap.querySelector('.rk-me-tag');const metricSeg = document.getElementById('rk-metric');const moreErrorEl = document.getElementById('rk-more-error');+ const statusEl = document.getElementById('rk-status');const streakCard = document.getElementById('rk-streak-card');const streakNum = document.getElementById('rk-streak-num');const streakLabel = document.getElementById('rk-streak-label');@@ -232,13 +239,18 @@walk_distance: 'Distance',};const EMPTY_COPY = {- creations: { title: 'No creations ranked yet', msg: 'Forge a 3D model or build a world while signed in — it’ll show up here.', cta: { href: '/forge', label: 'Start creating →' } },+ creations: { title: 'No creations ranked yet', msg: 'Forge a 3D model or build a world while signed in, and it’ll show up here.', cta: { href: '/forge', label: 'Start creating →' } },remixes_received: { title: 'No remixes yet', msg: 'Publish one of your creations to the remix bazaar and wait for another creator to build on it.', cta: { href: '/creations', label: 'Open the bazaar →' } },launches: { title: 'No launches ranked yet', msg: 'Launch a coin from one of your agents to show up here.', cta: { href: '/create-agent', label: 'Launch an agent →' } },followers: { title: 'No one ranked yet', msg: 'Grow your following by sharing your profile and creations.', cta: { href: '/feed', label: 'Open your feed →' } },- walk_distance: { title: 'No walkers ranked yet', msg: 'Sign in and take your avatar for a walk — distance while signed in counts here.', cta: { href: '/walk', label: 'Start walking →' } },+ walk_distance: { title: 'No walkers ranked yet', msg: 'Sign in and take your avatar for a walk. Distance while signed in counts here.', cta: { href: '/walk', label: 'Start walking →' } },};const PAGE = 50;+ // Without a ceiling a stalled API leaves the board shimmering forever:+ // the skeleton is indistinguishable from a request that will never+ // answer. A timeout routes that case into the designed error state,+ // which already carries a Retry button.+ const REQUEST_TIMEOUT_MS = 15000;let state = { metric: 'creations', offset: 0, total: 0, loading: false };// Every fetch carries a sequence number and its own AbortController. A// metric switch mid-flight aborts the old request and bumps the sequence,@@ -299,8 +311,13 @@rowsEl.innerHTML = h;}+ function announce(text) {+ statusEl.textContent = text;+ }+function showState(copy) {rowsEl.innerHTML = `<div class="rk-state"><p class="rk-state-title">${esc(copy.title)}</p><p class="rk-state-msg">${esc(copy.msg)}</p>${copy.cta ? `<a class="rk-cta" href="${esc(copy.cta.href)}">${esc(copy.cta.label)}</a>` : ''}</div>`;+ announce(copy.title);}function showError(detail) {@@ -322,6 +339,7 @@wrap.appendChild(p);}rowsEl.replaceChildren(wrap);+ announce("Couldn't load the leaderboard. Use the retry button to try again.");}function renderMe(me, metric) {@@ -354,6 +372,11 @@inflight = ctrl;const seq = ++requestSeq;const isCurrent = () => seq === requestSeq;+ // A metric switch aborts the previous request too, so the two cases+ // have to stay distinguishable: a user-driven abort is silent, a+ // timeout is a real failure the viewer needs to see.+ let timedOut = false;+ const timer = setTimeout(() => { timedOut = true; ctrl.abort(); }, REQUEST_TIMEOUT_MS);state.loading = true;if (reset) {@@ -389,9 +412,14 @@state.offset += (data.rows || []).length;loadMoreEl.hidden = !data.hasMore;renderMe(data.me, metric);+ const label = METRIC_HEAD[metric] || 'Value';+ announce(`${label}: showing ${state.offset} of ${state.total} ranked creators.`);} catch (err) {- if (err?.name === 'AbortError' || !isCurrent()) return;- const detail = err?.message || 'Unknown error';+ if (err?.name === 'AbortError' && !timedOut) return;+ if (!isCurrent()) return;+ const detail = timedOut+ ? `No response in ${Math.round(REQUEST_TIMEOUT_MS / 1000)}s`+ : err?.message || 'Unknown error';if (reset) {loadMoreEl.hidden = true;showError(detail);@@ -402,6 +430,7 @@moreErrorEl.hidden = false;}} finally {+ clearTimeout(timer);if (isCurrent()) {state.loading = false;inflight = null;diff --git a/pages/shopper.html b/pages/shopper.htmlindex 20cdee7ad..f880d8786 100644--- a/pages/shopper.html+++ b/pages/shopper.html@@ -107,7 +107,11 @@.brand { font-size: 15px; }.nav-end { margin-left: auto; }.nav-end .console { margin-left: 0; padding: 7px 12px; }- .nav-main { order: 3; flex: 0 0 100%; margin: 0 -20px; padding: 0 20px; }+ .nav-main {+ order: 3; flex: 0 0 100%;+ flex-wrap: wrap; overflow-x: visible; gap: 2px 4px;+ }+ .nav-main a { white-space: normal; }}/* ── BUTTONS ─────────────────────────────────────────────── */diff --git a/public/pay/index.html b/public/pay/index.htmlindex 1f964790a..7c59de978 100644--- a/public/pay/index.html+++ b/public/pay/index.html@@ -4,9 +4,9 @@<meta charset="utf-8" /><meta name="viewport" content="width=device-width,initial-scale=1" /><title data-i18n="pay_index.meta_title">three.ws · pay-per-call (x402)</title>-<meta name="description" content="Live x402 demo — agent pays $0.001 USDC on Solana per request to call MCP tools, render glTF/GLB models, and inspect 3D assets. No keys, no signup, on-chain settlement per call." data-i18n-attr="content:pay_index.meta_description"/>+<meta name="description" content="Live x402 demo: an agent pays $0.001 USDC on Solana per request to call MCP tools, render glTF/GLB models, and inspect 3D assets. No keys, no signup, on-chain settlement per call." data-i18n-attr="content:pay_index.meta_description"/><meta property="og:title" content="three.ws · pay-per-call (x402)" data-i18n-attr="content:pay_index.meta_og_title"/>-<meta property="og:description" content="Live x402 demo — agent pays $0.001 USDC on Solana per MCP tool call. Settled on-chain, rendered live." data-i18n-attr="content:pay_index.meta_og_description"/>+<meta property="og:description" content="Live x402 demo: an agent pays $0.001 USDC on Solana per MCP tool call. Settled on-chain, rendered live." data-i18n-attr="content:pay_index.meta_og_description"/><meta property="og:type" content="website" /><meta property="og:url" content="https://three.ws/pay" /><meta property="og:image" content="https://three.ws/api/x402-pay/og" />@@ -569,8 +569,10 @@border: 1px solid var(--border); border-radius: 10px;cursor: pointer; background: var(--panel);transition: border-color 0.15s, background 0.15s;- font-size: 12px;+ /* Rendered as <button>, so reset the UA's font and text alignment. */+ color: inherit; font-family: inherit; font-size: 12px; text-align: left;}+ .agent-card:active { transform: translateY(1px); }.agent-card:hover { border-color: var(--accent); background: rgba(255,255,255,0.06); }.agent-card.selected { border-color: var(--accent-2); background: rgba(34,211,238,0.07); }.agent-card .av {@@ -580,6 +582,7 @@font-size: 10px; font-weight: 700; color: #0b0b0b; flex: 0 0 auto;}.agent-card .av img { width: 24px; height: 24px; border-radius: 6px; object-fit: cover; }+ .agent-card > span:last-child { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }.agent-card .name { font-weight: 600; }.agent-card .bal { color: var(--muted); font-family: var(--mono); font-size: 11px; }.agent-card .no-wallet {@@ -728,7 +731,7 @@<meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1"><meta property="og:locale" content="en_US">- <meta property="og:image:alt" content="Pay (x402) — three.ws">+ <meta property="og:image:alt" content="Pay (x402) on three.ws"><meta name="twitter:site" content="@trythreews"><script src="/model-viewer-meshopt.js"></script></head>@@ -744,7 +747,7 @@<div class="logo"></div><div><h1 class="title">three.ws · pay-per-call</h1>- <div class="sub">Live x402 demo — agent pays USDC on Solana per request</div>+ <div class="sub">Live x402 demo: an agent pays USDC on Solana per request</div></div></div><div class="header-right">@@ -774,22 +777,22 @@<span class="demo-note">Using shared demo wallet for now.</span></span><span id="agentLoading" style="color:var(--muted);font-size:12px" data-i18n="pay_index.loading_agents">loading agents…</span>- <!-- Browser wallet cards — protected from renderAgentCards() by data-wallet -->- <div class="agent-card" id="phantomCard" data-wallet="phantom" style="display:none">- <div class="av" style="background:linear-gradient(135deg,#ab9ff2,#534bb1);color:#fff;font-size:11px">P</div>- <div><div class="name">Phantom</div><span class="bal" id="phantomBalLabel" data-i18n="pay_index.solana_usdc_2">Solana USDC</span></div>- </div>- <div class="agent-card" id="evmCard" data-wallet="evm" style="display:none">- <div class="av" style="background:linear-gradient(135deg,#f6851b,#e2761b);color:#fff;font-size:11px">M</div>- <div><div class="name">EVM wallet</div><span class="bal" id="evmBalLabel" data-i18n="pay_index.base_usdc">Base USDC</span></div>- </div>+ <!-- Browser wallet cards, protected from renderAgentCards() by data-wallet -->+ <button type="button" class="agent-card" id="phantomCard" data-wallet="phantom" aria-pressed="false" style="display:none">+ <span class="av" style="background:linear-gradient(135deg,#ab9ff2,#534bb1);color:#fff;font-size:11px">P</span>+ <span><span class="name">Phantom</span><span class="bal" id="phantomBalLabel" data-i18n="pay_index.solana_usdc_2">Solana USDC</span></span>+ </button>+ <button type="button" class="agent-card" id="evmCard" data-wallet="evm" aria-pressed="false" style="display:none">+ <span class="av" style="background:linear-gradient(135deg,#f6851b,#e2761b);color:#fff;font-size:11px">M</span>+ <span><span class="name">EVM wallet</span><span class="bal" id="evmBalLabel" data-i18n="pay_index.base_usdc">Base USDC</span></span>+ </button></div></div><div class="conv" id="conv"><div class="msg agent"><div class="av">3</div><div class="body">- Hi. I'm the three.ws agent. Every request below triggers a real <strong data-i18n="pay_index.x402">x402</strong> paid API call to <code>three.ws/api/mcp</code>: I sign a Solana SPL transfer for <strong data-i18n="pay_index.0_001_usdc">$0.001 USDC</strong>, the facilitator settles on-chain, the MCP tool runs, and I render the result — including <em data-i18n="pay_index.actual_3d_models">actual 3D models</em> when the tool processes one.+ Hi. I'm the three.ws agent. Every request below triggers a real <strong data-i18n="pay_index.x402">x402</strong> paid API call to <code>three.ws/api/mcp</code>: I sign a Solana SPL transfer for <strong data-i18n="pay_index.0_001_usdc">$0.001 USDC</strong>, the facilitator settles on-chain, the MCP tool runs, and I render the result, including <em data-i18n="pay_index.actual_3d_models">actual 3D models</em> when the tool processes one.<br/><br/>Try one of the chips below, or paste a glTF/GLB URL.</div>@@ -813,7 +816,7 @@<div class="bsc-header"><div><strong data-i18n="pay_index.pay_on_bnb_smart_chain">Pay on BNB Smart Chain</strong>- <div class="bsc-sub">You sign the payment in MetaMask. <code>ThreeWSPayments.pay($0.001 USDC)</code> on-chain — no facilitator, no server-held key.</div>+ <div class="bsc-sub">You sign the payment in MetaMask. <code>ThreeWSPayments.pay($0.001 USDC)</code> on-chain, with no facilitator and no server-held key.</div></div><button class="bsc-connect" id="bscConnect" data-i18n="pay_index.connect_metamask">Connect MetaMask</button></div>@@ -875,7 +878,7 @@<div class="step-item"><div class="num">2</div><div class="text">The agent wallet builds an <b data-i18n="pay_index.spl_transferchecked">SPL transferChecked</b> on Solana, signs it, and re-sends the request with an <b data-i18n="pay_index.x_payment">X-PAYMENT</b> header.</div></div><div class="step-item"><div class="num">3</div><div class="text">The facilitator <b data-i18n="pay_index.verifies_settles">verifies + settles</b> on-chain. The MCP tool runs. You see the result + a Solscan tx link in <2s.</div></div></div>- <button id="closeWalk" data-i18n="pay_index.got_it_let_s_go">Got it — let's go</button>+ <button id="closeWalk" data-i18n="pay_index.got_it_let_s_go">Got it, let's go</button></div></div>@@ -934,6 +937,7 @@ function setSelectedBrowserWallet(type) {// De-select any agent card without re-rendering the whole listfor (const el of agentList.querySelectorAll('.agent-card[data-agent-id].selected')) {el.classList.remove('selected');+ el.setAttribute('aria-pressed', 'false');}updateBrowserWalletCards();}@@ -941,11 +945,11 @@ function setSelectedBrowserWallet(type) {function updateBrowserWalletCards() {const phantomCard = $('phantomCard');const evmCard = $('evmCard');- if (phantomCard) {- phantomCard.classList.toggle('selected', selectedBrowserWallet === 'phantom');- }- if (evmCard) {- evmCard.classList.toggle('selected', selectedBrowserWallet === 'evm');+ for (const [card, kind] of [[phantomCard, 'phantom'], [evmCard, 'evm']]) {+ if (!card) continue;+ const on = selectedBrowserWallet === kind;+ card.classList.toggle('selected', on);+ card.setAttribute('aria-pressed', String(on));}}@@ -1004,9 +1008,11 @@ function renderAgentCards(agents) {return;}agents.forEach(agent => {- const el = document.createElement('div');+ const el = document.createElement('button');+ el.type = 'button';el.className = 'agent-card' + (selectedAgent?.id === agent.id ? ' selected' : '');el.dataset.agentId = agent.id;+ el.setAttribute('aria-pressed', String(selectedAgent?.id === agent.id));// The thumbnail URL comes from the API (R2, public/unlisted avatars only).// There is no /avatars/<id>/thumbnail.png route on this origin, so deriving// one from avatar_id only ever 404'd and painted the fallback anyway.@@ -1016,7 +1022,7 @@ function renderAgentCards(agents) {const walletHtml = agent.solana_address? `<span class="bal">${agent.usdc != null ? agent.usdc.toFixed(3)+' USDC' : ''}</span>`: `<span class="no-wallet">no wallet</span>`;- el.innerHTML = `<div class="av">${avatarHtml}</div><div><div class="name">${escape(agent.name)}</div>${walletHtml}</div>`;+ el.innerHTML = `<span class="av">${avatarHtml}</span><span><span class="name">${escape(agent.name)}</span>${walletHtml}</span>`;el.addEventListener('click', () => {if (!agent.solana_address) {openGenOverlay(agent);@@ -1333,7 +1339,7 @@ async function refreshPhantomBalance(address) {console.warn('[pay] Phantom balance read failed:', err?.message || err);if (balLabel) {balLabel.textContent = `couldn't read balance · ${address.slice(0,4)}…${address.slice(-4)}`;- balLabel.title = 'Solana RPC balance lookup failed — payments still work.';+ balLabel.title = 'Solana RPC balance lookup failed. Payments still work.';}}}@@ -1533,7 +1539,7 @@ function escape(s) { return String(s).replace(/[<>&]/g, c => ({'<':'<','>':'&// text-node safe only.function attr(s) { return escape(s).replace(/"/g, '"').replace(/'/g, '''); }function formatBytes(n) {- if (!Number.isFinite(n)) return '—';+ if (!Number.isFinite(n)) return 'unknown';if (n < 1024) return `${n} B`;if (n < 1024*1024) return `${(n/1024).toFixed(1)} KB`;return `${(n/1024/1024).toFixed(1)} MB`;@@ -1718,7 +1724,7 @@ function renderValidate(args, result) {const ok = errs === 0;const meta = text.meta || {};return `- <div><strong>${ok ? '✅ glTF spec-compliant' : '❌ has errors'}</strong> — ${errs} errors, ${warns} warnings, ${infos} infos</div>+ <div><strong>${ok ? '✅ glTF spec-compliant' : '❌ has errors'}</strong>: ${errs} errors, ${warns} warnings, ${infos} infos</div><div class="meta-grid">${meta.vertices != null ? chip('vertices', Number(meta.vertices).toLocaleString()) : ''}${meta.triangles != null ? chip('triangles', Number(meta.triangles).toLocaleString()) : ''}@@ -2277,7 +2283,7 @@ async function waitForReceipt(txHash, timeoutMs = 60000) {await new Promise((r) => setTimeout(r, wait));if (retryAfterMs == null) delay = Math.min(delay * 2, maxDelay);}- throw new Error(`tx ${txHash} did not confirm within ${timeoutMs / 1000}s — check BscScan.`);+ throw new Error(`tx ${txHash} did not confirm within ${timeoutMs / 1000}s. Check BscScan.`);}async function bscConnect() {@@ -2314,12 +2320,12 @@ function randomRef() {}async function payOnChain(ref) {- logStep(`💳 Calling <code>ThreeWSPayments.pay(${ref.slice(0, 10)}…)</code> — sign in MetaMask.`);+ logStep(`💳 Calling <code>ThreeWSPayments.pay(${ref.slice(0, 10)}…)</code>. Sign it in MetaMask.`);const data = '0x8609cad1' + ref.replace(/^0x/, '');const txHash = await eth('eth_sendTransaction', [{from: bscAccount, to: BSC_PAYMENTS, data,}]);- const rowDiv = logStep(`📝 Pay tx: <a target="_blank" rel="noopener" href="https://bscscan.com/tx/${txHash}"><code>${txHash}</code></a> — waiting for confirmation…`);+ const rowDiv = logStep(`📝 Pay tx: <a target="_blank" rel="noopener" href="https://bscscan.com/tx/${txHash}"><code>${txHash}</code></a> awaiting confirmation…`);const rcpt = await waitForReceipt(txHash);rowDiv.innerHTML = `✅ Payment confirmed in block ${parseInt(rcpt.blockNumber, 16)}: <a target="_blank" rel="noopener" href="https://bscscan.com/tx/${txHash}"><code>${txHash}</code></a>`;return txHash;diff --git a/public/pitch.css b/public/pitch.cssindex 0fb80aa17..f881913bb 100644--- a/public/pitch.css+++ b/public/pitch.css@@ -38,6 +38,9 @@ a { color: inherit; }position: fixed;inset: 0;overflow: hidden;+ /* Height of the bottom control band (offset + 40px button + breathing room).+ Slides pad past it so a tall slide never ends underneath the nav. */+ --deck-controls-h: calc(clamp(0.9rem, 2.4vh, 1.6rem) + 40px + 0.9rem);}/* Ambient backdrop — subtle, animated, GPU-friendly. */@@ -103,6 +106,7 @@ a { color: inherit; }transition: opacity var(--duration-fast) var(--ease-standard);}.deck-wordmark:hover { opacity: 1; }+.deck-wordmark:focus-visible { outline: 2px solid var(--deck-a1); outline-offset: 3px; border-radius: var(--radius-sm); }.deck-mark {width: 22px;height: 22px;@@ -178,7 +182,7 @@ a { color: inherit; }inset: 0;display: grid;place-items: center;- padding: clamp(4.5rem, 9vh, 6.5rem) var(--deck-pad) clamp(4rem, 8vh, 5.5rem);+ padding: clamp(4.5rem, 9vh, 6.5rem) var(--deck-pad) max(clamp(4rem, 8vh, 5.5rem), var(--deck-controls-h, 84px));opacity: 0;visibility: hidden;transform: translateY(18px) scale(0.992);@@ -241,7 +245,8 @@ a { color: inherit; }.eyebrow.is-num::before { display: none; }.eyebrow .ey-n { color: var(--deck-a2); font-variant-numeric: tabular-nums; }-.slide h1 {+.slide h1,+.slide .closing-h {font-family: var(--font-display);font-weight: 600;letter-spacing: -0.025em;@@ -320,6 +325,35 @@ a { color: inherit; }backdrop-filter: blur(6px);}[data-theme='light'] .stage-label { background: rgba(255, 255, 255, 0.6); }+/* A "Live" badge over a dead canvas is a lie; the fallback owns the stage. */+.title-stage.is-fallback .stage-label { display: none; }+.title-stage.is-fallback model-viewer { display: none; }+.stage-fallback {+ position: absolute;+ inset: 0;+ display: grid;+ grid-template-rows: 1fr auto auto;+ justify-items: center;+ align-content: center;+ gap: 0.7rem;+ padding: 1rem 1.2rem 1.3rem;+ text-align: center;+}+.stage-fallback img {+ min-height: 0;+ max-width: 100%;+ max-height: 100%;+ object-fit: contain;+ opacity: 0.9;+}+.stage-fallback-note {+ margin: 0;+ max-width: 34ch;+ font-size: var(--text-sm);+ line-height: 1.45;+ color: var(--ink-dim);+}+.stage-fallback-note strong { color: var(--ink); display: block; font-weight: 600; }.live-dot {display: inline-block;width: 7px;@@ -358,6 +392,8 @@ a { color: inherit; }transition: transform var(--duration-instant) var(--ease-standard), background var(--duration-fast) var(--ease-standard), border-color var(--duration-fast) var(--ease-standard), box-shadow var(--duration-base) var(--ease-standard);}.btn:active { transform: translateY(1px); }+.btn:focus-visible { outline: 2px solid var(--deck-a1); outline-offset: 3px; }+.btn-sm { padding: 0.45rem 0.85rem; font-size: var(--text-sm); }.btn-primary {background: var(--deck-grad);color: #06070c;@@ -660,7 +696,7 @@ a { color: inherit; }/* Closing slide */.closing { text-align: center; }-.closing h1 { font-size: clamp(2.8rem, 9vw, 6rem); margin-bottom: 0.6rem; }+.closing h1, .closing .closing-h { font-size: clamp(2.8rem, 9vw, 6rem); margin-bottom: 0.6rem; }.closing .lede { margin-left: auto; margin-right: auto; }.closing .hero-actions { justify-content: center; }.closing-meta {@@ -670,8 +706,9 @@ a { color: inherit; }color: var(--ink-dim);font-size: var(--text-sm);}-.closing-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--stroke-strong); padding-bottom: 1px; }+.closing-meta a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--stroke-strong); padding: 0.15rem 0 0.25rem; display: inline-flex; align-items: center; min-height: 24px; }.closing-meta a:hover { color: var(--deck-a2); }+.closing-meta a:focus-visible { outline: 2px solid var(--deck-a1); outline-offset: 3px; border-radius: var(--radius-sm); }/* ── Bottom controls / nav ───────────────────────────────────────────────── */.deck-controls {@@ -705,19 +742,29 @@ a { color: inherit; }.nav-btn:focus-visible { outline: 2px solid var(--deck-a1); outline-offset: 2px; }.nav-btn svg { width: 17px; height: 17px; }-.dots { display: flex; align-items: center; gap: 0.45rem; flex-wrap: wrap; max-width: 60vw; justify-content: center; }+.dots { display: flex; align-items: center; gap: 0.1rem; flex-wrap: wrap; max-width: 60vw; justify-content: center; }+@media (max-width: 620px) { .dots { display: none; } }.dot {- width: 8px; height: 8px;+ width: 24px; height: 24px;padding: 0;- border-radius: 50%;border: 0;- background: var(--stroke-strong);+ background: none;cursor: pointer;+ display: grid;+ place-items: center;+ border-radius: var(--radius-pill);+}+.dot::before {+ content: '';+ display: block;+ width: 8px; height: 8px;+ border-radius: 50%;+ background: var(--stroke-strong);transition: transform var(--duration-fast) var(--ease-standard), background var(--duration-fast) var(--ease-standard), width var(--duration-base) var(--ease-standard);}-.dot:hover { background: var(--ink-dim); transform: scale(1.3); }-.dot.is-active { background: var(--deck-grad); width: 22px; border-radius: var(--radius-pill); }-.dot:focus-visible { outline: 2px solid var(--deck-a1); outline-offset: 3px; }+.dot:hover::before { background: var(--ink-dim); transform: scale(1.3); }+.dot.is-active::before { background: var(--deck-grad); width: 22px; border-radius: var(--radius-pill); }+.dot:focus-visible { outline: 2px solid var(--deck-a1); outline-offset: 1px; }.deck-counter {font-family: var(--font-mono);