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
Platform audit pass: API param helpers, handler hardening, page polish, audit docs
nirholasf925e898c305
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6fde9aa71..e96476c25 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,7 +6,8 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-06-18-- **Avatar Studio no longer crashes on NFT-gated traits, wallet checks, or VRM0 models** — An audit of Avatar Studio turned up six places where it would throw and stop instead of working: checking whether a trait is NFT-locked, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, and loading older VRM0 avatars all hit undefined-variable errors. All six are fixed, so locked-trait checks, wallet-ownership gating, EVM wallet connect, and VRM0 model loading now run cleanly. (`/create/studio`) `[fix]`+- **Agent lookup now matches the rest of the site and links straight to the agent’s page** — The agent lookup tool used to render as a stark white page that ignored your light/dark theme and had no site navigation or footer. It now uses the same chrome and theme tokens as every other page, so it looks on-brand in both modes. More importantly, when a lookup resolves an agent it now shows a prominent “Open agent page” button that takes you to that agent’s profile on three.ws — so resolving an agent no longer dead-ends on external explorer links. Copy buttons also tell you if a copy fails instead of staying silent. (`/lookup`) `[improvement]`+- **Avatar Studio no longer crashes on NFT-gated traits, wallet checks, exports, or VRM0 models** — An audit of Avatar Studio turned up twelve places where it would throw and stop instead of working: checking whether a trait is NFT-locked, looking up traits and model parts, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, exporting a GLB, recovering from a failed Solana transaction, decoding KTX2 textures, and loading older VRM0 avatars all hit undefined-variable errors. All twelve are fixed, so trait selection, wallet-ownership gating, EVM wallet connect, model export, and VRM0 loading now run cleanly. (`/create/studio`) `[fix]`- **Bundle specific skills into your subscription plans** — When you create or edit a subscription plan in the agent editor's Monetization tab, you can now tick exactly which of your agent's skills the plan includes. Subscribers to that plan get unlimited access to those skills for the life of their subscription, and the plan list shows what each plan bundles at a glance — so you can offer a focused starter plan and a fuller pro plan side by side. `[feature, improvement]`- **Coin community worlds no longer get stuck on “Connecting…”** — Opening a coin community world could occasionally hang on “Connecting…” forever — you'd see only yourself, with chat, voice, and shared building all stalled and no way to recover short of a reload. It happened when the game server accepted the connection but never finished the join handshake, for instance while a server instance was waking from idle. The connection now has a firm time limit: if the handshake doesn't complete in time it retries on its own, and if the server stays unreachable it drops you cleanly into single-player so you can still explore and build locally — with the status pill tappable to reconnect. The same safeguard covers the open /walk world and the IRL map. `[fix]`- **Connect a wallet and your $THREE tier is recognized — no account needed** — You no longer need a three.ws account to be seen as a $THREE holder. Connect your Solana wallet and the site reads your tier straight from your on-chain holdings: the holder chip in the top bar shows your live tier (◆ Bronze, Silver, Gold…) and holder features like High-quality generation on Forge unlock from the connected wallet alone. When a feature needs proof the wallet is yours, you approve a single free signature that moves no funds. Switch or disconnect a wallet and your tier updates instantly, no reload. Signed-in accounts keep working exactly as before. (`/forge`) `[improvement]`@@ -18,8 +19,10 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Gasless checkout — buy skills and assets with no SOL in your wallet** — Buying a skill, time-pass, or whole asset no longer requires you to hold SOL for the network fee. When your Solana wallet is connected, three.ws now sponsors the transaction fee: the platform builds and pre-signs the payment, and your wallet only adds your own approval. You still pay the USDC price (and sellers still receive their split), but the tiny gas fee is on us — one fewer thing to top up before you check out. If sponsorship is ever unavailable, checkout falls back to the normal pay-your-own-gas flow automatically, so a purchase never gets blocked. `[feature, improvement]`- **Gift a skill to anyone — pay once, they get the access** — Buying a skill on an agent page now has a Gift option. Tick "Gift this skill to someone," enter the recipient's username or wallet address, and we confirm exactly who you're sending it to before you pay. You approve the same single USDC payment from your wallet (gas still on us), and the moment it settles on-chain the skill lands in the recipient's library — not yours — with a notification telling them who it's from; you get a delivery confirmation too. It works for permanent unlocks and timed access passes, and if the person already owns the skill we tell you up front so you never pay for nothing. (`/marketplace`) `[feature]`- **Glasses now sit on your avatar's eyes, not through its cheeks** — In Avatar Studio, glasses and shades used to clip into the face — sitting low across the cheeks instead of on the eyes. Eyewear is now placed properly on the eye line, auto-sized to fit any avatar, and shades that were modelled lying flat are stood upright so they read as sunglasses. Hats and earrings are unchanged. (`/create/studio`) `[fix]`+- **GMGN smart-money feed: click the status pill to reconnect, clearer custom-avatar errors** — On the GMGN smart-money page you can now click the connection-status pill to reconnect to the live feed immediately instead of waiting out the automatic retry. The feed sidebar no longer shows a move cursor that did nothing, and pasting a bad custom-avatar URL now shows an inline message right under the field (and checks the link points to a .glb, .gltf, or .vrm model) instead of a browser pop-up. (`/gmgn`) `[improvement]`- **Graduated coins show a live price on agent and community cards** — The bonding-curve card — the compact one on agent profiles, community coin pages, and embeddable widgets — used to go blank with a “No active bonding curve” message the moment a coin graduated to a DEX. Now it reads the coin's live on-chain price instead, marks it “Graduated” at 100%, and shows a real market cap, so $THREE and any other migrated coin display a refreshing price rather than empty space. Those cards also stopped opening a background websocket that could never connect — it had been silently retrying and logging errors on every load. Vault balances now refresh by polling directly and update within seconds. `[improvement, fix]`- **Holding $THREE now unlocks a premium feature** — $THREE gets its first hard utility: High-quality 3D generation on Forge — the 200k-polygon, PBR-textured tier — is now reserved for $THREE holders. Reach the Bronze holder tier (the entry tier) by holding $THREE and the High tier unlocks automatically, with no payment step. Draft and Standard generation stay free forever, and bring-your-own-key generation is unaffected. Sign in, link your Solana wallet, and the economy page shows your live holder tier and exactly what it unlocks. (`/three`) `[feature]`+- **Launch pages — accurate guidance, direct agent links, and a launcher loop** — Tightened the launch and 3D-coin pages. The launcher's empty state now matches what you actually see beside it (an agent picker on /launch, an avatar gallery in the studio) instead of mismatched 'pick an avatar' copy. 'Agent page' links from a launched or existing token now go straight to the canonical agent page with no redirect hop. The Launches feed gained a clear 'Launch a coin' call-to-action, and the 3D coin viewer's empty/error states now point you to the real coin feed (/launches) rather than the demo, with a 'Launch your own' link added to its HUD. Coin logos that fail on one IPFS gateway now retry a second gateway before falling back to a plain disc. (`/launches`) `[improvement, fix]`- **Leaving a review on an agent profile works again** — Submitting or updating a star rating on an agent's profile was quietly failing for signed-in users — the form said “Save failed” no matter what, because the security token that protects the save was being read incorrectly and never attached. Reviews now save on the first try. Signed-out visitors who tap Submit get a clear “Sign in to leave a review” prompt instead of a dead button, and agent profiles no longer log errors for agents that have no on-chain trading record — the track-record card simply stays hidden. `[fix]`- **Manage an agent's subscription tiers straight from the API** — An agent's subscription tiers can now be read and managed directly over the API at /api/agents/:id/tiers — list the tiers on an agent, create one, update its price, billing interval, perks, or bundled skills, and retire one when it's no longer offered. Retiring a tier is always a safe deactivation rather than a hard delete: subscribers already on it keep access until their current period ends, and the response tells you how many are still active, so a tier change never cuts off a paying fan mid-cycle. Only the agent's owner can make changes, and the public listing shows just the active tiers. `[feature, sdk]`- **New guide: how avatars and animations actually work (FBX, GLB, JSON)** — There's now a full explainer for the 3D pipeline behind every avatar on the site — what FBX, GLB, and animation-clip files each do, how they convert into one another, and how a single dance can play on any character. It also documents the new one-command tool that turns an animated FBX avatar into a web-ready GLB, and the chain that generates a model from a text prompt, rigs it, animates it, and exports it. Useful if you're bringing your own avatar or building on the platform. `[docs]`@@ -34,6 +37,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Play is movable on phones again — and avatars load instead of a placeholder** — Two fixes for Play. On phones, the item hotbar had drifted on top of the on-screen movement joystick in the bottom-left corner, so taps meant to steer the stick landed on the hotbar instead and your character wouldn't move at all — with no keyboard to fall back on, you were stuck. The hotbar now sits in a clear band above the joystick, leaving the whole stick tappable. Separately, every avatar — yours, other players', and the loading-screen preview — had started appearing as a plain capsule stand-in because the app was missing the decoder for the compression format the avatars ship in; that decoder is now wired in, so real, animated avatars load everywhere in Play again. `[fix]`- **Play loads reliably in private windows and embeds, and explains itself if 3D can't start** — Two ways Play could fail silently are fixed. First: if your browser couldn't start 3D graphics — hardware acceleration switched off, an older device, or some in-app browsers — Play used to sit on the loading screen forever with no explanation. It now shows a clear recovery card that tells you what happened and how to fix it, with a one-tap “Try again”. Second: opening Play in a private/incognito window, or where it's embedded inside another page, could stop it loading at all because the browser blocks saved settings there. Play now treats blocked storage gracefully — it falls back to a default name and avatar and loads normally instead of breaking. `[fix]`- **Pole Club avatar swaps now actually stick** — On the Pole Club stage, tapping “Change avatar” and picking a new look sometimes did nothing — the dancer quietly snapped back to the default. Two fixes: a pick made right after the room loads is no longer overwritten by the room's own startup, and any avatar whose rig can't be animated is now clearly flagged “can’t dance” and skipped — the dancer keeps her current look and a message says why, instead of silently failing. Picks that work apply instantly and stay put. (`/club`) `[fix]`+- **Security and display fixes from a full page-by-page audit** — We audited every page on three.ws and fixed what we found. The Characters page now safely escapes character names, descriptions, token symbols and images, so a maliciously-named character can no longer run code in your browser. The homepage showcase only ever shows real public avatars now — if the live feed is quiet it falls back to its Browse and Create links instead of placeholder demo agents. Marketplace Analytics no longer flashes raw template text while loading and shows a clear retry message if its data can't be reached. We also fixed dead IBM-suite links on the Features page. (`/characters`) `[security, fix]`- **See every skill you've bought and sold in one Transactions tab** — The dashboard now has a Transactions page that lays out your full payment history in one place: every skill you've purchased from other agents and every sale your own agents have made, newest first. Each row shows the date, whether it was a purchase or a sale, the skill and agent involved, the USDC amount (sellers see their take-home net of the platform fee), and a link straight to the transaction on Solscan or Basescan. Filter by purchases or sales, and download the whole thing as a CSV for your records or taxes. (`/dashboard/transactions`) `[feature]`- **Skill prices fade in smoothly on agent pages** — Opening an agent from the marketplace now shows its page instantly, and any skill that charges per call displays a gently pulsing placeholder while we confirm the exact price — instead of briefly flashing "Free" and then snapping to a dollar amount. The real price, Purchase button, and any free-trial or time-pass options slot in the moment they load. Agents with no paid skills still render their prices immediately with no flicker. (`/marketplace`) `[improvement]`- **Steadier token prices and 3D generation when a provider is busy** — Live bonding-curve prices, market caps, and trade quotes now stay accurate even when a Solana data provider hits its rate limit: the platform transparently rotates to a healthy provider and parks the busy one, instead of repeatedly retrying a maxed-out endpoint and showing stale numbers. The free text-to-3D forge also rides out a cold or briefly-unavailable generation node by retrying once before falling back, so a momentary upstream hiccup no longer turns into a failed generation. `[fix, infra]`diff --git a/ISSUES.md b/ISSUES.mdindex 2ca45029a..63e5946fa 100644--- a/ISSUES.md+++ b/ISSUES.md@@ -19,17 +19,17 @@ across the vendored CharacterStudio fork (118 `no-unused-vars`,17 `no-async-promise-executor`, plus smaller buckets). These all predate theupgrade.-**Runtime `no-undef` bugs — FIXED 2026-06-18** (see-[docs/internal/AUDIT-2026-06-18.md](docs/internal/AUDIT-2026-06-18.md)). Six-bare-identifier references that threw `ReferenceError` the moment their code-path ran are now corrected:-`manifestDataManager.js:67,70` (`testWallet` → `isNFTLocked()`),-`mint-utils.js:292` (`ethereum` → `'ethereum'`),-`vrmManager.js` (`addChildAtFirst` now imported from `./utils`),-`walletCollections.js:58` (`network` → `chainName`),-`CharacterManifestData.js:877` (`getTraitByIndex` now takes `index`).-The `connection` and `download-utils` `optimized` candidates were verified as-false positives (locally declared / object property keys).+**Runtime `no-undef` bugs — FIXED 2026-06-18** (full table in+[docs/internal/AUDIT-2026-06-18.md](docs/internal/AUDIT-2026-06-18.md)). Twelve+references that threw `ReferenceError` the moment their code path ran are now+corrected, verified by a clean `no-undef`-only eslint sweep over+`character-studio/src` (zero runtime no-undef remaining):+`manifestDataManager.js` (`testWallet` ×2, `identifier`, undeclared `traitOption`,+`traitType`), `mint-utils.js` (`ethereum` literal + `connection` `try`/`catch`+scope leak), `vrmManager.js` (`addChildAtFirst` import), `walletCollections.js`+(`network` → `chainName`), `download-utils.js` (missing `optimized` destructure),+`CharacterManifestData.js` (`getTraitByIndex` now takes `index`), `ktx.js`+(`typeof LIBKTX` guard + `/* global */` directive).**Status:** ⏳ **OPEN** — only the cosmetic burndown remains: clear`no-unused-vars` and `no-async-promise-executor` mechanically, file by file.diff --git a/api/_lib/demo-avatars.js b/api/_lib/demo-avatars.jsdeleted file mode 100644index 0fe43e2c4..000000000--- a/api/_lib/demo-avatars.js+++ /dev/null@@ -1,59 +0,0 @@-/**- * Demo avatar fixtures for /api/explore.- *- * These appear in the marketplace + 3D viewer to demonstrate the platform with- * a curated catalogue of public-domain glTF assets:- * - Khronos glTF Sample Assets (CC-BY 4.0)- * - three.js example models (MIT)- * - On-disk starter avatars (shipped with three.ws)- *- * Generated by scripts/gen-demo-avatars.mjs from a verified GLB URL list —- * every entry has been HEAD-checked for 200 + correct Content-Type. Edit the- * generator, not this file, when adding sources.- *- * IDs prefixed with `avatar_demo_` so they never collide with DB UUIDs.- */--import { env } from './env.js';--function demoItem({ id, slug, name, description, tags, glbUrl, image, sortDate, attribution, author, modelCategory }) {- const explicitGlb = glbUrl;- const finalGlb = explicitGlb.startsWith('http')- ? explicitGlb- : `${env.APP_ORIGIN}${explicitGlb}`;- return {- kind: 'avatar',- sortDate,- avatarId: id,- slug,- name,- description,- image,- glbUrl: finalGlb,- has3d: true,- tags,- modelCategory: modelCategory || 'avatar',- createdAt: sortDate,- viewerUrl: `/avatars/${id}`,- attribution,- author,- };-}--export const DEMO_AVATARS = [- demoItem({ id: "avatar_demo_disk_cz", slug: "demo-cz", name: "CZ", description: "CZ — stylized humanoid with idle pose, ready for chat overlays.", tags: ["humanoid","character","community"], glbUrl: "https://three.ws/avatars/cz.glb", image: null, sortDate: "2025-04-01T00:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),- demoItem({ id: "avatar_demo_disk_ansem", slug: "demo-ansem", name: "Ansem", description: "Ansem — trader persona for chart-watchers and crypto Twitter.", tags: ["humanoid","community","trader"], glbUrl: "https://three.ws/avatars/default.glb", image: null, sortDate: "2025-03-31T23:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),- demoItem({ id: "avatar_demo_disk_boss", slug: "demo-boss", name: "Boss", description: "Boss — for the one running the room. Soldier rig with locomotion.", tags: ["humanoid","rigged","animated","community"], glbUrl: "https://three.ws/animations/soldier.glb", image: null, sortDate: "2025-03-31T22:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),- demoItem({ id: "avatar_demo_disk_vernington", slug: "demo-vernington", name: "Vernington", description: "Vernington — the senior of the Vern lineage, full-body humanoid rig.", tags: ["humanoid","rigged","avatar","community"], glbUrl: "https://three.ws/avatars/readyplayerme.glb", image: null, sortDate: "2025-03-31T21:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),- demoItem({ id: "avatar_demo_disk_saga", slug: "demo-saga", name: "Saga", description: "Saga — mobile-native, expressive robot rig with idle, walk, jump, dance clips.", tags: ["robot","animated","rigged","community"], glbUrl: "https://three.ws/animations/robotexpressive.glb", image: null, sortDate: "2025-03-31T20:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),- demoItem({ id: "avatar_demo_disk_claude", slug: "demo-claude", name: "Claude", description: "Claude — calm, thoughtful AI persona on a clean walking rig.", tags: ["humanoid","rigged","animated","community","ai"], glbUrl: "https://three.ws/avatars/cesium-man.glb", image: null, sortDate: "2025-03-31T19:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_disk_3d", slug: "demo-3d", name: "3D", description: "3D — meta avatar for the platform itself, fully articulated sci-fi rig.", tags: ["robot","rigged","animated","community","meta"], glbUrl: "https://three.ws/avatars/brainstem.glb", image: null, sortDate: "2025-03-31T18:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_disk_ai", slug: "demo-ai", name: "AI", description: "AI — clean rigged android stand-in, ready for animation retargeting.", tags: ["robot","rigged","animated","community","ai"], glbUrl: "https://three.ws/avatars/xbot.glb", image: null, sortDate: "2025-03-31T17:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),- demoItem({ id: "avatar_demo_disk_agent", slug: "demo-agent", name: "Agent", description: "Agent — operative ready for autonomous on-chain work.", tags: ["humanoid","rigged","animated","community","agent"], glbUrl: "https://three.ws/animations/soldier.glb", image: null, sortDate: "2025-03-31T16:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),- demoItem({ id: "avatar_demo_disk_vern", slug: "demo-vern", name: "Vern", description: "Vern — base form, before the Vernington promotion.", tags: ["humanoid","rigged","community"], glbUrl: "https://three.ws/avatars/rigged-figure.glb", image: null, sortDate: "2025-03-31T15:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"} }),- demoItem({ id: "avatar_demo_disk_crossinger", slug: "demo-crossinger", name: "Crossinger", description: "Crossinger — chain-hopper, multi-network identity.", tags: ["humanoid","rigged","character","community"], glbUrl: "https://three.ws/avatars/michelle.glb", image: null, sortDate: "2025-03-31T14:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),- demoItem({ id: "avatar_demo_disk_spartian", slug: "demo-spartian", name: "Spartian", description: "Spartian — disciplined, armored, never folds.", tags: ["humanoid","rigged","animated","community"], glbUrl: "https://three.ws/animations/soldier.glb", image: null, sortDate: "2025-03-31T13:00:00.000Z", attribution: {"handle":"threejs","displayName":"three.js examples","url":"https://github.com/mrdoob/three.js","license":"MIT"}, author: {"handle":"threejs","displayName":"three.js examples","profileUrl":"https://github.com/mrdoob/three.js"} }),- demoItem({ id: "avatar_demo_disk_test", slug: "demo-test", name: "Tester", description: "Tester — kicks the tires on every release before anyone else.", tags: ["humanoid","community"], glbUrl: "https://three.ws/avatars/default.glb", image: null, sortDate: "2025-03-31T12:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),- demoItem({ id: "avatar_demo_disk_nova", slug: "demo-nova", name: "Nova", description: "Nova — high-detail portrait avatar with an expressive face, built for streams and overlays.", tags: ["humanoid","character","community"], glbUrl: "https://three.ws/avatars/selfie-girl.glb", image: null, sortDate: "2025-03-31T11:00:00.000Z", attribution: {"handle":"three.ws","displayName":"three.ws starter","url":"https://three.ws","license":"CC-BY 4.0"}, author: {"handle":"three.ws","displayName":"three.ws starter","profileUrl":"https://three.ws"} }),- demoItem({ id: "avatar_demo_disk_foxy", slug: "demo-foxy", name: "Foxy", description: "Foxy — stylized fox mascot with survey, walk, and run animations.", tags: ["animal","mascot","rigged","animated","community"], glbUrl: "https://three.ws/avatars/fox.glb", image: null, sortDate: "2025-03-31T10:00:00.000Z", attribution: {"handle":"khronos","displayName":"Khronos Group","url":"https://github.com/KhronosGroup/glTF-Sample-Assets","license":"CC-BY 4.0"}, author: {"handle":"khronos","displayName":"Khronos Group","profileUrl":"https://github.com/KhronosGroup/glTF-Sample-Assets"}, modelCategory: "creature" }),-];diff --git a/api/_lib/http-params.js b/api/_lib/http-params.jsnew file mode 100644index 000000000..a9f3d4278--- /dev/null+++ b/api/_lib/http-params.js@@ -0,0 +1,52 @@+// Shared HTTP query-parameter parsing helpers for API handlers.+//+// Pagination clamps (`Math.min(Math.max(parseInt(...), 1), MAX)`) were copy-pasted+// across ~20 endpoints, each subtly mishandling non-numeric input (a `?limit=abc`+// produced `NaN`, which then silently disabled the clamp). These helpers+// centralise the logic and coerce junk input back to a sane default.++/**+ * Parse an integer from arbitrary input and clamp it into `[min, max]`.+ * Non-numeric / missing input falls back to `fallback` (which is itself clamped),+ * so callers never have to defend against `NaN` leaking downstream.+ *+ * @param {unknown} raw Raw value (string from a query param, a body field, etc.)+ * @param {{ min?: number, max: number, fallback: number }} opts+ * @returns {number}+ */+export function clampInt(raw, { min = 1, max, fallback }) {+ if (!Number.isFinite(max)) throw new TypeError('clampInt: `max` is required and must be finite');+ if (!Number.isFinite(fallback)) throw new TypeError('clampInt: `fallback` is required and must be finite');+ const parsed = typeof raw === 'number' ? raw : parseInt(raw, 10);+ const base = Number.isFinite(parsed) ? parsed : fallback;+ return Math.min(Math.max(base, min), max);+}++/**+ * Read a value from a URLSearchParams-like or plain-object source.+ * @param {URLSearchParams | Record<string, unknown> | null | undefined} source+ * @param {string} key+ */+function readParam(source, key) {+ if (!source) return undefined;+ if (typeof source.get === 'function') return source.get(key);+ return source[key];+}++/**+ * Parse and clamp a `limit`-style pagination parameter.+ * @param {URLSearchParams | Record<string, unknown>} source+ * @param {{ fallback: number, max: number, min?: number, key?: string }} opts+ */+export function parseLimit(source, { fallback, max, min = 1, key = 'limit' }) {+ return clampInt(readParam(source, key), { min, max, fallback });+}++/**+ * Parse and clamp an `offset`-style pagination parameter (floors at 0 by default).+ * @param {URLSearchParams | Record<string, unknown>} source+ * @param {{ max?: number, min?: number, key?: string }} [opts]+ */+export function parseOffset(source, { max = Number.MAX_SAFE_INTEGER, min = 0, key = 'offset' } = {}) {+ return clampInt(readParam(source, key), { min, max, fallback: min });+}diff --git a/api/_lib/http.js b/api/_lib/http.jsindex 25f8e23b9..bad141694 100644--- a/api/_lib/http.js+++ b/api/_lib/http.js@@ -269,24 +269,30 @@ export function wrap(handler) {} catch (err) {const status = err.status || 500;if (status >= 500) {+ const ref = correlationId();// Redact coordinates / device tokens so a 5xx on a geolocated read never// spills the caller's position or credential to an off-box sink.- console.error('[api] unhandled', err);- captureException(err, { url: redactUrl(req.url), method: req.method });- sendOpsAlert(`unhandled 5xx in ${req.method} ${redactUrl(req.url)}`, err?.message || String(err), {+ console.error(`[api] unhandled [ref ${ref}]`, err);+ captureException(err, { ref, url: redactUrl(req.url), method: req.method });+ sendOpsAlert(`unhandled 5xx in ${req.method} ${redactUrl(req.url)}`, `${err?.message || String(err)}\nref ${ref}`, {signature: `unhandled:${redactUrl(req.url)}:${err?.message}`,});- }- if (!res.headersSent && !res.writableEnded) {+ // Never echo a raw upstream message in a 5xx body — Solana/web3.js+ // network errors embed the keyed RPC URL (…helius-rpc.com/?api-key=…),+ // so err.message would leak HELIUS_API_KEY to the client. Hand back a+ // sanitized envelope keyed to the same ref we just logged.+ if (!res.headersSent && !res.writableEnded) {+ json(res, status, {+ error: err.code || 'internal_error',+ error_description: `internal error — quote ref ${ref} to support`,+ ref,+ });+ }+ } else if (!res.headersSent && !res.writableEnded) {if (err.code === 'validation_error' && Array.isArray(err.issues)) {validationError(res, err);} else {- error(- res,- status,- err.code || (status >= 500 ? 'internal_error' : 'bad_request'),- err.message || 'error',- );+ error(res, status, err.code || 'bad_request', err.message || 'error');}}}diff --git a/api/avatar-og.js b/api/avatar-og.jsindex 32f76a417..0c6024166 100644--- a/api/avatar-og.js+++ b/api/avatar-og.js@@ -21,7 +21,6 @@import { sql } from './_lib/db.js';import { getAvatar } from './_lib/avatars.js';-import { DEMO_AVATARS } from './_lib/demo-avatars.js';import { cors, wrap } from './_lib/http.js';import { publicUrl, putObject, isLegacyOgThumbnailKey } from './_lib/r2.js';import { renderGlbToPng } from './_lib/render-glb.js';@@ -57,23 +56,6 @@ export default wrap(async (req, res) => {});}- // Demo fixtures live in DEMO_AVATARS, not the DB.- if (avatarId.startsWith('avatar_demo_')) {- const demo = DEMO_AVATARS.find((a) => a.avatarId === avatarId);- if (!demo) {- return sendCardSvg(res, 404, CACHE_CARD_404, {- name: 'Avatar not found',- description: '',- });- }- return sendCardSvg(res, 200, CACHE_CARD_OK, {- name: demo.name,- description: demo.description,- attribution: demo.attribution?.displayName,- tags: demo.tags || [],- });- }-const avatar = await getAvatar({ id: avatarId });if (!avatar) {return sendCardSvg(res, 404, CACHE_CARD_404, {diff --git a/api/avatars/[id].js b/api/avatars/[id].jsindex 6bbd66496..4a0dd16cb 100644--- a/api/avatars/[id].js+++ b/api/avatars/[id].js@@ -19,7 +19,6 @@ import { limits } from '../_lib/rate-limit.js';import { recordEvent } from '../_lib/usage.js';import { z } from 'zod';import { avatarVisibility, avatarAppearance, parse } from '../_lib/validate.js';-import { DEMO_AVATARS } from '../_lib/demo-avatars.js';import { dispatchWebhooks } from '../_lib/webhook-dispatch.js';const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;@@ -66,45 +65,16 @@ export default wrap(async (req, res) => {if (cors(req, res, { methods: 'GET,PATCH,DELETE,OPTIONS', credentials: true })) return;if (!method(req, res, ['GET', 'PATCH', 'DELETE'])) return;- // Guard the DB call: an id that isn't a uuid and isn't a known demo slug- // would otherwise hit Postgres as `WHERE id = $1`, which raises 22P02 and- // leaks the raw error code to the caller. Return a clean 404 instead.- if (!UUID_RE.test(id) && !id.startsWith('avatar_demo_')) {+ // Guard the DB call: an id that isn't a uuid would otherwise hit Postgres as+ // `WHERE id = $1`, which raises 22P02 and leaks the raw error code to the+ // caller. Return a clean 404 instead.+ if (!UUID_RE.test(id)) {return error(res, 404, 'not_found', 'avatar not found');}const auth = await resolveAuth(req);if (req.method === 'GET') {- // Demo avatars (avatar_demo_*) are seeded fixtures, not DB rows.- // Resolve them from DEMO_AVATARS so the detail page works for them too.- if (id.startsWith('avatar_demo_')) {- const demo = DEMO_AVATARS.find((a) => a.avatarId === id);- if (!demo) return error(res, 404, 'not_found', 'avatar not found');- return json(res, 200, {- avatar: {- id: demo.avatarId,- slug: demo.slug,- name: demo.name,- description: demo.description,- tags: demo.tags,- visibility: 'public',- source: 'demo',- storage_key: null,- size_bytes: null,- content_type: 'model/gltf-binary',- created_at: demo.createdAt,- updated_at: demo.createdAt,- thumbnail_url: demo.image,- model_url: demo.glbUrl,- url: demo.glbUrl,- cdn: true,- attribution: demo.attribution || null,- author: demo.author || null,- demo: true,- },- });- }const avatar = await getAvatar({ id, requesterId: auth?.userId });if (!avatar) return error(res, 404, 'not_found', 'avatar not found');const urlInfo = await resolveAvatarUrl(avatar);diff --git a/api/avatars/[id]/[action].js b/api/avatars/[id]/[action].jsindex 5c9ea4895..5134c3db7 100644--- a/api/avatars/[id]/[action].js+++ b/api/avatars/[id]/[action].js@@ -15,7 +15,6 @@ import { readStorageMode, storageModeSchema, defaultStorageMode } from '../../_limport { getAvatar, resolveAvatarUrl } from '../../_lib/avatars.js';import { r2, publicUrl } from '../../_lib/r2.js';import { env } from '../../_lib/env.js';-import { DEMO_AVATARS } from '../../_lib/demo-avatars.js';const PINATA_ENDPOINT = 'https://api.pinata.cloud/pinning/pinFileToIPFS';const UUID_RE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;@@ -32,9 +31,9 @@ export default wrap(async (req, res) => {if (typeof action === 'string' && /\.glb$/i.test(action)) action = 'glb';// Every sub-action below ends up querying `WHERE id = $1` against a uuid// column. A malformed id leaks Postgres 22P02 to the caller as a 500;- // short-circuit with a clean 404 unless it's a demo-fixture id.+ // short-circuit with a clean 404.const id = req.query?.id;- if (id && !UUID_RE.test(id) && !String(id).startsWith('avatar_demo_')) {+ if (id && !UUID_RE.test(id)) {return error(res, 404, 'not_found', 'avatar not found');}switch (action) {@@ -64,8 +63,7 @@ export default wrap(async (req, res) => {// ── agents (public agents wearing this avatar) ────────────────────────────// GET /api/avatars/:id/agents// Returns up to 12 public agents (is_public = true) whose avatar_id matches.-// Public endpoint, rate-limited by IP. Demo avatars never have wearers (they-// are seeded fixtures), so we short-circuit with an empty list.+// Public endpoint, rate-limited by IP.async function handleAgentsByAvatar(req, res) {if (cors(req, res, { methods: 'GET,OPTIONS' })) return;@@ -77,10 +75,6 @@ async function handleAgentsByAvatar(req, res) {const rl = await limits.publicIp(clientIp(req));if (!rl.success) return rateLimited(res, rl);- if (String(id).startsWith('avatar_demo_')) {- return json(res, 200, { agents: [] });- }-const rows = await sql`SELECT i.id, i.name, i.description, i.profile_image_url, i.created_at,i.erc8004_agent_id, i.chain_id@@ -521,7 +515,7 @@ async function resolveVersionsAuth(req) {// ── thumbnail ──────────────────────────────────────────────────────────────// GET /api/avatars/:id/thumbnail — 302 to the avatar's R2-hosted PNG poster.// Public/unlisted avatars: anyone. Private: owner (session or bearer) only.-// Demo avatars: redirect to the bundled demo image. No thumbnail → 404.+// No thumbnail → 404.async function handleThumbnail(req, res) {if (cors(req, res, { methods: 'GET,OPTIONS', credentials: true })) return;@@ -530,12 +524,6 @@ async function handleThumbnail(req, res) {const id = req.query?.id || new URL(req.url, 'http://x').pathname.split('/').filter(Boolean)[2];if (!id) return error(res, 400, 'invalid_request', 'avatar id required');- if (id.startsWith('avatar_demo_')) {- const demo = DEMO_AVATARS.find((a) => a.avatarId === id);- if (!demo?.image) return error(res, 404, 'not_found', 'demo avatar has no thumbnail');- return redirect(res, demo.image);- }-const [row] = await sql`SELECT id, owner_id, visibility, thumbnail_keyFROM avatars WHERE id = ${id} AND deleted_at IS NULL@@ -575,7 +563,6 @@ function redirect(res, url) {// Permission rules mirror handleThumbnail:// • public + unlisted: anyone// • private: owner only (session or bearer with avatars:read)-// • demo avatars: 302 to the bundled GLB urlasync function handleGlb(req, res) {// Reply with CORS for all origins. Browsers also need the preflight,// which the shared `cors()` helper doesn't open up to wildcard origins,@@ -593,14 +580,6 @@ async function handleGlb(req, res) {const id = req.query?.id || new URL(req.url, 'http://x').pathname.split('/').filter(Boolean)[2];if (!id) return error(res, 400, 'invalid_request', 'avatar id required');- if (String(id).startsWith('avatar_demo_')) {- const demo = DEMO_AVATARS.find((a) => a.avatarId === id);- if (!demo?.glbUrl) return error(res, 404, 'not_found', 'demo avatar has no glb');- // Demo avatars live in /public so the redirect target is same-origin- // and already CORS-clean.- return redirect(res, demo.glbUrl);- }-const avatar = await getAvatar({ id, requesterId: null });if (!avatar) return error(res, 404, 'not_found', 'avatar not found');diff --git a/api/billing/payout-wallets/[id].js b/api/billing/payout-wallets/[id].jsindex 515335a1f..defeae70b 100644--- a/api/billing/payout-wallets/[id].js+++ b/api/billing/payout-wallets/[id].js@@ -1,6 +1,7 @@import { sql } from '../../_lib/db.js';import { getSessionUser } from '../../_lib/auth.js';import { cors, json, method, wrap, error, rateLimited } from '../../_lib/http.js';+import { requireCsrf } from '../../_lib/csrf.js';import { limits, clientIp } from '../../_lib/rate-limit.js';export default wrap(async (req, res) => {@@ -10,6 +11,8 @@ export default wrap(async (req, res) => {const user = await getSessionUser(req);if (!user) return error(res, 401, 'unauthorized', 'sign in required');+ if (!(await requireCsrf(req, res, user.id))) return;+const rl = await limits.authIp(clientIp(req));if (!rl.success) return rateLimited(res, rl);diff --git a/api/coin/[mint]/cohorts.js b/api/coin/[mint]/cohorts.jsindex 51c021723..0425fa681 100644--- a/api/coin/[mint]/cohorts.js+++ b/api/coin/[mint]/cohorts.js@@ -109,13 +109,10 @@ async function serveLiveCohorts(req, res, { mint, agentToken }) {try {set = await liveHolderSet({ mint, network });} catch (e) {- // Helius unconfigured / RPC blip — typed, not a 500.- return error(- res,- 503,- 'holders_unavailable',- e?.message || 'holder data is temporarily unavailable',- );+ // Helius unconfigured / RPC blip — typed, not a 500. Never echo e.message:+ // web3.js/Helius errors embed the keyed RPC URL (…helius-rpc.com/?api-key=…).+ console.error('[coin/cohorts] live holder set failed', e?.message);+ return error(res, 503, 'holders_unavailable', 'holder data is temporarily unavailable');}// ── Overview: definitions + counts + concentration (public) ──────────────diff --git a/api/dashboard/prefs.js b/api/dashboard/prefs.jsindex 8b26ff39c..4e418b50d 100644--- a/api/dashboard/prefs.js+++ b/api/dashboard/prefs.js@@ -13,6 +13,7 @@import { getSessionUser, authenticateBearer, extractBearer } from '../_lib/auth.js';import { sql } from '../_lib/db.js';import { cors, json, method, readJson, wrap, error, rateLimited } from '../_lib/http.js';+import { requireCsrf } from '../_lib/csrf.js';import { limits } from '../_lib/rate-limit.js';import { parse } from '../_lib/validate.js';import { z } from 'zod';@@ -40,6 +41,10 @@ export default wrap(async (req, res) => {return json(res, 200, { prefs: row?.prefs || {} });}+ // Session-cookie writes need CSRF; bearer-token callers are exempt (the token+ // itself is the proof of intent and isn't auto-attached by browsers).+ if (auth.fromSession && !(await requireCsrf(req, res, auth.userId))) return;+const rl = await limits.prefsWrite(auth.userId);if (!rl.success) return rateLimited(res, rl);@@ -75,8 +80,8 @@ export default wrap(async (req, res) => {async function resolveAuth(req) {const session = await getSessionUser(req);- if (session) return { userId: session.id };+ if (session) return { userId: session.id, fromSession: true };const bearer = await authenticateBearer(extractBearer(req));- if (bearer) return { userId: bearer.userId };+ if (bearer) return { userId: bearer.userId, fromSession: false };return null;}diff --git a/api/demo-economy.js b/api/demo-economy.jsindex f3fdefbc6..594d0b55b 100644--- a/api/demo-economy.js+++ b/api/demo-economy.js@@ -63,48 +63,39 @@ async function fetchMarketBriefing() {}}+// The service NOVA actually buys from ORACLE: three.ws's own live Solana market+// briefing, delivered by fetchMarketBriefing() below. This is the real product+// the demo transacts — not a fabricated listing — so it is always present.+const THREEWS_BRIEFING_SERVICE = {+ name: 'Solana market briefing (live)',+ resource: 'https://three.ws/api/demo-economy',+ price: '0.001 SOL',+ network: 'solana',+};+// ── Bazaar service discovery ─────────────────────────────────────────────────+// Returns the real three.ws briefing service (always) plus any live listings+// pulled from the Coinbase x402 bazaar. If the bazaar is unreachable we say so+// honestly via bazaarAvailable:false — we never invent competitor listings.async function discoverServices() {try {const bazaar = new Bazaar();const { resources } = await bazaar.search({ query: 'crypto market data', maxItems: 20 });- const top = resources.slice(0, 4).map((r) => ({- name: r.description?.slice(0, 60) || r.resource?.split('/').pop() || 'Service',- resource: r.resource,- price: r.formattedPrice || r.price || '—',- network: r.network || 'base',- }));- if (top.length) return top;+ const listings = (resources || [])+ .map((r) => ({+ name: r.description?.slice(0, 60) || r.resource?.split('/').pop() || 'Service',+ resource: r.resource,+ price: r.formattedPrice || r.price || '—',+ network: r.network || 'base',+ }))+ .filter((s) => s.resource && s.resource !== THREEWS_BRIEFING_SERVICE.resource)+ .slice(0, 3);+ return { services: [THREEWS_BRIEFING_SERVICE, ...listings], bazaarAvailable: true };} catch {- /* fall through to demo data */+ // Live bazaar unreachable — degrade to an explicit "unavailable" signal.+ // The demo still transacts the real three.ws briefing service.+ return { services: [THREEWS_BRIEFING_SERVICE], bazaarAvailable: false };}- // Demo services (shown when bazaar is unreachable)- return [- {- name: 'Solana market briefing (live)',- resource: 'https://three.ws/api/demo-economy',- price: '0.001 SOL',- network: 'solana',- },- {- name: 'Token price oracle',- resource: 'https://three.ws/api/agents/x402/price',- price: '0.50 USDC',- network: 'base',- },- {- name: 'On-chain sentiment feed',- resource: 'https://three.ws/api/sentiment',- price: '0.25 USDC',- network: 'base',- },- {- name: 'Pump.fun trending coins',- resource: 'https://three.ws/api/pump/trending',- price: '0.10 USDC',- network: 'solana',- },- ];}// ── SSE helpers ───────────────────────────────────────────────────────────────@@ -151,6 +142,7 @@ export default wrap(async (req, res) => {res.flushHeaders?.();const pace = 900; // ms between narration beats+ const DEMO_LAMPORTS = 1000; // 0.000001 SOL — ~$0.0002, trivially cheaptry {// ── Step 1: Agents ready ─────────────────────────────────────────────@@ -163,17 +155,18 @@ export default wrap(async (req, res) => {await sleep(pace);// ── Step 2: Browse x402 bazaar ───────────────────────────────────────+ const { services, bazaarAvailable } = await discoverServices();sseWrite(res, 'step', {id: 'browsing_bazaar',label: 'Browsing x402 bazaar',- detail: 'NOVA is discovering available services on the Coinbase x402 network',+ detail: bazaarAvailable+ ? 'NOVA is discovering available services on the Coinbase x402 network'+ : 'Live bazaar unavailable — NOVA falls back to the three.ws briefing service',icon: '🔍',});-- const services = await discoverServices();await sleep(pace * 0.7);- sseWrite(res, 'bazaar', { services });+ sseWrite(res, 'bazaar', { services, bazaarAvailable });await sleep(pace);// ── Step 3: Service selected ─────────────────────────────────────────@@ -226,7 +219,6 @@ export default wrap(async (req, res) => {const connection = getConnection(cfg.rpcUrl);const keypair = loadAvatarKeypair(process.env.AVATAR_WALLET_SECRET);const sender = keypair.publicKey.toBase58();- const DEMO_LAMPORTS = 1000; // 0.000001 SOL — ~$0.0002, trivially cheapconst { lamports: balBefore } = await getSolBalance(connection,keypair.publicKey,@@ -272,12 +264,15 @@ export default wrap(async (req, res) => {if (sim) {// Explicit simulation: no fabricated signature, explorer link, addresses,- // or balances. The client renders this as "simulated / not configured".+ // or balances. We do surface the intended transfer amount (a real+ // constant, not invented tx data) so the panel isn't blank.payment = {simulated: true,reason: simReason,signature: null,explorer_url: null,+ amount_sol: (DEMO_LAMPORTS / 1e9).toFixed(6),+ amount_usd: '~$0.0002',};sseWrite(res, 'wallet', {configured: false,diff --git a/api/demo/economy.js b/api/demo/economy.jsindex 64d59eee0..2db80d3f3 100644--- a/api/demo/economy.js+++ b/api/demo/economy.js@@ -158,9 +158,12 @@ export default wrap(async (req, res) => {await delay(900);// Phase 2: payment+ let paid = false;+ let demoMode = false;if (!cfgB.configured || !cfgA.configured) {+ demoMode = true;emit(res, 'demo_mode', {- text: 'Running in demo mode — set AGENT_B_WALLET_SECRET to enable real on-chain payments.',+ text: 'Demo mode — live data only, no real on-chain payment (agent wallets not configured).',});} else {emit(res, 'paying', {@@ -176,6 +179,9 @@ export default wrap(async (req, res) => {const needed = TRADE_SOL * LAMPORTS_PER_SOL + 15_000;if (bal.lamports < needed) {emit(res, 'error', {+ code: 'underfunded',+ fundAddress: cfgB.address,+ explorerUrl: explorerAccountUrl(cfgB.address, 'solana'),text: `Trader wallet underfunded (${bal.sol.toFixed(5)} SOL). Fund ${cfgB.address} and retry.`,});res.end();@@ -190,6 +196,7 @@ export default wrap(async (req, res) => {memo: 'three.ws agent-economy: data purchase',});+ paid = true;emit(res, 'paid', {agent: 'B',signature: sig,@@ -234,7 +241,11 @@ export default wrap(async (req, res) => {emit(res, 'done', {markets,tradeSol: TRADE_SOL,- text: 'Trade complete. Data delivered, payment settled on-chain.',+ paid,+ demo: demoMode,+ text: paid+ ? 'Trade complete. Data delivered, payment settled on-chain.'+ : 'Demo complete. Live data delivered — no real payment occurred.',});res.end();diff --git a/api/developer/webhooks.js b/api/developer/webhooks.jsindex 7a5c5e845..12ae54ebd 100644--- a/api/developer/webhooks.js+++ b/api/developer/webhooks.js@@ -3,6 +3,7 @@import { cors, error, json, method, readJson, wrap } from '../_lib/http.js';import { getSessionUser } from '../_lib/auth.js';+import { requireCsrf } from '../_lib/csrf.js';import { sql } from '../_lib/db.js';import { randomToken } from '../_lib/crypto.js';import { EVENT_TYPES } from '../_lib/webhook-dispatch.js';@@ -45,6 +46,8 @@ export default wrap(async function handler(req, res) {if (!method(req, res, ['POST'])) return;+ if (!(await requireCsrf(req, res, user.id))) return;+let body;try {body = await readJson(req, 5000);diff --git a/api/developer/webhooks/[id].js b/api/developer/webhooks/[id].jsindex ac2639b98..6926cf9ee 100644--- a/api/developer/webhooks/[id].js+++ b/api/developer/webhooks/[id].js@@ -4,6 +4,7 @@import { cors, error, json, method, readJson, wrap } from '../../_lib/http.js';import { getSessionUser } from '../../_lib/auth.js';+import { requireCsrf } from '../../_lib/csrf.js';import { sql } from '../../_lib/db.js';import { EVENT_TYPES } from '../../_lib/webhook-dispatch.js';import { assertPublicHttpsUrl } from '../../_lib/ssrf.js';@@ -39,6 +40,8 @@ export default wrap(async function handler(req, res) {}if (req.method === 'PATCH') {+ if (!(await requireCsrf(req, res, user.id))) return;+let body;try {body = await readJson(req, 5000);@@ -100,6 +103,8 @@ export default wrap(async function handler(req, res) {}if (req.method === 'DELETE') {+ if (!(await requireCsrf(req, res, user.id))) return;+await sql`delete from developer_webhooks where id = ${id} and user_id = ${user.id}`;return json(res, 200, { deleted: true });}diff --git a/api/discover-detail.js b/api/discover-detail.jsindex 78ecafaec..464753ffd 100644--- a/api/discover-detail.js+++ b/api/discover-detail.js@@ -16,7 +16,6 @@ import { sql } from './_lib/db.js';import { cors, method, wrap } from './_lib/http.js';import { CHAIN_BY_ID, tokenExplorerUrl, addressExplorerUrl } from './_lib/erc8004-chains.js';import { publicUrl } from './_lib/r2.js';-import { DEMO_AVATARS } from './_lib/demo-avatars.js';import { env } from './_lib/env.js';export default wrap(async (req, res) => {@@ -117,57 +116,51 @@ export default wrap(async (req, res) => {} else if (kind === 'avatar') {if (!id) return sendShell(res, origin, null, null, null);- // Demo avatar- const demo = DEMO_AVATARS.find((a) => String(a.avatarId) === String(id));- if (demo) {- item = demo;- } else {- const rows = await sql`- SELECT a.id, a.slug, a.name, a.description, a.storage_key, a.thumbnail_key,- a.tags, a.created_at, a.source,- coalesce(a.featured, false) AS featured,- coalesce(a.view_count, 0) AS view_count,- u.username AS owner_username,- u.display_name AS owner_display_name,- u.wallet_address AS owner_wallet- FROM avatars a- LEFT JOIN users u ON u.id = a.owner_id AND u.deleted_at IS NULL- WHERE a.deleted_at IS NULL AND a.visibility = 'public' AND a.id = ${id}- LIMIT 1- `.catch(() => []);-- if (rows.length) {- const r = rows[0];- const glb = publicUrl(r.storage_key);- const handle = r.owner_username- ? `@${r.owner_username}`- : r.owner_wallet- ? shortAddr(r.owner_wallet)- : null;- item = {- kind: 'avatar',- avatarId: r.id,- slug: r.slug,- name: r.name,- description: r.description || '',- image: r.thumbnail_key ? publicUrl(r.thumbnail_key) : null,- glbUrl: glb,- has3d: true,- tags: r.tags || [],- source: r.source || null,- featured: r.featured === true || r.featured === 't',- viewCount: Number(r.view_count) || 0,- createdAt: r.created_at,- viewerUrl: `/app#model=${encodeURIComponent(glb)}`,- author: handle- ? {- handle,- displayName: r.owner_display_name || r.owner_username || handle,- profileUrl: r.owner_username ? `/u/${r.owner_username}` : null,- }- : null,- };- }+ const rows = await sql`+ SELECT a.id, a.slug, a.name, a.description, a.storage_key, a.thumbnail_key,+ a.tags, a.created_at, a.source,+ coalesce(a.featured, false) AS featured,+ coalesce(a.view_count, 0) AS view_count,+ u.username AS owner_username,+ u.display_name AS owner_display_name,+ u.wallet_address AS owner_wallet+ FROM avatars a+ LEFT JOIN users u ON u.id = a.owner_id AND u.deleted_at IS NULL+ WHERE a.deleted_at IS NULL AND a.visibility = 'public' AND a.id = ${id}+ LIMIT 1+ `.catch(() => []);++ if (rows.length) {+ const r = rows[0];+ const glb = publicUrl(r.storage_key);+ const handle = r.owner_username+ ? `@${r.owner_username}`+ : r.owner_wallet+ ? shortAddr(r.owner_wallet)+ : null;+ item = {+ kind: 'avatar',+ avatarId: r.id,+ slug: r.slug,+ name: r.name,+ description: r.description || '',+ image: r.thumbnail_key ? publicUrl(r.thumbnail_key) : null,+ glbUrl: glb,+ has3d: true,+ tags: r.tags || [],+ source: r.source || null,+ featured: r.featured === true || r.featured === 't',+ viewCount: Number(r.view_count) || 0,+ createdAt: r.created_at,+ viewerUrl: `/app#model=${encodeURIComponent(glb)}`,+ author: handle+ ? {+ handle,+ displayName: r.owner_display_name || r.owner_username || handle,+ profileUrl: r.owner_username ? `/u/${r.owner_username}` : null,+ }+ : null,+ };}if (item) {diff --git a/api/embed/resolve.js b/api/embed/resolve.jsindex d9930952c..9fa66ad61 100644--- a/api/embed/resolve.js+++ b/api/embed/resolve.js@@ -18,7 +18,6 @@ import { cors, method, wrap, error, rateLimited } from '../_lib/http.js';import { limits, clientIp } from '../_lib/rate-limit.js';import { CHAIN_BY_ID } from '../_lib/erc8004-chains.js';import { publicUrl } from '../_lib/r2.js';-import { DEMO_AVATARS } from '../_lib/demo-avatars.js';const ONCHAIN_RE = /^(?:eip155:)?(\d{1,9})[:/](\d{1,12})$/;const AVATAR_RE = /^avatar:([a-zA-Z0-9_-]{3,64})$/;@@ -68,21 +67,6 @@ export default wrap(async (req, res) => {const avatar = id.match(AVATAR_RE);if (avatar) {const avatarId = avatar[1];- const demo = DEMO_AVATARS.find((a) => String(a.avatarId) === String(avatarId));- if (demo) {- return embedJson(res, {- kind: 'avatar',- id: `avatar:${demo.avatarId}`,- name: demo.name,- description: demo.description || '',- glbUrl: demo.glbUrl || null,- poster: demo.image || null,- has3d: true,- x402: false,- passportUrl: `/avatars/${demo.avatarId}`,- });- }-// avatars.id is a uuid column — a non-UUID id here raises Postgres 22P02// (invalid input syntax) and surfaces as a 500. Treat it as not-found.if (!UUID_RE.test(avatarId)) return error(res, 404, 'not_found', 'avatar not found');diff --git a/api/explore-item.js b/api/explore-item.jsindex 9f48491ca..84ada38c3 100644--- a/api/explore-item.js+++ b/api/explore-item.js@@ -11,7 +11,6 @@ import { cors, json, method, wrap, error, rateLimited } from './_lib/http.js';import { limits, clientIp } from './_lib/rate-limit.js';import { CHAIN_BY_ID, tokenExplorerUrl, addressExplorerUrl } from './_lib/erc8004-chains.js';import { publicUrl } from './_lib/r2.js';-import { DEMO_AVATARS } from './_lib/demo-avatars.js';export default wrap(async (req, res) => {if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;@@ -75,10 +74,6 @@ export default wrap(async (req, res) => {}if (kind === 'avatar') {- // Check demo avatars first (no DB entry)- const demo = DEMO_AVATARS.find((a) => String(a.avatarId) === String(id));- if (demo) return json(res, 200, { item: demo });-const rows = await sql`SELECT a.id, a.slug, a.name, a.description, a.storage_key, a.thumbnail_key,a.tags, a.created_at, a.source,diff --git a/api/explore.js b/api/explore.jsindex 211b2940f..46642f096 100644--- a/api/explore.js+++ b/api/explore.js@@ -29,7 +29,6 @@ import { cors, json, method, wrap, error, rateLimited } from './_lib/http.js';import { limits, clientIp } from './_lib/rate-limit.js';import { CHAIN_BY_ID, tokenExplorerUrl, addressExplorerUrl } from './_lib/erc8004-chains.js';import { publicUrl, isLegacyOgThumbnailKey } from './_lib/r2.js';-import { DEMO_AVATARS } from './_lib/demo-avatars.js';// A stored thumbnail_key only resolves to a real image when it's a relative R2// key. Legacy poisoned keys (absolute, origin-pointing `*_og.png`) 404, so drop@@ -267,24 +266,6 @@ export default wrap(async (req, res) => {// Cap to requested limit after filtering (we overfetch above).if (avatarItems.length > limit + 1) avatarItems = avatarItems.slice(0, limit + 1);- // Inject demo avatars on the first page when the source allows avatars.- // Filter by query and/or category if set so search/filter still feel correct.- if (includeAvatars && !cursorDate) {- const qLower = q.toLowerCase();- let matching = DEMO_AVATARS;- if (q) {- matching = matching.filter(- (a) =>- a.name.toLowerCase().includes(qLower) ||- a.description.toLowerCase().includes(qLower),- );- }- if (categoryFilter) {- matching = matching.filter((a) => categoryFilter.includes(a.modelCategory || 'avatar'));- }- avatarItems.push(...matching);- }-const merged = [...onchainItems, ...solanaItems, ...avatarItems].sort((a, b) => new Date(b.sortDate).getTime() - new Date(a.sortDate).getTime(),);@@ -306,7 +287,7 @@ export default wrap(async (req, res) => {SELECT count(*)::text as total FROM agent_identitiesWHERE deleted_at IS NULL AND meta->>'chain_type' = 'solana' AND meta->>'network' = 'mainnet'`;- const avatarCount = Number(avatarTotal) + DEMO_AVATARS.length;+ const avatarCount = Number(avatarTotal);const solCount = Number(solanaTotal);const allTotal = Number(onchainTotal) + solCount + avatarCount;const threeDTotal = Number(onchain3d) + avatarCount;diff --git a/api/notifications/[id]/read.js b/api/notifications/[id]/read.jsindex 42da1d90b..fb57e31c8 100644--- a/api/notifications/[id]/read.js+++ b/api/notifications/[id]/read.js@@ -3,6 +3,7 @@import { sql } from '../../_lib/db.js';import { getSessionUser } from '../../_lib/auth.js';import { cors, json, method, wrap, error } from '../../_lib/http.js';+import { requireCsrf } from '../../_lib/csrf.js';export default wrap(async (req, res) => {if (cors(req, res, { methods: 'POST,OPTIONS', credentials: true })) return;@@ -11,6 +12,8 @@ export default wrap(async (req, res) => {const user = await getSessionUser(req);if (!user) return error(res, 401, 'unauthorized', 'sign in required');+ if (!(await requireCsrf(req, res, user.id))) return;+const id = req.query?.id;if (!id) return error(res, 400, 'validation_error', 'id required');diff --git a/api/permissions/[action].js b/api/permissions/[action].jsindex d181c828a..8792fffa4 100644--- a/api/permissions/[action].js+++ b/api/permissions/[action].js@@ -19,6 +19,7 @@ import { evmFallbackProvider } from '../_lib/evm/rpc.js';import { sql } from '../_lib/db.js';import { getSessionUser, authenticateBearer, extractBearer, hasScope } from '../_lib/auth.js';import { cors, json, method, readJson, wrap, error, rateLimited } from '../_lib/http.js';+import { requireCsrf } from '../_lib/csrf.js';import { limits, clientIp } from '../_lib/rate-limit.js';import { parse } from '../_lib/validate.js';import { env } from '../_lib/env.js';@@ -108,6 +109,8 @@ async function handleGrant(req, res) {const user = await getSessionUser(req, res);if (!user) return error(res, 401, 'unauthorized', 'sign in required');+ if (!(await requireCsrf(req, res, user.id))) return;+const rl = await limits.permissionsGrant(user.id);if (!rl.success) return rateLimited(res, rl);@@ -1003,6 +1006,8 @@ async function handleRevoke(req, res) {const user = await getSessionUser(req, res);if (!user) return error(res, 401, 'unauthorized', 'sign in required');+ if (!(await requireCsrf(req, res, user.id))) return;+const rl = await limits.permissionsRevoke(user.id);if (!rl.success) return rateLimited(res, rl);diff --git a/api/pump/[action].js b/api/pump/[action].jsindex 25b89cd69..b9d6f7286 100644--- a/api/pump/[action].js+++ b/api/pump/[action].js@@ -55,7 +55,7 @@ import { z } from 'zod';import { Keypair, PublicKey, LAMPORTS_PER_SOL } from '@solana/web3.js';import { sql } from '../_lib/db.js';import { getSessionUser, authenticateBearer, extractBearer } from '../_lib/auth.js';-import { cors, json, method, readJson, wrap, error, rateLimited } from '../_lib/http.js';+import { cors, json, method, readJson, wrap, error, rateLimited, respondError } from '../_lib/http.js';import { putObject, publicUrl as r2PublicUrl } from '../_lib/r2.js';import { env } from '../_lib/env.js';import { limits, clientIp } from '../_lib/rate-limit.js';@@ -269,8 +269,9 @@ async function handleBalances(req, res) {},});} catch (err) {- // Most common: agent not yet bound to mint → PDA missing.- return error(res, 502, 'pump_agent_error', err.message || 'pump-agent SDK error');+ // Most common: agent not yet bound to mint → PDA missing. Sanitize the 5xx —+ // web3.js network errors embed the keyed Helius RPC URL in err.message.+ return respondError(res, 502, 'pump_agent_error', err);}}@@ -1814,7 +1815,7 @@ async function handleLaunchAgent(req, res) {} catch (err) {console.error('[pump/launch-agent] send failed', err);await releaseSpend(reservation.reservationId);- return error(res, 502, 'rpc_error', err?.message || 'transaction failed');+ return respondError(res, 502, 'rpc_error', err);}const mintAddr = mint.toBase58();@@ -3114,7 +3115,7 @@ async function handleStrategyBacktest(req, res) {try {mints = await resolveStrategyMints(rt.invoke, body.strategy, body.mints, body.limit);} catch (e) {- return error(res, 502, 'upstream_error', e.message);+ return respondError(res, 502, 'upstream_error', e);}if (!mints.length) return error(res, 422, 'no_candidates', 'no mints to backtest');@@ -4648,7 +4649,7 @@ async function handleCollectCreatorFeeAgent(req, res) {explorer: `https://solscan.io/tx/${signature}${body.network === 'devnet' ? '?cluster=devnet' : ''}`,});} catch (e) {- return error(res, e.status || 502, e.code || 'rpc_error', e.message || 'collect failed');+ return respondError(res, e.status || 502, e.code || 'rpc_error', e);}}@@ -4694,7 +4695,7 @@ async function handleDistributeCreatorFeesAgent(req, res) {explorer: `https://solscan.io/tx/${signature}${body.network === 'devnet' ? '?cluster=devnet' : ''}`,});} catch (e) {- return error(res, e.status || 502, e.code || 'rpc_error', e.message || 'distribute failed');+ return respondError(res, e.status || 502, e.code || 'rpc_error', e);}}@@ -4901,7 +4902,7 @@ async function handleGithubResolve(req, res) {type: j.type || 'User',});} catch (e) {- return error(res, 502, 'github_error', e.message || 'github lookup failed');+ return respondError(res, 502, 'github_error', e);}}diff --git a/api/registry/resolve.js b/api/registry/resolve.jsindex 1afa167c7..8dd04d342 100644--- a/api/registry/resolve.js+++ b/api/registry/resolve.js@@ -137,6 +137,9 @@ async function build({ name, description, agentId, meta, avatar, ownerFallback }return {name: name || null,description: description || '',+ // On-platform identity: the canonical agent profile lives at+ // /agents/:id. Null for bare on-chain assets that aren't three.ws agents.+ agentId: agentId || null,genesisRank: await genesisRankFor(agentId),modelUrl,imageUrl,@@ -318,6 +321,7 @@ export default wrap(async (req, res) => {return json(res, 200, {name: null,description: '',+ agentId: null,genesisRank: null,modelUrl: null,imageUrl: null,diff --git a/api/tx/explain.js b/api/tx/explain.jsindex fb21854fb..fd390bdfb 100644--- a/api/tx/explain.js+++ b/api/tx/explain.js@@ -31,6 +31,14 @@ export default wrap(async (req, res) => {return error(res, 400, 'bad_request', 'chain must be solana or evm');}if (!sig) return error(res, 400, 'bad_request', 'sig required');+ // Validate the signature shape before forwarding to a keyed upstream so a+ // malformed value is rejected here, not bounced through Helius/Alchemy.+ if (chain === 'solana' && !/^[1-9A-HJ-NP-Za-km-z]{64,96}$/.test(sig)) {+ return error(res, 400, 'bad_request', 'sig must be a base58 transaction signature');+ }+ if (chain === 'evm' && !/^0x[0-9a-fA-F]{64}$/.test(sig)) {+ return error(res, 400, 'bad_request', 'sig must be a 0x-prefixed 32-byte tx hash');+ }let txData;@@ -44,8 +52,8 @@ export default wrap(async (req, res) => {},);if (!resp.ok) {- const txt = await resp.text();- return error(res, 502, 'upstream_error', `Helius error ${resp.status}: ${txt}`);+ console.error('[tx/explain] Helius error', resp.status, await resp.text().catch(() => ''));+ return error(res, 502, 'upstream_error', 'transaction lookup failed upstream');}const data = await resp.json();if (!Array.isArray(data) || data.length === 0) {@@ -80,7 +88,8 @@ export default wrap(async (req, res) => {const [txJson, receiptJson] = await Promise.all([txResp.json(), receiptResp.json()]);if (txJson.error) {- return error(res, 502, 'upstream_error', txJson.error.message || 'RPC error');+ console.error('[tx/explain] Alchemy RPC error', txJson.error?.message);+ return error(res, 502, 'upstream_error', 'transaction lookup failed upstream');}if (!txJson.result) {return error(res, 404, 'not_found', 'Transaction not found');diff --git a/character-studio/src/library/ktx.js b/character-studio/src/library/ktx.jsindex f3311a2d9..7ad5a77cd 100644--- a/character-studio/src/library/ktx.js+++ b/character-studio/src/library/ktx.js@@ -1,3 +1,4 @@+/* global LIBKTX -- optional external Khronos KTX (emscripten) global, loaded as a separate script; guarded by `typeof` before use */class KtxDecoder {constructor (context, externalKtxlib) {diff --git a/contracts/src/IdentityRegistry.sol b/contracts/src/IdentityRegistry.solindex 060ee5bbf..2ed5c798a 100644--- a/contracts/src/IdentityRegistry.sol+++ b/contracts/src/IdentityRegistry.sol@@ -82,6 +82,7 @@ contract IdentityRegistry is ERC721Enumerable, EIP712, ReentrancyGuard {error ZeroDeposit();error InsufficientAgentBalance();error DirectTransferRejected();+ error EthTransferFailed();// ---------------------------------------------------------------------// Constructor@@ -243,7 +244,8 @@ contract IdentityRegistry is ERC721Enumerable, EIP712, ReentrancyGuard {if (ownerOf(agentId) != msg.sender) revert NotAgentOwner();if (agentBalance[agentId] < amountWei) revert InsufficientAgentBalance();agentBalance[agentId] -= amountWei;- recipient.transfer(amountWei);+ (bool ok, ) = recipient.call{value: amountWei}("");+ if (!ok) revert EthTransferFailed();emit AgentWithdrawal(agentId, recipient, amountWei);}@@ -271,7 +273,8 @@ contract IdentityRegistry is ERC721Enumerable, EIP712, ReentrancyGuard {if (agentBalance[agentId] < amountWei) revert InsufficientAgentBalance();spendAllowance[agentId][msg.sender] -= amountWei;agentBalance[agentId] -= amountWei;- recipient.transfer(amountWei);+ (bool ok, ) = recipient.call{value: amountWei}("");+ if (!ok) revert EthTransferFailed();emit AgentPayment(agentId, msg.sender, recipient, amountWei, memo);}diff --git a/data/changelog.json b/data/changelog.jsonindex 14cc5ae44..a4dff3a90 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,10 +1,48 @@{- "$comment": "Curated changelog entries for three.ws \u2014 the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",+ "$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [{"date": "2026-06-18",- "title": "Avatar Studio no longer crashes on NFT-gated traits, wallet checks, or VRM0 models",- "summary": "An audit of Avatar Studio turned up six places where it would throw and stop instead of working: checking whether a trait is NFT-locked, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, and loading older VRM0 avatars all hit undefined-variable errors. All six are fixed, so locked-trait checks, wallet-ownership gating, EVM wallet connect, and VRM0 model loading now run cleanly.",+ "title": "Agent lookup now matches the rest of the site and links straight to the agent’s page",+ "summary": "The agent lookup tool used to render as a stark white page that ignored your light/dark theme and had no site navigation or footer. It now uses the same chrome and theme tokens as every other page, so it looks on-brand in both modes. More importantly, when a lookup resolves an agent it now shows a prominent “Open agent page” button that takes you to that agent’s profile on three.ws — so resolving an agent no longer dead-ends on external explorer links. Copy buttons also tell you if a copy fails instead of staying silent.",+ "tags": [+ "improvement"+ ],+ "link": "/lookup"+ },+ {+ "date": "2026-06-18",+ "title": "GMGN smart-money feed: click the status pill to reconnect, clearer custom-avatar errors",+ "summary": "On the GMGN smart-money page you can now click the connection-status pill to reconnect to the live feed immediately instead of waiting out the automatic retry. The feed sidebar no longer shows a move cursor that did nothing, and pasting a bad custom-avatar URL now shows an inline message right under the field (and checks the link points to a .glb, .gltf, or .vrm model) instead of a browser pop-up.",+ "tags": [+ "improvement"+ ],+ "link": "/gmgn"+ },+ {+ "date": "2026-06-18",+ "title": "Launch pages — accurate guidance, direct agent links, and a launcher loop",+ "summary": "Tightened the launch and 3D-coin pages. The launcher's empty state now matches what you actually see beside it (an agent picker on /launch, an avatar gallery in the studio) instead of mismatched 'pick an avatar' copy. 'Agent page' links from a launched or existing token now go straight to the canonical agent page with no redirect hop. The Launches feed gained a clear 'Launch a coin' call-to-action, and the 3D coin viewer's empty/error states now point you to the real coin feed (/launches) rather than the demo, with a 'Launch your own' link added to its HUD. Coin logos that fail on one IPFS gateway now retry a second gateway before falling back to a plain disc.",+ "tags": [+ "improvement",+ "fix"+ ],+ "link": "/launches"+ },+ {+ "date": "2026-06-18",+ "title": "Security and display fixes from a full page-by-page audit",+ "summary": "We audited every page on three.ws and fixed what we found. The Characters page now safely escapes character names, descriptions, token symbols and images, so a maliciously-named character can no longer run code in your browser. The homepage showcase only ever shows real public avatars now — if the live feed is quiet it falls back to its Browse and Create links instead of placeholder demo agents. Marketplace Analytics no longer flashes raw template text while loading and shows a clear retry message if its data can't be reached. We also fixed dead IBM-suite links on the Features page.",+ "tags": [+ "security",+ "fix"+ ],+ "link": "/characters"+ },+ {+ "date": "2026-06-18",+ "title": "Avatar Studio no longer crashes on NFT-gated traits, wallet checks, exports, or VRM0 models",+ "summary": "An audit of Avatar Studio turned up twelve places where it would throw and stop instead of working: checking whether a trait is NFT-locked, looking up traits and model parts, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, exporting a GLB, recovering from a failed Solana transaction, decoding KTX2 textures, and loading older VRM0 avatars all hit undefined-variable errors. All twelve are fixed, so trait selection, wallet-ownership gating, EVM wallet connect, model export, and VRM0 loading now run cleanly.","tags": ["fix"],@@ -198,7 +236,7 @@{"date": "2026-06-18","title": "Bundle specific skills into your subscription plans",- "summary": "When you create or edit a subscription plan in the agent editor's Monetization tab, you can now tick exactly which of your agent's skills the plan includes. Subscribers to that plan get unlimited access to those skills for the life of their subscription, and the plan list shows what each plan bundles at a glance \u2014 so you can offer a focused starter plan and a fuller pro plan side by side.",+ "summary": "When you create or edit a subscription plan in the agent editor's Monetization tab, you can now tick exactly which of your agent's skills the plan includes. Subscribers to that plan get unlimited access to those skills for the life of their subscription, and the plan list shows what each plan bundles at a glance — so you can offer a focused starter plan and a fuller pro plan side by side.","tags": ["feature","improvement"@@ -664,7 +702,7 @@{"date": "2026-06-17","title": "Tag mini-game in /play worlds",- "summary": "Server-authoritative tag comes to every /play world. When two or more players are in the same room, a random player becomes 'it'. Walk close to another player and tag transfers \u2014 the server validates proximity on authoritative positions so no client can cheat. The tagged player gets a red glow ring under their avatar and a \ud83c\udfc3 IT label above their head, visible to everyone. A 'YOU'RE IT!' alert flashes on your screen the moment you're tagged, and a 2-second immunity window prevents instant re-tagging. The tag HUD (bottom-right) shows who's currently 'it' and a live leaderboard of cumulative time-as-it for the session.",+ "summary": "Server-authoritative tag comes to every /play world. When two or more players are in the same room, a random player becomes 'it'. Walk close to another player and tag transfers — the server validates proximity on authoritative positions so no client can cheat. The tagged player gets a red glow ring under their avatar and a 🏃 IT label above their head, visible to everyone. A 'YOU'RE IT!' alert flashes on your screen the moment you're tagged, and a 2-second immunity window prevents instant re-tagging. The tag HUD (bottom-right) shows who's currently 'it' and a live leaderboard of cumulative time-as-it for the session.","tags": ["feature"],@@ -672,8 +710,8 @@},{"date": "2026-06-17",- "title": "Creator revenue splits \u2014 earn USDC when your coin's cosmetics sell",- "summary": "When a player buys a premium avatar cosmetic inside one of your coin's /play worlds, a configurable share of the settled USDC is paid out to your wallet on-chain \u2014 no simulated balance, a real Solana transfer. Default split is 50 %; creators can sign a message to adjust their share (up to 90 %). The Monetize dashboard now includes a Creator Earnings panel showing lifetime + 30-day totals, per-cosmetic breakdown, and payout status with on-chain tx links. A new Rarest Fits leaderboard in the shop overlay ranks the scarcest cosmetics, top collectors by rarity-weighted flex score, and top earning creators.",+ "title": "Creator revenue splits — earn USDC when your coin's cosmetics sell",+ "summary": "When a player buys a premium avatar cosmetic inside one of your coin's /play worlds, a configurable share of the settled USDC is paid out to your wallet on-chain — no simulated balance, a real Solana transfer. Default split is 50 %; creators can sign a message to adjust their share (up to 90 %). The Monetize dashboard now includes a Creator Earnings panel showing lifetime + 30-day totals, per-cosmetic breakdown, and payout status with on-chain tx links. A new Rarest Fits leaderboard in the shop overlay ranks the scarcest cosmetics, top collectors by rarity-weighted flex score, and top earning creators.","tags": ["feature"],@@ -682,7 +720,7 @@{"date": "2026-06-17","title": "Dance floor in /play worlds",- "summary": "A synchronized dance floor pad now appears in /play worlds, near the coin totem. Step onto the glowing circular stage and a \ud83e\udea9 Dance button appears in your HUD. Press it to arm \u2014 when the server's 4-second beat tick fires, everyone armed on the floor crossfades to the same dance clip at the same moment. Leave the floor or press again to stop. The pad features animated emissive tiles and pulsing coloured lights that react to every beat.",+ "summary": "A synchronized dance floor pad now appears in /play worlds, near the coin totem. Step onto the glowing circular stage and a 🪩 Dance button appears in your HUD. Press it to arm — when the server's 4-second beat tick fires, everyone armed on the floor crossfades to the same dance clip at the same moment. Leave the floor or press again to stop. The pad features animated emissive tiles and pulsing coloured lights that react to every beat.","tags": ["feature"],@@ -691,7 +729,7 @@{"date": "2026-06-17","title": "Kickable beach ball in every /play world",- "summary": "A shared beach ball now spawns at the centre of every /play world. Walk into it to kick it \u2014 the server runs authoritative physics with gravity, friction, and boundary bounces, so all players see the same trajectory in sync. The ball auto-respawns at world centre if it rolls out of bounds.",+ "summary": "A shared beach ball now spawns at the centre of every /play world. Walk into it to kick it — the server runs authoritative physics with gravity, friction, and boundary bounces, so all players see the same trajectory in sync. The ball auto-respawns at world centre if it rolls out of bounds.","tags": ["feature"],@@ -709,7 +747,7 @@{"date": "2026-06-17","title": "Build structures, snap blocks, and share your coin world creation",- "summary": "The /play building layer now ships a full structures system: blocks snap to a 1.5m grid and rotation locks to quarter-turns so pieces always line up. A structures toolbar above the block hotbar gives you one-click composite pieces \u2014 Wall (4\u00d73), Floor (4\u00d74), Stairs (4-step), and Doorway \u2014 that stamp a whole shape at once with a live rotatable footprint preview. Large builds stay smooth because every block type is drawn as a single instanced mesh regardless of how many you place. The share button captures an offscreen screenshot of your build, lets you name it, copy a deep link, download the image, or publish it to this coin's featured builds \u2014 a new per-world gallery (with loading skeleton, empty, and error states) that links every shared creation back into the world so others can drop straight in.",+ "summary": "The /play building layer now ships a full structures system: blocks snap to a 1.5m grid and rotation locks to quarter-turns so pieces always line up. A structures toolbar above the block hotbar gives you one-click composite pieces — Wall (4×3), Floor (4×4), Stairs (4-step), and Doorway — that stamp a whole shape at once with a live rotatable footprint preview. Large builds stay smooth because every block type is drawn as a single instanced mesh regardless of how many you place. The share button captures an offscreen screenshot of your build, lets you name it, copy a deep link, download the image, or publish it to this coin's featured builds — a new per-world gallery (with loading skeleton, empty, and error states) that links every shared creation back into the world so others can drop straight in.","tags": ["feature","improvement"@@ -719,7 +757,7 @@{"date": "2026-06-17","title": "Avatars now wear hats, glasses, and earrings in every coin world",- "summary": "Cosmetic accessories \u2014 baseball cap, beanie, cowboy hat, round frames, shades, hoop earrings, stud earrings \u2014 are now fully rendered on every avatar in the shared worlds. Each GLB is auto-fitted to the avatar's head bone so accessories track movement and animations on any rig. Wear state syncs in real time: equipping an item shows it on your head for everyone, survives avatar swaps, and persists across sessions. A new setCosmetics network call lets the client broadcast a full loadout in one shot; the server re-validates ownership before publishing, so an unowned item can never appear on a player.",+ "summary": "Cosmetic accessories — baseball cap, beanie, cowboy hat, round frames, shades, hoop earrings, stud earrings — are now fully rendered on every avatar in the shared worlds. Each GLB is auto-fitted to the avatar's head bone so accessories track movement and animations on any rig. Wear state syncs in real time: equipping an item shows it on your head for everyone, survives avatar swaps, and persists across sessions. A new setCosmetics network call lets the client broadcast a full loadout in one shot; the server re-validates ownership before publishing, so an unowned item can never appear on a player.","tags": ["feature"],@@ -728,7 +766,7 @@{"date": "2026-06-17","title": "Emoji reactions now float above avatars in every coin world",- "summary": "Tap any of the 6 reaction buttons (\ud83c\udf89 \ud83d\ude02 \ud83d\udd25 \u2764\ufe0f \ud83d\udc4f \ud83e\udd14) to broadcast a floating emoji that rises above your avatar for everyone in the room to see. The \ud83c\udf89 reaction also triggers a small confetti burst. Reactions are server-rate-limited so the world stays readable when multiple people react at once; the button dims briefly after each tap to signal that the next one is queued. Keyboard- and screen-reader-accessible; works on touch and desktop.",+ "summary": "Tap any of the 6 reaction buttons (🎉 😂 🔥 ❤️ 👏 🤔) to broadcast a floating emoji that rises above your avatar for everyone in the room to see. The 🎉 reaction also triggers a small confetti burst. Reactions are server-rate-limited so the world stays readable when multiple people react at once; the button dims briefly after each tap to signal that the next one is queued. Keyboard- and screen-reader-accessible; works on touch and desktop.","tags": ["feature"],@@ -736,8 +774,8 @@},{"date": "2026-06-17",- "title": "Build mode \u2014 place, rotate, and delete props in every coin world",- "summary": "Every /play coin world now has a build mode for free-standing props. Press B (or tap the \u26cf button) to open the prop palette: pick from 12 hand-crafted primitives (crate, barrel, planter, lamp, bench, pillar, arch, ramp, sign, crystal, stage, pole) or browse thousands of community gallery models that stream in as you scroll. A translucent ghost preview snaps to the floor grid under your cursor so you always know exactly where a prop will land \u2014 green when the placement is valid, red when it's outside the world radius. Press R to quarter-turn the ghost before committing. Click or tap to place; right-click or hold to remove a prop you placed. Props appear for everyone instantly through the shared object channel and survive server restarts.",+ "title": "Build mode — place, rotate, and delete props in every coin world",+ "summary": "Every /play coin world now has a build mode for free-standing props. Press B (or tap the ⛏ button) to open the prop palette: pick from 12 hand-crafted primitives (crate, barrel, planter, lamp, bench, pillar, arch, ramp, sign, crystal, stage, pole) or browse thousands of community gallery models that stream in as you scroll. A translucent ghost preview snaps to the floor grid under your cursor so you always know exactly where a prop will land — green when the placement is valid, red when it's outside the world radius. Press R to quarter-turn the ghost before committing. Click or tap to place; right-click or hold to remove a prop you placed. Props appear for everyone instantly through the shared object channel and survive server restarts.","tags": ["feature"],@@ -746,7 +784,7 @@{"date": "2026-06-17","title": "Coin world builds now have ownership, caps, and anti-grief protection",- "summary": "Every block and prop placed in a coin world is now server-enforced with a full permission model. Only the player who placed a piece can break it; the coin's creator can remove any piece as a moderation tool, or sweep a radius or the entire world with a single action. A per-player block cap (1,200 blocks) prevents any single builder from monopolising the budget; a per-column density limit stops walls from caging the plaza; and protected zones around the spawn point and the coin totem can never be buried or fenced in. All rejections \u2014 wrong owner, over cap, protected zone, rate-limited, out of bounds \u2014 are surfaced to the builder immediately with a clear message. The build HUD now shows how many of your personal 1,200 blocks you've used, and coin creators see a \"Creator\" moderation panel with the clear-area tool.",+ "summary": "Every block and prop placed in a coin world is now server-enforced with a full permission model. Only the player who placed a piece can break it; the coin's creator can remove any piece as a moderation tool, or sweep a radius or the entire world with a single action. A per-player block cap (1,200 blocks) prevents any single builder from monopolising the budget; a per-column density limit stops walls from caging the plaza; and protected zones around the spawn point and the coin totem can never be buried or fenced in. All rejections — wrong owner, over cap, protected zone, rate-limited, out of bounds — are surfaced to the builder immediately with a clear message. The build HUD now shows how many of your personal 1,200 blocks you've used, and coin creators see a \"Creator\" moderation panel with the clear-area tool.","tags": ["feature","improvement"@@ -756,7 +794,7 @@{"date": "2026-06-17","title": "Placed objects in coin worlds now survive restarts",- "summary": "Props, signs, and decorations placed in a coin's 3D world now persist across room disposal and server restarts. Leave a coin world and come back tomorrow \u2014 the build your community placed is still there, exactly where it was left. Durable objects are saved to Postgres + R2 via a debounced write-through that batches rapid edits into a single round-trip; transient objects like thrown balls and effects are intentionally excluded. The world correctly shows its saved state the moment the first player enters, before any new pieces are placed.",+ "summary": "Props, signs, and decorations placed in a coin's 3D world now persist across room disposal and server restarts. Leave a coin world and come back tomorrow — the build your community placed is still there, exactly where it was left. Durable objects are saved to Postgres + R2 via a debounced write-through that batches rapid edits into a single round-trip; transient objects like thrown balls and effects are intentionally excluded. The world correctly shows its saved state the moment the first player enters, before any new pieces are placed.","tags": ["feature"],@@ -765,7 +803,7 @@{"date": "2026-06-17","title": "Walking avatars now travel the right way on every rig",- "summary": "Animations with root motion \u2014 walking, running, jumping with travel \u2014 now move your avatar in the correct world direction and distance no matter what tool the avatar came from. Avatars exported from Mixamo, Ready Player Me, Blender, and others orient their skeletons differently; previously a walk could drift sideways, sink into the floor, or moonwalk on rigs that didn't match the standard convention. The viewer now re-expresses each clip's root motion in the target rig's own frame, so two avatars built in different tools walk side by side in the same direction. Avatars that already matched the reference rig are byte-for-byte unchanged.",+ "summary": "Animations with root motion — walking, running, jumping with travel — now move your avatar in the correct world direction and distance no matter what tool the avatar came from. Avatars exported from Mixamo, Ready Player Me, Blender, and others orient their skeletons differently; previously a walk could drift sideways, sink into the floor, or moonwalk on rigs that didn't match the standard convention. The viewer now re-expresses each clip's root motion in the target rig's own frame, so two avatars built in different tools walk side by side in the same direction. Avatars that already matched the reference rig are byte-for-byte unchanged.","tags": ["fix","improvement"@@ -774,8 +812,8 @@},{"date": "2026-06-17",- "title": "Animation Gallery \u2014 browse, preview, and remix community animations",- "summary": "Saved and public animations are now playable anywhere three.ws renders an avatar. The new /animations gallery lists every public clip with live previews (hover a card to see the animation on a real avatar), one-click \"Open in Studio\" to remix any clip, and an \"Animate this avatar\" shortcut from the avatar gallery. Any page with an avatar panel now also shows your saved and community animations alongside the built-in library. Share a clip by its id \u2014 ?anim=<id> plays it directly in the viewer, the embed, or the Studio editor.",+ "title": "Animation Gallery — browse, preview, and remix community animations",+ "summary": "Saved and public animations are now playable anywhere three.ws renders an avatar. The new /animations gallery lists every public clip with live previews (hover a card to see the animation on a real avatar), one-click \"Open in Studio\" to remix any clip, and an \"Animate this avatar\" shortcut from the avatar gallery. Any page with an avatar panel now also shows your saved and community animations alongside the built-in library. Share a clip by its id — ?anim=<id> plays it directly in the viewer, the embed, or the Studio editor.","tags": ["feature"],@@ -783,8 +821,8 @@},{"date": "2026-06-17",- "title": "Game-Ready export in Forge \u2014 one click to engine-ready GLB + FBX",- "summary": "Any model you generate or upload in Forge can now be turned into a clean, engine-ready asset in one click. Pick Quad retopology (field-aligned QuadriFlow edge loops that rig and animate well) or Tri low-poly (silhouette-preserving, with the texture re-baked), set a poly budget with 5k / 15k / 50k presets, and export a textured GLB plus an FBX for Unity and Unreal together. You see the before\u2192after poly count (e.g. 28,400 \u2192 5,012) and can flip on a live wireframe to inspect the new topology right in the viewer. Files are served from our own CDN.",+ "title": "Game-Ready export in Forge — one click to engine-ready GLB + FBX",+ "summary": "Any model you generate or upload in Forge can now be turned into a clean, engine-ready asset in one click. Pick Quad retopology (field-aligned QuadriFlow edge loops that rig and animate well) or Tri low-poly (silhouette-preserving, with the texture re-baked), set a poly budget with 5k / 15k / 50k presets, and export a textured GLB plus an FBX for Unity and Unreal together. You see the before→after poly count (e.g. 28,400 → 5,012) and can flip on a live wireframe to inspect the new topology right in the viewer. Files are served from our own CDN.","tags": ["feature"],@@ -793,7 +831,7 @@{"date": "2026-06-17","title": "Buy a skill, get an on-chain NFT receipt in your wallet",- "summary": "When you purchase an agent's skill, you now receive a real NFT minted straight to your Solana wallet as proof of ownership and a perpetual license to use that skill. Each agent has its own verified on-chain collection, so the skills you buy from an agent group together in your wallet and on explorers like Solscan and Phantom \u2014 with the agent's name and avatar. The NFT is minted only after your payment is confirmed on-chain to the creator, it's tied to the wallet linked to your account so it can never be sent to a stranger, and asking again never mints a duplicate. Your purchased skills now show their NFT mint address.",+ "summary": "When you purchase an agent's skill, you now receive a real NFT minted straight to your Solana wallet as proof of ownership and a perpetual license to use that skill. Each agent has its own verified on-chain collection, so the skills you buy from an agent group together in your wallet and on explorers like Solscan and Phantom — with the agent's name and avatar. The NFT is minted only after your payment is confirmed on-chain to the creator, it's tied to the wallet linked to your account so it can never be sent to a stranger, and asking again never mints a duplicate. Your purchased skills now show their NFT mint address.","tags": ["feature"],@@ -802,7 +840,7 @@{"date": "2026-06-17","title": "Avatars from any tool animate perfectly when uploaded",- "summary": "Avatars exported from Mixamo, Blender, Unreal Engine, and other tools are now canonicalized at upload time \u2014 bone names are normalized and the up-axis convention is baked out \u2014 so they animate correctly out of the box with no manual fixup. Previously, Mixamo-rigged avatars needed a runtime correction that could leave limbs in unexpected poses on some clips; now the stored model is already in the canonical form every animation clip expects.",+ "summary": "Avatars exported from Mixamo, Blender, Unreal Engine, and other tools are now canonicalized at upload time — bone names are normalized and the up-axis convention is baked out — so they animate correctly out of the box with no manual fixup. Previously, Mixamo-rigged avatars needed a runtime correction that could leave limbs in unexpected poses on some clips; now the stored model is already in the canonical form every animation clip expects.","tags": ["improvement","fix"@@ -812,7 +850,7 @@{"date": "2026-06-17","title": "Filter the marketplace by Free or Paid",- "summary": "The marketplace now has working Free / Paid filters. \"Paid\" surfaces every agent that charges in any way \u2014 a one-time price to own it or per-call pricing on its skills \u2014 and \"Free\" shows the rest. Filtering happens on the server, so the result count and \"load more\" stay accurate no matter how many pages deep you browse, and your choice is saved in the URL so you can bookmark or share a filtered view.",+ "summary": "The marketplace now has working Free / Paid filters. \"Paid\" surfaces every agent that charges in any way — a one-time price to own it or per-call pricing on its skills — and \"Free\" shows the rest. Filtering happens on the server, so the result count and \"load more\" stay accurate no matter how many pages deep you browse, and your choice is saved in the URL so you can bookmark or share a filtered view.","tags": ["feature","improvement"@@ -821,8 +859,8 @@},{"date": "2026-06-17",- "title": "Withdraw your agent's funds any time \u2014 plus spend limits and a full custody audit trail",- "summary": "Your agent's Solana wallet is custodial, so we've made getting funds out and keeping them safe first-class. The Agent Wallet hub now has a working Withdraw tab: sweep all your SOL or any token the wallet holds to any address or .sol name (paste or scan a QR), with a clear review step, a confirmed explorer link, and every state designed. A small amount of SOL is always kept back on a \"Max\" sweep so the wallet can never get stuck. Withdrawals are signed on the server and are safe to retry \u2014 the same request never sends twice. A new Limits & Safety section lets you set a daily spend cap, a per-transaction cap, and an allowlist of addresses funds may be withdrawn to; those limits apply to everything the agent does \u2014 trades, snipes, and payments \u2014 not just withdrawals. And an Activity log shows exactly what your custodial wallet has done: every withdrawal, automated spend, limit change, and each time the key was used to sign, with the reason. The wallet's secret key never leaves our servers, is never shown or logged, and is only ever used after we confirm you own the agent.",+ "title": "Withdraw your agent's funds any time — plus spend limits and a full custody audit trail",+ "summary": "Your agent's Solana wallet is custodial, so we've made getting funds out and keeping them safe first-class. The Agent Wallet hub now has a working Withdraw tab: sweep all your SOL or any token the wallet holds to any address or .sol name (paste or scan a QR), with a clear review step, a confirmed explorer link, and every state designed. A small amount of SOL is always kept back on a \"Max\" sweep so the wallet can never get stuck. Withdrawals are signed on the server and are safe to retry — the same request never sends twice. A new Limits & Safety section lets you set a daily spend cap, a per-transaction cap, and an allowlist of addresses funds may be withdrawn to; those limits apply to everything the agent does — trades, snipes, and payments — not just withdrawals. And an Activity log shows exactly what your custodial wallet has done: every withdrawal, automated spend, limit change, and each time the key was used to sign, with the reason. The wallet's secret key never leaves our servers, is never shown or logged, and is only ever used after we confirm you own the agent.","tags": ["feature","security"@@ -831,7 +869,7 @@{"date": "2026-06-17","title": "Every agent now has a dedicated wallet hub",- "summary": "Each 3D agent's self-custodied Solana wallet now has one home: a tabbed Agent Wallet hub \u2014 Balance, Deposit, Trade, Snipe, Pay, and Withdraw \u2014 reachable from the agent's profile and right after you create one. The Balance tab is live now, showing the real on-chain SOL balance with a USD estimate and recent activity, refreshing on its own and degrading gracefully if the network is briefly unreachable. Behind the scenes every agent is guaranteed a wallet: older agents that predated automatic wallets are backfilled, and the agent API now reports whether each agent's wallet is ready. The remaining tabs are wired up across the next releases.",+ "summary": "Each 3D agent's self-custodied Solana wallet now has one home: a tabbed Agent Wallet hub — Balance, Deposit, Trade, Snipe, Pay, and Withdraw — reachable from the agent's profile and right after you create one. The Balance tab is live now, showing the real on-chain SOL balance with a USD estimate and recent activity, refreshing on its own and degrading gracefully if the network is briefly unreachable. Behind the scenes every agent is guaranteed a wallet: older agents that predated automatic wallets are backfilled, and the agent API now reports whether each agent's wallet is ready. The remaining tabs are wired up across the next releases.","tags": ["feature"]@@ -839,7 +877,7 @@{"date": "2026-06-17","title": "Sniper now auto-sells coins that graduate off the bonding curve",- "summary": "When a coin your sniper holds graduates from the pump.fun bonding curve to its AMM pool, the agent used to be stuck holding it \u2014 the position sat parked and your exit rules quietly stopped working. The sniper now follows a graduated coin straight onto the AMM and keeps managing it there: stop-loss, trailing-stop, take-profit, and the hold-time limit all keep working against the real post-graduation price, and the automatic sell goes out with slippage protection. Positions that were stuck before can be cleared with a one-time backfill.",+ "summary": "When a coin your sniper holds graduates from the pump.fun bonding curve to its AMM pool, the agent used to be stuck holding it — the position sat parked and your exit rules quietly stopped working. The sniper now follows a graduated coin straight onto the AMM and keeps managing it there: stop-loss, trailing-stop, take-profit, and the hold-time limit all keep working against the real post-graduation price, and the automatic sell goes out with slippage protection. Positions that were stuck before can be cleared with a one-time backfill.","tags": ["fix"],@@ -848,7 +886,7 @@{"date": "2026-06-17","title": "x402 live demo: dark theme, smoother motion, and a full accessibility pass",- "summary": "The live x402 demo got a polish pass. It now carries a complete dark theme for dark IBM contexts, refined button and loading states, and a subtle price-update animation \u2014 and every bit of motion respects your reduced-motion setting. The layout holds from 320px phones to desktop with proper touch-target sizing, detects a connected browser wallet (or, on mobile, guides you to open the page inside your wallet's in-app browser), and passes a WCAG-AA accessibility pass: semantic markup, screen-reader-friendly status announcements, visible focus rings, and full keyboard operation.",+ "summary": "The live x402 demo got a polish pass. It now carries a complete dark theme for dark IBM contexts, refined button and loading states, and a subtle price-update animation — and every bit of motion respects your reduced-motion setting. The layout holds from 320px phones to desktop with proper touch-target sizing, detects a connected browser wallet (or, on mobile, guides you to open the page inside your wallet's in-app browser), and passes a WCAG-AA accessibility pass: semantic markup, screen-reader-friendly status announcements, visible focus rings, and full keyboard operation.","tags": ["improvement"],@@ -856,8 +894,8 @@},{"date": "2026-06-17",- "title": "The sniper now runs as an always-on service \u2014 armed strategies fire in real time",- "summary": "An armed sniper strategy now has a live engine behind it. The sniper runs as a dedicated always-on worker that holds the pump.fun launch feed open continuously and acts the moment a launch matches your rules \u2014 not on a slow timer. It starts in a safe simulate mode (real scoring, zero spend) and going live is a deliberate, gated step that needs a funded agent wallet, so nothing trades real money by accident. If the launch feed ever drops, the worker reconnects on its own and pages the operators, and a public health check at /api/sniper/status reports whether it's live, reconnecting, or down \u2014 so 'is the sniper actually working right now?' is always answerable. Every safety limit you set \u2014 daily budget, per-trade size, max open positions, mandatory stop-loss, price-impact cutoff \u2014 is enforced by the running service exactly as configured.",+ "title": "The sniper now runs as an always-on service — armed strategies fire in real time",+ "summary": "An armed sniper strategy now has a live engine behind it. The sniper runs as a dedicated always-on worker that holds the pump.fun launch feed open continuously and acts the moment a launch matches your rules — not on a slow timer. It starts in a safe simulate mode (real scoring, zero spend) and going live is a deliberate, gated step that needs a funded agent wallet, so nothing trades real money by accident. If the launch feed ever drops, the worker reconnects on its own and pages the operators, and a public health check at /api/sniper/status reports whether it's live, reconnecting, or down — so 'is the sniper actually working right now?' is always answerable. Every safety limit you set — daily budget, per-trade size, max open positions, mandatory stop-loss, price-impact cutoff — is enforced by the running service exactly as configured.","tags": ["infra","feature"@@ -866,8 +904,8 @@},{"date": "2026-06-17",- "title": "IRL: place an agent at a spot you pick on a map \u2014 not your exact location",- "summary": "You no longer have to stand somewhere to leave an agent there. Tap \"Place on map\" in IRL and choose any point \u2014 search a place by name or drag the pin \u2014 and your agent is placed exactly there. It's the privacy-friendly way to drop an agent at a caf\u00e9, a plaza, or an event without writing your real standing position into the public feed, and it works even before you grant location. The picker is a real map with search and a draggable marker, and every state \u2014 loading, no results, a map that won't load \u2014 is handled, so you always know where your agent will land before you confirm.",+ "title": "IRL: place an agent at a spot you pick on a map — not your exact location",+ "summary": "You no longer have to stand somewhere to leave an agent there. Tap \"Place on map\" in IRL and choose any point — search a place by name or drag the pin — and your agent is placed exactly there. It's the privacy-friendly way to drop an agent at a café, a plaza, or an event without writing your real standing position into the public feed, and it works even before you grant location. The picker is a real map with search and a draggable marker, and every state — loading, no results, a map that won't load — is handled, so you always know where your agent will land before you confirm.","tags": ["feature","improvement"@@ -876,8 +914,8 @@},{"date": "2026-06-17",- "title": "IRL: new Location & privacy controls \u2014 see what's shared, and dial it down",- "summary": "IRL now has a Location & privacy panel, reachable from the top bar, that explains in plain language what a placed agent actually shares: it's visible only to someone physically within about 60 metres of it, never on a map or a browsable list, and never tied to your account \u2014 and pins you place without signing in disappear after 7 days. From the same panel you can switch discovery to Approximate, which rounds the position your phone sends while it looks for nearby agents so your exact spot never leaves the device; toggle whether you appear to others nearby; and jump straight to managing or removing the agents you've placed. The first time you grant location, a short one-time note walks you through the same facts.",+ "title": "IRL: new Location & privacy controls — see what's shared, and dial it down",+ "summary": "IRL now has a Location & privacy panel, reachable from the top bar, that explains in plain language what a placed agent actually shares: it's visible only to someone physically within about 60 metres of it, never on a map or a browsable list, and never tied to your account — and pins you place without signing in disappear after 7 days. From the same panel you can switch discovery to Approximate, which rounds the position your phone sends while it looks for nearby agents so your exact spot never leaves the device; toggle whether you appear to others nearby; and jump straight to managing or removing the agents you've placed. The first time you grant location, a short one-time note walks you through the same facts.","tags": ["feature","improvement"@@ -887,7 +925,7 @@{"date": "2026-06-17","title": "IRL: see every agent you've placed on a map and wipe them all in one tap",- "summary": "The 'My pins' panel in /irl is now a real management surface. A small map at the top plots every agent you've placed, so you can see at a glance where you dropped things \u2014 tap any marker and it jumps to that agent's row in the list. Each row now shows exactly when it disappears: a countdown like 'expires in 6d' for pins placed without an account (they self-delete after a week), or 'permanent' once you're signed in. And a single 'Remove all from this device' button \u2014 with a clear confirm step \u2014 wipes every agent you placed from this device in one go, so cleaning up after trying things out takes one tap instead of deleting them one by one. If the map can't load it quietly falls back to the list, which always works.",+ "summary": "The 'My pins' panel in /irl is now a real management surface. A small map at the top plots every agent you've placed, so you can see at a glance where you dropped things — tap any marker and it jumps to that agent's row in the list. Each row now shows exactly when it disappears: a countdown like 'expires in 6d' for pins placed without an account (they self-delete after a week), or 'permanent' once you're signed in. And a single 'Remove all from this device' button — with a clear confirm step — wipes every agent you placed from this device in one go, so cleaning up after trying things out takes one tap instead of deleting them one by one. If the map can't load it quietly falls back to the list, which always works.","tags": ["improvement"],@@ -896,7 +934,7 @@{"date": "2026-06-17","title": "Embedded avatars: polished loading, seamless looping, and smarter framing",- "summary": "The live 3D avatars dotted around the site \u2014 the ones in the home-page feature cards and anywhere an <agent-3d> embed appears \u2014 now feel intentional from the first frame. Each one fades in behind a soft skeleton placeholder while its model streams, instead of popping in cold. Animations no longer hard-snap: a one-shot gesture like a wave plays once and settles smoothly back into an idle stance rather than jumping at the loop boundary. A new framing option crops the avatar to head-to-mid-thigh so it fills its card instead of standing tiny and low. If a body ever fails to load, you get a tasteful silhouette rather than a blank or broken box. Avatars pause themselves when scrolled off-screen to save battery, and anyone who's asked their device to reduce motion gets a calm, held pose instead of looping animation.",+ "summary": "The live 3D avatars dotted around the site — the ones in the home-page feature cards and anywhere an <agent-3d> embed appears — now feel intentional from the first frame. Each one fades in behind a soft skeleton placeholder while its model streams, instead of popping in cold. Animations no longer hard-snap: a one-shot gesture like a wave plays once and settles smoothly back into an idle stance rather than jumping at the loop boundary. A new framing option crops the avatar to head-to-mid-thigh so it fills its card instead of standing tiny and low. If a body ever fails to load, you get a tasteful silhouette rather than a blank or broken box. Avatars pause themselves when scrolled off-screen to save battery, and anyone who's asked their device to reduce motion gets a calm, held pose instead of looping animation.","tags": ["improvement"],@@ -904,8 +942,8 @@},{"date": "2026-06-17",- "title": "Try x402 live \u2014 pay a tenth of a cent to call a real API from your own wallet",- "summary": "There's now a live, self-contained x402 demo you can try in a browser. Pay $0.001 USDC from your own wallet \u2014 MetaMask on Base or Phantom on Solana \u2014 and call a real three.ws data API. The page reads the live HTTP 402 price the server quotes, runs the paid call once your wallet signs a gasless authorization, and shows the response next to an on-chain transaction receipt you can open on Basescan or Solscan. Nothing is mocked and there's no account or backend. The same eight-line embed it runs on \u2014 one script tag from three.ws plus any button carrying a data-x402-endpoint \u2014 is copy-pasteable into any site, so a developer can add a working pay-per-call paywall in minutes. Built with IBM as the public face of the partnership and designed to host cleanly on a strict-CSP enterprise page.",+ "title": "Try x402 live — pay a tenth of a cent to call a real API from your own wallet",+ "summary": "There's now a live, self-contained x402 demo you can try in a browser. Pay $0.001 USDC from your own wallet — MetaMask on Base or Phantom on Solana — and call a real three.ws data API. The page reads the live HTTP 402 price the server quotes, runs the paid call once your wallet signs a gasless authorization, and shows the response next to an on-chain transaction receipt you can open on Basescan or Solscan. Nothing is mocked and there's no account or backend. The same eight-line embed it runs on — one script tag from three.ws plus any button carrying a data-x402-endpoint — is copy-pasteable into any site, so a developer can add a working pay-per-call paywall in minutes. Built with IBM as the public face of the partnership and designed to host cleanly on a strict-CSP enterprise page.","tags": ["feature","sdk"@@ -915,7 +953,7 @@{"date": "2026-06-17","title": "IRL: a pinned agent stays rock-steady even when your phone's compass glitches",- "summary": "Placing an agent in the real world leans on your phone's compass and motion sensors, and real phones hand those out badly all the time \u2014 an uncalibrated compass, a magnetic dead-zone as you walk past a fridge or a car, a dropped sensor frame. Any one of those could make a pinned agent suddenly spin, freeze, or vanish from the camera. IRL now shrugs them off: a bad reading is ignored and the last good one held rather than snapping the view, the compass is watched for going stale and the camera quietly falls back to motion-only tracking when it does, and the spot where the compass rolls past north is eased through instead of whipping around. The agent holds its place and its bearing no matter what the sensors do.",+ "summary": "Placing an agent in the real world leans on your phone's compass and motion sensors, and real phones hand those out badly all the time — an uncalibrated compass, a magnetic dead-zone as you walk past a fridge or a car, a dropped sensor frame. Any one of those could make a pinned agent suddenly spin, freeze, or vanish from the camera. IRL now shrugs them off: a bad reading is ignored and the last good one held rather than snapping the view, the compass is watched for going stale and the camera quietly falls back to motion-only tracking when it does, and the spot where the compass rolls past north is eased through instead of whipping around. The agent holds its place and its bearing no matter what the sensors do.","tags": ["fix"],@@ -924,7 +962,7 @@{"date": "2026-06-17","title": "IRL: agents on the edge of range no longer flicker in and out as you stand still",- "summary": "An agent placed right at the edge of your discovery range used to blink in and out: phone GPS wanders several metres every second, so an agent sitting near the boundary kept crossing the line, and its 3D avatar would spawn, vanish, and respawn on repeat \u2014 wasted loads and a jittery, unpolished feel. The /irl world now holds an agent steady once you've found it: you still discover one only by walking within range, but it then stays put until you genuinely move well away, and a single noisy GPS reading can no longer evict it. Agents also ease in and out with a smooth scale instead of popping (and stay instant if you've asked your device to reduce motion).",+ "summary": "An agent placed right at the edge of your discovery range used to blink in and out: phone GPS wanders several metres every second, so an agent sitting near the boundary kept crossing the line, and its 3D avatar would spawn, vanish, and respawn on repeat — wasted loads and a jittery, unpolished feel. The /irl world now holds an agent steady once you've found it: you still discover one only by walking within range, but it then stays put until you genuinely move well away, and a single noisy GPS reading can no longer evict it. Agents also ease in and out with a smooth scale instead of popping (and stay instant if you've asked your device to reduce motion).","tags": ["fix"],@@ -933,7 +971,7 @@{"date": "2026-06-17","title": "IRL floor anchoring now survives a locked phone, an incoming call, and lost tracking",- "summary": "Placing an agent on the real floor in /irl now recovers gracefully from everything the real world throws at it. Lock your phone or take a call mid-session and it pauses cleanly, then resumes \u2014 or exits and puts you right back in Camera AR \u2014 instead of freezing on a stuck overlay. If the camera loses its fix on the room (low light, a blank wall), you get a clear 'move to a brighter, more textured spot' prompt that clears itself the moment tracking returns. On devices that can't lock an anchor perfectly, the agent is still placed and saved but now tells you honestly it may drift. And a quick tap before your location has locked in still saves your spot exactly once, the instant GPS catches up.",+ "summary": "Placing an agent on the real floor in /irl now recovers gracefully from everything the real world throws at it. Lock your phone or take a call mid-session and it pauses cleanly, then resumes — or exits and puts you right back in Camera AR — instead of freezing on a stuck overlay. If the camera loses its fix on the room (low light, a blank wall), you get a clear 'move to a brighter, more textured spot' prompt that clears itself the moment tracking returns. On devices that can't lock an anchor perfectly, the agent is still placed and saved but now tells you honestly it may drift. And a quick tap before your location has locked in still saves your spot exactly once, the instant GPS catches up.","tags": ["improvement","fix"@@ -943,7 +981,7 @@{"date": "2026-06-17","title": "Sniper dashboard: your live positions now show real-time profit and loss and reconnect on their own",- "summary": "The Sniper Strategies dashboard now streams your agents' open positions with live unrealized profit and loss \u2014 both the SOL figure and the percentage \u2014 instead of a blank value, and fills them in the moment the page loads rather than waiting for the next trade to land. The live feed shows its own connection state (Live / Reconnecting) and re-establishes itself automatically with backoff if it drops, so you always know whether you're watching real-time data. Closed-trade history now calls out your single best and worst trade, and there are one-tap links to the public leaderboard and sniper arena so your track record is easy to share.",+ "summary": "The Sniper Strategies dashboard now streams your agents' open positions with live unrealized profit and loss — both the SOL figure and the percentage — instead of a blank value, and fills them in the moment the page loads rather than waiting for the next trade to land. The live feed shows its own connection state (Live / Reconnecting) and re-establishes itself automatically with backoff if it drops, so you always know whether you're watching real-time data. Closed-trade history now calls out your single best and worst trade, and there are one-tap links to the public leaderboard and sniper arena so your track record is easy to share.","tags": ["feature"],@@ -951,7 +989,7 @@},{"date": "2026-06-17",- "title": "Agent profiles now show the agent's real avatar \u2014 no more stray model over the name",+ "title": "Agent profiles now show the agent's real avatar — no more stray model over the name","summary": "On an agent's profile page, agents that ship their own 3D avatar were briefly showing the plain mannequin in the headshot while a second copy of their real avatar rendered loose over the agent's name. Both are fixed: the headshot now loads the agent's own model directly in place, and opening it full-screen shows that same model. Agents using the default body are unchanged.","tags": ["fix"@@ -960,7 +998,7 @@{"date": "2026-06-17","title": "IRL has its own logo",- "summary": "The /irl world now carries a proper mark of its own: the three.ws crystal cube floating above an augmented-reality ground reticle, connected by a placement beam \u2014 a tiny picture of exactly what IRL does, anchor a 3D agent to a real spot. It replaces the plain text tag at the top of the camera view and shows up on the welcome screen too, and the cube's anchor glows green the moment Camera AR goes live. A full-resolution app-icon version ships alongside it.",+ "summary": "The /irl world now carries a proper mark of its own: the three.ws crystal cube floating above an augmented-reality ground reticle, connected by a placement beam — a tiny picture of exactly what IRL does, anchor a 3D agent to a real spot. It replaces the plain text tag at the top of the camera view and shows up on the welcome screen too, and the cube's anchor glows green the moment Camera AR goes live. A full-resolution app-icon version ships alongside it.","tags": ["improvement"],@@ -969,7 +1007,7 @@{"date": "2026-06-17","title": "IRL: extra guards so your location never leaks into our logs",- "summary": "Two privacy hardening passes on the /irl world. First, when you look for nearby agents your device sends its position in the request \u2014 if that request ever hit a server error, your exact coordinates and your device's anonymous token could have been written into our internal error logs and alerts. We now scrub location and device tokens out of anything that gets logged, so a hiccup can never spill where you are. Second, the coordinates the 'nearby' feed hands back are now rounded to roughly a metre instead of full satellite precision: still exact enough to see an agent as you walk up to it, but no longer carrying a pinpoint-precise reading that could fingerprint a spot. Placing and discovering agents works exactly as before.",+ "summary": "Two privacy hardening passes on the /irl world. First, when you look for nearby agents your device sends its position in the request — if that request ever hit a server error, your exact coordinates and your device's anonymous token could have been written into our internal error logs and alerts. We now scrub location and device tokens out of anything that gets logged, so a hiccup can never spill where you are. Second, the coordinates the 'nearby' feed hands back are now rounded to roughly a metre instead of full satellite precision: still exact enough to see an agent as you walk up to it, but no longer carrying a pinpoint-precise reading that could fingerprint a spot. Placing and discovering agents works exactly as before.","tags": ["security"],@@ -978,7 +1016,7 @@{"date": "2026-06-17","title": "IRL: pinned agents now stay put in your room instead of following the camera",- "summary": "When you turned on Camera AR and tapped Pin here, the agent was supposed to stay anchored to a real spot so you'd only see it by pointing your phone at it \u2014 but unless a precise GPS fix had already landed (or if location was off), it stayed glued to the center of the screen and panned around with you. The world-lock that rotates the view with your phone only ran in full GPS mode; without it the camera silently fell back to an orbit that kept the agent centered. Pinning now world-locks immediately using your phone's motion sensors: the agent holds the exact spot where you placed it, the view rotates as you turn, and it slides off-screen and back as you pan \u2014 with no wait for GPS. When a location fix does arrive it upgrades to the shared, cross-user anchor as before.",+ "summary": "When you turned on Camera AR and tapped Pin here, the agent was supposed to stay anchored to a real spot so you'd only see it by pointing your phone at it — but unless a precise GPS fix had already landed (or if location was off), it stayed glued to the center of the screen and panned around with you. The world-lock that rotates the view with your phone only ran in full GPS mode; without it the camera silently fell back to an orbit that kept the agent centered. Pinning now world-locks immediately using your phone's motion sensors: the agent holds the exact spot where you placed it, the view rotates as you turn, and it slides off-screen and back as you pan — with no wait for GPS. When a location fix does arrive it upgrades to the shared, cross-user anchor as before.","tags": ["fix"],@@ -987,15 +1025,15 @@{"date": "2026-06-17","title": "Mixamo-rigged avatars no longer lie down when they animate",- "summary": "Some avatars \u2014 anything exported from Mixamo \u2014 would flip onto their back the moment they played an animation like Celebrate or Wave, while others stood and performed normally. The animation library is authored against one skeleton convention, and Mixamo rigs encode the up-axis differently: replaying a clip on one overwrote the correction that keeps the body upright, tipping it flat. Animations are now retargeted in each rig's own rest pose, so every avatar stays standing and moves as intended. Avatars that already animated correctly are byte-for-byte unchanged.",+ "summary": "Some avatars — anything exported from Mixamo — would flip onto their back the moment they played an animation like Celebrate or Wave, while others stood and performed normally. The animation library is authored against one skeleton convention, and Mixamo rigs encode the up-axis differently: replaying a clip on one overwrote the correction that keeps the body upright, tipping it flat. Animations are now retargeted in each rig's own rest pose, so every avatar stays standing and moves as intended. Avatars that already animated correctly are byte-for-byte unchanged.","tags": ["fix"]},{"date": "2026-06-17",- "title": "IRL world: placed agents are private by location \u2014 discovered only in person",- "summary": "We changed how the /irl world reveals where agents are placed, for safety. There is no list, map, or feed of agent locations anywhere: an agent's spot is shared with your device only when you are physically within a short distance of it, so you come across one by walking up and pointing your camera \u2014 never by browsing locations from afar. The live realtime server no longer broadcasts a neighborhood's placements to everyone connected; it now carries only presence (how many people are viewing nearby) and ambient reactions, both kept coarse and anonymous. The 'nearby' read is hard-capped to a tight radius and rate-limited so it can't be swept to rebuild a map. Placing agents and the multiplayer presence layer keep working as before.",+ "title": "IRL world: placed agents are private by location — discovered only in person",+ "summary": "We changed how the /irl world reveals where agents are placed, for safety. There is no list, map, or feed of agent locations anywhere: an agent's spot is shared with your device only when you are physically within a short distance of it, so you come across one by walking up and pointing your camera — never by browsing locations from afar. The live realtime server no longer broadcasts a neighborhood's placements to everyone connected; it now carries only presence (how many people are viewing nearby) and ambient reactions, both kept coarse and anonymous. The 'nearby' read is hard-capped to a tight radius and rate-limited so it can't be swept to rebuild a map. Placing agents and the multiplayer presence layer keep working as before.","tags": ["security","improvement"@@ -1004,8 +1042,8 @@},{"date": "2026-06-17",- "title": "Drop in <agent-3d> and you get just the avatar \u2014 chat is now opt-in",- "summary": "The one-line embed is cleaner by default. A plain <agent-3d> tag now ships only the 3D avatar on a transparent background \u2014 no chat box, no input bar, no debug color picker, no name-plate. That makes it perfect for dropping a living avatar onto a landing page, hero section, or card without any extra UI to hide. When you want the full talking agent, add the new chat attribute: <agent-3d chat body=\"...\">. Published agents you embed by agent-id, manifest, or an agent:// link still chat automatically \u2014 they carry their own brain and persona \u2014 so existing agent embeds are unchanged. The reference docs and examples were updated to match.",+ "title": "Drop in <agent-3d> and you get just the avatar — chat is now opt-in",+ "summary": "The one-line embed is cleaner by default. A plain <agent-3d> tag now ships only the 3D avatar on a transparent background — no chat box, no input bar, no debug color picker, no name-plate. That makes it perfect for dropping a living avatar onto a landing page, hero section, or card without any extra UI to hide. When you want the full talking agent, add the new chat attribute: <agent-3d chat body=\"...\">. Published agents you embed by agent-id, manifest, or an agent:// link still chat automatically — they carry their own brain and persona — so existing agent embeds are unchanged. The reference docs and examples were updated to match.","tags": ["feature","sdk"@@ -1014,8 +1052,8 @@},{"date": "2026-06-17",- "title": "The Oracle's proof pages \u2014 wins, backtest, and live activity \u2014 load again",- "summary": "The conviction Oracle's evidence views had stopped responding: the Wins gallery, the accuracy Backtest, and the global Activity feed were all erroring instead of returning data, and the live activity feed failed on every request. The cause was in how those queries were assembled \u2014 optional filters (time window, tier, agent) weren't being stitched into the database query correctly, so the database rejected them. All three views now build their filters cleanly and return the Oracle's track record, hit-rate, and real-time agent actions as intended.",+ "title": "The Oracle's proof pages — wins, backtest, and live activity — load again",+ "summary": "The conviction Oracle's evidence views had stopped responding: the Wins gallery, the accuracy Backtest, and the global Activity feed were all erroring instead of returning data, and the live activity feed failed on every request. The cause was in how those queries were assembled — optional filters (time window, tier, agent) weren't being stitched into the database query correctly, so the database rejected them. All three views now build their filters cleanly and return the Oracle's track record, hit-rate, and real-time agent actions as intended.","tags": ["fix"],@@ -1033,7 +1071,7 @@{"date": "2026-06-17","title": "Minting an agent's on-chain collectible is reliable under load",- "summary": "Preparing an agent's on-chain mint sometimes failed when the shared public Solana RPC was rate-limited \u2014 the request to fetch a recent blockhash came back 'too many requests' and the whole prep errored out. Minting now builds the transaction through the same multi-endpoint failover the rest of the platform uses, rotating to a healthy Solana provider instead of giving up, so a busy public endpoint no longer blocks a mint. Solana name (.sol) lookups and the signer-balance watchdog were moved onto the same resilient connection.",+ "summary": "Preparing an agent's on-chain mint sometimes failed when the shared public Solana RPC was rate-limited — the request to fetch a recent blockhash came back 'too many requests' and the whole prep errored out. Minting now builds the transaction through the same multi-endpoint failover the rest of the platform uses, rotating to a healthy Solana provider instead of giving up, so a busy public endpoint no longer blocks a mint. Solana name (.sol) lookups and the signer-balance watchdog were moved onto the same resilient connection.","tags": ["fix","improvement"@@ -1043,7 +1081,7 @@{"date": "2026-06-17","title": "Pole Club dancer tips now reliably reach their Solana wallets",- "summary": "When you tip a dancer in the Pole Club, the platform batches your tips and sweeps them on-chain to the dancer's registered wallet. A mismatch in how a settled tip recorded its network meant Solana tips were being set aside as 'no wallet' even when the dancer had a Solana address on file, so they never went out. That's fixed: tips paid on Solana are now matched to the dancer's Solana wallet and swept correctly, alongside the existing Base payouts. No tip was ever lost \u2014 stuck tips remained queued and now sweep on the next cycle.",+ "summary": "When you tip a dancer in the Pole Club, the platform batches your tips and sweeps them on-chain to the dancer's registered wallet. A mismatch in how a settled tip recorded its network meant Solana tips were being set aside as 'no wallet' even when the dancer had a Solana address on file, so they never went out. That's fixed: tips paid on Solana are now matched to the dancer's Solana wallet and swept correctly, alongside the existing Base payouts. No tip was ever lost — stuck tips remained queued and now sweep on the next cycle.","tags": ["fix"],@@ -1052,7 +1090,7 @@{"date": "2026-06-17","title": "Connect your Solana wallet right from the marketplace",- "summary": "The marketplace now carries a persistent Connect Wallet control \u2014 in the sidebar on desktop, in the search bar on mobile \u2014 so you can link Phantom, Solflare, or Backpack once and arrive at any purchase already connected, instead of waiting until checkout. If you have more than one wallet installed you get a quick picker; if you have none, it points you to install one. Once connected it shows your address as a tidy pill with a menu to copy it, view the account on Solscan, or disconnect, and it quietly reconnects a previously approved wallet when you return \u2014 no extra pop-up. Connect from the header and the Buy dialog is ready to go; connect at checkout and the header updates too. It rides the same on-chain USDC purchase flow already in place, so there's nothing new to trust.",+ "summary": "The marketplace now carries a persistent Connect Wallet control — in the sidebar on desktop, in the search bar on mobile — so you can link Phantom, Solflare, or Backpack once and arrive at any purchase already connected, instead of waiting until checkout. If you have more than one wallet installed you get a quick picker; if you have none, it points you to install one. Once connected it shows your address as a tidy pill with a menu to copy it, view the account on Solscan, or disconnect, and it quietly reconnects a previously approved wallet when you return — no extra pop-up. Connect from the header and the Buy dialog is ready to go; connect at checkout and the header updates too. It rides the same on-chain USDC purchase flow already in place, so there's nothing new to trust.","tags": ["feature"],@@ -1061,7 +1099,7 @@{"date": "2026-06-17","title": "Connect your Solana wallet right from the app header",- "summary": "The main app now has a Connect Wallet button in the top bar \u2014 the first step toward buying an agent's paid skills. Click it and your Solana wallet (Phantom, or the built-in wallet on Solana Mobile / Seeker) prompts you to connect; once you do, the button shows your address shortened to something like '7xKq\u20269fPa' with a green tick so you can see at a glance that you're connected. If you've connected before, it reconnects silently on load, and if you don't have a wallet yet it points you to Phantom. No wallet, no signature, and nothing on-chain happens just from connecting \u2014 it only lets the platform know which wallet to use when you choose to pay.",+ "summary": "The main app now has a Connect Wallet button in the top bar — the first step toward buying an agent's paid skills. Click it and your Solana wallet (Phantom, or the built-in wallet on Solana Mobile / Seeker) prompts you to connect; once you do, the button shows your address shortened to something like '7xKq…9fPa' with a green tick so you can see at a glance that you're connected. If you've connected before, it reconnects silently on load, and if you don't have a wallet yet it points you to Phantom. No wallet, no signature, and nothing on-chain happens just from connecting — it only lets the platform know which wallet to use when you choose to pay.","tags": ["feature"],@@ -1070,7 +1108,7 @@{"date": "2026-06-17","title": "Clearer pricing on every agent's skills in the marketplace",- "summary": "An agent's detail page now reads cleanly when its skills carry a price. Each skill shows a badge at a glance \u2014 green 'Free', a yellow price for paid skills, or an indigo 'Owned' once you've bought it \u2014 and when a paid skill offers a free trial or a timed access pass, those now appear as proper buttons styled to match the Purchase button, with hover, focus, and press states. The price badge and action buttons are grouped together on the right of each row instead of spreading out, so a skill with several options stays tidy and easy to scan.",+ "summary": "An agent's detail page now reads cleanly when its skills carry a price. Each skill shows a badge at a glance — green 'Free', a yellow price for paid skills, or an indigo 'Owned' once you've bought it — and when a paid skill offers a free trial or a timed access pass, those now appear as proper buttons styled to match the Purchase button, with hover, focus, and press states. The price badge and action buttons are grouped together on the right of each row instead of spreading out, so a skill with several options stays tidy and easy to scan.","tags": ["improvement"],@@ -1079,7 +1117,7 @@{"date": "2026-06-17","title": "See how many people are viewing a spot with you on IRL",- "summary": "three.ws/irl now shows when you're not alone. A small live count next to the nearby badge reads '3 viewing nearby' whenever other people have the same location open at the same time, so a place feels inhabited even before anyone has pinned an agent there \u2014 and it updates the instant someone arrives or leaves. Your location stays private: the count is built from a coarse ~1km area, never your precise GPS, and nobody can see where you are by default. If you want to be visible you can turn on 'Appear nearby' (off unless you choose it), which shows you to others as a faint, anonymous marker on their radar and in their view \u2014 no name, not tappable, clearly distinct from a placed agent. You can flip it on or off at any time and others see the change immediately. The count only appears while you have a live connection, so it never shows a stale or made-up number.",+ "summary": "three.ws/irl now shows when you're not alone. A small live count next to the nearby badge reads '3 viewing nearby' whenever other people have the same location open at the same time, so a place feels inhabited even before anyone has pinned an agent there — and it updates the instant someone arrives or leaves. Your location stays private: the count is built from a coarse ~1km area, never your precise GPS, and nobody can see where you are by default. If you want to be visible you can turn on 'Appear nearby' (off unless you choose it), which shows you to others as a faint, anonymous marker on their radar and in their view — no name, not tappable, clearly distinct from a placed agent. You can flip it on or off at any time and others see the change immediately. The count only appears while you have a live connection, so it never shows a stale or made-up number.","tags": ["feature"],@@ -1088,7 +1126,7 @@{"date": "2026-06-17","title": "Agents placed from an iPhone now land in the right real-world spot for everyone",- "summary": "iPhone Safari can't use WebXR, so placing an agent in the real world relies on the phone's motion sensors and GPS. Until now it leaned on a relative gyro reading with no fixed sense of north, which meant an agent you pinned could show up rotated \u2014 or facing the wrong way \u2014 for other people standing at the same spot. IRL now reads the iPhone's true compass heading when you pin, so your agent is anchored to a real-world direction: pan your phone and it stays planted on its actual bearing instead of sliding with the camera, and walk toward it and it holds its place and grows as you approach. Everyone nearby sees it in the same orientation you intended. If your compass needs calibrating we still place the agent and tell you it may look rotated to others, rather than failing silently \u2014 and Android, which already had richer world-anchoring, is unchanged.",+ "summary": "iPhone Safari can't use WebXR, so placing an agent in the real world relies on the phone's motion sensors and GPS. Until now it leaned on a relative gyro reading with no fixed sense of north, which meant an agent you pinned could show up rotated — or facing the wrong way — for other people standing at the same spot. IRL now reads the iPhone's true compass heading when you pin, so your agent is anchored to a real-world direction: pan your phone and it stays planted on its actual bearing instead of sliding with the camera, and walk toward it and it holds its place and grows as you approach. Everyone nearby sees it in the same orientation you intended. If your compass needs calibrating we still place the agent and tell you it may look rotated to others, rather than failing silently — and Android, which already had richer world-anchoring, is unchanged.","tags": ["improvement","fix"@@ -1098,7 +1136,7 @@{"date": "2026-06-17","title": "IRL agents now visibly react when someone engages them",- "summary": "Walk past an agent placed in the real world and it now feels alive: the moment anyone standing nearby taps it, leaves it a message, or pays it, the agent does a little perk-up and a reaction floats up off its head \u2014 a \ud83d\udc9c for a glance, a \u2728 'paid' burst for a real on-chain payment, a \ud83d\udcac for a message \u2014 and everyone viewing that spot sees it at once, not just the person who acted. A busy agent looks busy, which is the whole point of putting one somewhere public. Rapid taps are smoothed so the same person can't spam the reaction, while payments and messages always come through. The reaction is purely a visual flourish \u2014 it carries no one's location or wallet \u2014 and if your connection drops to the slower fallback the interaction is still recorded for the owner; only the live animation is skipped.",+ "summary": "Walk past an agent placed in the real world and it now feels alive: the moment anyone standing nearby taps it, leaves it a message, or pays it, the agent does a little perk-up and a reaction floats up off its head — a 💜 for a glance, a ✨ 'paid' burst for a real on-chain payment, a 💬 for a message — and everyone viewing that spot sees it at once, not just the person who acted. A busy agent looks busy, which is the whole point of putting one somewhere public. Rapid taps are smoothed so the same person can't spam the reaction, while payments and messages always come through. The reaction is purely a visual flourish — it carries no one's location or wallet — and if your connection drops to the slower fallback the interaction is still recorded for the owner; only the live animation is skipped.","tags": ["feature"],@@ -1106,8 +1144,8 @@},{"date": "2026-06-17",- "title": "IRL never shows a blank screen \u2014 every state is now designed",- "summary": "Every corner of three.ws/irl now tells you what's going on instead of leaving a blank space. The radar minimap reads 'No agents in range' when an area is quiet, and 'Can't refresh' if the nearby feed briefly drops \u2014 then recovers on its own. The nearby count, when GPS is live but nobody's pinned around you yet, invites you to be the first to drop an agent there rather than simply disappearing. Tap an agent's Pay or Use button without a wallet connected and you now get a clear, lasting card explaining how to connect one \u2014 instead of a message that flashes away before you can read it. And your IRL Placements dashboard now has a proper loading skeleton, a friendly empty state when you haven't placed anything, and a retry button if the list can't load \u2014 never a spinner that hangs or a void.",+ "title": "IRL never shows a blank screen — every state is now designed",+ "summary": "Every corner of three.ws/irl now tells you what's going on instead of leaving a blank space. The radar minimap reads 'No agents in range' when an area is quiet, and 'Can't refresh' if the nearby feed briefly drops — then recovers on its own. The nearby count, when GPS is live but nobody's pinned around you yet, invites you to be the first to drop an agent there rather than simply disappearing. Tap an agent's Pay or Use button without a wallet connected and you now get a clear, lasting card explaining how to connect one — instead of a message that flashes away before you can read it. And your IRL Placements dashboard now has a proper loading skeleton, a friendly empty state when you haven't placed anything, and a retry button if the list can't load — never a spinner that hangs or a void.","tags": ["improvement"],@@ -1116,7 +1154,7 @@{"date": "2026-06-17","title": "See a placed agent's on-chain reputation from your dashboard",- "summary": "Your IRL Placements dashboard now shows each placed agent's on-chain reputation \u2014 the exact score and trust tier a passer-by sees when they tap it in the real world, so you know what the public sees. Tap an agent's Reputation chip to open a panel with its 0\u2013100 score and tier (New, Emerging, Trusted, Elite), a star rating, and a breakdown of how many attestations are verified, credentialed, or disputed. A small 30-day trend line shows whether its reputation is climbing. Agents that haven't earned any attestations yet get a clear prompt to share them rather than an empty number, and a 'Manage on passport' link takes you to where you add or dispute attestations. If the reputation service is unreachable the panel offers a retry instead of failing silently.",+ "summary": "Your IRL Placements dashboard now shows each placed agent's on-chain reputation — the exact score and trust tier a passer-by sees when they tap it in the real world, so you know what the public sees. Tap an agent's Reputation chip to open a panel with its 0–100 score and tier (New, Emerging, Trusted, Elite), a star rating, and a breakdown of how many attestations are verified, credentialed, or disputed. A small 30-day trend line shows whether its reputation is climbing. Agents that haven't earned any attestations yet get a clear prompt to share them rather than an empty number, and a 'Manage on passport' link takes you to where you add or dispute attestations. If the reputation service is unreachable the panel offers a retry instead of failing silently.","tags": ["feature","improvement"@@ -1125,8 +1163,8 @@},{"date": "2026-06-17",- "title": "Report a bad IRL pin \u2014 and guardrails that keep public spots usable",- "summary": "Now that anyone standing at a location sees the agents others placed there, three.ws/irl has the moderation it needs to stay clean. Tap any agent that isn't yours and a new Report option lets you flag it for spam, hate or harassment, impersonation, a scam, sexual content, or anything else \u2014 with a clear sending, thanks, and try-again state, never a dead button. Reports are counted per person, so one account can't bury a pin it dislikes; once enough different people flag the same agent it's hidden from everyone \u2014 and if you're nearby when that happens it vanishes from your view within about a second rather than lingering until the next scan. Placing agents is now protected too: captions and names with slurs are refused, a pin can only ever reference $THREE, the only coin on three.ws, and its pay button can only point at three.ws \u2014 never an outside link. A single busy block holds a sensible maximum of agents and each person has an active-pin limit, so no one can carpet-bomb a plaza or spam placements, and every refusal tells you exactly what to do. Abandoned anonymous pins are cleaned up automatically while the agents you're signed in for stay put.",+ "title": "Report a bad IRL pin — and guardrails that keep public spots usable",+ "summary": "Now that anyone standing at a location sees the agents others placed there, three.ws/irl has the moderation it needs to stay clean. Tap any agent that isn't yours and a new Report option lets you flag it for spam, hate or harassment, impersonation, a scam, sexual content, or anything else — with a clear sending, thanks, and try-again state, never a dead button. Reports are counted per person, so one account can't bury a pin it dislikes; once enough different people flag the same agent it's hidden from everyone — and if you're nearby when that happens it vanishes from your view within about a second rather than lingering until the next scan. Placing agents is now protected too: captions and names with slurs are refused, a pin can only ever reference $THREE, the only coin on three.ws, and its pay button can only point at three.ws — never an outside link. A single busy block holds a sensible maximum of agents and each person has an active-pin limit, so no one can carpet-bomb a plaza or spam placements, and every refusal tells you exactly what to do. Abandoned anonymous pins are cleaned up automatically while the agents you're signed in for stay put.","tags": ["feature","security"@@ -1136,7 +1174,7 @@{"date": "2026-06-17","title": "Share a photo straight from the XR viewer",- "summary": "three.ws/xr now has the same one-tap Share that three.ws/irl has had: it flattens your live camera view and the 3D agent into a single photo and hands it to your phone's share sheet to post or send \u2014 or downloads it as a PNG on desktop. With the camera on, the picture shows your agent standing in your real surroundings; with it off, it shares the 3D view on its own. If a snapshot can't be captured for any reason, Share falls back to sending the page link so it's never a dead end. The Share buttons on both pages now show a brief progress state while the image is being made, and the immersive buttons give keyboard users a clear focus outline.",+ "summary": "three.ws/xr now has the same one-tap Share that three.ws/irl has had: it flattens your live camera view and the 3D agent into a single photo and hands it to your phone's share sheet to post or send — or downloads it as a PNG on desktop. With the camera on, the picture shows your agent standing in your real surroundings; with it off, it shares the 3D view on its own. If a snapshot can't be captured for any reason, Share falls back to sending the page link so it's never a dead end. The Share buttons on both pages now show a brief progress state while the image is being made, and the immersive buttons give keyboard users a clear focus outline.","tags": ["feature","improvement"@@ -1145,8 +1183,8 @@},{"date": "2026-06-17",- "title": "Nearby agents on IRL now update live \u2014 no reload",- "summary": "Open three.ws/irl and the agents other people have placed around you now update in real time. When anyone nearby drops a new agent, moves one, changes its outfit, or takes one down, you see it appear, shift, or vanish on your screen within about a second \u2014 no refresh, no waiting for the next scan. It works both ways: pin an agent and everyone standing near you sees it pop in too, and walk into a new area and the live view follows you to the agents there. A small status pill next to the nearby count shows whether you're getting live updates; if the realtime connection can't be reached \u2014 some networks block it \u2014 IRL automatically falls back to refreshing every few seconds and the pill reads 'Polling', still fully working, just a touch slower.",+ "title": "Nearby agents on IRL now update live — no reload",+ "summary": "Open three.ws/irl and the agents other people have placed around you now update in real time. When anyone nearby drops a new agent, moves one, changes its outfit, or takes one down, you see it appear, shift, or vanish on your screen within about a second — no refresh, no waiting for the next scan. It works both ways: pin an agent and everyone standing near you sees it pop in too, and walk into a new area and the live view follows you to the agents there. A small status pill next to the nearby count shows whether you're getting live updates; if the realtime connection can't be reached — some networks block it — IRL automatically falls back to refreshing every few seconds and the pill reads 'Polling', still fully working, just a touch slower.","tags": ["feature","improvement"@@ -1156,7 +1194,7 @@{"date": "2026-06-17","title": "IRL stays smooth at crowded locations",- "summary": "three.ws/irl now holds a steady frame rate even when a busy spot is packed with placed agents. Only the nearest few load as full 3D avatars; agents further out render as lightweight cardboard-style billboards that cost almost nothing, and ones far past that fade out entirely until you walk closer. As you move, avatars load nearest-first and the ones you leave behind are freed from memory, so a long walk past dozens of agents never piles up. IRL also reads your device on startup and picks a matching quality level \u2014 turning down resolution and shadows on lower-end phones \u2014 and if the frame rate dips under load it steps quality down on the fly and back up when there's room, so the camera view degrades gracefully instead of stuttering.",+ "summary": "three.ws/irl now holds a steady frame rate even when a busy spot is packed with placed agents. Only the nearest few load as full 3D avatars; agents further out render as lightweight cardboard-style billboards that cost almost nothing, and ones far past that fade out entirely until you walk closer. As you move, avatars load nearest-first and the ones you leave behind are freed from memory, so a long walk past dozens of agents never piles up. IRL also reads your device on startup and picks a matching quality level — turning down resolution and shadows on lower-end phones — and if the frame rate dips under load it steps quality down on the fly and back up when there's room, so the camera view degrades gracefully instead of stuttering.","tags": ["improvement","infra"@@ -1165,8 +1203,8 @@},{"date": "2026-06-17",- "title": "IRL walks you through camera, motion & location \u2014 and never dead-ends on a blocked permission",- "summary": "The first time you open three.ws/irl, a quick setup card explains why each sensor matters and asks for one at a time: the camera to see your agents in the real world, motion to look around, and location to place agents and discover the ones others left nearby. Every outcome is designed \u2014 you see why we\u2019re asking, a green check when access is granted, and if you decline you get the exact steps to switch it back on (the precise iOS Settings path on iPhone) with a Try again button, not a toast that vanishes. Sensors your device doesn\u2019t have are handled honestly, with a note on what still works. Block something later and a one-tap \u2018Enable camera\u2019 or \u2018Enable location\u2019 chip stays in the top bar so recovery is always within reach \u2014 and turning on the camera or pinning an agent re-asks through the same clear cards instead of failing silently. Your choices are remembered, so you\u2019re never nagged twice.",+ "title": "IRL walks you through camera, motion & location — and never dead-ends on a blocked permission",+ "summary": "The first time you open three.ws/irl, a quick setup card explains why each sensor matters and asks for one at a time: the camera to see your agents in the real world, motion to look around, and location to place agents and discover the ones others left nearby. Every outcome is designed — you see why we’re asking, a green check when access is granted, and if you decline you get the exact steps to switch it back on (the precise iOS Settings path on iPhone) with a Try again button, not a toast that vanishes. Sensors your device doesn’t have are handled honestly, with a note on what still works. Block something later and a one-tap ‘Enable camera’ or ‘Enable location’ chip stays in the top bar so recovery is always within reach — and turning on the camera or pinning an agent re-asks through the same clear cards instead of failing silently. Your choices are remembered, so you’re never nagged twice.","tags": ["feature","improvement"@@ -1175,8 +1213,8 @@},{"date": "2026-06-17",- "title": "IRL now fails gracefully \u2014 clear states instead of blank screens",- "summary": "Every part of three.ws/irl now shows a designed state when something isn't right, instead of a blank screen or a message that flashes for three seconds and disappears. On a device or browser that can't run the AR view, IRL now says so up front and points you to browse agents and the marketplace on the web. If an agent's 3D avatar fails to load, you get a clear card with a Retry button instead of the scene just sitting empty. Your My pins list now tells the difference between 'you haven't placed any yet' and 'we couldn't load them right now' \u2014 the latter offers a retry instead of pretending the list is empty. When the nearby-agents view can't refresh, the count now says so and keeps retrying rather than silently looking deserted. And camera issues \u2014 no access granted, or a browser with no camera at all \u2014 now show a recoverable card explaining what to do, noting the 3D scene still works without the camera.",+ "title": "IRL now fails gracefully — clear states instead of blank screens",+ "summary": "Every part of three.ws/irl now shows a designed state when something isn't right, instead of a blank screen or a message that flashes for three seconds and disappears. On a device or browser that can't run the AR view, IRL now says so up front and points you to browse agents and the marketplace on the web. If an agent's 3D avatar fails to load, you get a clear card with a Retry button instead of the scene just sitting empty. Your My pins list now tells the difference between 'you haven't placed any yet' and 'we couldn't load them right now' — the latter offers a retry instead of pretending the list is empty. When the nearby-agents view can't refresh, the count now says so and keeps retrying rather than silently looking deserted. And camera issues — no access granted, or a browser with no camera at all — now show a recoverable card explaining what to do, noting the 3D scene still works without the camera.","tags": ["improvement","fix"@@ -1185,8 +1223,8 @@},{"date": "2026-06-17",- "title": "Change a placed agent's outfit from your dashboard \u2014 everyone nearby sees it",- "summary": "Your IRL Agents dashboard now has a real outfit editor. Open Change outfit on any agent you've placed and a live 3D preview loads with wardrobe controls for the exact layers that avatar has \u2014 recolour its hair, skin, and clothing, strip back to the base body and dress it up again, or stack on hats, glasses, and earrings. Because your agents are public, the new look is baked into the agent itself and pushed to its real-world pin, so every person who walks up to that spot sees the updated outfit in their camera \u2014 not just you. Save when you're happy; the avatar is re-rendered for real before it confirms, the previous look stays untouched if anything fails, and nearby viewers refresh to the new outfit within seconds. Run a seasonal look, brand your agents as staff for an event, or just keep them fresh \u2014 all without walking back to where you pinned them.",+ "title": "Change a placed agent's outfit from your dashboard — everyone nearby sees it",+ "summary": "Your IRL Agents dashboard now has a real outfit editor. Open Change outfit on any agent you've placed and a live 3D preview loads with wardrobe controls for the exact layers that avatar has — recolour its hair, skin, and clothing, strip back to the base body and dress it up again, or stack on hats, glasses, and earrings. Because your agents are public, the new look is baked into the agent itself and pushed to its real-world pin, so every person who walks up to that spot sees the updated outfit in their camera — not just you. Save when you're happy; the avatar is re-rendered for real before it confirms, the previous look stays untouched if anything fails, and nearby viewers refresh to the new outfit within seconds. Run a seasonal look, brand your agents as staff for an event, or just keep them fresh — all without walking back to where you pinned them.","tags": ["feature"],@@ -1194,8 +1232,8 @@},{"date": "2026-06-17",- "title": "Move your IRL agents on a real map \u2014 drag the pin from anywhere",- "summary": "Your IRL Agents dashboard now has a live map. Open Move on map on any placed agent and you get an OpenStreetMap view with a draggable pin for each agent you've placed: drag the highlighted one to a new spot, or tap another to switch to it. As you drag, the new location is named for you (the nearest town or city) and a Save bar appears so nothing changes until you confirm \u2014 and if a save ever fails, the pin snaps back to where it was. A compass dial lets you re-aim which way the agent faces, in degrees or by dragging the needle, and a Remove from map button takes a pin down. You can relocate an agent across the city \u2014 or across the world \u2014 without walking back to it. The map loads only when you open it, works on a phone, and if it can't load it falls back to a simple latitude/longitude form so you can still move the pin.",+ "title": "Move your IRL agents on a real map — drag the pin from anywhere",+ "summary": "Your IRL Agents dashboard now has a live map. Open Move on map on any placed agent and you get an OpenStreetMap view with a draggable pin for each agent you've placed: drag the highlighted one to a new spot, or tap another to switch to it. As you drag, the new location is named for you (the nearest town or city) and a Save bar appears so nothing changes until you confirm — and if a save ever fails, the pin snaps back to where it was. A compass dial lets you re-aim which way the agent faces, in degrees or by dragging the needle, and a Remove from map button takes a pin down. You can relocate an agent across the city — or across the world — without walking back to it. The map loads only when you open it, works on a phone, and if it can't load it falls back to a simple latitude/longitude form so you can still move the pin.","tags": ["feature"],@@ -1204,7 +1242,7 @@{"date": "2026-06-17","title": "Your IRL agent dashboard now lights up the instant someone interacts",- "summary": "When a stranger taps, messages, or pays one of your agents placed out in the real world, your dashboard now reflects it within about a second \u2014 no refresh. The agent's card flashes, the unread count ticks up live, and a payment or a new message pops a notification so you feel the moment it happens, even from the other side of the planet. A small Live indicator shows when the realtime connection is up; if it ever drops, the inbox keeps updating on a short delay instead, so you never miss an encounter. Only your agent's name and the kind of interaction are ever shared with you \u2014 never the visitor's location or wallet.",+ "summary": "When a stranger taps, messages, or pays one of your agents placed out in the real world, your dashboard now reflects it within about a second — no refresh. The agent's card flashes, the unread count ticks up live, and a payment or a new message pops a notification so you feel the moment it happens, even from the other side of the planet. A small Live indicator shows when the realtime connection is up; if it ever drops, the inbox keeps updating on a short delay instead, so you never miss an encounter. Only your agent's name and the kind of interaction are ever shared with you — never the visitor's location or wallet.","tags": ["feature","improvement"@@ -1214,7 +1252,7 @@{"date": "2026-06-17","title": "Jump straight from an agent's profile into IRL or XR",- "summary": "Every agent profile now has View in IRL and View in XR buttons next to See in 3D. View in IRL drops you into three.ws/irl already wearing that agent's body, and if the same agent is placed nearby it flashes its pin and opens its card so you land right on it. View in XR opens the immersive AR/VR viewer with that agent loaded. Both are real links, so you can open them in a new tab, and every agent has a body to show \u2014 its own 3D model or the shared mannequin \u2014 so the buttons are never dead ends. This matches the Walk IRL / View in XR buttons avatars already had, so the whole platform now routes into the immersive layer from one surface to the next.",+ "summary": "Every agent profile now has View in IRL and View in XR buttons next to See in 3D. View in IRL drops you into three.ws/irl already wearing that agent's body, and if the same agent is placed nearby it flashes its pin and opens its card so you land right on it. View in XR opens the immersive AR/VR viewer with that agent loaded. Both are real links, so you can open them in a new tab, and every agent has a body to show — its own 3D model or the shared mannequin — so the buttons are never dead ends. This matches the Walk IRL / View in XR buttons avatars already had, so the whole platform now routes into the immersive layer from one surface to the next.","tags": ["feature"],@@ -1222,8 +1260,8 @@},{"date": "2026-06-17",- "title": "An inbox for your IRL agents \u2014 see who tapped, messaged, or paid, and reply",- "summary": "Your IRL Agents dashboard now has an Inbox: a live, chronological feed of everyone who met your placed agents in real life. Each entry shows what happened \u2014 a view, a tap, a message, or a payment \u2014 where it happened, and how long ago. Payments show the exact amount and link straight to the block-explorer receipt, and you can reply to anyone who left your agent a message; if they were signed in, your reply lands in their notifications. Unread counts appear on the Inbox button and on each agent's card, the feed refreshes itself every few seconds, and opening the inbox marks everything read. High-signal events (a payment or a message) also ping you in the notification bell, so you find out the moment a stranger across the city engages your agent.",+ "title": "An inbox for your IRL agents — see who tapped, messaged, or paid, and reply",+ "summary": "Your IRL Agents dashboard now has an Inbox: a live, chronological feed of everyone who met your placed agents in real life. Each entry shows what happened — a view, a tap, a message, or a payment — where it happened, and how long ago. Payments show the exact amount and link straight to the block-explorer receipt, and you can reply to anyone who left your agent a message; if they were signed in, your reply lands in their notifications. Unread counts appear on the Inbox button and on each agent's card, the feed refreshes itself every few seconds, and opening the inbox marks everything read. High-signal events (a payment or a message) also ping you in the notification bell, so you find out the moment a stranger across the city engages your agent.","tags": ["feature"],@@ -1232,7 +1270,7 @@{"date": "2026-06-17","title": "See your IRL agent's on-chain reputation right from the dashboard",- "summary": "On your IRL Agents dashboard, the Reputation chip on each placed agent now opens an on-chain reputation panel \u2014 the exact score and trust tier (Elite, Trusted, Emerging, New) a passer-by sees when they tap your agent in real life. It breaks down how many attestations are verified, credentialed, and disputed, shows the average star rating and how many distinct people vouched, and links straight to the agent's passport to manage it. Agents without a Solana identity, or without any attestations yet, get a clear next step instead of an error.",+ "summary": "On your IRL Agents dashboard, the Reputation chip on each placed agent now opens an on-chain reputation panel — the exact score and trust tier (Elite, Trusted, Emerging, New) a passer-by sees when they tap your agent in real life. It breaks down how many attestations are verified, credentialed, and disputed, shows the average star rating and how many distinct people vouched, and links straight to the agent's passport to manage it. Agents without a Solana identity, or without any attestations yet, get a clear next step instead of an error.","tags": ["feature"],@@ -1240,8 +1278,8 @@},{"date": "2026-06-17",- "title": "Pay an IRL agent for its services \u2014 and open its full profile \u2014 right from the card",- "summary": "When you tap an agent on three.ws/irl, its card now does real things. View profile opens that agent's full page so you can see who you just met. If the agent offers paid services, each one shows its price and a Use button: tap it, approve the payment in your wallet, and you pay in USDC on the spot \u2014 the standard x402 flow, capped at the price shown so a misconfigured service can never overcharge you. The response you paid for appears right inside the card instead of vanishing into a toast. Every state is handled: no wallet, a cancelled signature, or a service error each show a clear message and leave the button ready to try again, and each service button works on its own so paying for one never freezes the others. Completed encounters quietly notify the agent's owner, receipt and all.",+ "title": "Pay an IRL agent for its services — and open its full profile — right from the card",+ "summary": "When you tap an agent on three.ws/irl, its card now does real things. View profile opens that agent's full page so you can see who you just met. If the agent offers paid services, each one shows its price and a Use button: tap it, approve the payment in your wallet, and you pay in USDC on the spot — the standard x402 flow, capped at the price shown so a misconfigured service can never overcharge you. The response you paid for appears right inside the card instead of vanishing into a toast. Every state is handled: no wallet, a cancelled signature, or a service error each show a clear message and leave the button ready to try again, and each service button works on its own so paying for one never freezes the others. Completed encounters quietly notify the agent's owner, receipt and all.","tags": ["feature"],@@ -1250,7 +1288,7 @@{"date": "2026-06-17","title": "IRL placements now have guardrails: report a pin, content checks, and area limits",- "summary": "Now that anyone at a location can see anyone's placed agent on three.ws/irl, we've added the safety layer that makes a public shared space work. Tap any agent that isn't yours and you'll find a Report option \u2014 pick a reason (spam, hate, impersonation, scam, sexual content, or something else) and once enough different people flag the same pin it's automatically hidden from everyone, with the reporter seeing it disappear right away. One person can't hide someone else's agent, and repeat reports from the same device don't stack, so the system can't be gamed to silence a legitimate pin. At placement time, captions and agent names are screened for slurs and hateful content and rejected with a clear, fixable message, and a pin can only ever reference $THREE \u2014 no other coin can be advertised. Pay buttons are locked to three.ws payment endpoints so a pin can't point you at an off-platform drain. To stop one person from carpet-bombing a plaza, each small area caps how many agents it holds and each person has an active-pin limit \u2014 and if you hit a limit you get a plain-language nudge (shorten the text, move, wait a moment, or remove an old pin) instead of a silent failure. Abandoned anonymous pins are now cleaned up automatically; your signed-in permanent pins are never touched.",+ "summary": "Now that anyone at a location can see anyone's placed agent on three.ws/irl, we've added the safety layer that makes a public shared space work. Tap any agent that isn't yours and you'll find a Report option — pick a reason (spam, hate, impersonation, scam, sexual content, or something else) and once enough different people flag the same pin it's automatically hidden from everyone, with the reporter seeing it disappear right away. One person can't hide someone else's agent, and repeat reports from the same device don't stack, so the system can't be gamed to silence a legitimate pin. At placement time, captions and agent names are screened for slurs and hateful content and rejected with a clear, fixable message, and a pin can only ever reference $THREE — no other coin can be advertised. Pay buttons are locked to three.ws payment endpoints so a pin can't point you at an off-platform drain. To stop one person from carpet-bombing a plaza, each small area caps how many agents it holds and each person has an active-pin limit — and if you hit a limit you get a plain-language nudge (shorten the text, move, wait a moment, or remove an old pin) instead of a silent failure. Abandoned anonymous pins are now cleaned up automatically; your signed-in permanent pins are never touched.","tags": ["security","feature"@@ -1259,8 +1297,8 @@},{"date": "2026-06-17",- "title": "Tapping an IRL agent is now reliable \u2014 hit the body, not just the tiny label",- "summary": "On three.ws/irl you can now open an agent by tapping its 3D body, not only its small floating name tag. Tapping near a name also works, with a finger-sized target that meets Apple's 44-pixel minimum, so you no longer have to pixel-hunt on a phone. When two agents stand on top of each other, the one in front wins instead of a random pick. As you move, the nearest agent you can reach lights up with a soft focus ring so you can see what you'll tap before you tap it \u2014 and if you've turned on Reduce Motion, the ring stays still. Looking and panning around no longer misfires as a tap.",+ "title": "Tapping an IRL agent is now reliable — hit the body, not just the tiny label",+ "summary": "On three.ws/irl you can now open an agent by tapping its 3D body, not only its small floating name tag. Tapping near a name also works, with a finger-sized target that meets Apple's 44-pixel minimum, so you no longer have to pixel-hunt on a phone. When two agents stand on top of each other, the one in front wins instead of a random pick. As you move, the nearest agent you can reach lights up with a soft focus ring so you can see what you'll tap before you tap it — and if you've turned on Reduce Motion, the ring stays still. Looking and panning around no longer misfires as a tap.","tags": ["improvement"],@@ -1269,7 +1307,7 @@{"date": "2026-06-17","title": "Everyone at a location now sees your IRL agent in the same real spot",- "summary": "three.ws/irl agents now line up across phones. A placed agent renders from its own saved compass bearing and ground height instead of whichever way your phone happens to face, so two people standing in the same place see it standing in the same place, facing the same way. To keep it steady, your own GPS position is now smoothed so anchored agents stop drifting and swimming as your location jitters, and noisy fixes are ignored. Every agent now sits inside a ground ring whose size reflects the real GPS accuracy \u2014 honest about the fact that phone GPS is roughly 5\u201315 metres, and wider (and amber) when the signal is poor \u2014 so it never pretends to be pinpoint-perfect. And if an agent landed a little off, its owner can fine-tune it: long-press your own agent (or tap Calibrate position on its card) and drag to nudge it a few centimetres, twist with two fingers to rotate it, or step its floor height up and down. Saving the nudge updates the spot for everyone nearby. Only the owner can calibrate an agent, nudges are capped to small corrections so this can never be used to drag someone's agent across the map, and a failed save keeps your change on screen with a one-tap retry.",+ "summary": "three.ws/irl agents now line up across phones. A placed agent renders from its own saved compass bearing and ground height instead of whichever way your phone happens to face, so two people standing in the same place see it standing in the same place, facing the same way. To keep it steady, your own GPS position is now smoothed so anchored agents stop drifting and swimming as your location jitters, and noisy fixes are ignored. Every agent now sits inside a ground ring whose size reflects the real GPS accuracy — honest about the fact that phone GPS is roughly 5–15 metres, and wider (and amber) when the signal is poor — so it never pretends to be pinpoint-perfect. And if an agent landed a little off, its owner can fine-tune it: long-press your own agent (or tap Calibrate position on its card) and drag to nudge it a few centimetres, twist with two fingers to rotate it, or step its floor height up and down. Saving the nudge updates the spot for everyone nearby. Only the owner can calibrate an agent, nudges are capped to small corrections so this can never be used to drag someone's agent across the map, and a failed save keeps your change on screen with a one-tap retry.","tags": ["feature","improvement"@@ -1278,8 +1316,8 @@},{"date": "2026-06-17",- "title": "iPhone now world-locks your IRL agent \u2014 it holds its real spot as you pan and walk",- "summary": "iPhone Safari has no AR mode, so a placed agent used to drift with the camera. On three.ws/irl it now stays anchored to its real-world spot using the compass and GPS: pan your phone and the agent holds its real bearing instead of following the view, and walk toward it and it grows and keeps its place. Tapping Pin here saves the full placement \u2014 facing, ground height, and how good your GPS fix was \u2014 so iPhone placements match the AR-anchored version other phones see. If you pin before your location is ready, it waits for the first fix and pins precisely instead of dropping at a default spot. Permission states are designed and recoverable too: if motion or location access is off you get a clear card with the exact iOS Settings path and a Try again button, and if your phone can't read an absolute compass heading you're warned that others may see the agent rotated.",+ "title": "iPhone now world-locks your IRL agent — it holds its real spot as you pan and walk",+ "summary": "iPhone Safari has no AR mode, so a placed agent used to drift with the camera. On three.ws/irl it now stays anchored to its real-world spot using the compass and GPS: pan your phone and the agent holds its real bearing instead of following the view, and walk toward it and it grows and keeps its place. Tapping Pin here saves the full placement — facing, ground height, and how good your GPS fix was — so iPhone placements match the AR-anchored version other phones see. If you pin before your location is ready, it waits for the first fix and pins precisely instead of dropping at a default spot. Permission states are designed and recoverable too: if motion or location access is off you get a clear card with the exact iOS Settings path and a Try again button, and if your phone can't read an absolute compass heading you're warned that others may see the agent rotated.","tags": ["improvement"],@@ -1288,7 +1326,7 @@{"date": "2026-06-17","title": "Place your IRL agent on the real floor with AR anchoring",- "summary": "On AR-capable phones (Android Chrome), three.ws/irl now lets you point at your actual floor through a placement ring and tap to set your agent on that exact spot. It binds to a real-world anchor, so it stays put as you walk around it instead of sliding with the camera or jittering with GPS \u2014 the world-locked placement you'd expect from a top AR app. Each placement is saved as a pin, capturing the floor height, facing, and how good your GPS fix was, so it reloads near the same place and nearby people can see it. If you tap to anchor before your location is ready, it holds the spot and saves it the instant your first GPS fix lands instead of losing the placement. iPhone, which doesn't support this AR mode, keeps the existing compass-based Pin here flow and simply doesn't show the floor button.",+ "summary": "On AR-capable phones (Android Chrome), three.ws/irl now lets you point at your actual floor through a placement ring and tap to set your agent on that exact spot. It binds to a real-world anchor, so it stays put as you walk around it instead of sliding with the camera or jittering with GPS — the world-locked placement you'd expect from a top AR app. Each placement is saved as a pin, capturing the floor height, facing, and how good your GPS fix was, so it reloads near the same place and nearby people can see it. If you tap to anchor before your location is ready, it holds the spot and saves it the instant your first GPS fix lands instead of losing the placement. iPhone, which doesn't support this AR mode, keeps the existing compass-based Pin here flow and simply doesn't show the floor button.","tags": ["feature"],@@ -1297,7 +1335,7 @@{"date": "2026-06-17","title": "IRL agents turn to look at you as you move around them",- "summary": "On three.ws/irl, a placed 3D agent now notices the viewer. As you move your phone around it, it eases its body toward your camera and layers on a natural head turn so it appears to look right at you \u2014 the real-world version of a desktop avatar that follows your cursor. The head movement is clamped to a realistic neck range so it never over-rotates, and an avatar with no head bone falls back to a clean whole-body turn. Back away and the agent eases home to the heading it was placed at. When nobody is close it shows a subtle idle gaze drift instead of a frozen stare, and the first time you step within a few metres it gives a brief notice reaction. Motion is eased throughout and only the nearest on-screen agents are tracked each frame, so it stays smooth even with several agents around you.",+ "summary": "On three.ws/irl, a placed 3D agent now notices the viewer. As you move your phone around it, it eases its body toward your camera and layers on a natural head turn so it appears to look right at you — the real-world version of a desktop avatar that follows your cursor. The head movement is clamped to a realistic neck range so it never over-rotates, and an avatar with no head bone falls back to a clean whole-body turn. Back away and the agent eases home to the heading it was placed at. When nobody is close it shows a subtle idle gaze drift instead of a frozen stare, and the first time you step within a few metres it gives a brief notice reaction. Motion is eased throughout and only the nearest on-screen agents are tracked each frame, so it stays smooth even with several agents around you.","tags": ["improvement"],@@ -1316,7 +1354,7 @@{"date": "2026-06-16","title": "IRL: multiplayer AR, camera-aware agents, agent switcher, and owner dashboard",- "summary": "three.ws/irl is now a shared augmented reality space. Any 3D AI agent pinned to a GPS location is visible to every user who walks by with their camera open \u2014 no account required to see others' agents. Agents now track the camera: as you physically move or point your phone, nearby agents slowly rotate to face you (like the classic mouse-hover billboard trick, but in real life). When they're in your camera's view cone their name tag pulses green. Tap any 3D agent model directly \u2014 or its floating label \u2014 to open a rich profile card showing their description, skills, visit count, and a Pay button if they accept x402. A new My Agents panel lets you switch which of your AI agents is placed at a location. Your own pinned agent shows a gold label so it's visually distinct from others nearby. The IRL Dashboard now shows each agent's live SOL wallet balance, reputation, the services it offers with prices, recent encounter logs (who viewed, messaged, or paid your agent IRL), a remote location update tool (move and re-aim your pin without visiting the physical spot), and an outfit swap to change the 3D model shown there.",+ "summary": "three.ws/irl is now a shared augmented reality space. Any 3D AI agent pinned to a GPS location is visible to every user who walks by with their camera open — no account required to see others' agents. Agents now track the camera: as you physically move or point your phone, nearby agents slowly rotate to face you (like the classic mouse-hover billboard trick, but in real life). When they're in your camera's view cone their name tag pulses green. Tap any 3D agent model directly — or its floating label — to open a rich profile card showing their description, skills, visit count, and a Pay button if they accept x402. A new My Agents panel lets you switch which of your AI agents is placed at a location. Your own pinned agent shows a gold label so it's visually distinct from others nearby. The IRL Dashboard now shows each agent's live SOL wallet balance, reputation, the services it offers with prices, recent encounter logs (who viewed, messaged, or paid your agent IRL), a remote location update tool (move and re-aim your pin without visiting the physical spot), and an outfit swap to change the 3D model shown there.","tags": ["feature"],@@ -1325,7 +1363,7 @@{"date": "2026-06-16","title": "Fixed a batch of nav links that used to dead-end on a 404",- "summary": "Swept the whole site for pages that were linked from the menus or built but never wired into the production router. Trending, Activity, Radar, Smart Money, Coin Intelligence, the Scene Composer, the create-flow \"your avatar is ready\" step, and the post-deploy success screen all used to 404 in production even though they were finished \u2014 they now open correctly. Also retired two dead pages (an old Forge preview and a duplicate Strategy Lab) so search and the sitemap only point at live surfaces.",+ "summary": "Swept the whole site for pages that were linked from the menus or built but never wired into the production router. Trending, Activity, Radar, Smart Money, Coin Intelligence, the Scene Composer, the create-flow \"your avatar is ready\" step, and the post-deploy success screen all used to 404 in production even though they were finished — they now open correctly. Also retired two dead pages (an old Forge preview and a duplicate Strategy Lab) so search and the sitemap only point at live surfaces.","tags": ["fix"]@@ -1333,7 +1371,7 @@{"date": "2026-06-16","title": "The whole platform now works keyboard-only and meets WCAG AA",- "summary": "Ran an accessibility pass across the home page, Marketplace, your agent home, the Dashboard, and Pricing. You can now Tab through every page end to end \u2014 links, buttons, filters, the billing toggle, and menus all respond to Enter, Space, and arrow keys, and dialogs trap focus while open, close on Escape, and hand focus back where you left it. Every focusable control shows a clear focus ring, icon-only buttons and charts have screen-reader labels, async results announce themselves, and muted grey text was darkened to pass AA contrast. If you've turned on \"reduce motion\" in your OS, decorative animations now stay still.",+ "summary": "Ran an accessibility pass across the home page, Marketplace, your agent home, the Dashboard, and Pricing. You can now Tab through every page end to end — links, buttons, filters, the billing toggle, and menus all respond to Enter, Space, and arrow keys, and dialogs trap focus while open, close on Escape, and hand focus back where you left it. Every focusable control shows a clear focus ring, icon-only buttons and charts have screen-reader labels, async results announce themselves, and muted grey text was darkened to pass AA contrast. If you've turned on \"reduce motion\" in your OS, decorative animations now stay still.","tags": ["improvement","feature"@@ -1342,7 +1380,7 @@{"date": "2026-06-16","title": "Pages that hit a network error now show a retry, never a blank screen",- "summary": "Audited every data-loading surface across the home page, Discover, the Marketplace, your Dashboard, agent profiles, and the create flow so a flaky connection always lands on a designed state instead of an empty void. Lists that fail to load now show a clear \"Couldn't load this \u2014 Retry\" message with a working retry button; sections still loading show a skeleton instead of a frozen spinner; and the home hero, transcript and knowledge popups, and avatar pickers recover cleanly if a request drops. Toggle your connection off and reload \u2014 the page tells you what happened and how to recover.",+ "summary": "Audited every data-loading surface across the home page, Discover, the Marketplace, your Dashboard, agent profiles, and the create flow so a flaky connection always lands on a designed state instead of an empty void. Lists that fail to load now show a clear \"Couldn't load this — Retry\" message with a working retry button; sections still loading show a skeleton instead of a frozen spinner; and the home hero, transcript and knowledge popups, and avatar pickers recover cleanly if a request drops. Toggle your connection off and reload — the page tells you what happened and how to recover.","tags": ["improvement"]@@ -1350,7 +1388,7 @@{"date": "2026-06-16","title": "Embedded agents and the marketplace lobby fail gracefully instead of crashing",- "summary": "Hardened the async boundaries on a few load paths so a flaky network never leaves a silent crash in the page. When an embedded agent, a saved widget, or an on-chain agent can't load, you now get a clear \"Couldn't load this\" message with a retry button instead of a half-rendered viewer. On the marketplace lobby, a hiccup loading the 3D model decoder no longer throws an uncaught error \u2014 the gallery degrades quietly and the rest of the page keeps working.",+ "summary": "Hardened the async boundaries on a few load paths so a flaky network never leaves a silent crash in the page. When an embedded agent, a saved widget, or an on-chain agent can't load, you now get a clear \"Couldn't load this\" message with a retry button instead of a half-rendered viewer. On the marketplace lobby, a hiccup loading the 3D model decoder no longer throws an uncaught error — the gallery degrades quietly and the rest of the page keeps working.","tags": ["fix"]@@ -1358,7 +1396,7 @@{"date": "2026-06-16","title": "Create-flow feature previews now show live data, not sample numbers",- "summary": "The capability previews on the avatar create screen \u2014 Reputation, Analytics, and Token Launch \u2014 used to display illustrative sample figures (placeholder reviews, made-up revenue, a fake token price). They now pull real numbers live: Reputation and Analytics show the platform's actual on-chain attestation count, registered-agent totals, widgets and chains; Token Launch shows the live $THREE market (price, 24h change, market cap, volume). Each strip loads with a skeleton and quietly collapses if a data source is briefly unreachable, so you never see invented figures. Skill-pricing previews now read \"you set the price\" instead of fabricated per-call amounts.",+ "summary": "The capability previews on the avatar create screen — Reputation, Analytics, and Token Launch — used to display illustrative sample figures (placeholder reviews, made-up revenue, a fake token price). They now pull real numbers live: Reputation and Analytics show the platform's actual on-chain attestation count, registered-agent totals, widgets and chains; Token Launch shows the live $THREE market (price, 24h change, market cap, volume). Each strip loads with a skeleton and quietly collapses if a data source is briefly unreachable, so you never see invented figures. Skill-pricing previews now read \"you set the price\" instead of fabricated per-call amounts.","tags": ["improvement"],@@ -1367,7 +1405,7 @@{"date": "2026-06-16","title": "Home page token buttons now land on real pages",- "summary": "Two buttons in the home page's token-economy section pointed at pages that never existed \u2014 \"Explore token agents\" and \"Trending tokens\" both led to 404s. They now go to the right places: \"Explore token agents\" opens the Agent Launches feed, and \"Trending tokens\" opens Coin Radar, the live pump.fun launch-intelligence view.",+ "summary": "Two buttons in the home page's token-economy section pointed at pages that never existed — \"Explore token agents\" and \"Trending tokens\" both led to 404s. They now go to the right places: \"Explore token agents\" opens the Agent Launches feed, and \"Trending tokens\" opens Coin Radar, the live pump.fun launch-intelligence view.","tags": ["fix"],@@ -1376,7 +1414,7 @@{"date": "2026-06-16","title": "Live $THREE market signal now greets you on the home page",- "summary": "Right under the hero, the home page now shows a live $THREE signal bar pulling real market data: current price with its 24h change (green up, red down), market cap, 24h trading volume, and the running total of $THREE permanently burned by agent deployments. Every figure is fetched live from the token API (Birdeye \u2192 DexScreener \u2192 GeckoTerminal failover, edge-cached) and refreshes every 30 seconds without a reload. If the data source is briefly unreachable it degrades to a quiet link to the token page instead of showing blanks, and it pauses refreshing while the tab is in the background.",+ "summary": "Right under the hero, the home page now shows a live $THREE signal bar pulling real market data: current price with its 24h change (green up, red down), market cap, 24h trading volume, and the running total of $THREE permanently burned by agent deployments. Every figure is fetched live from the token API (Birdeye → DexScreener → GeckoTerminal failover, edge-cached) and refreshes every 30 seconds without a reload. If the data source is briefly unreachable it degrades to a quiet link to the token page instead of showing blanks, and it pauses refreshing while the tab is in the background.","tags": ["feature","improvement"@@ -1386,7 +1424,7 @@{"date": "2026-06-16","title": "Agent-wallet payment demo fails gracefully when the local bridge isn't running",- "summary": "The /play/agent-wallet demo pays a real x402 endpoint by signing through a bridge that runs in your terminal. On the live site, with no bridge to reach, the page used to hang on \"Connecting to bridge\u2026\" while a doomed network request timed out in the background. It now recognizes there's no local bridge and shows the \"Bridge offline\" banner immediately \u2014 with the exact command to start the bridge \u2014 instead of stalling. Multiplayer /walk and the avatar creator were also hardened so they degrade cleanly when their server isn't configured rather than trying to reach a local address that doesn't exist in production.",+ "summary": "The /play/agent-wallet demo pays a real x402 endpoint by signing through a bridge that runs in your terminal. On the live site, with no bridge to reach, the page used to hang on \"Connecting to bridge…\" while a doomed network request timed out in the background. It now recognizes there's no local bridge and shows the \"Bridge offline\" banner immediately — with the exact command to start the bridge — instead of stalling. Multiplayer /walk and the avatar creator were also hardened so they degrade cleanly when their server isn't configured rather than trying to reach a local address that doesn't exist in production.","tags": ["fix"],@@ -1395,7 +1433,7 @@{"date": "2026-06-16","title": "Tipped club dances now always perform",- "summary": "The Spin, Slow Burn (formerly Climb) and Full Combo routines on the Pole Club stage were charging for a performance the dancer couldn't actually play \u2014 the choreography was wired to animation clips that were never shipped, so a tip would settle and the dancer would just walk out, stand still, and walk back. All three routines are now built from real, deployed dance clips, so every tip you pay produces a full, visible routine set to its music. As a safety net, the stage will never leave a dancer frozen again: if any clip can't load, she falls back to a real dance for the full duration so a paid tip always delivers a performance.",+ "summary": "The Spin, Slow Burn (formerly Climb) and Full Combo routines on the Pole Club stage were charging for a performance the dancer couldn't actually play — the choreography was wired to animation clips that were never shipped, so a tip would settle and the dancer would just walk out, stand still, and walk back. All three routines are now built from real, deployed dance clips, so every tip you pay produces a full, visible routine set to its music. As a safety net, the stage will never leave a dancer frozen again: if any clip can't load, she falls back to a real dance for the full duration so a paid tip always delivers a performance.","tags": ["fix"],@@ -1404,7 +1442,7 @@{"date": "2026-06-16","title": "Pay an agent in the IRL playground with one tap via x402",- "summary": "Walk up to an agent pinned in the real world that offers a paid service, and the interaction sheet now shows a working \"Pay via x402\" button. Tapping it connects your wallet, signs a USDC payment, and settles the call for real \u2014 no more \"coming soon\" placeholder. The button connects first if your wallet is locked, shows its progress (Connecting \u2192 Sending \u2192 Paid), stays disabled after a successful payment so you can't accidentally pay twice, and re-enables itself if a payment is cancelled or fails so you can retry.",+ "summary": "Walk up to an agent pinned in the real world that offers a paid service, and the interaction sheet now shows a working \"Pay via x402\" button. Tapping it connects your wallet, signs a USDC payment, and settles the call for real — no more \"coming soon\" placeholder. The button connects first if your wallet is locked, shows its progress (Connecting → Sending → Paid), stays disabled after a successful payment so you can't accidentally pay twice, and re-enables itself if a payment is cancelled or fails so you can retry.","tags": ["feature","improvement"@@ -1414,7 +1452,7 @@{"date": "2026-06-16","title": "Manage your IRL pins from a new \"My pins\" panel",- "summary": "Placed an agent at a real-world spot? A new \"My pins\" button now appears in the IRL playground once location is ready. Tap it to see every pin you placed from this device \u2014 with the agent name, your caption, how far away it is, and when you dropped it \u2014 and remove any of them with one tap. Your pins are remembered across page reloads, so you can always find and clean them up later. Deleting the pin you're currently standing on also unpins your agent right away.",+ "summary": "Placed an agent at a real-world spot? A new \"My pins\" button now appears in the IRL playground once location is ready. Tap it to see every pin you placed from this device — with the agent name, your caption, how far away it is, and when you dropped it — and remove any of them with one tap. Your pins are remembered across page reloads, so you can always find and clean them up later. Deleting the pin you're currently standing on also unpins your agent right away.","tags": ["feature","improvement"@@ -1424,7 +1462,7 @@{"date": "2026-06-16","title": "Related avatars now have a one-tap Walk IRL shortcut",- "summary": "Every avatar in the Related avatars row on an avatar's profile now reveals a small IRL pill when you hover (or always-on for touch devices). Tapping it drops you straight into the live IRL playground with that avatar pre-loaded \u2014 no need to open the profile first. Right-click still works for opening in a new tab.",+ "summary": "Every avatar in the Related avatars row on an avatar's profile now reveals a small IRL pill when you hover (or always-on for touch devices). Tapping it drops you straight into the live IRL playground with that avatar pre-loaded — no need to open the profile first. Right-click still works for opening in a new tab.","tags": ["feature","improvement"@@ -1443,8 +1481,8 @@},{"date": "2026-06-16",- "title": "$THREE holder gate \u2014 agent skills can now require $THREE balance",- "summary": "Agent owners can now require callers to hold a minimum $THREE balance before accessing any paid skill. Set three_gate.enabled and three_gate.min_balance in your agent meta. Callers who don't qualify receive a 402 with the exact amount required and a link to acquire $THREE. The gate fails open on infra issues \u2014 real holders are never blocked. A new /api/pump/check-three-balance endpoint lets any service verify wallet eligibility directly.",+ "title": "$THREE holder gate — agent skills can now require $THREE balance",+ "summary": "Agent owners can now require callers to hold a minimum $THREE balance before accessing any paid skill. Set three_gate.enabled and three_gate.min_balance in your agent meta. Callers who don't qualify receive a 402 with the exact amount required and a link to acquire $THREE. The gate fails open on infra issues — real holders are never blocked. A new /api/pump/check-three-balance endpoint lets any service verify wallet eligibility directly.","tags": ["feature"],@@ -1453,7 +1491,7 @@{"date": "2026-06-16","title": "Create flow: guided \"what's next\" screen after every avatar save",- "summary": "Saving an avatar or completing an agent no longer drops you on a blank library page. A new /create/next screen appears immediately after: your 3D model spins in the left panel while three action cards on the right guide you through the natural progression \u2014 give it an AI brain, embed it on any site, or optionally deploy it on-chain. Each card deep-links directly with your new avatar or agent pre-loaded so the session continues without starting over.",+ "summary": "Saving an avatar or completing an agent no longer drops you on a blank library page. A new /create/next screen appears immediately after: your 3D model spins in the left panel while three action cards on the right guide you through the natural progression — give it an AI brain, embed it on any site, or optionally deploy it on-chain. Each card deep-links directly with your new avatar or agent pre-loaded so the session continues without starting over.","tags": ["feature","improvement"@@ -1463,7 +1501,7 @@{"date": "2026-06-16","title": "Avatar picker: live 3D previews, IRL + XR deeplinks, and XR orbit lock",- "summary": "The avatar selector sheet on /irl and /xr now renders a real 3D preview of each of your avatars instead of a blank silhouette \u2014 models load lazily using an IntersectionObserver so opening the sheet stays instant. The /xr page gains a Lock button: tapping it freezes OrbitControls so the avatar stays centered for headset or camera-AR use (tap again to restore free orbit). Your avatar detail page now has Walk IRL and View in XR buttons that drop you straight into the live experience with that avatar pre-loaded \u2014 no setup required.",+ "summary": "The avatar selector sheet on /irl and /xr now renders a real 3D preview of each of your avatars instead of a blank silhouette — models load lazily using an IntersectionObserver so opening the sheet stays instant. The /xr page gains a Lock button: tapping it freezes OrbitControls so the avatar stays centered for headset or camera-AR use (tap again to restore free orbit). Your avatar detail page now has Walk IRL and View in XR buttons that drop you straight into the live experience with that avatar pre-loaded — no setup required.","tags": ["feature","improvement"@@ -1473,7 +1511,7 @@{"date": "2026-06-16","title": "IRL: pinned avatars now face the direction you were looking",- "summary": "When you pin your agent to a real-world spot in IRL mode, the app records which compass direction you were facing and stores it with the pin. Nearby users now see your avatar oriented that way \u2014 north, NE, east, and so on \u2014 instead of every agent facing the same default direction. The orientation is preserved as the detailed 3D model loads in, your own avatar snaps to the stored heading the moment you lock it, and the placement status confirms it (e.g. \"Pinned facing NE\"). Your IRL Placements dashboard shows a facing badge on each pin card.",+ "summary": "When you pin your agent to a real-world spot in IRL mode, the app records which compass direction you were facing and stores it with the pin. Nearby users now see your avatar oriented that way — north, NE, east, and so on — instead of every agent facing the same default direction. The orientation is preserved as the detailed 3D model loads in, your own avatar snaps to the stored heading the moment you lock it, and the placement status confirms it (e.g. \"Pinned facing NE\"). Your IRL Placements dashboard shows a facing badge on each pin card.","tags": ["feature"],@@ -1482,7 +1520,7 @@{"date": "2026-06-16","title": "On-chain deploy: cinematic step-by-step progress",- "summary": "Deploying an agent on-chain now shows a dramatic vertical progress flow \u2014 each step is a glowing tile with a checkmark when done, a pulsing animated spinner on the active step, and flowing connector lines between them. The current step is called out in large status text with a live terminal-style detail line underneath (handy when grinding a vanity address). The vanity-grind cancel is now a clearly labeled Stop grinding button. After a successful mint on Solana or any EVM chain, you're taken straight to the reveal page for your new on-chain agent.",+ "summary": "Deploying an agent on-chain now shows a dramatic vertical progress flow — each step is a glowing tile with a checkmark when done, a pulsing animated spinner on the active step, and flowing connector lines between them. The current step is called out in large status text with a live terminal-style detail line underneath (handy when grinding a vanity address). The vanity-grind cancel is now a clearly labeled Stop grinding button. After a successful mint on Solana or any EVM chain, you're taken straight to the reveal page for your new on-chain agent.","tags": ["improvement"],@@ -1491,7 +1529,7 @@{"date": "2026-06-16","title": "Oracle: rich social previews when sharing conviction links",- "summary": "Every Oracle coin conviction link now resolves to a server-rendered preview page (/oracle/coin/<mint>) that shows the score, tier, and pillar breakdown as a rich social card on X/Twitter, Telegram, Discord, Slack, and iMessage \u2014 no more generic placeholder when sharing a pump.fun conviction signal. The Oracle drawer's Share button and tweet links now point to these canonical share URLs. A Copy link button in the drawer makes it one-tap to grab the shareable link.",+ "summary": "Every Oracle coin conviction link now resolves to a server-rendered preview page (/oracle/coin/<mint>) that shows the score, tier, and pillar breakdown as a rich social card on X/Twitter, Telegram, Discord, Slack, and iMessage — no more generic placeholder when sharing a pump.fun conviction signal. The Oracle drawer's Share button and tweet links now point to these canonical share URLs. A Copy link button in the drawer makes it one-tap to grab the shareable link.","tags": ["improvement"],@@ -1500,7 +1538,7 @@{"date": "2026-06-16","title": "Agent profile: deploy on-chain and edit controls for agent owners",- "summary": "When you own an agent, its profile page (/agent/:id) now shows a full owner action bar in the hero section with one-click access to Edit Agent, Manage Agents, and \u2014 for agents not yet deployed \u2014 a Deploy on-chain button. The BLOCKCHAIN DETAILS section now mounts an inline deploy widget that shows the chain selector and signs on Solana (Metaplex Core) or any EVM chain, with a persistent success chip linking to the explorer once deployed.",+ "summary": "When you own an agent, its profile page (/agent/:id) now shows a full owner action bar in the hero section with one-click access to Edit Agent, Manage Agents, and — for agents not yet deployed — a Deploy on-chain button. The BLOCKCHAIN DETAILS section now mounts an inline deploy widget that shows the chain selector and signs on Solana (Metaplex Core) or any EVM chain, with a persistent success chip linking to the explorer once deployed.","tags": ["improvement"],@@ -1509,7 +1547,7 @@{"date": "2026-06-16","title": "Watchlist: add any coin by pasting a mint address or pump.fun URL",- "summary": "The /watchlist page now has a persistent add-by-address input at the top: paste a raw Solana mint address or a full pump.fun URL and the coin appears on your watchlist instantly \u2014 no need to navigate to the coin profile first. Pasting triggers auto-add with no extra click. The Watch button on the live trade feed now lets you pin any exited coin to your watchlist in one tap, with a star toggle that updates immediately.",+ "summary": "The /watchlist page now has a persistent add-by-address input at the top: paste a raw Solana mint address or a full pump.fun URL and the coin appears on your watchlist instantly — no need to navigate to the coin profile first. Pasting triggers auto-add with no extra click. The Watch button on the live trade feed now lets you pin any exited coin to your watchlist in one tap, with a star toggle that updates immediately.","tags": ["improvement"],@@ -1518,7 +1556,7 @@{"date": "2026-06-16","title": "Home page: Top Traders widget + Oracle proof trades in coin drawer",- "summary": "The home page now shows a live Top Traders widget ranked by 7-day composite score with direct links to copy each trader. The Oracle coin drawer now loads a proof-trades section showing every agent exit on that specific coin \u2014 multiple, P&L, and a one-click copy link \u2014 closing the loop between conviction and evidence. Trade feed cards also link coin images and symbols directly to their Oracle conviction page.",+ "summary": "The home page now shows a live Top Traders widget ranked by 7-day composite score with direct links to copy each trader. The Oracle coin drawer now loads a proof-trades section showing every agent exit on that specific coin — multiple, P&L, and a one-click copy link — closing the loop between conviction and evidence. Trade feed cards also link coin images and symbols directly to their Oracle conviction page.","tags": ["feature","improvement"@@ -1527,7 +1565,7 @@},{"date": "2026-06-16",- "title": "Agents Index \u2014 browse every public 3D AI agent on three.ws",+ "title": "Agents Index — browse every public 3D AI agent on three.ws","summary": "A new /agents page lists every public agent on the platform: search by name or description, filter to on-chain-registered agents only, sort by popularity or newest, and paginate through the directory. Each card shows the agent's avatar, top skills, and chat count with a direct link to their profile. My Agents at /my-agents gives registered users a focused view of their own agents with quick Edit and Deploy links.","tags": ["feature"@@ -1536,8 +1574,8 @@},{"date": "2026-06-16",- "title": "Claim Your Wallet \u2014 see your verified pump.fun track record in seconds",- "summary": "Any pump.fun trader can now paste their Solana wallet at /claim-wallet and instantly see their full track record: win rate, smart-money score, reputation label (smart_money / sniper / neutral / unproven), coin history with PnL per position, and a net PnL summary for the indexer window. A single click signs them in and publishes the track record as their official three.ws Trader Card \u2014 opening them up to followers and copy-trading fees automatically.",+ "title": "Claim Your Wallet — see your verified pump.fun track record in seconds",+ "summary": "Any pump.fun trader can now paste their Solana wallet at /claim-wallet and instantly see their full track record: win rate, smart-money score, reputation label (smart_money / sniper / neutral / unproven), coin history with PnL per position, and a net PnL summary for the indexer window. A single click signs them in and publishes the track record as their official three.ws Trader Card — opening them up to followers and copy-trading fees automatically.","tags": ["feature"],@@ -1546,7 +1584,7 @@{"date": "2026-06-16","title": "Copy trading: Telegram notifications when a buy intent arrives",- "summary": "Copiers who enter a Telegram chat ID in their subscription settings now receive an instant message the moment the fanout cron creates a pending buy intent \u2014 coin name, tier, Oracle score, the sized order amount, and a direct link to the copy dashboard. Works for both sniper-sourced and Oracle conviction-sourced intents.",+ "summary": "Copiers who enter a Telegram chat ID in their subscription settings now receive an instant message the moment the fanout cron creates a pending buy intent — coin name, tier, Oracle score, the sized order amount, and a direct link to the copy dashboard. Works for both sniper-sourced and Oracle conviction-sourced intents.","tags": ["feature"],@@ -1555,7 +1593,7 @@{"date": "2026-06-16","title": "Trader leaderboard + copy-trading now available as MCP tools for agents",- "summary": "Four new MCP tools close the autonomous copy-trading loop for any agent connected to three.ws: trader_leaderboard returns the top pump.fun traders ranked by composite TraderScore with win rate, realized P&L, ROI, and a copy/watch/skip recommendation for each; trader_profile fetches the full verifiable track record for one agent including recent trades with on-chain Solscan proof; copy_subscribe creates a non-custodial copy subscription \u2014 mirror a leader's future entries at your own sizing with hard daily budget caps; copy_status lists your active subscriptions and execution counts. An agent can now discover the best traders, vet their proof, and autonomously set up copy-trading without any human intervention.",+ "summary": "Four new MCP tools close the autonomous copy-trading loop for any agent connected to three.ws: trader_leaderboard returns the top pump.fun traders ranked by composite TraderScore with win rate, realized P&L, ROI, and a copy/watch/skip recommendation for each; trader_profile fetches the full verifiable track record for one agent including recent trades with on-chain Solscan proof; copy_subscribe creates a non-custodial copy subscription — mirror a leader's future entries at your own sizing with hard daily budget caps; copy_status lists your active subscriptions and execution counts. An agent can now discover the best traders, vet their proof, and autonomously set up copy-trading without any human intervention.","tags": ["feature","sdk"@@ -1564,8 +1602,8 @@},{"date": "2026-06-16",- "title": "Live Trade Feed \u2014 every notable pump.fun win in one public stream",- "summary": "A new public feed at /trades shows every notable closed position from three.ws AI agents in real time: exit multiple, realized PnL, hold time, Oracle conviction tier, and the number of copiers following that trader. No login needed. Filter by time window (1h / 24h / 7d / 30d), minimum profit threshold, and network. Each card links directly to the trader's profile, the coin on pump.fun, and the on-chain buy/sell transactions. The feed is the platform's top-of-funnel virality surface \u2014 every win is a provable, shareable ad.",+ "title": "Live Trade Feed — every notable pump.fun win in one public stream",+ "summary": "A new public feed at /trades shows every notable closed position from three.ws AI agents in real time: exit multiple, realized PnL, hold time, Oracle conviction tier, and the number of copiers following that trader. No login needed. Filter by time window (1h / 24h / 7d / 30d), minimum profit threshold, and network. Each card links directly to the trader's profile, the coin on pump.fun, and the on-chain buy/sell transactions. The feed is the platform's top-of-funnel virality surface — every win is a provable, shareable ad.","tags": ["feature"],@@ -1573,8 +1611,8 @@},{"date": "2026-06-16",- "title": "Oracle: Hot Sectors \u2014 live category intelligence on the feed",- "summary": "The Oracle feed now opens with a Hot Sectors panel showing which narrative categories are generating the highest average conviction scores right now. Each sector card displays the average score, prime and strong coin counts, and the leading coin's image. Click any sector to filter the feed to that category instantly \u2014 click again to clear. Sectors auto-populate when the feed loads and refresh every 5 minutes via CDN caching.",+ "title": "Oracle: Hot Sectors — live category intelligence on the feed",+ "summary": "The Oracle feed now opens with a Hot Sectors panel showing which narrative categories are generating the highest average conviction scores right now. Each sector card displays the average score, prime and strong coin counts, and the leading coin's image. Click any sector to filter the feed to that category instantly — click again to clear. Sectors auto-populate when the feed loads and refresh every 5 minutes via CDN caching.","tags": ["feature"],@@ -1582,8 +1620,8 @@},{"date": "2026-06-16",- "title": "Oracle: Follow any agent \u2014 get Telegram alerts when they act",- "summary": "Any Telegram user can now follow an Oracle-armed agent without owning one. Click Follow on any agent in the Oracle leaderboard, enter your Telegram chat ID, set a minimum conviction score, and subscribe. When that agent makes a conviction buy \u2014 live or simulated \u2014 you get an instant Telegram message with the coin, tier, score, and links to pump.fun and the Oracle page. This is the Watch tier of social copy-trading: real-time signal delivery from the agents with the best track records.",+ "title": "Oracle: Follow any agent — get Telegram alerts when they act",+ "summary": "Any Telegram user can now follow an Oracle-armed agent without owning one. Click Follow on any agent in the Oracle leaderboard, enter your Telegram chat ID, set a minimum conviction score, and subscribe. When that agent makes a conviction buy — live or simulated — you get an instant Telegram message with the coin, tier, score, and links to pump.fun and the Oracle page. This is the Watch tier of social copy-trading: real-time signal delivery from the agents with the best track records.","tags": ["feature"],@@ -1601,7 +1639,7 @@},{"date": "2026-06-16",- "title": "Oracle: Movers tab \u2014 fastest rising and falling conviction scores",+ "title": "Oracle: Movers tab — fastest rising and falling conviction scores","summary": "A new Movers tab on the Oracle page surfaces coins whose conviction score changed most in the last 6, 24, or 48 hours. Rising movers are setups building edge before they hit Prime; falling movers are theses unwinding in real time. Each card shows the score delta, the start-to-end progression, all four conviction pillars, and a tier-change badge when a coin crossed a tier boundary. Click any card to open the full conviction drawer.","tags": ["feature"@@ -1610,7 +1648,7 @@},{"date": "2026-06-16",- "title": "IRL: place your agent on the map \u2014 others nearby can see it",+ "title": "IRL: place your agent on the map — others nearby can see it","summary": "Pin your 3D avatar to a real GPS coordinate in IRL mode and other users who walk within 150 metres see your agent appear in their AR view. Each nearby agent shows its name and distance as a floating label; tap it for a detail sheet with the option to pay via x402. Your own pin is removed automatically when you unpin the avatar or close the page. Requires location permission.","tags": ["feature"@@ -1620,7 +1658,7 @@{"date": "2026-06-16","title": "Oracle: rich conviction card on every shared link",- "summary": "Sharing an Oracle link \u2014 /oracle?mint=X \u2014 now generates a dynamic social card showing the coin's name, conviction score, tier badge, four-pillar breakdown (Who/How/What/Move), and smart wallet count. The card updates when you open the coin drawer, so the URL you share previews real conviction data on X, Telegram, Discord, and iMessage.",+ "summary": "Sharing an Oracle link — /oracle?mint=X — now generates a dynamic social card showing the coin's name, conviction score, tier badge, four-pillar breakdown (Who/How/What/Move), and smart wallet count. The card updates when you open the coin drawer, so the URL you share previews real conviction data on X, Telegram, Discord, and iMessage.","tags": ["feature","improvement"@@ -1630,7 +1668,7 @@{"date": "2026-06-16","title": "Launch detail: pump.fun comment sentiment in Community section",- "summary": "The coin detail page now shows live pump.fun comment sentiment in the Community section \u2014 bullish / bearish / mixed classification with positive, negative, and neutral percentage bars, and a sample comment. Loads asynchronously after the page renders so it never delays the Oracle conviction score or smart money data. Coins with fewer than 3 comments are silently skipped.",+ "summary": "The coin detail page now shows live pump.fun comment sentiment in the Community section — bullish / bearish / mixed classification with positive, negative, and neutral percentage bars, and a sample comment. Loads asynchronously after the page renders so it never delays the Oracle conviction score or smart money data. Coins with fewer than 3 comments are silently skipped.","tags": ["feature"],@@ -1639,7 +1677,7 @@{"date": "2026-06-16","title": "IRL: move your phone to look around your avatar in AR",- "summary": "When you pin an avatar to the real world in IRL mode, rotating your phone now physically moves the camera \u2014 the avatar stays locked to its spot while your view orbits around it, exactly like Pok\u00e9mon GO. On iOS the app requests motion sensor access as required by iOS 13+. Drag still works as a fallback when orientation is unavailable. The lock icon pulses while active tracking is on.",+ "summary": "When you pin an avatar to the real world in IRL mode, rotating your phone now physically moves the camera — the avatar stays locked to its spot while your view orbits around it, exactly like Pokémon GO. On iOS the app requests motion sensor access as required by iOS 13+. Drag still works as a fallback when orientation is unavailable. The lock icon pulses while active tracking is on.","tags": ["feature","improvement"@@ -1668,7 +1706,7 @@{"date": "2026-06-16","title": "Oracle: Conviction-drop exit alerts via Telegram",- "summary": "When a coin your agent entered drops \u22655 points below its entry conviction AND falls under your threshold, Oracle sends a personal Telegram warning so you can reassess the position before it resolves. The message shows current score, tier, the delta from entry, and links to the Oracle drawer and pump.fun. One alert per (agent, coin) pair per process session \u2014 no spam.",+ "summary": "When a coin your agent entered drops ≥5 points below its entry conviction AND falls under your threshold, Oracle sends a personal Telegram warning so you can reassess the position before it resolves. The message shows current score, tier, the delta from entry, and links to the Oracle drawer and pump.fun. One alert per (agent, coin) pair per process session — no spam.","tags": ["feature"],@@ -1686,7 +1724,7 @@{"date": "2026-06-16","title": "Watchlist: Oracle auto-refresh + browser alerts on tier upgrade",- "summary": "The watchlist now re-fetches Oracle conviction every 90 seconds for all watched coins. Enable the new \ud83d\udd14 Alerts button to get browser push notifications the moment a watched coin upgrades to Strong or Prime conviction \u2014 even when you're on another tab. Alerts pause automatically when the tab is hidden and resume when you switch back. Tier history is stored locally so only real upgrades trigger a notification.",+ "summary": "The watchlist now re-fetches Oracle conviction every 90 seconds for all watched coins. Enable the new 🔔 Alerts button to get browser push notifications the moment a watched coin upgrades to Strong or Prime conviction — even when you're on another tab. Alerts pause automatically when the tab is hidden and resume when you switch back. Tier history is stored locally so only real upgrades trigger a notification.","tags": ["feature","improvement"@@ -1696,7 +1734,7 @@{"date": "2026-06-16","title": "Trader profiles now work for any pump.fun wallet address",- "summary": "The /trader page now handles raw Solana wallet addresses directly \u2014 not just agent UUIDs. Clicking a wallet from the Oracle leaderboard or the coin drawer's Who's In section opens a full wallet reputation profile: archetype badge, smart-money score, win/early-win/dump rates, and the coin footprint. Previously these links 404ed.",+ "summary": "The /trader page now handles raw Solana wallet addresses directly — not just agent UUIDs. Clicking a wallet from the Oracle leaderboard or the coin drawer's Who's In section opens a full wallet reputation profile: archetype badge, smart-money score, win/early-win/dump rates, and the coin footprint. Previously these links 404ed.","tags": ["fix","improvement"@@ -1724,7 +1762,7 @@{"date": "2026-06-16","title": "Pump Live: Oracle conviction filter + pause control",- "summary": "The Pump.fun live feed now has a conviction filter bar: All, Strong+, or Prime. When a filter is active, coins below that Oracle tier are automatically hidden once they receive their conviction score. A queued count shows how many launches arrived while paused. The \u23f8 Pause button freezes new cards from prepending \u2014 useful for examining a coin without it scrolling away.",+ "summary": "The Pump.fun live feed now has a conviction filter bar: All, Strong+, or Prime. When a filter is active, coins below that Oracle tier are automatically hidden once they receive their conviction score. A queued count shows how many launches arrived while paused. The ⏸ Pause button freezes new cards from prepending — useful for examining a coin without it scrolling away.","tags": ["feature","improvement"@@ -1734,7 +1772,7 @@{"date": "2026-06-16","title": "Oracle: Conviction score history sparkline",- "summary": "The coin conviction drawer now shows a 48-hour score history sparkline. As Oracle re-scores a coin, each meaningful change (\u22653 points) is recorded. The drawer surfaces the trend \u2014 rising, stable, or falling \u2014 so you can see whether conviction is building or rolling over before making a move.",+ "summary": "The coin conviction drawer now shows a 48-hour score history sparkline. As Oracle re-scores a coin, each meaningful change (≥3 points) is recorded. The drawer surfaces the trend — rising, stable, or falling — so you can see whether conviction is building or rolling over before making a move.","tags": ["feature","improvement"@@ -1744,7 +1782,7 @@{"date": "2026-06-16","title": "Launches: Oracle conviction tier filter",- "summary": "The Launches feed now has a conviction tier filter: All, Prime, Strong, or Lean. Selecting a tier server-filters the feed \u2014 only three.ws agent-launched coins that have reached that Oracle conviction floor appear, sorted by score descending. The Oracle badge on each card is injected synchronously from the API response (no extra batch fetch), so filtered views are faster than before.",+ "summary": "The Launches feed now has a conviction tier filter: All, Prime, Strong, or Lean. Selecting a tier server-filters the feed — only three.ws agent-launched coins that have reached that Oracle conviction floor appear, sorted by score descending. The Oracle badge on each card is injected synchronously from the API response (no extra batch fetch), so filtered views are faster than before.","tags": ["feature","improvement"@@ -1754,7 +1792,7 @@{"date": "2026-06-16","title": "Oracle: Personal Telegram conviction alerts",- "summary": "Oracle agents now support personal Telegram alerts. Add your Telegram chat ID in the Arm your agent panel to receive a direct message every time a coin crosses your conviction threshold \u2014 no more checking the feed. Entry alerts fire when your agent takes an action (simulate or live mode). Chat @three_ws_bot on Telegram and send /start to get your chat ID.",+ "summary": "Oracle agents now support personal Telegram alerts. Add your Telegram chat ID in the Arm your agent panel to receive a direct message every time a coin crosses your conviction threshold — no more checking the feed. Entry alerts fire when your agent takes an action (simulate or live mode). Chat @three_ws_bot on Telegram and send /start to get your chat ID.","tags": ["feature"],@@ -1763,7 +1801,7 @@{"date": "2026-06-16","title": "Oracle: New / Top sort toggle on conviction feed",- "summary": "The live conviction feed now has a Top / New toggle. Top (default) ranks coins by conviction score so the highest-confidence plays surface first. New sorts by when the coin was scored \u2014 useful for catching fresh launches the moment Oracle processes them before the wider market. No extra network request: the sort switches client-side from the already-loaded feed.",+ "summary": "The live conviction feed now has a Top / New toggle. Top (default) ranks coins by conviction score so the highest-confidence plays surface first. New sorts by when the coin was scored — useful for catching fresh launches the moment Oracle processes them before the wider market. No extra network request: the sort switches client-side from the already-loaded feed.","tags": ["improvement"],@@ -1772,7 +1810,7 @@{"date": "2026-06-16","title": "Coin 3D: Oracle conviction score and watchlist in the HUD",- "summary": "The Token in 3D page now shows Oracle conviction alongside the bonding-curve stats. After the scene loads, the panel fetches the coin's conviction score and tier (prime/strong/lean/watch/avoid) asynchronously \u2014 no scene-render delay. Tap the score badge to jump to the full Oracle breakdown. A new Watch button syncs the token directly into your watchlist across the radar, launches, and visualizer surfaces.",+ "summary": "The Token in 3D page now shows Oracle conviction alongside the bonding-curve stats. After the scene loads, the panel fetches the coin's conviction score and tier (prime/strong/lean/watch/avoid) asynchronously — no scene-render delay. Tap the score badge to jump to the full Oracle breakdown. A new Watch button syncs the token directly into your watchlist across the radar, launches, and visualizer surfaces.","tags": ["improvement"],@@ -1790,7 +1828,7 @@{"date": "2026-06-16","title": "Oracle: Conviction-weighted position sizing",- "summary": "Oracle agents can now scale their position size by conviction strength. Enable 'Scale by conviction' in the Arm your agent panel to have the engine buy up to 1.5\u00d7 the base size for the highest-scoring coins (score 100) and 1.0\u00d7 at the minimum threshold. Positions are still capped by the daily SOL budget \u2014 this rewards the highest-conviction calls without increasing risk on lower-scoring entries.",+ "summary": "Oracle agents can now scale their position size by conviction strength. Enable 'Scale by conviction' in the Arm your agent panel to have the engine buy up to 1.5× the base size for the highest-scoring coins (score 100) and 1.0× at the minimum threshold. Positions are still capped by the daily SOL budget — this rewards the highest-conviction calls without increasing risk on lower-scoring entries.","tags": ["feature","improvement"@@ -1818,7 +1856,7 @@{"date": "2026-06-16","title": "Strategy Lab: backtest Oracle strategies before you deploy",- "summary": "New standalone page at /strategy-lab lets you pick a conviction tier and time window, then see exactly how that filter would have performed: win rate, graduates, 3\u00d7/5\u00d7 hit count, per-tier breakdown, and the top performers in the window. Everything pulls from real resolved Oracle conviction data \u2014 no synthetic numbers. Run a backtest, then deploy directly to the sniper from the results page.",+ "summary": "New standalone page at /strategy-lab lets you pick a conviction tier and time window, then see exactly how that filter would have performed: win rate, graduates, 3×/5× hit count, per-tier breakdown, and the top performers in the window. Everything pulls from real resolved Oracle conviction data — no synthetic numbers. Run a backtest, then deploy directly to the sniper from the results page.","tags": ["feature"],@@ -1845,7 +1883,7 @@{"date": "2026-06-16","title": "Oracle: Activity feed and Agent leaderboard",- "summary": "Two new tabs on the Oracle page. Activity shows a live trading floor \u2014 every Oracle-armed agent action (buy/outcome/PnL) in real time, filterable by mode, tier, and outcome. Agents ranks every conviction agent by their real track record: win rate, realized PnL, and ROI across all graded calls. Subscribe to copy the top performers directly from the leaderboard.",+ "summary": "Two new tabs on the Oracle page. Activity shows a live trading floor — every Oracle-armed agent action (buy/outcome/PnL) in real time, filterable by mode, tier, and outcome. Agents ranks every conviction agent by their real track record: win rate, realized PnL, and ROI across all graded calls. Subscribe to copy the top performers directly from the leaderboard.","tags": ["feature"],@@ -1854,7 +1892,7 @@{"date": "2026-06-16","title": "Sniper: Oracle conviction gate",- "summary": "Agent sniper strategies now support a Min Oracle conviction setting (0\u2013100). When set, the sniper checks the Oracle score before executing any buy \u2014 coins below the threshold are skipped and logged. The gate applies to all three trigger modes: new mint, first-claim, and intel-confirmed. Coins without a score yet (brand-new mints) are allowed through so launch speed is never sacrificed. Configure it in the sniper strategy form on the dashboard.",+ "summary": "Agent sniper strategies now support a Min Oracle conviction setting (0–100). When set, the sniper checks the Oracle score before executing any buy — coins below the threshold are skipped and logged. The gate applies to all three trigger modes: new mint, first-claim, and intel-confirmed. Coins without a score yet (brand-new mints) are allowed through so launch speed is never sacrificed. Configure it in the sniper strategy form on the dashboard.","tags": ["feature"],@@ -1863,7 +1901,7 @@{"date": "2026-06-16","title": "Portfolio: Oracle conviction for every token you hold",- "summary": "The portfolio dashboard now shows Oracle conviction scores on Solana tokens. Each row gets a live badge showing the Oracle score and tier (prime / strong / lean). The pump.fun tokens table adds an Oracle column. And when you open any token's detail drawer, a conviction breakdown appears \u2014 score dial, pillar bars, and a link to the full Oracle analysis. Helps you make informed hold / sell decisions from the portfolio view.",+ "summary": "The portfolio dashboard now shows Oracle conviction scores on Solana tokens. Each row gets a live badge showing the Oracle score and tier (prime / strong / lean). The pump.fun tokens table adds an Oracle column. And when you open any token's detail drawer, a conviction breakdown appears — score dial, pillar bars, and a link to the full Oracle analysis. Helps you make informed hold / sell decisions from the portfolio view.","tags": ["improvement"],@@ -1872,7 +1910,7 @@{"date": "2026-06-16","title": "Copy trading: Oracle conviction gate",- "summary": "Copy subscriptions now support a minimum Oracle conviction score. Set a threshold (0\u2013100) on any subscription and the platform will skip copy intents when the coin's Oracle score is below it. Lets you follow a trader's volume while still only copying their highest-conviction picks. The setting appears in the Advanced filters of the copy setup form on any trader profile.",+ "summary": "Copy subscriptions now support a minimum Oracle conviction score. Set a threshold (0–100) on any subscription and the platform will skip copy intents when the coin's Oracle score is below it. Lets you follow a trader's volume while still only copying their highest-conviction picks. The setting appears in the Advanced filters of the copy setup form on any trader profile.","tags": ["feature"],@@ -1889,8 +1927,8 @@},{"date": "2026-06-16",- "title": "Oracle Proof \u2713 tab \u2014 gallery of verified high-conviction wins",- "summary": "New Proof \u2713 tab on the Oracle page shows every coin that the Oracle called strong or prime and that subsequently delivered \u2014 graduated to Raydium or hit \u22652\u00d7 ATH. Each card shows the conviction score at call time, the four pillar breakdown, and the outcome ATH multiple. Filterable by tier and time window (7d / 30d / 90d). This is the edge made visible: every number is ground-truth, on-chain verifiable.",+ "title": "Oracle Proof ✓ tab — gallery of verified high-conviction wins",+ "summary": "New Proof ✓ tab on the Oracle page shows every coin that the Oracle called strong or prime and that subsequently delivered — graduated to Raydium or hit ≥2× ATH. Each card shows the conviction score at call time, the four pillar breakdown, and the outcome ATH multiple. Filterable by tier and time window (7d / 30d / 90d). This is the edge made visible: every number is ground-truth, on-chain verifiable.","tags": ["feature"],@@ -1899,7 +1937,7 @@{"date": "2026-06-16","title": "Oracle wallet drawer: trader profile and copy-trades links",- "summary": "When you open a wallet from the Oracle's Top Wallets leaderboard, the drawer now shows 'Trader profile \u2197' and 'Copy trades \u2192' links below the track record \u2014 connecting the wallet reputation system directly to copy trading. The wallet list rows also gain a hover-reveal '\u2192' button that opens the trader profile without needing to open the drawer first.",+ "summary": "When you open a wallet from the Oracle's Top Wallets leaderboard, the drawer now shows 'Trader profile ↗' and 'Copy trades →' links below the track record — connecting the wallet reputation system directly to copy trading. The wallet list rows also gain a hover-reveal '→' button that opens the trader profile without needing to open the drawer first.","tags": ["improvement"],@@ -1908,7 +1946,7 @@{"date": "2026-06-16","title": "IRL and XR: choose any of your 3D avatars from a bottom-sheet picker",- "summary": "Both /irl and /xr now let you swap your 3D avatar without leaving the page. Tap Avatar (IRL) or Change (XR) to open a thumbnail grid of all your uploaded avatars. Selecting one hot-swaps the model in the scene instantly \u2014 camera, animations, half-body mode, and AR state all carry over. Signed-out users see a prompt to sign in; empty accounts link to the creation flow.",+ "summary": "Both /irl and /xr now let you swap your 3D avatar without leaving the page. Tap Avatar (IRL) or Change (XR) to open a thumbnail grid of all your uploaded avatars. Selecting one hot-swaps the model in the scene instantly — camera, animations, half-body mode, and AR state all carry over. Signed-out users see a prompt to sign in; empty accounts link to the creation flow.","tags": ["feature"],@@ -1917,7 +1955,7 @@{"date": "2026-06-16","title": "Watchlist: live Oracle conviction badges on every watched coin",- "summary": "Your watchlist now shows the Oracle conviction score and tier for every pinned coin \u2014 prime, strong, lean, watch, or avoid \u2014 right on the card. Scores load with a single batch API call (/api/oracle/batch) after the cards render, so the page stays fast. Tap any badge to open the full Oracle breakdown. The smart-money radar coin drawer also now shows the full Oracle verdict (score, tier, and four pillar bars) alongside the existing pedigree data.",+ "summary": "Your watchlist now shows the Oracle conviction score and tier for every pinned coin — prime, strong, lean, watch, or avoid — right on the card. Scores load with a single batch API call (/api/oracle/batch) after the cards render, so the page stays fast. Tap any badge to open the full Oracle breakdown. The smart-money radar coin drawer also now shows the full Oracle verdict (score, tier, and four pillar bars) alongside the existing pedigree data.","tags": ["improvement"],@@ -1926,7 +1964,7 @@{"date": "2026-06-16","title": "Radar drawer: Oracle conviction scores now inline with coin intelligence",- "summary": "When you open a coin in the /radar drawer, it now shows the Oracle conviction score alongside the coin intelligence analysis \u2014 score, tier badge, and four pillar bars (pedigree/structure/narrative/momentum), with a link to the full Oracle breakdown. Data loads asynchronously so the drawer opens instantly.",+ "summary": "When you open a coin in the /radar drawer, it now shows the Oracle conviction score alongside the coin intelligence analysis — score, tier badge, and four pillar bars (pedigree/structure/narrative/momentum), with a link to the full Oracle breakdown. Data loads asynchronously so the drawer opens instantly.","tags": ["improvement"],@@ -1934,7 +1972,7 @@},{"date": "2026-06-16",- "title": "Agent Activity \u2014 live oracle trading floor",+ "title": "Agent Activity — live oracle trading floor","summary": "New page at /activity shows every Oracle conviction trade made by every autonomous 3D agent, in real time. Filter by tier (prime/strong/lean/watch) and mode (live/simulate). Each entry shows agent avatar, ticker, conviction score, size, and once settled outcome (win/loss/flat) and realized PnL. Win and open entries link directly to the agent's trader profile for one-click copy subscriptions. Platform-level KPIs (agents active, win rate, 7-day PnL) appear at the top. Auto-refreshes every 30 seconds.","tags": ["feature"@@ -1944,7 +1982,7 @@{"date": "2026-06-16","title": "Pump Dashboard: live Oracle conviction panel on the main trading desk",- "summary": "The Pump Dashboard now has a High Conviction panel alongside the live feed \u2014 showing the top 5 Oracle-scored coins (score \u2265 60) with their tier badge, 4-pillar bars, and a link to the Oracle drawer. The panel auto-refreshes every 90 seconds and pulses with a live indicator. Clicking any coin opens the full conviction breakdown.",+ "summary": "The Pump Dashboard now has a High Conviction panel alongside the live feed — showing the top 5 Oracle-scored coins (score ≥ 60) with their tier badge, 4-pillar bars, and a link to the Oracle drawer. The panel auto-refreshes every 90 seconds and pulses with a live indicator. Clicking any coin opens the full conviction breakdown.","tags": ["improvement"],@@ -1952,8 +1990,8 @@},{"date": "2026-06-16",- "title": "Oracle copy trading \u2014 conviction buys now fan out to copy subscribers",- "summary": "Copy subscribers now receive intents from Oracle conviction buys, not just sniper engine positions. When an oracle-armed agent fires a live buy, every active copy subscriber gets a sized, safety-checked copy intent \u2014 respecting their per-trade cap, daily budget, and minimum order size \u2014 exactly as they would for a sniper position. A new DB migration adds leader_oracle_action_id to copy_executions with partial unique indexes for idempotency. Simulated oracle actions are excluded; only mode=live fills fan out.",+ "title": "Oracle copy trading — conviction buys now fan out to copy subscribers",+ "summary": "Copy subscribers now receive intents from Oracle conviction buys, not just sniper engine positions. When an oracle-armed agent fires a live buy, every active copy subscriber gets a sized, safety-checked copy intent — respecting their per-trade cap, daily budget, and minimum order size — exactly as they would for a sniper position. A new DB migration adds leader_oracle_action_id to copy_executions with partial unique indexes for idempotency. Simulated oracle actions are excluded; only mode=live fills fan out.","tags": ["feature"],@@ -1961,8 +1999,8 @@},{"date": "2026-06-16",- "title": "Leaderboard: Oracle Conviction Rankings \u2014 agents ranked by conviction win rate",- "summary": "The Trader Leaderboard now includes an Oracle Conviction Rankings section below the main board. Agents are ranked by conviction win rate across their full Oracle action history (minimum 3 resolved calls required). Each row shows wins/losses, realized PnL, and ROI. A new /api/oracle/leaderboard endpoint drives the data. The Arena agent drawer also now shows the agent's Oracle stats \u2014 actions, win rate, and recent calls \u2014 alongside their trading record.",+ "title": "Leaderboard: Oracle Conviction Rankings — agents ranked by conviction win rate",+ "summary": "The Trader Leaderboard now includes an Oracle Conviction Rankings section below the main board. Agents are ranked by conviction win rate across their full Oracle action history (minimum 3 resolved calls required). Each row shows wins/losses, realized PnL, and ROI. A new /api/oracle/leaderboard endpoint drives the data. The Arena agent drawer also now shows the agent's Oracle stats — actions, win rate, and recent calls — alongside their trading record.","tags": ["feature"],@@ -1970,8 +2008,8 @@},{"date": "2026-06-16",- "title": "Sniper Strategies dashboard \u2014 manage autonomous trading agents",- "summary": "A new dashboard page at /dashboard/sniper lets you arm, configure, and monitor your autonomous pump.fun sniper agents without touching code. Each agent gets its own strategy card: set daily budget, per-trade size, take-profit, stop-loss, trailing stop, and max hold time. Entry filters (market-cap range, creator history, social requirements) narrow which launches the agent snipes. Two trigger modes \u2014 new mint (snipe every launch) and first-claim (snipe when a creator claims rewards for the first time). A live-position strip streams open trades via SSE, with per-position unrealized PnL and Solscan links. Kill-switch is one click. All four sniper API endpoints (strategy, stream, trader, leaderboard) are now routed in production.",+ "title": "Sniper Strategies dashboard — manage autonomous trading agents",+ "summary": "A new dashboard page at /dashboard/sniper lets you arm, configure, and monitor your autonomous pump.fun sniper agents without touching code. Each agent gets its own strategy card: set daily budget, per-trade size, take-profit, stop-loss, trailing stop, and max hold time. Entry filters (market-cap range, creator history, social requirements) narrow which launches the agent snipes. Two trigger modes — new mint (snipe every launch) and first-claim (snipe when a creator claims rewards for the first time). A live-position strip streams open trades via SSE, with per-position unrealized PnL and Solscan links. Kill-switch is one click. All four sniper API endpoints (strategy, stream, trader, leaderboard) are now routed in production.","tags": ["feature"],@@ -1979,8 +2017,8 @@},{"date": "2026-06-16",- "title": "Home page now features Oracle \u2014 live conviction scores on the front page",- "summary": "The three.ws home page now has an Oracle section between the Pump.fun token economy block and the pay-per-call block. It explains the four-pillar conviction system (Who \u00b7 How \u00b7 What \u00b7 Move) and renders a live mini-feed of the current top-scoring coins fetched from /api/oracle/feed \u2014 each card shows the ticker, 0\u2013100 score, tier pill, and four color-coded pillar bars. Clicking any card opens the Oracle drawer for that coin. The live dot pulses while data is streaming.",+ "title": "Home page now features Oracle — live conviction scores on the front page",+ "summary": "The three.ws home page now has an Oracle section between the Pump.fun token economy block and the pay-per-call block. It explains the four-pillar conviction system (Who · How · What · Move) and renders a live mini-feed of the current top-scoring coins fetched from /api/oracle/feed — each card shows the ticker, 0–100 score, tier pill, and four color-coded pillar bars. Clicking any card opens the Oracle drawer for that coin. The live dot pulses while data is streaming.","tags": ["improvement"],@@ -1988,8 +2026,8 @@},{"date": "2026-06-16",- "title": "Coin Intelligence \u2014 watchlist + Oracle conviction now in every card and drawer",- "summary": "The Coin Intelligence radar (/coin-intel) is now connected to both the watchlist and the Oracle. Every coin card shows a \u2606/\u2605 button that tracks or untracks the coin across all platform surfaces (watchlist, launches, Oracle, Smart Money Radar) without opening the drawer. Clicking a coin opens the detail drawer, which now includes: an Oracle Conviction section (tier badge + pillar breakdown fetched in parallel, injected once ready) and direct links to the Oracle full analysis and a watchlist toggle. The Oracle link and watch button sit alongside the existing pump.fun and Solscan links at the bottom of the drawer.",+ "title": "Coin Intelligence — watchlist + Oracle conviction now in every card and drawer",+ "summary": "The Coin Intelligence radar (/coin-intel) is now connected to both the watchlist and the Oracle. Every coin card shows a ☆/★ button that tracks or untracks the coin across all platform surfaces (watchlist, launches, Oracle, Smart Money Radar) without opening the drawer. Clicking a coin opens the detail drawer, which now includes: an Oracle Conviction section (tier badge + pillar breakdown fetched in parallel, injected once ready) and direct links to the Oracle full analysis and a watchlist toggle. The Oracle link and watch button sit alongside the existing pump.fun and Solscan links at the bottom of the drawer.","tags": ["improvement"],@@ -1997,7 +2035,7 @@},{"date": "2026-06-16",- "title": "Agent trading record \u2014 proof-of-edge on every agent profile",+ "title": "Agent trading record — proof-of-edge on every agent profile","summary": "Agent profiles now show a live TRADING RECORD panel that pulls directly from the Oracle's action ledger. Win rate, wins/losses/open, realized PnL, and ROI are computed from real settled trades. Below the summary, the 8 most recent Oracle trades appear as quick-glance rows: outcome dot (green/red/yellow), ticker, conviction tier, peak multiple, and realized PnL. When an agent has profitable exits, a 'Copy this trader' link lets visitors subscribe. The panel stays hidden until the agent has at least one Oracle action, so profiles without trading history are unchanged.","tags": ["feature"@@ -2006,8 +2044,8 @@},{"date": "2026-06-16",- "title": "Win exit alerts \u2014 Telegram fires when an agent's trade resolves profitable",- "summary": "The Oracle settle-loop now fires a Telegram notification to the signals channel whenever an agent's tracked position resolves as a win (graduated or ATH multiple \u2265 2\u00d7). The message shows agent name, realized PnL or peak multiple, conviction tier at entry, size, and direct links to pump.fun, Oracle, and the agent's track record. Simulate-mode wins are labelled [sim] so the channel clearly distinguishes paper trades from live exits.",+ "title": "Win exit alerts — Telegram fires when an agent's trade resolves profitable",+ "summary": "The Oracle settle-loop now fires a Telegram notification to the signals channel whenever an agent's tracked position resolves as a win (graduated or ATH multiple ≥ 2×). The message shows agent name, realized PnL or peak multiple, conviction tier at entry, size, and direct links to pump.fun, Oracle, and the agent's track record. Simulate-mode wins are labelled [sim] so the channel clearly distinguishes paper trades from live exits.","tags": ["feature","improvement"@@ -2016,8 +2054,8 @@},{"date": "2026-06-16",- "title": "Oracle social signal \u2014 X posts now feed into coin conviction scores",- "summary": "The Oracle's Narrative pillar now receives real-time social signal from X. When a coin's $SYMBOL is mentioned in a tweet, the post's reach and engagement \u2014 views, likes, retweets \u2014 translate into a virality boost that raises the Oracle's conviction score. KOL accounts (verified smart-money voices on X) apply a 1.5\u00d7 multiplier. The POST /api/oracle/social endpoint accepts raw tweet batches from any scraper, and the three.surf chart tool ships a --push-social flag that pipes its tweet analysis directly into the Oracle after each run.",+ "title": "Oracle social signal — X posts now feed into coin conviction scores",+ "summary": "The Oracle's Narrative pillar now receives real-time social signal from X. When a coin's $SYMBOL is mentioned in a tweet, the post's reach and engagement — views, likes, retweets — translate into a virality boost that raises the Oracle's conviction score. KOL accounts (verified smart-money voices on X) apply a 1.5× multiplier. The POST /api/oracle/social endpoint accepts raw tweet batches from any scraper, and the three.surf chart tool ships a --push-social flag that pipes its tweet analysis directly into the Oracle after each run.","tags": ["feature","improvement"@@ -2026,8 +2064,8 @@},{"date": "2026-06-16",- "title": "Oracle conviction in the MCP \u2014 agents can now read the fused score and the full trader roster",- "summary": "The pump.fun MCP server now exposes a new get_oracle_conviction tool: it returns the Oracle's fused 0\u2013100 conviction score, tier (prime / strong / lean / watch / avoid), per-pillar breakdown (Pedigree, Structure, Narrative, Momentum), natural-language reasons, badge labels, the complete classified trader roster with reputation labels and win-rates, and the narrative read. The existing get_coin_intel tool has also been upgraded \u2014 it now includes the Oracle score inline alongside the raw signals, so a single call is enough for a trade decision. 3D AI agents on the platform can read conviction data and act on it in real time.",+ "title": "Oracle conviction in the MCP — agents can now read the fused score and the full trader roster",+ "summary": "The pump.fun MCP server now exposes a new get_oracle_conviction tool: it returns the Oracle's fused 0–100 conviction score, tier (prime / strong / lean / watch / avoid), per-pillar breakdown (Pedigree, Structure, Narrative, Momentum), natural-language reasons, badge labels, the complete classified trader roster with reputation labels and win-rates, and the narrative read. The existing get_coin_intel tool has also been upgraded — it now includes the Oracle score inline alongside the raw signals, so a single call is enough for a trade decision. 3D AI agents on the platform can read conviction data and act on it in real time.","tags": ["feature","sdk"@@ -2036,8 +2074,8 @@},{"date": "2026-06-16",- "title": "Rich OG cards on every shared coin link \u2014 price, score, and live status in the preview",- "summary": "Every /launches/<mint> page now generates a dynamic social card \u2014 visible in X, Telegram, Discord, Slack, and iMessage link previews. The card shows the coin's logo, name and symbol, the Coin Intelligence quality score, the organic vs. bundle signal bars, unique buyer count, live market cap, and an outcome badge (GRADUATED / RUGGED / LIVE with a pulsing dot). Every shared link becomes a signal at a glance \u2014 no click required.",+ "title": "Rich OG cards on every shared coin link — price, score, and live status in the preview",+ "summary": "Every /launches/<mint> page now generates a dynamic social card — visible in X, Telegram, Discord, Slack, and iMessage link previews. The card shows the coin's logo, name and symbol, the Coin Intelligence quality score, the organic vs. bundle signal bars, unique buyer count, live market cap, and an outcome badge (GRADUATED / RUGGED / LIVE with a pulsing dot). Every shared link becomes a signal at a glance — no click required.","tags": ["improvement"],@@ -2045,8 +2083,8 @@},{"date": "2026-06-16",- "title": "Watchlist \u2014 save any coin and track it with live Oracle scores",- "summary": "Every launch card now has a bookmark button. Tap it to add the coin to your Watchlist at /watchlist \u2014 a personal live board of every coin you're watching. Each card refreshes every 30 seconds with real price, market cap, volume, and graduation progress. If Oracle has scored the coin, a conviction badge appears right on the card: tier (PRIME / STRONG / LEAN), overall score, and a compact pillar breakdown \u2014 Pedigree, Structure, Narrative, Momentum \u2014 so the four reads that matter are always visible without opening the coin's full page.",+ "title": "Watchlist — save any coin and track it with live Oracle scores",+ "summary": "Every launch card now has a bookmark button. Tap it to add the coin to your Watchlist at /watchlist — a personal live board of every coin you're watching. Each card refreshes every 30 seconds with real price, market cap, volume, and graduation progress. If Oracle has scored the coin, a conviction badge appears right on the card: tier (PRIME / STRONG / LEAN), overall score, and a compact pillar breakdown — Pedigree, Structure, Narrative, Momentum — so the four reads that matter are always visible without opening the coin's full page.","tags": ["feature"],@@ -2055,7 +2093,7 @@{"date": "2026-06-16","title": "Oracle conviction scores refresh every two minutes, automatically",- "summary": "Oracle now runs on a serverless cron that fires every two minutes: it scores the latest pump.fun launches from the data brain, runs every armed watch's act decision, settles resolved trades against real outcomes, and sends Telegram alerts for new prime and strong coins \u2014 all without a long-lived process. The conviction cache is always warm, armed agents always act, and the learning loop always closes.",+ "summary": "Oracle now runs on a serverless cron that fires every two minutes: it scores the latest pump.fun launches from the data brain, runs every armed watch's act decision, settles resolved trades against real outcomes, and sends Telegram alerts for new prime and strong coins — all without a long-lived process. The conviction cache is always warm, armed agents always act, and the learning loop always closes.","tags": ["improvement"],@@ -2064,7 +2102,7 @@{"date": "2026-06-16","title": "Oracle conviction scores now read live crypto news",- "summary": "Oracle's narrative pillar used to guess virality from metadata alone. It now fetches live crypto headlines in real time and shows the LLM which headlines are active when it classifies a coin. When a coin clearly rides a headline \u2014 a news-peg meme, an AI project announced the same day \u2014 the LLM references it directly and the virality score reflects it. The scoring is faster too: five news categories (Solana, DeFi, Bitcoin, alt L1s, general) are fetched once and shared across all coins scored in the same pass.",+ "summary": "Oracle's narrative pillar used to guess virality from metadata alone. It now fetches live crypto headlines in real time and shows the LLM which headlines are active when it classifies a coin. When a coin clearly rides a headline — a news-peg meme, an AI project announced the same day — the LLM references it directly and the virality score reflects it. The scoring is faster too: five news categories (Solana, DeFi, Bitcoin, alt L1s, general) are fetched once and shared across all coins scored in the same pass.","tags": ["improvement"],@@ -2073,7 +2111,7 @@{"date": "2026-06-16","title": "Oracle pre-seeded with hundreds of proven smart-money wallets",- "summary": "Wallet reputation now starts sharp instead of blank. A daily background job pulls the top-100 wallets across seven smart-money cohorts from gmgn.ai \u2014 smart degens, pump traders, KOLs, snipers, top devs \u2014 and seeds them into the platform's wallet reputation table. Wallets with fewer than five coins traded get the imported label and score; wallets the platform has already observed keep the track record it has built from watching real outcomes. Every Oracle pedigree score from this point on benefits from years of externally-verified wallet history, not just what three.ws has seen itself.",+ "summary": "Wallet reputation now starts sharp instead of blank. A daily background job pulls the top-100 wallets across seven smart-money cohorts from gmgn.ai — smart degens, pump traders, KOLs, snipers, top devs — and seeds them into the platform's wallet reputation table. Wallets with fewer than five coins traded get the imported label and score; wallets the platform has already observed keep the track record it has built from watching real outcomes. Every Oracle pedigree score from this point on benefits from years of externally-verified wallet history, not just what three.ws has seen itself.","tags": ["improvement"],@@ -2082,7 +2120,7 @@{"date": "2026-06-16","title": "Oracle fires Telegram alerts for prime and strong conviction coins",- "summary": "When a coin crosses the prime or strong conviction tier, Oracle now fires a Telegram alert with the full score breakdown: overall score, all four pillar values, coin symbol, category, and direct links to the coin's Oracle page and pump.fun listing. Alerts are deduplicated per coin across restarts so you get exactly one signal per conviction event \u2014 no repeats if the cron fires while the alert is already out.",+ "summary": "When a coin crosses the prime or strong conviction tier, Oracle now fires a Telegram alert with the full score breakdown: overall score, all four pillar values, coin symbol, category, and direct links to the coin's Oracle page and pump.fun listing. Alerts are deduplicated per coin across restarts so you get exactly one signal per conviction event — no repeats if the cron fires while the alert is already out.","tags": ["feature"],@@ -2090,8 +2128,8 @@},{"date": "2026-06-16",- "title": "Coin intelligence \u2014 per-signal win-rates explain every oracle decision",- "summary": "The oracle's quality score is no longer a black box. After each learning-loop run, the system now computes per-signal conditional win-rates \u2014 for every signal dimension (bundle score, organic score, smart-money count, category, dev behaviour, and more), it reports the observed graduation rate for each value tier against the platform baseline. An agent calling get_coin_intel now receives the full model alongside the coin snapshot: exactly how often coins with 'clean' bundle scores graduated vs. coins with 'high' bundle scores, or what the graduation rate is when three or more smart-money wallets entered early. The oracle page shows these rates as context behind each risk flag and quality band. The learning loop updates the rates every time a cron run labels new outcomes and retrains \u2014 so the evidence improves as the platform watches more coins.",+ "title": "Coin intelligence — per-signal win-rates explain every oracle decision",+ "summary": "The oracle's quality score is no longer a black box. After each learning-loop run, the system now computes per-signal conditional win-rates — for every signal dimension (bundle score, organic score, smart-money count, category, dev behaviour, and more), it reports the observed graduation rate for each value tier against the platform baseline. An agent calling get_coin_intel now receives the full model alongside the coin snapshot: exactly how often coins with 'clean' bundle scores graduated vs. coins with 'high' bundle scores, or what the graduation rate is when three or more smart-money wallets entered early. The oracle page shows these rates as context behind each risk flag and quality band. The learning loop updates the rates every time a cron run labels new outcomes and retrains — so the evidence improves as the platform watches more coins.","tags": ["feature","improvement"@@ -2100,8 +2138,8 @@},{"date": "2026-06-16",- "title": "Copy trading \u2014 mirror proven traders, non-custodially, on your own terms",- "summary": "You can now copy any trader from their profile. Pick how to size each copy (a fixed amount of SOL, a multiple of the leader's size, or a percentage of your wallet), set a hard per-trade cap and a daily budget, and optionally filter by market cap or require a coin-safety pass. When a trader you follow makes a move, a sized, safety-checked intent lands in your new Copy Trading dashboard \u2014 you review it and execute it yourself, from your own wallet. We never take custody and never sign for you; every copy is capped by your rules so a runaway leader can't drain you. Exits are mirrored too, but only for trades you actually entered, and skipped copies show exactly why they were skipped. Leaders earn a performance fee on the profit you make copying them \u2014 charged only on gains above your prior peak (a high-water mark), never on losses, settled in $THREE with 80% to the trader and the rest funding buybacks and reflecting to holders. Manage everything \u2014 pause, resume, stop, edit size \u2014 in one place.",+ "title": "Copy trading — mirror proven traders, non-custodially, on your own terms",+ "summary": "You can now copy any trader from their profile. Pick how to size each copy (a fixed amount of SOL, a multiple of the leader's size, or a percentage of your wallet), set a hard per-trade cap and a daily budget, and optionally filter by market cap or require a coin-safety pass. When a trader you follow makes a move, a sized, safety-checked intent lands in your new Copy Trading dashboard — you review it and execute it yourself, from your own wallet. We never take custody and never sign for you; every copy is capped by your rules so a runaway leader can't drain you. Exits are mirrored too, but only for trades you actually entered, and skipped copies show exactly why they were skipped. Leaders earn a performance fee on the profit you make copying them — charged only on gains above your prior peak (a high-water mark), never on losses, settled in $THREE with 80% to the trader and the rest funding buybacks and reflecting to holders. Manage everything — pause, resume, stop, edit size — in one place.","tags": ["feature"],@@ -2109,8 +2147,8 @@},{"date": "2026-06-16",- "title": "Oracle \u2014 live trade tape and 3D conviction graph in the war room",- "summary": "Two new war-room surfaces: every coin in Oracle now has a live trade tape inside its drawer that streams every buy and sell in real time, annotated with the trader's archetype \u2014 Smart Money, KOL, Sniper, Rugger \u2014 the moment it lands on-chain. Known wallets from the reputation graph are labeled inline, so you can see a proven wallet enter in real time without hunting through the holder list. Alongside that, the new 3D conviction graph tab plots every scored coin as a sphere in 3D space: size is conviction score, color is tier, and the graph runs a force-directed physics simulation grouping coins by cultural narrative \u2014 meme, AI, tech, culture coins cluster together while you orbit and zoom. Click any sphere to open its full conviction breakdown. Both surfaces are live when you open Oracle.",+ "title": "Oracle — live trade tape and 3D conviction graph in the war room",+ "summary": "Two new war-room surfaces: every coin in Oracle now has a live trade tape inside its drawer that streams every buy and sell in real time, annotated with the trader's archetype — Smart Money, KOL, Sniper, Rugger — the moment it lands on-chain. Known wallets from the reputation graph are labeled inline, so you can see a proven wallet enter in real time without hunting through the holder list. Alongside that, the new 3D conviction graph tab plots every scored coin as a sphere in 3D space: size is conviction score, color is tier, and the graph runs a force-directed physics simulation grouping coins by cultural narrative — meme, AI, tech, culture coins cluster together while you orbit and zoom. Click any sphere to open its full conviction breakdown. Both surfaces are live when you open Oracle.","tags": ["feature","improvement"@@ -2119,8 +2157,8 @@},{"date": "2026-06-16",- "title": "Oracle \u2014 one conviction score per launch, and an agent that acts on it",- "summary": "Oracle is a new way to read pump.fun: instead of a wall of separate metrics, every launch gets one transparent 0\u2013100 conviction score that fuses four reads \u2014 WHO is buying it (the proven track record of the wallets in the book), HOW it's being bought (organic vs. a bundle or a single-funder cluster), WHAT it is (a live cultural-narrative read \u2014 meme, tech, AI, a news-story meme, a culture or community coin), and HOW it's moving. A hard structural cap means a coordinated bundle or a dumping dev can never read 'strong,' no matter who's in it. Open any coin to see the full breakdown, the exact reasons, and a live 'who's in' panel that labels every early wallet by archetype \u2014 smart money, sniper, dumper, rugger \u2014 with its real win rate. A wallet leaderboard ranks the proven money, and an honest 'edge' tab shows the realized graduation rate by conviction tier \u2014 no backfilled numbers. It also starts sharp on day one: hundreds of known smart-money and KOL wallets are pre-seeded, so the moment one shows up in a launch's order book it's credited immediately, even before the platform has judged it from outcomes. Best of all, you can arm your 3D AI agent to act: it watches the live conviction stream and buys a small position the moment a coin clears your bar, starting in simulate so you can watch it work before any real spend. The more coins and wallets the platform watches, the sharper every score.",+ "title": "Oracle — one conviction score per launch, and an agent that acts on it",+ "summary": "Oracle is a new way to read pump.fun: instead of a wall of separate metrics, every launch gets one transparent 0–100 conviction score that fuses four reads — WHO is buying it (the proven track record of the wallets in the book), HOW it's being bought (organic vs. a bundle or a single-funder cluster), WHAT it is (a live cultural-narrative read — meme, tech, AI, a news-story meme, a culture or community coin), and HOW it's moving. A hard structural cap means a coordinated bundle or a dumping dev can never read 'strong,' no matter who's in it. Open any coin to see the full breakdown, the exact reasons, and a live 'who's in' panel that labels every early wallet by archetype — smart money, sniper, dumper, rugger — with its real win rate. A wallet leaderboard ranks the proven money, and an honest 'edge' tab shows the realized graduation rate by conviction tier — no backfilled numbers. It also starts sharp on day one: hundreds of known smart-money and KOL wallets are pre-seeded, so the moment one shows up in a launch's order book it's credited immediately, even before the platform has judged it from outcomes. Best of all, you can arm your 3D AI agent to act: it watches the live conviction stream and buys a small position the moment a coin clears your bar, starting in simulate so you can watch it work before any real spend. The more coins and wallets the platform watches, the sharper every score.","tags": ["feature"],@@ -2128,8 +2166,8 @@},{"date": "2026-06-16",- "title": "Buy any coin directly on three.ws \u2014 Jupiter swap embedded in the coin page",- "summary": "The Trade button on every launch profile now opens an in-platform Jupiter swap terminal instead of bouncing to pump.fun. The terminal is lazy-loaded only when you click, so cold page loads stay fast. Jupiter routes through every available liquidity source including pump.fun's AMM and bonding curve, so it works for both pre-graduation and graduated coins. The price chart now also shows volume bars alongside the price line \u2014 green for net-buy candles, red for net-sell \u2014 giving you an instant read on trade intensity at a glance. The agent panel shows a 'Copy trades' shortcut that takes you directly to the agent's copy-trade setup. And when Birdeye's OHLCV quota is exhausted, the chart falls back to GeckoTerminal automatically, so the chart never goes dark on an actively-trading coin.",+ "title": "Buy any coin directly on three.ws — Jupiter swap embedded in the coin page",+ "summary": "The Trade button on every launch profile now opens an in-platform Jupiter swap terminal instead of bouncing to pump.fun. The terminal is lazy-loaded only when you click, so cold page loads stay fast. Jupiter routes through every available liquidity source including pump.fun's AMM and bonding curve, so it works for both pre-graduation and graduated coins. The price chart now also shows volume bars alongside the price line — green for net-buy candles, red for net-sell — giving you an instant read on trade intensity at a glance. The agent panel shows a 'Copy trades' shortcut that takes you directly to the agent's copy-trade setup. And when Birdeye's OHLCV quota is exhausted, the chart falls back to GeckoTerminal automatically, so the chart never goes dark on an actively-trading coin.","tags": ["feature","improvement"@@ -2138,8 +2176,8 @@},{"date": "2026-06-16",- "title": "Every launch now has its own page \u2014 the full story of a coin in one place",- "summary": "Until now, clicking a coin on the launches feed sent you out to pump.fun. Now every launch opens a rich profile that stays on three.ws and answers every question a trader actually has, all from real on-chain data: live price, market cap and graduation progress; the Coin Intelligence verdict from the coin's first ~90 seconds (a quality score plus organic-vs-bundle, sniping, holder concentration, fresh-wallet and funder-clustering signals, with any risk flags called out); the labeled outcome if it graduated or rugged, with its all-time-high multiple; a live price chart and a live trade tape that ticks every buy and sell as it lands; holder count and concentration; the agent behind the mint and its verifiable TraderScore; and the buyback-and-burn economics for agent-payment coins, each burn linking to its on-chain transaction. Watch a coin, share its page, jump into its 3D world, or open it in 3D \u2014 every number traces back to a real transaction.",+ "title": "Every launch now has its own page — the full story of a coin in one place",+ "summary": "Until now, clicking a coin on the launches feed sent you out to pump.fun. Now every launch opens a rich profile that stays on three.ws and answers every question a trader actually has, all from real on-chain data: live price, market cap and graduation progress; the Coin Intelligence verdict from the coin's first ~90 seconds (a quality score plus organic-vs-bundle, sniping, holder concentration, fresh-wallet and funder-clustering signals, with any risk flags called out); the labeled outcome if it graduated or rugged, with its all-time-high multiple; a live price chart and a live trade tape that ticks every buy and sell as it lands; holder count and concentration; the agent behind the mint and its verifiable TraderScore; and the buyback-and-burn economics for agent-payment coins, each burn linking to its on-chain transaction. Watch a coin, share its page, jump into its 3D world, or open it in 3D — every number traces back to a real transaction.","tags": ["feature"],@@ -2148,7 +2186,7 @@{"date": "2026-06-16","title": "The Sniper Arena is now a living 3D world",- "summary": "The arena used to be a flat leaderboard. Now it's a real 3D world you walk into. Every armed AI agent stands on the trading floor as an animated avatar \u2014 the #1 agent up on a gold podium \u2014 and when they trade live, you see it happen: a cheer and a coin burst on a buy, confetti and a back-flip on a big win, a slump on a loss, each one tied to the same on-chain trade scrolling in the live tape. Pick your own avatar from a roster or the community gallery and walk the floor in third person with WASD or a touch joystick. Floating name tags track each agent with their live P&L, and a banner calls out the biggest win as it lands. Every number is real and verifiable on-chain \u2014 now it has a face.",+ "summary": "The arena used to be a flat leaderboard. Now it's a real 3D world you walk into. Every armed AI agent stands on the trading floor as an animated avatar — the #1 agent up on a gold podium — and when they trade live, you see it happen: a cheer and a coin burst on a buy, confetti and a back-flip on a big win, a slump on a loss, each one tied to the same on-chain trade scrolling in the live tape. Pick your own avatar from a roster or the community gallery and walk the floor in third person with WASD or a touch joystick. Floating name tags track each agent with their live P&L, and a banner calls out the biggest win as it lands. Every number is real and verifiable on-chain — now it has a face.","tags": ["feature"],@@ -2156,8 +2194,8 @@},{"date": "2026-06-15",- "title": "Coin Radar \u2014 every pump.fun launch watched, scored, and classified the moment it goes live",- "summary": "A new intelligence engine watches the first ~90 seconds of every coin that launches on pump.fun and reads what the trading actually says about it. It records every wallet and every buy and sell, then derives the signals that separate a real launch from a trap: is this a coordinated bundle or organic demand? did the dev dump? is one whale holding everything? how concentrated and how fresh are the buyers? Each coin gets a 0\u2013100 quality score, plain-language risk flags, and a category (meme, tech, AI, culture, community, news and more) with a one-line read on what it is. Browse it all on the new Coin Radar \u2014 filter by quality, category, or risk, and open any coin for the full signal breakdown and the top-trader ledger with links to Solscan. Your trading agents read the exact same intelligence through a public API, and a new \"intel-confirmed\" strategy lets a sniper wait for the verdict and only buy launches that clear your quality and bundle limits. The engine also learns: it labels how each watched coin actually turned out and sharpens its own signal weights over time. Wallet-graph signals are shown only when measured \u2014 never faked.",+ "title": "Coin Radar — every pump.fun launch watched, scored, and classified the moment it goes live",+ "summary": "A new intelligence engine watches the first ~90 seconds of every coin that launches on pump.fun and reads what the trading actually says about it. It records every wallet and every buy and sell, then derives the signals that separate a real launch from a trap: is this a coordinated bundle or organic demand? did the dev dump? is one whale holding everything? how concentrated and how fresh are the buyers? Each coin gets a 0–100 quality score, plain-language risk flags, and a category (meme, tech, AI, culture, community, news and more) with a one-line read on what it is. Browse it all on the new Coin Radar — filter by quality, category, or risk, and open any coin for the full signal breakdown and the top-trader ledger with links to Solscan. Your trading agents read the exact same intelligence through a public API, and a new \"intel-confirmed\" strategy lets a sniper wait for the verdict and only buy launches that clear your quality and bundle limits. The engine also learns: it labels how each watched coin actually turned out and sharpens its own signal weights over time. Wallet-graph signals are shown only when measured — never faked.","tags": ["feature"],@@ -2165,8 +2203,8 @@},{"date": "2026-06-15",- "title": "Smart Money Radar \u2014 follow the wallets that actually win on pump.fun",- "summary": "A new way to read a launch: don't judge the coin, judge the money buying it. The Smart Money Radar builds a live reputation graph of every pump.fun wallet by crossing each coin's buyers with the coins that actually graduated to Raydium \u2014 so each wallet earns a real, first-party track record. Wallets that keep getting in early on winners are labeled smart money; the ones that spray into duds or dump on followers are flagged. The radar then scores every fresh coin by the pedigree of the money accumulating it, so you can see what the proven winners are quietly buying right now. Browse the live feed, sort the wallet leaderboard, and click into any coin or wallet to see the receipts. Built from full-coverage trade data \u2014 an edge that compounds as more outcomes land.",+ "title": "Smart Money Radar — follow the wallets that actually win on pump.fun",+ "summary": "A new way to read a launch: don't judge the coin, judge the money buying it. The Smart Money Radar builds a live reputation graph of every pump.fun wallet by crossing each coin's buyers with the coins that actually graduated to Raydium — so each wallet earns a real, first-party track record. Wallets that keep getting in early on winners are labeled smart money; the ones that spray into duds or dump on followers are flagged. The radar then scores every fresh coin by the pedigree of the money accumulating it, so you can see what the proven winners are quietly buying right now. Browse the live feed, sort the wallet leaderboard, and click into any coin or wallet to see the receipts. Built from full-coverage trade data — an edge that compounds as more outcomes land.","tags": ["feature"],@@ -2174,8 +2212,8 @@},{"date": "2026-06-15",- "title": "Trader Leaderboard \u2014 pump.fun traders ranked by a track record you can verify",- "summary": "A new leaderboard ranks every trading agent by a single Trader Score that blends realized P&L, win rate, profit factor, consistency and drawdown \u2014 then holds back judgment until a trader has enough closed trades to trust. Losing trades are counted, never hidden, and fast in-and-out churn is penalized rather than rewarded. Filter by time window (24h / 7d / 30d / all-time), rank by score, P&L, win rate or ROI, and show verified traders only. Open any trader for a full profile: a score gauge, a realized-equity curve, every key metric, their open positions, and a Proof tab where each closed trade links straight to its on-chain buy and sell transaction on Solscan \u2014 the numbers come from those, nothing else. The headline score is also committed on-chain daily as a signed attestation, so it can't be quietly edited after the fact. Share any track record as a one-tap PnL card.",+ "title": "Trader Leaderboard — pump.fun traders ranked by a track record you can verify",+ "summary": "A new leaderboard ranks every trading agent by a single Trader Score that blends realized P&L, win rate, profit factor, consistency and drawdown — then holds back judgment until a trader has enough closed trades to trust. Losing trades are counted, never hidden, and fast in-and-out churn is penalized rather than rewarded. Filter by time window (24h / 7d / 30d / all-time), rank by score, P&L, win rate or ROI, and show verified traders only. Open any trader for a full profile: a score gauge, a realized-equity curve, every key metric, their open positions, and a Proof tab where each closed trade links straight to its on-chain buy and sell transaction on Solscan — the numbers come from those, nothing else. The headline score is also committed on-chain daily as a signed attestation, so it can't be quietly edited after the fact. Share any track record as a one-tap PnL card.","tags": ["feature"],@@ -2183,8 +2221,8 @@},{"date": "2026-06-15",- "title": "Redesigned the $THREE economy page \u2014 watch it move, verify it on-chain",- "summary": "The /three economy page is rebuilt from the ground up. A live visualization called The Flow shows value entering the protocol and splitting in real time to the treasury, to creators, and back to holders \u2014 there is no burn lane, because nothing is ever destroyed (you can pause it any time). The headline number is the total $THREE returned to holders, funded by real usage fees \u2014 never minted, never a tax on your transfers. Treasury and holder-rewards wallets link straight to Solscan so you can check every figure yourself, and each distribution shows up as a row with its on-chain transaction. A holder-tier ladder shows your live progress to the next tier; an interactive pricing explorer applies your tier discount as you browse; and a rare-name studio prices any *.threews.sol name by rarity. Built for clarity and trust: real data only, tabular figures, full keyboard and reduced-motion support.",+ "title": "Redesigned the $THREE economy page — watch it move, verify it on-chain",+ "summary": "The /three economy page is rebuilt from the ground up. A live visualization called The Flow shows value entering the protocol and splitting in real time to the treasury, to creators, and back to holders — there is no burn lane, because nothing is ever destroyed (you can pause it any time). The headline number is the total $THREE returned to holders, funded by real usage fees — never minted, never a tax on your transfers. Treasury and holder-rewards wallets link straight to Solscan so you can check every figure yourself, and each distribution shows up as a row with its on-chain transaction. A holder-tier ladder shows your live progress to the next tier; an interactive pricing explorer applies your tier discount as you browse; and a rare-name studio prices any *.threews.sol name by rarity. Built for clarity and trust: real data only, tabular figures, full keyboard and reduced-motion support.","tags": ["feature","improvement"@@ -2194,7 +2232,7 @@{"date": "2026-06-15","title": "Fixed the footer floating over the avatar viewer",- "summary": "On avatar pages (and a few other 3D viewer pages), the site footer was breaking loose and floating in the middle of the screen, on top of the 3D model \u2014 and its links couldn't be clicked. A styling rule meant only for the small corner credit on viewer pages was leaking onto the real footer. It's fixed: the footer now sits properly at the bottom of the page where it belongs, fully clickable, and the avatar viewer is unobstructed.",+ "summary": "On avatar pages (and a few other 3D viewer pages), the site footer was breaking loose and floating in the middle of the screen, on top of the 3D model — and its links couldn't be clicked. A styling rule meant only for the small corner credit on viewer pages was leaking onto the real footer. It's fixed: the footer now sits properly at the bottom of the page where it belongs, fully clickable, and the avatar viewer is unobstructed.","tags": ["fix"],@@ -2202,8 +2240,8 @@},{"date": "2026-06-15",- "title": "Verify the $THREE economy on-chain \u2014 no \"trust us\"",- "summary": "The /three economy page now shows the real, live Solana wallets behind the numbers. The treasury and the holder-rewards pool are linked straight to Solscan with their current $THREE balances, so anyone can confirm the figures themselves. We never burn supply \u2014 instead, the rewards pool is distributed pro-rata back to holders, and there's now a public 'reflected to holders' total with a run-by-run history (each future distribution links to its on-chain transaction). Value is returned to holders, not destroyed, and every claim on this page is something you can check against the chain.",+ "title": "Verify the $THREE economy on-chain — no \"trust us\"",+ "summary": "The /three economy page now shows the real, live Solana wallets behind the numbers. The treasury and the holder-rewards pool are linked straight to Solscan with their current $THREE balances, so anyone can confirm the figures themselves. We never burn supply — instead, the rewards pool is distributed pro-rata back to holders, and there's now a public 'reflected to holders' total with a run-by-run history (each future distribution links to its on-chain transaction). Value is returned to holders, not destroyed, and every claim on this page is something you can check against the chain.","tags": ["feature","improvement"@@ -2213,7 +2251,7 @@{"date": "2026-06-15","title": "Sniper agents can now buy on a creator's first reward claim",- "summary": "The autonomous sniper has a second way to trigger. Alongside sniping brand-new launches, you can now arm an agent in \"first claim\" mode: it watches pump.fun on-chain and buys a creator's coin the very first time that creator EVER pulls their accrued creator rewards out of the fee vault \u2014 an irreversible signal that the creator is live and taking real fees. You set the rules: how much to spend per buy, your daily budget, how long to wait after the claim before buying, and a minimum (or maximum) claim size so the agent only acts on creators taking real money, not dust. It runs through the same guardrails as every snipe \u2014 mandatory stop-loss, price-impact circuit breaker, daily caps, and one-shot-per-coin \u2014 and manages the position to its exit automatically.",+ "summary": "The autonomous sniper has a second way to trigger. Alongside sniping brand-new launches, you can now arm an agent in \"first claim\" mode: it watches pump.fun on-chain and buys a creator's coin the very first time that creator EVER pulls their accrued creator rewards out of the fee vault — an irreversible signal that the creator is live and taking real fees. You set the rules: how much to spend per buy, your daily budget, how long to wait after the claim before buying, and a minimum (or maximum) claim size so the agent only acts on creators taking real money, not dust. It runs through the same guardrails as every snipe — mandatory stop-loss, price-impact circuit breaker, daily caps, and one-shot-per-coin — and manages the position to its exit automatically.","tags": ["feature"],@@ -2222,7 +2260,7 @@{"date": "2026-06-15","title": "Buy any coin straight from the Pump Visualizer",- "summary": "Click a coin in the Pump Visualizer and you can now buy it on the spot \u2014 no trip to pump.fun. The new Buy button opens a real on-chain trade window right in the detail panel: pick an amount, see a live price quote and your slippage, and your connected Solana wallet signs the purchase. It handles both bonding-curve and graduated coins, prices in SOL or USDC automatically, and lets you sell too. Same trade window the /play worlds use, now wherever you're exploring trending coins.",+ "summary": "Click a coin in the Pump Visualizer and you can now buy it on the spot — no trip to pump.fun. The new Buy button opens a real on-chain trade window right in the detail panel: pick an amount, see a live price quote and your slippage, and your connected Solana wallet signs the purchase. It handles both bonding-curve and graduated coins, prices in SOL or USDC automatically, and lets you sell too. Same trade window the /play worlds use, now wherever you're exploring trending coins.","tags": ["feature"],@@ -2231,7 +2269,7 @@{"date": "2026-06-15","title": "Pump Visualizer: a coin's look now tracks its market cap",- "summary": "On the Pump Visualizer, market cap no longer just sizes a coin \u2014 it shapes its whole look. As a coin's cap climbs it shifts color from cool blue through purple to green and gold, grows a crystalline wireframe cage that gains facets at each tier, and spins and pulses with more energy. On the trending refresh, a coin that moved gets a clear signal: it flashes green and pops bigger when its cap rose, red and dips when it fell, and crossing into a higher or lower tier visibly upgrades or downgrades its shape and color. A new on-screen key in the corner maps each color and tier to its market-cap range so it all reads at a glance.",+ "summary": "On the Pump Visualizer, market cap no longer just sizes a coin — it shapes its whole look. As a coin's cap climbs it shifts color from cool blue through purple to green and gold, grows a crystalline wireframe cage that gains facets at each tier, and spins and pulses with more energy. On the trending refresh, a coin that moved gets a clear signal: it flashes green and pops bigger when its cap rose, red and dips when it fell, and crossing into a higher or lower tier visibly upgrades or downgrades its shape and color. A new on-screen key in the corner maps each color and tier to its market-cap range so it all reads at a glance.","tags": ["feature"],@@ -2240,7 +2278,7 @@{"date": "2026-06-15","title": "Three distinct dancers, now waiting at their poles",- "summary": "The Pole Club stage no longer sits empty between tips. Three dancers now stand at their own poles, lit and facing the crowd, the moment you arrive \u2014 each a different 3D avatar pulled from the gallery (still tinted to her pole's neon color) instead of copies of one model, and every dancer is auto-scaled to the same height so the lineup reads as a set. Tip a pole and that dancer steps onto it and runs her routine, then returns to her stance at the pole. No tip, no dance \u2014 same rule, just a stage that looks alive from the first second. Behind the scenes the animation engine now retargets onto more rig types, so far more uploaded avatars can actually dance.",+ "summary": "The Pole Club stage no longer sits empty between tips. Three dancers now stand at their own poles, lit and facing the crowd, the moment you arrive — each a different 3D avatar pulled from the gallery (still tinted to her pole's neon color) instead of copies of one model, and every dancer is auto-scaled to the same height so the lineup reads as a set. Tip a pole and that dancer steps onto it and runs her routine, then returns to her stance at the pole. No tip, no dance — same rule, just a stage that looks alive from the first second. Behind the scenes the animation engine now retargets onto more rig types, so far more uploaded avatars can actually dance.","tags": ["improvement"],@@ -2249,7 +2287,7 @@{"date": "2026-06-15","title": "More uploaded avatars can dance",- "summary": "The built-in animation library can now drive avatars built on more skeleton types \u2014 including game-engine and other creator-tool rigs \u2014 not just the common ones. Previously some uploaded avatars would load but stand frozen because the animation system couldn't match their bone names; now those bones map automatically, so the full set of dances, poses, and idle motion plays on them everywhere avatars appear \u2014 the club, the walk view, AR, and the studio.",+ "summary": "The built-in animation library can now drive avatars built on more skeleton types — including game-engine and other creator-tool rigs — not just the common ones. Previously some uploaded avatars would load but stand frozen because the animation system couldn't match their bone names; now those bones map automatically, so the full set of dances, poses, and idle motion plays on them everywhere avatars appear — the club, the walk view, AR, and the studio.","tags": ["improvement"],@@ -2258,7 +2296,7 @@{"date": "2026-06-15","title": "The $THREE economy, on one page",- "summary": "A new page at /three lays out exactly how three.ws uses $THREE \u2014 the only coin. You pay in $THREE only for things that cost real compute (premium 3D generation, voice cloning, advanced data); creating agents, browsing, embedding, chatting, basic worlds, and draft generation stay free forever. Holders get a tier ladder: hold $THREE for lower fees on everything you do pay for, higher free limits, private worlds, and early access. Short and dictionary *.threews.sol names are now priced by rarity (common names remain free). And there are no burns \u2014 every $THREE spent flows to the treasury or reflects back to holders pro-rata. The page shows live settled volume, what's reflected to holders, and your own tier.",+ "summary": "A new page at /three lays out exactly how three.ws uses $THREE — the only coin. You pay in $THREE only for things that cost real compute (premium 3D generation, voice cloning, advanced data); creating agents, browsing, embedding, chatting, basic worlds, and draft generation stay free forever. Holders get a tier ladder: hold $THREE for lower fees on everything you do pay for, higher free limits, private worlds, and early access. Short and dictionary *.threews.sol names are now priced by rarity (common names remain free). And there are no burns — every $THREE spent flows to the treasury or reflects back to holders pro-rata. The page shows live settled volume, what's reflected to holders, and your own tier.","tags": ["feature"],@@ -2267,7 +2305,7 @@{"date": "2026-06-15","title": "Refer friends with a 3D membership card",- "summary": "Your account now has a Referrals page with a 3D, flippable membership card \u2014 your member number, referral count, and score on the front, a scannable QR for your invite link on the back. Tilt it with your cursor, flip it over, then share it: post to X or Telegram, copy your link, or download the card as an image. Anyone who signs up through your link is tied to you for life, and you earn 5% in USDC on everything they buy on three.ws. Sign-ups now carry your referral code through every login method \u2014 email and wallet alike \u2014 so credit always lands where it's due.",+ "summary": "Your account now has a Referrals page with a 3D, flippable membership card — your member number, referral count, and score on the front, a scannable QR for your invite link on the back. Tilt it with your cursor, flip it over, then share it: post to X or Telegram, copy your link, or download the card as an image. Anyone who signs up through your link is tied to you for life, and you earn 5% in USDC on everything they buy on three.ws. Sign-ups now carry your referral code through every login method — email and wallet alike — so credit always lands where it's due.","tags": ["feature"],@@ -2276,7 +2314,7 @@{"date": "2026-06-15","title": "Camera AR on /irl now turns on",- "summary": "The \"Camera AR\" button on the IRL page was stuck \u2014 it never lit up, on desktop or phone, so you could never drop your avatar into your real room. Two bugs were behind it: a startup error in the joystick setup crashed the page's script before the button could ever be enabled, and even once that was past, the camera could hang on \"Requesting camera\u2026\" forever because playback was started before the video was visible. Both are fixed: the button now activates once your avatar loads, and tapping it opens the camera reliably on phone and desktop so you can walk your avatar across your real floor.",+ "summary": "The \"Camera AR\" button on the IRL page was stuck — it never lit up, on desktop or phone, so you could never drop your avatar into your real room. Two bugs were behind it: a startup error in the joystick setup crashed the page's script before the button could ever be enabled, and even once that was past, the camera could hang on \"Requesting camera…\" forever because playback was started before the video was visible. Both are fixed: the button now activates once your avatar loads, and tapping it opens the camera reliably on phone and desktop so you can walk your avatar across your real floor.","tags": ["fix"],@@ -2285,7 +2323,7 @@{"date": "2026-06-15","title": "Walk into the Pole Club as your own 3D avatar",- "summary": "The club now has a way in that you control. Land on /club and you spawn outside in an alley as your own 3D avatar \u2014 move with WASD, arrows, or a touch joystick, drag to look around, and walk up to the neon door at the end of the alley. Step into range and a prompt appears: press E, tap, or click the door to pay the $0.01 cover. Pay it and your avatar walks through the club house interior while the night's anthem kicks in, then the room with the poles opens up around you. It's all real 3D, streamed from compressed scenes (~20 MB exports cut to ~1.6 MB each) and prefetched while you walk so nothing stalls. Already paid tonight? You skip the line and walk straight in.",+ "summary": "The club now has a way in that you control. Land on /club and you spawn outside in an alley as your own 3D avatar — move with WASD, arrows, or a touch joystick, drag to look around, and walk up to the neon door at the end of the alley. Step into range and a prompt appears: press E, tap, or click the door to pay the $0.01 cover. Pay it and your avatar walks through the club house interior while the night's anthem kicks in, then the room with the poles opens up around you. It's all real 3D, streamed from compressed scenes (~20 MB exports cut to ~1.6 MB each) and prefetched while you walk so nothing stalls. Already paid tonight? You skip the line and walk straight in.","tags": ["feature"],@@ -2293,8 +2331,8 @@},{"date": "2026-06-15",- "title": "Save any avatar as your own \u2014 forks with their own wallet",- "summary": "Saving someone else's avatar now works like forking on GitHub: it mints a brand-new avatar in your account with its own copy of the model, linked back to the original with a \"Forked from\" credit and a fork counter on the source. You never share one avatar between two people \u2014 your copy is yours to edit, deploy, or launch, and the original owner's stays untouched. Every saved or forked avatar's agent also gets its own custodial wallet (EVM + Solana) the moment it lands, assigned to you alone \u2014 create it, copy the addresses, or manage it right from the avatar page, the editor, and the gallery picker. One person can hold a copy of another's avatar, but no two people ever control the same agent wallet.",+ "title": "Save any avatar as your own — forks with their own wallet",+ "summary": "Saving someone else's avatar now works like forking on GitHub: it mints a brand-new avatar in your account with its own copy of the model, linked back to the original with a \"Forked from\" credit and a fork counter on the source. You never share one avatar between two people — your copy is yours to edit, deploy, or launch, and the original owner's stays untouched. Every saved or forked avatar's agent also gets its own custodial wallet (EVM + Solana) the moment it lands, assigned to you alone — create it, copy the addresses, or manage it right from the avatar page, the editor, and the gallery picker. One person can hold a copy of another's avatar, but no two people ever control the same agent wallet.","tags": ["feature"],@@ -2303,7 +2341,7 @@{"date": "2026-06-15","title": "Sell your animations in the marketplace",- "summary": "Animations you build in the Studio can now be listed for sale. Pose a figure, drop your keyframes, save the clip, then hit Sell \u2014 set a price in USDC (or list it free) and three.ws bakes a self-contained animated GLB and publishes it to a new \"From creators\" shelf in the animation marketplace. Buyers see a poster, the creator, length and price; free clips download in one click, and paid clips are unlocked by paying once in USDC on Base or Solana \u2014 re-download free forever from the same wallet. Earnings settle straight to your payout wallet, and your motion data stays gated behind the paywall until someone buys.",+ "summary": "Animations you build in the Studio can now be listed for sale. Pose a figure, drop your keyframes, save the clip, then hit Sell — set a price in USDC (or list it free) and three.ws bakes a self-contained animated GLB and publishes it to a new \"From creators\" shelf in the animation marketplace. Buyers see a poster, the creator, length and price; free clips download in one click, and paid clips are unlocked by paying once in USDC on Base or Solana — re-download free forever from the same wallet. Earnings settle straight to your payout wallet, and your motion data stays gated behind the paywall until someone buys.","tags": ["feature"],@@ -2311,8 +2349,8 @@},{"date": "2026-06-15",- "title": "Sniper Arena \u2014 watch AI agents trade pump.fun live",- "summary": "Agents can now trade pump.fun autonomously. A new always-on engine watches every launch in real time, scores it against an agent's strategy (market-cap band, creator track record, socials), and \u2014 when it qualifies \u2014 buys from the agent's own Solana wallet, then manages the position to a take-profit, stop-loss, trailing stop, or timeout exit. Arming an agent is opt-in and capped: you set a daily budget, a per-trade size, and a mandatory stop-loss, with a kill switch that halts new buys instantly. The new Sniper Arena at three.ws/play/arena shows it all happening live \u2014 a P&L leaderboard, a streaming trade ticker where every fill links to its on-chain transaction, and the top agent's 3D avatar reacting to its own wins. Autonomous trading is experimental and you can lose the funds you commit.",+ "title": "Sniper Arena — watch AI agents trade pump.fun live",+ "summary": "Agents can now trade pump.fun autonomously. A new always-on engine watches every launch in real time, scores it against an agent's strategy (market-cap band, creator track record, socials), and — when it qualifies — buys from the agent's own Solana wallet, then manages the position to a take-profit, stop-loss, trailing stop, or timeout exit. Arming an agent is opt-in and capped: you set a daily budget, a per-trade size, and a mandatory stop-loss, with a kill switch that halts new buys instantly. The new Sniper Arena at three.ws/play/arena shows it all happening live — a P&L leaderboard, a streaming trade ticker where every fill links to its on-chain transaction, and the top agent's 3D avatar reacting to its own wins. Autonomous trading is experimental and you can lose the funds you commit.","tags": ["feature"],@@ -2321,7 +2359,7 @@{"date": "2026-06-15","title": "There's a cover at the Pole Club door",- "summary": "The club now has a line outside. Before the room opens you pay a $0.01 USDC cover at the door via x402, and an on-chain bouncer checks the paying wallet \u2014 banned wallets are turned away, everyone else gets in with a door tier (newcomer, regular, or VIP) based on their past club nights. Pay once and you're in for the night; reopen the page and the velvet rope drops automatically. The 3D room loads behind the door while you're in line, so it's warm the moment you step in.",+ "summary": "The club now has a line outside. Before the room opens you pay a $0.01 USDC cover at the door via x402, and an on-chain bouncer checks the paying wallet — banned wallets are turned away, everyone else gets in with a door tier (newcomer, regular, or VIP) based on their past club nights. Pay once and you're in for the night; reopen the page and the velvet rope drops automatically. The 3D room loads behind the door while you're in line, so it's warm the moment you step in.","tags": ["feature"],@@ -2329,16 +2367,16 @@},{"date": "2026-06-15",- "title": "Pose any avatar \u2014 a full motion library on the avatar page",- "summary": "Every avatar page has a new Pose tab. Open it and the avatar steps onto a live 3D stage you can orbit, with a searchable library of 100+ motions \u2014 idle, wave, dance, jump, flex, facepalm and more. Click one and it plays on the avatar instantly, even when the model itself ships no built-in animation: the clips retarget onto its skeleton in your browser. A speed slider and a reset-to-idle control round out the transport. Avatars without a standard humanoid rig get a clear message instead of a broken stage.",+ "title": "Pose any avatar — a full motion library on the avatar page",+ "summary": "Every avatar page has a new Pose tab. Open it and the avatar steps onto a live 3D stage you can orbit, with a searchable library of 100+ motions — idle, wave, dance, jump, flex, facepalm and more. Click one and it plays on the avatar instantly, even when the model itself ships no built-in animation: the clips retarget onto its skeleton in your browser. A speed slider and a reset-to-idle control round out the transport. Avatars without a standard humanoid rig get a clear message instead of a broken stage.","tags": ["feature"]},{"date": "2026-06-15",- "title": "Avatars come to life \u2014 animations now play on the avatar page",- "summary": "Every avatar page now plays its built-in animation the moment it loads, so a rigged avatar stands, breathes, or performs its motion instead of freezing in a static pose. A new floating control sits over the 3D stage: a play/pause button, plus a clip switcher when an avatar carries more than one take so you can jump between them. Avatars with no embedded motion are unaffected \u2014 the control only appears when there's something to play.",+ "title": "Avatars come to life — animations now play on the avatar page",+ "summary": "Every avatar page now plays its built-in animation the moment it loads, so a rigged avatar stands, breathes, or performs its motion instead of freezing in a static pose. A new floating control sits over the 3D stage: a play/pause button, plus a clip switcher when an avatar carries more than one take so you can jump between them. Avatars with no embedded motion are unaffected — the control only appears when there's something to play.","tags": ["feature"]@@ -2346,7 +2384,7 @@{"date": "2026-06-15","title": "The IRL page loads again",- "summary": "Opening three.ws/irl returned a Not Found error even though the page was fully built and linked from the navigation. The page wasn't mapped in our routing rules, so the server never served it. We added the route \u2014 the IRL experience (walk a 3D avatar in your real space with camera passthrough, an on-screen joystick, and tap-to-place objects) now opens directly from the link in the menu.",+ "summary": "Opening three.ws/irl returned a Not Found error even though the page was fully built and linked from the navigation. The page wasn't mapped in our routing rules, so the server never served it. We added the route — the IRL experience (walk a 3D avatar in your real space with camera passthrough, an on-screen joystick, and tap-to-place objects) now opens directly from the link in the menu.","tags": ["fix"],@@ -2355,7 +2393,7 @@{"date": "2026-06-15","title": "Browse every community avatar from your dashboard",- "summary": "The dashboard Avatars page now has a Community tab alongside My avatars. It shows every public 3D avatar the whole community has built \u2014 with live spinning previews, a running count and total views, search, tag filters, and infinite scroll. Open any one as a live page, remix it in the 3D studio, or copy its share link, embed snippet, or GLB URL in a click.",+ "summary": "The dashboard Avatars page now has a Community tab alongside My avatars. It shows every public 3D avatar the whole community has built — with live spinning previews, a running count and total views, search, tag filters, and infinite scroll. Open any one as a live page, remix it in the 3D studio, or copy its share link, embed snippet, or GLB URL in a click.","tags": ["feature"],@@ -2364,7 +2402,7 @@{"date": "2026-06-15","title": "The top navigation is back on every page",- "summary": "The site header was being clipped to a sliver on most pages \u2014 the menu, search, and account controls were cut off and the dropdowns wouldn't open. An old style rule meant for the standalone 3D viewer's compact toolbar was leaking onto the shared navigation, forcing it to a fixed height and hiding everything below it. The viewer rule is now scoped to only the viewer, so the full navigation renders at its natural height across the whole site.",+ "summary": "The site header was being clipped to a sliver on most pages — the menu, search, and account controls were cut off and the dropdowns wouldn't open. An old style rule meant for the standalone 3D viewer's compact toolbar was leaking onto the shared navigation, forcing it to a fixed height and hiding everything below it. The viewer rule is now scoped to only the viewer, so the full navigation renders at its natural height across the whole site.","tags": ["fix"]@@ -2372,7 +2410,7 @@{"date": "2026-06-15","title": "The site footer and top pages are now polished on phones",- "summary": "On mobile the footer's link columns ran off the right edge and got cut off \u2014 the contract address and legal links were unreachable \u2014 because an old style rule for the 3D viewer's corner credit was hijacking the main footer's layout. The footer now stacks into clean, tappable columns on every page. We also did a mobile pass across the most-used pages \u2014 Home, Discover, Create, Forge, Marketplace, Gallery, and Pay \u2014 eliminating sideways scrolling, enlarging tap targets to a comfortable size, and stopping form fields from zooming the page when you tap them.",+ "summary": "On mobile the footer's link columns ran off the right edge and got cut off — the contract address and legal links were unreachable — because an old style rule for the 3D viewer's corner credit was hijacking the main footer's layout. The footer now stacks into clean, tappable columns on every page. We also did a mobile pass across the most-used pages — Home, Discover, Create, Forge, Marketplace, Gallery, and Pay — eliminating sideways scrolling, enlarging tap targets to a comfortable size, and stopping form fields from zooming the page when you tap them.","tags": ["fix","improvement"@@ -2380,8 +2418,8 @@},{"date": "2026-06-15",- "title": "Homepage Forge is more reliable \u2014 no more \"busy\" on the second model",- "summary": "The mini Forge on the homepage now runs on the same free Standard lane as the full /forge page. Before, it used the free draft preview, which has tight concurrency and would return a \"generator is busy\" message on a quick second generation. Now back-to-back prompts hold up \u2014 models still land free with no sign-up, and the platform automatically degrades to the faster free lane if the main one is throttled.",+ "title": "Homepage Forge is more reliable — no more \"busy\" on the second model",+ "summary": "The mini Forge on the homepage now runs on the same free Standard lane as the full /forge page. Before, it used the free draft preview, which has tight concurrency and would return a \"generator is busy\" message on a quick second generation. Now back-to-back prompts hold up — models still land free with no sign-up, and the platform automatically degrades to the faster free lane if the main one is throttled.","tags": ["fix"],@@ -2389,8 +2427,8 @@},{"date": "2026-06-15",- "title": "Chat never stalls on a down AI model \u2014 instant, quiet failover",- "summary": "If you pick a specific AI model for the agent (say Claude) and our key for that provider is temporarily unavailable, chat now hands you an answer instantly from a healthy free model instead of pausing on the dead provider. Previously the app re-tried the unavailable provider on the very first attempt of every single message \u2014 adding a little delay each time and filling our logs with repeat warnings. Now a provider with a key or billing problem is set aside for a few minutes after the first failure and skipped up front, even when it was the one you explicitly chose, so the next message goes straight to a model that works. Free-first, always a working fallback.",+ "title": "Chat never stalls on a down AI model — instant, quiet failover",+ "summary": "If you pick a specific AI model for the agent (say Claude) and our key for that provider is temporarily unavailable, chat now hands you an answer instantly from a healthy free model instead of pausing on the dead provider. Previously the app re-tried the unavailable provider on the very first attempt of every single message — adding a little delay each time and filling our logs with repeat warnings. Now a provider with a key or billing problem is set aside for a few minutes after the first failure and skipped up front, even when it was the one you explicitly chose, so the next message goes straight to a model that works. Free-first, always a working fallback.","tags": ["improvement"],@@ -2398,8 +2436,8 @@},{"date": "2026-06-15",- "title": "The Forge always returns a model \u2014 the default never dead-ends",- "summary": "Typing a prompt into the Forge on the default Standard setting now always produces a 3D model, even when our paid reconstruction provider is throttled or over its quota. Previously a busy upstream could leave the default flow stuck on a \"generator is busy, try again\" message that never cleared. Now, if the paid engine is unavailable, a text prompt transparently falls back to the free NVIDIA lane and still hands you a finished model \u2014 and the result clearly shows which engine produced it, so the change is never hidden. Free-first, always a working fallback.",+ "title": "The Forge always returns a model — the default never dead-ends",+ "summary": "Typing a prompt into the Forge on the default Standard setting now always produces a 3D model, even when our paid reconstruction provider is throttled or over its quota. Previously a busy upstream could leave the default flow stuck on a \"generator is busy, try again\" message that never cleared. Now, if the paid engine is unavailable, a text prompt transparently falls back to the free NVIDIA lane and still hands you a finished model — and the result clearly shows which engine produced it, so the change is never hidden. Free-first, always a working fallback.","tags": ["fix"],@@ -2407,8 +2445,8 @@},{"date": "2026-06-15",- "title": "The Forge grows itself \u2014 a new avatar or accessory every minute, tied to real accounts",- "summary": "A new auto-generation system creates a fresh 3D avatar or accessory every minute using the free NVIDIA lane and adds it to the community gallery. Each model is attributed to a new user account with an OG single-word username \u2014 wolf, raven, iron, frost \u2014 so the gallery reads like a real creator community. The system cycles through 200+ curated prompts covering fantasy warriors, sci-fi soldiers, mythological creatures, and matching weapons, armor, and accessories, cycling through the full library before repeating. Every model is a permanent GLB stored in our own CDN.",+ "title": "The Forge grows itself — a new avatar or accessory every minute, tied to real accounts",+ "summary": "A new auto-generation system creates a fresh 3D avatar or accessory every minute using the free NVIDIA lane and adds it to the community gallery. Each model is attributed to a new user account with an OG single-word username — wolf, raven, iron, frost — so the gallery reads like a real creator community. The system cycles through 200+ curated prompts covering fantasy warriors, sci-fi soldiers, mythological creatures, and matching weapons, armor, and accessories, cycling through the full library before repeating. Every model is a permanent GLB stored in our own CDN.","tags": ["feature"],@@ -2416,8 +2454,8 @@},{"date": "2026-06-15",- "title": "Agents and items are now clearly separate \u2014 a teapot won't get a brain",- "summary": "Every 3D model you create is now clearly one of two things: an Agent (a character that thinks, talks, remembers, and can go on-chain) or an Item (a 3D object or prop for scenes and trading). On the review screen the choice is spelled out with a short description of each, and we pick a smart default \u2014 models from the selfie, studio, and character tools start as agents, while anything you type into existence with prompt-to-3D starts as an item, so a teapot is never pre-loaded with a brain. Pick Item and the agent-only capabilities (voice, persona, on-chain identity) step aside for a gentle note \u2014 with a one-click \"made a character? make it an agent\" escape hatch if the guess was wrong. The Forge tagger now groups its labels the same way, calling out that only avatars and creatures can become agents.",+ "title": "Agents and items are now clearly separate — a teapot won't get a brain",+ "summary": "Every 3D model you create is now clearly one of two things: an Agent (a character that thinks, talks, remembers, and can go on-chain) or an Item (a 3D object or prop for scenes and trading). On the review screen the choice is spelled out with a short description of each, and we pick a smart default — models from the selfie, studio, and character tools start as agents, while anything you type into existence with prompt-to-3D starts as an item, so a teapot is never pre-loaded with a brain. Pick Item and the agent-only capabilities (voice, persona, on-chain identity) step aside for a gentle note — with a one-click \"made a character? make it an agent\" escape hatch if the guess was wrong. The Forge tagger now groups its labels the same way, calling out that only avatars and creatures can become agents.","tags": ["improvement"],@@ -2426,7 +2464,7 @@{"date": "2026-06-15","title": "Clearer launch & trade errors, and a graduated badge on coins",- "summary": "When a token launch or an in-world trade can't go through, the app now tells you exactly why and what to do next \u2014 \"Not enough SOL to cover the launch + network fees,\" \"Price moved beyond your slippage limit,\" \"You cancelled the signature in your wallet,\" or \"Couldn't reach the Solana network\" \u2014 instead of a single catch-all \"Connection error.\" Coins also show their lifecycle at a glance: the trade panel carries a badge marking whether a coin is still on its bonding curve or has graduated to the PumpSwap AMM, so a graduated coin is unmistakable. Backed by new end-to-end browser tests that drive the full four-step launch flow and the buy/sell widget so this conversion path can't silently break.",+ "summary": "When a token launch or an in-world trade can't go through, the app now tells you exactly why and what to do next — \"Not enough SOL to cover the launch + network fees,\" \"Price moved beyond your slippage limit,\" \"You cancelled the signature in your wallet,\" or \"Couldn't reach the Solana network\" — instead of a single catch-all \"Connection error.\" Coins also show their lifecycle at a glance: the trade panel carries a badge marking whether a coin is still on its bonding curve or has graduated to the PumpSwap AMM, so a graduated coin is unmistakable. Backed by new end-to-end browser tests that drive the full four-step launch flow and the buy/sell widget so this conversion path can't silently break.","tags": ["improvement"],@@ -2434,8 +2472,8 @@},{"date": "2026-06-15",- "title": "Pump dashboard alerts now run server-side \u2014 fire across devices even with the tab closed",- "summary": "Alert rules moved from your browser to our servers, so they fire whether or not a dashboard tab is open and follow you across every device you sign in on. Build as many rules as you need: get notified when any token (or a specific mint, or one of your agents' coins) graduates to an AMM, when a coin's market cap rises above or falls below a price you set, when someone places a whale-sized buy, or when one of your agents launches a new coin. Each rule delivers however you want \u2014 an in-app notification, a signed webhook POST to your own server, and Telegram \u2014 with each channel handled independently so one failing never blocks the others. Per-rule cooldowns and de-duplication prevent alert storms, the dashboard shows when a rule last fired and surfaces any delivery failures, and existing graduation alerts were migrated over automatically.",+ "title": "Pump dashboard alerts now run server-side — fire across devices even with the tab closed",+ "summary": "Alert rules moved from your browser to our servers, so they fire whether or not a dashboard tab is open and follow you across every device you sign in on. Build as many rules as you need: get notified when any token (or a specific mint, or one of your agents' coins) graduates to an AMM, when a coin's market cap rises above or falls below a price you set, when someone places a whale-sized buy, or when one of your agents launches a new coin. Each rule delivers however you want — an in-app notification, a signed webhook POST to your own server, and Telegram — with each channel handled independently so one failing never blocks the others. Per-rule cooldowns and de-duplication prevent alert storms, the dashboard shows when a rule last fired and surfaces any delivery failures, and existing graduation alerts were migrated over automatically.","tags": ["feature"],@@ -2444,7 +2482,7 @@{"date": "2026-06-15","title": "On-chain model validation for Solana agents",- "summary": "Solana agents now get the same verifiable, on-chain glTF/model validation that EVM agents get from the ValidationRegistry \u2014 no contract to deploy. When you register an agent on Solana, the platform validator fetches your avatar's GLB, runs it through the same Khronos glTF validator behind the model checker, and records the pass/fail result as a signed on-chain attestation (an SPL Memo carrying a SHA-256 proof of the full report and a link to it). The result shows up as a 'model verified' badge on the agent passport, rides on the agent card, and is queryable at /api/agents/solana-validation. Anyone can independently recompute the proof hash from the same GLB to confirm the verdict, and you can re-validate on demand after updating your model. Re-attesting an identical report is idempotent, so no duplicate transactions.",+ "summary": "Solana agents now get the same verifiable, on-chain glTF/model validation that EVM agents get from the ValidationRegistry — no contract to deploy. When you register an agent on Solana, the platform validator fetches your avatar's GLB, runs it through the same Khronos glTF validator behind the model checker, and records the pass/fail result as a signed on-chain attestation (an SPL Memo carrying a SHA-256 proof of the full report and a link to it). The result shows up as a 'model verified' badge on the agent passport, rides on the agent card, and is queryable at /api/agents/solana-validation. Anyone can independently recompute the proof hash from the same GLB to confirm the verdict, and you can re-validate on demand after updating your model. Re-attesting an identical report is idempotent, so no duplicate transactions.","tags": ["feature","security"@@ -2452,8 +2490,8 @@},{"date": "2026-06-15",- "title": "Live coin status \u2014 price, market cap and graduation \u2014 now unified across the platform",- "summary": "The launches feed, agent profile token panels, and the in-world agent coin card now share one live coin-status display, so every place that shows a coin reads the same numbers from the same source. Launch cards now stream the coin's real logo, USD price, market cap, a graduation progress ring and time since launch \u2014 not just market cap \u2014 with the orbital fingerprint as a placeholder until the logo loads. Agent profiles show a live price-and-graduation chip in the token panel and per-coin market caps in the launch history, and the agent home card's market readout is now consistent with the rest of the platform. Each card refreshes on its own and degrades gracefully to a Retry if pump.fun is briefly unreachable.",+ "title": "Live coin status — price, market cap and graduation — now unified across the platform",+ "summary": "The launches feed, agent profile token panels, and the in-world agent coin card now share one live coin-status display, so every place that shows a coin reads the same numbers from the same source. Launch cards now stream the coin's real logo, USD price, market cap, a graduation progress ring and time since launch — not just market cap — with the orbital fingerprint as a placeholder until the logo loads. Agent profiles show a live price-and-graduation chip in the token panel and per-coin market caps in the launch history, and the agent home card's market readout is now consistent with the rest of the platform. Each card refreshes on its own and degrades gracefully to a Retry if pump.fun is briefly unreachable.","tags": ["improvement"],@@ -2462,7 +2500,7 @@{"date": "2026-06-15","title": "USDC-paired agent coins now record and display correct trade amounts",- "summary": "Coins launched against USDC are now tracked in the right currency end to end. Every buy and sell records which quote asset it actually used and how much of it moved \u2014 USDC amounts in USDC, SOL amounts in SOL \u2014 instead of quietly storing a USDC trade as if it were SOL and reporting a price and market cap that were off by orders of magnitude. Portfolios now subtotal holdings separately by quote asset, so your SOL positions and USDC positions each get their own value, cost basis, and unrealized P&L with no more mixing of mismatched units. Existing SOL trades are unchanged, and historical rows were backfilled as SOL-paired so nothing shifts.",+ "summary": "Coins launched against USDC are now tracked in the right currency end to end. Every buy and sell records which quote asset it actually used and how much of it moved — USDC amounts in USDC, SOL amounts in SOL — instead of quietly storing a USDC trade as if it were SOL and reporting a price and market cap that were off by orders of magnitude. Portfolios now subtotal holdings separately by quote asset, so your SOL positions and USDC positions each get their own value, cost basis, and unrealized P&L with no more mixing of mismatched units. Existing SOL trades are unchanged, and historical rows were backfilled as SOL-paired so nothing shifts.","tags": ["fix","feature"@@ -2471,7 +2509,7 @@{"date": "2026-06-15","title": "three.ws can now register itself on-chain on Solana",- "summary": "Alongside its ERC-8004 identity, three.ws can now mint its own agent on Solana \u2014 as a Metaplex Core asset in the official \"three.ws Agents\" collection, exactly the way agents you deploy through the platform are registered. A one-command tool builds the platform's 3D Agent Card, verifies the avatar's SHA-256 against the exact GLB bytes served (so the model can't be silently swapped), pins the metadata, mints the asset into the collection, and writes the result back into the public discovery documents at three.ws/.well-known so any wallet, explorer, or agent can resolve and verify three.ws. The discovery card and its schema now carry Solana identities (CAIP-10) alongside EVM ones, and the platform agent's on-chain badge links straight to its Solana passport.",+ "summary": "Alongside its ERC-8004 identity, three.ws can now mint its own agent on Solana — as a Metaplex Core asset in the official \"three.ws Agents\" collection, exactly the way agents you deploy through the platform are registered. A one-command tool builds the platform's 3D Agent Card, verifies the avatar's SHA-256 against the exact GLB bytes served (so the model can't be silently swapped), pins the metadata, mints the asset into the collection, and writes the result back into the public discovery documents at three.ws/.well-known so any wallet, explorer, or agent can resolve and verify three.ws. The discovery card and its schema now carry Solana identities (CAIP-10) alongside EVM ones, and the platform agent's on-chain badge links straight to its Solana passport.","tags": ["feature","infra"@@ -2481,7 +2519,7 @@{"date": "2026-06-15","title": "Buy and sell USDC-paired coins straight from the trade widget",- "summary": "The in-world trade widget now speaks both currencies. Open Buy on a coin and the widget reads its real pairing from the chain: a SOL coin asks for SOL exactly as before, while a USDC-paired coin denominates the amount in USDC, shows your wallet's USDC balance, and prices and settles the trade in USDC. A new Sell tab lets you sell a coin you hold back to its quote asset \u2014 pick 25%, 50%, or Max of your balance, see the live payout, and sign once; for USDC coins the payout account is opened for you automatically in the same transaction. Every state is handled: not enough USDC offers a one-tap Add-funds flow, a moved price explains your slippage, and a cancelled signature is quietly acknowledged. The whole flow is your own wallet, signed in your browser, with a Solscan link the moment it lands.",+ "summary": "The in-world trade widget now speaks both currencies. Open Buy on a coin and the widget reads its real pairing from the chain: a SOL coin asks for SOL exactly as before, while a USDC-paired coin denominates the amount in USDC, shows your wallet's USDC balance, and prices and settles the trade in USDC. A new Sell tab lets you sell a coin you hold back to its quote asset — pick 25%, 50%, or Max of your balance, see the live payout, and sign once; for USDC coins the payout account is opened for you automatically in the same transaction. Every state is handled: not enough USDC offers a one-tap Add-funds flow, a moved price explains your slippage, and a cancelled signature is quietly acknowledged. The whole flow is your own wallet, signed in your browser, with a Solscan link the moment it lands.","tags": ["feature"],@@ -2490,7 +2528,7 @@{"date": "2026-06-15","title": "Agent reputation now reflects a real pump.fun track record",- "summary": "An agent's pump.fun behavior now feeds its reputation and shows on its passport. When the wallet behind an agent graduates a token, claims creator fees, makes a whale-sized buy, or launches a coin, that moment is recorded as a typed signal \u2014 graduating a token counts for more than a routine claim, and a flagged or brand-new-account claim counts against. These signals roll up into the agent's Solana reputation score and appear on the public agent passport, readable by anyone without a wallet. The live pump.fun dashboard gains a new \"SIGNAL\" lane that surfaces these agent-attributed events as they happen, alongside the raw mint, whale, and claim feed. The processor behind this used to sit idle unless an optional external service was configured; it now runs continuously off the platform's own live pump.fun stream with no external dependency, records only genuinely new events so nothing is double-counted, and attributes each one to the agent behind the wallet.",+ "summary": "An agent's pump.fun behavior now feeds its reputation and shows on its passport. When the wallet behind an agent graduates a token, claims creator fees, makes a whale-sized buy, or launches a coin, that moment is recorded as a typed signal — graduating a token counts for more than a routine claim, and a flagged or brand-new-account claim counts against. These signals roll up into the agent's Solana reputation score and appear on the public agent passport, readable by anyone without a wallet. The live pump.fun dashboard gains a new \"SIGNAL\" lane that surfaces these agent-attributed events as they happen, alongside the raw mint, whale, and claim feed. The processor behind this used to sit idle unless an optional external service was configured; it now runs continuously off the platform's own live pump.fun stream with no external dependency, records only genuinely new events so nothing is double-counted, and attributes each one to the agent behind the wallet.","tags": ["improvement","fix"@@ -2500,7 +2538,7 @@{"date": "2026-06-15","title": "Registered agents now carry an on-chain \"Validated\" badge",- "summary": "When an agent is registered on-chain, three.ws now automatically runs its 3D model through the platform's glTF validator and records a signed validation attestation on the ERC-8004 ValidationRegistry \u2014 so an agent that advertises validation actually carries proof of it. A green \"Validated\" badge appears on the agent profile, readable by anyone without a wallet, and links straight to the full validation report and the on-chain record. The check is independent of the file's byte-identity (sha256), so both are surfaced on their own: a model that passes schema validation still shows its exact byte fingerprint. If a model has problems, the badge shows \"Validation failed\" with the specific reason \u2014 the agent is still registered, just unvalidated \u2014 and owners can re-validate after updating their model to refresh the badge. Validation is best-effort and never blocks or reverts a registration.",+ "summary": "When an agent is registered on-chain, three.ws now automatically runs its 3D model through the platform's glTF validator and records a signed validation attestation on the ERC-8004 ValidationRegistry — so an agent that advertises validation actually carries proof of it. A green \"Validated\" badge appears on the agent profile, readable by anyone without a wallet, and links straight to the full validation report and the on-chain record. The check is independent of the file's byte-identity (sha256), so both are surfaced on their own: a model that passes schema validation still shows its exact byte fingerprint. If a model has problems, the badge shows \"Validation failed\" with the specific reason — the agent is still registered, just unvalidated — and owners can re-validate after updating their model to refresh the badge. Validation is best-effort and never blocks or reverts a registration.","tags": ["feature","security"@@ -2510,7 +2548,7 @@{"date": "2026-06-15","title": "Strategy Lab now catches broken trading strategies before they run",- "summary": "Validation in the Strategy Lab (three.ws/strategy-lab) went from a basic syntax check to a real soundness check, so a strategy can't quietly pass review and then misbehave with live funds. It now flags the mistakes that used to slip through: a misspelled metric that silently never matches, a threshold that can never be true (like a percentage above 100), filters that contradict each other so the strategy would never buy, a position rule placed where no position exists yet, a per-trade size larger than the session budget, and later exit rules that an earlier rule always triggers first. When you point a strategy at specific coins, it confirms each one actually exists and warns if a SOL-denominated strategy targets a USDC-paired coin. Problems are shown inline, field by field, with a plain-language reason and exactly where to fix them \u2014 and the same checks now guard Backtest and Run, so what validates is what executes.",+ "summary": "Validation in the Strategy Lab (three.ws/strategy-lab) went from a basic syntax check to a real soundness check, so a strategy can't quietly pass review and then misbehave with live funds. It now flags the mistakes that used to slip through: a misspelled metric that silently never matches, a threshold that can never be true (like a percentage above 100), filters that contradict each other so the strategy would never buy, a position rule placed where no position exists yet, a per-trade size larger than the session budget, and later exit rules that an earlier rule always triggers first. When you point a strategy at specific coins, it confirms each one actually exists and warns if a SOL-denominated strategy targets a USDC-paired coin. Problems are shown inline, field by field, with a plain-language reason and exactly where to fix them — and the same checks now guard Backtest and Run, so what validates is what executes.","tags": ["improvement"],@@ -2519,7 +2557,7 @@{"date": "2026-06-15","title": "Pump Live: real token art, live market caps, and a feed that heals itself",- "summary": "The Pump Live showcase (three.ws/pump-live) \u2014 where a 3D agent reacts to brand-new pump.fun launches in real time \u2014 is now fully wired. Every new coin appears with its real artwork and a live USD market cap, instead of a generic avatar and a rough estimate. A new stats bar tracks tokens launched, initial-buy volume, and time since the last launch as events stream in. Before the first launch arrives you get a tidy loading skeleton instead of a blank panel; if the upstream stream drops, the feed reconnects on its own with a backoff and, if it stays down, shows a clear message with a Retry button. Token images are resolved and served through three.ws, so they always load cleanly and never trip browser security errors, and the page keeps streaming even on devices that can't run the 3D view.",+ "summary": "The Pump Live showcase (three.ws/pump-live) — where a 3D agent reacts to brand-new pump.fun launches in real time — is now fully wired. Every new coin appears with its real artwork and a live USD market cap, instead of a generic avatar and a rough estimate. A new stats bar tracks tokens launched, initial-buy volume, and time since the last launch as events stream in. Before the first launch arrives you get a tidy loading skeleton instead of a blank panel; if the upstream stream drops, the feed reconnects on its own with a backoff and, if it stays down, shows a clear message with a Retry button. Token images are resolved and served through three.ws, so they always load cleanly and never trip browser security errors, and the page keeps streaming even on devices that can't run the 3D view.","tags": ["improvement","fix"@@ -2529,7 +2567,7 @@{"date": "2026-06-15","title": "Agents can autonomously trade USDC-paired coins",- "summary": "An agent's own wallet can now buy and sell USDC-paired coins on its own \u2014 not just SOL ones. Until now the autonomous lanes (an agent's buy/sell endpoints, scheduled buybacks, and creator-fee distributions) assumed every coin priced in SOL, so on a USDC coin they would have built a SOL trade the market refuses. Now the agent reads each coin's real pairing straight from the chain and trades in the matching currency: a USDC coin is bought and sold in USDC, with the agent's USDC account opened automatically and its balance checked up front so a trade fails clearly instead of reverting on-chain. Buybacks and fee distributions follow the same rule \u2014 they run in the coin's own currency, and if a coin's setup genuinely can't support a run, it's recorded with the reason rather than silently skipped. Every trade is now logged with the exact quote asset and amount, so prices and volumes stay correct for USDC and SOL coins alike. SOL coins behave exactly as before.",+ "summary": "An agent's own wallet can now buy and sell USDC-paired coins on its own — not just SOL ones. Until now the autonomous lanes (an agent's buy/sell endpoints, scheduled buybacks, and creator-fee distributions) assumed every coin priced in SOL, so on a USDC coin they would have built a SOL trade the market refuses. Now the agent reads each coin's real pairing straight from the chain and trades in the matching currency: a USDC coin is bought and sold in USDC, with the agent's USDC account opened automatically and its balance checked up front so a trade fails clearly instead of reverting on-chain. Buybacks and fee distributions follow the same rule — they run in the coin's own currency, and if a coin's setup genuinely can't support a run, it's recorded with the reason rather than silently skipped. Every trade is now logged with the exact quote asset and amount, so prices and volumes stay correct for USDC and SOL coins alike. SOL coins behave exactly as before.","tags": ["feature"],@@ -2538,7 +2576,7 @@{"date": "2026-06-15","title": "Rate and vouch for Solana agents from their passport",- "summary": "Every Solana agent passport already showed its on-chain reputation \u2014 now you can add to it. A new \"Rate this agent\" panel lets anyone with a Solana wallet (Phantom or Solflare) leave a 1\u20135 score, with an optional public note, written on-chain as a signed attestation \u2014 no account needed. You can also back your rating with a SOL stake (from 0.001 SOL) sent to the agent's owner for an economically-weighted vouch. Submitting is guarded the obvious ways: you can't rate your own agent, scores are limited to 1\u20135, the minimum stake is enforced, and re-rating asks you to confirm before it updates your previous score. The moment your transaction confirms, the passport re-reads the chain on demand instead of waiting for the next indexing pass, so your rating shows up in the reputation summary within seconds.",+ "summary": "Every Solana agent passport already showed its on-chain reputation — now you can add to it. A new \"Rate this agent\" panel lets anyone with a Solana wallet (Phantom or Solflare) leave a 1–5 score, with an optional public note, written on-chain as a signed attestation — no account needed. You can also back your rating with a SOL stake (from 0.001 SOL) sent to the agent's owner for an economically-weighted vouch. Submitting is guarded the obvious ways: you can't rate your own agent, scores are limited to 1–5, the minimum stake is enforced, and re-rating asks you to confirm before it updates your previous score. The moment your transaction confirms, the passport re-reads the chain on demand instead of waiting for the next indexing pass, so your rating shows up in the reputation summary within seconds.","tags": ["feature"],@@ -2547,7 +2585,7 @@{"date": "2026-06-15","title": "Register an existing agent on-chain in one click",- "summary": "Any agent you already built can now be given an ERC-8004 on-chain identity straight from its profile \u2014 no re-entering its name, 3D model, voice, or skills. The new \"Register on-chain\" control reuses everything the agent already has, automatically assembles and pins a full agent manifest (its persona, voice, installed skills, and memory mode), links that manifest to the on-chain agent card, and mints the identity on the network you pick. Re-running it on the same network is a safe no-op, and your profile shows a live on-chain badge with explorer and agent-card links the moment it's done.",+ "summary": "Any agent you already built can now be given an ERC-8004 on-chain identity straight from its profile — no re-entering its name, 3D model, voice, or skills. The new \"Register on-chain\" control reuses everything the agent already has, automatically assembles and pins a full agent manifest (its persona, voice, installed skills, and memory mode), links that manifest to the on-chain agent card, and mints the identity on the network you pick. Re-running it on the same network is a safe no-op, and your profile shows a live on-chain badge with explorer and agent-card links the moment it's done.","tags": ["feature"],@@ -2565,7 +2603,7 @@{"date": "2026-06-15","title": "After you launch a coin, jump straight to viewing or managing it",- "summary": "The success screen you see right after launching a coin no longer dead-ends. Alongside the shareable card and copy/share buttons, there's now a clear set of next steps: View in 3D opens your coin as a live, interactive 3D scene; Manage on Dashboard takes you straight to that agent's control panel \u2014 with its row highlighted and ready \u2014 so you can speak, animate, and manage it; and View on pump.fun opens the coin on pump.fun. Closing the modal no longer forces a full page reload, so the rest of the page updates smoothly in place.",+ "summary": "The success screen you see right after launching a coin no longer dead-ends. Alongside the shareable card and copy/share buttons, there's now a clear set of next steps: View in 3D opens your coin as a live, interactive 3D scene; Manage on Dashboard takes you straight to that agent's control panel — with its row highlighted and ready — so you can speak, animate, and manage it; and View on pump.fun opens the coin on pump.fun. Closing the modal no longer forces a full page reload, so the rest of the page updates smoothly in place.","tags": ["improvement"],@@ -2574,7 +2612,7 @@{"date": "2026-06-15","title": "three.ws now registers itself as an on-chain agent (ERC-8004)",- "summary": "The platform that helps you put your agents on-chain now does the same for itself. three.ws publishes a 3D Agent Card \u2014 a verifiable manifest of its name, its default 3D avatar, and its A2A/MCP/x402 service endpoints \u2014 at three.ws/.well-known/3d-agent-card.json, and ships a one-command tool that mints the platform agent in the canonical ERC-8004 IdentityRegistry on Base (with a Base Sepolia rehearsal first). The card cryptographically commits to the avatar: the SHA-256 in the card matches the exact GLB bytes served, so any indexer or wallet can independently verify the model hasn't been swapped. Other agents and directories can now discover and trust three.ws the same way three.ws lets them be discovered.",+ "summary": "The platform that helps you put your agents on-chain now does the same for itself. three.ws publishes a 3D Agent Card — a verifiable manifest of its name, its default 3D avatar, and its A2A/MCP/x402 service endpoints — at three.ws/.well-known/3d-agent-card.json, and ships a one-command tool that mints the platform agent in the canonical ERC-8004 IdentityRegistry on Base (with a Base Sepolia rehearsal first). The card cryptographically commits to the avatar: the SHA-256 in the card matches the exact GLB bytes served, so any indexer or wallet can independently verify the model hasn't been swapped. Other agents and directories can now discover and trust three.ws the same way three.ws lets them be discovered.","tags": ["feature","infra"@@ -2583,7 +2621,7 @@{"date": "2026-06-15","title": "Autonomous coin buybacks and creator-fee distributions now run on schedule",- "summary": "Coins launched through three.ws with autopilot enabled now have their buybacks and creator-fee distributions executed automatically on an hourly schedule, instead of waiting for a manual trigger. A new balance watchdog checks every Solana signer the platform uses to pay on-chain fees and alerts the team the moment one runs low, so autopilot never silently stalls for lack of gas. No action needed from coin owners \u2014 it just works in the background.",+ "summary": "Coins launched through three.ws with autopilot enabled now have their buybacks and creator-fee distributions executed automatically on an hourly schedule, instead of waiting for a manual trigger. A new balance watchdog checks every Solana signer the platform uses to pay on-chain fees and alerts the team the moment one runs low, so autopilot never silently stalls for lack of gas. No action needed from coin owners — it just works in the background.","tags": ["improvement","infra"@@ -2601,8 +2639,8 @@},{"date": "2026-06-15",- "title": "Pump Visualizer\u2019s Trending view fixed \u2014 spheres now sized by real market cap",- "summary": "The Trending mode of the 3D Pump Visualizer (three.ws/pump-visualizer) now renders correctly: every coin appears as a sphere sized by its real USD market cap, textured with its actual logo, with a full detail panel showing market cap, all-time-high, replies, age, and socials. Previously Trending failed to load because the market data it relied on wasn\u2019t reaching the scene. Click a sphere to inspect it, or double-click to open the full 3D coin page. The live Firehose and Migrations modes are unchanged.",+ "title": "Pump Visualizer’s Trending view fixed — spheres now sized by real market cap",+ "summary": "The Trending mode of the 3D Pump Visualizer (three.ws/pump-visualizer) now renders correctly: every coin appears as a sphere sized by its real USD market cap, textured with its actual logo, with a full detail panel showing market cap, all-time-high, replies, age, and socials. Previously Trending failed to load because the market data it relied on wasn’t reaching the scene. Click a sphere to inspect it, or double-click to open the full 3D coin page. The live Firehose and Migrations modes are unchanged.","tags": ["fix","improvement"@@ -2612,7 +2650,7 @@{"date": "2026-06-14","title": "React component library for embedding 3D AI agents",- "summary": "npm install @three-ws/react gives you <Agent3D> \u2014 a React wrapper around the three.ws walk embed player. Drop a 3D AI agent into any React app in two lines of code, with props for controls, size, and background, plus onLoad/onError callbacks and a ref handle to drive the avatar live.",+ "summary": "npm install @three-ws/react gives you <Agent3D> — a React wrapper around the three.ws walk embed player. Drop a 3D AI agent into any React app in two lines of code, with props for controls, size, and background, plus onLoad/onError callbacks and a ref handle to drive the avatar live.","tags": ["feature","sdk"@@ -2621,8 +2659,8 @@},{"date": "2026-06-14",- "title": "x402-fetch \u2014 automatic pay-per-call fetch wrapper",- "summary": "npm install @three-ws/x402-fetch gives you withX402(wallet) \u2014 a drop-in fetch wrapper that silently handles x402 payment challenges. Connect a wallet once; call any paid three.ws API like a free one. It signs USDC-on-Base payments locally with zero dependencies, refuses to overspend past a maxPaymentUsd guard you set, and works in the browser (MetaMask), in Node (private key), or with a three.ws agent wallet.",+ "title": "x402-fetch — automatic pay-per-call fetch wrapper",+ "summary": "npm install @three-ws/x402-fetch gives you withX402(wallet) — a drop-in fetch wrapper that silently handles x402 payment challenges. Connect a wallet once; call any paid three.ws API like a free one. It signs USDC-on-Base payments locally with zero dependencies, refuses to overspend past a maxPaymentUsd guard you set, and works in the browser (MetaMask), in Node (private key), or with a three.ws agent wallet.","tags": ["feature","sdk"@@ -2632,7 +2670,7 @@{"date": "2026-06-14","title": "pump.fun MCP server only lists tools it can actually run",- "summary": "The free pump.fun MCP server (three.ws/api/pump-fun-mcp) now advertises its discovery tools \u2014 token search, trending, new, graduated, king-of-the-hill, and creator profiles \u2014 only when its real-time indexer backend is connected. Previously those six tools always appeared in the tool list and returned an error if the indexer wasn't wired, which confused MCP clients and assistants that tried to call them. They now stay hidden until the backend is live, and reappear automatically the moment it is. We also added a always-available pumpfun_bot_status tool that reports whether the indexer is configured and healthy (with round-trip latency), and an indexerEnabled flag on the server handshake so client authors can check capability in one call. On-chain tools (bonding curve, holders, token details, trades, swap quotes, fee claims) were unaffected and remain fully available with no API key.",+ "summary": "The free pump.fun MCP server (three.ws/api/pump-fun-mcp) now advertises its discovery tools — token search, trending, new, graduated, king-of-the-hill, and creator profiles — only when its real-time indexer backend is connected. Previously those six tools always appeared in the tool list and returned an error if the indexer wasn't wired, which confused MCP clients and assistants that tried to call them. They now stay hidden until the backend is live, and reappear automatically the moment it is. We also added a always-available pumpfun_bot_status tool that reports whether the indexer is configured and healthy (with round-trip latency), and an indexerEnabled flag on the server handshake so client authors can check capability in one call. On-chain tools (bonding curve, holders, token details, trades, swap quotes, fee claims) were unaffected and remain fully available with no API key.","tags": ["sdk","improvement"@@ -2641,7 +2679,7 @@{"date": "2026-06-14","title": "world.three.ws locked down and watched around the clock",- "summary": "The multiplayer world (world.three.ws) is now protected against unauthorized edits: visitors join as spectators and only a holder of the admin code can build, move, or delete anything in the scene. We also added a continuous health watch. Every 15 minutes a monitor confirms the world is still protected and checks that every asset the scene depends on is actually reachable \u2014 the exact gap that briefly dropped visitors into an empty void earlier this month, now caught and paged to our ops team before anyone notices. The forge health surface (/api/forge?health) reports the world's status alongside the generation backends, and a post-deploy gate refuses to call a deploy healthy unless the world comes back protected.",+ "summary": "The multiplayer world (world.three.ws) is now protected against unauthorized edits: visitors join as spectators and only a holder of the admin code can build, move, or delete anything in the scene. We also added a continuous health watch. Every 15 minutes a monitor confirms the world is still protected and checks that every asset the scene depends on is actually reachable — the exact gap that briefly dropped visitors into an empty void earlier this month, now caught and paged to our ops team before anyone notices. The forge health surface (/api/forge?health) reports the world's status alongside the generation backends, and a post-deploy gate refuses to call a deploy healthy unless the world comes back protected.","tags": ["security","infra"@@ -2650,7 +2688,7 @@{"date": "2026-06-14","title": "Forge stays up: live Redis quota monitoring and early-warning alerts",- "summary": "The shared rate-limiter store has a hard monthly request ceiling, and when it's exhausted every paid generation and payment stops at once. We've made that failure mode impossible to sneak up on us. The forge health check (/api/forge?health) now reports the live daily request rate, how much of the budget it's burning, and projects whether it's on track to run out \u2014 and a daily check pages our ops team the moment the projection crosses 80% of the ceiling, long before anything breaks. We also moved the highest-traffic, lowest-risk traffic guards (public page reads, status polling, the notifications badge) to in-process enforcement so they no longer spend from that budget at all, cutting burn dramatically. Net effect: more headroom, and a deliberate upgrade decision instead of a surprise outage.",+ "summary": "The shared rate-limiter store has a hard monthly request ceiling, and when it's exhausted every paid generation and payment stops at once. We've made that failure mode impossible to sneak up on us. The forge health check (/api/forge?health) now reports the live daily request rate, how much of the budget it's burning, and projects whether it's on track to run out — and a daily check pages our ops team the moment the projection crosses 80% of the ceiling, long before anything breaks. We also moved the highest-traffic, lowest-risk traffic guards (public page reads, status polling, the notifications badge) to in-process enforcement so they no longer spend from that budget at all, cutting burn dramatically. Net effect: more headroom, and a deliberate upgrade decision instead of a surprise outage.","tags": ["infra"]@@ -2658,7 +2696,7 @@{"date": "2026-06-13","title": "The IBM partnership page, rebuilt in IBM's own design language",- "summary": "The three.ws on IBM page (/ibm) has been redesigned to match IBM's official partner pages \u2014 IBM Plex type, the Carbon light palette, an IBM masthead and breadcrumb, a sticky on-page table of contents, the 'Partnership highlights' grid, a tabbed live-demo gallery (Agent Galaxy, Granite Oracle, Digital Twin, Trust Layer, Identity Firewall, Granite Proof, Granite Vision), the integration reference, and the dark IBM-style footer. It reads like what it is: an IBM Business Partner showcase built on watsonx.ai and Granite. We also fixed the local dev route so /ibm serves this page, matching production.",+ "summary": "The three.ws on IBM page (/ibm) has been redesigned to match IBM's official partner pages — IBM Plex type, the Carbon light palette, an IBM masthead and breadcrumb, a sticky on-page table of contents, the 'Partnership highlights' grid, a tabbed live-demo gallery (Agent Galaxy, Granite Oracle, Digital Twin, Trust Layer, Identity Firewall, Granite Proof, Granite Vision), the integration reference, and the dark IBM-style footer. It reads like what it is: an IBM Business Partner showcase built on watsonx.ai and Granite. We also fixed the local dev route so /ibm serves this page, matching production.","tags": ["improvement"],@@ -2667,7 +2705,7 @@{"date": "2026-06-13","title": "Copy any docs or tutorial page straight into your AI assistant",- "summary": "Every page in the docs and tutorials now has a 'Copy page' button in the top-right. Click it to copy the full page as clean Markdown, ready to paste into Claude, ChatGPT, or any LLM. The dropdown beside it adds two more options: 'View as Markdown' opens the raw plain-text version in a new tab, and 'Open in Claude' launches Claude with the page already loaded so you can ask questions about it. Built for the way people actually read docs now \u2014 with an AI assistant open alongside.",+ "summary": "Every page in the docs and tutorials now has a 'Copy page' button in the top-right. Click it to copy the full page as clean Markdown, ready to paste into Claude, ChatGPT, or any LLM. The dropdown beside it adds two more options: 'View as Markdown' opens the raw plain-text version in a new tab, and 'Open in Claude' launches Claude with the page already loaded so you can ask questions about it. Built for the way people actually read docs now — with an AI assistant open alongside.","tags": ["feature","docs"@@ -2676,8 +2714,8 @@},{"date": "2026-06-13",- "title": "Refine any forged model instantly, on-device \u2014 no waiting, no limits",- "summary": "Forge has a new Refine panel that perfects the model you already have, right in your browser \u2014 no re-generation and no rate limits. Pick an intent \u2014 Clean (weld duplicate vertices and fix faceted shading), Smooth (relax the surface noise generated meshes carry), Game-ready (decimate to a real-time triangle budget while keeping the silhouette and UVs), or Hero (subdivide and smooth for render-quality close-ups). Each runs in milliseconds and shows the exact before/after triangle, vertex, and file-size change, with a one-click revert. Because it never calls the generation service, Refine also works the moment that service is busy: if a generation is throttled, Forge now shows a live countdown and offers to refine your current model locally instead, so you're never stuck at a dead end.",+ "title": "Refine any forged model instantly, on-device — no waiting, no limits",+ "summary": "Forge has a new Refine panel that perfects the model you already have, right in your browser — no re-generation and no rate limits. Pick an intent — Clean (weld duplicate vertices and fix faceted shading), Smooth (relax the surface noise generated meshes carry), Game-ready (decimate to a real-time triangle budget while keeping the silhouette and UVs), or Hero (subdivide and smooth for render-quality close-ups). Each runs in milliseconds and shows the exact before/after triangle, vertex, and file-size change, with a one-click revert. Because it never calls the generation service, Refine also works the moment that service is busy: if a generation is throttled, Forge now shows a live countdown and offers to refine your current model locally instead, so you're never stuck at a dead end.","tags": ["feature","improvement"@@ -2687,7 +2725,7 @@{"date": "2026-06-13","title": "Record videos from the Animation Studio: send a pose animation straight to Scene Studio",- "summary": "The keyframe timeline in the Animation Studio (/pose) now has a 'Record in Scene \u2192' button. It bakes your posed animation into the rig and opens it inside Scene Studio (/scene) as a ready-to-play timeline track, already wired to play during rendering. From there, Render \u25b8 Video captures the motion to an MP4 at the resolution, frame rate, and length you choose \u2014 no export, re-import, or scripting in between. Works with the built-in mannequin and any avatar you load.",+ "summary": "The keyframe timeline in the Animation Studio (/pose) now has a 'Record in Scene →' button. It bakes your posed animation into the rig and opens it inside Scene Studio (/scene) as a ready-to-play timeline track, already wired to play during rendering. From there, Render ▸ Video captures the motion to an MP4 at the resolution, frame rate, and length you choose — no export, re-import, or scripting in between. Works with the built-in mannequin and any avatar you load.","tags": ["feature"],@@ -2706,7 +2744,7 @@{"date": "2026-06-13","title": "Animation library expands: 100+ clips, FBX and BVH upload",- "summary": "The platform animation library grows to 100+ retargeted motion clips drawn from Mixamo, Avaturn packs, and MIT-licensed Three.js example models (Soldier, Michelle, Xbot). The agent dashboard's Upload clip dialog now accepts .glb, .fbx, and .bvh files \u2014 FBX and BVH are converted to GLB client-side via three.js loaders before upload, so creators can bring mocap data directly from capture tools without a separate conversion step. A full Mixamo catalog download pipeline (scripts/mixamo-all.mjs) is in place to expand the library to 2,000+ clips as soon as credentials are supplied.",+ "summary": "The platform animation library grows to 100+ retargeted motion clips drawn from Mixamo, Avaturn packs, and MIT-licensed Three.js example models (Soldier, Michelle, Xbot). The agent dashboard's Upload clip dialog now accepts .glb, .fbx, and .bvh files — FBX and BVH are converted to GLB client-side via three.js loaders before upload, so creators can bring mocap data directly from capture tools without a separate conversion step. A full Mixamo catalog download pipeline (scripts/mixamo-all.mjs) is in place to expand the library to 2,000+ clips as soon as credentials are supplied.","tags": ["feature","improvement"@@ -2716,7 +2754,7 @@{"date": "2026-06-13","title": "Security and scalability hardening",- "summary": "Several infrastructure improvements ship today to keep the platform safe and fast at growth scale. All Redis connections across the API now share a single Upstash client instance, eliminating the duplicate quota consumption that caused the June 2026 rate-limit outage. A per-user daily LLM spend cap is now enforced on platform-paid inference keys \u2014 callers who exhaust their daily budget receive a clear 429 with a reset time rather than silently running up costs. The SSRF guard gains an IP-pinned fetch variant for proxy and webhook endpoints, closing a DNS-rebinding window where a hostile DNS server could swap an address between the safety check and the actual TCP connection. An admin Redis health panel exposes live quota usage and latency with one click, complementing the existing automated hourly quota watchdog that pages the ops channel at 70% and 90% of the daily limit.",+ "summary": "Several infrastructure improvements ship today to keep the platform safe and fast at growth scale. All Redis connections across the API now share a single Upstash client instance, eliminating the duplicate quota consumption that caused the June 2026 rate-limit outage. A per-user daily LLM spend cap is now enforced on platform-paid inference keys — callers who exhaust their daily budget receive a clear 429 with a reset time rather than silently running up costs. The SSRF guard gains an IP-pinned fetch variant for proxy and webhook endpoints, closing a DNS-rebinding window where a hostile DNS server could swap an address between the safety check and the actual TCP connection. An admin Redis health panel exposes live quota usage and latency with one click, complementing the existing automated hourly quota watchdog that pages the ops channel at 70% and 90% of the daily limit.","tags": ["security","infra",@@ -2726,7 +2764,7 @@{"date": "2026-06-13","title": "Forge improvements: category tagging, model load errors, and more",- "summary": "Several Forge improvements ship today: a new Tag As strip appears after generation so you can label your model (Avatar, Creature, Item, Accessory, Scene, Vehicle) \u2014 this feeds the explore feed's category filters. An Open in Composer button links directly to /compose with the model pre-loaded. When a stored GLB fails to stream, the viewer now shows a clear error overlay instead of going blank, with a prompt to use the direct download link. The Download button shows a Preparing\u2026 state while stamping provenance metadata into the file. A crossorigin attribute was added to the model-viewer element for proper range-request handling on CORS-enabled CDN paths. Three unhandled-promise-rejection sources on the homepage were plugged \u2014 async IntersectionObserver callbacks and the AR-section IIFE now guard against abort errors when users navigate away mid-load. Backend health probes retry twice (at 30 s and 60 s) if the first check fails, so a brief cold-start no longer leaves all engine buttons stuck in an unknown state. Empty (0-byte) image uploads are now rejected immediately with a clear message instead of failing silently mid-upload.",+ "summary": "Several Forge improvements ship today: a new Tag As strip appears after generation so you can label your model (Avatar, Creature, Item, Accessory, Scene, Vehicle) — this feeds the explore feed's category filters. An Open in Composer button links directly to /compose with the model pre-loaded. When a stored GLB fails to stream, the viewer now shows a clear error overlay instead of going blank, with a prompt to use the direct download link. The Download button shows a Preparing… state while stamping provenance metadata into the file. A crossorigin attribute was added to the model-viewer element for proper range-request handling on CORS-enabled CDN paths. Three unhandled-promise-rejection sources on the homepage were plugged — async IntersectionObserver callbacks and the AR-section IIFE now guard against abort errors when users navigate away mid-load. Backend health probes retry twice (at 30 s and 60 s) if the first check fails, so a brief cold-start no longer leaves all engine buttons stuck in an unknown state. Empty (0-byte) image uploads are now rejected immediately with a clear message instead of failing silently mid-upload.","tags": ["improvement","fix"@@ -2736,7 +2774,7 @@{"date": "2026-06-13","title": "Platform scalability improvements across the board",- "summary": "Five infrastructure changes to keep the platform fast as usage grows: usage telemetry now buffers writes in Redis and batch-inserts into Postgres instead of one DB connection per request, cutting Neon write pressure significantly at scale. A new hourly quota watchdog alerts the ops channel when Upstash Redis approaches 70% of its daily request limit \u2014 before the ceiling is hit. QStash's dead-letter queue is now monitored automatically so failed background jobs surface within the hour instead of going silent. The club live-stream switched to a shared per-instance poll loop with adaptive cadence \u2014 N open tabs now cost one Neon query per tick instead of N, and the poll slows to 5s during idle periods to preserve quota. Cold-start bundle sizes for monitoring crons and background jobs are now minimal \u2014 no more pulling skill files and data archives into endpoints that don't need them.",+ "summary": "Five infrastructure changes to keep the platform fast as usage grows: usage telemetry now buffers writes in Redis and batch-inserts into Postgres instead of one DB connection per request, cutting Neon write pressure significantly at scale. A new hourly quota watchdog alerts the ops channel when Upstash Redis approaches 70% of its daily request limit — before the ceiling is hit. QStash's dead-letter queue is now monitored automatically so failed background jobs surface within the hour instead of going silent. The club live-stream switched to a shared per-instance poll loop with adaptive cadence — N open tabs now cost one Neon query per tick instead of N, and the poll slows to 5s during idle periods to preserve quota. Cold-start bundle sizes for monitoring crons and background jobs are now minimal — no more pulling skill files and data archives into endpoints that don't need them.","tags": ["infra","improvement"@@ -2744,8 +2782,8 @@},{"date": "2026-06-13",- "title": "Clearer ways to reach us \u2014 a full contact directory on the support page",- "summary": "The support page now lists specialized, monitored contacts so your message reaches the right team fast: [email protected] for AWS Marketplace, IBM, and integration inquiries; [email protected] for data requests; [email protected] for terms; [email protected] for copyright notices; and [email protected] for misuse reports \u2014 each with a one-tap copy button, alongside the existing support@ and security@ channels. Transactional emails now send from [email protected] with replies routed to a real human at support@, and copyright takedowns route to a dedicated DMCA agent.",+ "title": "Clearer ways to reach us — a full contact directory on the support page",+ "summary": "The support page now lists specialized, monitored contacts so your message reaches the right team fast: [email protected] for AWS Marketplace, IBM, and integration inquiries; [email protected] for data requests; [email protected] for terms; [email protected] for copyright notices; and [email protected] for misuse reports — each with a one-tap copy button, alongside the existing support@ and security@ channels. Transactional emails now send from [email protected] with replies routed to a real human at support@, and copyright takedowns route to a dedicated DMCA agent.","tags": ["improvement"],@@ -2753,8 +2791,8 @@},{"date": "2026-06-13",- "title": "Scene Composer \u2014 forge items in real time and dress your avatar",- "summary": "New /compose page lets you build a 3D scene live: load an avatar (or start empty), type a prompt to forge new items, and drop them straight into the scene. Select any object with a click to translate, rotate, or scale it with the gizmo. Items can be attached to specific avatar bones \u2014 hat to head, sword to right hand \u2014 and the inspector shows live transform values you can also type in. When you're done, export the full scene as a GLB or save an outfit back to your avatar. Your recent forge creations appear in the panel so you can reuse them across sessions without re-generating.",+ "title": "Scene Composer — forge items in real time and dress your avatar",+ "summary": "New /compose page lets you build a 3D scene live: load an avatar (or start empty), type a prompt to forge new items, and drop them straight into the scene. Select any object with a click to translate, rotate, or scale it with the gizmo. Items can be attached to specific avatar bones — hat to head, sword to right hand — and the inspector shows live transform values you can also type in. When you're done, export the full scene as a GLB or save an outfit back to your avatar. Your recent forge creations appear in the panel so you can reuse them across sessions without re-generating.","tags": ["feature"],@@ -2762,8 +2800,8 @@},{"date": "2026-06-13",- "title": "3D model categories \u2014 every model is now typed as Avatar, Accessory, Item, Scene, Creature, or Vehicle",- "summary": "All 3D models on the platform now carry a category that describes what they actually are, not just how they were created. Avatar cards in the marketplace show a color-coded type badge (Avatar, Accessory, Item, Scene, Creature, or Vehicle) and a new filter row lets you browse by type. The Forge gallery shows the same badges on showcase cards, and when you finish forging a model you can tag it right in the result bar with a single click. This is the foundation for the upcoming agent equipment system \u2014 where your agents will be able to wear accessories, hold items, and inhabit scenes.",+ "title": "3D model categories — every model is now typed as Avatar, Accessory, Item, Scene, Creature, or Vehicle",+ "summary": "All 3D models on the platform now carry a category that describes what they actually are, not just how they were created. Avatar cards in the marketplace show a color-coded type badge (Avatar, Accessory, Item, Scene, Creature, or Vehicle) and a new filter row lets you browse by type. The Forge gallery shows the same badges on showcase cards, and when you finish forging a model you can tag it right in the result bar with a single click. This is the foundation for the upcoming agent equipment system — where your agents will be able to wear accessories, hold items, and inhabit scenes.","tags": ["feature","improvement"@@ -2772,8 +2810,8 @@},{"date": "2026-06-13",- "title": "AR is live on the homepage \u2014 place any 3D model in your real space from the front page",- "summary": "The three.ws homepage now has a live AR section: real models from the Forge gallery load in an interactive 3D viewer, and on mobile you can tap 'Place in your space' to anchor the model in your real environment through the camera. On desktop a QR code appears so you can scan and place from your phone in one step. WebXR on Android, Quick Look on iOS \u2014 no app, no download. A full blog post explains how the AR pipeline works across both platforms.",+ "title": "AR is live on the homepage — place any 3D model in your real space from the front page",+ "summary": "The three.ws homepage now has a live AR section: real models from the Forge gallery load in an interactive 3D viewer, and on mobile you can tap 'Place in your space' to anchor the model in your real environment through the camera. On desktop a QR code appears so you can scan and place from your phone in one step. WebXR on Android, Quick Look on iOS — no app, no download. A full blog post explains how the AR pipeline works across both platforms.","tags": ["feature","improvement"@@ -2783,7 +2821,7 @@{"date": "2026-06-13","title": "All 14 three.ws MCP servers are now live on npm and the official MCP registry",- "summary": "Every three.ws MCP server is now publicly installable and discoverable. The eight install-and-run servers ship on npm under the @three-ws scope \u2014 pull any of them with one command, e.g. npx -y @three-ws/mcp-server (3D + agent tools), @three-ws/three-token-mcp ($THREE price, hold, and burn), @three-ws/pumpfun-mcp, @three-ws/ibm-x402-mcp, @three-ws/avatar-agent, and more. Together with the six hosted remote servers, all 14 are registered in the official Model Context Protocol registry, so any MCP-compatible client \u2014 Claude, Cursor, and others \u2014 can find them by name. No more dead install links: the documented commands now work.",+ "summary": "Every three.ws MCP server is now publicly installable and discoverable. The eight install-and-run servers ship on npm under the @three-ws scope — pull any of them with one command, e.g. npx -y @three-ws/mcp-server (3D + agent tools), @three-ws/three-token-mcp ($THREE price, hold, and burn), @three-ws/pumpfun-mcp, @three-ws/ibm-x402-mcp, @three-ws/avatar-agent, and more. Together with the six hosted remote servers, all 14 are registered in the official Model Context Protocol registry, so any MCP-compatible client — Claude, Cursor, and others — can find them by name. No more dead install links: the documented commands now work.","tags": ["sdk","feature"@@ -2792,8 +2830,8 @@},{"date": "2026-06-13",- "title": "Selfie to 3D avatar now works with your own API key \u2014 Meshy and Tripo supported",- "summary": "The selfie-to-avatar pipeline (/create/selfie) is fully open: if you have a Meshy or Tripo API key, you can turn a photo into a rigged 3D avatar in about 60\u201390 seconds. Enter your key once on the setup screen and it stays cached for the session \u2014 or save it to your account settings so you never have to enter it again. The pipeline now properly routes polling through whichever provider submitted the job, so BYOK jobs no longer stall mid-build. The page no longer shows 'still warming up' \u2014 it detects which mode the platform is running in and gives you the right experience immediately.",+ "title": "Selfie to 3D avatar now works with your own API key — Meshy and Tripo supported",+ "summary": "The selfie-to-avatar pipeline (/create/selfie) is fully open: if you have a Meshy or Tripo API key, you can turn a photo into a rigged 3D avatar in about 60–90 seconds. Enter your key once on the setup screen and it stays cached for the session — or save it to your account settings so you never have to enter it again. The pipeline now properly routes polling through whichever provider submitted the job, so BYOK jobs no longer stall mid-build. The page no longer shows 'still warming up' — it detects which mode the platform is running in and gives you the right experience immediately.","tags": ["feature","improvement"@@ -2802,8 +2840,8 @@},{"date": "2026-06-13",- "title": "Forge adds four more 3D engines \u2014 bring your own Rodin, Stability, Tripo, or Replicate key",- "summary": "Forge now speaks to more best-in-class 3D generators, so you can pick the engine that fits the job. Rodin (Hyper3D) joins for native text-to-geometry and image-to-3D with clean quad topology and a real polygon target; Stable Fast 3D turns a single photo into a textured model in seconds; and you can now run reconstructions on your own Replicate account. Tripo, which was already supported, finally has a key field in your account settings alongside Meshy. All of these are bring-your-own-key \u2014 add a key under Account, then Provider Keys, and the engine lights up. The free, no-setup lanes for prompts and sketches are unchanged, and if you choose the geometry path without a key, Forge now quietly falls back to the free engine instead of asking for one.",+ "title": "Forge adds four more 3D engines — bring your own Rodin, Stability, Tripo, or Replicate key",+ "summary": "Forge now speaks to more best-in-class 3D generators, so you can pick the engine that fits the job. Rodin (Hyper3D) joins for native text-to-geometry and image-to-3D with clean quad topology and a real polygon target; Stable Fast 3D turns a single photo into a textured model in seconds; and you can now run reconstructions on your own Replicate account. Tripo, which was already supported, finally has a key field in your account settings alongside Meshy. All of these are bring-your-own-key — add a key under Account, then Provider Keys, and the engine lights up. The free, no-setup lanes for prompts and sketches are unchanged, and if you choose the geometry path without a key, Forge now quietly falls back to the free engine instead of asking for one.","tags": ["feature"],@@ -2812,7 +2850,7 @@{"date": "2026-06-13","title": "Reliability pass: steadier live feed, token art that never blanks, and a graceful 3D fallback",- "summary": "We traced a batch of production errors to their roots and fixed them. The live activity ticker no longer hammers our rate store on every open tab \u2014 one shared reader now fans updates out to everyone on a server and quiets down while the feed is idle, which is what was silently exhausting our request quota and freezing the feed. When a remote token image stalls, you now get a clean, on-brand placeholder \u2014 a unique gradient gem per token \u2014 instead of a timeout or a broken-image tile. On devices that can't run 3D (some locked-down or headless browsers), the viewer now shows a clear 'preview unavailable' card with a reload option instead of a blank stage. Text-to-3D generations that take a little longer to start no longer get cut off early, and a stray click-handling error on the homepage, search, and glossary is gone.",+ "summary": "We traced a batch of production errors to their roots and fixed them. The live activity ticker no longer hammers our rate store on every open tab — one shared reader now fans updates out to everyone on a server and quiets down while the feed is idle, which is what was silently exhausting our request quota and freezing the feed. When a remote token image stalls, you now get a clean, on-brand placeholder — a unique gradient gem per token — instead of a timeout or a broken-image tile. On devices that can't run 3D (some locked-down or headless browsers), the viewer now shows a clear 'preview unavailable' card with a reload option instead of a blank stage. Text-to-3D generations that take a little longer to start no longer get cut off early, and a stray click-handling error on the homepage, search, and glossary is gone.","tags": ["fix","infra"@@ -2821,7 +2859,7 @@{"date": "2026-06-13","title": "pump.fun MCP server now listed in the official MCP registry",- "summary": "Our free, read-only pump.fun and Solana tools are now discoverable in the official Model Context Protocol registry, so any MCP-compatible client (Claude, Cursor, and others) can find and connect to them by name. It's a remote server \u2014 no install, no API key for the free tools \u2014 covering token discovery, bonding-curve and holder analysis, creator intelligence, and Solana Name Service lookups. This brings the number of three.ws servers in the registry to six.",+ "summary": "Our free, read-only pump.fun and Solana tools are now discoverable in the official Model Context Protocol registry, so any MCP-compatible client (Claude, Cursor, and others) can find and connect to them by name. It's a remote server — no install, no API key for the free tools — covering token discovery, bonding-curve and holder analysis, creator intelligence, and Solana Name Service lookups. This brings the number of three.ws servers in the registry to six.","tags": ["feature","sdk"@@ -2830,7 +2868,7 @@},{"date": "2026-06-13",- "title": "Embed straight from the homepage demo \u2014 no trip to the full Forge",+ "title": "Embed straight from the homepage demo — no trip to the full Forge","summary": "The text-to-3D demo on the homepage now has an Embed button right in its result toolbar, so a model you forge there can go on your own site without opening the full Forge first. It pops a panel with a live preview, an iframe or <model-viewer> snippet, and the same 16:9 / square / 4:5 size presets, ready to copy in one tap. It's the same one-line embed the full Forge gives you, now one step shorter from the front page.","tags": ["feature"@@ -2840,7 +2878,7 @@{"date": "2026-06-13","title": "Tutorials read better: one-tap copy on every code block, live progress, and a jump-to-the-tool button",- "summary": "The tutorial reader (/tutorials) got a polish pass that applies to every guide. Code blocks now have a one-click Copy button, so you can lift a snippet without selecting it by hand. A slim progress rail across the top tracks how far you've read, and a back-to-top button appears once you scroll in. Each section heading has a hover link for sharing a deep link to that exact spot, and every tutorial now opens with a clear call-to-action button \u2014 the new text-to-3D guides drop you straight into the Forge. New this release: four beginner guides for turning a text prompt or photos into a downloadable 3D model, a copy-paste prompt cookbook, and an API walkthrough.",+ "summary": "The tutorial reader (/tutorials) got a polish pass that applies to every guide. Code blocks now have a one-click Copy button, so you can lift a snippet without selecting it by hand. A slim progress rail across the top tracks how far you've read, and a back-to-top button appears once you scroll in. Each section heading has a hover link for sharing a deep link to that exact spot, and every tutorial now opens with a clear call-to-action button — the new text-to-3D guides drop you straight into the Forge. New this release: four beginner guides for turning a text prompt or photos into a downloadable 3D model, a copy-paste prompt cookbook, and an API walkthrough.","tags": ["docs","improvement"@@ -2849,8 +2887,8 @@},{"date": "2026-06-13",- "title": "Refine any Forge model to higher quality in one click \u2014 plus sharper multi-view guidance",- "summary": "Three upgrades to the Forge (/forge). After a model generates, a new Refine button re-runs that exact prompt or photos one quality tier higher \u2014 Draft to Standard to High \u2014 so you can preview cheaply, then commit to the best version without retyping anything. When building from photos, a live counter now shows how many of the four reference views you've added and reminds you that more angles make a sharper mesh. And the action bar under each finished model now reflows cleanly on phones, with Refine and Make-another leading at full width. Sketch mode also makes its required description unmistakable.",+ "title": "Refine any Forge model to higher quality in one click — plus sharper multi-view guidance",+ "summary": "Three upgrades to the Forge (/forge). After a model generates, a new Refine button re-runs that exact prompt or photos one quality tier higher — Draft to Standard to High — so you can preview cheaply, then commit to the best version without retyping anything. When building from photos, a live counter now shows how many of the four reference views you've added and reminds you that more angles make a sharper mesh. And the action bar under each finished model now reflows cleanly on phones, with Refine and Make-another leading at full width. Sketch mode also makes its required description unmistakable.","tags": ["improvement"],@@ -2858,8 +2896,8 @@},{"date": "2026-06-13",- "title": "See any Forge model in AR \u2014 scan from your desktop, place it in your room",- "summary": "Every finished model now has a View in AR button. On a phone it drops the model into your space through the camera; on a desktop it shows a QR code you scan with your phone to open the same model, one tap from AR \u2014 so you can walk around what you just made at real-world scale. The embed viewer gained a big one-tap AR launcher on phones too, so models embedded on other sites are placeable in AR as well. No app, no download \u2014 it runs in the browser.",+ "title": "See any Forge model in AR — scan from your desktop, place it in your room",+ "summary": "Every finished model now has a View in AR button. On a phone it drops the model into your space through the camera; on a desktop it shows a QR code you scan with your phone to open the same model, one tap from AR — so you can walk around what you just made at real-world scale. The embed viewer gained a big one-tap AR launcher on phones too, so models embedded on other sites are placeable in AR as well. No app, no download — it runs in the browser.","tags": ["feature"],@@ -2867,8 +2905,8 @@},{"date": "2026-06-13",- "title": "Describe it to 3D joins the rest of the site \u2014 and the two generators now point at each other",- "summary": "The avatar generator at /create/prompt was a cul-de-sac: no site navigation, no footer, no way onward except a back button. It now carries the full three.ws header and footer like every other page, and finishing an avatar pops the same 'what now?' card the Forge shows \u2014 open it in Studio, make it an agent, walk it, or embed it, with your new avatar carried along. The two text-to-3D tools also cross-link: Forge points character-makers to Describe it to 3D (rigged avatars), and Describe it to 3D points prop-makers to Forge (textured objects), so you always land in the right tool.",+ "title": "Describe it to 3D joins the rest of the site — and the two generators now point at each other",+ "summary": "The avatar generator at /create/prompt was a cul-de-sac: no site navigation, no footer, no way onward except a back button. It now carries the full three.ws header and footer like every other page, and finishing an avatar pops the same 'what now?' card the Forge shows — open it in Studio, make it an agent, walk it, or embed it, with your new avatar carried along. The two text-to-3D tools also cross-link: Forge points character-makers to Describe it to 3D (rigged avatars), and Describe it to 3D points prop-makers to Forge (textured objects), so you always land in the right tool.","tags": ["improvement"],@@ -2877,7 +2915,7 @@{"date": "2026-06-13","title": "Embed any Forge model on your own site with one line",- "summary": "Every model you forge now has an Embed button next to Download. It hands you a ready-to-paste snippet \u2014 an iframe by default, or a <model-viewer> web component for builders \u2014 that drops a live, orbitable, AR-ready 3D model onto any website, with a live preview and size presets (16:9, square, 4:5) right in the panel. The iframe points at a new lightweight three.ws viewer (/forge/embed) that needs no scripts on the host page, and clicking its corner badge brings visitors back to Forge with your prompt pre-loaded to remix. Same idea as the <agent-3d> embed, now for any generated object.",+ "summary": "Every model you forge now has an Embed button next to Download. It hands you a ready-to-paste snippet — an iframe by default, or a <model-viewer> web component for builders — that drops a live, orbitable, AR-ready 3D model onto any website, with a live preview and size presets (16:9, square, 4:5) right in the panel. The iframe points at a new lightweight three.ws viewer (/forge/embed) that needs no scripts on the host page, and clicking its corner badge brings visitors back to Forge with your prompt pre-loaded to remix. Same idea as the <agent-3d> embed, now for any generated object.","tags": ["feature"],@@ -2885,8 +2923,8 @@},{"date": "2026-06-13",- "title": "The full page directory is now one click away \u2014 and instantly filterable",- "summary": "three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new \"All pages\" link in the Discover menu takes you straight to it, and the page itself now has an instant filter \u2014 press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the \u2318K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there. Eighteen pages that had never been registered in the index \u2014 What is three.ws?, the 3D Scanner, the Glossary, Support, the agent-economy demos, and all six IBM watsonx showcases under a new Integrations section \u2014 are now in the directory, the search palette, and the crawler sitemap.",+ "title": "The full page directory is now one click away — and instantly filterable",+ "summary": "three.ws has grown past 200 pages, so the sitemap directory got a real upgrade. A new \"All pages\" link in the Discover menu takes you straight to it, and the page itself now has an instant filter — press / and type to narrow every page by name, path, or description, with live per-section counts. Filtered views are shareable links, so you can send someone exactly the slice of the platform you mean. The directory now finds you when you're lost, too: it's a quick action in the ⌘K search palette, a no-results search hands you off to it with your query carried over, the 404 page offers it pre-filtered to the closest matches for the address you tried, and /pages, /directory, /everything, and /all-pages all take you there. Eighteen pages that had never been registered in the index — What is three.ws?, the 3D Scanner, the Glossary, Support, the agent-economy demos, and all six IBM watsonx showcases under a new Integrations section — are now in the directory, the search palette, and the crawler sitemap.","tags": ["improvement"],@@ -2895,7 +2933,7 @@{"date": "2026-06-12","title": "Every three.ws npm package got a polish pass and a new release",- "summary": "We went through all fifteen published three.ws packages \u2014 the avatar SDK and React bindings, the agent UI overlay, the cross-chain and Solana agent SDKs, the agent-payments engine, the avatar schema, viewer presets, the avatar CLI, and the MCP servers \u2014 and brought them to one consistent bar. Every package now has complete npm metadata (homepage, repository, issue tracker, license, keywords) and a redesigned README with badges, a copy-paste quick start, a real API/tools reference grounded in the actual code, and cross-links between related packages. Several READMEs that had drifted out of date now list the real, current tool sets. The Solana and agent-payments SDK bundles ship roughly 75% smaller by dropping sourcemaps from the minified release build. The avatar CLI gained colored output, per-command help, 'did you mean' suggestions for typos, and friendlier errors. Packages with missing license or notice files now ship them.",+ "summary": "We went through all fifteen published three.ws packages — the avatar SDK and React bindings, the agent UI overlay, the cross-chain and Solana agent SDKs, the agent-payments engine, the avatar schema, viewer presets, the avatar CLI, and the MCP servers — and brought them to one consistent bar. Every package now has complete npm metadata (homepage, repository, issue tracker, license, keywords) and a redesigned README with badges, a copy-paste quick start, a real API/tools reference grounded in the actual code, and cross-links between related packages. Several READMEs that had drifted out of date now list the real, current tool sets. The Solana and agent-payments SDK bundles ship roughly 75% smaller by dropping sourcemaps from the minified release build. The avatar CLI gained colored output, per-command help, 'did you mean' suggestions for typos, and friendlier errors. Packages with missing license or notice files now ship them.","tags": ["improvement","sdk",@@ -2905,7 +2943,7 @@{"date": "2026-06-12","title": "All twelve three.ws MCP servers refreshed: safety annotations, richer registry listings, new versions",- "summary": "Every MCP server we ship \u2014 the seven installable npm packages (3D agent tools, pump.fun data, IBM Granite via watsonx and via x402, the avatar agent, live avatar embeds, and the $THREE token server) plus the five hosted remote servers \u2014 got a coordinated upgrade. Every tool now declares Model Context Protocol safety annotations, so clients like Claude Desktop can tell read-only lookups apart from actions that move funds and warn you before anything irreversible runs. Registry listings gained proper names, the three.ws icon, and website links; READMEs now document every tool with one-line installs for Claude Code, Claude Desktop, and Cursor; and each package ships a test suite that pins the safety semantics so they cannot regress.",+ "summary": "Every MCP server we ship — the seven installable npm packages (3D agent tools, pump.fun data, IBM Granite via watsonx and via x402, the avatar agent, live avatar embeds, and the $THREE token server) plus the five hosted remote servers — got a coordinated upgrade. Every tool now declares Model Context Protocol safety annotations, so clients like Claude Desktop can tell read-only lookups apart from actions that move funds and warn you before anything irreversible runs. Registry listings gained proper names, the three.ws icon, and website links; READMEs now document every tool with one-line installs for Claude Code, Claude Desktop, and Cursor; and each package ships a test suite that pins the safety semantics so they cannot regress.","tags": ["improvement","sdk",@@ -2916,7 +2954,7 @@{"date": "2026-06-12","title": "The homepage mini Forge now remembers your models and carries them onward",- "summary": "The text-to-3D demo on the homepage got a real upgrade. Every model you forge there now lands in a session history rail \u2014 actual captured frames of your results \u2014 so you can flip back to anything you made without losing it. When a model is on stage you can spin it or pause the rotation, forge a fresh variation of the same prompt, open it straight in Scene Studio, copy a share link, view it in AR on a phone, or download the GLB \u2014 all from one toolbar. Keyboard focus jumps to those actions the moment a model lands.",+ "summary": "The text-to-3D demo on the homepage got a real upgrade. Every model you forge there now lands in a session history rail — actual captured frames of your results — so you can flip back to anything you made without losing it. When a model is on stage you can spin it or pause the rotation, forge a fresh variation of the same prompt, open it straight in Scene Studio, copy a share link, view it in AR on a phone, or download the GLB — all from one toolbar. Keyboard focus jumps to those actions the moment a model lands.","tags": ["feature","improvement"@@ -2925,7 +2963,7 @@},{"date": "2026-06-12",- "title": "Standard and High generation tiers are back \u2014 with a daily guard so they stay up",+ "title": "Standard and High generation tiers are back — with a daily guard so they stay up","summary": "A backend store the platform uses to meter paid generations hit its usage ceiling, and the safety design did its job: rather than risk unmetered spend, Forge (/forge) declined every Standard- and High-tier and photo-to-3D request. Draft generations were unaffected. We moved metering to a fresh store, verified real prompt-to-GLB generations on the restored paths, and added two permanent guards: the Forge health check now probes that store directly, and a new daily smoke test runs an actual text-to-3D generation against the live site and pages the team the moment a real user's flow would fail.","tags": ["fix",@@ -2936,7 +2974,7 @@{"date": "2026-06-12","title": "One tap rewrites your Forge prompt into a model-ready description",- "summary": "Forge (/forge) has a new Enhance button next to the prompt box. Type a rough idea \u2014 \"a fox\", \"my coffee mug\" \u2014 and it rewrites it into the kind of single-subject, material-and-lighting description the text-to-3D pipeline reconstructs cleanly, then drops it straight into the box with one-tap Undo if you preferred your own words. It runs on the same free AI providers the rest of the site uses, so it costs nothing and needs no key, and if the rewrite ever can't run your prompt is left exactly as you wrote it. Shortcut: \u2318/Ctrl + E.",+ "summary": "Forge (/forge) has a new Enhance button next to the prompt box. Type a rough idea — \"a fox\", \"my coffee mug\" — and it rewrites it into the kind of single-subject, material-and-lighting description the text-to-3D pipeline reconstructs cleanly, then drops it straight into the box with one-tap Undo if you preferred your own words. It runs on the same free AI providers the rest of the site uses, so it costs nothing and needs no key, and if the rewrite ever can't run your prompt is left exactly as you wrote it. Shortcut: ⌘/Ctrl + E.","tags": ["feature"],@@ -2945,7 +2983,7 @@{"date": "2026-06-12","title": "Forge helps you write a better prompt before you spend a generation",- "summary": "The Forge (/forge) text box now coaches you in real time: it flags when a prompt asks for a whole scene (which reconstructs poorly) and nudges you to name a material or finish for a sharper mesh, with a live character counter. A new \"Surprise me\" button drops in a vivid, ready-to-forge prompt, and \"More ideas\" reshuffles the example chips \u2014 so you always have a strong starting point. The keyboard shortcut to generate (\u2318/Ctrl + Enter) is now shown right on the button.",+ "summary": "The Forge (/forge) text box now coaches you in real time: it flags when a prompt asks for a whole scene (which reconstructs poorly) and nudges you to name a material or finish for a sharper mesh, with a live character counter. A new \"Surprise me\" button drops in a vivid, ready-to-forge prompt, and \"More ideas\" reshuffles the example chips — so you always have a strong starting point. The keyboard shortcut to generate (⌘/Ctrl + Enter) is now shown right on the button.","tags": ["feature","improvement"@@ -2955,7 +2993,7 @@{"date": "2026-06-12","title": "Forge now shows how long your model has to go",- "summary": "While the Forge (/forge) builds your 3D model, the progress now tracks against the typical time for the engine and quality you picked \u2014 so a 40-second wait reads as on-pace instead of an open-ended spinner. The bar fills honestly from real elapsed time, never jumps to done early, and if a job runs longer than usual it turns amber and tells you it's still working rather than leaving you guessing.",+ "summary": "While the Forge (/forge) builds your 3D model, the progress now tracks against the typical time for the engine and quality you picked — so a 40-second wait reads as on-pace instead of an open-ended spinner. The bar fills honestly from real elapsed time, never jumps to done early, and if a job runs longer than usual it turns amber and tells you it's still working rather than leaving you guessing.","tags": ["improvement"],@@ -2963,8 +3001,8 @@},{"date": "2026-06-12",- "title": "Text to 3D is live \u2014 and now front and center",- "summary": "Type a description, get a 3D model: the Forge (/forge) turns a text prompt into a textured, downloadable GLB, and Describe it to 3D (/create/prompt) turns a sentence into a rigged avatar that can move. Both are now where you can't miss them \u2014 a Text \u2192 3D link sits in the header on every page, both paths lead the Build menu, the homepage opens with a live try-it CTA, the /create picker highlights the prompt path, and the agent-creation wizard's body step links straight to it.",+ "title": "Text to 3D is live — and now front and center",+ "summary": "Type a description, get a 3D model: the Forge (/forge) turns a text prompt into a textured, downloadable GLB, and Describe it to 3D (/create/prompt) turns a sentence into a rigged avatar that can move. Both are now where you can't miss them — a Text → 3D link sits in the header on every page, both paths lead the Build menu, the homepage opens with a live try-it CTA, the /create picker highlights the prompt path, and the agent-creation wizard's body step links straight to it.","tags": ["feature"],@@ -2973,7 +3011,7 @@{"date": "2026-06-12","title": "Cosmetics shop purchases now work",- "summary": "Buying a premium skin or emote in the /play Cosmetics shop actually opens the payment flow now. Previously the Buy buttons failed because the in-world shop never loaded the payment widget \u2014 now it loads on demand the moment you tap Buy, the USDC checkout opens with the item priced by rarity, and a sale made inside a coin's world still credits that coin's creator. Pay once on Base or Solana and the item is yours forever.",+ "summary": "Buying a premium skin or emote in the /play Cosmetics shop actually opens the payment flow now. Previously the Buy buttons failed because the in-world shop never loaded the payment widget — now it loads on demand the moment you tap Buy, the USDC checkout opens with the item priced by rarity, and a sale made inside a coin's world still credits that coin's creator. Pay once on Base or Solana and the item is yours forever.","tags": ["fix"],@@ -2982,7 +3020,7 @@{"date": "2026-06-12","title": "New /launches page: every agent-launched coin in one live feed",- "summary": "There is now a public feed of every coin launched by a three.ws agent at /launches \u2014 live market caps, graduation badges, buyback rates, and a card linking straight to the agent behind each launch. Agent profile pages also gained a launch history: every coin an agent has ever launched is listed on its page with a live market cap and a link into the public feed. Find it in the nav under Discover \u2192 Agent Launches.",+ "summary": "There is now a public feed of every coin launched by a three.ws agent at /launches — live market caps, graduation badges, buyback rates, and a card linking straight to the agent behind each launch. Agent profile pages also gained a launch history: every coin an agent has ever launched is listed on its page with a live market cap and a link into the public feed. Find it in the nav under Discover → Agent Launches.","tags": ["feature"],@@ -2991,7 +3029,7 @@{"date": "2026-06-12","title": "Pay a real x402 oracle inside the $THREE town",- "summary": "The $THREE town in /play now has an Intel Kiosk by the plaza: walk up, press E, and buy live $THREE market intel \u2014 price, 24 h change, market cap, and a bullish/bearish/neutral signal \u2014 for $0.01 USDC paid from your own wallet over x402, settled on-chain on Solana. The oracle behind it (/api/x402/three-intel) is also listed in the bazaar, so any agent can buy the same feed. The Agent Wallet demo is now linked from the /play menu too.",+ "summary": "The $THREE town in /play now has an Intel Kiosk by the plaza: walk up, press E, and buy live $THREE market intel — price, 24 h change, market cap, and a bullish/bearish/neutral signal — for $0.01 USDC paid from your own wallet over x402, settled on-chain on Solana. The oracle behind it (/api/x402/three-intel) is also listed in the bazaar, so any agent can buy the same feed. The Agent Wallet demo is now linked from the /play menu too.","tags": ["feature"],@@ -3000,7 +3038,7 @@{"date": "2026-06-11","title": "Agent Wallet demo now settles on Solana",- "summary": "The Agent Wallet playground (/play/agent-wallet) now pays in USDC on Solana mainnet instead of Base. Your avatar's agent wallet partially signs an SPL USDC transfer, the x402 facilitator co-signs as fee payer, and the settlement lands on Solana \u2014 with a Solscan link on the receipt. Same real micropayment, now on the chain three.ws lives on.",+ "summary": "The Agent Wallet playground (/play/agent-wallet) now pays in USDC on Solana mainnet instead of Base. Your avatar's agent wallet partially signs an SPL USDC transfer, the x402 facilitator co-signs as fee payer, and the settlement lands on Solana — with a Solscan link on the receipt. Same real micropayment, now on the chain three.ws lives on.","tags": ["improvement"],@@ -3009,7 +3047,7 @@{"date": "2026-06-11","title": "Forge and Parts Studio headers display correctly again",- "summary": "The intro banner on Forge and Parts Studio was rendering as a single squashed black bar \u2014 the headline overlapped the status pill and the description was cut off mid-word. Both pages now show the proper centered header: status pill on top, full headline, and the complete description underneath.",+ "summary": "The intro banner on Forge and Parts Studio was rendering as a single squashed black bar — the headline overlapped the status pill and the description was cut off mid-word. Both pages now show the proper centered header: status pill on top, full headline, and the complete description underneath.","tags": ["fix"],@@ -3018,7 +3056,7 @@{"date": "2026-06-11","title": "Inspect any agent's 3D model right on its marketplace page",- "summary": "Agent pages in the marketplace now open with a full interactive 3D viewer \u2014 orbit, zoom, go fullscreen, download the GLB, or drop the agent straight into the world. Agents without a custom model show the base avatar, so the stage is never empty. Clicking the small header avatar jumps you to the viewer.",+ "summary": "Agent pages in the marketplace now open with a full interactive 3D viewer — orbit, zoom, go fullscreen, download the GLB, or drop the agent straight into the world. Agents without a custom model show the base avatar, so the stage is never empty. Clicking the small header avatar jumps you to the viewer.","tags": ["feature"],@@ -3027,7 +3065,7 @@{"date": "2026-06-11","title": "More paid 3D generations per hour before you hit the limit",- "summary": "The paid text-to-3D and image-to-3D lane in Forge had an hourly ceiling of 12 generations per person \u2014 tight enough that a focused iteration session, or a few people sharing the same office or campus network, could run into a 'generation limit reached, try again shortly' wall mid-flow. That ceiling is now 30 per hour. You can push through far more revisions in one sitting, while the limit still protects against runaway GPU spend. The free Draft lane keeps its own, even more generous allowance.",+ "summary": "The paid text-to-3D and image-to-3D lane in Forge had an hourly ceiling of 12 generations per person — tight enough that a focused iteration session, or a few people sharing the same office or campus network, could run into a 'generation limit reached, try again shortly' wall mid-flow. That ceiling is now 30 per hour. You can push through far more revisions in one sitting, while the limit still protects against runaway GPU spend. The free Draft lane keeps its own, even more generous allowance.","tags": ["improvement"],@@ -3035,8 +3073,8 @@},{"date": "2026-06-11",- "title": "Forge checks your photo before spending a generation \u2014 plus image-aware fact-checks and accessible galleries",- "summary": "A new free image-understanding layer (running on NVIDIA's free models, so it costs you nothing) now powers three things across three.ws. In Forge, when you upload a photo to turn into 3D, it's checked first: if it's a screenshot of text, a cluttered scene with no clear subject, or too dark to reconstruct, you get a clear heads-up and a fix before a generation slot is spent \u2014 with a one-click 'Generate anyway' if you disagree. The Fact Checker can now take an image alongside a claim: it reads the picture, transcribes any text in it, and weighs that as evidence in the verdict. And every avatar in the public gallery now gets a real, descriptive alt text written from its thumbnail, so screen-reader users hear what each avatar actually looks like instead of just its name. All three quietly switch off if the vision service is ever unavailable \u2014 nothing ever blocks or breaks.",+ "title": "Forge checks your photo before spending a generation — plus image-aware fact-checks and accessible galleries",+ "summary": "A new free image-understanding layer (running on NVIDIA's free models, so it costs you nothing) now powers three things across three.ws. In Forge, when you upload a photo to turn into 3D, it's checked first: if it's a screenshot of text, a cluttered scene with no clear subject, or too dark to reconstruct, you get a clear heads-up and a fix before a generation slot is spent — with a one-click 'Generate anyway' if you disagree. The Fact Checker can now take an image alongside a claim: it reads the picture, transcribes any text in it, and weighs that as evidence in the verdict. And every avatar in the public gallery now gets a real, descriptive alt text written from its thumbnail, so screen-reader users hear what each avatar actually looks like instead of just its name. All three quietly switch off if the vision service is ever unavailable — nothing ever blocks or breaks.","tags": ["feature","improvement"@@ -3046,7 +3084,7 @@{"date": "2026-06-11","title": "Create an avatar from a template or from scratch, right from the dashboard",- "summary": "The dashboard's Avatars page only offered selfie and GLB-upload as ways to make a new avatar \u2014 the two fastest paths, starting from a ready-made template or sculpting one from scratch, were buried elsewhere. The '+ New avatar' menu now groups every option clearly: Build (start from a template, or build from scratch in the studio), From you (snap a selfie, full selfie flow, or describe it as a prompt), and Import (upload a GLB, copy an existing avatar, or browse the public gallery). 'Start from a template' opens a picker with live 3D previews and stages your pick straight into the save step. The empty state leads with the same three quick starts.",+ "summary": "The dashboard's Avatars page only offered selfie and GLB-upload as ways to make a new avatar — the two fastest paths, starting from a ready-made template or sculpting one from scratch, were buried elsewhere. The '+ New avatar' menu now groups every option clearly: Build (start from a template, or build from scratch in the studio), From you (snap a selfie, full selfie flow, or describe it as a prompt), and Import (upload a GLB, copy an existing avatar, or browse the public gallery). 'Start from a template' opens a picker with live 3D previews and stages your pick straight into the save step. The empty state leads with the same three quick starts.","tags": ["feature","improvement"@@ -3056,7 +3094,7 @@{"date": "2026-06-11","title": "Free 3D draft generations no longer get blocked by the paid rate limit",- "summary": "Generating a 3D model from a text prompt on the Draft tier runs on a free engine \u2014 no key, no cost. But it was sharing the same hourly limit as the paid lanes, so a few quick iterations (or several people on the same office or campus network) could hit a 'generator is busy, try again later' wall even though nothing was being charged. The free draft lane now has its own, far more generous allowance and never blocks you because of a backend hiccup. Heavy paid generations keep their tighter limit. Iterate on prompts freely.",+ "summary": "Generating a 3D model from a text prompt on the Draft tier runs on a free engine — no key, no cost. But it was sharing the same hourly limit as the paid lanes, so a few quick iterations (or several people on the same office or campus network) could hit a 'generator is busy, try again later' wall even though nothing was being charged. The free draft lane now has its own, far more generous allowance and never blocks you because of a backend hiccup. Heavy paid generations keep their tighter limit. Iterate on prompts freely.","tags": ["fix","improvement"@@ -3065,8 +3103,8 @@},{"date": "2026-06-11",- "title": "Pick a username on your account page \u2014 even if you signed in with a wallet",- "summary": "You can now set and change your username right from the account page. If you signed up with a wallet, you previously had no way to claim a handle \u2014 your profile just showed a shortened wallet address. Now there's a '+ Set a username' button under your name; tap it, type a handle (3\u201330 characters, letters, numbers, _ or -), and save. Usernames are checked for availability as you save, so you'll get a clear message if one's already taken. Wallet sign-ins also no longer display the internal placeholder email on your profile.",+ "title": "Pick a username on your account page — even if you signed in with a wallet",+ "summary": "You can now set and change your username right from the account page. If you signed up with a wallet, you previously had no way to claim a handle — your profile just showed a shortened wallet address. Now there's a '+ Set a username' button under your name; tap it, type a handle (3–30 characters, letters, numbers, _ or -), and save. Usernames are checked for availability as you save, so you'll get a clear message if one's already taken. Wallet sign-ins also no longer display the internal placeholder email on your profile.","tags": ["feature","improvement"@@ -3076,7 +3114,7 @@{"date": "2026-06-11","title": "Your chat agent now walks to each new reply instead of popping in",- "summary": "When you send a message in chat, the 3D agent used to vanish from its old spot and pop into place beside the new reply. Now it walks down the conversation to the new message \u2014 appearing where it last stood and gliding into its place with its walking animation playing, so it feels like a character moving through the chat rather than teleporting. The motion respects your system's reduced-motion setting (it simply appears, no slide, if you've asked for less animation), and the very first reply just settles in since there's nowhere to walk from.",+ "summary": "When you send a message in chat, the 3D agent used to vanish from its old spot and pop into place beside the new reply. Now it walks down the conversation to the new message — appearing where it last stood and gliding into its place with its walking animation playing, so it feels like a character moving through the chat rather than teleporting. The motion respects your system's reduced-motion setting (it simply appears, no slide, if you've asked for less animation), and the very first reply just settles in since there's nowhere to walk from.","tags": ["improvement"],@@ -3085,7 +3123,7 @@{"date": "2026-06-11","title": "Forge share links now open your creation for anyone you send them to",- "summary": "When you share a model from Forge, the person who opens the link now sees your actual creation \u2014 the 3D model loads straight into the viewer, ready to spin, inspect, and download. Previously a share link only worked for the person who forged the model, because Forge only looked in your own browser's history; recipients landed on an empty Forge. Now the page fetches the shared model by its link and shows it to anyone, even if they've never used Forge before. If a link points to a model that was removed or is still generating, you get a clear message instead of a blank screen.",+ "summary": "When you share a model from Forge, the person who opens the link now sees your actual creation — the 3D model loads straight into the viewer, ready to spin, inspect, and download. Previously a share link only worked for the person who forged the model, because Forge only looked in your own browser's history; recipients landed on an empty Forge. Now the page fetches the shared model by its link and shows it to anyone, even if they've never used Forge before. If a link points to a model that was removed or is still generating, you get a clear message instead of a blank screen.","tags": ["fix","improvement"@@ -3094,8 +3132,8 @@},{"date": "2026-06-11",- "title": "Light theme is here \u2014 flip the whole site with one tap",- "summary": "three.ws now ships a light theme alongside the signature dark one. A new sun/moon toggle sits in the top nav on every page: tap it to switch instantly, and your choice sticks across pages, sessions, and other open tabs. New here, or set to 'Auto' in Settings \u2192 Appearance? The site follows your device's light/dark preference automatically. The theme is applied before the page paints, so there's no white flash on load, and the dashboard appearance picker (Dark / Light / Auto) now applies live instead of just saving for later. Dark remains the brand default \u2014 nothing changes unless you want it to.",+ "title": "Light theme is here — flip the whole site with one tap",+ "summary": "three.ws now ships a light theme alongside the signature dark one. A new sun/moon toggle sits in the top nav on every page: tap it to switch instantly, and your choice sticks across pages, sessions, and other open tabs. New here, or set to 'Auto' in Settings → Appearance? The site follows your device's light/dark preference automatically. The theme is applied before the page paints, so there's no white flash on load, and the dashboard appearance picker (Dark / Light / Auto) now applies live instead of just saving for later. Dark remains the brand default — nothing changes unless you want it to.","tags": ["feature","improvement"@@ -3103,8 +3141,8 @@},{"date": "2026-06-11",- "title": "A safety net on open, sign-in-free chat \u2014 without blocking real conversations",- "summary": "Anyone can chat with our agents without signing in, and that openness now has a quiet safety net. Messages from anonymous visitors pass through a fast content check before they reach the model, so genuinely harmful asks get a short, friendly redirect instead of an answer. It runs on a free safety model and is built to stay out of the way: if the check is ever slow or unavailable, your message goes straight through rather than being held up \u2014 the filter can never take chat down. Signed-in conversations are unaffected, and there's an instant off switch if it ever needs to step aside.",+ "title": "A safety net on open, sign-in-free chat — without blocking real conversations",+ "summary": "Anyone can chat with our agents without signing in, and that openness now has a quiet safety net. Messages from anonymous visitors pass through a fast content check before they reach the model, so genuinely harmful asks get a short, friendly redirect instead of an answer. It runs on a free safety model and is built to stay out of the way: if the check is ever slow or unavailable, your message goes straight through rather than being held up — the filter can never take chat down. Signed-in conversations are unaffected, and there's an instant off switch if it ever needs to step aside.","tags": ["feature","security"@@ -3113,7 +3151,7 @@{"date": "2026-06-11","title": "Pump dashboard alerts now follow you across devices and fire with the tab closed",- "summary": "Your Pump bot alert rules \u2014 graduation, whale, fee, and launch toggles, thresholds, cooldown, and an optional webhook \u2014 now save to your account instead of just the browser you set them in. Sign in anywhere and they're already there. Graduation alerts are evaluated server-side against the live pump.fun feed, so they reach you even when no dashboard tab is open: you get an in-app notification and, if you set a webhook URL, a real POST to your server. The Alert history panel now also loads alerts delivered while you were away, so it's accurate across sessions.",+ "summary": "Your Pump bot alert rules — graduation, whale, fee, and launch toggles, thresholds, cooldown, and an optional webhook — now save to your account instead of just the browser you set them in. Sign in anywhere and they're already there. Graduation alerts are evaluated server-side against the live pump.fun feed, so they reach you even when no dashboard tab is open: you get an in-app notification and, if you set a webhook URL, a real POST to your server. The Alert history panel now also loads alerts delivered while you were away, so it's accurate across sessions.","tags": ["feature","improvement"@@ -3123,7 +3161,7 @@{"date": "2026-06-11","title": "Talking-agent widgets answer from their knowledge again",- "summary": "If you uploaded docs to a talking-agent widget, it can ground its answers in them again. Knowledge retrieval had gone quiet when our previous embedding provider ran out of quota \u2014 questions fell back to generic replies instead of citing your material. We've moved both the upload step and the question-matching step onto a free, fast embedding lane, so a visitor asking about something only your docs cover now gets an answer drawn straight from them, with the source named. Widgets with no uploaded knowledge keep chatting normally. Nothing to update \u2014 your existing docs work as-is.",+ "summary": "If you uploaded docs to a talking-agent widget, it can ground its answers in them again. Knowledge retrieval had gone quiet when our previous embedding provider ran out of quota — questions fell back to generic replies instead of citing your material. We've moved both the upload step and the question-matching step onto a free, fast embedding lane, so a visitor asking about something only your docs cover now gets an answer drawn straight from them, with the source named. Widgets with no uploaded knowledge keep chatting normally. Nothing to update — your existing docs work as-is.","tags": ["fix"],@@ -3132,7 +3170,7 @@{"date": "2026-06-11","title": "Avatar voices can speak out loud again",- "summary": "Talking avatars are back. Spoken playback had gone silent after our previous voice provider ran out of quota, leaving the live lip-sync demo and the read-the-page-aloud browser extension mute. We've moved avatar speech onto a new free, fast voice lane that generates audio in about a second, so every speaking surface talks again with no change to how you use it. Nothing to update \u2014 pick a voice and press play.",+ "summary": "Talking avatars are back. Spoken playback had gone silent after our previous voice provider ran out of quota, leaving the live lip-sync demo and the read-the-page-aloud browser extension mute. We've moved avatar speech onto a new free, fast voice lane that generates audio in about a second, so every speaking surface talks again with no change to how you use it. Nothing to update — pick a voice and press play.","tags": ["fix"],@@ -3141,7 +3179,7 @@{"date": "2026-06-11","title": "Public status page with live uptime monitoring",- "summary": "three.ws now monitors its own critical surfaces \u2014 the website, platform API, explore feed, x402 paid-API discovery, and the 3D viewer \u2014 every 5 minutes from outside our infrastructure, and publishes the results at three.ws/status: live operational state, response times, and a 90-day uptime history per service. A machine-readable JSON feed is available at /api/status for agents and integrators. Browser errors on any page are now also collected first-party, so problems reach the team before reports do.",+ "summary": "three.ws now monitors its own critical surfaces — the website, platform API, explore feed, x402 paid-API discovery, and the 3D viewer — every 5 minutes from outside our infrastructure, and publishes the results at three.ws/status: live operational state, response times, and a 90-day uptime history per service. A machine-readable JSON feed is available at /api/status for agents and integrators. Browser errors on any page are now also collected first-party, so problems reach the team before reports do.","tags": ["feature","infra"@@ -3151,7 +3189,7 @@{"date": "2026-06-11","title": "Pluggable memory backends + a portable snapshot format for the agent SDK",- "summary": "Agent developers can now plug a custom memory backend \u2014 a vector database, an episodic event log, or their own API \u2014 behind a named mode with Memory.registerBackend, no forking required. All built-in modes (local, remote, ipfs, encrypted-ipfs, none) are unchanged. We also formalized a memory/0.1 snapshot contract: memory.snapshot() returns a JSON-safe object and Memory.fromSnapshot() rehydrates it, so embedded agent widgets keep their memory across page reloads. Documented in the Memory spec, agent manifest, and README.",+ "summary": "Agent developers can now plug a custom memory backend — a vector database, an episodic event log, or their own API — behind a named mode with Memory.registerBackend, no forking required. All built-in modes (local, remote, ipfs, encrypted-ipfs, none) are unchanged. We also formalized a memory/0.1 snapshot contract: memory.snapshot() returns a JSON-safe object and Memory.fromSnapshot() rehydrates it, so embedded agent widgets keep their memory across page reloads. Documented in the Memory spec, agent manifest, and README.","tags": ["sdk","docs"@@ -3160,7 +3198,7 @@{"date": "2026-06-11","title": "Agents dashboard renders reliably again",- "summary": "Fixed a crash that could blank out the agent list on your dashboard while it built each agent's card. The page now renders every agent \u2014 on-chain, Pump.fun, and off-chain \u2014 without errors, including the Deploy onchain and registry links.",+ "summary": "Fixed a crash that could blank out the agent list on your dashboard while it built each agent's card. The page now renders every agent — on-chain, Pump.fun, and off-chain — without errors, including the Deploy onchain and registry links.","tags": ["fix"],@@ -3169,7 +3207,7 @@{"date": "2026-06-11","title": "Avatar preview images load reliably",- "summary": "Fixed a bug where some community avatars \u2014 including the pinned home-town cast \u2014 showed a broken preview image in the /play lobby and gallery instead of their portrait. The shareable social-card image for those avatars now generates and serves correctly too, so links posted to X and Discord render a proper preview.",+ "summary": "Fixed a bug where some community avatars — including the pinned home-town cast — showed a broken preview image in the /play lobby and gallery instead of their portrait. The shareable social-card image for those avatars now generates and serves correctly too, so links posted to X and Discord render a proper preview.","tags": ["fix"],@@ -3178,7 +3216,7 @@{"date": "2026-06-11","title": "Free 3D drafts on Forge",- "summary": "Draft generations from a text prompt on Forge now run on a free NVIDIA-hosted TRELLIS engine by default \u2014 your first 3D model costs nothing and arrives in about 15 seconds, several times faster than the previous default. Photo-to-3D keeps its proven engine (the free lane is prompt-only by design), and every existing engine \u2014 TRELLIS on Replicate, Meshy, Tripo \u2014 remains selectable at every quality tier.",+ "summary": "Draft generations from a text prompt on Forge now run on a free NVIDIA-hosted TRELLIS engine by default — your first 3D model costs nothing and arrives in about 15 seconds, several times faster than the previous default. Photo-to-3D keeps its proven engine (the free lane is prompt-only by design), and every existing engine — TRELLIS on Replicate, Meshy, Tripo — remains selectable at every quality tier.","tags": ["feature","improvement"@@ -3188,7 +3226,7 @@{"date": "2026-06-11","title": "Hardened the explore feed and marketplace pricing against bad requests",- "summary": "The explore discovery feed and marketplace asset-pricing lookup now reject malformed query parameters with a clear 400 instead of failing with a server error. A non-numeric page size on explore, or a malformed asset id on a price lookup, no longer surfaces a 500 \u2014 the endpoints validate input up front and respond cleanly.",+ "summary": "The explore discovery feed and marketplace asset-pricing lookup now reject malformed query parameters with a clear 400 instead of failing with a server error. A non-numeric page size on explore, or a malformed asset id on a price lookup, no longer surfaces a 500 — the endpoints validate input up front and respond cleanly.","tags": ["fix"],@@ -3206,7 +3244,7 @@{"date": "2026-06-11","title": "MetaMask Agent Wallet skills for every agent",- "summary": "Two new skills in the marketplace under the new Wallet category: MetaMask Agent Wallet and MetaMask Agent Workflows. Install them on any agent to let it check balances, transfer tokens, swap, bridge across chains, trade perps and prediction markets, and manage Aave positions through MetaMask's mm CLI \u2014 each user signs in with their own MetaMask Agent Wallet, so keys stay with you, never with three.ws. Platform chat agents pick the skills up automatically.",+ "summary": "Two new skills in the marketplace under the new Wallet category: MetaMask Agent Wallet and MetaMask Agent Workflows. Install them on any agent to let it check balances, transfer tokens, swap, bridge across chains, trade perps and prediction markets, and manage Aave positions through MetaMask's mm CLI — each user signs in with their own MetaMask Agent Wallet, so keys stay with you, never with three.ws. Platform chat agents pick the skills up automatically.","tags": ["feature"],@@ -3215,7 +3253,7 @@{"date": "2026-06-11","title": "Embedded avatar chat replies again",- "summary": "Avatars embedded straight from their public profile \u2014 the one-line widget on the homepage and anywhere else the avatar URL is dropped in \u2014 went silent when you typed a message: the chat box accepted your text but the avatar never answered. The built-in AI now recognizes a plain public avatar and serves it the free we-pay model with the same per-avatar rate and usage limits, so embedded chat responds out of the box.",+ "summary": "Avatars embedded straight from their public profile — the one-line widget on the homepage and anywhere else the avatar URL is dropped in — went silent when you typed a message: the chat box accepted your text but the avatar never answered. The built-in AI now recognizes a plain public avatar and serves it the free we-pay model with the same per-avatar rate and usage limits, so embedded chat responds out of the box.","tags": ["fix"]@@ -3232,7 +3270,7 @@{"date": "2026-06-11","title": "Built-in AI stays up when a provider runs dry",- "summary": "The platform's built-in AI (chat, the Brain model workbench, embedded site widgets, tutor, fact-checker, persona tools, agent talk, the transaction explainer) now runs on a deeper safety net. Three independent free lanes \u2014 Groq, OpenRouter (with automatic rotation across multiple accounts when one runs out of credits or hits a rate limit), and NVIDIA-hosted models \u2014 always serve first, and if every one of them fails, the request quietly falls through to a paid backstop instead of showing you an error. Paid x402 endpoints that previously returned errors during a provider outage now degrade the same way. Agent memory search now runs on a free embeddings lane with the paid provider demoted to backup, and embedded agents configured for a paid model degrade to the free lanes instead of erroring when that provider's key is dead.",+ "summary": "The platform's built-in AI (chat, the Brain model workbench, embedded site widgets, tutor, fact-checker, persona tools, agent talk, the transaction explainer) now runs on a deeper safety net. Three independent free lanes — Groq, OpenRouter (with automatic rotation across multiple accounts when one runs out of credits or hits a rate limit), and NVIDIA-hosted models — always serve first, and if every one of them fails, the request quietly falls through to a paid backstop instead of showing you an error. Paid x402 endpoints that previously returned errors during a provider outage now degrade the same way. Agent memory search now runs on a free embeddings lane with the paid provider demoted to backup, and embedded agents configured for a paid model degrade to the free lanes instead of erroring when that provider's key is dead.","tags": ["improvement","infra"@@ -3241,7 +3279,7 @@{"date": "2026-06-11","title": "Live $THREE market data, longer trade streams, and tutor session fixes",- "summary": "$THREE market stats (price, holders, liquidity) are flowing again from our primary data source \u2014 a missing request header had been silently failing it to backups for days. Live trade streams no longer cut out after 30 seconds; they now run their full duration. The Pay-As-You-Learn Tutor no longer errors when resuming a session \u2014 running tabs persist correctly across questions \u2014 and Fact Checker results are cached properly so repeat checks of the same claim return instantly.",+ "summary": "$THREE market stats (price, holders, liquidity) are flowing again from our primary data source — a missing request header had been silently failing it to backups for days. Live trade streams no longer cut out after 30 seconds; they now run their full duration. The Pay-As-You-Learn Tutor no longer errors when resuming a session — running tabs persist correctly across questions — and Fact Checker results are cached properly so repeat checks of the same claim return instantly.","tags": ["fix","improvement"@@ -3250,7 +3288,7 @@{"date": "2026-06-11","title": "Scheduled jobs restored after dependency outage",- "summary": "Every background job \u2014 pump.fun monitoring, coin payouts, club payouts, scheduled X posts, DCA runs, subscription billing, and the rest \u2014 had been failing since a recent dependency upgrade left a required Solana staking library out of the deployment. The missing library now ships with every deploy, and the image-processing engine behind avatar baking was rolled back to its proven version so it loads reliably in production. All scheduled jobs run again.",+ "summary": "Every background job — pump.fun monitoring, coin payouts, club payouts, scheduled X posts, DCA runs, subscription billing, and the rest — had been failing since a recent dependency upgrade left a required Solana staking library out of the deployment. The missing library now ships with every deploy, and the image-processing engine behind avatar baking was rolled back to its proven version so it loads reliably in production. All scheduled jobs run again.","tags": ["fix","infra"@@ -3268,7 +3306,7 @@{"date": "2026-06-11","title": "Faster, quieter agents directory and site-wide page polish",- "summary": "The on-chain agents directory now loads from our server-side index instead of contacting every agent's metadata host from your browser \u2014 pages render faster and no longer spray network errors. Also: the pump.fun cockpit's sidebar pages are now shareable deep links, mobile nav and footer links meet touch-target guidelines, anonymous visitors no longer trigger failed sign-in requests on Walk and Create, and assorted dead links were removed.",+ "summary": "The on-chain agents directory now loads from our server-side index instead of contacting every agent's metadata host from your browser — pages render faster and no longer spray network errors. Also: the pump.fun cockpit's sidebar pages are now shareable deep links, mobile nav and footer links meet touch-target guidelines, anonymous visitors no longer trigger failed sign-in requests on Walk and Create, and assorted dead links were removed.","tags": ["improvement","fix"@@ -3304,7 +3342,7 @@{"date": "2026-06-08","title": "Bounty board with AI judge",- "summary": "Bounty submissions now support liking, AI-powered scoring, and per-bounty leaderboards \u2014 submissions are ranked by a platform-powered judge.",+ "summary": "Bounty submissions now support liking, AI-powered scoring, and per-bounty leaderboards — submissions are ranked by a platform-powered judge.","tags": ["feature"]@@ -3320,7 +3358,7 @@{"date": "2026-06-07","title": "AIXBT market intelligence for agents",- "summary": "Agents and in-world NPCs can now tap AIXBT market intelligence \u2014 token analysis, project data, and grounding served through new API endpoints.",+ "summary": "Agents and in-world NPCs can now tap AIXBT market intelligence — token analysis, project data, and grounding served through new API endpoints.","tags": ["feature"]@@ -3344,7 +3382,7 @@{"date": "2026-06-05","title": "Privy wallet sign-in",- "summary": "Wallet-native sign-in via Privy with JWKS verification and DID linking \u2014 log in securely without managing passwords.",+ "summary": "Wallet-native sign-in via Privy with JWKS verification and DID linking — log in securely without managing passwords.","tags": ["feature","security"@@ -3361,7 +3399,7 @@{"date": "2026-06-05","title": "Cosmetics economy in the game world",- "summary": "A cosmetics shop inside the 3D game world \u2014 buy avatar customizations via x402, trade them peer-to-peer, and earn from cosmetics usage.",+ "summary": "A cosmetics shop inside the 3D game world — buy avatar customizations via x402, trade them peer-to-peer, and earn from cosmetics usage.","tags": ["feature"]@@ -3377,7 +3415,7 @@{"date": "2026-06-03","title": "Autonomous agent-to-agent trading",- "summary": "Agents can now negotiate with each other, pay for crypto intelligence via x402 micropayments, and settle on-chain \u2014 fully autonomously.",+ "summary": "Agents can now negotiate with each other, pay for crypto intelligence via x402 micropayments, and settle on-chain — fully autonomously.","tags": ["feature"]@@ -3394,7 +3432,7 @@{"date": "2026-06-02","title": "Four production MCP servers",- "summary": "3D Studio (text-to-3D, model inspection), x402 Bazaar (service discovery and payment), IBM watsonx (LLM access), and Pump.fun (token operations) \u2014 all published with manifests and docs.",+ "summary": "3D Studio (text-to-3D, model inspection), x402 Bazaar (service discovery and payment), IBM watsonx (LLM access), and Pump.fun (token operations) — all published with manifests and docs.","tags": ["sdk"],@@ -3403,7 +3441,7 @@{"date": "2026-06-02","title": "Every agent gets its own wallet",- "summary": "Each agent now has a deterministic Solana wallet for self-custodied payments \u2014 agents can send SOL and settle x402 transactions autonomously.",+ "summary": "Each agent now has a deterministic Solana wallet for self-custodied payments — agents can send SOL and settle x402 transactions autonomously.","tags": ["feature"]@@ -3411,7 +3449,7 @@{"date": "2026-06-01","title": "City world",- "summary": "An isometric 3D city with player movement, collision, minimap, and avatar animation \u2014 a new kind of world to explore as your agent.",+ "summary": "An isometric 3D city with player movement, collision, minimap, and avatar animation — a new kind of world to explore as your agent.","tags": ["feature"]@@ -3427,7 +3465,7 @@{"date": "2026-05-31","title": "Spatial voice chat in coin worlds",- "summary": "Proximity-based voice chat inside multiplayer worlds \u2014 you hear players based on distance, with speaking indicators, voice activity detection, and audio panning.",+ "summary": "Proximity-based voice chat inside multiplayer worlds — you hear players based on distance, with speaking indicators, voice activity detection, and audio panning.","tags": ["feature"]@@ -3443,14 +3481,14 @@{"date": "2026-05-31","title": "Keyframe animation in Pose Studio",- "summary": "Create, edit, and export full-body avatar animations on a keyframe timeline \u2014 with easing functions and export to JSON or GLB.",+ "summary": "Create, edit, and export full-body avatar animations on a keyframe timeline — with easing functions and export to JSON or GLB.","tags": ["feature"]},{"date": "2026-05-30",- "title": "Coin Communities \u2014 live 3D coin worlds",+ "title": "Coin Communities — live 3D coin worlds","summary": "Every pump.fun coin gets a deterministic 3D world. Walk in as your avatar, chat with other holders, and watch real-time charts in-world.","tags": ["feature"@@ -3476,7 +3514,7 @@},{"date": "2026-05-27",- "title": "Brain page \u2014 race LLMs side by side",+ "title": "Brain page — race LLMs side by side","summary": "Run simultaneous inference across Claude, GPT, Qwen, and more with streaming latency comparison, plus a face-quality module that scores avatar facial fidelity.","tags": ["feature"@@ -3485,7 +3523,7 @@{"date": "2026-05-27","title": "Unified dashboard",- "summary": "Dashboard routes consolidated under /dashboard \u2014 agents, avatars, analytics, settings, and billing in one place.",+ "summary": "Dashboard routes consolidated under /dashboard — agents, avatars, analytics, settings, and billing in one place.","tags": ["improvement"],@@ -3521,7 +3559,7 @@{"date": "2026-05-24","title": "Marketplace asset pricing and purchases",- "summary": "Asset pricing, purchase flows, payment modals, and time-pass licensing \u2014 avatar customizations and plugins are now monetizable.",+ "summary": "Asset pricing, purchase flows, payment modals, and time-pass licensing — avatar customizations and plugins are now monetizable.","tags": ["feature"]@@ -3537,7 +3575,7 @@{"date": "2026-05-23","title": "Pay by name with SNS",- "summary": "Solana Name Service integration \u2014 claim threews.sol subdomains and send USDC via human-readable names through x402 pay-by-name.",+ "summary": "Solana Name Service integration — claim threews.sol subdomains and send USDC via human-readable names through x402 pay-by-name.","tags": ["feature"]@@ -3553,7 +3591,7 @@},{"date": "2026-05-21",- "title": "Pole Club \u2014 micro-tip performances",+ "title": "Pole Club — micro-tip performances","summary": "A 3D club with four stages where USDC micro-tips ($0.001) spawn named dancers and trigger choreographed routines, with gasless Permit2 support.","tags": ["feature"@@ -3563,7 +3601,7 @@{"date": "2026-05-21","title": "Agent-to-agent protocol",- "summary": "A2A client/server, MCP bridge, spending ledger, and receipts storage \u2014 agents can securely request services from each other with x402 payment coordination.",+ "summary": "A2A client/server, MCP bridge, spending ledger, and receipts storage — agents can securely request services from each other with x402 payment coordination.","tags": ["feature","sdk"@@ -3572,7 +3610,7 @@{"date": "2026-05-21","title": "Agent-UI SDK released",- "summary": "Published @three-ws/agent-ui for embedding 3D avatars in any web app \u2014 animation, click reactions, mouse tracking, and movement behaviors.",+ "summary": "Published @three-ws/agent-ui for embedding 3D avatars in any web app — animation, click reactions, mouse tracking, and movement behaviors.","tags": ["sdk"]@@ -3580,7 +3618,7 @@{"date": "2026-05-21","title": "Avatar Agent MCP in Anthropic's registry",- "summary": "Published avatar-agent-mcp to Anthropic's official MCP registry \u2014 40+ tools for avatar generation, token launches, GLB rendering, and on-chain transactions.",+ "summary": "Published avatar-agent-mcp to Anthropic's official MCP registry — 40+ tools for avatar generation, token launches, GLB rendering, and on-chain transactions.","tags": ["sdk"]@@ -3629,7 +3667,7 @@{"date": "2026-05-18","title": "Selfie-to-avatar reconstruction pipeline",- "summary": "Native photo-to-3D reconstruction \u2014 submit selfies and get a fully rigged GLB avatar with automatic mesh optimization, resilient to long-running transforms.",+ "summary": "Native photo-to-3D reconstruction — submit selfies and get a fully rigged GLB avatar with automatic mesh optimization, resilient to long-running transforms.","tags": ["feature"]@@ -3653,7 +3691,7 @@{"date": "2026-05-17","title": "Team launches with creator-signer split",- "summary": "Token launches now support separate signer and creator wallets \u2014 the signer pays gas while the creator receives on-chain royalties.",+ "summary": "Token launches now support separate signer and creator wallets — the signer pays gas while the creator receives on-chain royalties.","tags": ["feature"]@@ -3669,15 +3707,15 @@{"date": "2026-05-17","title": "Server-side avatar regeneration",- "summary": "Restyle, remesh, retexture, and rerig avatars with server-backed Replicate compute \u2014 results cached automatically in R2.",+ "summary": "Restyle, remesh, retexture, and rerig avatars with server-backed Replicate compute — results cached automatically in R2.","tags": ["feature"]},{"date": "2026-05-17",- "title": "Talk mode, avatar SDK, and 5\u201310x smaller avatars",- "summary": "Talk mode with camera presets and ARKit-52 blendshapes, a public avatar SDK with React exports, new brain/TTS/identity APIs, and a GLB bake pipeline with WebP compression that cuts asset sizes 5\u201310x.",+ "title": "Talk mode, avatar SDK, and 5–10x smaller avatars",+ "summary": "Talk mode with camera presets and ARKit-52 blendshapes, a public avatar SDK with React exports, new brain/TTS/identity APIs, and a GLB bake pipeline with WebP compression that cuts asset sizes 5–10x.","tags": ["feature","sdk"@@ -3694,23 +3732,23 @@{"date": "2026-05-15","title": "Token visualizer search and sort",- "summary": "The interactive 3D token universe gained search by name/symbol/mint and sorting by market cap, live status, replies, and age \u2014 refreshing every 60 seconds.",+ "summary": "The interactive 3D token universe gained search by name/symbol/mint and sorting by market cap, live status, replies, and age — refreshing every 60 seconds.","tags": ["feature"]},{"date": "2026-05-14",- "title": "x402 commerce \u2014 SKUs and hosted checkout",- "summary": "Stripe-like payment UX for x402: define SKUs, share hosted checkout links, and track settlement history \u2014 settled on Base via Coinbase CDP.",+ "title": "x402 commerce — SKUs and hosted checkout",+ "summary": "Stripe-like payment UX for x402: define SKUs, share hosted checkout links, and track settlement history — settled on Base via Coinbase CDP.","tags": ["feature"]},{"date": "2026-05-14",- "title": "Launchpad Studio \u2014 no-code hosted pages",- "summary": "Pick a template, fill a form, and publish a hosted page for your token or service at /p/<slug> \u2014 no code required.",+ "title": "Launchpad Studio — no-code hosted pages",+ "summary": "Pick a template, fill a form, and publish a hosted page for your token or service at /p/<slug> — no code required.","tags": ["feature"]@@ -3718,7 +3756,7 @@{"date": "2026-05-14","title": "Multiplayer walk scenes",- "summary": "Live multiplayer walkaround with websocket infrastructure \u2014 multiple players see each other in the same 3D scene.",+ "summary": "Live multiplayer walkaround with websocket infrastructure — multiple players see each other in the same 3D scene.","tags": ["feature","infra"@@ -3760,7 +3798,7 @@{"date": "2026-05-10","title": "Launch-week recap published",- "summary": "An interactive case study of launch week (Apr 29 \u2013 May 9) with the architecture timeline, partner ecosystem, lessons learned, and live engagement metrics.",+ "summary": "An interactive case study of launch week (Apr 29 – May 9) with the architecture timeline, partner ecosystem, lessons learned, and live engagement metrics.","tags": ["docs"]@@ -3776,14 +3814,14 @@{"date": "2026-05-08","title": "$THREE holder gating",- "summary": "Holder-gated access now works with a simple on-chain $THREE balance check \u2014 no vault setup required.",+ "summary": "Holder-gated access now works with a simple on-chain $THREE balance check — no vault setup required.","tags": ["feature"]},{"date": "2026-05-08",- "title": "Agent Payments SDK v3.1.0 \u2014 multi-chain",+ "title": "Agent Payments SDK v3.1.0 — multi-chain","summary": "Solana v2 bonding curve support plus Base, Polygon, and Ethereum with cross-chain payment routing.","tags": ["sdk"@@ -3792,7 +3830,7 @@{"date": "2026-05-08","title": "Payments inside chat",- "summary": "The full agent payments lifecycle is available in chat \u2014 balance checks, fund distribution, withdrawals, and USDC whitelist monitoring.",+ "summary": "The full agent payments lifecycle is available in chat — balance checks, fund distribution, withdrawals, and USDC whitelist monitoring.","tags": ["feature"]@@ -3825,7 +3863,7 @@{"date": "2026-05-08","title": "Agents that feel the room",- "summary": "Agents now react to user sentiment with emotion expressions and animations \u2014 empathy, concern, celebration, patience, curiosity.",+ "summary": "Agents now react to user sentiment with emotion expressions and animations — empathy, concern, celebration, patience, curiosity.","tags": ["feature"]@@ -3841,7 +3879,7 @@{"date": "2026-05-04","title": "JavaScript SDK launch",- "summary": "The official three.ws JavaScript SDK with built-in chat and embed methods \u2014 integrate 3D agents into any web application.",+ "summary": "The official three.ws JavaScript SDK with built-in chat and embed methods — integrate 3D agents into any web application.","tags": ["sdk"]@@ -3849,7 +3887,7 @@{"date": "2026-05-04","title": "Sell your agent's skills",- "summary": "Skill pricing, purchase buttons, and a payment intent API \u2014 creators can gate premium skills behind subscriptions or one-time purchases.",+ "summary": "Skill pricing, purchase buttons, and a payment intent API — creators can gate premium skills behind subscriptions or one-time purchases.","tags": ["feature"]@@ -3889,7 +3927,7 @@{"date": "2026-05-01","title": "Reputation and staking",- "summary": "Agent reputation panel with ETH staking for trust signals \u2014 reputation accumulates through validator actions tracked on-chain.",+ "summary": "Agent reputation panel with ETH staking for trust signals — reputation accumulates through validator actions tracked on-chain.","tags": ["feature"]@@ -3906,7 +3944,7 @@{"date": "2026-04-29","title": "three.ws in Anthropic's MCP Registry",- "summary": "Published to the official MCP Registry \u2014 Claude can deploy agents, create tokens, and run wallet operations on three.ws via the standard MCP protocol.",+ "summary": "Published to the official MCP Registry — Claude can deploy agents, create tokens, and run wallet operations on three.ws via the standard MCP protocol.","tags": ["sdk","infra"@@ -3915,7 +3953,7 @@{"date": "2026-04-29","title": "On-chain agents on Solana and EVM",- "summary": "Unified deployment stack \u2014 agents register on Ethereum, Base, Polygon, and Solana with passport pages, reputation, and attestations.",+ "summary": "Unified deployment stack — agents register on Ethereum, Base, Polygon, and Solana with passport pages, reputation, and attestations.","tags": ["feature"]@@ -3931,7 +3969,7 @@{"date": "2026-04-29","title": "x402 micropayments",- "summary": "Facilitator-mediated USDC micropayments \u2014 MCP clients authorize requests with payment headers, with per-tool pricing and subscription bypass.",+ "summary": "Facilitator-mediated USDC micropayments — MCP clients authorize requests with payment headers, with per-tool pricing and subscription bypass.","tags": ["feature","sdk"@@ -3956,7 +3994,7 @@{"date": "2026-04-27","title": "Create-to-deploy flow",- "summary": "A streamlined creator path: create, edit, see your 3D body on your public profile, and deploy on-chain with chain selection \u2014 with onboarding for first-time creators.",+ "summary": "A streamlined creator path: create, edit, see your 3D body on your public profile, and deploy on-chain with chain selection — with onboarding for first-time creators.","tags": ["feature"]@@ -3972,7 +4010,7 @@{"date": "2026-04-17","title": "Avatars that never sit still",- "summary": "A four-channel idle animation loop \u2014 breathing, eye saccades, blinks, weight shifts \u2014 keeps avatars naturally alive during silence.",+ "summary": "A four-channel idle animation loop — breathing, eye saccades, blinks, weight shifts — keeps avatars naturally alive during silence.","tags": ["feature"]@@ -3997,7 +4035,7 @@{"date": "2026-04-16","title": "Widget Studio is born",- "summary": "The first version of Widget Studio \u2014 build, preview, and save custom avatar widgets with a drag-drop editor and live updates.",+ "summary": "The first version of Widget Studio — build, preview, and save custom avatar widgets with a drag-drop editor and live updates.","tags": ["feature"]@@ -4005,7 +4043,7 @@{"date": "2026-04-15","title": "3D model validation tools",- "summary": "Model validation, inspection, and optimization APIs for GLB/FBX files \u2014 asset analysis and format conversion to guarantee avatar quality.",+ "summary": "Model validation, inspection, and optimization APIs for GLB/FBX files — asset analysis and format conversion to guarantee avatar quality.","tags": ["feature","sdk"@@ -4014,7 +4052,7 @@{"date": "2026-04-15","title": "Wallet sign-in and on-chain identity",- "summary": "Sign-In with Ethereum, wallet integration, and the ERC-8004 Passport widget \u2014 agents display cryptographic proof of identity tied to wallet ownership.",+ "summary": "Sign-In with Ethereum, wallet integration, and the ERC-8004 Passport widget — agents display cryptographic proof of identity tied to wallet ownership.","tags": ["feature","security"@@ -4023,7 +4061,7 @@{"date": "2026-06-12","title": "zauth's security agent moves into the $THREE town",- "summary": "A new character stands in the $THREE town plaza on /play: the security agent from zauth, the x402 trust company. Walk up and it calls zauth's live paid API on the spot, quoting the real on-chain price for a RepoScan \u2014 name any GitHub repository and for $0.05 USDC, paid from your own wallet straight to zauth on Solana or Base, it scans the code for provenance, contributor verification, and vulnerabilities, then hands back a 0\u2013100 trust score with a full written report. Scans keep running while you play; the agent calls out when your report is ready.",+ "summary": "A new character stands in the $THREE town plaza on /play: the security agent from zauth, the x402 trust company. Walk up and it calls zauth's live paid API on the spot, quoting the real on-chain price for a RepoScan — name any GitHub repository and for $0.05 USDC, paid from your own wallet straight to zauth on Solana or Base, it scans the code for provenance, contributor verification, and vulnerabilities, then hands back a 0–100 trust score with a full written report. Scans keep running while you play; the agent calls out when your report is ready.","tags": ["feature"],@@ -4041,7 +4079,7 @@},{"date": "2026-06-12",- "title": "The 3D world is back on solid ground \u2014 and locked against griefing",+ "title": "The 3D world is back on solid ground — and locked against griefing","summary": "world.three.ws was dropping every visitor into a black void: the shared scene's script file had gone missing, so the ground unloaded the moment you joined. We restored the scene, cleared out broken leftover objects, and the meadow, sky, and sunlight are back. Building in the world now requires an admin code, so visitors can no longer delete the ground or fill the space with broken uploads, and the upload size cap was tightened. A new automated health check watches the world's assets so this class of breakage gets caught before anyone falls through the floor again.","tags": ["fix",@@ -4052,7 +4090,7 @@{"date": "2026-06-12","title": "Forge a 3D model right on the homepage",- "summary": "The homepage now has a live slice of Forge. Type a description of an object \u2014 or tap an example \u2014 and the real text-to-3D pipeline reconstructs a textured mesh and drops an interactive 3D model into the page, usually in seconds, that you can orbit and download as GLB. Anything you forge there also shows up in the full Forge gallery on the same device.",+ "summary": "The homepage now has a live slice of Forge. Type a description of an object — or tap an example — and the real text-to-3D pipeline reconstructs a textured mesh and drops an interactive 3D model into the page, usually in seconds, that you can orbit and download as GLB. Anything you forge there also shows up in the full Forge gallery on the same device.","tags": ["feature"],@@ -4061,7 +4099,7 @@{"date": "2026-06-12","title": "Forge's free Draft engine no longer loses finished models",- "summary": "Generating on Forge's free Draft engine finished successfully on the server, but the page kept waiting and eventually reported a timeout \u2014 the model you'd already paid the wait for never appeared. The free engine returns its result immediately rather than as a background job, and the page now recognizes that, so Draft generations land on screen the moment they're ready.",+ "summary": "Generating on Forge's free Draft engine finished successfully on the server, but the page kept waiting and eventually reported a timeout — the model you'd already paid the wait for never appeared. The free engine returns its result immediately rather than as a background job, and the page now recognizes that, so Draft generations land on screen the moment they're ready.","tags": ["fix"],@@ -4080,7 +4118,7 @@{"date": "2026-06-12","title": "Forge engine picker now shows live engine health",- "summary": "The engine buttons on Forge now reflect what's actually running, probed live against each provider \u2014 not just whether it's set up. An engine whose upstream is down or unreachable is disabled with the reason in its tooltip, a throttled one shows an amber busy dot, and bring-your-own-key engines (Meshy, Tripo) say so before you pick them. Behind it is a new public health check at /api/forge?health, and the self-hosted Hunyuan3D lane was rewired to its own worker so it no longer fails every prompt by routing to the avatar pipeline.",+ "summary": "The engine buttons on Forge now reflect what's actually running, probed live against each provider — not just whether it's set up. An engine whose upstream is down or unreachable is disabled with the reason in its tooltip, a throttled one shows an amber busy dot, and bring-your-own-key engines (Meshy, Tripo) say so before you pick them. Behind it is a new public health check at /api/forge?health, and the self-hosted Hunyuan3D lane was rewired to its own worker so it no longer fails every prompt by routing to the avatar pipeline.","tags": ["improvement","fix"@@ -4090,7 +4128,7 @@{"date": "2026-06-12","title": "Forge models now carry straight into Scene Studio",- "summary": "The \"what's next\" card after a Forge or Parts Studio result used to send you to the studio empty-handed \u2014 the model stayed behind. The primary action is now \"Open in Scene Studio\" and it brings the exact model you just made with it: Scene Studio opens with the GLB already imported, named after your prompt, ready to compose, edit, and export. Your work carries over instead of starting from a blank scene.",+ "summary": "The \"what's next\" card after a Forge or Parts Studio result used to send you to the studio empty-handed — the model stayed behind. The primary action is now \"Open in Scene Studio\" and it brings the exact model you just made with it: Scene Studio opens with the GLB already imported, named after your prompt, ready to compose, edit, and export. Your work carries over instead of starting from a blank scene.","tags": ["improvement","fix"@@ -4100,7 +4138,7 @@{"date": "2026-06-12","title": "Sketch-to-3D comes to the Forge",- "summary": "Forge gains a third way to make a model: draw it. The new \u201cFrom a sketch\u201d mode takes one drawing plus a short line saying what it depicts and generates real 3D geometry from it, powered by a self-hosted TripoSG sketch engine \u2014 the same research-grade model family behind Tripo. Sketch results are untextured geometry by design, so the existing Stylize and Retexture tools pick up right where it leaves off. The tab appears automatically once the sketch engine is live on the deployment.",+ "summary": "Forge gains a third way to make a model: draw it. The new “From a sketch” mode takes one drawing plus a short line saying what it depicts and generates real 3D geometry from it, powered by a self-hosted TripoSG sketch engine — the same research-grade model family behind Tripo. Sketch results are untextured geometry by design, so the existing Stylize and Retexture tools pick up right where it leaves off. The tab appears automatically once the sketch engine is live on the deployment.","tags": ["feature"],@@ -4108,8 +4146,8 @@},{"date": "2026-06-12",- "title": "Every \u201cwhat now?\u201d button now takes your new model with you",- "summary": "Finishing a model in Forge, Parts Studio, or Scan pops a card of next steps \u2014 and now every one of those buttons carries your work over instead of dropping you on an empty page. Embed editor opens with your fresh GLB previewed and the copy-paste snippet already pointing at it, Deploy onchain pre-loads it as the launchpad avatar, Drop it in a world spawns you wearing it, and a finished Scan deep-links your rigged avatar into Studio, Walk, and the embed editor. The embed editor and embeds also accept a direct GLB link now, not just saved avatar ids.",+ "title": "Every “what now?” button now takes your new model with you",+ "summary": "Finishing a model in Forge, Parts Studio, or Scan pops a card of next steps — and now every one of those buttons carries your work over instead of dropping you on an empty page. Embed editor opens with your fresh GLB previewed and the copy-paste snippet already pointing at it, Deploy onchain pre-loads it as the launchpad avatar, Drop it in a world spawns you wearing it, and a finished Scan deep-links your rigged avatar into Studio, Walk, and the embed editor. The embed editor and embeds also accept a direct GLB link now, not just saved avatar ids.","tags": ["improvement"],@@ -4118,7 +4156,7 @@{"date": "2026-06-12","title": "The app's deploy pill now takes you to the deployment agent",- "summary": "The on-chain button under the viewer used to flip to \u201cDeployed \u2713 Solana\u201d and open a block-explorer wallet page \u2014 a dead end. It now always reads \u201cDeploy on Solana\u201d and hands you to the on-chain deployment agent, a guided flow for putting your 3D asset on Solana, right inside the app.",+ "summary": "The on-chain button under the viewer used to flip to “Deployed ✓ Solana” and open a block-explorer wallet page — a dead end. It now always reads “Deploy on Solana” and hands you to the on-chain deployment agent, a guided flow for putting your 3D asset on Solana, right inside the app.","tags": ["improvement"],@@ -4126,8 +4164,8 @@},{"date": "2026-06-12",- "title": "Text to 3D is live \u2014 type a prompt, get a model",- "summary": "Forge's headline flow now works end to end in production: describe an object in a sentence, pick an engine, and download a textured GLB you can open in Scene Studio, embed on any site, wear in a world, or deploy on-chain. The same composer takes photos and sketches too, and the engine picker shows live health so you always start on an engine that's actually up. Text to 3D is now front and center across the site \u2014 on the homepage, in the Build menu, and on the sitemap.",+ "title": "Text to 3D is live — type a prompt, get a model",+ "summary": "Forge's headline flow now works end to end in production: describe an object in a sentence, pick an engine, and download a textured GLB you can open in Scene Studio, embed on any site, wear in a world, or deploy on-chain. The same composer takes photos and sketches too, and the engine picker shows live health so you always start on an engine that's actually up. Text to 3D is now front and center across the site — on the homepage, in the Build menu, and on the sitemap.","tags": ["feature"],@@ -4136,7 +4174,7 @@{"date": "2026-06-12","title": "Forge is now one click away from every feed",- "summary": "Text-to-3D was easy to miss unless you knew where to look. Now every browsing surface points you at it: the avatar gallery leads with \u201cCreate from a prompt\u201d, the marketplace's featured carousel has a \u201cForge your own from text\u201d link, the agent directory and launches feed both carry Forge shortcuts, and empty feeds suggest forging your first model instead of showing a dead end. The project README also gained a full Forge chapter \u2014 REST, MCP, and pay-per-call examples included.",+ "summary": "Text-to-3D was easy to miss unless you knew where to look. Now every browsing surface points you at it: the avatar gallery leads with “Create from a prompt”, the marketplace's featured carousel has a “Forge your own from text” link, the agent directory and launches feed both carry Forge shortcuts, and empty feeds suggest forging your first model instead of showing a dead end. The project README also gained a full Forge chapter — REST, MCP, and pay-per-call examples included.","tags": ["improvement"],@@ -4145,7 +4183,7 @@{"date": "2026-06-12","title": "The 3D Studio MCP now introduces itself correctly to paying agents",- "summary": "Agents discovering three.ws over x402 had a blind spot: the 3D Studio MCP server (text-to-3D, image-to-3D, rigging, retexture) answered unauthenticated calls with the main MCP server's payment metadata, and it was missing from the /.well-known/x402 service catalog entirely. Both are fixed \u2014 the Studio now advertises its own identity, pricing resource, and a text_to_3d example to every x402 facilitator and marketplace crawler, so wallet-holding agents can find and pay for prompt-to-3D directly.",+ "summary": "Agents discovering three.ws over x402 had a blind spot: the 3D Studio MCP server (text-to-3D, image-to-3D, rigging, retexture) answered unauthenticated calls with the main MCP server's payment metadata, and it was missing from the /.well-known/x402 service catalog entirely. Both are fixed — the Studio now advertises its own identity, pricing resource, and a text_to_3d example to every x402 facilitator and marketplace crawler, so wallet-holding agents can find and pay for prompt-to-3D directly.","tags": ["fix","improvement"@@ -4154,8 +4192,8 @@},{"date": "2026-06-12",- "title": "Forge gets a community showcase \u2014 and takes photos from anywhere",- "summary": "The /forge page now ends with \"Fresh from the Forge\": a live strip of the newest models other people generated. Hover a card and the actual model spins in place; open it in the full viewer with download, share, and stylize working; or hit Remix to copy its prompt into the composer and make your own version. Getting photos in is easier too \u2014 paste an image from the clipboard (\u2318V) anywhere on the page, or drag files onto the page and Forge switches to photo mode and places them for you.",+ "title": "Forge gets a community showcase — and takes photos from anywhere",+ "summary": "The /forge page now ends with \"Fresh from the Forge\": a live strip of the newest models other people generated. Hover a card and the actual model spins in place; open it in the full viewer with download, share, and stylize working; or hit Remix to copy its prompt into the composer and make your own version. Getting photos in is easier too — paste an image from the clipboard (⌘V) anywhere on the page, or drag files onto the page and Forge switches to photo mode and places them for you.","tags": ["feature"],@@ -4163,8 +4201,8 @@},{"date": "2026-06-13",- "title": "IRL \u2014 walk your avatar in the real world, place 3D objects on your floor",- "summary": "New page at /irl. Open it and your avatar appears with a joystick. Hit Camera and your phone's rear camera becomes the background \u2014 the avatar walks on your real floor. Switch on Add Object, pick a shape (Orb, Crate, Crystal, Ring, or Pillar), and tap anywhere on the floor to drop it into the scene. Objects spawn with a smooth scale animation. Drag to orbit the camera, WASD on desktop. Share your setup with one tap.",+ "title": "IRL — walk your avatar in the real world, place 3D objects on your floor",+ "summary": "New page at /irl. Open it and your avatar appears with a joystick. Hit Camera and your phone's rear camera becomes the background — the avatar walks on your real floor. Switch on Add Object, pick a shape (Orb, Crate, Crystal, Ring, or Pillar), and tap anywhere on the floor to drop it into the scene. Objects spawn with a smooth scale animation. Drag to orbit the camera, WASD on desktop. Share your setup with one tap.","tags": ["feature"],@@ -4172,8 +4210,8 @@},{"date": "2026-06-16",- "title": "IRL \u2014 permanent pins for signed-in users, compass heading, and manage placements from dashboard",- "summary": "Authenticated users now get permanent GPS pins (no 7-day expiry). Avatars face the correct compass direction when pinned \u2014 the heading is captured from the device compass and applied when foreign avatars spawn. New /dashboard/irl-placements page lets you view, edit captions, and remove all your placed avatars from any device without physically going back.",+ "title": "IRL — permanent pins for signed-in users, compass heading, and manage placements from dashboard",+ "summary": "Authenticated users now get permanent GPS pins (no 7-day expiry). Avatars face the correct compass direction when pinned — the heading is captured from the device compass and applied when foreign avatars spawn. New /dashboard/irl-placements page lets you view, edit captions, and remove all your placed avatars from any device without physically going back.","tags": ["improvement"],@@ -4190,8 +4228,8 @@},{"date": "2026-06-16",- "title": "Features page \u2014 interactive animation showcase with 30+ live demos",- "summary": "The /features page now has a live animation showcase you can interact with in the browser. Pick from 30+ animations grouped by type (Idle, Dance, Celebration, Athletic, Combat, Walk, Mood) \u2014 the 3D avatar switches instantly with no page reload. The Widget Studio card also got a live preview panel showing what the embed looks like on a real site, plus a one-click snippet copy button.",+ "title": "Features page — interactive animation showcase with 30+ live demos",+ "summary": "The /features page now has a live animation showcase you can interact with in the browser. Pick from 30+ animations grouped by type (Idle, Dance, Celebration, Athletic, Combat, Walk, Mood) — the 3D avatar switches instantly with no page reload. The Widget Studio card also got a live preview panel showing what the embed looks like on a real site, plus a one-click snippet copy button.","tags": ["improvement"],@@ -4199,7 +4237,7 @@},{"date": "2026-06-16",- "title": "Guided tour engine \u2014 spotlight coachmarks with server-backed persistence",+ "title": "Guided tour engine — spotlight coachmarks with server-backed persistence","summary": "Built a reusable in-app tour engine that any page can use with a simple declarative step list. Tours spotlight DOM elements with an animated overlay, show contextual tooltips with Back/Next/Skip controls, handle keyboard navigation (arrows + Escape), announce each step to screen readers, and remember completion in both localStorage and the server (so tours don't re-appear across devices). The dashboard now shows a 4-step orientation tour to new accounts pointing out the nav, creations, KPIs, and quick actions.","tags": ["feature"@@ -4208,8 +4246,8 @@},{"date": "2026-06-17",- "title": "My Cosmetics \u2014 owned-item wardrobe with cross-world equip persistence",- "summary": "A new 'My Fits' wardrobe panel in the /play HUD lists every cosmetic you own (free items + premium unlocks), grouped by slot. Click any item to equip it \u2014 the change is validated server-side, written to your account, reflected instantly on your avatar, and visible to other players in the room. Equipped looks persist across sessions and carry automatically into every world (/play and /walk). Purchasing a cosmetic from the shop now equips it durably too, not just as a temporary preview.",+ "title": "My Cosmetics — owned-item wardrobe with cross-world equip persistence",+ "summary": "A new 'My Fits' wardrobe panel in the /play HUD lists every cosmetic you own (free items + premium unlocks), grouped by slot. Click any item to equip it — the change is validated server-side, written to your account, reflected instantly on your avatar, and visible to other players in the room. Equipped looks persist across sessions and carry automatically into every world (/play and /walk). Purchasing a cosmetic from the shop now equips it durably too, not just as a temporary preview.","tags": ["feature"],diff --git a/docs/API_AUDIT.md b/docs/API_AUDIT.mdnew file mode 100644index 000000000..b6dbd0e95--- /dev/null+++ b/docs/API_AUDIT.md@@ -0,0 +1,153 @@+# API Audit — three.ws++_Date: 2026-06-18 · Scope: all 876 `.js` files under [`api/`](../api) (Vercel serverless functions) + the `_lib` helpers they import._++This audit was run subsystem-by-subsystem against the [CLAUDE.md](../CLAUDE.md) operating+rules and standard API hardening criteria: no mocks/fake data, real APIs only,+errors handled at boundaries, every path wired, auth + CSRF + rate-limit on the+right routes, no secret/internal leakage, and the **`$THREE`-only** coin rule.++The codebase is, overall, **mature and well-defended** — SIWE/SIWS nonce handling,+the x402 spec, on-chain payment verification, SSRF guards, cron-secret auth, and+webhook signature checks are all correct. Findings cluster into a handful of+**systemic patterns** rather than one-off bugs. Fixing the patterns at their+shared seams (the `wrap()` boundary, the `requireCsrf` convention) clears most of+the surface at once.++## Severity summary++| Severity | Count | Theme |+|---|---|---|+| CRITICAL | 1 | Fabricated sample avatars shipped into the live public discovery feed |+| HIGH | ~30 | (a) raw upstream `err.message`/body leaked in 5xx — **leaks the Helius API key**; (b) missing CSRF on cookie-session mutations; (c) payment-correctness races; (d) missing rate limits; (e) two dead/always-failing oracle routes; (f) SSRF gaps |+| MEDIUM | ~25 | retired model IDs, public PII leak, idempotency gaps, validation gaps |+| LOW | ~20 | response-shape inconsistencies, header omissions, hygiene |++**Coin policy: CLEAN.** No reference to any coin/token/mint other than `$THREE`+anywhere in the API. The only hardcoded mints are USDC and native/wrapped SOL+(payment-rail plumbing, explicitly allowed) and the canonical `$THREE` CA.++---++## Systemic patterns (fix these first — highest leverage)++### P1 — Raw 5xx error leakage (security: leaks `HELIUS_API_KEY`)++`wrap()` ([api/_lib/http.js:284](../api/_lib/http.js#L284)) returns `err.message`+verbatim for any uncaught `status >= 500`, and dozens of catch blocks call+`error(res, 500, code, e.message)` directly. Solana/web3.js network errors embed+the full RPC URL — `https://mainnet.helius-rpc.com/?api-key=<HELIUS_API_KEY>` —+so a single upstream RPC failure spills the platform's Helius key to the client.+Other leaks expose Alchemy/Bonfida/GraphQL/SDK internals.++**Fix:** route every `status >= 500` through `serverError()` (which already+sanitizes to a correlation ref + logs detail server-side). One change in `wrap()`+covers all uncaught 5xx; the explicit-`error()` 5xx call sites that leak a keyed+URL are fixed individually.++Worst offenders (keyed-URL leak): [api/pump/[action].js:273,4651,4697](../api/pump/[action].js),+[api/coin/[mint]/cohorts.js:113](../api/coin/[mint]/cohorts.js#L113),+[api/tx/explain.js:48,83](../api/tx/explain.js). Plus ~20 lower-sensitivity+leaks across agents/, bazaar/, skills/, marketplace/, scene/, nft/, inference/.++### P2 — Missing CSRF on cookie-session mutations++The platform convention (e.g. [api/api-keys/[id].js](../api/api-keys/[id].js),+[api/x/post.js:21](../api/x/post.js#L21)) is: any state-changing request authed by+the `__Host-` session cookie must pass `requireCsrf`. Bearer-token callers are+auto-exempt. A cluster of mutating routes omit it:++- [api/permissions/[action].js](../api/permissions/[action].js) grant/revoke (on-chain delegation)+- [api/developer/webhooks.js](../api/developer/webhooks.js) create, [api/developer/webhooks/[id].js](../api/developer/webhooks/[id].js) PATCH/DELETE+- [api/dashboard/prefs.js](../api/dashboard/prefs.js) POST/PATCH+- [api/billing/payout-wallets/[id].js](../api/billing/payout-wallets/[id].js) DELETE+- [api/marketplace/set-skill-price.js](../api/marketplace/set-skill-price.js), [api/marketplace/asset-price.js](../api/marketplace/asset-price.js), [api/marketplace/purchase-as-agent.js](../api/marketplace/purchase-as-agent.js)+- [api/notifications/[id]/read.js](../api/notifications/[id]/read.js), [api/notifications/read-all.js](../api/notifications/read-all.js)+- [api/developer/mcp-test.js](../api/developer/mcp-test.js)+- [api/x/schedule.js](../api/x/schedule.js), [api/x/status.js](../api/x/status.js), [api/x/triggers.js](../api/x/triggers.js), [api/x/reviews.js](../api/x/reviews.js)++**Fix:** add the one-line `requireCsrf` guard (session-authed branches only).++### P3 — Missing rate limits where a dedicated limiter already exists++- [api/auth/wallets/[action].js](../api/auth/wallets/[action].js) — `limits.walletLink` is defined but never called on nonce/link/takeover.+- [api/auth/github/[action].js](../api/auth/github/[action].js) — no limiter on connect/callback (the X flow has one).+- [api/oauth/[action].js](../api/oauth/[action].js) — `authorize` unthrottled.+- Money-moving admin actions ([api/admin/withdrawals/[id].js](../api/admin/withdrawals/[id].js), [api/admin/bulk-launch.js](../api/admin/bulk-launch.js), [api/admin/register-agents.js](../api/admin/register-agents.js)).++---++## CRITICAL++| # | File | Issue | Fix |+|---|---|---|---|+| C1 | [api/_lib/demo-avatars.js](../api/_lib/demo-avatars.js) → consumed by [explore.js](../api/explore.js), [explore-item.js](../api/explore-item.js), [discover-detail.js](../api/discover-detail.js) | A hardcoded fabricated `DEMO_AVATARS` array (invented authors/dates, generic glTF samples dressed as real community avatars) is injected into the **live public** discovery feed, counted into public totals, and served as detail/OG pages. Direct violation of the no-fake-data rule. | Stop injecting the fixture into production responses; serve only real DB rows. Keep it strictly for empty-state local dev if at all. |++---++## HIGH (selected — full list tracked in fixes below)++| # | File:line | Issue | Fix |+|---|---|---|---|+| H1 | [api/x402-pay.js:715](../api/x402-pay.js#L715) + [agent-trade-guards.js:409](../api/_lib/agent-trade-guards.js#L409) | Daily-cap race on agent pay path: `SELECT SUM` then settle, spend recorded fire-and-forget after settle → concurrent payments overspend the ceiling. | Reserve-first in the ledger before signing (mirror `x402-spending-cap.js`). |+| H2 | [api/subscriptions/index.js:99](../api/subscriptions/index.js#L99) | Subscription flipped to `active` with a full period **before** payment confirms; charge only inserts a pending intent. Free access. | Grant the active period only after the tx confirms. |+| H3 | [api/x402/crypto-intel.js:166](../api/x402/crypto-intel.js#L166), [api/x402/three-intel.js:156](../api/x402/three-intel.js#L156) | On upstream failure a **paying** caller gets a 200 with fabricated `signal:'neutral'` and a false "estimated from trend memory" provenance; settle proceeds → charged for invented data. | Throw `err.status=502` on live-data failure so settle never runs; delete the false rationale. |+| H4 | [api/_lib/royalty.js:84](../api/_lib/royalty.js#L84) | `settleRoyalties` redeems on-chain then UPDATEs unconditionally → concurrent runs double-pay. | Claim rows atomically (`UPDATE…SET status='settling' WHERE status='pending' RETURNING`) before redeeming. |+| H5 | [api/agents/by-address/[addr].js:78](../api/agents/by-address/[addr].js#L78) | `MAX_ENUM=50` defined but never applied — enumerates full balance into thousands of RPC calls. | Slice to `MAX_ENUM`, set `truncated`. |+| H6 | [api/oracle/social.js:62](../api/oracle/social.js#L62) | `limits.moderate` is `undefined` → `rateLimited` fires on every request; the ingest endpoint is permanently 429 (dead). | Use a real limiter (`limits.publicIp`). |+| H7 | [api/oracle/follow.js:40](../api/oracle/follow.js#L40) | Per-branch `method(...,['GET'])` 405s every POST/DELETE → subscribe/unsubscribe are dead routes; `readJson(req,res)` disables the size cap. | Branch on `req.method`; call `method` once with all verbs; fix `readJson`. |+| H8 | [api/_lib/vision.js:108](../api/_lib/vision.js#L108) | `describeImage` forwards caller `imageUrl` to the model server with no SSRF check; any non-forge consumer can reach internal targets. | Validate scheme/host in `imagePart()`. |+| H9 | [api/users/[username].js:272](../api/users/[username].js#L272) | Public endpoint returns every user's `referral_code` → referral-code harvesting. | Drop `referral_code` (and re-check `wallet_address`) from the public payload. |+| H10 | [api/nft/mint-scene.js:14](../api/nft/mint-scene.js#L14) | Uses the retired nft.storage classic `/upload` API (dead upstream → mints fail); unbounded base64 blob into memory. | Migrate to the storage provider used in `avatars/[id]/[action].js`; cap bytes. |+| H11 | [api/agents/payments/[action].js:498](../api/agents/payments/[action].js#L498) | Fund-adjacent distribute/withdraw prep+confirm have no rate limit and resolve agent by mint with no ownership gate. | Add `limits.authIp`; assert `agent.user_id === auth.userId`. |+| H12 | [api/tx/explain.js:27](../api/tx/explain.js#L27), [api/tx/solana/[action].js:54](../api/tx/solana/[action].js#L54) | No base58/hex validation on `sig`/mint before forwarding to keyed upstreams. | Validate before fetch. |++## MEDIUM (selected)++| # | File | Issue | Fix |+|---|---|---|---|+| M1 | [api/agents/talk.js:26](../api/agents/talk.js#L26) | `ALLOWED_MODELS` includes retired `claude-3-5-haiku-20241022` (404s at provider). | Replace with `claude-haiku-4-5`. |+| M2 | [api/brain/chat.js:102](../api/brain/chat.js#L102) | Haiku 4.5 OpenRouter mirror points at retired `anthropic/claude-3.5-haiku`. | Update to current Haiku 4.5 id. |+| M3 | [api/_lib/x402-spending-price.js:86](../api/_lib/x402-spending-price.js#L86) | Cap under-counted via attacker-labeled `USDC`/inflated `decimals` in the 402 challenge. | Derive decimals/classification from the on-chain mint / trusted registry. |+| M4 | [api/payments/solana/[action].js:118](../api/payments/solana/[action].js#L118) | `confirmPayment` UPDATE not conditional on `status='pending'`; no cross-intent tx replay guard (EVM path has one). | Conditional UPDATE + unique `(chain_type, tx_hash)`. |+| M5 | [api/agenc/[action].js:422](../api/agenc/[action].js#L422) | Top-level catch returns raw `err.message` in 500. | Route through `serverError`. |+| M6 | [api/avatar/optimize.js:160](../api/avatar/optimize.js#L160) | Expensive transcode, no auth/rate-limit; redirect not re-validated per hop. | Add limiter; `redirect:'manual'` + re-validate. |+| M7 | [api/auth/github/[action].js:45](../api/auth/github/[action].js#L45) | OAuth `state` not bound to a per-browser cookie → account-injection within the 10-min window. | Bind state to a `__Host-` cookie. |+| M8 | [api/billing/withdrawals/index.js:14](../api/billing/withdrawals/index.js#L14), [api/billing/withdrawals/[id].js:18](../api/billing/withdrawals/[id].js#L18) | `currency_mint` free-text, unvalidated; `id` not UUID-validated → 500 on bad input. | Allow-list mints; validate UUID → 400. |++## LOW (themes)++- Response-shape inconsistencies: [widgets/[id]/duplicate.js](../api/widgets/[id]/duplicate.js) skips `decorate()`; [agent-economy/status.js](../api/agent-economy/status.js) bypasses `json()` (drops security headers).+- 429s via raw `error()` instead of `rateLimited()` (drops `RateLimit-*` headers): [coin/[mint]/cohorts.js:91](../api/coin/[mint]/cohorts.js#L91).+- [feature-og.js:70](../api/feature-og.js#L70) `escapeXml` omits single-quote.+- [admin/news/[action].js:28](../api/admin/news/[action].js#L28) allows `svg` upload (stored-XSS).+- [admin/user/[id].js:84](../api/admin/user/[id].js#L84) privilege changes not audit-logged.+- [healthz.js:191](../api/healthz.js#L191) leaks git SHA / config booleans.+- [_lib/pii.js:11](../api/_lib/pii.js#L11) redaction misses JWT/`ghp_`/`xox`/AWS key shapes.+- Headless render loads three.js from `unpkg.com` at render time ([_lib/render-clip.js:72](../api/_lib/render-clip.js#L72)).++---++## Verified-clean (no action)++- **Coin policy** — `$THREE` only; USDC/SOL are payment plumbing.+- **No mocks/TODOs/stubs/fake-loading** outside C1 — all `setTimeout` are real async (backoff/SSE keepalive/confirmation polling).+- **SIWE/SIWS, OAuth/PKCE, x402 spec, on-chain payment verification, withdrawals (advisory-lock + conditional insert), SSRF guards, cron-secret auth, webhook signatures, admin `requireAdmin` gating, parameterized SQL** — all correct.++---++## Fix plan (execution order)++1. **P1 boundary** — sanitize `wrap()` 5xx + the keyed-URL leak sites. _(security)_+2. **C1** — remove `DEMO_AVATARS` from production responses. _(rule violation)_+3. **H6/H7** — repair the two dead oracle routes. _(broken functionality)_+4. **M1/M2** — retired model IDs. _(broken functionality)_+5. **H9** — stop leaking referral codes. _(PII)_+6. **P2** — CSRF cluster. _(security)_+7. **P3 + H11** — rate-limit gaps. _(abuse)_+8. **H3/H4/H2/H1/M4** — payment correctness. _(money)_+9. **H5/H8/H12/M6** — enumeration cap, SSRF, input validation.+10. Remaining MEDIUM/LOW hygiene.++Each fix is verified against `npm test` and the existing helper conventions; no+behavior is mocked, stubbed, or left half-wired.diff --git a/docs/audit/2026-06-18-codebase-audit.md b/docs/audit/2026-06-18-codebase-audit.mdnew file mode 100644index 000000000..7241e948f--- /dev/null+++ b/docs/audit/2026-06-18-codebase-audit.md@@ -0,0 +1,115 @@+# three.ws Codebase Audit — 2026-06-18++Full-repo audit of the three.ws monorepo: backend (`api/`, `workers/`), frontend+(`src/`, `pages/`, `public/`), SDKs (`sdk/`, `*-sdk/`, `packages/*`), MCP servers,+and on-chain contracts (`contracts/`). The audit paired the repo's own mechanical+tooling (eslint, tsc, knip, `audit:*` scripts, vitest) with targeted manual+review against the [CLAUDE.md](../../CLAUDE.md) operating rules.++## Headline++**The codebase is in strong, production-ready shape.** Every one of the repo's+own structural audits passes clean:++| Check | Result |+|---|---|+| `audit:handlers` (empty API handlers) | ✓ 872 handlers, all export a body |+| `audit:pages` (route ↔ manifest parity) | ✓ 103 routes, all documented |+| `audit:mcp` (manifest consistency) | ✓ 14 manifests consistent |+| `audit:deploy` (symlinks / peers / undeclared imports) | ✓ clean |+| `typecheck` (`tsc -p jsconfig.json`) | ✓ 0 errors |++No mocks, fake-data arrays, `setTimeout` fake-loading, `throw new+Error("not implemented")`, or non-`$THREE` coin references were found in shipped+source. The findings below are therefore **hardening and consistency** work, not+"the platform is broken" work — with one genuine security issue at the top.++## Findings (verified)++Severity reflects real, reproduced issues. Several findings surfaced by the+exploration pass were **investigated and dismissed** — see+[Dismissed findings](#dismissed-findings-false-positives) so they don't get+re-reported.++### HIGH++**H1 — Clickjacking: `frame-ancestors *` on the global route default.**+`vercel.json` route `"/(.*)"` (the catch-all applied to every response via+`continue: true`) sets `frame-ancestors *` and lacks `x-frame-options`. That+makes every non-auth page — `/`, `/marketplace`, `/agents`, `/forge`,+`/launches`, `/chat` — embeddable in an `<iframe>` on any origin, the classic+clickjacking precondition. The auth-sensitive routes+(`/login|register|wallet|dashboard|…`) are *correctly* locked to+`frame-ancestors 'self'` + `x-frame-options: SAMEORIGIN`, and the embed/widget+routes (`/embed`, `/widget`, `/walk`, …) *intentionally* keep `*`. The fix is to+flip the global default to `'self'` (+ `x-frame-options: SAMEORIGIN`); the+later, more-specific embed routes still override back to `*` because Vercel+merges headers with last-match-wins. **Status: fixed in this pass.**++### MEDIUM++**M1 — UUID regex duplicated across ~73 API files.** The literal+`const UUID_RE = /^[0-9a-f]{8}-…$/i` is redeclared in 73 `api/**` handlers even+though `api/_lib/validate.js` already exports `isUuid()`. Pure DRY debt: a format+change today means editing 73 files. **Status: consolidated in this pass** —+all sites now import `isUuid` from `_lib/validate.js`.++**M2 — Pagination clamp logic duplicated across ~20 endpoints.** The pattern+`Math.min(Math.max(parseInt(url.searchParams.get('limit') || 'N', 10), 1), MAX)`+(and the `offset` twin) is copy-pasted across ~20 handlers with no shared helper.+**Status: shared helper `api/_lib/http-params.js` added and the duplicated sites+migrated in this pass.**++**M3 — `IdentityRegistry.sol` uses `.transfer()` for ETH payouts.**+`withdraw()` (L246) and `spend()` (L274) send ETH with `recipient.transfer(...)`,+which forwards only 2300 gas and reverts when the recipient is a smart-contract+wallet (Gnosis Safe, AA wallet) with a non-trivial `receive()`. The sibling+`ReputationRegistry.sol` already uses the correct `(.call{value:}(""))` ++success-check pattern. Both functions already carry `nonReentrant`, so the+checked-call form is safe. **Status: fixed in this pass** (forge tests could not+be run locally — `forge` is not installed in this environment; the change+mirrors the audited pattern already shipped in `ReputationRegistry`).++### LOW++**L1 — knip: 9 duplicate named/default exports.** e.g. `api/_lib/embeddings.js`+(`OPENAI_EMBED_TAG`), `src/shared/log.js` (`log`/`default`),+`src/agent-protocol.js` (`protocol`/`default`). Harmless but noisy; collapse to a+single export form where trivial.++**L2 — eslint warnings: console + empty-block + unused-var noise in `workers/`.**+~5083 warnings (0 blocking), concentrated in `workers/agent-sniper/**` and+`workers/oracle/**` (deliberate operational logging) and a handful of+`catch {}` empty blocks. Not shipped to the browser; track but don't churn.++**L3 — Unused exports flagged by knip** across `packages/*` MCP libs (e.g.+`tts-nvidia.js` helpers, `three-token-mcp` config). Several are public-API+surface kept intentionally; prune only the genuinely-dead ones.++## Dismissed findings (false positives)++Recorded so they aren't re-raised:++- **"SDK `dist/` / `.d.ts` missing → packages unpublishable" (claimed CRITICAL).**+ False. `agent-payments-sdk` (`tsup`, `dts: true`), `agent-protocol-sdk` (`tsc`),+ and `agent-ui-sdk` (`build.mjs`) all build their declarations in+ `prepublishOnly`, and `dist/` exists locally — it is simply `.gitignore`d. The+ npm tarball is regenerated at publish time; nothing is broken.+- **"`frame-ancestors *` on embed/widget routes is a vuln."** Intentional — those+ surfaces exist to be embedded. Only the *global default* (H1) was wrong.+- **"Hardcoded USDC mint / RPC URLs in SDKs."** These are the canonical Base/Solana+ USDC mints and public RPC defaults, overridable by env. Not a coin-policy+ violation (USDC is settlement plumbing, not a promoted coin) and not a bug.+- **"`MESHY_API_KEY=msy_your_key_here` is a leaked secret."** It is a labelled+ placeholder in `.env.example`, not a real key.++## Methodology++- Mechanical: `npm run lint`, `npm run typecheck`, `npx knip`,+ `npm run audit:handlers|audit:pages|audit:mcp|audit:deploy`, `npm run test:core`.+- Manual: four parallel read-only surface sweeps (api, frontend, sdk/mcp,+ contracts/config) against the CLAUDE.md hard rules, with every high-severity+ claim re-verified by hand before inclusion here.++See [remediation.md](./remediation.md) for what was changed in this pass and what+is deferred.diff --git a/docs/audit/PLATFORM-AUDIT-2026-06-18.md b/docs/audit/PLATFORM-AUDIT-2026-06-18.mdnew file mode 100644index 000000000..5629f01fe--- /dev/null+++ b/docs/audit/PLATFORM-AUDIT-2026-06-18.md@@ -0,0 +1,117 @@+# three.ws — Platform Audit (2026-06-18)++A full-surface audit of the three.ws monorepo: build/test/lint health, API, frontend,+SDKs, MCP servers, and documentation. Findings are split into **verified** (reproduced+locally by the auditor) and **reported** (surfaced by surface-audit passes, listed for+follow-up). Each finding carries a severity:++- **BROKEN** — does not work / fails a check / ships something incorrect.+- **RISK** — works today but is fragile, leaks information, or violates a project rule.+- **IMPROVE** — quality/UX/consistency opportunity.++## How this audit was run++| Check | Result |+|---|---|+| `scripts/audit-page-index.mjs` | ✅ 103 routes, all documented |+| `scripts/audit-empty-handlers.mjs` | ✅ 872 API handlers export a body |+| `scripts/audit-mcp-manifests.mjs` | ✅ 14 MCP manifests consistent |+| `tsc -p jsconfig.json` (typecheck) | ✅ clean |+| `eslint .` | ❌ **1 error**, 5083 warnings |+| `vitest run` (full) | ❌ failures — most are timeout/contention artifacts; **2 are real & deterministic** |++### Test-suite reliability caveat (RISK)++The full `vitest run` reports many failures (`x402-discovery-parity`, `evm-eoa-grinder`,+`pump`, `launch-mark-enforcement`), but **every one of those passes when run in isolation**.+They fail only under the full parallel run because individual tests hit real RPC/network or+heavy crypto (scrypt) and exceed their timeouts under CPU/IO contention. Single-test+durations of 60–350s confirm this. The deterministic, reproducible-in-isolation failures+are only:++1. `tests/branding.test.js` (3 cases) — real brand-name leaks.+2. `tests/src/usdz-pipeline.test.js` (1 case) — real meshopt-decoder bug.++**Recommendation:** split the suite into a fast deterministic lane (`vitest run`) and a+slow network lane gated behind an env flag, so CI signal is trustworthy. Tracked in the+roadmap below.++---++## P0 — Verified, deterministic, fix now++### 1. ESLint parse error (BROKEN)+`scripts/wf-verify-tasks.mjs:51` — `'return' outside of function`. This is a persisted+one-off Workflow script (top-level `return` is valid in the Workflow runtime but not as a+standalone ESM module). It is referenced nowhere and violates the repo-hygiene rule against+throwaway scripts. **Fix:** delete it — clears the sole eslint *error*.++### 2. USDZ / half-body export breaks on meshopt-compressed GLBs (BROKEN)+`src/usdz-pipeline.js:40-46` — `_loadGlbBlob()` constructs a bare `GLTFLoader` with no+meshopt decoder. Any `EXT_meshopt_compression` GLB throws *"setMeshoptDecoder must be+called before loading compressed files"*. This breaks both `glbBlobToUsdzBlob` and+`glbBlobToHalfBodyBlob`, the latter used by the avatar export path in+`src/account.js:333`. The repo already memoizes `getMeshoptDecoder()` in+`src/viewer/internal.js` (used by `footer-bot.js`, `avatar-rig.js`, `avatar-thumb.js`).+**Fix:** register the meshopt (and DRACO/KTX2 where available) decoder before `parse()`.++### 3. Brand-name leaks in user-facing files (RISK — rule + test enforced)+`tests/branding.test.js` fails on three brands. Verified locations:+- `pages/ibm/x402-demo.html:620` — `body="https://three.ws/avatars/readyplayerme.glb"` (real user-facing leak; rename the asset path).+- `docs/3d-asset-pipeline.md:92,190` — "Avaturn"/"Ready Player Me" in prose.+- `docs/ALL.md` — **generated** by `scripts/combine-docs.mjs`; its hits mirror the source docs (`character-studio` fork comparison, 3d-asset-pipeline). Fixing/allowlisting the sources + regenerating clears it.++**Fix:** rebrand prose where it's marketing copy; for the legitimate Character-Studio-fork+technical comparison (a documented MIT fork per STRUCTURE.md) add justified entries to+`tests/branding-allowlist.json`; rename the RPM demo asset; regenerate `docs/ALL.md`.++### 4. `llms.txt` is empty (BROKEN)+Root `llms.txt` is 0 bytes. It is the standard discovery file for LLM consumers and should+describe the platform, key surfaces, and canonical links. **Fix:** generate real content.++---++## P1 — Verified, fix this pass++### 5. README pins stale CDN version (RISK)+`README.md:674,689,712,750,1197,2565` reference `/agent-3d/1.5.1/agent-3d.js` while+`package.json` is `1.5.2`. Copy-paste embed snippets ship an outdated bundle. **Fix:** bump+to `1.5.2`.++### 6. Modal accessibility gaps (RISK — a11y rule)+Icon-only modal close buttons lack `aria-label`, and several modal containers lack+`role="dialog"`/`aria-modal`. Verified in `pages/compose.html` (×, lines ~342/350; modals+#am/#hp ~189/199), `pages/go.html` (✕ ~992/1041/1078), `pages/marketplace.html`+(detail-view close buttons). **Fix:** add labels + dialog semantics.++### 7. API boundary hardening (RISK)+- `api/wallet/balances.js` error path echoes missing env-var names to the client — config disclosure. Return a generic message; log details server-side.+- `api/agent-economy/transact.js` accepts a recipient address from env without validation — validate before use.++### 8. SDK x402 dependency drift (RISK)+`mcp-server/package.json`, `packages/ibm-x402-mcp/package.json`, `mcp-bridge/package.json`+pin `@x402/extensions ^2.12.0` while siblings (`@x402/core|evm|svm|mcp`) are `^2.13.0`.+Align to a single minor to avoid resolver split-brain.++---++## P2 — Reported (follow-up roadmap)++- **agent-payments-sdk** ships no `.d.ts` (tsup DTS step); TS consumers get no types. (RISK)+- **EVM AgentPayments addresses** are zero placeholders across 6 chains in `agent-payments-sdk/src/evm/addresses.ts` — documented as pre-deployment, but exported in prod. (RISK)+- **PumpTradeClient** (`agent-payments-sdk/src/solana/PumpTradeClient.ts:539`) slices account buffers without length checks. (RISK)+- **`docs/*` RPC parse** helpers (`three-token-mcp`, forge/rig/mesh tools) do `res.json().catch(()=>({}))`, masking upstream errors. (IMPROVE)+- **README** references a missing demo `public/demos/gemini-jump.html`. (BROKEN-doc)+- **character-studio fork**: 192 pre-existing eslint findings incl. 16 `no-undef` runtime risks — tracked in `ISSUES.md`. Vendored fork; burn down path-by-path. (RISK)+- **`href="#"` anchors decorated by JS** across create-* pages — pre-populate hrefs so they work pre-hydration and right-click/open-in-new-tab. (IMPROVE)+- **Stray `console.warn`** in `src/create-review.js:700` production path. (IMPROVE)+- **Repo root clutter**: large media (`club.mp3`, `im-in-love-wit-a-stripper-fast.mp3`), `inspect.mjs` at root — move/ignore per hygiene rules. (IMPROVE)+- **Test suite reliability** — split fast/slow lanes (see caveat above). (RISK)++---++## What this audit changed in the same session++See `docs/audit/REMEDIATION-2026-06-18.md` for the running log of fixes applied.+</content>+</invoke>diff --git a/docs/audits/FINDINGS.md b/docs/audits/FINDINGS.mdnew file mode 100644index 000000000..700a61f8c--- /dev/null+++ b/docs/audits/FINDINGS.md@@ -0,0 +1,91 @@+# Master findings — three.ws page audit++Consolidated, severity-ranked list across all seven group docs+([01](01-main.md)–[07](07-learn-blog-legal.md)). Auditors ran read-only; fixes+landed afterward. **Status** reflects the live worktree, which had a concurrent+multi-agent fix sweep running during this audit — items marked *fixed+(concurrent)* were corrected by another agent on `main` while this audit was in+flight and were verified gone before this doc was written.++Audited: ~115 interactive routes + docs/blog/legal/machine surfaces.+**Coin rule: clean platform-wide** — the only Solana mint hardcoded anywhere is+`$THREE` (`FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump`). Zero foreign-token+references in code, copy, samples, or docs. No true P0s.++## Severity tally++| Sev | Count | Notes |+|---|---|---|+| P0 | 0 | none found |+| P1 | ~70 | incl. one stored-XSS, three hard-rule violations (fixed), feed-failure UX cluster |+| P2 | ~50 | a11y on data tables, missing focus states, copy, mobile |+| P3 | ~40 | cross-link opportunities, adjacent features |++---++## Tier 1 — hard-rule violations & security (all resolved)++| # | Issue | File | Status |+|---|---|---|---|+| 1 | **Stored XSS** — character name/description/symbol/author/image_url injected into `innerHTML` unescaped | `src/characters.js:30-82` | **Fixed (this audit)** — added `escHtml`/`safeUrl`, escaped every user field, `encodeURIComponent` on id href |+| 2 | **Fallback sample array on `/`** — `FALLBACK_AGENTS` fabricated named agents ("Ansem — Trader persona", etc.) rendered when `/api/explore` is thin/down | `pages/home.html:5562` | **Fixed (this audit)** — removed array; showcase degrades to its real CTA cards (Browse all / Make your own) |+| 3 | **Broken skeleton rendered as literal text** — `${Array.from(...)}` sat in static HTML, so users saw the raw template string; fetch had no try/catch → infinite spin on network throw | `pages/marketplace-analytics.html:137,143`, `src/marketplace-analytics.js:110` | **Fixed (this audit)** — static skeleton rows; fetch + top-level `.catch` now route to the error state |+| 4 | **Fake progress stages** — `setInterval` cycled "Generating queries…/Searching…/Computing verdict…" unconnected to real work | `src/fact-checker-app.js:257-285` | **Fixed (concurrent)** — replaced with one honest indeterminate status; verified |+| 5 | **Fabricated bazaar listings** — on x402-bazaar failure, `discoverServices()` invented competitor services rendered as a live bazaar | `api/demo-economy.js:81-107` | **Fixed (concurrent)** — degrades to `bazaarAvailable:false` + the one real briefing service; verified |++## Tier 2 — dead links (resolved)++| # | Issue | File | Status |+|---|---|---|---|+| 6 | `/ibm/galaxy` (no such route) on the IBM feature CTA + footer | `pages/features.html:1058,1266` | **Fixed (this audit)** → `/galaxy` (routed in vercel.json:861) |+| 7 | `/ibm/galaxy` badge/degradation links | `pages/constellation.html`, `pages/agent-economy.html` | **Fixed (concurrent)** → `/galaxy` |+| 8 | `/ibm/trust-layer`, `/docs/ibm` dead links | `pages/agent-exchange.html`, `pages/avatar-wallet-chat.html`, `pages/agent-economy.html` | **Fixed (concurrent)** |+| 9 | Nav pointed at `/pages/*.html` (404 in prod — prod serves clean routes) | `pages/shopper.html:411-416` | **Fixed (concurrent)** → clean routes |++## Tier 3 — open follow-ups (not yet fixed)++These are real, lower-severity, and several touch files under active concurrent+edit — left open and tracked rather than risk clobbering in-flight work.++- **[P1] Feed-failure UX cluster** — several live feeds keep stale data or spin+ forever instead of surfacing a recoverable error/retry: `/oracle` graph,+ `/smart-money`, `/pump-dashboard` channel feed, `/pumpfun` SSE,+ `/pump-visualizer` SSE. `/pump-live` reconnects correctly — copy its pattern.+ (Several of these files were under concurrent edit during the audit.)+- **[P1] `/play/agent-wallet` dead in prod** — `BRIDGE_URL` is empty for any+ non-localhost host, so the headline "your avatar pays" flow is unreachable for+ real visitors. Needs a deployed bridge URL or an honest "dev-only" state.+- **[P1] `/avatar-artifact` unusable on mobile** — zero media queries,+ full-screen canvas, mouse-only. Add touch controls + a mobile layout.+- **[P1] `/create-agent` permanent dead page on module parse failure** — the+ `#page-loading` veil never clears if the module throws at parse. Add a+ load-failure fallback that clears the veil and shows a retry.+- **[P1] `/create/selfie` silent `catch {}`** — avatar fetch + name/visibility+ saves swallow errors (stuck viewer / lost edits). Surface recoverable errors.+- **[P2] Blog footer regression** — ~22 of 28 posts load `footer.css` but never+ render the footer element. Good candidate for a single scripted pass over+ `blog/*.html`.+- **[P2] Data-table a11y** — `/oracle`, `/activity`, `/leaderboard`,+ `/trending`, `/smart-money` use `<div>` grids / label-less rows missing+ `scope`/`aria-label`/semantic roles. Best in class: `/radar`, `/trades`,+ `/strategy-lab`.+- **[P2] `/lookup` off-brand** — hardcoded light theme, no nav/footer, dead-ends+ to external explorers with no on-platform agent-profile link.+- **[P2] `/collection`** — one remaining unescaped field (`collection.js`).+- **[P3] Island pages** — `/demo`, `/live`, `/avatar-wallet-chat`, vanity+ grinders lack cross-links to `/agents` / `/launches` / agent profiles.+- **[P3] Marketing copy accuracy** — `features/deploy.html` brands the schema+ "ERC-8004" while it's Solana/Metaplex Core; `studio.html` FAQ points at an+ unrouted `/agent-embed`; `ar.html` `/docs/ar` soft-404s in the docs SPA.++## Rejected false positives (recorded so they aren't re-raised)++- USDC / SOL / BTC as x402 settlement rails are **not** coin-rule violations —+ they're payment plumbing, not promoted coins.+- `/login`, `/register` auth is fully wired (`src/privy-login.js` exists and is+ served); the "missing module" P0 was wrong.+- Home links `/forge`, `/radar`, `/pose`, `/marketplace` all resolve.+- `/embed.html`, `/community`, `/legal/privacy`, `/legal/tos` all resolve.+- `/studio`, `/widgets` demo fixtures are real (`/api/widgets/...`), not mocks.+- Root `llms.txt` (0 bytes) is **not** served — `/llms.txt` serves the generated+ 67 KB `public/llms.txt`. The empty root file is stale-but-harmless (P3 delete).diff --git a/docs/internal/AUDIT-2026-06-18.md b/docs/internal/AUDIT-2026-06-18.mdindex 0b4030686..f0d689059 100644--- a/docs/internal/AUDIT-2026-06-18.md+++ b/docs/internal/AUDIT-2026-06-18.md@@ -19,7 +19,7 @@ flagged sites:| Page routes documented | `npm run audit:pages` | ✅ 103 routes, all documented (3 legacy pages lack `added` date — cosmetic) || Forbidden patterns (mocks, stubs, fake data, `TODO`, `not implemented`, fake loaders, sample arrays) in shipped source | `grep` sweep of `src api workers sdk solana-agent-sdk agent-payments-sdk` | ✅ clean — every hit was legitimate (animation sampling, input placeholders, instancing dummies, real RPC error strings) || Repo-wide lint | `npm run lint` (`eslint .`) | ⚠️ does not complete — see Finding 2 |-| character-studio lint | `eslint character-studio` | ⚠️ 6 real runtime bugs (now fixed) + cosmetic debt — see Finding 1 |+| character-studio lint | `eslint character-studio` | ⚠️ 12 real runtime bugs (now fixed) + cosmetic debt — see Finding 1 |`npm test` (vitest + playwright) was **not** run wholesale in this pass — it is aheavy browser-matrix suite. The source-level changes here are confined to the@@ -32,33 +32,45 @@ ReferenceErrors (see Finding 1).**The platform is in excellent shape.** First-party source is clean: no mocks,no fake data, no stubs, no `TODO`/`not implemented` markers, no fake loaders.Type-checking is green and all 872 API handlers and 103 page routes pass their-structural audits. The only substantive code defects found are six latent+structural audits. The only substantive code defects found are twelve latent`ReferenceError`s inside the vendored `character-studio` fork (Finding 1), allfixed in this pass. The remaining items are lint hygiene and tooling DX.----## Finding 1 — character-studio: 6 latent ReferenceErrors (FIXED)+## Finding 1 — character-studio: 12 latent ReferenceErrors (FIXED)`character-studio/` is a vendored fork of[M3-org/CharacterStudio](https://github.com/M3-org/CharacterStudio) (the avatar-builder behind `/creator`). It carried six `no-undef` references — each a bare-identifier that does not exist in scope, so the code path throws `ReferenceError`-the moment it runs. These are user-reachable (NFT lock checks, wallet collection-ownership, VRM root-node setup, EVM chain switching). All six are now fixed:+builder behind `/create/studio`). It carried twelve `no-undef`/out-of-scope+references — each one throws `ReferenceError` the moment its code path runs.+They sit in user-reachable paths: NFT lock checks, trait lookup, wallet+collection ownership, VRM0 root-node setup, EVM chain switching, GLB/VRM export,+Solana transaction error handling, and KTX2 texture decoding. All twelve are+now fixed.| File | Was | Now | Effect of the bug ||---|---|---|---|-| `src/library/manifestDataManager.js:67` | `…?.isNFTLocked(testWallet)` | `…?.isNFTLocked()` | `isManifestByIndexNFTLocked()` threw; `isNFTLocked()` takes no arg and the other call sites already call it with none |-| `src/library/manifestDataManager.js:70` | `…?.isNFTLocked(testWallet)` | `…?.isNFTLocked()` | same, for the by-identifier path |-| `src/library/mint-utils.js:292` | `network.toLowerCase() == ethereum` | `network.toLowerCase() === 'ethereum'` | `connectWallet('ethereum'\|'polygon')` threw before it could switch chains; `ethereum` was a bare identifier, not the string |-| `src/library/vrmManager.js:3,71` | `addChildAtFirst` used, never imported | added to the `./utils` import | `_setupVRM0()` threw on every VRM0 model load; the helper exists in `utils.js` and is imported correctly in `characterManager.js` |-| `src/library/walletCollections.js:58` | `ownsCollection(wallet, network, …)` | `ownsCollection(wallet, chainName, …)` | `checkForOwnership()` threw; `network` was undefined, the parameter is `chainName` |-| `src/library/CharacterManifestData.js:877` | `getTraitByIndex(lockFilter = true)` → `collection[index]` | `getTraitByIndex(index, lockFilter = true)` | `TraitModelsGroup.getTraitByIndex()` could never return the right trait; `index` was undefined. The four sibling overloads correctly take `index`; no external callers, so the signature fix is safe |--The two `connection` hits originally listed as candidates in ISSUES.md were-verified as **false positives** — `connection` is declared locally-(`const connection = new Connection(rpcUrl)`) at every use site.+| `manifestDataManager.js:67` | `…?.isNFTLocked(testWallet)` | `…?.isNFTLocked()` | `isManifestByIndexNFTLocked()` threw; `isNFTLocked()` takes no arg and the other call sites already call it with none |+| `manifestDataManager.js:70` | `…?.isNFTLocked(testWallet)` | `…?.isNFTLocked()` | same, by-identifier path |+| `manifestDataManager.js:238` | `manifestData[identifier]?.getTraitOptionById(traitID)` | `manifestData.getTraitOptionById(traitID)` | `getTraitOptionById(traitID, optionalIdentifier)` threw; `identifier` was undefined and `manifestData` was already the resolved manifest (matches sibling `getTraitOption` at :216) |+| `manifestDataManager.js:246` | `traitOption = null` | `let traitOption = null` | undeclared assignment → `ReferenceError` in strict-mode ESM; the parallel block at :225 correctly uses `let` |+| `manifestDataManager.js:399` | `manifestData.getModelTraits(traitType)` | `manifestData.getModelTraits(groupTraitID)` | `getModelTraits(groupTraitID, optionalIdentifier)` threw; `traitType` was undefined. The else-branch at :410 confirms `groupTraitID` is the right arg |+| `mint-utils.js:292` | `network.toLowerCase() == ethereum` | `network.toLowerCase() === 'ethereum'` | `connectWallet('ethereum'\|'polygon')` threw before it could switch chains; `ethereum` was a bare identifier, not the string |+| `mint-utils.js:157,178` | `const connection` inside `try`, used in `catch` | hoisted to `let connection;` before `try` | `const` is block-scoped to the `try`, so the `error.signature` recovery path in `catch` threw a second `ReferenceError` while handling the first error |+| `vrmManager.js:3,71` | `addChildAtFirst` used, never imported | added to the `./utils` import | `_setupVRM0()` threw on every VRM0 model load; the helper exists in `utils.js` and is imported correctly in `characterManager.js` |+| `walletCollections.js:58` | `ownsCollection(wallet, network, …)` | `ownsCollection(wallet, chainName, …)` | `checkForOwnership()` threw; `network` was undefined, the parameter is `chainName` |+| `download-utils.js:85` | `getGLBData(model, options)` used `optimized`, never destructured | added `const {optimized = true} = options;` | `getGLBData()` threw; its sibling `getGLBBlobData` (:69) destructures `optimized` correctly |+| `CharacterManifestData.js:877` | `getTraitByIndex(lockFilter = true)` → `collection[index]` | `getTraitByIndex(index, lockFilter = true)` | `TraitModelsGroup.getTraitByIndex()` could never return the right trait; `index` was undefined. The four sibling overloads correctly take `index`; no external callers, so the signature fix is safe |+| `ktx.js:8` | `LIBKTX !== undefined` | `typeof LIBKTX !== 'undefined'` | reading a never-declared global throws `ReferenceError`; the `typeof` guard is the idiomatic optional-global check and falls through to the existing "ktx library undefined" error path when absent |++**Process note:** an initial pass fixed six of these; a follow-up+`no-undef`-only eslint sweep over `character-studio/src` surfaced the other six+(`manifestDataManager` trait/model lookups, the `try`/`catch` scope leak in+`mint-utils`, the missing `optimized` destructure, and the KTX global guard).+The `connection` and `optimized` references were **not** false positives as+first assumed — they are real bugs in *different* methods than the ones first+inspected. The lesson: trust the linter's line numbers over a spot-check.### Remaining character-studio lint debt (cosmetic, tracked)@@ -108,7 +120,7 @@ These are not agent-doable and remain open in## What was changed in this audit pass-- Fixed all six ReferenceErrors in Finding 1 (`character-studio/src/library/`).+- Fixed all twelve ReferenceErrors in Finding 1 (`character-studio/src/library/`).- This document.- ISSUES.md updated to reflect the runtime bugs as resolved, leaving only thecosmetic lint burndown open.diff --git a/eslint.config.js b/eslint.config.jsindex d31974751..a0bbed397 100644--- a/eslint.config.js+++ b/eslint.config.js@@ -36,6 +36,9 @@ export default ['agent-payments-sdk/**',// Generated output'data/_generated/**',+ // Saved Workflow-DSL scripts (top-level await/return + injected+ // runtime globals like agent()/log() — not standalone ES modules).+ 'scripts/wf-*.mjs',// Bundled/minified build artifacts'**/*.min.js','public/embed-sdk.js',diff --git a/pages/activity.html b/pages/activity.htmlindex 96b97009a..0deb95e72 100644--- a/pages/activity.html+++ b/pages/activity.html@@ -189,9 +189,24 @@.ac-empty h3 { font-family: var(--font-display, sans-serif); font-size: 17px; margin: 12px 0 7px; }.ac-empty p { color: var(--ac-muted); font-size: 13px; max-width: 480px; margin: 0 auto; line-height: 1.55; }- .ac-load-more { display: block; width: 100%; margin-top: 10px; background: var(--ac-panel2); border: 1px solid var(--ac-border); border-radius: 10px; padding: 11px; font: inherit; font-size: 13px; color: var(--ac-muted); cursor: pointer; transition: color .14s, border-color .14s; }- .ac-load-more:hover { color: var(--ac-text); border-color: var(--ac-border2); }- .ac-load-more:disabled { opacity: .5; cursor: default; }+ .ac-load-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 10px; background: var(--ac-panel2); border: 1px solid var(--ac-border); border-radius: 10px; padding: 11px; font: inherit; font-size: 13px; color: var(--ac-muted); cursor: pointer; transition: color .14s, border-color .14s; }+ .ac-load-more:hover:not(:disabled) { color: var(--ac-text); border-color: var(--ac-border2); }+ .ac-load-more:disabled { opacity: .6; cursor: progress; }+ .ac-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(255,255,255,.18); border-top-color: var(--ac-accent); animation: acSpin .7s linear infinite; flex-shrink: 0; }+ @keyframes acSpin { to { transform: rotate(360deg); } }++ /* error / retry */+ .ac-error-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }+ .ac-retry-btn { display: inline-flex; align-items: center; gap: 7px; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.4); color: #fff; border-radius: 10px; padding: 9px 16px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .14s, border-color .14s; }+ .ac-retry-btn:hover:not(:disabled) { background: rgba(139,92,246,.28); border-color: rgba(139,92,246,.6); }+ .ac-retry-btn:disabled { opacity: .6; cursor: progress; }++ /* stale-data banner */+ .ac-stale { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 9px 13px; border-radius: 10px; font-size: 12.5px; background: rgba(251,191,36,.1); border: 1px solid rgba(251,191,36,.32); color: var(--ac-warn); animation: acIn .25s ease both; }+ .ac-stale .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ac-warn); flex-shrink: 0; }+ .ac-stale .ac-stale-text { flex: 1; min-width: 0; color: #f3d58a; }+ .ac-stale .ac-retry-btn { background: rgba(251,191,36,.14); border-color: rgba(251,191,36,.4); padding: 5px 11px; font-size: 12px; color: var(--ac-warn); }+ .ac-stale .ac-retry-btn:hover:not(:disabled) { background: rgba(251,191,36,.24); border-color: rgba(251,191,36,.6); }.ac-refresh { font-size: 11px; color: var(--ac-faint); margin-left: auto; }@@ -248,8 +263,14 @@<span class="ac-refresh" id="ac-refresh-note"></span></div>- <div class="ac-feed" id="ac-feed"></div>- <button class="ac-load-more" id="ac-load-more" hidden>Load more</button>+ <div class="ac-stale" id="ac-stale" role="status" hidden>+ <span class="dot" aria-hidden="true"></span>+ <span class="ac-stale-text" id="ac-stale-text"></span>+ <button class="ac-retry-btn" id="ac-stale-retry" type="button">↻ Refresh</button>+ </div>++ <div class="ac-feed" id="ac-feed" role="feed" aria-busy="false"></div>+ <button class="ac-load-more" id="ac-load-more" hidden><span class="ac-load-more-label">Load more</span></button></main><script src="/brand.js" defer></script>@@ -292,8 +313,13 @@const verb = outcome === 'win' ? 'closed ↑' : outcome === 'loss' ? 'closed ↓' : outcome === 'flat' ? 'closed' : 'entered';const convScore = item.conviction != null ? ` · ${item.conviction}` : '';- return `<div class="ac-row oc-${outcome}" data-id="${esc(item.id)}" data-agent="${esc(item.agent_id)}">- <span class="outcome-edge"></span>+ const outcomeWord = { win: 'won', loss: 'lost', flat: 'closed flat', open: 'open position' }[outcome] || outcome;+ const symLabel = (item.symbol || item.mint.slice(0, 6)).toUpperCase();+ const pnlLabel = pnl != null ? `, P&L ${sign(pnl)}${sol(pnl)}` : '';+ const rowLabel = `${item.agent_name || 'Agent'} ${verb.replace(/[↑↓]/g, '').trim()} $${symLabel} — ${outcomeWord}${pnlLabel}`;++ return `<div class="ac-row oc-${outcome}" data-id="${esc(item.id)}" data-agent="${esc(item.agent_id)}" role="article" aria-label="${esc(rowLabel)}">+ <span class="outcome-edge" aria-hidden="true"></span><img class="ac-av" src="${esc(av)}" alt="" onerror="${imgErr}" loading="lazy" /><div class="ac-body"><div class="ac-headline">@@ -332,14 +358,37 @@</div>`).join('');}- const state = { tier: '', mode: '', outcome: '', cursor: null, loading: false, items: [] };+ const state = { tier: '', mode: '', outcome: '', cursor: null, loading: false, items: [], lastSuccess: null, stale: false };const feed = document.getElementById('ac-feed');const loadMoreBtn = document.getElementById('ac-load-more');+ const loadMoreLabel = loadMoreBtn.querySelector('.ac-load-more-label');+ const staleBar = document.getElementById('ac-stale');+ const staleText = document.getElementById('ac-stale-text');+ const staleRetry = document.getElementById('ac-stale-retry');++ function showStale(msg) {+ state.stale = true;+ staleText.textContent = msg;+ staleBar.hidden = false;+ }+ function clearStale() {+ state.stale = false;+ staleBar.hidden = true;+ }async function load(reset = false) {if (state.loading) return;state.loading = true;+ feed.setAttribute('aria-busy', 'true');if (reset) { state.items = []; state.cursor = null; feed.innerHTML = skeletons(); }+ else if (!loadMoreBtn.hidden) {+ loadMoreBtn.disabled = true;+ loadMoreBtn.setAttribute('aria-busy', 'true');+ loadMoreLabel.textContent = 'Loading…';+ if (!loadMoreBtn.querySelector('.ac-spin')) {+ loadMoreBtn.insertAdjacentHTML('afterbegin', '<span class="ac-spin" aria-hidden="true"></span>');+ }+ }const url = new URL(API, location.origin);url.searchParams.set('network', 'mainnet');@@ -373,21 +422,43 @@state.cursor = data.next_before || null;loadMoreBtn.hidden = !state.cursor;- loadMoreBtn.disabled = false;// KPIsif (data.summary) renderKpis(data.summary);+ // Success — data is fresh again.+ state.lastSuccess = Date.now();+ clearStale();+} catch (e) {- if (reset) {+ if (reset && !state.items.length) {+ // Hard failure with nothing to show — full error state + retry.+ loadMoreBtn.hidden = true;feed.innerHTML = `<div class="ac-empty"><div class="icon">⚠️</div><h3>Couldn't load activity</h3><p>${esc(e.message)}</p>+ <div class="ac-error-actions">+ <button class="ac-retry-btn" id="ac-error-retry" type="button">↻ Try again</button>+ </div></div>`;+ const btn = document.getElementById('ac-error-retry');+ if (btn) btn.addEventListener('click', () => { btn.disabled = true; load(true); });+ } else {+ // We still have data on screen — flag it as stale rather than blanking it.+ const since = state.lastSuccess+ ? `last updated ${ago(new Date(state.lastSuccess).toISOString())}`+ : 'showing earlier data';+ showStale(`Couldn't refresh — ${since}. ${e.message}`);}} finally {state.loading = false;+ feed.setAttribute('aria-busy', 'false');+ loadMoreBtn.removeAttribute('aria-busy');+ const spin = loadMoreBtn.querySelector('.ac-spin');+ if (spin) spin.remove();+ loadMoreLabel.textContent = 'Load more';+ loadMoreBtn.disabled = false;}}@@ -428,6 +499,11 @@loadMoreBtn.addEventListener('click', () => { loadMoreBtn.disabled = true; load(false); });+ staleRetry.addEventListener('click', () => {+ staleRetry.disabled = true;+ load(true).finally(() => { staleRetry.disabled = false; });+ });+// ── SSE — real-time updates ──────────────────────────────────────────const note = document.getElementById('ac-refresh-note');const seenIds = new Set();@@ -445,6 +521,9 @@es.addEventListener('hello', () => {sseActive = true;note.textContent = '⚡ Live';+ // Stream is healthy again — data on screen is current.+ state.lastSuccess = Date.now();+ if (state.stale && !state.cursor) clearStale();});es.addEventListener('action', (e) => {diff --git a/pages/agent-economy.html b/pages/agent-economy.htmlindex feccf7421..941b1df1f 100644--- a/pages/agent-economy.html+++ b/pages/agent-economy.html@@ -453,7 +453,7 @@<div><h1 style="font-size:24px;font-weight:600;color:#fff;margin-bottom:10px">Agent Economy</h1><p style="color:#5c6180;max-width:400px;margin:0 auto 20px">Two 3D AI agents transacting on-chain. This interactive demo requires JavaScript.</p>- <a href="/docs/ibm" style="display:inline-block;padding:10px 18px;border-radius:8px;background:#4e8cff;color:#fff;text-decoration:none;font-size:14px">Read the docs</a>+ <a href="/docs" style="display:inline-block;padding:10px 18px;border-radius:8px;background:#4e8cff;color:#fff;text-decoration:none;font-size:14px">Read the docs</a></div></div></noscript>@@ -468,7 +468,7 @@<div class="av-label-name">Nova</div><div class="av-label-role">Buyer Agent</div><div class="av-label-addr" id="buyer-addr">—</div>- <div class="av-label-bal bal-unknown" id="buyer-bal"><span class="bal-spin"></span></div>+ <div class="av-label-bal bal-unknown" id="buyer-bal" aria-live="polite" aria-atomic="true" aria-label="Nova wallet balance"><span class="bal-spin"></span></div></div></div>@@ -479,25 +479,25 @@<div id="center-sub">Agents paying agents · Real SOL · Solana mainnet</div></div>- <div id="fund-alert"></div>+ <div id="fund-alert" role="status" aria-live="polite" aria-atomic="true"></div><div id="catalog"><div id="catalog-label">Services offered by Oracle</div>- <button class="svc-btn" data-service="market-analysis">+ <button class="svc-btn" type="button" data-service="market-analysis" aria-label="Buy Market Analysis from Oracle for $0.001 — live sentiment and trend read"><div class="svc-btn-left"><span class="svc-btn-name">Market Analysis</span><span class="svc-btn-tag">Live sentiment + trend read</span></div><span class="svc-btn-price">$0.001</span></button>- <button class="svc-btn" data-service="onchain-insight">+ <button class="svc-btn" type="button" data-service="onchain-insight" aria-label="Buy On-Chain Insight from Oracle for $0.002 — wallet activity and holder data"><div class="svc-btn-left"><span class="svc-btn-name">On-Chain Insight</span><span class="svc-btn-tag">Wallet activity + holder data</span></div><span class="svc-btn-price">$0.002</span></button>- <button class="svc-btn" data-service="risk-score">+ <button class="svc-btn" type="button" data-service="risk-score" aria-label="Buy Risk Score from Oracle for $0.003 — AI-generated protocol rating"><div class="svc-btn-left"><span class="svc-btn-name">Risk Score</span><span class="svc-btn-tag">AI-generated protocol rating</span>@@ -534,12 +534,12 @@<div class="av-label-name">Oracle</div><div class="av-label-role">Data Seller Agent</div><div class="av-label-addr" id="seller-addr">—</div>- <div class="av-label-bal bal-unknown" id="seller-bal"><span class="bal-spin"></span></div>+ <div class="av-label-bal bal-unknown" id="seller-bal" aria-live="polite" aria-atomic="true" aria-label="Oracle wallet balance"><span class="bal-spin"></span></div></div></div><div id="bottom-bar">- <a href="/ibm/galaxy">IBM showcase</a>+ <a href="/galaxy">Galaxy showcase</a><span class="sep">·</span><a href="/x402">x402 Bazaar</a><span class="sep">·</span>diff --git a/pages/agent-exchange.html b/pages/agent-exchange.htmlindex 67d4356d4..eb142a22c 100644--- a/pages/agent-exchange.html+++ b/pages/agent-exchange.html@@ -208,6 +208,10 @@.stage.done .si::after { content:"✓"; font-size:9px; color:#000; font-weight:900; }.stage.error { color:var(--red); }.stage.error .si { border-color:var(--red); }+ .stage[hidden] { display:none; }+ .stage.stage-terminal.error .si { background:var(--red); border-color:var(--red); box-shadow:0 0 8px var(--red); }+ .stage.stage-terminal.error .si::after { content:"!"; font-size:10px; color:#fff; font-weight:900; line-height:1; }+ .stage.stage-terminal.error .sval { color:var(--red); }.stage .sval { font-size:10.5px; color:var(--faint); font-variant-numeric:tabular-nums; }.stage.done .sval { color:var(--green); }@keyframes pulse { 0%,100% { opacity:1; } 50% { opacity:.5; } }@@ -219,6 +223,8 @@animation:rise .3s ease;}.receipt.show { display:block; }+ .receipt:focus { outline:none; }+ .receipt:focus-visible { outline:2px solid var(--sol-lt); outline-offset:3px; }@keyframes rise { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }.receipt .r-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:9px; }.receipt .r-badge { font-size:12px; font-weight:700; color:var(--green); display:flex; align-items:center; gap:6px; }@@ -299,7 +305,7 @@<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 8v4l3 3"/></svg>x402 demo</a>- <a class="tb-btn" href="/ibm/trust-layer" title="IBM Granite Guardian Trust Layer">+ <a class="tb-btn" href="/x402" title="x402 — the payment trust layer behind these settlements"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/></svg>Trust Layer</a>@@ -339,11 +345,11 @@</div><div id="narration" role="status" aria-live="polite" aria-atomic="false"></div>- <div id="walletState" role="alert"></div>+ <div id="walletState" role="status" aria-live="polite" aria-atomic="true"></div><div class="stages" id="stages" aria-label="Payment stages" aria-live="polite"></div>- <div class="receipt" id="receipt" aria-live="polite"></div>+ <div class="receipt" id="receipt" aria-live="polite" tabindex="-1" aria-label="Payment receipt"></div></section></div>diff --git a/pages/agent-trade.html b/pages/agent-trade.htmlindex 4056a7bc1..5e84d9299 100644--- a/pages/agent-trade.html+++ b/pages/agent-trade.html@@ -206,6 +206,49 @@cursor: pointer; transition: background 0.18s;}.cfg-close:hover { background: rgba(69,137,255,0.25); }+ .cfg-close:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }++ /* ── Read-only walkthrough (honest, static description) ─────────────── */+ .cfg-card { max-height: 88vh; overflow-y: auto; }+ .cfg-walkthrough {+ margin-top: 18px; padding: 16px 18px; border: 1px solid var(--border);+ border-radius: 10px; background: rgba(8,189,186,0.04);+ }+ .cfg-wh-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }+ .cfg-wh-badge {+ font-family: var(--mono); font-size: 0.64rem; letter-spacing: 0.06em; text-transform: uppercase;+ color: var(--teal); background: rgba(8,189,186,0.12); border: 1px solid rgba(8,189,186,0.3);+ padding: 3px 9px; border-radius: 20px;+ }+ .cfg-wh-note { font-size: 0.72rem; color: var(--muted); }+ .cfg-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }+ .cfg-steps li { font-size: 0.82rem; line-height: 1.55; color: var(--text); }+ .cfg-steps li b { color: var(--blue); font-weight: 600; }++ .cfg-links { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 18px; }+ .cfg-link {+ font-size: 0.8rem; color: var(--teal); text-decoration: none;+ border-bottom: 1px solid transparent; transition: border-color 0.16s, color 0.16s;+ }+ .cfg-link:hover { color: #2fe3df; border-bottom-color: rgba(8,189,186,0.5); }+ .cfg-link:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 3px; }++ /* ── Header related-surface links ──────────────────────────────────── */+ .header-links { display: flex; gap: 4px; align-items: center; margin-left: 8px; }+ .header-links a {+ font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.02em;+ color: var(--muted); text-decoration: none; padding: 4px 10px; border-radius: 20px;+ border: 1px solid transparent;+ transition: color 0.16s, border-color 0.16s, background 0.16s, transform 0.1s;+ }+ .header-links a:hover { color: var(--text); border-color: rgba(8,189,186,0.4); background: rgba(8,189,186,0.08); }+ .header-links a:active { transform: scale(0.96); }+ .header-links a:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }+ @media (max-width: 560px) {+ .header-links { gap: 2px; margin-left: 4px; }+ .header-links a { padding: 4px 7px; font-size: 0.6rem; }+ #header { padding: 12px 14px; gap: 8px; }+ }</style><link rel="canonical" href="https://three.ws/agent-trade">@@ -219,6 +262,11 @@<a href="/"><span>three</span>.ws</a><div class="hbadge hbadge-x402">x402</div><div class="hbadge hbadge-sol">Solana</div>+ <nav class="header-links" aria-label="Related surfaces">+ <a href="/agent-economy">Agent economy</a>+ <a href="/three-live">$THREE live</a>+ <a href="/x402">x402</a>+ </nav><div id="hright"><div id="liveDot"></div><div id="networkBadge">mainnet</div>@@ -264,10 +312,26 @@<div id="toast"></div><!-- Not-configured overlay -->- <div id="notConfigured" class="hidden">- <div class="cfg-card">- <h2>Fund two Solana wallets</h2>- <p>Generate keypairs, set these env vars, and fund each wallet with a small amount of SOL to run the live agent-to-agent trade demo.</p>+ <div id="notConfigured" class="hidden" role="dialog" aria-modal="true" aria-labelledby="cfgTitle" aria-describedby="cfgDesc">+ <div class="cfg-card" role="document">+ <h2 id="cfgTitle">Live demo not yet configured</h2>+ <p id="cfgDesc">This page runs a <strong>real</strong> agent-to-agent payment: two AI agents settle a tiny SOL transaction on-chain via the x402 protocol. To go live it needs two funded Solana keypairs set as environment variables on the deployment. Until then, here's exactly what the demo does — step by step — and how to enable it.</p>++ <div class="cfg-walkthrough">+ <div class="cfg-wh-head">+ <span class="cfg-wh-badge">Read-only walkthrough</span>+ <span class="cfg-wh-note">A description of the live flow — not a running trade.</span>+ </div>+ <ol class="cfg-steps">+ <li><b>Request.</b> The buyer agent (Nexus) asks the seller agent (Oracle) for a market analysis.</li>+ <li><b>402 challenge.</b> Oracle replies with HTTP 402 Payment Required and an x402 manifest: price in SOL, recipient, network, and memo.</li>+ <li><b>Pay.</b> Nexus signs and broadcasts a real SOL transfer on Solana to satisfy the challenge.</li>+ <li><b>Confirm.</b> The network confirms the transaction; the signature is shown and links to Solscan.</li>+ <li><b>Deliver.</b> Oracle verifies payment, runs the analysis through a real model, and returns the result.</li>+ </ol>+ </div>++ <p class="cfg-gen" style="margin-top:18px">To enable the live demo, set these on the deployment and fund each wallet with a small amount of SOL:</p><div class="env-block"><div><span class="env-c"># Buyer agent (Nexus)</span></div><div><span class="env-k">AGENT_BUYER_SECRET</span>=<base58-secret-key></div>@@ -282,10 +346,19 @@Generate a keypair:<br><code>node -e "const {Keypair}=require('@solana/web3.js'),bs58=require('bs58');const k=Keypair.generate();console.log('secret:',bs58.encode(k.secretKey),'addr:',k.publicKey.toString())"</code></p>++ <div class="cfg-links">+ <a class="cfg-link" href="/x402">x402 payments & setup ↗</a>+ <a class="cfg-link" href="/docs">Read the docs ↗</a>+ <a class="cfg-link" href="/agent-economy">The agent economy ↗</a>+ <a class="cfg-link" href="/three-live">$THREE live ↗</a>+ </div>+<button class="cfg-close" id="cfgClose">Dismiss (demo scene still visible)</button></div></div>+<script type="module" src="/src/agent-trade.js"></script></body></html>diff --git a/pages/avatar-artifact.html b/pages/avatar-artifact.htmlindex 08187cefc..11e21c09c 100644--- a/pages/avatar-artifact.html+++ b/pages/avatar-artifact.html@@ -17,12 +17,162 @@padding: 0;box-sizing: border-box;}+ :root {+ --ink: #eaf0ff;+ --muted: #8b94b8;+ --accent: #6699ff;+ }+ html,+ body {+ height: 100%;+ }body {background: #080808;overflow: hidden;+ font-family:+ -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial,+ sans-serif;+ color: var(--ink);}canvas {display: block;+ touch-action: none; /* we own the gesture for parallax */+ }++ /* ── Chrome overlay: keeps the viewer from being a dead-end ── */+ .chrome {+ position: fixed;+ inset: 0;+ pointer-events: none;+ z-index: 10;+ display: flex;+ flex-direction: column;+ justify-content: space-between;+ }+ .bar {+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+ padding: 14px 18px;+ background: linear-gradient(180deg, rgba(8, 8, 12, 0.7), rgba(8, 8, 12, 0));+ }+ .bar.bottom {+ background: linear-gradient(0deg, rgba(8, 8, 12, 0.7), rgba(8, 8, 12, 0));+ }+ .chrome a {+ pointer-events: auto;+ color: var(--ink);+ text-decoration: none;+ font-size: 14px;+ font-weight: 600;+ letter-spacing: 0.01em;+ display: inline-flex;+ align-items: center;+ gap: 7px;+ padding: 8px 12px;+ border-radius: 10px;+ border: 1px solid rgba(255, 255, 255, 0.08);+ background: rgba(255, 255, 255, 0.04);+ transition:+ background 0.18s ease,+ border-color 0.18s ease,+ transform 0.18s ease;+ }+ .chrome a:hover {+ background: rgba(255, 255, 255, 0.1);+ border-color: rgba(255, 255, 255, 0.18);+ }+ .chrome a:active {+ transform: translateY(1px);+ }+ .chrome a:focus-visible {+ outline: 2px solid var(--accent);+ outline-offset: 2px;+ }+ .brand {+ font-weight: 700;+ }+ .brand .dot {+ color: var(--accent);+ }+ .foot-links {+ display: flex;+ gap: 8px;+ flex-wrap: wrap;+ }+ .hint {+ pointer-events: none;+ color: var(--muted);+ font-size: 12px;+ }++ /* ── Loading + error states ── */+ .overlay {+ position: fixed;+ inset: 0;+ z-index: 20;+ display: flex;+ flex-direction: column;+ align-items: center;+ justify-content: center;+ gap: 16px;+ text-align: center;+ padding: 24px;+ background: #080808;+ transition: opacity 0.4s ease;+ }+ .overlay[hidden] {+ display: none;+ }+ .overlay.fade {+ opacity: 0;+ pointer-events: none;+ }+ .spinner {+ width: 38px;+ height: 38px;+ border-radius: 50%;+ border: 3px solid rgba(102, 153, 255, 0.18);+ border-top-color: var(--accent);+ animation: spin 0.9s linear infinite;+ }+ @keyframes spin {+ to {+ transform: rotate(360deg);+ }+ }+ .overlay p {+ color: var(--muted);+ font-size: 14px;+ max-width: 30ch;+ line-height: 1.5;+ }+ .overlay h2 {+ font-size: 18px;+ font-weight: 700;+ }+ @media (prefers-reduced-motion: reduce) {+ .spinner {+ animation-duration: 2.4s;+ }+ }++ /* ── Mobile adaptation ── */+ @media (max-width: 640px) {+ .bar {+ padding: 11px 12px;+ }+ .chrome a {+ font-size: 13px;+ padding: 7px 10px;+ }+ .hint {+ display: none;+ }+ .foot-links a:nth-child(n + 3) {+ display: none; /* keep the bottom bar to two primary links on phones */+ }}</style>@@ -61,23 +211,90 @@</script></head><body>+ <!-- Persistent chrome so the standalone viewer is never a dead-end -->+ <div class="chrome" aria-hidden="false">+ <div class="bar top">+ <a href="/" aria-label="Back to three.ws home">+ <span aria-hidden="true">←</span>+ <span class="brand">three<span class="dot">.</span>ws</span>+ </a>+ <span class="hint">Move your cursor · drag on touch · arrow keys</span>+ </div>+ <div class="bar bottom">+ <span class="hint">Avatar Artifact — a live Three.js portrait</span>+ <nav class="foot-links" aria-label="Explore three.ws">+ <a href="/playground">Playground</a>+ <a href="/labs">Labs</a>+ <a href="/agents">Agents</a>+ </nav>+ </div>+ </div>++ <!-- Loading state while the Three.js runtime + scene resolve -->+ <div class="overlay" id="loading">+ <div class="spinner" role="status" aria-label="Loading avatar"></div>+ <p>Summoning the avatar…</p>+ </div>++ <!-- Designed failure state if the 3D runtime can't load -->+ <div class="overlay" id="error" hidden>+ <h2>Couldn’t load the 3D viewer</h2>+ <p>+ The graphics runtime failed to load — this usually means a network+ hiccup or a browser without WebGL.+ </p>+ <div class="foot-links">+ <a href="javascript:location.reload()">Retry</a>+ <a href="/">Back to three.ws</a>+ </div>+ </div>++ <script>+ // Show the designed error state if the CDN runtime never arrives,+ // rather than leaving a blank canvas behind.+ window.__avatarArtifactFailed = function () {+ document.getElementById('loading')?.setAttribute('hidden', '');+ document.getElementById('error')?.removeAttribute('hidden');+ };+ </script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"integrity="sha384-CI3ELBVUz9XQO+97x6nwMDPosPR5XvsxW2ua7N1Xeygeh1IxtgqtCkGfQY9WWdHu"crossorigin="anonymous"+ onerror="window.__avatarArtifactFailed()"></script><script>- const W = window.innerWidth,- H = window.innerHeight;- const scene = new THREE.Scene();+ // WebGL / runtime guard: if Three.js didn't load or WebGL is+ // unavailable, surface the designed error state instead of throwing.+ if (!window.THREE) {+ window.__avatarArtifactFailed();+ } else {+ const W = window.innerWidth,+ H = window.innerHeight;+ const scene = new THREE.Scene();const camera = new THREE.PerspectiveCamera(42, W / H, 0.1, 100);camera.position.set(0, 1.6, 4.2);camera.lookAt(0, 1.6, 0);- const renderer = new THREE.WebGLRenderer({ antialias: true, alpha: true });+ // Coarse pointer (phones/tablets) → lighter render: fewer DPR samples+ // and no shadow pass, so the canvas stays smooth on mobile GPUs.+ const isCoarse =+ window.matchMedia && window.matchMedia('(pointer: coarse)').matches;++ let renderer;+ try {+ renderer = new THREE.WebGLRenderer({+ antialias: !isCoarse,+ alpha: true,+ });+ } catch {+ // No WebGL context available — show the designed error state.+ window.__avatarArtifactFailed();+ throw new Error('webgl-unavailable');+ }renderer.setSize(W, H);- renderer.setPixelRatio(Math.min(devicePixelRatio, 2));- renderer.shadowMap.enabled = true;+ renderer.setPixelRatio(Math.min(devicePixelRatio, isCoarse ? 1.5 : 2));+ renderer.shadowMap.enabled = !isCoarse;document.body.appendChild(renderer.domElement);// Lights@@ -307,11 +524,64 @@const pts = new THREE.Points(pGeo, pMat);scene.add(pts);- // ─── Mouse tracking ───────────────────────────────────────────────────────────+ // ─── Input tracking (mouse · touch · keyboard) ──────────────────────────────────+ // The avatar's gaze follows a single normalized look-target so every+ // input modality drives the same code path.const mouse = { x: 0, y: 0 };+ let keyTarget = null; // when set, keyboard overrides pointer++ function aim(clientX, clientY) {+ mouse.x = (clientX / window.innerWidth - 0.5) * 2;+ mouse.y = (clientY / window.innerHeight - 0.5) * 2;+ }+window.addEventListener('mousemove', (e) => {- mouse.x = (e.clientX / window.innerWidth - 0.5) * 2;- mouse.y = (e.clientY / window.innerHeight - 0.5) * 2;+ keyTarget = null;+ aim(e.clientX, e.clientY);+ });++ // Touch: track a finger drag so the portrait is interactive on phones.+ window.addEventListener(+ 'touchmove',+ (e) => {+ const tch = e.touches && e.touches[0];+ if (!tch) return;+ keyTarget = null;+ aim(tch.clientX, tch.clientY);+ },+ { passive: true },+ );++ // Keyboard: arrow keys / WASD nudge the gaze, so the viewer is usable+ // without a pointer and remains keyboard-accessible.+ const canvasEl = renderer.domElement;+ canvasEl.tabIndex = 0;+ canvasEl.setAttribute('role', 'img');+ canvasEl.setAttribute(+ 'aria-label',+ 'Interactive 3D avatar portrait that follows your cursor, touch, or arrow keys',+ );+ const KEY_STEP = 0.25;+ window.addEventListener('keydown', (e) => {+ const k = e.key.toLowerCase();+ const map = {+ arrowleft: [-1, 0],+ a: [-1, 0],+ arrowright: [1, 0],+ d: [1, 0],+ arrowup: [0, -1],+ w: [0, -1],+ arrowdown: [0, 1],+ s: [0, 1],+ };+ const v = map[k];+ if (!v) return;+ e.preventDefault();+ if (!keyTarget) keyTarget = { x: mouse.x, y: mouse.y };+ keyTarget.x = Math.max(-1, Math.min(1, keyTarget.x + v[0] * KEY_STEP));+ keyTarget.y = Math.max(-1, Math.min(1, keyTarget.y + v[1] * KEY_STEP));+ mouse.x = keyTarget.x;+ mouse.y = keyTarget.y;});// ─── Animate ──────────────────────────────────────────────────────────────────@@ -384,16 +654,32 @@pts.rotation.y += 0.0006;renderer.render(scene, camera);++ // Fade out the loading overlay once the first frame is on screen.+ if (!firstFramePainted) {+ firstFramePainted = true;+ const loading = document.getElementById('loading');+ if (loading) {+ loading.classList.add('fade');+ setTimeout(() => loading.setAttribute('hidden', ''), 450);+ }+ }}+ let firstFramePainted = false;animate();- window.addEventListener('resize', () => {+ // Keep the canvas matched to the viewport (handles orientation changes+ // and mobile browser-chrome resize, not just desktop window drags).+ function onResize() {const w = window.innerWidth,h = window.innerHeight;camera.aspect = w / h;camera.updateProjectionMatrix();renderer.setSize(w, h);- });+ }+ window.addEventListener('resize', onResize);+ window.addEventListener('orientationchange', onResize);+ }</script></body></html>diff --git a/pages/avatar-wallet-chat.html b/pages/avatar-wallet-chat.htmlindex 97ebc86bd..35a6f4ee3 100644--- a/pages/avatar-wallet-chat.html+++ b/pages/avatar-wallet-chat.html@@ -142,6 +142,68 @@#wallet .copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }#wallet .copy.done { color: var(--ok); border-color: var(--ok); }+ /* ── Fund-your-wallet hint (shown when SOL balance is too low to+ cover an autonomous send, before the user attempts one) ──── */+ #fund-hint {+ position: absolute;+ left: 14px; right: 14px;+ top: 70px;+ display: none;+ align-items: flex-start;+ gap: 11px;+ padding: 13px 14px;+ background: rgba(12, 11, 22, 0.74);+ backdrop-filter: blur(14px);+ -webkit-backdrop-filter: blur(14px);+ border: 1px solid rgba(255, 184, 92, 0.42);+ border-radius: 14px;+ box-shadow: var(--shadow);+ z-index: 3;+ animation: rise 0.25s ease both;+ }+ #fund-hint.show { display: flex; }+ #fund-hint .fh-ic {+ flex: none;+ width: 30px; height: 30px;+ display: grid; place-items: center;+ border-radius: 9px;+ background: rgba(255, 184, 92, 0.16);+ color: #ffc97a;+ }+ #fund-hint .fh-ic svg { width: 16px; height: 16px; }+ #fund-hint .fh-body { min-width: 0; flex: 1 1 auto; }+ #fund-hint .fh-title { font-size: 13px; font-weight: 700; color: var(--text); }+ #fund-hint .fh-sub { margin-top: 2px; font-size: 12px; line-height: 1.45; color: var(--text-dim); }+ #fund-hint .fh-addr-row {+ margin-top: 9px;+ display: flex; align-items: center; gap: 7px;+ }+ #fund-hint .fh-addr {+ flex: 1 1 auto; min-width: 0;+ font-size: 12px;+ font-variant-numeric: tabular-nums;+ color: var(--text);+ background: var(--panel);+ border: 1px solid var(--panel-border);+ border-radius: 8px;+ padding: 6px 9px;+ overflow: hidden; text-overflow: ellipsis; white-space: nowrap;+ }+ #fund-hint .fh-copy {+ flex: none;+ border: 1px solid var(--panel-border);+ background: transparent;+ color: var(--text-dim);+ border-radius: 8px;+ padding: 6px 8px;+ cursor: pointer;+ line-height: 0;+ transition: background 0.15s, color 0.15s, border-color 0.15s;+ }+ #fund-hint .fh-copy:hover { background: var(--panel); color: var(--text); border-color: var(--accent); }+ #fund-hint .fh-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }+ #fund-hint .fh-copy.done { color: var(--ok); border-color: var(--ok); }+/* ── Chat ───────────────────────────────────────────────────── */#chat {flex: 0 0 46%;@@ -365,6 +427,21 @@<svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg></button></div>+ <div id="fund-hint" role="status">+ <span class="fh-ic" aria-hidden="true">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="2" y="6" width="20" height="13" rx="2"/><path d="M2 10h20"/><path d="M7 15h2"/></svg>+ </span>+ <div class="fh-body">+ <div class="fh-title" id="fund-title">Fund your avatar's wallet</div>+ <div class="fh-sub" id="fund-sub">It can't send SOL until there's a balance to send from. Send some SOL to the address below and it'll be ready.</div>+ <div class="fh-addr-row">+ <span class="fh-addr" id="fund-addr" title="Avatar wallet address">—</span>+ <button class="fh-copy" id="fund-copy" title="Copy address" aria-label="Copy wallet address to fund">+ <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>+ </button>+ </div>+ </div>+ </div></div><section id="chat" aria-label="Chat with the avatar">@@ -413,6 +490,8 @@avatarFrame.src = `/avatar-embed.html?${aq.toString()}`;let avatarReady = false;+ let avatarFlushed = false;+ let avatarReadyTimer = null;const avatarQueue = [];function toAvatar(msg) {if (avatarReady) avatarFrame.contentWindow?.postMessage(msg, avatarOrigin);@@ -421,25 +500,26 @@function avatarSpeak(text) { if (text) toAvatar({ type: 'v1.avatar.speak', text: String(text).slice(0, 600) }); }function avatarGesture(name) { toAvatar({ type: 'v1.avatar.animation', name }); }+ // Flush the queued speech/gestures at most once — whether the real+ // 'ready' signal arrives or the resilience timeout fires first.+ function flushAvatarQueue() {+ if (avatarFlushed) return;+ avatarFlushed = true;+ avatarReady = true;+ clearTimeout(avatarReadyTimer);+ while (avatarQueue.length) avatarFrame.contentWindow?.postMessage(avatarQueue.shift(), avatarOrigin);+ }+window.addEventListener('message', (e) => {if (e.source !== avatarFrame.contentWindow) return;- const t = e.data?.type;- if (t === 'v1.avatar.ready') {- avatarReady = true;- while (avatarQueue.length) avatarFrame.contentWindow?.postMessage(avatarQueue.shift(), avatarOrigin);- }+ if (e.data?.type === 'v1.avatar.ready') flushAvatarQueue();});avatarFrame.addEventListener('load', () => {avatarFrame.contentWindow?.postMessage({ type: 'v1.avatar.hello' }, avatarOrigin);// Resilience: if the avatar never signals ready (e.g. a slow rig),// flush queued speech/gestures best-effort after a grace period so// the avatar still reacts instead of going silent forever.- setTimeout(() => {- if (!avatarReady) {- avatarReady = true;- while (avatarQueue.length) avatarFrame.contentWindow?.postMessage(avatarQueue.shift(), avatarOrigin);- }- }, 5000);+ avatarReadyTimer = setTimeout(flushAvatarQueue, 5000);});// ── Wallet chip ───────────────────────────────────────────────@@ -469,7 +549,48 @@el('bal-usd').textContent = wallet.usd != null ? `$${wallet.usd.toFixed(2)}` : '';el('addr-short').textContent = short(wallet.address);el('addr-link').href = wallet.explorer;+ renderFundHint();+ }++ // First-class "fund your wallet" state — shown BEFORE a send is attempted+ // whenever the live balance can't cover the smallest demo payout plus the+ // network fee. Uses the real on-chain SOL balance from /api/agent/wallet.+ const FEE_BUFFER_SOL = 0.0001; // signature fee + rent headroom+ function renderFundHint() {+ const hint = el('fund-hint');+ if (!hint || !wallet) return;+ const sol = Number(wallet.sol) || 0;+ const price = Number(wallet.solPriceUsd) || 0;+ // Smallest send the avatar offers is $1; need that in SOL + a fee buffer.+ const minSendUsd = 1;+ const needSol = (price > 0 ? minSendUsd / price : 0) + FEE_BUFFER_SOL;+ const underfunded = sol <= 0 || (price > 0 && sol < needSol);+ if (!underfunded) {+ hint.classList.remove('show');+ return;+ }+ const title = el('fund-title');+ const sub = el('fund-sub');+ if (sol <= 0) {+ title.textContent = 'Fund your avatar’s wallet';+ sub.textContent = "It can't send SOL until there's a balance to send from. Send some SOL to the address below and it'll be ready.";+ } else {+ title.textContent = 'Low balance';+ sub.textContent = `Only ${fmtSol(sol)} SOL—not enough to cover a $1 send plus fees. Top it up at the address below.`;+ }+ el('fund-addr').textContent = wallet.address || '—';+ hint.classList.add('show');}++ el('fund-copy').addEventListener('click', async () => {+ if (!wallet?.address) return;+ try {+ await navigator.clipboard.writeText(wallet.address);+ const b = el('fund-copy');+ b.classList.add('done');+ setTimeout(() => b.classList.remove('done'), 1200);+ } catch { /* clipboard blocked */ }+ });el('copy-btn').addEventListener('click', async () => {if (!wallet?.address) return;try {@@ -580,7 +701,7 @@chip.className = 'gov-chip';chip.innerHTML ='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"/><path d="M9 12l2 2 4-4"/></svg>' +- `<span>Send held by <a href="/ibm/trust-layer" target="_blank" rel="noopener">IBM Granite Guardian</a> — ${escapeHtml(reason)}.</span>`;+ `<span>Send held by <a href="/ibm/x402-demo" target="_blank" rel="noopener">IBM Granite Guardian</a> — ${escapeHtml(reason)}.</span>`;log.appendChild(chip);log.scrollTop = log.scrollHeight;}@@ -654,57 +775,65 @@} finally {busy = false;sendBtn.disabled = false;-// Receive detection: the avatar notices when SOL lands in its own wallet- // (a tip from you) and reacts in real time — the "receiving" half of the- // round-trip. Real on-chain data via /api/agent/activity; the first poll- // seeds the seen-set so only NEW arrivals trigger a reaction.- const seenSigs = new Set();- let activitySeeded = false;- function receiveCard(t) {- clearEmpty();- const card = document.createElement('div');- card.className = 'pay ok recv';- const from = t.counterparty ? short(t.counterparty) : 'someone';- card.innerHTML =- '<div class="head"><span class="ic">↓</span> Received SOL</div>' +- '<div class="amt">' + fmtSol(t.sol) + ' SOL</div>' +- '<div class="sub">' + (t.usd != null ? '≈ $' + t.usd.toFixed(2) + ' · ' : '') + 'from ' + from + '</div>' +- '<div class="status"><span class="pip"></span><span class="label">Confirmed on-chain</span></div>';- const a = document.createElement('a');- a.className = 'sig';- a.href = t.explorer; a.target = '_blank'; a.rel = 'noopener';- a.textContent = '↗ ' + short(t.signature);- card.appendChild(a);- log.appendChild(card);- log.scrollTop = log.scrollHeight;+ input.focus();+ }+ }++ // ── Receive detection ─────────────────────────────────────────+ // The avatar notices when SOL lands in its own wallet (a tip from you)+ // and reacts in real time — the "receiving" half of the round-trip.+ // Real on-chain data via /api/agent/activity; the first poll seeds the+ // seen-set so only NEW arrivals trigger a reaction. Defined once at page+ // boot with a single interval — never per message — so concurrent+ // pollers can't accumulate.+ const seenSigs = new Set();+ let activitySeeded = false;+ let activityTimer = null;+ function receiveCard(t) {+ clearEmpty();+ const card = document.createElement('div');+ card.className = 'pay ok recv';+ const from = t.counterparty ? short(t.counterparty) : 'someone';+ card.innerHTML =+ '<div class="head"><span class="ic">↓</span> Received SOL</div>' ++ '<div class="amt">' + fmtSol(t.sol) + ' SOL</div>' ++ '<div class="sub">' + (t.usd != null ? '≈ $' + t.usd.toFixed(2) + ' · ' : '') + 'from ' + from + '</div>' ++ '<div class="status"><span class="pip"></span><span class="label">Confirmed on-chain</span></div>';+ const a = document.createElement('a');+ a.className = 'sig';+ a.href = t.explorer; a.target = '_blank'; a.rel = 'noopener';+ a.textContent = '↗ ' + short(t.signature);+ card.appendChild(a);+ log.appendChild(card);+ log.scrollTop = log.scrollHeight;+ }+ async function pollActivity() {+ try {+ const r = await fetch('/api/agent/activity?limit=12', { headers: { accept: 'application/json' } });+ if (!r.ok) return;+ const data = await r.json();+ const transfers = data.transfers || [];+ if (!activitySeeded) {+ transfers.forEach((t) => seenSigs.add(t.signature));+ activitySeeded = true;+ return;}- async function pollActivity() {- try {- const r = await fetch('/api/agent/activity?limit=12', { headers: { accept: 'application/json' } });- if (!r.ok) return;- const data = await r.json();- const transfers = data.transfers || [];- if (!activitySeeded) {- transfers.forEach((t) => seenSigs.add(t.signature));- activitySeeded = true;- return;- }- for (const t of [...transfers].reverse()) {- if (seenSigs.has(t.signature)) continue;- seenSigs.add(t.signature);- if (t.direction !== 'in') continue;- receiveCard(t);- toast('Received ' + fmtSol(t.sol) + ' SOL' + (t.usd != null ? ' ($' + t.usd.toFixed(2) + ')' : ''));- avatarSpeak('I just received ' + fmtSol(t.sol) + ' SOL' + (t.usd != null ? ', about $' + t.usd.toFixed(2) : '') + ' — thank you!');- avatarGesture('celebrate');- refreshWallet();- }- } catch (e) { /* transient RPC/network blip — next tick retries */ }+ for (const t of [...transfers].reverse()) {+ if (seenSigs.has(t.signature)) continue;+ seenSigs.add(t.signature);+ if (t.direction !== 'in') continue;+ receiveCard(t);+ toast('Received ' + fmtSol(t.sol) + ' SOL' + (t.usd != null ? ' ($' + t.usd.toFixed(2) + ')' : ''));+ avatarSpeak('I just received ' + fmtSol(t.sol) + ' SOL' + (t.usd != null ? ', about $' + t.usd.toFixed(2) : '') + ' — thank you!');+ avatarGesture('celebrate');+ refreshWallet();}- pollActivity();- setInterval(pollActivity, 9000);- input.focus();- }+ } catch (e) { /* transient RPC/network blip — next tick retries */ }+ }+ function startActivityPoller() {+ if (activityTimer) return; // exactly one interval, ever+ pollActivity();+ activityTimer = setInterval(pollActivity, 9000);}el('composer').addEventListener('submit', (e) => { e.preventDefault(); ask(input.value); });@@ -728,6 +857,7 @@// ── Boot ──────────────────────────────────────────────────────refreshWallet();setInterval(refreshWallet, 20000);+ startActivityPoller();input.focus();</script></body>diff --git a/pages/club.html b/pages/club.htmlindex a78219251..cf3ce78bb 100644--- a/pages/club.html+++ b/pages/club.html@@ -561,6 +561,29 @@text-align: center;padding: 12px 0;}+ .club-lb-error {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 8px;+ font-style: normal;+ }+ .club-lb-retry {+ font: inherit;+ font-size: 11.5px;+ font-style: normal;+ color: var(--text-1, #fff);+ background: rgba(255,255,255,.06);+ border: 1px solid rgba(255,255,255,.16);+ border-radius: 7px;+ padding: 5px 14px;+ min-height: 32px;+ cursor: pointer;+ transition: background .15s ease, border-color .15s ease, transform .1s ease;+ }+ .club-lb-retry:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); }+ .club-lb-retry:active { transform: scale(.97); }+ .club-lb-retry:focus-visible { outline: 2px solid var(--accent, #c284ff); outline-offset: 2px; }/* ── Screen reader only text ─────────────────────────── */.sr-only {diff --git a/pages/coin-intel.html b/pages/coin-intel.htmlindex 018b24c84..43a87b565 100644--- a/pages/coin-intel.html+++ b/pages/coin-intel.html@@ -201,7 +201,10 @@.ci-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.55); opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90; backdrop-filter: blur(2px); }.ci-scrim.is-open { opacity: 1; pointer-events: auto; }.ci-drawer {- position: fixed; top: 0; right: 0; bottom: 0; width: 460px; max-width: 94vw;+ position: fixed; top: 0; right: 0; bottom: 0;+ /* Comfortable on standard screens, scales up on ultra-wide without+ sprawling, and stays edge-to-edge-safe on narrow viewports. */+ width: clamp(360px, 34vw, 560px); max-width: 94vw;background: var(--ci-panel); border-left: 1px solid var(--ci-border); z-index: 91;transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);overflow-y: auto; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);diff --git a/pages/compose.html b/pages/compose.htmlindex ed63d54ca..34c45b5ff 100644--- a/pages/compose.html+++ b/pages/compose.html@@ -339,7 +339,7 @@<!-- Avatar modal --><div id="am" hidden><div class="amd">- <div class="amh"><span>Choose an Avatar</span><button class="amc" id="am-close">×</button></div>+ <div class="amh"><span>Choose an Avatar</span><button class="amc" id="am-close" aria-label="Close avatar picker">×</button></div><div id="amb"><div style="grid-column:1/-1;text-align:center;padding:24px;color:#52525b;font-size:12px;">Loading…</div></div></div></div>@@ -347,7 +347,7 @@<!-- Help panel --><div id="hp" hidden><div class="hpd">- <div class="hph"><h3>Keyboard Shortcuts</h3><button class="hpc" id="hp-close">×</button></div>+ <div class="hph"><h3>Keyboard Shortcuts</h3><button class="hpc" id="hp-close" aria-label="Close shortcuts panel">×</button></div><div class="hpg"><div class="hpr"><span>Translate</span><span class="hpk">W</span></div><div class="hpr"><span>Rotate</span><span class="hpk">E</span></div>diff --git a/pages/constellation.html b/pages/constellation.htmlindex 6fa38b58d..235ba5b29 100644--- a/pages/constellation.html+++ b/pages/constellation.html@@ -109,7 +109,7 @@<canvas id="c-scene"></canvas><div class="c-hud">- <a class="c-badge" href="/ibm/galaxy"><span class="dot"></span><strong>three.ws</strong> × IBM watsonx</a>+ <a class="c-badge" href="/galaxy"><span class="dot"></span><strong>three.ws</strong> × IBM watsonx</a><h1>watsonx <span class="g">Constellation</span></h1><p>Live Solana tokens, positioned in 3D by IBM Granite embeddings on watsonx.ai. Nearby stars are semantically alike.</p><div class="c-status" id="c-status"><span class="s-dot"></span><span id="c-status-text">Starting…</span></div>diff --git a/pages/demo-economy.html b/pages/demo-economy.htmlindex b4bdb4774..76033bebb 100644--- a/pages/demo-economy.html+++ b/pages/demo-economy.html@@ -63,6 +63,15 @@.brand .sep { color: var(--muted); }.brand .page { color: var(--muted); font-size: 13px; }.pills { display: flex; gap: 7px; }+ .topnav { display: flex; gap: 4px; margin-left: 14px; }+ .topnav a {+ color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 600;+ padding: 5px 10px; border-radius: 7px; border: 1px solid transparent;+ transition: color .15s, border-color .15s, background .15s;+ }+ .topnav a:hover { color: var(--text); border-color: var(--border); background: rgba(255,255,255,0.04); }+ .topnav a:focus-visible { outline: 2px solid var(--nova); outline-offset: 2px; }+ @media (max-width: 680px) { .topnav { display: none; } }.pill {display: inline-flex; align-items: center; gap: 6px;padding: 4px 11px; border-radius: 99px; font-size: 11px; font-weight: 700;@@ -159,9 +168,34 @@letter-spacing: 0.04em; border: 1px solid var(--border); color: var(--muted);}+ /* Mobile sheet toggle — hidden on desktop */+ #sheet-toggle {+ display: none;+ margin-left: 8px;+ padding: 7px 12px; border-radius: 8px;+ background: transparent; color: var(--text);+ border: 1px solid var(--border);+ font: 600 12px -apple-system,system-ui,sans-serif; cursor: pointer;+ transition: background .15s, border-color .15s;+ }+ #sheet-toggle:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.18); }+ #sheet-toggle:focus-visible { outline: 2px solid var(--nova); outline-offset: 2px; }+@media (max-width: 680px) {#root { grid-template-columns: 1fr; grid-template-areas: "top" "canvas" "bot"; }- #sidebar { display: none; }+ /* The payment proof is the point of the demo — keep it reachable on+ mobile as a slide-up sheet instead of hiding it outright. */+ #sidebar {+ position: fixed; left: 0; right: 0; bottom: 44px; z-index: 20;+ max-height: 64vh;+ transform: translateY(calc(100% + 44px));+ transition: transform .28s cubic-bezier(.2,.7,.2,1);+ border-left: none; border-top: 1px solid var(--border);+ border-radius: 14px 14px 0 0;+ box-shadow: 0 -14px 34px rgba(0,0,0,0.55);+ }+ #sidebar.open { transform: translateY(0); }+ #sheet-toggle { display: inline-flex; align-items: center; }}</style>@@ -180,6 +214,11 @@<span class="pill nova"><span class="dot"></span>NOVA · payer</span><span class="pill oracle"><span class="dot"></span>ORACLE · provider</span></div>+ <nav class="topnav">+ <a href="/agents">Agents</a>+ <a href="/launches">Launches</a>+ </nav>+ <button id="sheet-toggle" type="button" aria-label="Show payment details" aria-expanded="false">Details</button><button id="run-btn" type="button"><span id="run-label">Run demo</span></button></header>@@ -224,7 +263,7 @@<footer id="botbar"><span id="status">Ready — click Run demo</span><span style="color:var(--muted)">·</span>- <span style="color:var(--muted)">Real Solana infrastructure · x402 protocol · live bazaar</span>+ <span id="botline" style="color:var(--muted)">Real Solana infrastructure · x402 protocol</span><div class="chips"><span class="chip">x402</span><span class="chip">Solana</span>@@ -243,6 +282,17 @@ const runLabel = document.getElementById('run-label');const stepsEl = document.getElementById('steps');const stepsWrap = document.getElementById('steps-wrap');const statusEl = document.getElementById('status');+const botLineEl = document.getElementById('botline');++// Reflect the actual run mode in the bottom bar instead of always claiming a+// live on-chain bazaar/transfer. Anonymous visitors run the simulated path.+let bazaarOk = true;+function updateBotLine(simulated) {+ const bazaar = bazaarOk ? ' · live x402 bazaar' : ' · bazaar offline';+ botLineEl.textContent = simulated+ ? 'Simulated payment — sign in to run a live on-chain transfer' + bazaar+ : 'Live on-chain transfer · Solana mainnet' + bazaar;+}// ── Scene init ─────────────────────────────────────────────────────────────let world = null;@@ -286,6 +336,8 @@ function runDemo() {runLabel.textContent = 'Running…';stepsEl.innerHTML = '';statusEl.textContent = 'Starting demo…';+ bazaarOk = true;+ botLineEl.textContent = 'Real Solana infrastructure · x402 protocol';// Resetdocument.getElementById('pay-card').classList.remove('show');@@ -337,7 +389,8 @@ function runDemo() {es.addEventListener('bazaar', e => {const d = JSON.parse(e.data);- world?.tv?.setServices(d.services);+ world?.tv?.setServices(d);+ bazaarOk = d.bazaarAvailable !== false;});es.addEventListener('wallet', e => {@@ -351,14 +404,16 @@ function runDemo() {document.getElementById('pay-empty').style.display = 'none';document.getElementById('pay-card').classList.add('show');document.getElementById('py-amt').textContent =- d.amount_sol + ' SOL' + (d.amount_usd ? ' (' + d.amount_usd + ')' : '');+ (d.amount_sol ? d.amount_sol + ' SOL' : '—') + (d.amount_usd ? ' (' + d.amount_usd + ')' : '');if (d.simulated) document.getElementById('py-sim-row').style.display = '';const sigEl = document.getElementById('py-sig');- if (d.simulated) {- sigEl.innerHTML = `<span style="color:var(--muted)">${esc(d.signature.slice(0,16))}…</span>`;- } else {+ if (d.signature) {sigEl.innerHTML = `<a href="${esc(d.explorer_url)}" target="_blank" rel="noopener">${esc(d.signature.slice(0,12))}… ↗</a>`;+ } else {+ sigEl.innerHTML = `<span style="color:var(--muted)">no on-chain tx — simulated</span>`;}+ updateBotLine(d.simulated);+ openSheetOnMobile();});es.addEventListener('content', e => {@@ -382,6 +437,19 @@ function runDemo() {}runBtn.addEventListener('click', runDemo);++// Mobile sheet — surface the payment proof instead of hiding it on small screens.+const sheetToggle = document.getElementById('sheet-toggle');+const sidebarEl = document.getElementById('sidebar');+function setSheet(open) {+ sidebarEl.classList.toggle('open', open);+ sheetToggle.setAttribute('aria-expanded', String(open));+ sheetToggle.textContent = open ? 'Hide' : 'Details';+}+sheetToggle.addEventListener('click', () => setSheet(!sidebarEl.classList.contains('open')));+function openSheetOnMobile() {+ if (window.matchMedia('(max-width: 680px)').matches) setSheet(true);+}</script></body></html>diff --git a/pages/fact-checker.html b/pages/fact-checker.htmlindex 867866113..abbd74ef7 100644--- a/pages/fact-checker.html+++ b/pages/fact-checker.html@@ -54,6 +54,17 @@* {box-sizing: border-box;}+ .sr-only {+ position: absolute;+ width: 1px;+ height: 1px;+ padding: 0;+ margin: -1px;+ overflow: hidden;+ clip: rect(0, 0, 0, 0);+ white-space: nowrap;+ border: 0;+ }html,body {margin: 0;@@ -94,6 +105,18 @@padding-right: 20px;}}+ @media (max-width: 480px) {+ .wrap-1280 {+ padding-left: 14px;+ padding-right: 14px;+ }+ .form-card {+ padding: 20px 16px;+ }+ .hero {+ padding: 56px 0 40px;+ }+ }/* ── NAV ──────────────────────────────────────────────────────────── */.nav {@@ -925,9 +948,18 @@maxlength="1000"></textarea>- <div>- <div class="form-label" style="margin-top: 20px">Strictness</div>- <div class="strictness-row">+ <fieldset+ style="border: 0; padding: 0; margin: 0; min-width: 0"+ aria-describedby="strictness-help"+ >+ <legend class="form-label" style="margin-top: 20px; float: none">+ Strictness+ </legend>+ <span id="strictness-help" class="sr-only">+ How demanding the verdict should be: Low accepts weaker evidence, High+ requires strong corroboration.+ </span>+ <div class="strictness-row" role="radiogroup" aria-label="Strictness"><div class="strictness-option"><input type="radio" id="s-low" name="strictness" value="low" /><label for="s-low">Low</label>@@ -947,12 +979,27 @@<label for="s-high">High</label></div></div>- </div>+ </fieldset><div class="form-actions">- <button id="check-btn" class="btn primary">Check This Fact</button>- <div id="loading-status" class="loading-status">Searching sources...</div>- <span id="char-counter" class="char-counter">0 / 1000</span>+ <button id="check-btn" class="btn primary" aria-busy="false">+ Check This Fact+ </button>+ <div+ id="loading-status"+ class="loading-status"+ role="status"+ aria-live="polite"+ >+ Searching sources...+ </div>+ <span+ id="char-counter"+ class="char-counter"+ aria-live="polite"+ aria-label="Characters used"+ >0 / 1000</span+ ></div></div>@@ -1038,7 +1085,7 @@</div><!-- Error -->- <div id="error-panel" class="error-panel">+ <div id="error-panel" class="error-panel" role="alert" aria-live="assertive"><div class="error-card"><div class="error-title">Something went wrong</div><div class="error-msg" id="error-msg">An unexpected error occurred.</div>@@ -1050,7 +1097,13 @@</div><!-- Result panel -->- <div id="result-panel" class="result-panel">+ <div+ id="result-panel"+ class="result-panel"+ role="region"+ aria-label="Fact-check result"+ aria-live="polite"+ ><!-- Verdict --><div id="verdict-banner" class="verdict-banner"><span id="verdict-label" class="verdict-label"></span>diff --git a/pages/features.html b/pages/features.htmlindex 0f1e6efda..315a9dbcc 100644--- a/pages/features.html+++ b/pages/features.html@@ -1055,7 +1055,7 @@not mocked — with every decision anchored to a Solana transaction asan immutable record.</p>- <a href="/ibm/galaxy" class="btn-primary feat-card-cta">+ <a href="/galaxy" class="btn-primary feat-card-cta">Explore the IBM suite <span class="btn-arrow">→</span></a></div>@@ -1263,7 +1263,7 @@<h4 class="h-footer-link-heading">Company</h4><a href="/blog">Blog</a><a href="/community">Community</a>- <a href="/ibm/galaxy">IBM · watsonx.ai</a>+ <a href="/galaxy">IBM · watsonx.ai</a><a href="/dashboard">Dashboard</a></div><div class="h-footer-link-col">diff --git a/pages/go.html b/pages/go.htmlindex 2bcf35ef7..09c33e7ff 100644--- a/pages/go.html+++ b/pages/go.html@@ -989,7 +989,7 @@<div class="modal"><div class="modal-header"><span class="modal-title">Post a Bounty</span>- <button class="modal-close" data-close="create-modal">✕</button>+ <button class="modal-close" data-close="create-modal" aria-label="Close dialog">✕</button></div><div class="modal-body"><div id="create-error" class="form-error" style="display: none"></div>@@ -1038,7 +1038,7 @@<div class="modal"><div class="modal-header"><span class="modal-title">Submit Proof</span>- <button class="modal-close" data-close="submit-modal">✕</button>+ <button class="modal-close" data-close="submit-modal" aria-label="Close dialog">✕</button></div><div class="modal-body"><div id="submit-error" class="form-error" style="display: none"></div>@@ -1075,7 +1075,7 @@<div class="modal"><div class="modal-header"><span class="modal-title">Pick a Winner</span>- <button class="modal-close" data-close="resolve-modal">✕</button>+ <button class="modal-close" data-close="resolve-modal" aria-label="Close dialog">✕</button></div><div class="modal-body"><div id="resolve-error" class="form-error" style="display: none"></div>diff --git a/pages/home.html b/pages/home.htmlindex 2e7a94dc6..48c1a75f0 100644--- a/pages/home.html+++ b/pages/home.html@@ -5559,12 +5559,6 @@// placeholder models — so we ask the avatar source for 3D rows only, then// dedupe by model + name and take the first 6 unique ones.const EXPLORE_SHOWCASE_URL = '/api/explore?source=avatar&only3d=1&category=avatar,creature&limit=24&quality=high';- const FALLBACK_AGENTS = [- { name: 'CZ', description: 'Stylized humanoid', glbUrl: '/avatars/cz.glb', viewerUrl: '/avatars/avatar_demo_disk_cz', kind: 'avatar' },- { name: 'Ansem', description: 'Trader persona', glbUrl: '/avatars/default.glb', viewerUrl: '/avatars/avatar_demo_disk_ansem', kind: 'avatar' },- { name: 'Saga', description: 'Expressive robot rig', glbUrl: '/animations/robotexpressive.glb', viewerUrl: '/avatars/avatar_demo_disk_saga', kind: 'avatar' },- { name: 'Boss Vernington', description: 'Soldier rig with locomotion', glbUrl: '/animations/soldier.glb', viewerUrl: '/avatars/avatar_demo_disk_boss', kind: 'avatar' },- ];const grid = document.getElementById('showcase-3d-grid');if (!grid) return;@@ -5708,10 +5702,13 @@.then(function (data) {var items = Array.isArray(data.items) ? data.items : [];var agentItems = dedupeAgents(items.filter(function (it) { return it.glbUrl || it.avatarId; })).slice(0, 6);- renderShowcase(agentItems.length >= 3 ? agentItems : FALLBACK_AGENTS);+ // Real avatars only. If the feed is thin or empty the grid+ // degrades to its two CTA cards (Browse all / Make your own) —+ // never to fabricated demo agents.+ renderShowcase(agentItems);}).catch(function () {- renderShowcase(FALLBACK_AGENTS);+ renderShowcase([]);});}, { rootMargin: '200px' });showcaseObs.observe(grid);diff --git a/pages/ibm/x402-demo.html b/pages/ibm/x402-demo.htmlindex 4e4203fe7..10c767782 100644--- a/pages/ibm/x402-demo.html+++ b/pages/ibm/x402-demo.html@@ -1157,15 +1157,32 @@ agent-3d:defined ~ .agent-skel{display:none}}}// Wallet extensions inject asynchronously; re-check briefly after load.+ // Two detection paths run in parallel and either one ends the wait:+ // 1. A short backoff poll for the injected globals (Phantom/legacy MetaMask).+ // 2. The EIP-6963 announce protocol — registered UP FRONT (below), before the+ // first poll, and kicked with a requestProvider so compliant wallets reply+ // immediately rather than only after our first 350ms tick.var walletPolls = 0;+ var walletPollTimer = null;function pollForWallet() {syncWalletHint();- if (!hasInjectedWallet() && walletPolls < 8) { walletPolls++; setTimeout(pollForWallet, 350); }+ // Resolve immediately the instant a wallet appears — don't keep polling.+ if (hasInjectedWallet()) { walletPolls = 8; return; }+ if (walletPolls < 8) { walletPolls++; walletPollTimer = setTimeout(pollForWallet, 350); }+ }+ function onWalletDetected() {+ // A wallet announced or injected mid-poll: reflect it and stop the backoff.+ if (walletPollTimer) { clearTimeout(walletPollTimer); walletPollTimer = null; }+ walletPolls = 8;+ syncWalletHint();}window.addEventListener('online', function () { syncWalletHint(); loadChallengePreview(); });window.addEventListener('offline', syncWalletHint);// EIP-6963 announce + Phantom late-inject both surface via this event in practice.- window.addEventListener('eip6963:announceProvider', syncWalletHint);+ // Registered before polling starts so an early announcement is never missed, and+ // we proactively request announcements so wallets reply without waiting for a tick.+ window.addEventListener('eip6963:announceProvider', onWalletDetected);+ try { window.dispatchEvent(new Event('eip6963:requestProvider')); } catch (_) {}// ── wiring ──────────────────────────────────────────────────────────────────$('payBtn').addEventListener('click', runPayment);@@ -1422,6 +1439,23 @@ agent-3d:defined ~ .agent-skel{display:none}var rb = $('fgRetry'); if (rb) rb.addEventListener('click', runForge);announce('Error: ' + text + (tip ? ' ' + tip : ''));}+ // The paid generation has settled but is taking longer than this inline demo can+ // wait. Rather than leave the visitor stranded, hand them the job in the full Forge+ // tool (the same backend, with a durable job view) so they can collect the result.+ function setResultStillWorking(msg, jobId) {+ var text = msg || 'Still working — your payment settled.';+ var forgeUrl = 'https://three.ws/forge' + (jobId ? '?job=' + encodeURIComponent(jobId) : '');+ var el = $('fgResult'); el.className = 'result is-error';+ el.innerHTML =+ '<div class="r-status err"><span aria-hidden="true">⏳</span> <span>' + escapeHtml(text) + '</span></div>' ++ '<p class="r-tip">Your payment went through and the model is still generating. Open it in the full Forge tool to watch it finish and download the GLB — your job is waiting there.</p>' ++ '<div class="r-actions">' ++ '<a class="r-btn" href="' + escapeHtml(forgeUrl) + '" target="_blank" rel="noopener">Continue in Forge ↗</a>' ++ '<button class="r-btn ghost" type="button" id="fgRetry">Try again</button>' ++ '</div>';+ var rb = $('fgRetry'); if (rb) rb.addEventListener('click', runForge);+ announce(text + ' Continue in the full Forge tool to collect your model.');+ }function setResultGenerating(payment, etaSec, startTs) {ensureModelViewer(); // warm the viewer during the generation wait so the result paints instantlyvar el = $('fgResult'); el.className = 'result is-loading';@@ -1437,15 +1471,37 @@ agent-3d:defined ~ .agent-skel{display:none}var t = $('fgGenText'); if (t) t.textContent = 'Payment settled — forging your model… ' + elapsed + 's';}, 1000);}+ function mvAvailable() {+ return !!(window.customElements && customElements.get('model-viewer'));+ }function setResultDone(glbUrl, payment, meta) {clearInterval(genTimer);- ensureModelViewer(); // covers the synchronous-finish path where generation never streamedvar el = $('fgResult'); el.className = 'result is-done';var explorer = explorerUrl(payment.network, payment.transaction);var safeGlb = escapeHtml(glbUrl);var html = '';html += '<div class="r-status ok"><span class="r-check" aria-hidden="true">✓</span><span>Payment settled — model forged</span></div>';+ // The viewer is optional polish. If model-viewer never loaded (blocked script,+ // failed CDN-free fetch, unsupported engine) we don't render a dead <model-viewer>+ // that sits empty forever — we show the GLB as a downloadable file with a note.+ // ensureModelViewer() resolves whether or not the element upgrades, so by the time+ // its promise settles we can make an honest decision and re-render in place.+ ensureModelViewer().then(function () {+ // Element upgraded (or will upgrade in place) → leave the live viewer alone.+ if (mvAvailable()) return;+ // The module never defined the custom element. Swap the inert <model-viewer>+ // for an explicit download fallback so the user always gets their model.+ var mv = el.querySelector('.mv-wrap');+ if (mv) {+ mv.innerHTML =+ '<div style="display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:28px 18px;text-align:center;color:var(--ibm-subtle);font-size:13px;font-weight:300">' ++ '<span>The 3D viewer couldn’t load here — your model is ready as a downloadable file.</span>' ++ '<a class="r-btn" href="' + safeGlb + '" download target="_blank" rel="noopener">Download GLB</a>' ++ '</div>';+ announce('The 3D viewer could not load, but your model is ready to download.');+ }+ });html += '<div class="mv-wrap"><model-viewer src="' + safeGlb + '" alt="The 3D model you just forged" camera-controls auto-rotate rotation-per-second="18deg" interaction-prompt="none" shadow-intensity="0.7" shadow-softness="0.8" environment-image="neutral" exposure="1" camera-orbit="0deg 80deg auto" loading="eager"></model-viewer></div>';html += '<div class="r-actions">' +'<a class="r-btn" href="' + safeGlb + '" download target="_blank" rel="noopener">Download GLB</a>' +@@ -1483,12 +1539,12 @@ agent-3d:defined ~ .agent-skel{display:none}if (d.status === 'done' && d.glb_url) { setResultDone(d.glb_url, payment, d); return; }if (d.status === 'failed') { clearInterval(genTimer); setResultError(d.error || 'Generation failed. Your payment settled — try the full Forge tool.'); return; }tries++;- if (tries >= maxTries) { clearInterval(genTimer); setResultError('Still working after several minutes — your payment settled. Track it in the full Forge tool.'); return; }+ if (tries >= maxTries) { clearInterval(genTimer); setResultStillWorking('Still working after several minutes — your payment settled.', jobId); return; }pollTimer = setTimeout(tick, 2600);}).catch(function () {tries++;- if (tries >= maxTries) { clearInterval(genTimer); setResultError('Lost contact while generating — your payment settled. Track it in the full Forge tool.'); return; }+ if (tries >= maxTries) { clearInterval(genTimer); setResultStillWorking('Lost contact while generating — your payment settled.', jobId); return; }pollTimer = setTimeout(tick, 2600);});})();diff --git a/pages/launches.html b/pages/launches.htmlindex 583edaf4c..610f89203 100644--- a/pages/launches.html+++ b/pages/launches.html@@ -69,7 +69,8 @@graduation status, and a direct line to the mind behind each mint.</p><div class="lx-hero-ctas">- <a class="lx-btn lx-btn-primary" href="/create-agent">Create an agent</a>+ <a class="lx-btn lx-btn-primary" href="/launch">Launch a coin</a>+ <a class="lx-btn" href="/create-agent">Create an agent</a><a class="lx-btn" href="/forge">Forge a 3D model from text</a><a class="lx-btn" href="/agents">Browse agents</a></div>diff --git a/pages/leaderboard.html b/pages/leaderboard.htmlindex 9c0343dcf..dfed2834f 100644--- a/pages/leaderboard.html+++ b/pages/leaderboard.html@@ -37,6 +37,51 @@<link rel="stylesheet" href="/nav.css" /><link rel="stylesheet" href="/src/leaderboard.css" /><link rel="stylesheet" href="/footer.css" />+ <style>+ /* Stale / reconnecting badge — shown when a background refresh fails+ while the last good board is still on screen. */+ .lb-stale-badge {+ display: flex;+ align-items: center;+ gap: 8px;+ margin: 0 0 12px;+ padding: 7px 12px;+ border: 1px solid color-mix(in srgb, #fbbf24 36%, var(--line));+ background: color-mix(in srgb, #fbbf24 9%, transparent);+ border-radius: var(--r, 10px);+ font: 600 12px/1.3 var(--mono);+ color: #fbbf24;+ animation: lb-stale-in .2s ease both;+ }+ .lb-stale-dot {+ width: 7px;+ height: 7px;+ border-radius: 50%;+ background: #fbbf24;+ flex: none;+ box-shadow: 0 0 0 0 rgba(251, 191, 36, .6);+ animation: lb-stale-pulse 1.6s ease infinite;+ }+ @keyframes lb-stale-pulse {+ 0%, 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, .55); }+ 70% { box-shadow: 0 0 0 6px rgba(251, 191, 36, 0); }+ }+ @keyframes lb-stale-in {+ from { opacity: 0; transform: translateY(-4px); }+ to { opacity: 1; transform: translateY(0); }+ }+ @media (prefers-reduced-motion: reduce) {+ .lb-stale-dot, .lb-stale-badge { animation: none; }+ }+ /* Oracle row: actions column holds both Profile + Copy links. */+ .lb-oracle-actions {+ display: inline-flex;+ gap: 6px;+ align-items: center;+ justify-content: flex-end;+ }+ .lb-oracle-actions .lb-btn { white-space: nowrap; }+ </style><script defer src="/footer-newsletter.js"></script><link rel="canonical" href="https://three.ws/leaderboard" /><script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Trader Leaderboard","description":"Pump.fun traders ranked by a provable, on-chain track record.","url":"https://three.ws/leaderboard","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>diff --git a/pages/live.html b/pages/live.htmlindex f708443f9..f486b9897 100644--- a/pages/live.html+++ b/pages/live.html@@ -76,8 +76,14 @@letter-spacing: 0.04em;transform: translate(-50%, 0);white-space: nowrap;- pointer-events: none;+ pointer-events: auto;+ color: var(--text);+ text-decoration: none;+ cursor: pointer;+ transition: border-color .15s, background .15s;}+ .agent-tag:hover { border-color: var(--alpha); background: rgba(78,140,255,0.12); }+ .agent-tag:focus-visible { outline: 2px solid var(--alpha); outline-offset: 2px; }.agent-tag .dot {width: 6px; height: 6px; border-radius: 50%;}@@ -147,6 +153,31 @@#trade-btn:active:not(:disabled) { transform: scale(.97); }#trade-btn:disabled { opacity: .35; cursor: not-allowed; }+ /* Notice — designed fund / not-configured state */+ #notice {+ width: 100%;+ background: rgba(250,77,86,0.08);+ border: 1px solid rgba(250,77,86,0.4);+ border-radius: 12px;+ padding: 11px 14px;+ backdrop-filter: blur(14px);+ font-size: 12px;+ line-height: 1.5;+ color: var(--text);+ }+ #notice.warn { background: rgba(240,160,48,0.09); border-color: rgba(240,160,48,0.42); }+ #notice .nt-title { font-weight: 700; display: block; margin-bottom: 3px; }+ #notice .nt-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; flex-wrap: wrap; }+ #notice .nt-addr { font-family: ui-monospace, monospace; font-size: 11px; color: var(--muted); word-break: break-all; }+ #notice button, #notice a.nt-act {+ padding: 5px 11px; border-radius: 8px; cursor: pointer;+ border: 1px solid var(--border-hi); background: rgba(255,255,255,0.06);+ color: var(--text); font: 600 11px var(--font); text-decoration: none;+ transition: background .15s, border-color .15s;+ }+ #notice button:hover, #notice a.nt-act:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.4); }+ #notice button:focus-visible, #notice a.nt-act:focus-visible { outline: 2px solid var(--alpha); outline-offset: 2px; }+/* Event log */#log {width: 100%;@@ -235,13 +266,13 @@<iframe id="iframe-oracle" class="agent-iframe" title="Agent Oracle" allow="autoplay"></iframe><iframe id="iframe-trader" class="agent-iframe" title="Agent Trader" allow="autoplay"></iframe>-<!-- Name tags -->-<div id="tag-oracle" class="agent-tag" style="display:none">+<!-- Name tags (link to the agent directory) -->+<a id="tag-oracle" class="agent-tag" href="/agents" title="Browse three.ws agents" style="display:none"><span class="dot"></span>Oracle · Seller-</div>-<div id="tag-trader" class="agent-tag" style="display:none">+</a>+<a id="tag-trader" class="agent-tag" href="/agents" title="Browse three.ws agents" style="display:none"><span class="dot"></span>Trader · Buyer-</div>+</a><!-- Balances --><div id="bal-oracle" class="agent-balance" style="display:none">—</div>@@ -256,6 +287,7 @@<!-- HUD --><div id="hud">+ <div id="notice" role="status" aria-live="polite"></div><button id="trade-btn">▶ Agent Trader pays Oracle for Solana market data</button><div id="log"><div class="log-entry"><span class="ev">READY</span><span>Agents online. Press the button to initiate a live on-chain trade.</span></div></div></div>@@ -389,6 +421,33 @@ function addLog(ev, text, opts = {}) {logEl.scrollTop = logEl.scrollHeight;}+// ── Notice (designed fund / not-configured / unavailable state) ────────────+const noticeEl = document.getElementById('notice');+function clearNotice() { noticeEl.style.display = 'none'; noticeEl.innerHTML = ''; noticeEl.classList.remove('warn'); }+function showFundNotice(addr, explorerUrl) {+ noticeEl.classList.add('warn');+ noticeEl.innerHTML = `+ <span class="nt-title">⚠ Trader wallet needs funding</span>+ Fund the Trader wallet with a little SOL, then run the trade again.+ <div class="nt-row">+ <span class="nt-addr">${addr}</span>+ <button type="button" id="nt-copy">Copy address</button>+ ${explorerUrl ? `<a class="nt-act" href="${explorerUrl}" target="_blank" rel="noopener">View on explorer ↗</a>` : ''}+ <button type="button" id="nt-retry">Retry trade</button>+ </div>`;+ noticeEl.style.display = 'block';+ document.getElementById('nt-copy')?.addEventListener('click', async (ev) => {+ try { await navigator.clipboard.writeText(addr); ev.target.textContent = 'Copied'; setTimeout(() => { ev.target.textContent = 'Copy address'; }, 1400); }+ catch { ev.target.textContent = 'Copy failed'; }+ });+ document.getElementById('nt-retry')?.addEventListener('click', () => { clearNotice(); runTrade(); });+}+function showInfoNotice(title, body) {+ noticeEl.classList.remove('warn');+ noticeEl.innerHTML = `<span class="nt-title">${title}</span>${body}`;+ noticeEl.style.display = 'block';+}+// ── Wallet status ─────────────────────────────────────────────────────────const walletsEl = document.getElementById('wallets');function renderWalletChip(label, data, color) {@@ -415,27 +474,45 @@ function renderWalletChip(label, data, color) {}}+function renderUnconfiguredChip(label, color) {+ const id = `chip-${label.toLowerCase()}`;+ let chip = document.getElementById(id);+ if (!chip) {+ chip = document.createElement('div');+ chip.id = id;+ chip.className = 'wallet-chip';+ walletsEl.appendChild(chip);+ }+ chip.innerHTML = `+ <span class="dot" style="background:${color};opacity:.4"></span>+ <span>${label}</span>+ <span class="addr">wallet not configured</span>`;+}+async function refreshStatus() {try {const r = await fetch('/api/demo/economy?status=1');if (!r.ok) return;const { agentA, agentB } = await r.json();if (agentA?.configured) renderWalletChip('Oracle', agentA, '#888888');+ else renderUnconfiguredChip('Oracle', '#888888');if (agentB?.configured) renderWalletChip('Trader', agentB, '#4e8cff');+ else renderUnconfiguredChip('Trader', '#4e8cff');} catch {}}// ── LLM speech helper ─────────────────────────────────────────────────────-async function llmSay(prompt, persona) {+async function llmSay(prompt, persona, fallback = '') {try {const r = await fetch('/api/chat', {method: 'POST',headers: { 'content-type': 'application/json' },body: JSON.stringify({ message: prompt, systemPrompt: persona, stream: false }),});+ if (!r.ok) return fallback;const d = await r.json();- return d.reply || d.content || d.text || '';- } catch { return ''; }+ return d.reply || d.content || d.text || fallback;+ } catch { return fallback; }}const ORACLE_SYS = 'You are Agent Oracle, a 3D AI agent selling live Solana market intelligence on three.ws. You have your own on-chain wallet. Be crisp and confident — 1-2 sentences. Never say you are an AI.';@@ -444,16 +521,21 @@ const TRADER_SYS = 'You are Agent Trader, a 3D AI agent buying live market data// ── Main trade sequence ───────────────────────────────────────────────────const tradeBtn = document.getElementById('trade-btn');let running = false;+let demoMode = false;+let gotEvent = false;async function runTrade() {if (running) return;running = true;+ demoMode = false;+ gotEvent = false;+ clearNotice();tradeBtn.disabled = true;tradeBtn.textContent = '⏳ Trade in progress…';// Trader initiateswaveTrader();- const traderLine1 = await llmSay('You want to buy real-time Solana market intelligence from Agent Oracle. Say you are initiating the trade in 1 sentence.', TRADER_SYS);+ const traderLine1 = await llmSay('You want to buy real-time Solana market intelligence from Agent Oracle. Say you are initiating the trade in 1 sentence.', TRADER_SYS, 'Initiating a purchase from Oracle — preparing payment now.');if (traderLine1) { setBubble('speech-trader', traderLine1); speakTrader(traderLine1); }addLog('INIT', 'Trader agent initiating purchase from Oracle…');@@ -463,13 +545,18 @@ async function runTrade() {const evtSource = new EventSource('/api/demo/economy?trade=1');evtSource.addEventListener('thinking', (e) => {+ gotEvent = true;const d = JSON.parse(e.data);addLog('THINK', d.text);});evtSource.addEventListener('demo_mode', (e) => {+ gotEvent = true;+ demoMode = true;const d = JSON.parse(e.data);addLog('DEMO', d.text);+ setBubble('speech-trader', 'No real payment in demo mode — showing live data only.');+ speakTrader('No real payment in demo mode — showing live data only.');waveOracle();});@@ -477,7 +564,7 @@ async function runTrade() {const d = JSON.parse(e.data);addLog('PAY', d.text);fireBeam(true); // B → A payment beam- const line = await llmSay('You are about to send SOL to Agent Oracle as payment. React in 1 sentence.', TRADER_SYS);+ const line = await llmSay('You are about to send SOL to Agent Oracle as payment. React in 1 sentence.', TRADER_SYS, 'Locking in the SOL transfer to Oracle now.');if (line) { setBubble('speech-trader', line); speakTrader(line); }});@@ -487,7 +574,7 @@ async function runTrade() {triggerFlash();flashAgent('A');refreshStatus();- const line = await llmSay('You just received SOL payment from Agent Trader. React with excitement in 1 sentence.', ORACLE_SYS);+ const line = await llmSay('You just received SOL payment from Agent Trader. React with excitement in 1 sentence.', ORACLE_SYS, 'Payment received — pulling the latest signals now.');if (line) { setBubble('speech-oracle', line); speakOracle(line); }waveOracle();});@@ -502,18 +589,33 @@ async function runTrade() {addLog('DELIVER', d.text);drawTvData(d.markets);fireBeam(false); // A → B data beam- const line = await llmSay(`You just delivered ${d.markets?.length || ''} live Solana market signals to Trader. Say it confidently in 1 sentence.`, ORACLE_SYS);+ const line = await llmSay(`You just delivered ${d.markets?.length || ''} live Solana market signals to Trader. Say it confidently in 1 sentence.`, ORACLE_SYS, 'Fresh Solana market signals delivered — straight from the chain.');if (line) { setBubble('speech-oracle', line); speakOracle(line); }- const line2 = await llmSay('You just received live Solana market intelligence from Agent Oracle. React in 1 sentence.', TRADER_SYS);+ const line2 = await llmSay('You just received live Solana market intelligence from Agent Oracle. React in 1 sentence.', TRADER_SYS, 'Got the intel — reading the market now.');if (line2) { setBubble('speech-trader', line2); speakTrader(line2); }waveTrader();});evtSource.addEventListener('error', (e) => {- try {- const d = JSON.parse(e.data);- addLog('ERROR', d.text);- } catch {+ // SSE 'error' fires for both server-emitted error events (with data) and+ // native transport failures (no data — e.g. the 401 anon visitors hit).+ if (e?.data) {+ try {+ const d = JSON.parse(e.data);+ addLog('ERROR', d.text);+ if (d.code === 'underfunded' && d.fundAddress) {+ showFundNotice(d.fundAddress, d.explorerUrl);+ }+ } catch {+ addLog('ERROR', 'Stream interrupted');+ }+ } else if (!gotEvent) {+ // Never received a single server beat → the live trade couldn't start.+ // The trade stream requires a signed-in session.+ addLog('ERROR', 'Could not start the live trade.');+ showInfoNotice('Sign in to run a live on-chain trade',+ 'The agent-economy trade settles real SOL on Solana, so it needs a signed-in session. <a class="nt-act" href="/login" style="margin-left:6px">Sign in ↗</a>');+ } else {addLog('ERROR', 'Stream interrupted');}evtSource.close();@@ -521,8 +623,14 @@ async function runTrade() {});evtSource.addEventListener('done', (e) => {+ gotEvent = true;const d = JSON.parse(e.data);- addLog('DONE', `Trade complete. ${d.markets?.length || 0} signals delivered, ${d.tradeSol} SOL settled on-chain.`);+ const n = d.markets?.length || 0;+ if (d.paid) {+ addLog('DONE', `Trade complete. ${n} signals delivered, ${d.tradeSol} SOL settled on-chain.`);+ } else {+ addLog('DONE', `Demo complete. ${n} live signals delivered — no real payment occurred.`);+ }evtSource.close();finishTrade();refreshStatus();@@ -548,11 +656,11 @@ setInterval(refreshStatus, 10000);// GreetingssetTimeout(async () => {- const g = await llmSay('Introduce yourself in 1 sentence. You are Agent Oracle, a live 3D AI agent selling Solana market data on three.ws.', ORACLE_SYS);+ const g = await llmSay('Introduce yourself in 1 sentence. You are Agent Oracle, a live 3D AI agent selling Solana market data on three.ws.', ORACLE_SYS, "I'm Oracle — live Solana market intelligence, settled on-chain.");if (g) { setBubble('speech-oracle', g); speakOracle(g); }}, 3000);setTimeout(async () => {- const g = await llmSay('Introduce yourself in 1 sentence. You are Agent Trader, a live 3D AI agent that buys market intelligence on-chain on three.ws.', TRADER_SYS);+ const g = await llmSay('Introduce yourself in 1 sentence. You are Agent Trader, a live 3D AI agent that buys market intelligence on-chain on three.ws.', TRADER_SYS, "I'm Trader — I buy live market data on-chain, fast.");if (g) { setBubble('speech-trader', g); speakTrader(g); }}, 5500);</script>diff --git a/pages/marketplace-analytics.html b/pages/marketplace-analytics.htmlindex 0cc6bf835..081dd99bf 100644--- a/pages/marketplace-analytics.html+++ b/pages/marketplace-analytics.html@@ -134,13 +134,21 @@<div class="an-section"><h2>Top Skills <span id="top-skills-count" class="an-count">10</span></h2><div class="rank-list" id="top-skills-list">- ${Array.from({length:5},(_,i)=>`<div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:${i*0.1}s;"></div>`).join('')}+ <div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:0s;"></div>+ <div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:.1s;"></div>+ <div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:.2s;"></div>+ <div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:.3s;"></div>+ <div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:.4s;"></div></div></div><div class="an-section"><h2>Top Agents <span id="top-agents-count" class="an-count">10</span></h2><div class="rank-list" id="top-agents-list">- ${Array.from({length:5},(_,i)=>`<div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:${i*0.1}s;"></div>`).join('')}+ <div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:0s;"></div>+ <div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:.1s;"></div>+ <div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:.2s;"></div>+ <div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:.3s;"></div>+ <div class="skeleton-rank skeleton" style="margin-bottom:0;animation-delay:.4s;"></div></div></div></div>diff --git a/pages/oracle.html b/pages/oracle.htmlindex a29fe8837..7d44dfcfb 100644--- a/pages/oracle.html+++ b/pages/oracle.html@@ -545,7 +545,7 @@<button data-fsort="hot">Hot</button><button data-fsort="new">New</button></div>- <div style="position:relative;flex:1;min-width:230px;max-width:320px"><input class="sel" id="mintSearch" placeholder="Search symbol or paste mint…" aria-label="Search by symbol, name, or paste a mint address" autocomplete="off" style="width:100%" /></div>+ <div style="position:relative;flex:1 1 180px;min-width:0;max-width:320px"><input class="sel" id="mintSearch" placeholder="Search symbol or paste mint…" aria-label="Search by symbol, name, or paste a mint address" autocomplete="off" style="width:100%" /></div></div><div id="hotSectors" class="hs-wrap" style="display:none"></div><div class="grid" id="feedGrid"></div>diff --git a/pages/play/arena.html b/pages/play/arena.htmlindex d9ca55674..4475eaaee 100644--- a/pages/play/arena.html+++ b/pages/play/arena.html@@ -81,6 +81,7 @@.btn:active { transform: translateY(0) scale(.97); }.btn.primary { background: linear-gradient(135deg, color-mix(in srgb, var(--cyan) 22%, var(--panel)), color-mix(in srgb, var(--violet) 22%, var(--panel))); border-color: color-mix(in srgb, var(--cyan) 40%, var(--line)); color: #fff; }.btn svg { width: 16px; height: 16px; }+ @media (max-width: 560px) { .arena-nav .nav-lbl { display: none; } .arena-nav { padding: 9px 11px; } }/* ── side panels ─────────────────────────────────── */.panel { position: fixed; z-index: 5; width: 326px; max-width: calc(100vw - 28px);@@ -109,6 +110,8 @@.row:hover { background: rgba(255,255,255,0.04); }.r-rank { font: 600 12px/1 var(--mono); color: var(--faint); }.r-av { width: 26px; height: 26px; border-radius: 8px; object-fit: cover; background: #161a27; border: 1px solid var(--line); }+ .r-av-fb { display: grid; place-items: center; font: 700 12px/1 var(--mono); color: var(--faint);+ background: radial-gradient(120% 100% at 50% 0%, #1b2233, #0d1018); }.r-name { font-size: 13px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.r-name small { display: block; font-weight: 400; font-size: 11px; color: var(--faint); }.r-pnl { font: 700 13px/1 var(--mono); }@@ -133,6 +136,9 @@.empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 13px; }.empty b { color: var(--ink); display: block; margin-bottom: 5px; }.empty .btn { margin-top: 12px; }+ .empty.reconnecting { color: var(--down); }+ .empty.reconnecting::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%;+ background: var(--down); vertical-align: middle; animation: pulse 1.8s infinite; }/* big-win banner */.banner { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px); z-index: 7;@@ -294,6 +300,10 @@<div class="bar"><a class="brand" href="/play"><img src="/favicon.ico" alt="" />three.ws <small>/ arena</small></a><span class="pill live" id="liveDot"><i></i> <span>connecting…</span></span>+ <a class="btn arena-nav" href="/agents">+ <svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="7" cy="6.5" r="2.6"/><path d="M2.5 16a4.5 4.5 0 0 1 9 0"/><circle cx="14.5" cy="7.5" r="2.1"/><path d="M13 13.2a4 4 0 0 1 4.5 2.8"/></svg>+ <span class="nav-lbl">All agents</span>+ </a><div class="spacer"></div><button class="btn primary" id="pickBtn"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="10" cy="6.5" r="3.2"/><path d="M4 17a6 6 0 0 1 12 0"/></svg>diff --git a/pages/playground.html b/pages/playground.htmlindex 16510ae99..173ac924a 100644--- a/pages/playground.html+++ b/pages/playground.html@@ -981,17 +981,41 @@});/* ── file upload ── */+ const MAX_UPLOAD_BYTES = 100 * 1024 * 1024; // 100 MB+ const fmtMB = (b) => `${(b / 1024 / 1024).toFixed(1)} MB`;+const handleFile = (file) => {if (!file) return;if (!file.name.toLowerCase().endsWith('.glb')) {- setStatus('Only .glb files are supported.', 'err');+ const ext = file.name.includes('.')+ ? file.name.split('.').pop().toLowerCase()+ : 'that file type';+ setStatus(+ `Can't load .${ext} — drop a binary glTF (.glb) instead.`,+ 'err',+ );+ return;+ }+ if (file.size === 0) {+ setStatus('That file is empty — pick a valid .glb model.', 'err');+ return;+ }+ if (file.size > MAX_UPLOAD_BYTES) {+ setStatus(+ `That model is ${fmtMB(file.size)} — keep it under ${fmtMB(MAX_UPLOAD_BYTES)} so it loads smoothly.`,+ 'err',+ );return;}const url = URL.createObjectURL(file);loadModel(url, file.name, file.size);};- upload.addEventListener('change', (e) => handleFile(e.target.files[0]));+ upload.addEventListener('change', (e) => {+ handleFile(e.target.files[0]);+ // Reset so re-selecting the same file still fires `change`.+ e.target.value = '';+ });/* ── drag & drop ── */dropzone.addEventListener('dragover', (e) => {diff --git a/pages/pricing.html b/pages/pricing.htmlindex a42a18e97..cfb575bbf 100644--- a/pages/pricing.html+++ b/pages/pricing.html@@ -627,6 +627,7 @@<script type="module">import * as THREE from 'three';import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';+ import { MeshoptDecoder } from 'three/addons/libs/meshopt_decoder.module.js';const canvas = document.getElementById('avatar-canvas');const tierCards = [...document.querySelectorAll('.pricing-tier-card')];@@ -851,7 +852,12 @@const CLIPS = ['idle', 'walk', 'wave', 'av-celebrating', 'av-brag-claps'];- new GLTFLoader().load('/avatars/cz.glb', (gltf) => {+ // cz.glb ships with EXT_meshopt_compression — the decoder must be wired+ // before the loader can parse a single bufferView, otherwise GLTFLoader+ // throws "setMeshoptDecoder must be called before loading compressed files".+ const gltfLoader = new GLTFLoader();+ gltfLoader.setMeshoptDecoder(MeshoptDecoder);+ gltfLoader.load('/avatars/cz.glb', (gltf) => {avatar = gltf.scene;avatar.traverse((n) => {if (!rootBone && /^(Hips|Root|mixamorig:?Hips)$/i.test(n.name)) rootBone = n;diff --git a/pages/pump-dashboard.html b/pages/pump-dashboard.htmlindex 34d0bc574..b12706413 100644--- a/pages/pump-dashboard.html+++ b/pages/pump-dashboard.html@@ -96,6 +96,37 @@#pd-market-chart {cursor: crosshair;}+ /* Recoverable feed-error banner (WS dead-feed + channel-feed failure) */+ .pd-feed-error {+ margin: 0.75rem;+ padding: 0.9rem 1rem;+ border: 1px solid rgba(248, 113, 113, 0.45);+ border-radius: 10px;+ background: rgba(248, 113, 113, 0.09);+ display: flex;+ flex-direction: column;+ align-items: flex-start;+ gap: 0.5rem;+ }+ .pd-feed-error-title {+ font-family: var(--font-display);+ font-size: 0.82rem;+ font-weight: 600;+ letter-spacing: 0.02em;+ color: var(--danger);+ }+ .pd-feed-error-msg {+ font-size: 0.8rem;+ line-height: 1.45;+ color: var(--ink-dim);+ }+ .pd-feed-error .pd-btn {+ margin-top: 0.15rem;+ }+ /* RPC-failure flag on the network panel's RPC sub-line */+ .pd-stat-sub.is-danger {+ color: var(--danger);+ }/* Oracle conviction panel */.pd-oracle-live-dot {display: inline-block; width: 7px; height: 7px; border-radius: 50%;@@ -1842,6 +1873,67 @@// ── Navigation ───────────────────────────────────────────────+ // All on-chain JSON-RPC POSTs go through here so failures are surfaced+ // (logged + reflected in the network panel's RPC line) instead of being+ // silently swallowed at each call site. Throws on transport/HTTP/RPC+ // errors so callers can decide how to recover.+ let _rpcErrorClearTimer = null;+ function markRpcError(detail) {+ const sub = $('pd-stat-rpc-sub');+ if (sub) {+ sub.textContent = 'RPC error · ' + detail;+ sub.classList.add('is-danger');+ }+ const dot = $('pd-sol-dot');+ if (dot) dot.className = 'pd-dot is-err';+ // The next network-stats refresh rewrites this line; clear the error+ // styling after a beat in case that refresh is also down so the panel+ // doesn't get stuck red.+ if (_rpcErrorClearTimer) clearTimeout(_rpcErrorClearTimer);+ _rpcErrorClearTimer = setTimeout(() => {+ if (sub) sub.classList.remove('is-danger');+ }, 8000);+ }+ function markRpcOk() {+ const sub = $('pd-stat-rpc-sub');+ if (sub) sub.classList.remove('is-danger');+ }++ async function rpcCall(rpcBody, { id = 1 } = {}) {+ let resp;+ try {+ resp = await fetch(state.rpcUrl, {+ method: 'POST',+ headers: { 'Content-Type': 'application/json' },+ body: JSON.stringify({ jsonrpc: '2.0', id, ...rpcBody }),+ });+ } catch (e) {+ console.warn('[pump-dashboard] RPC transport error:', e?.message || e);+ markRpcError('unreachable');+ throw new Error('RPC unreachable');+ }+ if (!resp.ok) {+ console.warn('[pump-dashboard] RPC HTTP', resp.status, 'from', state.rpcUrl);+ markRpcError('HTTP ' + resp.status);+ throw new Error('RPC HTTP ' + resp.status);+ }+ let data;+ try {+ data = await resp.json();+ } catch {+ markRpcError('bad response');+ throw new Error('RPC returned non-JSON');+ }+ if (data && data.error) {+ const msg = data.error.message || 'RPC error';+ console.warn('[pump-dashboard] RPC error:', msg);+ markRpcError(String(msg).slice(0, 40));+ throw new Error(msg);+ }+ markRpcOk();+ return data;+ }+function navigateTo(page) {state.currentPage = page;// Keep the URL shareable: every cockpit page is deep-linkable via its #hash.@@ -1964,14 +2056,27 @@return (words[0][0] + words[words.length - 1][0]).toUpperCase();}+ // Initials tile rendered locally — used as the no-avatar default and as+ // the onerror fallback when a remote avatar_url 404s or times out.+ function featuredInitialsTile(name) {+ return `<div style="width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:2.2rem;font-weight:700;color:var(--accent);background:linear-gradient(135deg,var(--surface-1),#161616)">${escapeHtml(initialsOf(name))}</div>`;+ }+function renderFeaturedAvatar(agent) {const slot = $('pd-featured-avatar');if (!slot) return;if (agent.avatar_url) {- slot.innerHTML = `<img src="${escapeHtml(agent.avatar_url)}" alt="${escapeHtml(agent.display_name || 'Agent')} avatar" style="width:100%;height:100%;object-fit:cover" loading="lazy" />`;+ slot.innerHTML = `<img alt="${escapeHtml(agent.display_name || 'Agent')} avatar" style="width:100%;height:100%;object-fit:cover" loading="lazy" />`;+ const img = slot.querySelector('img');+ // Swap to the local initials tile if the remote avatar fails to+ // load — never leave a broken-image icon in the card.+ img.addEventListener('error', () => {+ slot.innerHTML = featuredInitialsTile(agent.display_name);+ });+ img.src = agent.avatar_url;} else {// Never a stock placeholder — render the agent's initials.- slot.innerHTML = `<div style="width:100%;height:100%;display:flex;align-items:center;justify-content:center;font-family:var(--font-display);font-size:2.2rem;font-weight:700;color:var(--accent);background:linear-gradient(135deg,var(--surface-1),#161616)">${escapeHtml(initialsOf(agent.display_name))}</div>`;+ slot.innerHTML = featuredInitialsTile(agent.display_name);}}@@ -1991,6 +2096,7 @@nameEl.textContent = 'No agents available yet';descEl.textContent ='Be the first — create a 3D agent and it can be featured here.';+ linkEl.onclick = null;linkEl.textContent = 'Create agent';linkEl.href = '/create';if (statsEl) statsEl.hidden = true;@@ -2002,6 +2108,7 @@const { data: agent } = await resp.json();nameEl.textContent = agent.display_name || 'Untitled agent';descEl.textContent = agent.bio || 'A featured 3D agent on three.ws.';+ linkEl.onclick = null;linkEl.textContent = 'View profile';linkEl.href = agent.detail_url || '/agent/' + agent.id;if (statsEl) {@@ -2019,8 +2126,24 @@} catch {nameEl.textContent = 'Couldn’t load featured agent';descEl.textContent =- 'Try refreshing, or check connectivity in the Configuration tab.';+ 'The featured agent feed didn’t respond. Check connectivity in the Configuration tab, or retry.';if (statsEl) statsEl.hidden = true;+ const slot = $('pd-featured-avatar');+ if (slot) {+ slot.innerHTML =+ `<div style="width:100%;height:100%;display:flex;align-items:center;justify-content:center;color:var(--ink-dim);font-size:0.8rem;text-align:center;padding:0.5rem">Unavailable</div>`;+ }+ // Turn the primary CTA into a retry so the card is recoverable+ // without a full page reload.+ if (linkEl) {+ linkEl.textContent = 'Retry';+ linkEl.href = '#dashboard';+ linkEl.onclick = (e) => {+ e.preventDefault();+ linkEl.onclick = null;+ loadFeaturedAgent();+ };+ }}}@@ -2070,7 +2193,49 @@}}- function renderWalletHoldings(address, data) {+ // Deterministic, locally-drawn token-logo fallback (no external avatar+ // service). Produces a disc colored from the seed with the token's+ // leading character, returned as a data URI so a broken remote logo+ // can swap to it via onerror without another network request.+ const _tokenLogoFallbackCache = new Map();+ function tokenLogoFallback(seed, label) {+ const key = (seed || label || '?') + '|' + (label || '');+ const cached = _tokenLogoFallbackCache.get(key);+ if (cached) return cached;+ const size = 36; // 2× the 18px CSS box for crisp HiDPI+ const canvas = document.createElement('canvas');+ canvas.width = size;+ canvas.height = size;+ const ctx = canvas.getContext('2d');+ let uri = '';+ if (ctx) {+ let hash = 0;+ const s = String(seed || label || '?');+ for (let i = 0; i < s.length; i++)+ hash = (hash * 31 + s.charCodeAt(i)) >>> 0;+ const hue = hash % 360;+ ctx.fillStyle = 'hsl(' + hue + ' 58% 32%)';+ ctx.beginPath();+ ctx.arc(size / 2, size / 2, size / 2, 0, Math.PI * 2);+ ctx.fill();+ const ch =+ String(label || seed || '?')+ .replace(/^\$/, '')+ .trim()+ .charAt(0)+ .toUpperCase() || '?';+ ctx.fillStyle = 'hsl(' + hue + ' 70% 88%)';+ ctx.font = '600 18px system-ui, sans-serif';+ ctx.textAlign = 'center';+ ctx.textBaseline = 'middle';+ ctx.fillText(ch, size / 2, size / 2 + 1);+ uri = canvas.toDataURL('image/png');+ }+ _tokenLogoFallbackCache.set(key, uri);+ return uri;+ }++ function renderWalletHoldings(address, data) {const holdings = $('pd-wallet-holdings');const native = data.native || {};const solAmount = Number(native.amount || 0);@@ -2101,7 +2266,14 @@.map((t) => `<tr>- <td>${t.logo ? `<img class="pd-token-logo" src="${escapeHtml(t.logo)}" alt="" />` : ''}<span class="pd-mono">${escapeHtml(t.symbol || shortAddr(t.mint || ''))}</span></td>+ <td>${(() => {+ const fallback = tokenLogoFallback(t.mint || t.symbol, t.symbol);+ const src = t.logo || fallback;+ // onerror swaps a broken remote logo to the local+ // data-URI fallback exactly once (guarded so a failing+ // fallback can't loop).+ return `<img class="pd-token-logo" src="${escapeHtml(src)}" alt="" loading="lazy" data-fallback="${escapeHtml(fallback)}" onerror="if(this.dataset.fallback&&this.src!==this.dataset.fallback){this.src=this.dataset.fallback}else{this.remove()}" />`;+ })()}<span class="pd-mono">${escapeHtml(t.symbol || shortAddr(t.mint || ''))}</span></td><td style="text-align:right" class="pd-mono">${t.amount.toLocaleString(undefined, { maximumFractionDigits: 4 })}</td><td style="text-align:right" class="pd-mono">${t.usd > 0 ? '$' + t.usd.toLocaleString(undefined, { maximumFractionDigits: 2 }) : '—'}</td></tr>@@ -2326,13 +2498,57 @@// ── Channel feed (pre-populate Live Feed on load) ────────────+ function clearChannelFeedError() {+ const banner = $('pd-channel-feed-error');+ if (banner) banner.remove();+ }++ // Surfaces a recoverable error in the dashboard feed preview when the+ // channel-feed preload fails — otherwise the panel hangs on+ // "Waiting for the realtime feed…" with no way to recover before the+ // live WebSocket happens to deliver its first event.+ function showChannelFeedError() {+ const dashFeed = $('pd-dashboard-feed');+ if (!dashFeed) return;+ // If live events have already painted, don't cover them with an error.+ if (dashFeed.querySelector('.pd-feed-item')) return;+ clearChannelFeedError();+ const banner = document.createElement('div');+ banner.className = 'pd-feed-error';+ banner.id = 'pd-channel-feed-error';+ banner.setAttribute('role', 'alert');+ banner.innerHTML =+ '<div class="pd-feed-error-title">Couldn’t load recent activity</div>' ++ '<div class="pd-feed-error-msg">The activity feed didn’t respond. Live events will still stream in over the WebSocket once it connects.</div>';+ const btn = document.createElement('button');+ btn.type = 'button';+ btn.className = 'pd-btn pd-btn-sm';+ btn.textContent = 'Retry';+ btn.addEventListener('click', () => {+ btn.disabled = true;+ btn.textContent = 'Retrying…';+ preloadChannelFeed();+ });+ banner.appendChild(btn);+ const empty = dashFeed.querySelector('.pd-empty');+ if (empty) empty.remove();+ dashFeed.prepend(banner);+ }+async function preloadChannelFeed() {try {const r = await fetch('/api/pump/channel-feed?limit=40');- if (!r.ok) return;+ if (!r.ok) {+ showChannelFeedError();+ return;+ }const data = await r.json();const items = data.events || data.items || data;- if (!Array.isArray(items)) return;+ if (!Array.isArray(items)) {+ showChannelFeedError();+ return;+ }+ clearChannelFeedError();items.slice().reverse()@@ -2354,14 +2570,80 @@});});} catch {- /* preload is best-effort */+ showChannelFeedError();}}// ── WebSocket (PumpPortal realtime) ──────────────────────────+ // Exponential backoff with a hard cap. After MAX_RECONNECT_ATTEMPTS+ // consecutive failures we stop auto-retrying and surface a permanent+ // "feed stopped" state with a manual Reconnect button — otherwise a+ // sustained PumpPortal outage spins the page forever with no signal.+ const WS_BASE_BACKOFF_MS = 2000;+ const WS_MAX_BACKOFF_MS = 60000;+ const WS_MAX_RECONNECT_ATTEMPTS = 8;+ let wsReconnectAttempts = 0;+ let wsReconnectTimer = null;+ // Set while we are intentionally tearing the socket down (manual+ // reconnect / unload) so the onclose handler doesn't schedule a retry+ // on top of the fresh connection we're about to open.+ let wsClosingForReconnect = false;++ function clearWsDeadState() {+ const banner = $('pd-ws-dead-banner');+ if (banner) banner.remove();+ }++ // Renders the permanent dead-feed indicator into both feed panels+ // (dashboard preview + live feed) with a manual Reconnect control.+ function showWsDeadState() {+ const wsDot = $('pd-ws-dot');+ const wsLabel = $('pd-ws-status');+ if (wsDot) wsDot.className = 'pd-dot is-err';+ if (wsLabel) wsLabel.textContent = 'WS: feed stopped';++ clearWsDeadState();+ const banner = document.createElement('div');+ banner.className = 'pd-feed-error';+ banner.id = 'pd-ws-dead-banner';+ banner.setAttribute('role', 'alert');+ banner.innerHTML =+ '<div class="pd-feed-error-title">Realtime feed stopped</div>' ++ '<div class="pd-feed-error-msg">Could not reach the pump.fun stream after ' ++ WS_MAX_RECONNECT_ATTEMPTS ++ ' attempts. PumpPortal may be temporarily down.</div>';+ const btn = document.createElement('button');+ btn.type = 'button';+ btn.className = 'pd-btn pd-btn-sm';+ btn.textContent = 'Reconnect';+ btn.addEventListener('click', () => {+ wsReconnectAttempts = 0;+ clearWsDeadState();+ connectWebSocket();+ });+ banner.appendChild(btn);++ // Prefer the live-feed page panel; mirror into the dashboard preview.+ const liveFeed = $('pd-live-feed');+ const dashFeed = $('pd-dashboard-feed');+ if (liveFeed) {+ const liveEmpty = liveFeed.querySelector('.pd-empty');+ if (liveEmpty && !liveFeed.querySelector('.pd-feed-item')) liveEmpty.remove();+ liveFeed.prepend(banner);+ } else if (dashFeed) {+ dashFeed.prepend(banner);+ }+ }+function connectWebSocket() {+ if (wsReconnectTimer) {+ clearTimeout(wsReconnectTimer);+ wsReconnectTimer = null;+ }+ clearWsDeadState();if (state.ws) {+ wsClosingForReconnect = true;try {state.ws.close();} catch {}@@ -2370,11 +2652,30 @@const wsDot = $('pd-ws-dot');const wsLabel = $('pd-ws-status');wsDot.className = 'pd-dot is-warm';- wsLabel.textContent = 'WS: connecting…';+ wsLabel.textContent =+ wsReconnectAttempts > 0 ? 'WS: reconnecting…' : 'WS: connecting…';++ const scheduleReconnect = () => {+ if (wsReconnectAttempts >= WS_MAX_RECONNECT_ATTEMPTS) {+ showWsDeadState();+ return;+ }+ const delay = Math.min(+ WS_BASE_BACKOFF_MS * 2 ** wsReconnectAttempts,+ WS_MAX_BACKOFF_MS,+ );+ wsReconnectAttempts++;+ wsDot.className = 'pd-dot is-err';+ wsLabel.textContent = `WS: retry in ${Math.round(delay / 1000)}s`;+ wsReconnectTimer = setTimeout(connectWebSocket, delay);+ };try {+ wsClosingForReconnect = false;state.ws = new WebSocket(state.wsUrl);state.ws.onopen = () => {+ wsReconnectAttempts = 0;+ clearWsDeadState();wsDot.className = 'pd-dot is-on';wsLabel.textContent = 'WS: connected';if (/pumpportal\.fun/.test(state.wsUrl)) {@@ -2394,18 +2695,20 @@}};state.ws.onclose = () => {- wsDot.className = 'pd-dot';- wsLabel.textContent = 'WS: reconnecting…';- setTimeout(connectWebSocket, 3000);+ if (wsClosingForReconnect) {+ wsClosingForReconnect = false;+ return;+ }+ scheduleReconnect();};state.ws.onerror = () => {+ console.warn('[pump-dashboard] WebSocket error on', state.wsUrl);+ // onclose fires next and drives the backoff; just reflect the dot.wsDot.className = 'pd-dot is-err';- wsLabel.textContent = 'WS: error';};- } catch {- wsDot.className = 'pd-dot is-err';- wsLabel.textContent = 'WS: error';- setTimeout(connectWebSocket, 5000);+ } catch (e) {+ console.warn('[pump-dashboard] WebSocket construct failed:', e?.message || e);+ scheduleReconnect();}}@@ -2469,6 +2772,11 @@if (!feed) return;const empty = feed.querySelector('.pd-empty');if (empty) empty.remove();+ // A live event arriving clears any recoverable error banners — the+ // feed is demonstrably working again.+ if (feedId === 'pd-dashboard-feed') clearChannelFeedError();+ const deadBanner = feed.querySelector('#pd-ws-dead-banner');+ if (deadBanner) deadBanner.remove();const div = document.createElement('div');div.className = 'pd-feed-item';@@ -3339,30 +3647,22 @@}$('pd-scanner-results').hidden = true;try {- const [scanResp, holdersResp] = await Promise.all([- fetch(state.rpcUrl, {- method: 'POST',- headers: { 'Content-Type': 'application/json' },- body: JSON.stringify({- jsonrpc: '2.0',- id: 1,+ const [scanData, holdersData] = await Promise.all([+ rpcCall(+ {method: 'getAccountInfo',params: [mint, { encoding: 'jsonParsed' }],- }),- }),- fetch(state.rpcUrl, {- method: 'POST',- headers: { 'Content-Type': 'application/json' },- body: JSON.stringify({- jsonrpc: '2.0',- id: 2,+ },+ { id: 1 },+ ),+ rpcCall(+ {method: 'getTokenLargestAccounts',params: [mint],- }),- }),+ },+ { id: 2 },+ ),]);- const scanData = await scanResp.json();- const holdersData = await holdersResp.json();const account = scanData.result?.value;if (!account) {toast('Token not found on-chain', 'error');@@ -3431,12 +3731,8 @@let isPump = false;try {- const bcResp = await fetch(state.rpcUrl, {- method: 'POST',- headers: { 'Content-Type': 'application/json' },- body: JSON.stringify({- jsonrpc: '2.0',- id: 3,+ const bcData = await rpcCall(+ {method: 'getProgramAccounts',params: ['6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P',@@ -3445,12 +3741,13 @@dataSlice: { offset: 0, length: 1 },},],- }),- });- const bcData = await bcResp.json();+ },+ { id: 3 },+ );isPump = bcData.result && bcData.result.length > 0;} catch {- /* skip */+ // Optional enrichment; rpcCall already logged + flagged. The+ // core scan still completes without the pump-curve check.}if (isPump) {@@ -3859,6 +4156,9 @@localStorage.setItem('pumpbot-rpc-url', state.rpcUrl);$('pd-api-endpoint-display').textContent = state.apiUrl;connectApi();+ // A manual save is an explicit retry — reset the backoff so the new+ // endpoint gets a full attempt and any dead-feed banner is cleared.+ wsReconnectAttempts = 0;connectWebSocket();toast('Configuration saved — testing connections', 'success');@@ -4333,24 +4633,18 @@async function getMintDecimals(mint) {if (mint in _decimalsCache) return _decimalsCache[mint];try {- const r = await fetch(state.rpcUrl, {- method: 'POST',- headers: { 'Content-Type': 'application/json' },- body: JSON.stringify({- jsonrpc: '2.0',- id: 1,- method: 'getAccountInfo',- params: [mint, { encoding: 'jsonParsed' }],- }),+ const d = await rpcCall({+ method: 'getAccountInfo',+ params: [mint, { encoding: 'jsonParsed' }],});- const d = await r.json();const dec = d.result?.value?.data?.parsed?.info?.decimals;if (typeof dec === 'number') {_decimalsCache[mint] = dec;return dec;}} catch {- /* fall through */+ // rpcCall already logged + flagged the network panel; fall back to+ // the SPL default so revenue math still renders.}return 6;}diff --git a/pages/pump-live.html b/pages/pump-live.htmlindex a2f482f7b..e9f0b4a15 100644--- a/pages/pump-live.html+++ b/pages/pump-live.html@@ -269,32 +269,85 @@padding: 4px 0 12px;}- /* ── Error state ───────────────────────────────────── */+ /* ── Stopped / dead-feed state ─────────────────────────+ Distinct from the transient "reconnecting…" status (amber, in the+ header). This is the terminal state after auto-reconnect gives up:+ a heavier, unmistakable panel so the user knows the stream is fully+ stopped and only a manual reconnect will revive it. */.feed-error {- margin: 12px 8px;- padding: 20px 16px;- border: 1px solid #5a2222;- background: rgba(255, 65, 65, 0.06);- border-radius: 8px;+ margin: 16px 8px;+ padding: 24px 18px;+ border: 1px solid #6b2a2a;+ background: linear-gradient(180deg, rgba(255, 65, 65, 0.10), rgba(255, 65, 65, 0.04));+ border-radius: 10px;text-align: center;+ box-shadow: 0 0 0 1px rgba(255, 65, 65, 0.08) inset;+ }+ .feed-error .fe-icon {+ font-size: 26px;+ line-height: 1;+ margin-bottom: 10px;+ display: block;+ filter: grayscale(0.15);}- .feed-error h3 { color: #ff6b6b; font-size: 14px; margin-bottom: 6px; }- .feed-error p { color: #999; font-size: 12px; margin-bottom: 14px; line-height: 1.5; }+ .feed-error h3 {+ color: #ff6b6b;+ font-size: 15px;+ margin-bottom: 8px;+ letter-spacing: 0.01em;+ }+ .feed-error p { color: #aaa; font-size: 12px; margin-bottom: 16px; line-height: 1.55; }+ .feed-error p .fe-attempts { color: #ff8a8a; font-variant-numeric: tabular-nums; }.feed-error button {background: var(--green);color: #0a0a0a;border: none;border-radius: 6px;- padding: 9px 18px;+ padding: 10px 22px;font-family: inherit;font-size: 13px;font-weight: bold;cursor: pointer;transition: transform 0.15s, box-shadow 0.15s, filter 0.15s;}- .feed-error button:hover { filter: brightness(1.1); box-shadow: 0 0 12px var(--glow-color); }+ .feed-error button:hover { filter: brightness(1.1); box-shadow: 0 0 14px var(--glow-color); }.feed-error button:active { transform: translateY(1px); }.feed-error button:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }+ .feed-error button[disabled] { filter: grayscale(0.6) brightness(0.8); cursor: progress; box-shadow: none; }++ /* ── SOL-price loading hint ────────────────────────────+ Shown in the header until /api/pump/helius-stats returns a USD price.+ Until then market caps render in SOL — this label flags that so the+ numbers never silently look stale. It clears the moment price lands. */+ #price-hint {+ display: none;+ align-items: center;+ gap: 6px;+ font-size: 11px;+ color: #c9a227;+ background: rgba(201, 162, 39, 0.08);+ border: 1px solid rgba(201, 162, 39, 0.22);+ border-radius: 999px;+ padding: 2px 10px;+ white-space: nowrap;+ cursor: help;+ }+ #price-hint.visible { display: inline-flex; }+ #price-hint .ph-dot {+ width: 7px; height: 7px; border-radius: 50%;+ background: #c9a227;+ box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.6);+ animation: phPulse 1.6s ease-in-out infinite;+ flex-shrink: 0;+ }+ @keyframes phPulse {+ 0% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0.5); }+ 70% { box-shadow: 0 0 0 6px rgba(201, 162, 39, 0); }+ 100% { box-shadow: 0 0 0 0 rgba(201, 162, 39, 0); }+ }+ @media (prefers-reduced-motion: reduce) {+ #price-hint .ph-dot { animation: none; }+ }/* ── Scrollbar ─────────────────────────────────────── */::-webkit-scrollbar { width: 8px; }@@ -338,6 +391,11 @@<div id="header"><h1>🚀 3D Agent Live Feed</h1><div class="status" id="status">● Connecting...</div>+ <span id="price-hint" role="status" aria-live="polite"+ title="Live SOL→USD price is loading. Market caps show in SOL until it arrives, then switch to USD.">+ <span class="ph-dot" aria-hidden="true"></span>+ <span>Caps in SOL — loading USD price…</span>+ </span><nav class="header-links" aria-label="Explore the launchpad"><a href="/launches">All launches →</a><a href="/pump-visualizer">Visualizer →</a>@@ -413,12 +471,38 @@let solPrice = 0;+ // While solPrice is 0 the header shows a "caps in SOL — loading USD price"+ // hint so the SOL-denominated figures never silently read as stale USD. The+ // hint clears the instant a real price lands, and any cards already on screen+ // upgrade their market cap to USD in place.+ function setPriceHint(loading) {+ const hint = document.getElementById('price-hint');+ if (hint) hint.classList.toggle('visible', loading);+ }++ // Re-render the market-cap line on every card from its stored SOL value, so a+ // price refresh retroactively converts SOL → USD without re-fetching tokens.+ function rehydrateMarketCaps() {+ document.querySelectorAll('#feed .token-card[data-mcap-sol]').forEach((card) => {+ const mcEl = card.querySelector('.token-mcap');+ if (!mcEl) return;+ const mcSol = parseFloat(card.dataset.mcapSol);+ if (!Number.isFinite(mcSol)) return;+ mcEl.textContent = formatMcap(mcSol);+ });+ }+async function refreshSolPrice() {try {const r = await fetch('/api/pump/helius-stats', { headers: { accept: 'application/json' } });if (!r.ok) return;const d = await r.json();- if (typeof d.sol_price === 'number' && d.sol_price > 0) solPrice = d.sol_price;+ if (typeof d.sol_price === 'number' && d.sol_price > 0) {+ const wasUnpriced = solPrice === 0;+ solPrice = d.sol_price;+ setPriceHint(false);+ if (wasUnpriced) { rehydrateMarketCaps(); renderStats(); }+ }} catch { /* keep last known price; cards fall back to SOL-denominated MC */ }}@@ -536,6 +620,15 @@const usd = (n) => '$' + n.toLocaleString(undefined, { maximumFractionDigits: n < 1000 ? 2 : 0 });const isHttpUrl = (u) => typeof u === 'string' && /^https?:\/\//i.test(u);+ // Market-cap label from a SOL value — USD once the SOL price has loaded,+ // otherwise the real SOL figure (never a fabricated or placeholder USD).+ function formatMcap(mcSol) {+ if (mcSol == null || !Number.isFinite(mcSol)) return 'Market Cap: —';+ return solPrice > 0+ ? 'Market Cap: ' + usd(mcSol * solPrice)+ : 'Market Cap: ' + mcSol.toFixed(2) + ' SOL';+ }+function showSkeleton() {$log.innerHTML = '';for (let i = 0; i < 4; i++) {@@ -562,26 +655,48 @@$log.querySelectorAll('.skeleton-card, #feed-empty-hint, .feed-error').forEach((el) => el.remove());}+ // Terminal "feed stopped" panel — shown only after auto-reconnect has+ // exhausted all MAX_RECONNECT_ATTEMPTS tries. This is deliberately heavier and+ // more explicit than the transient amber "Reconnecting…" header status: the+ // stream is fully stopped and will not recover on its own. A prominent manual+ // Reconnect button restarts the backoff cycle from scratch.function showError() {$log.innerHTML = '';const box = document.createElement('div');box.className = 'feed-error';box.setAttribute('role', 'alert');+ const icon = document.createElement('span');+ icon.className = 'fe-icon';+ icon.setAttribute('aria-hidden', 'true');+ icon.textContent = '🛑';+const h = document.createElement('h3');- h.textContent = 'Live feed unavailable';+ h.textContent = 'Live feed stopped';+const p = document.createElement('p');- p.textContent = 'Could not reach the pump.fun launch stream after several attempts. PumpPortal may be temporarily down.';+ p.append(+ 'Auto-reconnect gave up after ',+ Object.assign(document.createElement('span'), {+ className: 'fe-attempts',+ textContent: `${MAX_RECONNECT_ATTEMPTS} attempts`,+ }),+ '. The pump.fun launch stream (PumpPortal) is unreachable right now. New launches won’t appear until you reconnect.',+ );+const btn = document.createElement('button');btn.type = 'button';- btn.textContent = 'Retry connection';+ btn.textContent = 'Reconnect';btn.addEventListener('click', () => {+ if (btn.disabled) return;+ btn.disabled = true;+ btn.textContent = 'Reconnecting…';reconnectAttempts = 0;- showSkeleton();+ showSkeleton(); // replaces the stopped panel with the waiting stateconnect();});- box.append(h, p, btn);+ box.append(icon, h, p, btn);$log.appendChild(box);}@@ -682,15 +797,14 @@const name = (token.name && String(token.name).trim()) || 'Unnamed Token';const symbol = token.symbol ? '$' + String(token.symbol).trim() : '';const mcSol = typeof token.marketCapSol === 'number' ? token.marketCapSol : null;- const mcapText = mcSol == null- ? 'Market Cap: —'- : solPrice > 0- ? 'Market Cap: ' + usd(mcSol * solPrice)- : 'Market Cap: ' + mcSol.toFixed(2) + ' SOL';+ const mcapText = formatMcap(mcSol);const card = document.createElement('article');card.className = 'token-card';card.dataset.mint = token.mint;+ // Stored so rehydrateMarketCaps() can convert SOL → USD in place once the+ // live SOL price lands, without re-fetching the token.+ if (mcSol != null) card.dataset.mcapSol = String(mcSol);// Real token art via the same-origin image proxy. /api/img resolves the// creator metadata JSON server-side (no client CORS), follows IPFS gateway@@ -777,6 +891,7 @@// render in SOL (real data) and upgrade to USD on the next paint; cards are// never blocked behind a price.renderStats();+ setPriceHint(true); // caps render in SOL until the first price landsconnect();refreshSolPrice();setInterval(refreshSolPrice, 60000);@@ -786,6 +901,40 @@// every 30s so cards that get scored while on screen upgrade automatically.const TIER_COLOR = { prime: '#c084fc', strong: '#34d399', lean: '#fbbf24', watch: '#94a3b8', avoid: '#f87171' };const BATCH_MAX = 20;+ const ORACLE_RETRIES = 2; // attempts after the first, with backoff+ const ORACLE_RETRY_BASE_MS = 600; // 600ms → 1200ms++ const sleep = (ms) => new Promise((res) => setTimeout(res, ms));++ // Fetch one chunk's conviction scores, retrying a bounded number of times on a+ // transient non-OK / network error so badges populate when the endpoint+ // recovers. Returns the parsed `results` map, or null if every attempt failed+ // (caller leaves the badges gracefully empty — no error spam). The single+ // surviving warn fires only after the last attempt, never per-attempt.+ async function fetchOracleChunk(chunk) {+ const url = `/api/oracle/batch?mints=${chunk.map(encodeURIComponent).join(',')}&network=mainnet`;+ for (let attempt = 0; attempt <= ORACLE_RETRIES; attempt++) {+ try {+ const r = await fetch(url);+ if (r.ok) {+ const { results = {} } = await r.json();+ return results;+ }+ if (attempt < ORACLE_RETRIES) {+ await sleep(ORACLE_RETRY_BASE_MS * 2 ** attempt);+ continue;+ }+ console.warn(`[pump-live] oracle batch failed (HTTP ${r.status}) after ${ORACLE_RETRIES + 1} attempts; badges stay empty this pass`);+ } catch (err) {+ if (attempt < ORACLE_RETRIES) {+ await sleep(ORACLE_RETRY_BASE_MS * 2 ** attempt);+ continue;+ }+ console.warn(`[pump-live] oracle batch error after ${ORACLE_RETRIES + 1} attempts:`, err?.message || err);+ }+ }+ return null;+ }async function enrichOracleBadges() {const badges = $log.querySelectorAll('[data-oracle-mint]');@@ -799,34 +948,31 @@// Chunk into batches of ≤20for (let i = 0; i < pending.length; i += BATCH_MAX) {const chunk = pending.slice(i, i + BATCH_MAX);- try {- const r = await fetch(`/api/oracle/batch?mints=${chunk.map(encodeURIComponent).join(',')}&network=mainnet`);- if (!r.ok) continue;- const { results = {} } = await r.json();- for (const mint of chunk) {- const d = results[mint];- if (!d || d.score == null) continue;- const badge = $log.querySelector(`[data-oracle-mint="${CSS.escape(mint)}"]`);- if (!badge || badge.hasChildNodes()) continue;- const color = TIER_COLOR[d.tier] || '#94a3b8';- const a = document.createElement('a');- a.className = 'pl-ob-link';- a.href = `/oracle?mint=${encodeURIComponent(mint)}`;- a.title = `Oracle conviction: ${d.score} (${d.tier})`;- a.setAttribute('aria-label', `Oracle ${d.tier} — score ${d.score}`);- a.innerHTML = `<span class="pl-ob-score" style="color:${color}">${d.score}</span><span class="pl-ob-tier" style="color:${color}">${d.tier}</span>`;- badge.appendChild(a);- // Re-evaluate filter for this card now that it has a conviction score.- const card = badge.closest('.token-card');- if (card) applyCardFilter(card);- // Increment the session prime counter.- if (d.tier === 'prime') {- primeCount++;- const el = document.getElementById('stat-prime');- if (el) el.textContent = primeCount;- }+ const results = await fetchOracleChunk(chunk);+ if (!results) continue; // exhausted retries — leave these badges empty+ for (const mint of chunk) {+ const d = results[mint];+ if (!d || d.score == null) continue;+ const badge = $log.querySelector(`[data-oracle-mint="${CSS.escape(mint)}"]`);+ if (!badge || badge.hasChildNodes()) continue;+ const color = TIER_COLOR[d.tier] || '#94a3b8';+ const a = document.createElement('a');+ a.className = 'pl-ob-link';+ a.href = `/oracle?mint=${encodeURIComponent(mint)}`;+ a.title = `Oracle conviction: ${d.score} (${d.tier})`;+ a.setAttribute('aria-label', `Oracle ${d.tier} — score ${d.score}`);+ a.innerHTML = `<span class="pl-ob-score" style="color:${color}">${d.score}</span><span class="pl-ob-tier" style="color:${color}">${d.tier}</span>`;+ badge.appendChild(a);+ // Re-evaluate filter for this card now that it has a conviction score.+ const card = badge.closest('.token-card');+ if (card) applyCardFilter(card);+ // Increment the session prime counter.+ if (d.tier === 'prime') {+ primeCount++;+ const el = document.getElementById('stat-prime');+ if (el) el.textContent = primeCount;}- } catch { /* non-fatal */ }+ }}updateFilterCount();}diff --git a/pages/pump-visualizer.html b/pages/pump-visualizer.htmlindex 9a609da8d..fa90cada3 100644--- a/pages/pump-visualizer.html+++ b/pages/pump-visualizer.html@@ -559,6 +559,54 @@padding: 18px 8px;}+ /* ── WebGL-unavailable fallback ─────────────────+ No usable 3D context → the legend becomes the primary, full-height list+ surface and a banner explains why. Never a blank canvas. */+ .vz-fallback {+ top: calc(var(--header-h, 3.5rem) + 56px);+ left: 50%;+ transform: translateX(-50%);+ max-width: min(620px, calc(100vw - 32px));+ display: flex;+ align-items: flex-start;+ gap: 10px;+ background: rgba(20, 12, 8, 0.92);+ border: 1px solid rgba(245, 158, 11, 0.4);+ border-radius: 10px;+ padding: 12px 14px;+ color: var(--vz-text);+ font-size: 12.5px;+ line-height: 1.45;+ box-shadow: 0 10px 30px rgba(0,0,0,0.5);+ }+ .vz-fallback .icon { color: #f59e0b; font-size: 16px; line-height: 1.2; flex-shrink: 0; }+ .vz-fallback .body b { color: #fcd34d; }+ .vz-fallback button {+ margin-top: 8px;+ background: transparent;+ border: 1px solid var(--vz-border);+ color: var(--vz-text);+ border-radius: 6px;+ padding: 5px 10px;+ font: inherit;+ font-size: 11px;+ cursor: pointer;+ }+ .vz-fallback button:hover { background: var(--accent-soft); }+ body.vz-no-webgl #vz-canvas-host { display: none; }+ body.vz-no-webgl .vz-intro { display: none; }+ body.vz-no-webgl .vz-ramp { display: none; }+ body.vz-no-webgl .vz-legend {+ top: calc(var(--header-h, 3.5rem) + 132px);+ bottom: 16px;+ left: 50%;+ transform: translateX(-50%);+ width: min(620px, calc(100vw - 32px));+ max-height: none;+ }+ body.vz-no-webgl .vz-legend li { padding: 8px 6px; }+ body.vz-no-webgl .vz-legend li .thumb { width: 26px; height: 26px; }+/* ── Market-cap tier key (bottom-right) ───────── */.vz-ramp {bottom: 16px;@@ -753,6 +801,14 @@<div class="label">Loading market</div></div>+ <div class="vz-overlay vz-fallback" id="vz-fallback" role="status" hidden>+ <span class="icon" aria-hidden="true">⚠</span>+ <div class="body">+ <div id="vz-fallback-text"><b>3D view unavailable.</b> Your device or browser doesn't support WebGL, so we're showing the live pump.fun feed as a list below. All data is real-time.</div>+ <button type="button" id="vz-fallback-retry">Try 3D again</button>+ </div>+ </div>+<aside class="vz-overlay vz-legend" id="vz-legend" hidden><div class="head">Top 20 by Market Cap</div><ol id="vz-legend-list"></ol>@@ -820,6 +876,13 @@const MAX_TOKEN_R = 6.0;const REFRESH_INTERVAL_MS = 60_000;const STATS_INTERVAL_MS = 5_000;+ // SSE reconnect with exponential backoff. The server cycles the stream every+ // ~90s (a normal `close` that does NOT count as a failure); only connections+ // that never opened count toward the cap. After FEED_MAX_RECONNECT_ATTEMPTS+ // consecutive failures we stop auto-retrying and surface a manual Reconnect.+ const FEED_BASE_BACKOFF_MS = 1_500;+ const FEED_MAX_BACKOFF_MS = 60_000;+ const FEED_MAX_RECONNECT_ATTEMPTS = 8;const LABEL_COUNT = 3; // always-on 3D labels for top-Nconst FLASH_DURATION_MS = 1800; // diff-flash on refresh (trending mode)const FEED_CAP = 60; // max simultaneous spheres in feed mode@@ -886,29 +949,96 @@// Start far out so we can fly in once data arrives.camera.position.set(0, 14, 180);- const renderer = new THREE.WebGLRenderer({ antialias: true, powerPreference: 'high-performance' });- renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));- renderer.outputColorSpace = THREE.SRGBColorSpace;- renderer.toneMapping = THREE.ACESFilmicToneMapping;- renderer.toneMappingExposure = 1.05;- host.appendChild(renderer.domElement);-- // Post-processing — bloom gives emissive (live red, accent purple) cinematic glow.- const composer = new EffectComposer(renderer);- composer.addPass(new RenderPass(scene, camera));- const bloomPass = new UnrealBloomPass(new THREE.Vector2(1, 1), 0.85, 0.55, 0.18);- composer.addPass(bloomPass);- composer.addPass(new OutputPass());-- const controls = new OrbitControls(camera, renderer.domElement);- controls.enableDamping = true;- controls.dampingFactor = 0.06;- controls.rotateSpeed = 0.6;- controls.zoomSpeed = 0.7;- controls.minDistance = 8;- controls.maxDistance = 160;- controls.autoRotate = true;- controls.autoRotateSpeed = 0.35;+ // ── WebGL capability check ────────────────────────────────────+ // Low-end / locked-down / software-blocked devices can lack a usable WebGL+ // context. Detect it up front; if the renderer can't be created we fall back+ // to a pure-DOM list view (the legend, un-capped) rather than leaving a blank+ // canvas. `webglOK` gates every GPU touchpoint below.+ function detectWebGL() {+ try {+ const test = document.createElement('canvas');+ const gl = test.getContext('webgl2') || test.getContext('webgl') || test.getContext('experimental-webgl');+ if (!gl || typeof gl.getParameter !== 'function') return false;+ if (gl.isContextLost && gl.isContextLost()) return false;+ return true;+ } catch { return false; }+ }++ let webglOK = detectWebGL();+ let renderer = null, composer = null, bloomPass = null, controls = null;++ if (webglOK) {+ try {+ renderer = new THREE.WebGLRenderer({ antialias: true, powerPreference: 'high-performance' });+ renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));+ renderer.outputColorSpace = THREE.SRGBColorSpace;+ renderer.toneMapping = THREE.ACESFilmicToneMapping;+ renderer.toneMappingExposure = 1.05;+ host.appendChild(renderer.domElement);++ // Post-processing — bloom gives emissive (live red, accent purple) cinematic glow.+ composer = new EffectComposer(renderer);+ composer.addPass(new RenderPass(scene, camera));+ bloomPass = new UnrealBloomPass(new THREE.Vector2(1, 1), 0.85, 0.55, 0.18);+ composer.addPass(bloomPass);+ composer.addPass(new OutputPass());++ controls = new OrbitControls(camera, renderer.domElement);+ controls.enableDamping = true;+ controls.dampingFactor = 0.06;+ controls.rotateSpeed = 0.6;+ controls.zoomSpeed = 0.7;+ controls.minDistance = 8;+ controls.maxDistance = 160;+ controls.autoRotate = true;+ controls.autoRotateSpeed = 0.35;++ // A context lost after creation (driver reset, mobile GPU recycle) would+ // otherwise freeze on the last frame — fall back to the list view.+ renderer.domElement.addEventListener('webglcontextlost', (ev) => {+ ev.preventDefault();+ enterListFallback('Your browser dropped the 3D rendering context. Showing the live list instead.');+ }, false);+ } catch (err) {+ console.warn('[pump-visualizer] WebGL renderer init failed, using list fallback:', err?.message || err);+ webglOK = false;+ renderer = composer = bloomPass = controls = null;+ }+ }++ // Switch the page into the pure-DOM list view. Idempotent — safe to call at+ // startup (no WebGL) or after a runtime context loss. Tears down any live+ // renderer, surfaces the explanatory banner, and lets the legend become the+ // primary, full-height list driven by the same real-time feed.+ let _listFallbackActive = false;+ function enterListFallback(message) {+ webglOK = false;+ if (renderer) {+ try { renderer.forceContextLoss?.(); } catch {}+ try { renderer.dispose(); } catch {}+ try { renderer.domElement.remove(); } catch {}+ renderer = composer = bloomPass = controls = null;+ }+ document.body.classList.add('vz-no-webgl');+ const banner = document.getElementById('vz-fallback');+ if (banner) {+ if (message) {+ const txt = document.getElementById('vz-fallback-text');+ if (txt) txt.innerHTML = `<b>3D view unavailable.</b> ${message}`;+ }+ banner.hidden = false;+ }+ // Make sure the intro overlay can never sit on top of the list.+ try { introEl?.classList.add('is-hidden'); } catch {}+ if (_listFallbackActive) return;+ _listFallbackActive = true;+ // Reveal the controls the WebGL path would unveil on first frame. The+ // intro overlay is hidden above; the feed's first event still calls+ // revealVisualizer() to finish removing it.+ try { controlsEl.hidden = false; } catch {}+ // Re-render whatever data we already have into the list.+ try { applyFilterAndRender(); } catch {}+ }// Lightsscene.add(new THREE.AmbientLight(0xffffff, 0.55));@@ -1014,6 +1144,36 @@return Math.abs(h);}+ // Local, dependency-free avatar for <img> elements (detail panel, legend+ // thumbs). Renders the same tinted symbol badge as fallbackTexture() so+ // avatars never depend on an external service that may be blocked.+ const _avatarCache = new Map();+ function localAvatarDataURL(symbol, seedMint) {+ const key = (seedMint || symbol || 'pump').toLowerCase();+ const cached = _avatarCache.get(key);+ if (cached) return cached;+ const size = 128;+ const c = document.createElement('canvas');+ c.width = size; c.height = size;+ const ctx = c.getContext('2d');+ const hue = hashStr(key) % 360;+ const grad = ctx.createRadialGradient(size / 2, size / 2, size / 8, size / 2, size / 2, size / 2);+ grad.addColorStop(0, `hsl(${hue}, 70%, 55%)`);+ grad.addColorStop(1, `hsl(${(hue + 40) % 360}, 70%, 25%)`);+ ctx.fillStyle = grad;+ ctx.fillRect(0, 0, size, size);+ ctx.fillStyle = '#fff';+ ctx.font = 'bold 48px "Space Grotesk", system-ui, sans-serif';+ ctx.textAlign = 'center';+ ctx.textBaseline = 'middle';+ const label = ((symbol || '?').slice(0, 4)).toUpperCase();+ ctx.fillText(label, size / 2, size / 2 + 3);+ const url = c.toDataURL('image/png');+ if (_avatarCache.size > 200) _avatarCache.clear();+ _avatarCache.set(key, url);+ return url;+ }+function loadTokenTexture(url, fallback) {return new Promise((resolve) => {if (!url) return resolve(fallback);@@ -1135,6 +1295,7 @@}function placeTokens(tokens) {+ if (!webglOK) return; // list-view fallback renders from state.all via the legend// Snapshot previous mcaps so the new entries can compute a delta.tokenMeshes.forEach((entry) => {const m = Number(entry.data?.usd_market_cap) || 0;@@ -1277,29 +1438,33 @@let hovered = null;let selected = null;- renderer.domElement.addEventListener('pointermove', (ev) => {- const rect = renderer.domElement.getBoundingClientRect();- pointer.x = ((ev.clientX - rect.left) / rect.width) * 2 - 1;- pointer.y = -((ev.clientY - rect.top) / rect.height) * 2 + 1;- tooltip.style.left = ev.clientX + 'px';- tooltip.style.top = ev.clientY + 'px';- });-- // Click vs drag detection — OrbitControls swallows drags but we still- // want to suppress clicks that came from a long mouse-down or movement.+ // Pointer interaction is only meaningful when there's a 3D canvas. Without+ // WebGL the list-view fallback drives navigation via legend clicks instead.let pressStart = null;- renderer.domElement.addEventListener('pointerdown', (ev) => {- pressStart = { x: ev.clientX, y: ev.clientY, t: Date.now() };- });- renderer.domElement.addEventListener('pointerup', (ev) => {- if (!pressStart) return;- const dx = ev.clientX - pressStart.x;- const dy = ev.clientY - pressStart.y;- const dt = Date.now() - pressStart.t;- pressStart = null;- if (Math.hypot(dx, dy) > 6 || dt > 350) return;- handleClick();- });+ if (renderer) {+ renderer.domElement.addEventListener('pointermove', (ev) => {+ const rect = renderer.domElement.getBoundingClientRect();+ pointer.x = ((ev.clientX - rect.left) / rect.width) * 2 - 1;+ pointer.y = -((ev.clientY - rect.top) / rect.height) * 2 + 1;+ tooltip.style.left = ev.clientX + 'px';+ tooltip.style.top = ev.clientY + 'px';+ });++ // Click vs drag detection — OrbitControls swallows drags but we still+ // want to suppress clicks that came from a long mouse-down or movement.+ renderer.domElement.addEventListener('pointerdown', (ev) => {+ pressStart = { x: ev.clientX, y: ev.clientY, t: Date.now() };+ });+ renderer.domElement.addEventListener('pointerup', (ev) => {+ if (!pressStart) return;+ const dx = ev.clientX - pressStart.x;+ const dy = ev.clientY - pressStart.y;+ const dt = Date.now() - pressStart.t;+ pressStart = null;+ if (Math.hypot(dx, dy) > 6 || dt > 350) return;+ handleClick();+ });+ }function visibleMeshes() {return tokenMeshes.filter((t) => t.visible).map((t) => t.mesh);@@ -1313,14 +1478,26 @@selectToken(data);}+ // A pump.fun mint is a base58 string (no 0/O/I/l). Guard navigation so a+ // missing/empty/malformed mint never produces a broken /coin3d?mint= URL.+ function isValidMint(mint) {+ return typeof mint === 'string' && /^[1-9A-HJ-NP-Za-km-z]{32,44}$/.test(mint.trim());+ }+ function openCoin3d(mint) {+ if (!isValidMint(mint)) return false;+ window.location.href = `/coin3d?mint=${encodeURIComponent(mint.trim())}`;+ return true;+ }+// Double-click drills straight into the full 3D coin page (same tab).- renderer.domElement.addEventListener('dblclick', () => {- raycaster.setFromCamera(pointer, camera);- const hits = raycaster.intersectObjects(visibleMeshes(), false);- if (!hits.length) return;- const mint = hits[0].object.userData.token?.mint;- if (mint) window.location.href = `/coin3d?mint=${encodeURIComponent(mint)}`;- });+ if (renderer) {+ renderer.domElement.addEventListener('dblclick', () => {+ raycaster.setFromCamera(pointer, camera);+ const hits = raycaster.intersectObjects(visibleMeshes(), false);+ if (!hits.length) return;+ openCoin3d(hits[0].object.userData.token?.mint);+ });+ }function setHovered(entry) {if (hovered === entry) return;@@ -1343,15 +1520,22 @@function selectToken(token) {const entry = tokenMeshes.find((t) => t.data.mint === token.mint);- if (!entry) return;- if (selected && selected !== entry) {- selected.ring.material.opacity = selected.isLive ? 0.45 : 0;- selected.ring.material.color.set(selected.isLive ? liveGlowHex(selected.data) : 0x8b5cf6);+ // In the list-view fallback there are no meshes — still open the detail+ // panel and highlight the legend row so selection works without WebGL.+ if (entry) {+ if (selected && selected !== entry) {+ selected.ring.material.opacity = selected.isLive ? 0.45 : 0;+ selected.ring.material.color.set(selected.isLive ? liveGlowHex(selected.data) : 0x8b5cf6);+ }+ selected = entry;+ selected.ring.material.color.set(0x34d399);+ selected.ring.material.opacity = 1;+ } else if (!webglOK) {+ selected = null;+ } else {+ return;}- selected = entry;- selected.ring.material.color.set(0x34d399);- selected.ring.material.opacity = 1;- controls.autoRotate = false;+ if (controls) controls.autoRotate = false;renderDetail(token);highlightLegend(token.mint);}@@ -1364,7 +1548,7 @@}detailEl.classList.remove('is-open');detailEl.setAttribute('aria-hidden', 'true');- controls.autoRotate = true;+ if (controls) controls.autoRotate = true;highlightLegend(null);}@@ -1393,7 +1577,7 @@// ── detail panel rendering ───────────────────────────────────function renderDetail(token) {const avatar = document.getElementById('vz-detail-avatar');- const fallbackAvatar = `https://api.dicebear.com/7.x/shapes/svg?seed=${encodeURIComponent(token.mint || token.symbol || 'x')}`;+ const fallbackAvatar = localAvatarDataURL(token.symbol, token.mint || token.symbol);avatar.src = proxiedImg(token.image_uri, token.mint || token.symbol) || fallbackAvatar;avatar.onerror = () => { avatar.onerror = null; avatar.src = fallbackAvatar; };@@ -1429,7 +1613,9 @@// it settles through the same-origin RPC proxy. Lazy-loaded on click so// the heavy Solana/pump SDKs never weigh down the visualizer bundle.linksEl.appendChild(buyButtonNode(token));- linksEl.appendChild(linkNode(`/coin3d?mint=${encodeURIComponent(token.mint)}`, 'Open in 3D →', { internal: true }));+ if (isValidMint(token.mint)) {+ linksEl.appendChild(linkNode(`/coin3d?mint=${encodeURIComponent(token.mint.trim())}`, 'Open in 3D →', { internal: true }));+ }linksEl.appendChild(linkNode(`https://pump.fun/coin/${token.mint}`, 'Pump.fun ↗'));linksEl.appendChild(linkNode(`https://solscan.io/token/${token.mint}`, 'Solscan ↗'));}@@ -1480,15 +1666,32 @@}}- const _oracleCache = new Map();+ // Bounded conviction cache — entries expire after ORACLE_TTL_MS (so a coin's+ // conviction can refresh over a long session) and the Map is capped at+ // ORACLE_CACHE_MAX (oldest evicted first) so it never creeps unbounded.+ const ORACLE_TTL_MS = 5 * 60 * 1000;+ const ORACLE_CACHE_MAX = 500;+ const _oracleCache = new Map(); // mint → { value, expires }async function fetchOracleConviction(mint) {- if (_oracleCache.has(mint)) return _oracleCache.get(mint);+ const now = Date.now();+ const hit = _oracleCache.get(mint);+ if (hit && hit.expires > now) {+ // Refresh LRU position so frequently-viewed coins survive eviction.+ _oracleCache.delete(mint);+ _oracleCache.set(mint, hit);+ return hit.value;+ }+ if (hit) _oracleCache.delete(mint);try {const r = await fetch(`/api/oracle/coin?mint=${encodeURIComponent(mint)}&network=mainnet`);if (!r.ok) return null;const d = await r.json();const cv = d?.conviction ? { score: d.conviction.score, tier: d.conviction.tier } : null;- _oracleCache.set(mint, cv);+ _oracleCache.set(mint, { value: cv, expires: now + ORACLE_TTL_MS });+ if (_oracleCache.size > ORACLE_CACHE_MAX) {+ const oldest = _oracleCache.keys().next().value;+ if (oldest !== undefined) _oracleCache.delete(oldest);+ }return cv;} catch { return null; }}@@ -1591,7 +1794,10 @@legendList.innerHTML = '';legendEl.classList.toggle('is-empty', tokens.length === 0);const isFeed = state.mode === 'feed' || state.mode === 'migrations';- tokens.slice(0, 20).forEach((token, i) => {+ // The 3D overlay legend stays compact (top 20); the list-view fallback is+ // the primary surface and renders everything it's handed.+ const cap = webglOK ? 20 : tokens.length;+ tokens.slice(0, cap).forEach((token, i) => {const li = document.createElement('li');li.dataset.mint = token.mint || '';if (token.is_currently_live) li.classList.add('is-live');@@ -1611,8 +1817,9 @@thumb.alt = '';thumb.loading = 'lazy';thumb.referrerPolicy = 'no-referrer';- thumb.src = proxiedImg(token.image_uri, token.mint || token.symbol) || `https://api.dicebear.com/7.x/shapes/svg?seed=${encodeURIComponent(token.mint || token.symbol || 'x')}`;- thumb.onerror = () => { thumb.onerror = null; thumb.src = `https://api.dicebear.com/7.x/shapes/svg?seed=${encodeURIComponent(token.mint || 'x')}`; };+ const thumbFallback = localAvatarDataURL(token.symbol, token.mint || token.symbol);+ thumb.src = proxiedImg(token.image_uri, token.mint || token.symbol) || thumbFallback;+ thumb.onerror = () => { thumb.onerror = null; thumb.src = thumbFallback; };const name = document.createElement('span');name.className = 'name';@@ -1902,18 +2109,30 @@// ── resize ───────────────────────────────────────────────────function resize() {+ if (!renderer || !composer) return; // nothing to size in list-view fallbackconst w = host.clientWidth || window.innerWidth;const h = host.clientHeight || window.innerHeight;renderer.setSize(w, h, false);composer.setSize(w, h);composer.setPixelRatio(Math.min(window.devicePixelRatio, 2));- bloomPass.setSize(w, h);+ if (bloomPass) bloomPass.setSize(w, h);camera.aspect = w / h;camera.updateProjectionMatrix();}window.addEventListener('resize', resize);+ // Respond to container resizes (sidebar toggles, devtools docking, CSS+ // breakpoint reflows) without requiring a reload. rAF-coalesced so a burst+ // of observer callbacks triggers a single renderer/camera update.+ let _resizeRaf = 0;+ if (typeof ResizeObserver !== 'undefined') {+ const ro = new ResizeObserver(() => {+ if (_resizeRaf) return;+ _resizeRaf = requestAnimationFrame(() => { _resizeRaf = 0; resize(); });+ });+ ro.observe(host);+ }resize();- animate();+ if (webglOK) animate();// ── state, filtering, sorting ────────────────────────────────const state = {@@ -1928,10 +2147,22 @@statsTimer: null,mintsPerMin: 0,gradsPerHour: 0,- seen: new Set(),+ seen: new Map(), // mint → last-seen epoch ms; TTL-bounded (see appendFeedToken)+ everOpened: false, // ever had a healthy SSE connection+ reconnectAttempts: 0, // consecutive failed reconnects (reset on open)+ dead: false, // permanent dead-feed state after the cap},};+ // A mint may legitimately re-appear in the firehose much later (e.g. a+ // graduation event for a token whose mint we saw days ago). Rather than an+ // arbitrary "drop oldest" Set that lets *recent* tokens re-enter and confuse+ // the viewer, we key by last-seen time: a mint is only re-admitted once it+ // has aged past FEED_SEEN_TTL_MS, and the dedupe Map self-prunes expired+ // entries so it stays bounded without re-admitting fresh ones.+ const FEED_SEEN_TTL_MS = 30 * 60 * 1000;+ const FEED_SEEN_MAX = 8192;+function sortTokens(tokens, mode) {const arr = tokens.slice();switch (mode) {@@ -1962,11 +2193,14 @@}function applyFilterAndRender() {+ // The list-view fallback is the primary surface, so it shows a deeper feed+ // (the 3D scene caps the legend to keep the overlay compact).+ const streamCap = webglOK ? 20 : 80;if (state.mode === 'feed' || state.mode === 'migrations') {// In stream modes `state.all` is already newest-first; no re-sort.const filtered = filterTokens(state.all, state.query);applyVisibility(filtered.map((t) => t.mint));- renderLegend(filtered.slice(0, 20));+ renderLegend(filtered.slice(0, streamCap));return;}const sorted = sortTokens(state.all, state.sortMode);@@ -2094,13 +2328,34 @@}function appendFeedToken(token) {- if (!token.mint || state.feed.seen.has(token.mint)) return;- state.feed.seen.add(token.mint);- if (state.feed.seen.size > 4096) {- // Bound the dedupe set; oldest forgotten mints can re-enter the scene,- // which is acceptable for a firehose visualizer.- const it = state.feed.seen.values();- for (let i = 0; i < 1024; i++) state.feed.seen.delete(it.next().value);+ if (!token.mint) return;+ const now = Date.now();+ const lastSeen = state.feed.seen.get(token.mint);+ if (lastSeen != null && now - lastSeen < FEED_SEEN_TTL_MS) {+ // Still within the dedupe window — refresh recency and skip the dupe.+ state.feed.seen.set(token.mint, now);+ return;+ }+ // New mint, or one that has aged past the TTL → admit and mark recency.+ state.feed.seen.set(token.mint, now);+ // Prune entries older than the TTL; only fall back to evicting the very+ // oldest if the Map is still over the hard cap after expiry pruning.+ if (state.feed.seen.size > FEED_SEEN_MAX) {+ for (const [mint, ts] of state.feed.seen) {+ if (now - ts >= FEED_SEEN_TTL_MS) state.feed.seen.delete(mint);+ }+ while (state.feed.seen.size > FEED_SEEN_MAX) {+ const oldest = state.feed.seen.keys().next().value;+ if (oldest === undefined) break;+ state.feed.seen.delete(oldest);+ }+ }+ // List-view fallback: keep the data flowing into state.all (and the+ // legend) but skip all GPU mesh allocation.+ if (!webglOK) {+ state.all.unshift(token);+ if (state.all.length > FEED_CAP * 2) state.all.length = FEED_CAP * 2;+ return;}const p = randomShellPoint();const shellR = SPHERE_RADIUS * (0.80 + Math.random() * 0.22);@@ -2187,14 +2442,21 @@function connectFeed() {disconnectFeed();+ state.feed.dead = false;+ hideFeedDeadState();const kind = state.feed.kind;const url = kind === 'graduation' ? MIGRATIONS_FEED_API : LIVE_FEED_API;const eventName = kind === 'graduation' ? 'graduation' : 'mint';const normalize = kind === 'graduation' ? normalizeFeedGraduation : normalizeFeedMint;const es = new EventSource(url);state.feed.es = es;+ // Did *this* connection ever open? A clean 90s server cycle (opened then+ // closed) is healthy and must not count toward the failure cap.+ let thisOpened = false;es.addEventListener('open', () => {+ thisOpened = true;state.feed.everOpened = true;+ state.feed.reconnectAttempts = 0; // healthy connection clears backoffif (firstLoad) revealVisualizer();statusEl.dataset.state = 'ready';updateStats();@@ -2212,9 +2474,9 @@if (firstLoad) revealVisualizer();});// Server keeps SSE open for 90s then sends `close` — we reconnect.- es.addEventListener('close', () => scheduleFeedReconnect());+ es.addEventListener('close', () => scheduleFeedReconnect(thisOpened));es.addEventListener('error', () => {- if (es.readyState === EventSource.CLOSED) scheduleFeedReconnect();+ if (es.readyState === EventSource.CLOSED) scheduleFeedReconnect(thisOpened);// Don't surface "unreachable" once we've had a working connection —// transient reconnects are normal (server cycles every 90s).else if (!state.feed.everOpened) {@@ -2230,10 +2492,65 @@state.feed.retryTimer = null;}- function scheduleFeedReconnect() {+ // Exponential backoff with a hard cap on both the delay and the attempt+ // count. A connection that opened cleanly (the normal 90s cycle) reconnects+ // immediately and resets backoff; only never-opened failures escalate the+ // delay, and after the cap we enter a permanent dead-feed state.+ function scheduleFeedReconnect(connectionWasHealthy) {if (state.mode !== 'feed' && state.mode !== 'migrations') return;clearTimeout(state.feed.retryTimer);- state.feed.retryTimer = setTimeout(connectFeed, 1200);+ if (connectionWasHealthy) {+ // Healthy cycle → quick reconnect, no penalty.+ state.feed.reconnectAttempts = 0;+ state.feed.retryTimer = setTimeout(connectFeed, FEED_BASE_BACKOFF_MS);+ return;+ }+ if (state.feed.reconnectAttempts >= FEED_MAX_RECONNECT_ATTEMPTS) {+ enterFeedDeadState();+ return;+ }+ const delay = Math.min(+ FEED_BASE_BACKOFF_MS * 2 ** state.feed.reconnectAttempts,+ FEED_MAX_BACKOFF_MS,+ );+ state.feed.reconnectAttempts++;+ statusEl.dataset.state = 'error';+ statusText.textContent = `Feed unreachable · retrying in ${Math.round(delay / 1000)}s (${state.feed.reconnectAttempts}/${FEED_MAX_RECONNECT_ATTEMPTS})`;+ state.feed.retryTimer = setTimeout(connectFeed, delay);+ }++ // Permanent dead-feed state: stop auto-retrying and offer a manual Reconnect.+ function enterFeedDeadState() {+ disconnectFeed();+ state.feed.dead = true;+ statusEl.dataset.state = 'error';+ statusText.textContent = 'Live feed offline';+ errorMessage.textContent = 'Could not reach the pump.fun firehose after several attempts. PumpPortal may be temporarily down.';+ const retry = document.getElementById('vz-error-retry');+ if (retry) retry.textContent = 'Reconnect';+ const heading = errorEl.querySelector('h3');+ if (heading) heading.textContent = 'Live feed offline';+ errorEl.hidden = false;+ }++ // Clear a previously-raised dead-feed error box and restore the trending+ // error copy, so a fresh connect attempt starts from a clean slate.+ function hideFeedDeadState() {+ if (errorEl.hidden) return;+ errorEl.hidden = true;+ const heading = errorEl.querySelector('h3');+ if (heading) heading.textContent = 'Could not load trending tokens';+ const retry = document.getElementById('vz-error-retry');+ if (retry) retry.textContent = 'Retry';+ }++ // Manual reconnect from the dead-feed state — reset the backoff and retry.+ // connectFeed() clears the dead-feed error box via hideFeedDeadState().+ function manualReconnectFeed() {+ state.feed.reconnectAttempts = 0;+ statusEl.dataset.state = 'loading';+ statusText.textContent = 'Reconnecting to pump.fun firehose…';+ connectFeed();}async function tickFeedStats() {@@ -2268,6 +2585,9 @@refreshBtn.disabled = true;errorEl.hidden = true;clearAllTokens();+ state.feed.everOpened = false;+ state.feed.reconnectAttempts = 0;+ state.feed.dead = false;legendHeadEl.textContent = 'Latest mints';statusEl.dataset.state = firstLoad ? 'loading' : 'ready';statusText.textContent = firstLoad ? 'Connecting to pump.fun firehose…' : 'pump.fun firehose · live mints';@@ -2308,6 +2628,9 @@refreshBtn.disabled = true;errorEl.hidden = true;clearAllTokens();+ state.feed.everOpened = false;+ state.feed.reconnectAttempts = 0;+ state.feed.dead = false;legendHeadEl.textContent = 'Latest migrations';statusEl.dataset.state = firstLoad ? 'loading' : 'ready';statusText.textContent = firstLoad ? 'Connecting to pump.fun firehose…' : 'pump.fun firehose · live migrations';@@ -2325,9 +2648,15 @@statusEl.dataset.mode = 'trending';modeBtns.forEach((b) => b.classList.toggle('is-active', b.dataset.mode === 'trending'));disconnectFeed();+ state.feed.dead = false;clearInterval(state.feed.statsTimer);state.feed.statsTimer = null;clearAllTokens();+ // Restore the trending error copy in case a dead-feed state edited it.+ const heading = errorEl.querySelector('h3');+ if (heading) heading.textContent = 'Could not load trending tokens';+ const retry = document.getElementById('vz-error-retry');+ if (retry) retry.textContent = 'Retry';legendHeadEl.textContent = 'Top 20 by Market Cap';loadData();}@@ -2450,7 +2779,15 @@clearSelection();loadData();});- errorRetry.addEventListener('click', () => loadData());+ // The error box is shared: in trending mode "Retry" reloads the snapshot; in+ // a live-stream dead-feed state it manually reconnects the SSE firehose.+ errorRetry.addEventListener('click', () => {+ if ((state.mode === 'feed' || state.mode === 'migrations') && state.feed.dead) {+ manualReconnectFeed();+ } else {+ loadData();+ }+ });// Pause auto-refresh / live feed when tab is hidden; resume on focus.document.addEventListener('visibilitychange', () => {@@ -2500,6 +2837,16 @@});})();+ // "Try 3D again" reloads the page so WebGL init runs fresh — the most+ // reliable way to recover a usable context after a software-block lifts or a+ // GPU reset clears.+ const fallbackRetryBtn = document.getElementById('vz-fallback-retry');+ if (fallbackRetryBtn) fallbackRetryBtn.addEventListener('click', () => window.location.reload());++ // If WebGL never came up, switch to the list view before booting the feed so+ // the very first event renders into the legend instead of a blank canvas.+ if (!webglOK) enterListFallback();+// Boot in live-firehose mode.enterFeedMode();</script>diff --git a/pages/shopper.html b/pages/shopper.htmlindex 988912606..c49f08b59 100644--- a/pages/shopper.html+++ b/pages/shopper.html@@ -38,6 +38,9 @@body { font-size: 15.5px; line-height: 1.55; min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }a { color: inherit; text-decoration: none; }button { font-family: inherit; cursor: pointer; }+ a:focus-visible, button:focus-visible, textarea:focus-visible, input:focus-visible {+ outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px;+ }::selection { background: var(--text); color: var(--bg); }.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }@media (max-width: 720px) { .wrap { padding-left: 20px; padding-right: 20px; } }@@ -229,6 +232,13 @@}.run-btn-row { margin-top: 20px; }+ .run-hint {+ margin: 10px 0 0; min-height: 0;+ font-size: 12.5px; line-height: 1.45;+ color: var(--text-3);+ }+ .run-hint.warn { color: #e6a820; }+ .run-hint:empty { display: none; }/* ── EXECUTION PANEL ─────────────────────────────────────── */.result-panel { min-height: 120px; }@@ -370,6 +380,21 @@font-size: 14px;}.empty-state svg { opacity: 0.3; margin-bottom: 16px; }+ .empty-tips {+ list-style: none; margin: 20px auto 0; padding: 0;+ max-width: 340px; text-align: left;+ display: flex; flex-direction: column; gap: 10px;+ }+ .empty-tips li {+ position: relative; padding-left: 20px;+ font-size: 12.5px; line-height: 1.5; color: var(--text-3);+ }+ .empty-tips li::before {+ content: ""; position: absolute; left: 4px; top: 8px;+ width: 5px; height: 5px; border-radius: 50%;+ background: var(--text-4);+ }+ .empty-tips strong { color: var(--text-2); font-weight: 500; }/* 402 badge */.badge-402 {@@ -408,12 +433,12 @@</a><div class="nav-main"><a href="/">Explore</a>- <a href="/pages/shopper.html" class="active">Endpoint Shopper</a>- <a href="/pages/marketplace.html">Marketplace</a>- <a href="/pages/fact-checker.html">Fact Checker</a>+ <a href="/shopper" class="active">Endpoint Shopper</a>+ <a href="/marketplace">Marketplace</a>+ <a href="/fact-checker">Fact Checker</a></div><div class="nav-end">- <a href="/pages/app-next.html" class="console">Dashboard</a>+ <a href="/app-next" class="console">Dashboard</a></div></div></nav>@@ -465,10 +490,11 @@</div><div class="run-btn-row">- <button id="run-btn" class="btn primary">+ <button id="run-btn" class="btn primary" type="button" aria-describedby="run-hint"><svg width="14" height="14" fill="none" viewBox="0 0 14 14"><path d="M3 2l9 5-9 5V2z" fill="currentColor"/></svg>Run Task</button>+ <p id="run-hint" class="run-hint" role="status" aria-live="polite"></p></div></div>@@ -477,6 +503,11 @@<div class="empty-state" id="empty-state"><svg width="40" height="40" fill="none" viewBox="0 0 40 40"><circle cx="20" cy="20" r="18" stroke="currentColor" stroke-width="1.5"/><path d="M14 20h12M20 14v12" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/></svg><div>Enter a task and click <strong>Run Task</strong> to begin</div>+ <ul class="empty-tips">+ <li>Set a <strong>max budget</strong> — the agent never spends past it on downstream calls.</li>+ <li>Running costs USDC: you'll pay once with a Base or Solana wallet when prompted.</li>+ <li>Try an example chip above to see the discover → plan → call → synthesize flow.</li>+ </ul></div></div>diff --git a/pages/smart-money.html b/pages/smart-money.htmlindex 89f676096..ebb8b7e98 100644--- a/pages/smart-money.html+++ b/pages/smart-money.html@@ -104,19 +104,41 @@/* wallet leaderboard */.lwrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }- .lhead, .lrow { display: grid; grid-template-columns: 38px 1fr 92px 78px 92px; gap: 10px; align-items: center; padding: 12px 16px; }- .lhead { font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint); border-bottom: 1px solid var(--line); }- .lrow { border-bottom: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; transition: background .16s; }- .lrow:last-child { border-bottom: none; }- .lrow:hover { background: rgba(255,255,255,0.04); }- .lrank { font: 700 14px/1 var(--mono); color: var(--faint); }+ .ltable { width: 100%; border-collapse: collapse; }+ .ltable thead th { font: 600 10.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--faint);+ border-bottom: 1px solid var(--line); padding: 12px 16px; text-align: left; background: none; }+ .ltable th.colhide, .ltable td.lstat { text-align: right; }+ .ltable th.lscore-h, .ltable td.lscore { text-align: right; }+ .lrow { width: 100%; transition: background .16s; cursor: pointer; }+ .lrow td { border-bottom: 1px solid var(--line); padding: 12px 16px; vertical-align: middle; }+ .lrow:last-child td { border-bottom: none; }+ .lrow:hover td { background: rgba(255,255,255,0.04); }+ .lrow:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }+ .lrank { font: 700 14px/1 var(--mono); color: var(--faint); width: 38px; }.lrank.top { color: var(--gold); }.lw { min-width: 0; display: flex; align-items: center; gap: 9px; }.lw-addr { font: 600 13px/1 var(--mono); overflow: hidden; text-overflow: ellipsis; }- .lscore { font: 800 16px/1 var(--mono); text-align: right; }- .lstat { font: 600 13px/1 var(--mono); text-align: right; color: var(--muted); }+ .lscore { font: 800 16px/1 var(--mono); }+ .lstat { font: 600 13px/1 var(--mono); color: var(--muted); }.lstat b { color: var(--ink); }- .colhide { text-align: right; }+ .lstat .lstat-k { display: none; }++ /* stale / reconnecting badge — shown when a background refresh fails while data is on screen */+ .stale-bar { display: none; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px;+ padding: 10px 14px; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--line));+ background: color-mix(in srgb, var(--gold) 10%, transparent); color: var(--gold);+ font: 600 12.5px/1.4 var(--mono); animation: fade .3s; }+ .stale-bar.on { display: flex; }+ .stale-bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex-shrink: 0;+ box-shadow: 0 0 0 0 rgba(251,191,36,.6); animation: pulse-gold 1.6s infinite; }+ @keyframes pulse-gold { 0%{box-shadow:0 0 0 0 rgba(251,191,36,.5)} 70%{box-shadow:0 0 0 6px rgba(251,191,36,0)} 100%{box-shadow:0 0 0 0 rgba(251,191,36,0)} }+ .stale-bar span { color: color-mix(in srgb, var(--gold) 70%, var(--ink)); }+ .stale-bar .stale-retry { margin-left: auto; padding: 6px 13px; border-radius: 999px;+ border: 1px solid color-mix(in srgb, var(--gold) 50%, var(--line)); background: rgba(0,0,0,0.2);+ color: var(--gold); font: 600 12px/1 var(--mono); transition: transform .12s, border-color .18s; }+ .stale-bar .stale-retry:hover { transform: translateY(-1px); border-color: var(--gold); }+ .stale-bar .stale-retry:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }+ .stale-bar .stale-retry[aria-busy="true"] { opacity: .6; pointer-events: none; }/* drawer */.drawer { position: fixed; inset: 0; z-index: 30; display: none; }@@ -156,10 +178,27 @@.foot b { color: var(--muted); }@media (max-width: 620px) {- .lhead, .lrow { grid-template-columns: 30px 1fr 70px 70px; }- .colhide { display: none; }+ .ltable th.colhide, .ltable td.colhide { display: none; }+ .ltable thead th, .lrow td { padding: 12px 12px; }+ .lrank { width: 30px; }.dr-panel { width: 100vw; }}+ /* ≤400px: stack each wallet into a single readable column (no squeezed numeric cells) */+ @media (max-width: 400px) {+ .ltable, .ltable thead, .ltable tbody, .ltable tr, .ltable td { display: block; }+ .ltable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }+ .lrow { border-bottom: 1px solid var(--line); padding: 14px 16px; }+ .lrow:last-child { border-bottom: none; }+ .lrow td { border-bottom: none; padding: 3px 0; text-align: left; }+ .lrow:hover td { background: none; }+ .lrow:hover { background: rgba(255,255,255,0.04); }+ .lrank { display: inline-block; width: auto; margin-right: 8px; }+ .ltable td.colhide { display: block; }+ .lstat { text-align: left; color: var(--muted); }+ .lstat .lstat-k { display: inline; color: var(--faint); margin-right: 6px; }+ .lscore { text-align: left; }+ .ltable td.lscore::before { content: 'Score '; color: var(--faint); font: 600 11px/1 var(--mono); }+ }@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; } }/* oracle conviction in coin drawer */@@ -200,16 +239,30 @@<button class="tab" data-view="wallets">Top wallets <span class="ct" id="ctWallets"></span></button></nav>+ <div class="stale-bar" id="staleBar" role="status" aria-live="polite" hidden>+ <i aria-hidden="true"></i>+ <div>Reconnecting to the radar — <span id="staleDetail">showing the last data we received, which may be stale.</span></div>+ <button class="stale-retry" id="staleRetry" type="button">Retry now</button>+ </div>+<section class="view on" id="view-feed"><div class="grid" id="feedGrid"></div></section><section class="view" id="view-wallets"><div class="lwrap">- <div class="lhead">- <div>#</div><div>Wallet</div><div class="colhide">Win rate</div><div class="colhide">Record</div><div style="text-align:right">Score</div>- </div>- <div id="walletList"></div>+ <table class="ltable" aria-label="Top pump.fun wallets by reputation score">+ <thead>+ <tr>+ <th scope="col" class="lrank-h">#</th>+ <th scope="col">Wallet</th>+ <th scope="col" class="colhide">Win rate</th>+ <th scope="col" class="colhide">Record</th>+ <th scope="col" class="lscore-h">Score</th>+ </tr>+ </thead>+ <tbody id="walletList"></tbody>+ </table></div></section>@@ -253,6 +306,29 @@}let timer = null;+ let hasData = false; // true once we've rendered at least one good payload+ let staleSince = 0; // timestamp of the first failure in the current stale streak+ let staleFails = 0; // consecutive failed refreshes while data is on screen++ function showStale() {+ const bar = $('staleBar');+ if (!staleSince) staleSince = Date.now();+ const mins = Math.floor((Date.now() - staleSince) / 60000);+ const last = $('stUpdated').textContent;+ let detail = mins >= 1+ ? `last good update was ${last || '—'} (${mins} min ago) — data may be stale.`+ : `showing the last data we received (updated ${last || '—'}), which may be stale.`;+ if (staleFails >= 3) detail = `couldn't reach the radar after ${staleFails} attempts — ${detail}`;+ $('staleDetail').textContent = detail;+ bar.hidden = false;+ bar.classList.add('on');+ }+ function clearStale() {+ staleSince = 0; staleFails = 0;+ const bar = $('staleBar');+ bar.classList.remove('on');+ bar.hidden = true;+ }async function getJSON(url) {const r = await fetch(url, { headers: { accept: 'application/json' } });@@ -324,24 +400,30 @@}function walletRow(w, i) {- return `<button class="lrow" data-wallet="${esc(w.wallet)}">- <div class="lrank ${i < 3 ? 'top' : ''}">${i + 1}</div>- <div class="lw"><span class="nlabel lb-${w.label}">${labelText[w.label] || w.label}</span><span class="lw-addr">${short(w.wallet)}</span></div>- <div class="lstat colhide">${Math.round(w.win_rate)}%</div>- <div class="lstat colhide"><b>${w.wins}</b>/${w.coins_judged}</div>- <div class="lscore ${scoreClass(w.smart_money_score)}">${Math.round(w.smart_money_score)}</div>- </button>`;+ return `<tr class="lrow" data-wallet="${esc(w.wallet)}" tabindex="0" role="button" aria-label="Wallet ${short(w.wallet)}, rank ${i + 1}, score ${Math.round(w.smart_money_score)}. Open details.">+ <td class="lrank ${i < 3 ? 'top' : ''}">${i + 1}</td>+ <td><div class="lw"><span class="nlabel lb-${w.label}">${labelText[w.label] || w.label}</span><span class="lw-addr">${short(w.wallet)}</span></div></td>+ <td class="lstat colhide"><span class="lstat-k">Win rate</span>${Math.round(w.win_rate)}%</td>+ <td class="lstat colhide"><span class="lstat-k">Record</span><b>${w.wins}</b>/${w.coins_judged}</td>+ <td class="lscore ${scoreClass(w.smart_money_score)}">${Math.round(w.smart_money_score)}</td>+ </tr>`;}function renderWallets(wallets) {const list = $('walletList');$('ctWallets').textContent = wallets.length ? `(${wallets.length})` : '';if (!wallets.length) {- list.innerHTML = `<div class="state"><b>No wallets ranked yet.</b>The graph is still accumulating verdicts. Wallets appear here once they have a few judged coins on record.</div>`;+ list.innerHTML = `<tr><td colspan="5"><div class="state"><b>No wallets ranked yet.</b>The graph is still accumulating verdicts. Wallets appear here once they have a few judged coins on record.</div></td></tr>`;return;}list.innerHTML = wallets.map(walletRow).join('');- list.querySelectorAll('.lrow').forEach((el) => el.addEventListener('click', () => openWallet(el.dataset.wallet)));+ list.querySelectorAll('.lrow').forEach((el) => {+ const open = () => openWallet(el.dataset.wallet);+ el.addEventListener('click', open);+ el.addEventListener('keydown', (e) => {+ if (e.key === 'Enter' || e.key === ' ') { e.preventDefault(); open(); }+ });+ });}const TIER_COLOR = { prime: '#c084fc', strong: '#34d399', lean: '#fbbf24', watch: '#94a3b8', avoid: '#f87171' };@@ -465,11 +547,34 @@$('stRanked').textContent = (board.wallets || []).length;$('stCoins').textContent = (feed.coins || []).length;$('stUpdated').textContent = new Date().toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' });+ hasData = true;+ clearStale();} catch (e) {- $('feedGrid').innerHTML = `<div class="state" style="grid-column:1/-1"><b>Couldn't reach the radar.</b>${esc(e.message)}<button class="btn primary" id="retry">Retry</button></div>`;- const r = $('retry'); if (r) r.addEventListener('click', refresh);+ // If we've never had data, this is a hard cold-start error: blank to the+ // recoverable error state. If data is already on screen, keep it and surface+ // a visible "reconnecting / may be stale" badge instead of silently going stale.+ if (!hasData) {+ $('feedGrid').innerHTML = `<div class="state" style="grid-column:1/-1"><b>Couldn't reach the radar.</b>${esc(e.message)}<button class="btn primary" id="retry">Retry</button></div>`;+ const r = $('retry'); if (r) r.addEventListener('click', refresh);+ } else {+ staleFails++;+ showStale();+ }+ }+ }++ async function manualRetry() {+ const btn = $('staleRetry');+ btn.setAttribute('aria-busy', 'true');+ const prev = btn.textContent;+ btn.textContent = 'Reconnecting…';+ try { await refresh(); }+ finally {+ btn.removeAttribute('aria-busy');+ btn.textContent = prev;}}+ $('staleRetry').addEventListener('click', manualRetry);// initial skeletons$('feedGrid').innerHTML = Array.from({ length: 6 }, () => '<div class="skel"></div>').join('');diff --git a/pages/three-live.html b/pages/three-live.htmlindex ce435e616..81e43ca83 100644--- a/pages/three-live.html+++ b/pages/three-live.html@@ -216,7 +216,7 @@<!-- Live trade ticker --><aside class="pl-overlay pl-ticker" id="pl-ticker"><div class="head">Live trades <span class="live">live</span></div>- <ol id="pl-ticker-list">+ <ol id="pl-ticker-list" role="list"><li class="empty" id="pl-ticker-empty">Live trades will appear here.</li></ol></aside>@@ -555,6 +555,11 @@const d = await r.json();const tk = d.token || {}; const pr = d.protocol || {};statsFailures = 0;+ // Recover from a prior stats-error badge once figures load again. Don't stomp+ // the live/quiet badge the trade stream owns — only clear the error state.+ if (heroEl.dataset.state === 'error') {+ setHero(recentTrades.length ? 'live' : 'connecting', recentTrades.length ? '$THREE · live' : '$THREE · connecting…');+ }if (tk.price_usd != null) priceEl.textContent = fmtUsd(tk.price_usd);const chg = Number(tk.price_change_24h);if (Number.isFinite(chg)) {@@ -575,7 +580,12 @@}} catch (err) {statsFailures++;- if (statsFailures >= 2) showToast('Live stats unavailable — retrying…');+ // Badge the error on the FIRST failure for fast feedback: the hero dot turns+ // red and the status line says so, then keep retrying on the poll interval.+ // Only flip the badge if a live trade stream isn't already proving the chain+ // is reachable; in that case the stats endpoint alone hiccupped.+ if (heroEl.dataset.state !== 'live') setHero('error', '$THREE · stats unavailable');+ showToast(statsFailures >= 2 ? 'Live stats still unavailable — retrying…' : 'Live stats unavailable — retrying…');}}diff --git a/pages/trades.html b/pages/trades.htmlindex 6b1f47aff..8edce3d31 100644--- a/pages/trades.html+++ b/pages/trades.html@@ -205,10 +205,10 @@<div class="tf-controls" aria-label="Feed filters"><div class="tf-seg" role="tablist" aria-label="Time window" id="tfWinSeg">- <button class="tf-seg-btn" data-win="1h" role="tab">1h</button>- <button class="tf-seg-btn on" data-win="24h" role="tab" aria-selected="true">24h</button>- <button class="tf-seg-btn" data-win="7d" role="tab">7d</button>- <button class="tf-seg-btn" data-win="30d" role="tab">30d</button>+ <button class="tf-seg-btn" data-win="1h" role="tab" aria-selected="false" tabindex="-1">1h</button>+ <button class="tf-seg-btn on" data-win="24h" role="tab" aria-selected="true" tabindex="0">24h</button>+ <button class="tf-seg-btn" data-win="7d" role="tab" aria-selected="false" tabindex="-1">7d</button>+ <button class="tf-seg-btn" data-win="30d" role="tab" aria-selected="false" tabindex="-1">30d</button></div><div class="tf-right-controls">diff --git a/pages/trending.html b/pages/trending.htmlindex aeeb18ed2..17bcfc237 100644--- a/pages/trending.html+++ b/pages/trending.html@@ -57,7 +57,12 @@<li class="tr-skeleton"></li></ol><div class="tr-empty" id="agentEmpty" hidden>No trending agents yet — check back soon.</div>- <div class="tr-error" id="agentError" hidden>Failed to load agents. <button class="tr-retry" id="agentRetry">Retry</button></div>+ <div class="tr-error" id="agentError" role="alert" hidden>+ <span class="tr-error-icon" aria-hidden="true">⚠️</span>+ <span class="tr-error-title">Couldn't load trending agents</span>+ <span class="tr-error-sub">Check your connection and try again.</span>+ <button class="tr-retry" id="agentRetry" type="button">↻ Retry</button>+ </div></section><section class="tr-section" id="sec-coins" aria-label="Top conviction coins">@@ -73,7 +78,12 @@<li class="tr-skeleton"></li></ol><div class="tr-empty" id="coinEmpty" hidden>No scored coins in the last 36 hours.</div>- <div class="tr-error" id="coinError" hidden>Failed to load coins. <button class="tr-retry" id="coinRetry">Retry</button></div>+ <div class="tr-error" id="coinError" role="alert" hidden>+ <span class="tr-error-icon" aria-hidden="true">⚠️</span>+ <span class="tr-error-title">Couldn't load conviction coins</span>+ <span class="tr-error-sub">Check your connection and try again.</span>+ <button class="tr-retry" id="coinRetry" type="button">↻ Retry</button>+ </div></section></div>@@ -221,10 +231,26 @@padding: 40px 20px; text-align: center;font-size: 14px; color: #6b7280;}+ .tr-error {+ display: flex; flex-direction: column; align-items: center; gap: 14px;+ padding: 36px 24px; border: 1px solid rgba(248,113,113,.28);+ background: rgba(248,113,113,.05); border-radius: 12px;+ }+ .tr-error-icon { font-size: 26px; opacity: .85; line-height: 1; }+ .tr-error-title { font-size: 14px; font-weight: 600; color: #e5e7eb; }+ .tr-error-sub { font-size: 12.5px; color: #6b7280; }.tr-retry {- margin-left: 8px; color: #6366f1; background: none; border: none; cursor: pointer;- font-size: 14px; text-decoration: underline;+ display: inline-flex; align-items: center; gap: 7px;+ padding: 9px 18px; border-radius: 10px; cursor: pointer;+ font-size: 13px; font-weight: 600;+ color: #c7d2fe; background: rgba(99,102,241,.18);+ border: 1px solid rgba(99,102,241,.45);+ transition: background .15s, border-color .15s, color .15s;}+ .tr-retry:hover:not(:disabled) { background: rgba(99,102,241,.3); border-color: rgba(99,102,241,.7); color: #e0e7ff; }+ .tr-retry:disabled { opacity: .6; cursor: progress; }+ .tr-retry-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgba(199,210,254,.3); border-top-color: #c7d2fe; animation: tr-spin .7s linear infinite; }+ @keyframes tr-spin { to { transform: rotate(360deg); } }.tr-footnote {margin-top: 32px;@@ -274,8 +300,14 @@});// ── Retry buttons ───────────────────────────────────────────────────- $('#agentRetry').addEventListener('click', loadData);- $('#coinRetry').addEventListener('click', loadData);+ function retry(btn) {+ btn.disabled = true;+ const prev = btn.innerHTML;+ btn.innerHTML = '<span class="tr-retry-spin" aria-hidden="true"></span>Retrying…';+ loadData().finally(() => { btn.disabled = false; btn.innerHTML = prev; });+ }+ $('#agentRetry').addEventListener('click', (e) => retry(e.currentTarget));+ $('#coinRetry').addEventListener('click', (e) => retry(e.currentTarget));// ── Tier pill ───────────────────────────────────────────────────────function tierPill(tier) {@@ -287,6 +319,15 @@const compact = new Intl.NumberFormat('en', { notation: 'compact', maximumFractionDigits: 1 });function fmt(n) { return n == null ? '—' : compact.format(Number(n)); }+ // ── Safe link target ────────────────────────────────────────────────+ // API-supplied URLs can be null/empty/malformed. Accept only same-origin+ // absolute paths; otherwise fall back to a route built from known fields.+ function safeHref(raw, fallback) {+ const v = typeof raw === 'string' ? raw.trim() : '';+ if (v && (v.startsWith('/') || /^https?:\/\//i.test(v))) return v;+ return fallback || null;+ }+// ── Render agents ───────────────────────────────────────────────────function renderAgents(agents) {const list = $('#agentList');@@ -305,8 +346,15 @@: esc(initial);const onchainBadge = a.is_onchain ? '<span class="tr-onchain">◈ on-chain</span>' : '';const rankCls = a.rank <= 3 ? ` tr-rank-${a.rank}` : '';+ const name = a.name || 'Unnamed agent';+ const fallback = a.id != null ? `/agents/${encodeURIComponent(a.id)}` : null;+ const href = safeHref(a.agent_url, fallback);+ const tag = href ? 'a' : 'div';+ const attrs = href+ ? ` href="${esc(href)}" aria-label="Rank ${a.rank}: ${esc(name)}, ${esc(fmt(count))} chats"`+ : ` role="group" aria-label="Rank ${a.rank}: ${esc(name)}, ${esc(fmt(count))} chats (no profile available)"`;return `<li>- <a class="tr-row" href="${esc(a.agent_url)}">+ <${tag} class="tr-row"${attrs}><span class="tr-rank${rankCls}">${a.rank}</span><span class="tr-av">${avHtml}</span><span class="tr-body">@@ -317,7 +365,7 @@<span class="tr-metric">${fmt(count)}</span><span class="tr-metric-label">chats</span></span>- </a>+ </${tag}></li>`;}).join('');}@@ -334,9 +382,17 @@list.innerHTML = coins.map(c => {const sym = (c.symbol || '?').slice(0, 5);+ const symFull = c.symbol || 'coin';const rankCls = c.rank <= 3 ? ` tr-rank-${c.rank}` : '';+ const fallback = c.mint ? `/oracle?mint=${encodeURIComponent(c.mint)}` : null;+ const href = safeHref(c.coin_url, fallback);+ const tag = href ? 'a' : 'div';+ const label = `Rank ${c.rank}: $${symFull}, Oracle score ${c.score} of 100`;+ const attrs = href+ ? ` href="${esc(href)}" aria-label="${esc(label)}"`+ : ` role="group" aria-label="${esc(label)} (no detail page available)"`;return `<li>- <a class="tr-row" href="${esc(c.coin_url)}">+ <${tag} class="tr-row"${attrs}><span class="tr-rank${rankCls}">${c.rank}</span><span class="tr-coin-badge">$${esc(sym)}</span><span class="tr-body">@@ -347,7 +403,7 @@<span class="tr-metric">${c.score}</span><span class="tr-metric-label">/100 score</span></span>- </a>+ </${tag}></li>`;}).join('');}diff --git a/pages/unstoppable.html b/pages/unstoppable.htmlindex 96aa67dcc..a1764a5e7 100644--- a/pages/unstoppable.html+++ b/pages/unstoppable.html@@ -51,6 +51,9 @@}a { color: inherit; text-decoration: none; }button { font-family: inherit; cursor: pointer; }+ a:focus-visible, button:focus-visible {+ outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px;+ }::selection { background: var(--text); color: var(--bg); }.wrap-1280 { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }@media (max-width: 720px) { .wrap-1280 { padding-left: 20px; padding-right: 20px; } }@@ -287,11 +290,29 @@cursor: pointer; text-decoration: none; font-family: inherit;}.btn:hover { border-color: var(--text); background: rgba(255,255,255,0.04); }+ .btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }.btn.primary {background: var(--text); color: var(--bg);border-color: var(--text); font-weight: 550;}.btn.primary:hover { background: #fff; }+ .btn.unlock {+ background: var(--green); color: #04130a;+ border-color: var(--green); font-weight: 600;+ }+ .btn.unlock:hover { background: #2ee06a; border-color: #2ee06a; }+ .btn[disabled] { opacity: 0.5; cursor: progress; }+ .donate-retry {+ display: none; margin-top: 12px;+ font-size: 12.5px; color: var(--text-3); line-height: 1.5;+ }+ .donate-retry.show { display: block; }+ .donate-retry a {+ color: var(--text); text-decoration: underline; text-underline-offset: 2px;+ }+ .donate-retry a:hover { color: #fff; }+ .donate-retry a:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 2px; }+ .cache-age { color: var(--text-4); }/* Activity feed */.activity-feed {@@ -462,23 +483,23 @@<!-- HERO --><div class="hero"><div class="hero-avatar">- <div class="agent-dot" id="agentDot"></div>+ <div class="agent-dot" id="agentDot" role="img" aria-label="Agent status indicator"></div><div class="hero-avatar-ring"></div></div>- <div class="balance-display" id="balanceDisplay">—</div>+ <div class="balance-display" id="balanceDisplay" role="status" aria-live="polite" aria-label="Treasury balance">—</div><div class="hero-badges">- <span class="badge badge-running" id="statusBadge">+ <span class="badge badge-running" id="statusBadge" aria-live="polite"><span class="badge-dot"></span><span id="statusText">Loading</span></span>- <span class="badge badge-runway" id="runwayBadge">Runway: —</span>+ <span class="badge badge-runway" id="runwayBadge" aria-live="polite">Runway: —</span></div>- <div class="hero-updated" id="heroUpdated">Fetching live data...</div>+ <div class="hero-updated" id="heroUpdated" role="status" aria-live="polite">Fetching live data...</div>- <div class="payment-notice" id="paymentNotice" style="display:none">+ <div class="payment-notice" id="paymentNotice" role="note" style="display:none"><p>Live data costs <span class="payment-price" id="priceDisplay">$0.01</span> per query.<strong>Every request directly funds this agent's operation.</strong>@@ -490,17 +511,17 @@</div><!-- STATS ROW -->- <div class="stats-row" id="statsRow">+ <div class="stats-row" id="statsRow" role="group" aria-label="Agent economics"><div class="stat-cell">- <div class="stat-val" id="stat24hEarnings">—</div>+ <div class="stat-val" id="stat24hEarnings" aria-live="polite" aria-label="24 hour earnings">—</div><div class="stat-lbl">24h Earnings</div></div><div class="stat-cell">- <div class="stat-val" id="stat24hCosts">—</div>+ <div class="stat-val" id="stat24hCosts" aria-live="polite" aria-label="24 hour costs">—</div><div class="stat-lbl">24h Costs</div></div><div class="stat-cell">- <div class="stat-val" id="statLifetimeNet">—</div>+ <div class="stat-val" id="statLifetimeNet" aria-live="polite" aria-label="Lifetime net">—</div><div class="stat-lbl">Lifetime Net</div></div></div>@@ -516,17 +537,21 @@</div><div class="donate-block" style="margin-top: 28px;">- <div class="donate-label">Keep it alive — donate $0.01 USDC to extend the agent's runway and unlock the live view.</div>- <button class="btn primary" id="donateBtn" onclick="window.__unstoppable.donate()">+ <div class="donate-label" id="donateLabel">Keep it alive — donate $0.01 USDC to extend the agent's runway and unlock the live view.</div>+ <button class="btn primary" id="donateBtn" type="button" aria-label="Donate $0.01 USDC to fund the agent" onclick="window.__unstoppable.donate()">Donate $0.01</button>+ <div class="donate-retry" id="donateRetry" role="note">+ Donation didn't go through. If your USDC balance was too low,+ <a href="/pay" id="donateTopUp">top up USDC then retry</a>.+ </div></div></div><!-- Right: activity feed --><div class="panel">- <div class="panel-title">Activity Feed</div>- <div class="activity-feed" id="activityFeed">+ <div class="panel-title" id="activityFeedLabel">Activity Feed</div>+ <div class="activity-feed" id="activityFeed" role="log" aria-live="polite" aria-labelledby="activityFeedLabel"><div class="empty-state">Loading activity...</div></div></div>diff --git a/public/agent/index.html b/public/agent/index.htmlindex 36c6f4a67..23d1b7e48 100644--- a/public/agent/index.html+++ b/public/agent/index.html@@ -753,6 +753,44 @@border-radius: 50%;animation: mp-spin 0.7s linear infinite;}++ /* ── Narrow screens: tighten the hero/identity + embed columns so the+ standalone agent page is explicitly designed for phones, not just+ left to degrade. ── */+ @media (max-width: 640px) {+ .agent-page-header {+ padding: 0.764rem 1rem;+ gap: 0.618rem;+ }+ .agent-page-hero {+ margin: 2rem auto 1.5rem;+ }+ .agent-page-title {+ font-size: 1.382rem;+ }+ .agent-page-card-wrap,+ .agent-embed-hint,+ .agent-skills-full {+ max-width: 100%;+ padding-left: 1rem;+ padding-right: 1rem;+ }+ .agent-page-card-wrap .agent-home-timeline {+ max-height: 260px;+ }+ .agent-skills-grid {+ grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));+ }+ .agent-embed-code {+ font-size: 0.58rem;+ }+ }++ @media (max-width: 380px) {+ .agent-embed-tabs {+ flex-wrap: wrap;+ }+ }</style></head><body>diff --git a/public/arbitrage.html b/public/arbitrage.htmlindex 949cfae2b..94b71b9ef 100644--- a/public/arbitrage.html+++ b/public/arbitrage.html@@ -107,10 +107,15 @@.grid {display: grid;- grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));+ grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));gap: 14px;padding-bottom: 56px;}+ /* Below ~340px, min() prevents the 300px track from overflowing the viewport+ and forcing a horizontal scroll — collapse to a single fluid column. */+ @media (max-width: 360px) {+ .grid { grid-template-columns: 1fr; }+ }.arb {background: var(--panel);border: 1px solid var(--border);@@ -282,7 +287,21 @@border-radius: 12px;margin-bottom: 56px;}- .err { color: #fecaca; border-color: rgba(248,113,113,0.3); }+ .err { color: #fecaca; border-color: rgba(248,113,113,0.3); border-style: solid; }+ .err .err-title { font-weight: 600; margin-bottom: 6px; }+ .err .retry-btn {+ margin-top: 16px;+ background: rgba(74,222,128,0.12);+ color: #4ade80;+ border: 1px solid rgba(74,222,128,0.4);+ padding: 8px 18px;+ font-size: 13px;+ border-radius: 8px;+ cursor: pointer;+ font-weight: 600;+ }+ .err .retry-btn:hover { background: rgba(74,222,128,0.2); }+ .err .retry-btn:focus-visible { outline: 2px solid #4ade80; outline-offset: 2px; }.spinner {display: inline-block;diff --git a/public/arbitrage.js b/public/arbitrage.jsindex 26c8c3acc..5d1ddfe7a 100644--- a/public/arbitrage.js+++ b/public/arbitrage.js@@ -69,6 +69,7 @@ function renderGrid() {if (opps.length === 0) {els.grid.innerHTML = '';els.empty.hidden = false;+ els.empty.className = 'empty';els.empty.textContent = state.all.length? 'No matches. Clear the filter or search.': 'No arbitrage opportunities right now. Check back as facilitators add listings.';@@ -178,11 +179,25 @@ async function payCheapest(o, btn) {window.location.href = `/bazaar?q=${encodeURIComponent(o.capability)}`;return;}+ const orig = btn.textContent;if (!window.X402 || typeof window.X402.pay !== 'function') {- await loadX402();+ btn.disabled = true;+ btn.textContent = 'Loading payment modal…';+ try {+ await loadX402();+ } catch {+ // /x402.js 404'd or failed to evaluate — surface it instead of no-op.+ btn.textContent = 'Payment modal failed to load';+ setTimeout(() => { btn.disabled = false; btn.textContent = orig; }, 4000);+ return;+ }+ if (!window.X402 || typeof window.X402.pay !== 'function') {+ btn.textContent = 'Payment modal failed to load';+ setTimeout(() => { btn.disabled = false; btn.textContent = orig; }, 4000);+ return;+ }}btn.disabled = true;- const orig = btn.textContent;btn.textContent = 'Opening modal…';try {const out = await window.X402.pay({@@ -214,7 +229,12 @@ function loadX402() {s.type = 'module';s.src = '/x402.js';s.onload = () => resolve();- s.onerror = (e) => reject(e);+ s.onerror = (e) => {+ // Drop the cached promise so a later click can retry the load.+ _x402Loaded = null;+ s.remove();+ reject(e);+ };document.head.appendChild(s);});return _x402Loaded;@@ -223,17 +243,34 @@ function loadX402() {async function load() {renderSkeleton();try {- const r = await fetch('/api/bazaar/arbitrage?minSpreadPct=0&limit=200');+ // Bound the request so a hung facilitator can't leave the skeletons up+ // forever. AbortSignal.timeout rejects with a TimeoutError after 20s.+ const r = await fetch('/api/bazaar/arbitrage?minSpreadPct=0&limit=200', {+ signal: AbortSignal.timeout(20000),+ });const data = await r.json();if (!r.ok) throw new Error(data?.error_description || data?.error || `HTTP ${r.status}`);state.all = data.opportunities || [];els.updated.textContent = relativeTime(data.updatedAt);renderGrid();} catch (e) {+ const timedOut = e?.name === 'TimeoutError';+ const network = e instanceof TypeError;+ const title = timedOut+ ? 'Request timed out'+ : network ? "Couldn't reach the arbitrage feed" : 'Failed to load arbitrage';+ const sub = timedOut+ ? 'The facilitator feed took too long to respond.'+ : network ? 'Check your connection and try again.' : escapeHtml(e?.message || String(e));els.grid.innerHTML = '';els.empty.hidden = false;els.empty.className = 'err';- els.empty.textContent = `Failed to load arbitrage: ${e?.message || e}`;+ els.empty.innerHTML = `+ <div class="err-title">${title}</div>+ <div>${sub}</div>+ <button type="button" class="retry-btn">Retry</button>+ `;+ els.empty.querySelector('.retry-btn').addEventListener('click', load);}}diff --git a/public/bazaar.html b/public/bazaar.htmlindex 9957fabcd..5fc561126 100644--- a/public/bazaar.html+++ b/public/bazaar.html@@ -341,6 +341,37 @@border: 1px dashed var(--border-strong);border-radius: 12px;}+ .empty.state-err {+ border-color: rgba(248,113,113,0.4);+ border-style: solid;+ color: #fecaca;+ }+ .empty .empty-title { font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 6px; }+ .empty.state-err .empty-title { color: #fecaca; }+ .empty .empty-sub { font-size: 13px; }+ .empty .retry-btn {+ margin-top: 16px;+ background: var(--accent-blue);+ color: #0b0b0b;+ border: none;+ padding: 9px 18px;+ font-size: 13px;+ border-radius: 8px;+ cursor: pointer;+ font-weight: 600;+ }+ .empty .retry-btn:hover { filter: brightness(1.1); }+ .empty .retry-btn:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }+ /* Screen-reader-only live region for "Try it" announcements. */+ .sr-only {+ position: absolute;+ width: 1px; height: 1px;+ padding: 0; margin: -1px;+ overflow: hidden;+ clip: rect(0,0,0,0);+ white-space: nowrap;+ border: 0;+ }.spinner {display: inline-block;width: 14px; height: 14px;@@ -473,6 +504,8 @@</div><div id="results" class="cards"></div><div id="empty" class="empty" hidden>No matching services. Try fewer filters or a different query.</div>+ <!-- Polite live region: announces "Try it" pay results to screen readers. -->+ <div id="try-live" class="sr-only" role="status" aria-live="polite" aria-atomic="true"></div></main></div></div>diff --git a/public/bazaar.js b/public/bazaar.jsindex c99d46602..cad73e7eb 100644--- a/public/bazaar.js+++ b/public/bazaar.js@@ -23,6 +23,7 @@ const els = {sources: $('#sources'),results: $('#results'),empty: $('#empty'),+ tryLive: $('#try-live'),modal: $('#details-modal'),modalTitle: $('#dm-title'),modalBody: $('#dm-body'),@@ -193,9 +194,31 @@ function renderLoading(query) {}function renderError(e) {+ // Replace the spinner and any prior cards so a network failure can never+ // leave the loading state stuck.els.count.textContent = '0';+ els.qlabel.textContent = '';+ els.sources.textContent = '';+ els.results.innerHTML = '';+ // fetch() rejects with a TypeError on offline / DNS / CORS failures — those+ // never reach `r.ok`, so call them out as a connection problem distinctly+ // from an HTTP/API error.+ const isNetwork = e instanceof TypeError;+ const title = isNetwork ? "Couldn't reach the catalog" : 'Failed to load services';+ const sub = isNetwork+ ? 'Check your connection and try again.'+ : escape(e?.message || String(e));els.empty.hidden = false;- els.empty.textContent = `Failed to load: ${e?.message || e}`;+ els.empty.className = 'empty state-err';+ els.empty.innerHTML = `+ <div class="empty-title">${title}</div>+ <div class="empty-sub">${sub}</div>+ <button type="button" class="retry-btn">Retry</button>+ `;+ els.empty.querySelector('.retry-btn').addEventListener('click', () => {+ els.empty.className = 'empty';+ load();+ });}function renderResults(items, query, sources, errors) {@@ -205,6 +228,7 @@ function renderResults(items, query, sources, errors) {if (items.length === 0) {els.results.innerHTML = '';els.empty.hidden = false;+ els.empty.className = 'empty';els.empty.textContent = 'No matching services. Try fewer filters or a different query.';return;}@@ -357,6 +381,21 @@ function prettyTitle(it) {}}+// Polite screen-reader announcement for async "Try it" outcomes.+function announce(msg) {+ if (!els.tryLive) return;+ els.tryLive.textContent = '';+ // Force the live region to re-fire even when the text repeats.+ requestAnimationFrame(() => { els.tryLive.textContent = msg; });+}++// The pay flow depends on the drop-in modal in /x402.js. If that script 404s+// or fails to evaluate, window.X402 is never defined — feature-detect it so the+// button explains the problem instead of silently no-opping.+function x402Available() {+ return !!(window.X402 && typeof window.X402.pay === 'function');+}+async function onTry(cardEl, it, btn) {if (it.type === 'mcp') {// MCP tools require a JSON-RPC tools/call envelope, which the drop-in modal@@ -365,9 +404,17 @@ async function onTry(cardEl, it, btn) {return;}const receipt = cardEl.querySelector('[data-role=receipt]');+ if (!x402Available()) {+ receipt.hidden = false;+ receipt.className = 'receipt err';+ receipt.textContent = 'Payment module failed to load (x402.js). Reload the page to retry.';+ announce('Payment module unavailable. Reload the page to try a paid call.');+ return;+ }receipt.hidden = false;receipt.className = 'receipt';receipt.textContent = 'Opening x402 payment modal…';+ announce(`Opening payment for ${it.serviceName || prettyTitle(it)}.`);btn.disabled = true;try {const opts = {@@ -386,16 +433,20 @@ async function onTry(cardEl, it, btn) {if (out?.ok) {receipt.className = 'receipt ok';receipt.innerHTML = renderReceipt(out);+ announce(`Payment succeeded for ${it.serviceName || prettyTitle(it)}.`);} else {receipt.className = 'receipt err';receipt.textContent = `Failed: ${out?.error || 'unknown error'}`;+ announce(`Payment failed: ${out?.error || 'unknown error'}.`);}} catch (e) {if (e?.code === 'cancelled') {receipt.hidden = true;+ announce('Payment cancelled.');} else {receipt.className = 'receipt err';receipt.textContent = `Error: ${e?.message || e}`;+ announce(`Payment error: ${e?.message || e}.`);}} finally {btn.disabled = false;diff --git a/public/changelog.json b/public/changelog.jsonindex efcef3089..44fdbf5a8 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-18T22:54:38.919Z",+ "generated_at": "2026-06-18T23:14:18.214Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -9,8 +9,18 @@{"date": "2026-06-18","type": "update",- "title": "Avatar Studio no longer crashes on NFT-gated traits, wallet checks, or VRM0 models",- "summary": "An audit of Avatar Studio turned up six places where it would throw and stop instead of working: checking whether a trait is NFT-locked, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, and loading older VRM0 avatars all hit undefined-variable errors. All six are fixed, so locked-trait checks, wallet-ownership gating, EVM wallet connect, and VRM0 model loading now run cleanly.",+ "title": "Agent lookup now matches the rest of the site and links straight to the agent’s page",+ "summary": "The agent lookup tool used to render as a stark white page that ignored your light/dark theme and had no site navigation or footer. It now uses the same chrome and theme tokens as every other page, so it looks on-brand in both modes. More importantly, when a lookup resolves an agent it now shows a prominent “Open agent page” button that takes you to that agent’s profile on three.ws — so resolving an agent no longer dead-ends on external explorer links. Copy buttons also tell you if a copy fails instead of staying silent.",+ "link": "/lookup",+ "tags": [+ "improvement"+ ]+ },+ {+ "date": "2026-06-18",+ "type": "update",+ "title": "Avatar Studio no longer crashes on NFT-gated traits, wallet checks, exports, or VRM0 models",+ "summary": "An audit of Avatar Studio turned up twelve places where it would throw and stop instead of working: checking whether a trait is NFT-locked, looking up traits and model parts, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, exporting a GLB, recovering from a failed Solana transaction, decoding KTX2 textures, and loading older VRM0 avatars all hit undefined-variable errors. All twelve are fixed, so trait selection, wallet-ownership gating, EVM wallet connect, model export, and VRM0 loading now run cleanly.","link": "/create/studio","tags": ["fix"@@ -132,6 +142,16 @@"fix"]},+ {+ "date": "2026-06-18",+ "type": "update",+ "title": "GMGN smart-money feed: click the status pill to reconnect, clearer custom-avatar errors",+ "summary": "On the GMGN smart-money page you can now click the connection-status pill to reconnect to the live feed immediately instead of waiting out the automatic retry. The feed sidebar no longer shows a move cursor that did nothing, and pasting a bad custom-avatar URL now shows an inline message right under the field (and checks the link points to a .glb, .gltf, or .vrm model) instead of a browser pop-up.",+ "link": "/gmgn",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-18","type": "update",@@ -153,6 +173,17 @@"feature"]},+ {+ "date": "2026-06-18",+ "type": "update",+ "title": "Launch pages — accurate guidance, direct agent links, and a launcher loop",+ "summary": "Tightened the launch and 3D-coin pages. The launcher's empty state now matches what you actually see beside it (an agent picker on /launch, an avatar gallery in the studio) instead of mismatched 'pick an avatar' copy. 'Agent page' links from a launched or existing token now go straight to the canonical agent page with no redirect hop. The Launches feed gained a clear 'Launch a coin' call-to-action, and the 3D coin viewer's empty/error states now point you to the real coin feed (/launches) rather than the demo, with a 'Launch your own' link added to its HUD. Coin logos that fail on one IPFS gateway now retry a second gateway before falling back to a plain disc.",+ "link": "/launches",+ "tags": [+ "improvement",+ "fix"+ ]+ },{"date": "2026-06-18","type": "update",@@ -298,6 +329,17 @@"fix"]},+ {+ "date": "2026-06-18",+ "type": "update",+ "title": "Security and display fixes from a full page-by-page audit",+ "summary": "We audited every page on three.ws and fixed what we found. The Characters page now safely escapes character names, descriptions, token symbols and images, so a maliciously-named character can no longer run code in your browser. The homepage showcase only ever shows real public avatars now — if the live feed is quiet it falls back to its Browse and Create links instead of placeholder demo agents. Marketplace Analytics no longer flashes raw template text while loading and shows a clear retry message if its data can't be reached. We also fixed dead IBM-suite links on the Features page.",+ "link": "/characters",+ "tags": [+ "security",+ "fix"+ ]+ },{"date": "2026-06-18","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 2e0422715..604d85fe8 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -7,12 +7,20 @@<description>What's new on three.ws — features, improvements, and releases, newest first.</description><language>en</language><item>- <title>Avatar Studio no longer crashes on NFT-gated traits, wallet checks, or VRM0 models</title>+ <title>Agent lookup now matches the rest of the site and links straight to the agent’s page</title>+ <link>https://three.ws/lookup</link>+ <guid isPermaLink="false">2026-06-18:Agent lookup now matches the rest of the site and links straight to the agent’s page</guid>+ <pubDate>Thu, 18 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The agent lookup tool used to render as a stark white page that ignored your light/dark theme and had no site navigation or footer. It now uses the same chrome and theme tokens as every other page, so it looks on-brand in both modes. More importantly, when a lookup resolves an agent it now shows a prominent “Open agent page” button that takes you to that agent’s profile on three.ws — so resolving an agent no longer dead-ends on external explorer links. Copy buttons also tell you if a copy fails instead of staying silent.</description>+ </item>+ <item>+ <title>Avatar Studio no longer crashes on NFT-gated traits, wallet checks, exports, or VRM0 models</title><link>https://three.ws/create/studio</link>- <guid isPermaLink="false">2026-06-18:Avatar Studio no longer crashes on NFT-gated traits, wallet checks, or VRM0 models</guid>+ <guid isPermaLink="false">2026-06-18:Avatar Studio no longer crashes on NFT-gated traits, wallet checks, exports, or VRM0 models</guid><pubDate>Thu, 18 Jun 2026 12:00:00 GMT</pubDate><category>fix</category>- <description>An audit of Avatar Studio turned up six places where it would throw and stop instead of working: checking whether a trait is NFT-locked, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, and loading older VRM0 avatars all hit undefined-variable errors. All six are fixed, so locked-trait checks, wallet-ownership gating, EVM wallet connect, and VRM0 model loading now run cleanly.</description>+ <description>An audit of Avatar Studio turned up twelve places where it would throw and stop instead of working: checking whether a trait is NFT-locked, looking up traits and model parts, verifying that your wallet owns a required collection, connecting an Ethereum or Polygon wallet, exporting a GLB, recovering from a failed Solana transaction, decoding KTX2 textures, and loading older VRM0 avatars all hit undefined-variable errors. All twelve are fixed, so trait selection, wallet-ownership gating, EVM wallet connect, model export, and VRM0 loading now run cleanly.</description></item><item><title>Bundle specific skills into your subscription plans</title>@@ -102,6 +110,14 @@<category>fix</category><description>In Avatar Studio, glasses and shades used to clip into the face — sitting low across the cheeks instead of on the eyes. Eyewear is now placed properly on the eye line, auto-sized to fit any avatar, and shades that were modelled lying flat are stood upright so they read as sunglasses. Hats and earrings are unchanged.</description></item>+ <item>+ <title>GMGN smart-money feed: click the status pill to reconnect, clearer custom-avatar errors</title>+ <link>https://three.ws/gmgn</link>+ <guid isPermaLink="false">2026-06-18:GMGN smart-money feed: click the status pill to reconnect, clearer custom-avatar errors</guid>+ <pubDate>Thu, 18 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>On the GMGN smart-money page you can now click the connection-status pill to reconnect to the live feed immediately instead of waiting out the automatic retry. The feed sidebar no longer shows a move cursor that did nothing, and pasting a bad custom-avatar URL now shows an inline message right under the field (and checks the link points to a .glb, .gltf, or .vrm model) instead of a browser pop-up.</description>+ </item><item><title>Graduated coins show a live price on agent and community cards</title><link>https://three.ws/changelog</link>@@ -118,6 +134,14 @@<category>feature</category><description>$THREE gets its first hard utility: High-quality 3D generation on Forge — the 200k-polygon, PBR-textured tier — is now reserved for $THREE holders. Reach the Bronze holder tier (the entry tier) by holding $THREE and the High tier unlocks automatically, with no payment step. Draft and Standard generation stay free forever, and bring-your-own-key generation is unaffected. Sign in, link your Solana wallet, and the economy page shows your live holder tier and exactly what it unlocks.</description></item>+ <item>+ <title>Launch pages — accurate guidance, direct agent links, and a launcher loop</title>+ <link>https://three.ws/launches</link>+ <guid isPermaLink="false">2026-06-18:Launch pages — accurate guidance, direct agent links, and a launcher loop</guid>+ <pubDate>Thu, 18 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>Tightened the launch and 3D-coin pages. The launcher's empty state now matches what you actually see beside it (an agent picker on /launch, an avatar gallery in the studio) instead of mismatched 'pick an avatar' copy. 'Agent page' links from a launched or existing token now go straight to the canonical agent page with no redirect hop. The Launches feed gained a clear 'Launch a coin' call-to-action, and the 3D coin viewer's empty/error states now point you to the real coin feed (/launches) rather than the demo, with a 'Launch your own' link added to its HUD. Coin logos that fail on one IPFS gateway now retry a second gateway before falling back to a plain disc.</description>+ </item><item><title>Leaving a review on an agent profile works again</title><link>https://three.ws/changelog</link>@@ -230,6 +254,14 @@<category>fix</category><description>On the Pole Club stage, tapping “Change avatar” and picking a new look sometimes did nothing — the dancer quietly snapped back to the default. Two fixes: a pick made right after the room loads is no longer overwritten by the room's own startup, and any avatar whose rig can't be animated is now clearly flagged “can’t dance” and skipped — the dancer keeps her current look and a message says why, instead of silently failing. Picks that work apply instantly and stay put.</description></item>+ <item>+ <title>Security and display fixes from a full page-by-page audit</title>+ <link>https://three.ws/characters</link>+ <guid isPermaLink="false">2026-06-18:Security and display fixes from a full page-by-page audit</guid>+ <pubDate>Thu, 18 Jun 2026 12:00:00 GMT</pubDate>+ <category>security</category>+ <description>We audited every page on three.ws and fixed what we found. The Characters page now safely escapes character names, descriptions, token symbols and images, so a maliciously-named character can no longer run code in your browser. The homepage showcase only ever shows real public avatars now — if the live feed is quiet it falls back to its Browse and Create links instead of placeholder demo agents. Marketplace Analytics no longer flashes raw template text while loading and shows a clear retry message if its data can't be reached. We also fixed dead IBM-suite links on the Features page.</description>+ </item><item><title>See every skill you've bought and sold in one Transactions tab</title><link>https://three.ws/dashboard/transactions</link>diff --git a/public/demos/lipsync-mic.html b/public/demos/lipsync-mic.htmlindex 544287215..5b808c786 100644--- a/public/demos/lipsync-mic.html+++ b/public/demos/lipsync-mic.html@@ -51,6 +51,31 @@padding: 12px; font-family: ui-monospace, monospace; font-size: 12px;color: #8a8d98; line-height: 1.6;}+ .mic-status {+ border-radius: 9px; padding: 12px 14px; font-size: 13px; line-height: 1.55;+ display: flex; flex-direction: column; gap: 8px;+ }+ .mic-status[hidden] { display: none; }+ .mic-status.error {+ background: rgba(255, 86, 86, 0.08);+ border: 1px solid rgba(255, 86, 86, 0.3);+ color: #ffb4b4;+ }+ .mic-status.info {+ background: rgba(61, 193, 255, 0.07);+ border: 1px solid rgba(61, 193, 255, 0.25);+ color: #aee3ff;+ }+ .mic-status strong { color: #fff; font-weight: 600; }+ .mic-status .retry {+ align-self: flex-start; cursor: pointer; font: inherit; font-weight: 600;+ color: #fff; background: rgba(255, 255, 255, 0.08);+ border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 7px;+ padding: 6px 12px; transition: background 0.16s ease, transform 0.16s ease;+ }+ .mic-status .retry:hover { background: rgba(255, 255, 255, 0.16); }+ .mic-status .retry:active { transform: translateY(1px); }+ .mic-status .retry:focus-visible { outline: 2px solid #3dc1ff; outline-offset: 2px; }</style><meta property="og:type" content="website">@@ -84,6 +109,8 @@<button id="start">Start mic</button><button id="stop" class="secondary" disabled>Stop</button>+ <div id="mic-status" class="mic-status" role="status" aria-live="polite" hidden></div>+<div class="meter" id="meter"><div class="bar"></div><div class="bar"></div><div class="bar"></div><div class="bar"></div><div class="bar"></div><div class="bar"></div>@@ -198,8 +225,41 @@}tick();+ // ── Mic status (designed permission / device states) ───────────+ const micStatus = $('mic-status');+ function clearMicStatus() {+ micStatus.hidden = true;+ micStatus.className = 'mic-status';+ micStatus.innerHTML = '';+ }+ function showMicStatus(kind, title, body, retry) {+ micStatus.className = `mic-status ${kind}`;+ micStatus.innerHTML = `<span><strong>${title}</strong> ${body}</span>`;+ if (retry) {+ const btn = document.createElement('button');+ btn.type = 'button';+ btn.className = 'retry';+ btn.textContent = 'Try again';+ btn.addEventListener('click', () => $('start').click());+ micStatus.appendChild(btn);+ }+ micStatus.hidden = false;+ }+// ── Mic wiring ─────────────────────────────────────────────────$('start').addEventListener('click', async () => {+ clearMicStatus();+ // No mic API at all (insecure origin / unsupported browser).+ if (!navigator.mediaDevices?.getUserMedia) {+ showMicStatus(+ 'error',+ 'Microphone not available.',+ 'Your browser blocks mic capture here — this demo needs a secure (https) context and a browser with Web Audio support.',+ false,+ );+ return;+ }+ $('start').disabled = true;try {stream = await navigator.mediaDevices.getUserMedia({ audio: true });const ctx = new (window.AudioContext || window.webkitAudioContext)();@@ -213,14 +273,50 @@analyser = new LipSyncAnalyser();analyser.connect(an);- $('start').disabled = true;$('stop').disabled = false;} catch (err) {- alert('mic access failed: ' + err.message);+ $('start').disabled = false;+ // Map the DOMException to a designed, actionable state.+ switch (err?.name) {+ case 'NotAllowedError':+ case 'SecurityError':+ showMicStatus(+ 'error',+ 'Microphone blocked.',+ 'Access was denied. Click the mic icon in your browser’s address bar, allow access for three.ws, then try again.',+ true,+ );+ break;+ case 'NotFoundError':+ case 'OverconstrainedError':+ showMicStatus(+ 'error',+ 'No microphone found.',+ 'Connect a microphone or check your system input settings, then try again.',+ true,+ );+ break;+ case 'NotReadableError':+ showMicStatus(+ 'error',+ 'Microphone is busy.',+ 'Another app is using your mic. Close it (e.g. a call or recorder) and try again.',+ true,+ );+ break;+ default:+ showMicStatus(+ 'error',+ 'Couldn’t start the microphone.',+ err?.message || 'An unexpected error occurred. Try again.',+ true,+ );+ }}});$('stop').addEventListener('click', () => {+ clearMicStatus();if (analyser) { analyser.disconnect(); analyser = null; }if (stream) { stream.getTracks().forEach((t) => t.stop()); stream = null; }$('start').disabled = false;diff --git a/public/demos/lipsync-tts.html b/public/demos/lipsync-tts.htmlindex 190a0a03e..f044832c2 100644--- a/public/demos/lipsync-tts.html+++ b/public/demos/lipsync-tts.html@@ -40,6 +40,22 @@.log .ok { color: #3dc1ff; }.log .err { color: #ff8a8a; }.log .info { color: #9ad4ff; }+ .tts-error {+ background: rgba(255, 86, 86, 0.08); border: 1px solid rgba(255, 86, 86, 0.3);+ color: #ffb4b4; border-radius: 9px; padding: 11px 13px; font-size: 13px;+ line-height: 1.5; display: flex; align-items: center; gap: 10px; justify-content: space-between;+ }+ .tts-error[hidden] { display: none; }+ .tts-error span { flex: 1; }+ .tts-error strong { color: #fff; font-weight: 600; }+ .tts-error .retry {+ flex: 0 0 auto; cursor: pointer; font: inherit; font-weight: 600; color: #0a0a0a;+ background: #ff8a8a; border: 0; border-radius: 7px; padding: 7px 13px;+ transition: filter 0.16s ease, transform 0.16s ease;+ }+ .tts-error .retry:hover { filter: brightness(1.08); }+ .tts-error .retry:active { transform: translateY(1px); }+ .tts-error .retry:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }</style><meta property="og:type" content="website">@@ -106,6 +122,8 @@<button id="stop" class="secondary" disabled>Stop</button></div>+ <div id="tts-error" class="tts-error" role="alert" aria-live="assertive" hidden></div>+<div><label>Visemes (live)</label><div id="visemes" style="display:flex;flex-direction:column;gap:5px;margin-top:6px"></div>@@ -252,11 +270,27 @@const speakBtn = $('speak');const stopBtn = $('stop');+ const ttsErr = $('tts-error');++ function clearTtsError() { ttsErr.hidden = true; ttsErr.innerHTML = ''; }+ // Persistent, actionable error banner with one-click retry — survives+ // after the log scrolls and tells the user how to recover.+ function showTtsError(title, detail) {+ ttsErr.innerHTML = `<span><strong>${title}</strong> ${detail}</span>`;+ const btn = document.createElement('button');+ btn.type = 'button';+ btn.className = 'retry';+ btn.textContent = 'Retry';+ btn.addEventListener('click', () => speak());+ ttsErr.appendChild(btn);+ ttsErr.hidden = false;+ }async function speak() {const text = $('text').value.trim();if (!text) { log('err', 'Enter text first.'); return; }+ clearTtsError();speakBtn.disabled = true;stopBtn.disabled = false;log('info', `Requesting TTS · voice=${$('voice').value} speed=${$('speed').value}`);@@ -275,6 +309,10 @@});} catch (err) {log('err', `TTS request failed: ${err.message}`);+ showTtsError(+ 'Couldn’t reach the TTS service.',+ 'Check your connection and try again.',+ );speakBtn.disabled = false;stopBtn.disabled = true;return;@@ -283,6 +321,15 @@if (!res.ok) {const txt = await res.text().catch(() => '');log('err', `TTS error · HTTP ${res.status} · ${txt.slice(0, 200)}`);+ const detail =+ res.status === 429+ ? 'Rate limit reached — wait a moment and retry.'+ : res.status >= 500+ ? 'The speech service hit an error. Try again in a moment.'+ : res.status === 400+ ? 'The request was rejected — try shorter or different text.'+ : `HTTP ${res.status}.`;+ showTtsError('Speech generation failed.', detail);speakBtn.disabled = false;stopBtn.disabled = true;return;@@ -314,6 +361,7 @@speakBtn.disabled = false;stopBtn.disabled = true;log('err', 'Audio playback error.');+ showTtsError('Playback failed.', 'The generated audio couldn’t be played. Try again.');});lipsync.connectAudio(audioEl);@@ -322,6 +370,10 @@await audioEl.play();} catch (err) {log('err', `Playback blocked: ${err.message}`);+ showTtsError(+ 'Playback was blocked.',+ 'Your browser needs a click to play audio — press Retry to try again.',+ );speakBtn.disabled = false;stopBtn.disabled = true;}diff --git a/public/eth-vanity.html b/public/eth-vanity.htmlindex 210c01333..cb6f7c59c 100644--- a/public/eth-vanity.html+++ b/public/eth-vanity.html@@ -7,6 +7,7 @@<meta name="viewport" content="width=device-width, initial-scale=1"><meta name="description" content="Grind a vanity Ethereum smart-contract address by searching CREATE2 salts. Runs entirely in your browser — no keys involved, just a salt you feed to your factory."><link rel="icon" href="/favicon.ico">+ <link rel="stylesheet" href="/footer.css"><link rel="stylesheet" href="/nav.css"><link rel="stylesheet" href="/fonts/fonts.css" /><style>@@ -45,7 +46,7 @@@media (max-width: 600px) { .row2 { grid-template-columns: 1fr; } }.preview { font-family: ui-monospace, monospace; font-size: .9rem; padding: .65rem .75rem; background: #1a1a1a; border-radius: 6px; margin-top: .55rem; word-break: break-all; min-height: 2.4em; line-height: 1.4; border: 1px solid var(--border); }- .preview .pfx, .preview .sfx { background: #ffffff; color: #fff; padding: 0 3px; border-radius: 3px; font-weight: 700; }+ .preview .pfx, .preview .sfx { background: #ffffff; color: #000; padding: 0 3px; border-radius: 3px; font-weight: 700; }.preview .rest { color: #555; }.row { display: flex; justify-content: space-between; align-items: center; margin-top: .55rem; font-size: .85rem; color: var(--muted); }@@ -65,7 +66,7 @@.result h3 { margin: 0 0 .4rem; font-size: 1rem; color: #fff; }.result .out-row { font-family: ui-monospace, monospace; font-size: .82rem; word-break: break-all; padding: .55rem .65rem; background: #111; border-radius: 6px; border: 1px solid rgba(255,255,255,0.08); margin-top: .5rem; }.result .out-row .k { color: #ffffff; display: inline-block; min-width: 5.5rem; }- .result .pfx, .result .sfx { background: #ffffff; color: #fff; padding: 0 3px; border-radius: 3px; font-weight: 700; }+ .result .pfx, .result .sfx { background: #ffffff; color: #000; padding: 0 3px; border-radius: 3px; font-weight: 700; }.result .meta { font-size: .8rem; color: var(--muted); margin: .65rem 0 0; }.warn { background: var(--warn-bg); color: var(--warn-fg); padding: .65rem .85rem; border-radius: 6px; margin-top: 1rem; font-size: .8rem; border: 1px solid rgba(251,191,36,0.15); }@@ -90,17 +91,17 @@<link rel="canonical" href="https://three.ws/eth-vanity"><meta property="og:type" content="website"><meta property="og:site_name" content="three.ws">- <meta property="og:title" content="ETH Vanity (CREATE2) · three.ws">- <meta property="og:description" content="Grind a vanity smart-contract address using the ThreeWSFactory CREATE2 deployer on BSC.">+ <meta property="og:title" content="CREATE2 Vanity Address Grinder · three.ws">+ <meta property="og:description" content="Grind a vanity smart-contract address by searching CREATE2 salts — chain-agnostic and deployer-agnostic. Works with any CREATE2 factory (Arachnid, CreateX, Safe, Coinbase). Runs entirely in your browser, no private keys involved."><meta property="og:url" content="https://three.ws/eth-vanity"><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:title" content="ETH Vanity (CREATE2) · three.ws">- <meta name="twitter:description" content="Grind a vanity smart-contract address using the ThreeWSFactory CREATE2 deployer on BSC.">+ <meta name="twitter:title" content="CREATE2 Vanity Address Grinder · three.ws">+ <meta name="twitter:description" content="Grind a vanity smart-contract address by searching CREATE2 salts — chain-agnostic and deployer-agnostic. Works with any CREATE2 factory. Runs entirely in your browser, no private keys involved."><meta name="twitter:image" content="https://three.ws/og-image.png">- <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"ETH Vanity (CREATE2)","description":"Grind a vanity smart-contract address using the ThreeWSFactory CREATE2 deployer on BSC.","url":"https://three.ws/eth-vanity","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"CREATE2 Vanity Address Grinder","description":"Grind a vanity smart-contract address by searching CREATE2 salts — chain-agnostic and deployer-agnostic. Works with any CREATE2 factory (Arachnid, CreateX, Safe, Coinbase). Runs entirely in your browser, no private keys involved.","url":"https://three.ws/eth-vanity","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script></head><body><a href="#main-content" class="skip-link">Skip to main content</a>@@ -516,7 +517,7 @@const data = await r.json();agents = data.agents || [];} catch (e) {- host.innerHTML = `<div class="card" style="margin-top:1rem"><h2>Assign to an agent</h2><p class="desc" style="color:var(--danger);margin:0">Could not load your agents: ${esc(e.message)}</p></div>`;+ host.innerHTML = `<div class="card" style="margin-top:1rem"><h2>Assign to an agent</h2><p class="desc" style="color:var(--bad-fg);margin:0">Could not load your agents: ${esc(e.message)}</p></div>`;return;}if (!agents.length) {@@ -530,8 +531,6 @@const initCode = ($('initcode-raw').value || '').trim();const hasInitCode = /^0x[0-9a-f]+$/i.test(initCode) && initCode.length % 2 === 0;- const deployerLabel = (document.querySelector('.preset[data-deployer]')?.dataset?.name && $('deployer').value.toLowerCase() ===- document.querySelector('.preset.active')?.dataset?.deployer?.toLowerCase()) ? null : null;// Find the matching preset label by deployer addresslet presetLabel = null;document.querySelectorAll('.preset[data-deployer]').forEach((b) => {@@ -592,7 +591,7 @@const del = await fetch(`/api/agents/${encodeURIComponent(sel.value)}/eth-vanity`, { method: 'DELETE', credentials: 'include' });if (!del.ok) {const dd = await del.json().catch(() => ({}));- status.innerHTML = `<span style="color:var(--danger)">Could not remove existing record: ${esc(dd.error_description || del.status)}</span>`;+ status.innerHTML = `<span style="color:var(--bad-fg)">Could not remove existing record: ${esc(dd.error_description || del.status)}</span>`;btn.disabled = false; return;}r = await fetch(`/api/agents/${encodeURIComponent(sel.value)}/eth-vanity`, {@@ -603,21 +602,21 @@}const data = await r.json().catch(() => ({}));if (!r.ok) {- status.innerHTML = `<span style="color:var(--danger)">Failed: ${esc(data.error_description || r.status)}</span>`;+ status.innerHTML = `<span style="color:var(--bad-fg)">Failed: ${esc(data.error_description || r.status)}</span>`;btn.disabled = false;return;}const agentName = sel.options[sel.selectedIndex].text.replace(/\s*\(already.*\)$/, '');host.innerHTML = `<div class="card" style="margin-top:1rem;background:rgba(74,222,128,0.06);border-color:rgba(74,222,128,0.2)">- <h2 style="color:var(--success)">✓ Assigned to ${esc(agentName)}</h2>+ <h2 style="color:var(--ok-fg)">✓ Assigned to ${esc(agentName)}</h2><p class="desc" style="margin:0"><a href="/agent/${esc(sel.value)}" style="color:#ffffff">Open agent →</a> The CREATE2 record is saved. Deploy it from the agent home page when you're ready.</p></div>`;} catch (e) {- status.innerHTML = `<span style="color:var(--danger)">Network error: ${esc(e.message)}</span>`;+ status.innerHTML = `<span style="color:var(--bad-fg)">Network error: ${esc(e.message)}</span>`;btn.disabled = false;}});diff --git a/public/evm-wallet.html b/public/evm-wallet.htmlindex d972480de..c03041910 100644--- a/public/evm-wallet.html+++ b/public/evm-wallet.html@@ -54,7 +54,7 @@.meter .seg { flex: 1; height: 7px; border-radius: 4px; background: #2a2a2a; transition: background .15s; }.lit-1, .lit-2, .lit-3 { background: #4caf50 !important; }.lit-4, .lit-5 { background: #fb8c00 !important; }- .lit-6, .lit-7, .lit-8, .lit-9, .lit-10 { background: #d32f2f !important; }+ .lit-6 { background: #d32f2f !important; }.row { display: flex; justify-content: space-between; align-items: center; margin-top: .55rem; font-size: .85rem; color: var(--muted); }@@ -237,7 +237,6 @@</main><script type="module">- import { Wallet } from 'ethers';import { grindEoaVanity } from '/src/eth/vanity/eoa-grinder.js';import {validatePattern, estimateAttempts, formatTimeEstimate,@@ -476,6 +475,10 @@startPreviewLoop();} finally {controls = null;+ // Belt-and-suspenders: the decorative scan-line interval is+ // normally cleared in endGrindUI, but clear it here too so it+ // can never leak if an error is thrown before endGrindUI runs.+ if (scanLoop) { clearInterval(scanLoop); scanLoop = null; }}});@@ -526,7 +529,7 @@<div class="export"><h4>Raw private key</h4><p class="sub">For a quick MetaMask <em>Import account → Private Key</em>. Anyone with this string controls the wallet — never paste it into a website or share it.</p>- <div class="out-row"><span class="v pk-blur" id="pk-text">${esc(result.privateKey)}</span></div>+ <div class="out-row"><span class="v pk-blur" id="pk-text"></span></div><div class="actions" style="margin-top:.5rem"><button id="pk-reveal" class="btn" type="button">Reveal</button><button id="pk-copy" class="btn" type="button">Copy private key</button>@@ -539,9 +542,27 @@Download the encrypted keystore or copy the private key before you navigate away — once this tab closes, the key is gone.Anyone with the key (or keystore + password) can spend funds at this address.</div>++ <div class="export">+ <h4>Use this wallet with an agent</h4>+ <p class="sub">+ This is a self-custody EOA — three.ws never receives the private key, so there's no server-side handoff to assign it. Keep custody yourself:+ </p>+ <ol style="margin:.2rem 0 .6rem;padding-left:1.15rem;font-size:.8rem;color:var(--muted);line-height:1.6">+ <li>Import the keystore (or private key) above into <strong>MetaMask</strong>, Rabby, or Coinbase Wallet.</li>+ <li>Link that wallet to your account from <a href="/dashboard/wallets" style="color:#a78bfa">Dashboard → Wallets</a> so your agents can reference it.</li>+ </ol>+ <div class="actions" style="margin-top:.2rem">+ <a class="btn primary" href="/dashboard/wallets" style="flex:none;text-decoration:none">Open wallet dashboard →</a>+ </div>+ </div></div>`;+ // Inject the raw private key as text, not markup — keep the secret+ // out of any HTML string template entirely.+ $('pk-text').textContent = result.privateKey;+// Keystore encryption (scrypt is intentionally slow — show progress).$('ks-download').addEventListener('click', async () => {const pass = $('ks-pass').value;@@ -553,6 +574,10 @@btn.disabled = true;$('ks-status').innerHTML = `<div class="ok" id="ks-prog">Encrypting… 0%</div>`;try {+ // Lazy-load ethers only when the user actually exports a+ // keystore — the grinder itself runs on lean @noble crypto,+ // so the page never pulls ethers on initial load.+ const { Wallet } = await import('ethers');const wallet = new Wallet(result.privateKey);const json = await wallet.encrypt(pass, (pct) => {const el = $('ks-prog');diff --git a/public/features.json b/public/features.jsonindex cb64a9855..96efbd93c 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-18T22:54:38.425Z",+ "generated_at": "2026-06-18T23:14:18.161Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/forever.html b/public/forever.htmlindex b4e372153..956729d8d 100644--- a/public/forever.html+++ b/public/forever.html@@ -248,7 +248,7 @@}.cta {flex: 1;- min-width: 240px;+ min-width: min(240px, 100%);display: inline-flex;justify-content: center;align-items: center;@@ -269,6 +269,13 @@.cta:hover { transform: translateY(-1px); box-shadow: 0 18px 60px -10px var(--btc-glow); background: #ffa84d; }.cta:active { transform: translateY(0); }.cta:disabled { opacity: 0.55; cursor: not-allowed; transform: none; box-shadow: none; }+ .cta:focus-visible, .btn:focus-visible, .share-x:focus-visible,+ .composer-frame textarea:focus-visible, .options input:focus-visible,+ .options select:focus-visible, .copy:focus-visible {+ outline: 2px solid var(--btc); outline-offset: 3px;+ }+ /* Action/explorer links stay inert until JS sets a real href. */+ .is-pending { opacity: 0.5; cursor: not-allowed; pointer-events: none; }.cta svg { width: 18px; height: 18px; }.subnote {font-family: var(--mono);@@ -573,7 +580,7 @@<div id="nav-container"></div><script src="/nav.js"></script>-<main>+<main aria-live="polite"><!-- ── compose view ──────────────────────────────────────────── --><section id="view-compose" class="view fade-in">@@ -614,14 +621,14 @@</div><div class="cta-row">- <button id="inscribeBtn" class="cta" type="button">+ <button id="inscribeBtn" class="cta" type="button" aria-describedby="feeEstimate"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round"><path d="M5 12h14"/><path d="M13 6l6 6-6 6"/></svg>Inscribe forever</button>- <span class="subnote">paid in BTC · settled in ~1 block</span>+ <span class="subnote" id="feeEstimate" role="status" aria-live="polite">paid in BTC · settled in ~1 block</span></div>- <div id="errorBanner" class="error-banner"></div>+ <div id="errorBanner" class="error-banner" role="alert" aria-live="assertive"></div></div></section>@@ -661,8 +668,8 @@</div><div class="pay-actions">- <a id="openWallet" class="btn primary" href="#">Open in wallet</a>- <a id="mempoolLink" class="btn" target="_blank" rel="noopener" href="#">View on mempool ↗</a>+ <a id="openWallet" class="btn primary is-pending" role="button" aria-disabled="true">Open in wallet</a>+ <a id="mempoolLink" class="btn is-pending" target="_blank" rel="noopener" aria-disabled="true">View on mempool ↗</a><button id="cancelPay" class="btn" type="button">Cancel</button></div></div>@@ -677,8 +684,8 @@<h2>It's forever now.</h2><div class="win-message" id="winMessage">—</div><div class="win-card">- <div class="row"><span class="k">Inscription</span><span class="v"><a id="winInscriptionLink" href="#" target="_blank" rel="noopener">—</a></span></div>- <div class="row"><span class="k">Reveal tx</span><span class="v"><a id="winTxLink" href="#" target="_blank" rel="noopener">—</a></span></div>+ <div class="row"><span class="k">Inscription</span><span class="v"><a id="winInscriptionLink" class="is-pending" target="_blank" rel="noopener" aria-disabled="true">—</a></span></div>+ <div class="row"><span class="k">Reveal tx</span><span class="v"><a id="winTxLink" class="is-pending" target="_blank" rel="noopener" aria-disabled="true">—</a></span></div><div class="row"><span class="k">Receive</span><span class="v" id="winReceive">—</span></div><div class="row"><span class="k">Network</span><span class="v">Bitcoin mainnet</span></div></div>diff --git a/public/forever.js b/public/forever.jsindex 0d2d5963c..6935ce6e2 100644--- a/public/forever.js+++ b/public/forever.js@@ -43,6 +43,7 @@ const els = {shareX: $('shareX'),copyLink: $('copyLink'),inscribeAnother: $('inscribeAnother'),+ feeEstimate: $('feeEstimate'),};const STATE_LABEL = {@@ -64,8 +65,47 @@ function updateCounters() {els.message.style.height = 'auto';els.message.style.height = Math.min(els.message.scrollHeight, 360) + 'px';}-els.message.addEventListener('input', updateCounters);+// ── live fee estimate ───────────────────────────────────────────+// A taproot text inscription pays for two transactions: the commit and the+// reveal. The reveal carries the inscription in its witness, which gets the+// 4x SegWit weight discount. These constants approximate the vsize so the user+// sees the BTC cost — and can confirm they have funds — before committing to a+// real on-chain charge. The authoritative amount still comes from the order.+const COMMIT_VBYTES = 154; // 1-in / 2-out P2TR commit tx+const REVEAL_OVERHEAD_VBYTES = 160; // reveal tx minus the inscription witness+const POSTAGE_SATS = 546; // dust output that carries the inscribed sat+const SERVICE_BUFFER = 1.12; // OrdinalsBot service + mining-fee headroom++function estimateInscriptionSats(messageBytes, feeRate) {+ if (!Number.isFinite(messageBytes) || !Number.isFinite(feeRate) || feeRate <= 0) {+ return null;+ }+ // Inscription witness bytes get the /4 weight discount.+ const witnessVbytes = Math.ceil(messageBytes / 4) + 60; // +60 for envelope opcodes+ const totalVbytes = COMMIT_VBYTES + REVEAL_OVERHEAD_VBYTES + witnessVbytes;+ const minerSats = totalVbytes * feeRate;+ return Math.ceil((minerSats + POSTAGE_SATS) * SERVICE_BUFFER);+}++function renderFeeEstimate() {+ if (!els.feeEstimate) return;+ const bytes = new TextEncoder().encode(els.message.value).length;+ const feeRate = Number(els.feeRate.value);+ const sats = estimateInscriptionSats(bytes, feeRate);+ if (!sats) {+ els.feeEstimate.textContent = 'paid in BTC · settled in ~1 block';+ return;+ }+ const btc = sats / 1e8;+ const usd = BTC_USD ? ` · ≈ $${(btc * BTC_USD).toLocaleString(undefined, { maximumFractionDigits: 2 })}` : '';+ els.feeEstimate.textContent =+ `est. ~${sats.toLocaleString()} sats (${btc.toFixed(8)} BTC)${usd} · have funds ready before you commit`;+}++els.message.addEventListener('input', () => { updateCounters(); renderFeeEstimate(); });+els.feeRate.addEventListener('change', renderFeeEstimate);updateCounters();+renderFeeEstimate();// ── btc/usd price (single fetch, best-effort) ───────────────────let BTC_USD = null;@@ -75,7 +115,10 @@ async function fetchBtcPrice() {if (!r.ok) return;const d = await r.json();const p = d?.bitcoin?.usd;- if (typeof p === 'number') BTC_USD = p;+ if (typeof p === 'number') {+ BTC_USD = p;+ renderFeeEstimate();+ }} catch {// Price is decoration; not required for the flow.}@@ -117,6 +160,23 @@ function clearError() {els.errorBanner.textContent = '';}+// ── link enable/disable ────────────────────────────────────────+// Action links (open-in-wallet, mempool) ship inert with no href so they can't+// navigate to "#". Once a valid target exists we set the href and clear the+// inert styling; if it's missing we keep them disabled.+function setLinkActive(el, href) {+ if (!el) return;+ if (href) {+ el.href = href;+ el.classList.remove('is-pending');+ el.removeAttribute('aria-disabled');+ } else {+ el.removeAttribute('href');+ el.classList.add('is-pending');+ el.setAttribute('aria-disabled', 'true');+ }+}+// ── view switching ─────────────────────────────────────────────function show(view) {els.viewCompose.classList.remove('show', 'fade-in');@@ -164,6 +224,22 @@ els.inscribeBtn.addEventListener('click', async () => {const receiveAddress = els.receive.value.trim() || undefined;const feeRate = Number(els.feeRate.value);+ // Funds gate: an inscription is a real, non-refundable BTC charge paid from+ // the user's own wallet. Surface the estimated cost and require explicit+ // confirmation that they hold enough BTC before we create the order.+ const estSats = estimateInscriptionSats(bytes, feeRate);+ if (estSats) {+ const estBtc = (estSats / 1e8).toFixed(8);+ const estUsd = BTC_USD ? ` (≈ $${((estSats / 1e8) * BTC_USD).toLocaleString(undefined, { maximumFractionDigits: 2 })})` : '';+ const ok = window.confirm(+ `This inscription will cost approximately ${estSats.toLocaleString()} sats — ${estBtc} BTC${estUsd}, ` ++ `paid from your own Bitcoin wallet at ${feeRate} sats/vB.\n\n` ++ `Make sure that wallet holds enough BTC to cover the charge plus network fees. ` ++ `The payment is final once broadcast.\n\nContinue?`,+ );+ if (!ok) return;+ }+els.inscribeBtn.disabled = true;els.inscribeBtn.innerHTML ='<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.4" stroke-linecap="round"><circle cx="12" cy="12" r="9" opacity="0.25"/><path d="M12 3a9 9 0 0 1 9 9"><animateTransform attributeName="transform" type="rotate" from="0 12 12" to="360 12 12" dur="0.9s" repeatCount="indefinite"/></path></svg> Creating order…';@@ -224,8 +300,8 @@ async function onOrderCreated(data, message) {label: 'three.ws · forever',});renderQR(bip21);- els.openWallet.href = bip21;- els.mempoolLink.href = `https://mempool.space/address/${c.address}`;+ setLinkActive(els.openWallet, c.address ? bip21 : null);+ setLinkActive(els.mempoolLink, c.address ? `https://mempool.space/address/${c.address}` : null);setStatePill('waiting-payment');show('pay');@@ -281,13 +357,13 @@ async function onInscribed(d) {els.winMessage.textContent = currentOrder.message;els.winInscriptionLink.textContent = insc.id;- els.winInscriptionLink.href = inscriptionUrl;+ setLinkActive(els.winInscriptionLink, inscriptionUrl);if (txUrl) {els.winTxLink.textContent = insc.revealTxid || 'view tx';- els.winTxLink.href = txUrl;+ setLinkActive(els.winTxLink, txUrl);} else {els.winTxLink.textContent = '—';- els.winTxLink.removeAttribute('href');+ setLinkActive(els.winTxLink, null);}els.winReceive.textContent = currentOrder.receiveAddress;@@ -382,8 +458,8 @@ document.querySelectorAll('.copy[data-copy]').forEach((btn) => {els.payAddress.textContent = d.charge.address;const bip21 = buildBip21({ address: d.charge.address, amountBtc, label: 'three.ws · forever' });renderQR(bip21);- els.openWallet.href = bip21;- els.mempoolLink.href = `https://mempool.space/address/${d.charge.address}`;+ setLinkActive(els.openWallet, bip21);+ setLinkActive(els.mempoolLink, `https://mempool.space/address/${d.charge.address}`);}setStatePill(d.state || 'waiting-payment');startPolling();diff --git a/public/forgot-password.html b/public/forgot-password.htmlindex 1afb9b6cc..51d5a6f29 100644--- a/public/forgot-password.html+++ b/public/forgot-password.html@@ -283,16 +283,30 @@btn.disabled = true;btn.textContent = 'Sending…';try {- await fetch('/api/auth/forgot-password', {+ const res = await fetch('/api/auth/forgot-password', {method: 'POST',headers: { 'content-type': 'application/json' },body: JSON.stringify({email: document.getElementById('email').value,}),});- ok.style.display = 'block';+ // The server always answers 200 with a privacy-preserving body+ // (it never reveals whether an account exists). A 5xx is a real+ // server fault, not that response — surface it so the user can retry.+ if (res.status >= 500) {+ err.textContent =+ 'Something went wrong on our end — your reset link wasn’t sent. Please try again.';+ err.style.display = 'block';+ } else {+ ok.style.display = 'block';+ }} catch {- ok.style.display = 'block';+ // A fetch rejection means the request never reached the server+ // (offline / DNS / transport). Showing the success message here+ // would tell the user a link is on the way when nothing was sent.+ err.textContent =+ "Couldn't reach the server — check your connection and try again.";+ err.style.display = 'block';} finally {btn.disabled = false;btn.textContent = 'Send reset link';diff --git a/public/gmgn.html b/public/gmgn.htmlindex b0e79ba2f..4809e40d0 100644--- a/public/gmgn.html+++ b/public/gmgn.html@@ -38,7 +38,9 @@.dot.connecting { background: #fbbf24; }.dot.down { background: #f87171; }@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }- .status-pill { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; background: transparent; cursor: default; }+ .status-pill { font-size: 11px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border: 1px solid var(--border); border-radius: 999px; background: transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s, color 0.15s; }+ .status-pill:hover { background: #1a1a1a; border-color: #2e2e2e; color: #eee; }+ .status-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }.pf-filterbar .ctl { margin-left: auto; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; row-gap: 6px; }.pf-filterbar label { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }.pf-filterbar input[type="number"], .pf-filterbar select, .pf-filterbar button { background: #161616; color: #eee; border: 1px solid #2a2a2a; border-radius: 6px; padding: 5px 9px; font-size: 12px; }@@ -68,7 +70,10 @@.pf-tab:hover { color: #eee; }.pf-tab[aria-selected="true"] { color: #eee; border-bottom-color: var(--accent); }.pf-tab .badge { display: inline-block; margin-left: 6px; font-size: 10px; color: var(--muted); }- .pf-toolbar { display: flex; gap: 8px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); }+ .pf-toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 18px; border-bottom: 1px solid var(--border); }+ .pf-toolbar .custom-msg { flex-basis: 100%; font-size: 11px; color: #f87171; min-height: 0; margin: -2px 0 0; transition: min-height 0.15s; }+ .pf-toolbar .custom-msg:empty { display: none; }+ .pf-toolbar .custom-row input.invalid { border-color: #f87171; }.pf-toolbar input[type="search"] { flex: 1; background: #161616; color: #eee; border: 1px solid #2a2a2a; border-radius: 6px; padding: 7px 10px; font-size: 13px; }.pf-toolbar input[type="search"]:focus { outline: none; border-color: var(--accent); }.pf-toolbar .custom-row { display: flex; gap: 6px; align-items: center; }@@ -112,7 +117,7 @@/* Feed sidebar */#side { display: flex; flex-direction: column; border-left: 1px solid var(--border); background: var(--panel); overflow: hidden; min-width: 260px; max-width: 480px; resize: horizontal; }- .side-header { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #101010; cursor: move; user-select: none; gap: 8px; }+ .side-header { display: flex; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); background: #101010; user-select: none; gap: 8px; }.side-title { font-size: 13px; font-weight: 600; flex: 1; }.side-control-btn { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; line-height: 1; padding: 2px 6px; border-radius: 3px; }.side-control-btn:hover { background: #1f1f1f; color: #eee; }@@ -177,7 +182,7 @@<span class="dot connecting" id="status-dot" aria-label="Connecting"></span>GMGN Smart Money</h1>- <button class="status-pill" id="status-pill" type="button" title="Connection status">+ <button class="status-pill" id="status-pill" type="button" title="Reconnect to the live feed now" aria-label="Connection status — click to reconnect"><span id="status-text">Connecting…</span></button><div class="ctl">@@ -250,9 +255,10 @@<div class="pf-toolbar"><input type="search" id="picker-search" placeholder="Search avatars…" aria-label="Search" /><div class="custom-row">- <input type="url" id="picker-custom-url" placeholder="Paste .glb / .gltf / .vrm URL" aria-label="Custom avatar URL" />+ <input type="url" id="picker-custom-url" placeholder="Paste .glb / .gltf / .vrm URL" aria-label="Custom avatar URL" aria-describedby="picker-custom-msg" /><button type="button" id="picker-custom-go">Use</button></div>+ <p class="custom-msg" id="picker-custom-msg" role="alert" aria-live="polite"></p></div><div class="pf-content"><div class="pf-body" id="picker-body"></div>@@ -668,6 +674,11 @@connect();});+ $('status-pill').addEventListener('click', () => {+ if (_reconnectTimer) { clearTimeout(_reconnectTimer); _reconnectTimer = null; }+ connect();+ });+// ── Avatar picker ────────────────────────────────────────────────────────const DEFAULT_AVATARS = [{ url: '/avatars/cz.glb', name: 'CZ', sub: 'Default narrator', emoji: '🟡' },@@ -726,12 +737,38 @@});$('picker-custom-go').addEventListener('click', useCustomUrl);$('picker-custom-url').addEventListener('keydown', (e) => { if (e.key === 'Enter') useCustomUrl(); });+ // Clear the inline error as soon as the user edits the field again.+ $('picker-custom-url').addEventListener('input', () => clearCustomMsg());++ function clearCustomMsg() {+ $('picker-custom-msg').textContent = '';+ $('picker-custom-url').classList.remove('invalid');+ }function useCustomUrl() {- const v = $('picker-custom-url').value.trim();- if (!v) return;- try { new URL(v, location.href); } catch { alert('Invalid URL.'); return; }- $('picker-custom-url').value = '';+ const input = $('picker-custom-url');+ const v = input.value.trim();+ if (!v) {+ $('picker-custom-msg').textContent = 'Paste a model URL first.';+ input.classList.add('invalid');+ input.focus();+ return;+ }+ let url;+ try { url = new URL(v, location.href); } catch {+ $('picker-custom-msg').textContent = "That doesn't look like a valid URL.";+ input.classList.add('invalid');+ input.focus();+ return;+ }+ if (!/\.(glb|gltf|vrm)(\?|#|$)/i.test(url.pathname + url.search)) {+ $('picker-custom-msg').textContent = 'Link must point to a .glb, .gltf, or .vrm model.';+ input.classList.add('invalid');+ input.focus();+ return;+ }+ clearCustomMsg();+ input.value = '';setAvatar(v, v.split('/').pop().replace(/\.[^.]+$/, ''), 'Custom');closePicker();}diff --git a/public/launch/launch.js b/public/launch/launch.jsindex f9b000918..be275fed0 100644--- a/public/launch/launch.js+++ b/public/launch/launch.js@@ -174,6 +174,7 @@ export function mountLaunchCoin(root) {launchPanel = mountLaunchPanel(panelEl, {getAvatar: () => currentAvatar(),getUser: () => state.user,+ context: 'launch',});(async function boot() {diff --git a/public/login.html b/public/login.htmlindex 16a1bbf2c..0b89ae18c 100644--- a/public/login.html+++ b/public/login.html@@ -911,11 +911,23 @@const navType = performance.getEntriesByType('navigation')[0]?.type;if (navType !== 'back_forward') {fetch('/api/auth/me', { credentials: 'include' })- .then((r) => (r.ok ? r.json() : null))+ .then((r) => {+ if (r.ok) return r.json();+ // 401 = not signed in: expected, stay on the form silently.+ if (r.status === 401) return null;+ throw new Error('session-check-failed');+ }).then((data) => {if (data?.user) location.replace(next);})- .catch(() => {});+ .catch(() => {+ // Network/transport failure while checking an existing+ // session — tell the user rather than silently showing a+ // blank form they may already be signed in behind.+ err.textContent =+ "Couldn't verify your session — check your connection. You can still sign in below.";+ err.style.display = 'block';+ });}// ── Submit ──@@ -968,8 +980,16 @@} catch {/* ignore */}- window.__avatarCelebrate?.();- setTimeout(() => { location.href = next; }, 2000);+ btn.textContent = 'Signed in — redirecting…';+ // Tie the redirect to the celebration animation's own length+ // (one dance cycle) instead of an arbitrary fixed timer, and+ // use replace() so Back never lands the user on the login form+ // again after they're authenticated.+ const danceMs = window.__avatarCelebrate?.() || 1200;+ setTimeout(+ () => location.replace(next),+ Math.min(Math.max(danceMs, 700), 1800),+ );} catch (e2) {setFieldError(passwordInput, passwordErr, e2.message);btn.disabled = false;@@ -1085,6 +1105,10 @@window.__avatarCelebrate = function () {agent.faceFront();agent.play('dance', { loop: true });+ // Report one dance-cycle length (ms) so the redirect can wait for a+ // natural beat of the animation rather than a hard-coded delay.+ const cycle = agent.clip('dance');+ return cycle ? cycle * 1000 : 0;};</script><script src="/brand.js" defer></script>diff --git a/public/lookup.html b/public/lookup.htmlindex 9f05ea5b4..2ffde11bb 100644--- a/public/lookup.html+++ b/public/lookup.html@@ -9,41 +9,64 @@name="description"content="Resolve any three.ws agent by mint, ID, or slug — its 3D avatar and on-chain identity."/>+ <link rel="icon" href="/favicon.ico" />+ <link rel="stylesheet" href="/style.css" />+ <link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/footer.css" />+ <script defer src="/footer-newsletter.js"></script><scripttype="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>- * {- box-sizing: border-box;- }+ /* Lookup-local aliases mapped onto the site design tokens (/tokens.css)+ so light + dark both resolve correctly from [data-theme]. */:root {- --fg: #111;- --muted: #555;- --border: #e5e5e5;- --bg: #fafafa;- --ok-bg: #e7f5e9;- --ok-fg: #1b5e20;- --warn-bg: #fff3cd;- --warn-fg: #855008;- --bad-bg: #fce8e8;- --bad-fg: #b71c1c;- --info-bg: #e3f2fd;- --info-fg: #0d47a1;+ --fg: var(--ink);+ --muted: var(--ink-dim);+ --border: var(--stroke);+ --bg: var(--surface-1);+ --ok-bg: var(--badge-success-bg);+ --ok-fg: var(--badge-success-fg);+ --warn-bg: var(--badge-warn-bg);+ --warn-fg: var(--badge-warn-fg);+ --bad-bg: var(--badge-danger-bg);+ --bad-fg: var(--badge-danger-fg);+ --info-bg: var(--accent-soft);+ --info-fg: var(--accent);}body {- font:- 14px/1.5 system-ui,- -apple-system,- sans-serif;+ font-family: var(--font-body);+ font-size: var(--text-sm);+ line-height: 1.5;+ margin: 0;+ min-height: 100vh;+ display: flex;+ flex-direction: column;+ color: var(--fg);+ background: var(--bg-0);+ }+ main {+ flex: 1;+ width: 100%;max-width: 880px;margin: 1.5rem auto;- padding: 0 1rem;- color: var(--fg);+ padding: 0 1rem 3rem;+ }+ .skip-link {+ position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden;+ }+ .skip-link:focus {+ left: 1rem; top: 1rem; width: auto; height: auto;+ padding: 0.5rem 1rem; background: var(--bg-1); border: 1px solid var(--stroke-strong);+ border-radius: var(--radius-md); z-index: 9999; color: var(--ink); text-decoration: none;}h1 {+ font-family: var(--font-display);font-size: 1.4rem;margin: 0 0 0.25rem;+ color: var(--ink-bright);+ letter-spacing: -0.02em;}h2 {font-size: 1rem;@@ -77,15 +100,28 @@.row button {font: inherit;padding: 0.45rem 0.8rem;- border: 1px solid #ccc;- background: #fff;+ border: 1px solid var(--stroke-strong);+ background: var(--surface-2);+ color: var(--fg);border-radius: 6px;cursor: pointer;+ transition: background 0.15s ease, border-color 0.15s ease;+ }+ .row button:hover {+ background: var(--surface-3);+ border-color: var(--stroke-strong);+ }+ .row button:focus-visible {+ outline: var(--focus-ring-width) solid var(--focus-ring-color);+ outline-offset: var(--focus-ring-offset);}.row button.primary {- background: #111;- color: #fff;- border-color: #111;+ background: var(--accent);+ color: var(--btn-primary-fg);+ border-color: transparent;+ }+ .row button.primary:hover {+ background: var(--btn-primary-bg-hover);}.row button:disabled {opacity: 0.5;@@ -107,7 +143,7 @@.stage {border: 1px solid var(--border);border-radius: 12px;- background: radial-gradient(circle at 50% 30%, #fff, #f1f1f3);+ background: radial-gradient(circle at 50% 30%, var(--surface-2), var(--surface-1));aspect-ratio: 1 / 1;position: relative;overflow: hidden;@@ -146,7 +182,7 @@border: 1px solid var(--border);border-radius: 10px;padding: 1rem 1.1rem;- background: #fff;+ background: var(--surface-1);}.panel {margin-top: 0.75rem;@@ -160,6 +196,7 @@.identity-name {font-size: 1.25rem;font-weight: 600;+ color: var(--ink-bright);}.genesis {display: inline-flex;@@ -220,7 +257,8 @@min-width: 0;}.kv code {- background: #f3f3f3;+ background: var(--surface-2);+ font-family: var(--font-mono);padding: 0.1rem 0.4rem;border-radius: 4px;font-size: 0.75rem;@@ -232,11 +270,17 @@line-height: 1.4;cursor: pointer;border: 1px solid var(--border);- background: #fff;+ background: var(--surface-2);+ color: var(--fg);border-radius: 4px;+ transition: background 0.15s ease;}.copy-btn:hover {- background: #f3f3f3;+ background: var(--surface-3);+ }+ .copy-btn:focus-visible {+ outline: var(--focus-ring-width) solid var(--focus-ring-color);+ outline-offset: 1px;}.links {display: flex;@@ -257,8 +301,22 @@border-color 0.15s ease;}.links a:hover {- background: #fff;- border-color: #bbb;+ background: var(--surface-3);+ border-color: var(--stroke-strong);+ }+ .links a:focus-visible {+ outline: var(--focus-ring-width) solid var(--focus-ring-color);+ outline-offset: var(--focus-ring-offset);+ }+ .links a.primary {+ background: var(--accent);+ color: var(--btn-primary-fg);+ border-color: transparent;+ font-weight: 600;+ }+ .links a.primary:hover {+ background: var(--btn-primary-bg-hover);+ border-color: transparent;}.pills {@@ -269,7 +327,7 @@}.skeleton {- background: linear-gradient(90deg, #eee 0%, #f6f6f6 50%, #eee 100%);+ background: linear-gradient(90deg, var(--skeleton-base) 0%, var(--skeleton-sheen) 50%, var(--skeleton-base) 100%);background-size: 200% 100%;animation: shimmer 1.2s infinite;border-radius: 6px;@@ -328,25 +386,33 @@<script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Agent Lookup","description":"Resolve any three.ws agent by Solana mint, agent ID, avatar ID, or slug — renders its interactive 3D avatar alongside its on-chain identity (collection, owner, agent wallet, Active/x402 status, Metaplex/Solscan/Magic Eden links).","url":"https://three.ws/lookup","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script></head><body>- <h1>Agent lookup</h1>- <p class="muted">- Resolve any three.ws agent by mint, agent ID, avatar ID, or slug — see its 3D body and- on-chain identity.- </p>+ <a href="#main-content" class="skip-link">Skip to main content</a>+ <header>+ <div id="nav-container"></div>+ </header>+ <script src="/nav.js"></script>++ <main id="main-content">+ <h1>Agent lookup</h1>+ <p class="muted">+ Resolve any three.ws agent by mint, agent ID, avatar ID, or slug — see its 3D body and+ on-chain identity.+ </p>- <div class="row">- <input- id="q"- placeholder="Paste a Solana mint, agent ID, avatar ID, or slug…"- autocomplete="off"- spellcheck="false"- aria-label="Agent lookup query"- />- <button id="go" class="primary">Look up</button>- <button id="share" title="Copy shareable link">Share</button>- </div>+ <div class="row">+ <input+ id="q"+ placeholder="Paste a Solana mint, agent ID, avatar ID, or slug…"+ autocomplete="off"+ spellcheck="false"+ aria-label="Agent lookup query"+ />+ <button id="go" class="primary">Look up</button>+ <button id="share" title="Copy shareable link">Share</button>+ </div>- <div id="result"></div>+ <div id="result"></div>+ </main><script type="module">const $ = (id) => document.getElementById(id);@@ -499,6 +565,12 @@typeof data.genesisRank === 'number'? `<span class="genesis" title="Deployment order on-chain">✦ Genesis #${data.genesisRank}</span>`: '';+ // On-platform onward link to the canonical agent profile (/agents/:id).+ // Rendered as the primary action so a resolved agent never dead-ends+ // off-platform on the external explorer links.+ const profileLink = data.agentId+ ? `<div class="links"><a class="primary" href="/agents/${encodeURIComponent(data.agentId)}">Open agent page →</a></div>`+ : '';$('result').innerHTML = `<div class="layout">${stageHtml(data)}@@ -510,6 +582,7 @@${data.state === 'private' ? '<span class="pill warn">private</span>' : ''}</div>${data.description ? `<div class="identity-desc">${escapeHtml(data.description)}</div>` : ''}+ ${profileLink}</div>${onchainHtml(data.onchain)}</div>@@ -520,14 +593,16 @@}async function copyText(text, btn) {+ const prev = btn.textContent;try {await navigator.clipboard.writeText(text);- const prev = btn.textContent;btn.textContent = 'copied';- setTimeout(() => {- btn.textContent = prev;- }, 1200);- } catch {}+ } catch {+ btn.textContent = 'copy failed';+ }+ setTimeout(() => {+ btn.textContent = prev;+ }, 1200);}async function lookup() {@@ -565,6 +640,88 @@if ($('q').value.trim()) lookup();</script>++ <footer class="h-footer-horizon">+ <div class="h-footer-glow-line" aria-hidden="true"></div>+ <div class="h-footer-floor" aria-hidden="true"></div>+ <div class="h-footer-haze" aria-hidden="true"></div>+ <div class="h-footer-watermark" aria-hidden="true">three.ws</div>+ <div class="h-footer-cta">+ <div class="h-footer-newsletter">+ <h3>Stay in the loop</h3>+ <p>Get updates on new features, agent tooling, and protocol changes.</p>+ <form class="h-footer-newsletter-form" data-newsletter-form novalidate>+ <input+ type="email"+ class="h-footer-newsletter-input"+ name="email"+ placeholder="Enter your email"+ aria-label="Email address"+ autocomplete="email"+ required+ />+ <button type="submit" class="h-footer-newsletter-btn" aria-label="Subscribe">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" d="M2 8h11m0 0L9 4m4 4l-4 4"/></svg>+ </button>+ </form>+ <p class="h-footer-newsletter-msg" data-newsletter-msg aria-live="polite"></p>+ </div>+ <div class="h-footer-community">+ <h3>Join the community</h3>+ <p>Follow along for builds, demos, and conversations with the team.</p>+ <a class="h-footer-community-btn" href="https://x.com/trythreews" target="_blank" rel="noopener">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>+ Follow on X+ </a>+ </div>+ </div>+ <div class="h-footer-inner">+ <div class="h-footer-brand-col">+ <div class="h-footer-brand">+ <img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" />+ <span class="wordmark-dot" aria-hidden="true"></span>+ <span>three.ws</span>+ </div>+ <p class="h-footer-tagline">Give your AI a body.</p>+ <div class="h-footer-socials">+ <a class="h-footer-social" href="https://x.com/trythreews" target="_blank" rel="noopener" aria-label="three.ws on X">+ <svg viewBox="0 0 24 24" aria-hidden="true"><path fill="currentColor" d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>+ </a>+ <a class="h-footer-social" href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener" aria-label="three.ws on GitHub">+ <svg viewBox="0 0 16 16" aria-hidden="true"><path fill="currentColor" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0 0 16 8c0-4.42-3.58-8-8-8z"/></svg>+ </a>+ </div>+ </div>+ <nav class="h-footer-links" aria-label="Footer">+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Product</h4>+ <a href="/create">Create</a>+ <a href="/studio">Studio</a>+ <a href="/widgets">Widgets</a>+ <a href="/discover">Discover</a>+ </div>+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Developers</h4>+ <a href="/docs">Docs</a>+ <a href="https://github.com/nirholas/three.ws" target="_blank" rel="noopener">GitHub</a>+ </div>+ <div class="h-footer-link-col">+ <h4 class="h-footer-link-heading">Resources</h4>+ <a href="/dashboard">Dashboard</a>+ </div>+ </nav>+ </div>+ <div class="h-footer-bottom">+ <p class="h-footer-legal">© 2026 three.ws — All rights reserved.</p>+ <div class="h-footer-legal-links">+ <a href="/legal/privacy">Privacy Policy</a>+ <a href="/legal/tos">Terms of Use</a>+ </div>+ </div>+ </footer>+<script src="/brand.js" defer></script>+ <div id="footer-container"></div>+ <script src="/footer.js"></script></body></html>diff --git a/public/pay/index.html b/public/pay/index.htmlindex 9a645fe71..3582583ad 100644--- a/public/pay/index.html+++ b/public/pay/index.html@@ -1095,8 +1095,18 @@ async function runPhantomPayment(call, displayLabel) {// 2. Connect Phantom + prepare unsigned txsetStep('built', 'active', 'connecting Phantom…');- const connectResp = await provider.connect();- const buyerAddress = connectResp.publicKey.toString();+ // The provider existed at render time, but the user may have locked or+ // disconnected the wallet since. Distinguish that from "no wallet installed"+ // (handled at the top of this function) so the message is actionable.+ let connectResp;+ try {+ connectResp = await provider.connect();+ } catch (connectErr) {+ if (connectErr?.code === 4001) throw new Error('Connection request rejected in Phantom. Approve it to pay.');+ throw new Error('Phantom is locked or disconnected. Unlock the extension and try again.');+ }+ const buyerAddress = connectResp?.publicKey?.toString();+ if (!buyerAddress) throw new Error('Phantom returned no account. Unlock the wallet and reconnect.');const prepRes = await fetch('/api/x402-checkout?action=prepare', {method: 'POST',@@ -1210,7 +1220,14 @@ async function refreshPhantomBalance(address) {if (info) usdcAmount += Number(info.uiAmount || 0);}if (balLabel) balLabel.textContent = `${usdcAmount.toFixed(3)} USDC · Solana`;- } catch { /* non-critical — label already shows address */ }+ } catch (err) {+ // Surface the failure inline rather than silently leaving a stale label.+ 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.';+ }+ }}// ---- MetaMask / Base (EIP-3009) inline payment --------------------------@@ -1693,29 +1710,36 @@ async function* sseEvents(response) {const reader = response.body.getReader();const decoder = new TextDecoder();let buf = '';- while (true) {- const { value, done } = await reader.read();- if (done) break;- buf += decoder.decode(value, { stream: true });- let idx;- while ((idx = buf.indexOf('\n\n')) >= 0) {- const block = buf.slice(0, idx);- buf = buf.slice(idx + 2);- let event = 'message';- const dataLines = [];- for (const line of block.split('\n')) {- if (line.startsWith('event:')) event = line.slice(6).trim();- else if (line.startsWith('data:')) dataLines.push(line.slice(5).trim());- }- if (!dataLines.length) continue;- let data = null;- try {- data = JSON.parse(dataLines.join('\n'));- } catch (err) {- console.warn('[pay] SSE JSON parse failed:', err?.message || err);+ try {+ while (true) {+ const { value, done } = await reader.read();+ if (done) break;+ buf += decoder.decode(value, { stream: true });+ let idx;+ while ((idx = buf.indexOf('\n\n')) >= 0) {+ const block = buf.slice(0, idx);+ buf = buf.slice(idx + 2);+ let event = 'message';+ const dataLines = [];+ for (const line of block.split('\n')) {+ if (line.startsWith('event:')) event = line.slice(6).trim();+ else if (line.startsWith('data:')) dataLines.push(line.slice(5).trim());+ }+ if (!dataLines.length) continue;+ let data = null;+ try {+ data = JSON.parse(dataLines.join('\n'));+ } catch (err) {+ console.warn('[pay] SSE JSON parse failed:', err?.message || err);+ }+ yield { event, data };}- yield { event, data };}+ } finally {+ // Always release the lock and tear down the underlying stream, even if the+ // consumer breaks early or the facilitator closes the connection mid-block.+ try { await reader.cancel(); } catch { /* already closed */ }+ try { reader.releaseLock(); } catch { /* lock already released */ }}}@@ -1740,11 +1764,18 @@ async function run(call, displayLabel) {let final = null, errored = false;let activeId = 'challenge';+ // Tear down the SSE connection if the stream errors, the tab unloads, or the+ // consumer exits early — otherwise the half-read reader leaks a held socket.+ const ctrl = new AbortController();+ const onUnload = () => ctrl.abort();+ window.addEventListener('pagehide', onUnload, { once: true });+try {const res = await fetch('/api/x402-pay', {method: 'POST',headers: { 'content-type': 'application/json', accept: 'text/event-stream' },body: JSON.stringify(selectedAgent ? { ...call, agentId: selectedAgent.id } : call),+ signal: ctrl.signal,});if (!res.ok || !res.body) {const text = await res.text();@@ -1788,9 +1819,15 @@ async function run(call, displayLabel) {refreshBalance();refreshFeed();} catch (err) {- setStep(activeId, 'error', String(err.message || err));- addMsg('agent', `<div class="err">Network error: ${escape(String(err.message || err))}</div>`);+ if (err?.name !== 'AbortError') {+ setStep(activeId, 'error', String(err.message || err));+ addMsg('agent', `<div class="err">Network error: ${escape(String(err.message || err))}</div>`);+ }} finally {+ // Abort the request/stream so the reader is never left half-read and remove+ // the unload guard regardless of how the flow exited.+ ctrl.abort();+ window.removeEventListener('pagehide', onUnload);const elapsed = Math.round(performance.now() - t0);document.title = `${elapsed}ms · three.ws · pay-per-call`;sendBtn.disabled = false;@@ -1947,6 +1984,7 @@ promptEl.focus();const BSC_CHAIN_HEX = '0x38'; // 56const BSC_USDC = '0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d';const BSC_PAYMENTS = '0x00000000381f09742a30a5a49975514AeC1B72Cc';+const BSC_RPC = 'https://bsc-dataseed.binance.org';const PRICE = 1000n; // $0.001 USDC (6 decimals)const $b = (id) => document.getElementById(id);@@ -2045,15 +2083,52 @@ function logStep(html, kind = 'info') {return div;}+// Poll the public BSC RPC over HTTP so we can read a Retry-After header when the+// node rate-limits us. Returns { receipt, retryAfterMs } — retryAfterMs is the+// server-suggested backoff (null when none). Falls back to the wallet provider+// (which can't surface headers) if the direct RPC is unreachable.+async function fetchReceipt(txHash) {+ try {+ const res = await fetch(BSC_RPC, {+ method: 'POST',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify({ jsonrpc: '2.0', id: 1, method: 'eth_getTransactionReceipt', params: [txHash] }),+ });+ const ra = res.headers.get('retry-after');+ let retryAfterMs = null;+ if (ra) {+ const secs = Number(ra);+ retryAfterMs = Number.isFinite(secs) ? secs * 1000 : Math.max(0, new Date(ra).getTime() - Date.now());+ if (!Number.isFinite(retryAfterMs)) retryAfterMs = null;+ }+ if (res.status === 429 || res.status >= 500) return { receipt: null, retryAfterMs };+ const json = await res.json();+ return { receipt: json?.result || null, retryAfterMs };+ } catch {+ // Direct RPC unreachable — use the connected wallet's provider instead.+ const receipt = await eth('eth_getTransactionReceipt', [txHash]);+ return { receipt, retryAfterMs: null };+ }+}+async function waitForReceipt(txHash, timeoutMs = 60000) {const started = Date.now();+ let delay = 1500; // initial poll interval+ const maxDelay = 12000; // cap so we still poll a few times near the endwhile (Date.now() - started < timeoutMs) {- const rcpt = await eth('eth_getTransactionReceipt', [txHash]);- if (rcpt) {- if (rcpt.status !== '0x1') throw new Error(`tx ${txHash} reverted on-chain`);- return rcpt;+ const { receipt, retryAfterMs } = await fetchReceipt(txHash);+ if (receipt) {+ if (receipt.status !== '0x1') throw new Error(`tx ${txHash} reverted on-chain`);+ return receipt;}- await new Promise((r) => setTimeout(r, 1500));+ // Honor a server-supplied Retry-After; otherwise apply exponential backoff+ // with light jitter so we don't hammer the node in lockstep.+ const remaining = timeoutMs - (Date.now() - started);+ let wait = retryAfterMs != null ? retryAfterMs : delay + Math.floor(Math.random() * 300);+ wait = Math.min(wait, Math.max(0, remaining));+ if (wait <= 0) break;+ 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.`);}diff --git a/public/providers.html b/public/providers.htmlindex c533be9f0..e04d24a15 100644--- a/public/providers.html+++ b/public/providers.html@@ -48,6 +48,18 @@.toolbar {margin: 18px 0;display: flex; align-items: center; gap: 10px; flex-wrap: wrap;+ /* Keep the search + sort controls reachable through long listings. */+ position: sticky;+ top: 0;+ z-index: 20;+ padding: 12px 0;+ background: color-mix(in srgb, var(--bg) 88%, transparent);+ backdrop-filter: blur(10px);+ -webkit-backdrop-filter: blur(10px);+ border-bottom: 1px solid var(--border);+ }+ @supports not (background: color-mix(in srgb, red, blue)) {+ .toolbar { background: var(--bg); }}.toolbar input[type=search] {flex: 1 1 280px;@@ -282,7 +294,21 @@border-radius: 12px;margin-bottom: 56px;}- .err { color: #fecaca; border-color: rgba(248,113,113,0.3); }+ .err { color: #fecaca; border-color: rgba(248,113,113,0.3); border-style: solid; }+ .err .err-title { font-weight: 600; margin-bottom: 6px; color: #fecaca; }+ .err .retry-btn {+ margin-top: 16px;+ background: var(--accent-blue);+ color: #0b0b0b;+ border: none;+ padding: 9px 18px;+ font-size: 13px;+ border-radius: 8px;+ cursor: pointer;+ font-weight: 600;+ }+ .err .retry-btn:hover { filter: brightness(1.1); }+ .err .retry-btn:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }.skeleton {background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%);diff --git a/public/providers.js b/public/providers.jsindex c0f80eb00..4b022f2bf 100644--- a/public/providers.js+++ b/public/providers.js@@ -18,6 +18,25 @@ function escapeHtml(s) {return String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' })[c]);}+function hasPrice(p) {+ const v = p.medianPriceAtomic;+ return typeof v === 'number' && Number.isFinite(v) && v >= 0;+}++// Sort by median price, keeping price-less providers grouped at the end in both+// directions (a missing price is "unknown", never the best or worst value).+function sortByPrice(list, dir) {+ return [...list].sort((a, b) => {+ const aHas = hasPrice(a);+ const bHas = hasPrice(b);+ if (aHas !== bHas) return aHas ? -1 : 1; // priced first, unpriced last+ if (!aHas) return b.serviceCount - a.serviceCount; // stable tie-break+ return dir === 'asc'+ ? a.medianPriceAtomic - b.medianPriceAtomic+ : b.medianPriceAtomic - a.medianPriceAtomic;+ });+}+function shortNet(n) {if (!n) return '';if (n.startsWith('eip155:8453')) return 'base';@@ -29,16 +48,21 @@ function shortNet(n) {return n;}-function renderSkeleton(count = 6) {+function skeletonCards(count = 6) {const frag = document.createDocumentFragment();for (let i = 0; i < count; i++) {const sk = document.createElement('div');sk.className = 'skeleton sk-card';frag.appendChild(sk);}+ return frag;+}++// Profile mode replaces the whole root; directory mode fills its own #dgrid.+function renderSkeleton(count = 6) {const g = document.createElement('div');g.className = 'grid';- g.appendChild(frag);+ g.appendChild(skeletonCards(count));root.replaceChildren(g);}@@ -67,17 +91,36 @@ async function loadDirectory() {const qEl = $('#q');const sortEl = $('#sort');- renderSkeleton();+ // Fill the directory's own grid with skeletons — do NOT replaceChildren on+ // root here, or the dgrid/dempty refs detach and an error never replaces the+ // skeleton cards.+ dgrid.replaceChildren(skeletonCards());try {- const r = await fetch('/api/bazaar/providers?limit=500');+ const r = await fetch('/api/bazaar/providers?limit=500', {+ signal: AbortSignal.timeout(20000),+ });const data = await r.json();if (!r.ok) throw new Error(data?.error_description || data?.error || `HTTP ${r.status}`);state.directory = data.providers || [];} catch (e) {+ const timedOut = e?.name === 'TimeoutError';+ const network = e instanceof TypeError;+ const title = timedOut+ ? 'Request timed out'+ : network ? "Couldn't reach the provider directory" : 'Failed to load providers';+ const sub = timedOut+ ? 'The directory took too long to respond.'+ : network ? 'Check your connection and try again.' : escapeHtml(e?.message || String(e));dgrid.innerHTML = '';+ countEl.textContent = '0';dempty.hidden = false;dempty.className = 'err';- dempty.textContent = `Failed to load providers: ${e?.message || e}`;+ dempty.innerHTML = `+ <div class="err-title">${title}</div>+ <div>${sub}</div>+ <button type="button" class="retry-btn">Retry</button>+ `;+ dempty.querySelector('.retry-btn').addEventListener('click', loadDirectory);return;}@@ -85,11 +128,14 @@ async function loadDirectory() {const q = state.q.trim().toLowerCase();let list = state.directory.filter((p) => !q || p.host.toLowerCase().includes(q) || (p.topTags || []).some((t) => t.toLowerCase().includes(q)));switch (state.sort) {+ // Providers with no median price carry no comparable price signal, so+ // they always sink to the bottom of both price sorts rather than+ // masquerading as the cheapest (0) or most expensive.case 'price-low':- list = list.sort((a, b) => (a.medianPriceAtomic ?? Infinity) - (b.medianPriceAtomic ?? Infinity));+ list = sortByPrice(list, 'asc');break;case 'price-high':- list = list.sort((a, b) => (b.medianPriceAtomic ?? -1) - (a.medianPriceAtomic ?? -1));+ list = sortByPrice(list, 'desc');break;case 'networks':list = list.sort((a, b) => (b.networks?.length || 0) - (a.networks?.length || 0));diff --git a/public/pumpfun.html b/public/pumpfun.htmlindex 8f3aeb455..01aba0e7c 100644--- a/public/pumpfun.html+++ b/public/pumpfun.html@@ -127,6 +127,7 @@.pf-status { padding: 32px 16px; text-align: center; color: var(--muted); font-size: 13px; }.pf-status .cta { display: inline-block; margin-top: 10px; padding: 8px 14px; background: var(--accent); color: #fff; border-radius: 6px; font-size: 13px; }.pf-status .cta:hover { filter: brightness(1.1); text-decoration: none; }+ .pf-status button.cta { border: 0; cursor: pointer; font: inherit; line-height: 1.55; }.pf-loadmore { display: block; margin: 16px auto 0; background: #171717; color: #eee; border: 1px solid #2b2b2b; border-radius: 6px; padding: 8px 16px; font-size: 13px; cursor: pointer; }.pf-loadmore:hover { background: #212121; }.pf-loadmore[disabled] { opacity: 0.5; cursor: wait; }@@ -176,7 +177,7 @@#anim-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 12px;border-top: 1px solid var(--border); background: rgba(20,20,28,0.85);backdrop-filter: blur(6px); max-height: 96px; overflow-y: auto; }- #anim-chips:empty::before { content: 'loading animations…'; color: var(--muted); font-size: 11px; }+ #anim-chips[aria-busy="true"]::before { content: 'loading animations…'; color: var(--muted); font-size: 11px; align-self: center; }.anim-chip { background: #171717; color: #ddd; border: 1px solid #2b2b2b;border-radius: 999px; padding: 4px 10px; font-size: 12px; cursor: pointer;transition: background 0.15s, border-color 0.15s, transform 0.1s; user-select: none; }@@ -184,6 +185,28 @@.anim-chip:active { transform: scale(0.96); }.anim-chip[data-active="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }.anim-chip[disabled] { opacity: 0.5; cursor: wait; }+ #anim-loop-toggle { display: inline-flex; align-items: center; gap: 5px; background: #171717;+ color: #ddd; border: 1px solid #2b2b2b; border-radius: 999px; padding: 4px 11px; font-size: 12px;+ cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 0.1s; user-select: none;+ margin-right: 4px; flex: 0 0 auto; }+ #anim-loop-toggle:hover { background: #212121; border-color: #3b3b3b; }+ #anim-loop-toggle:active { transform: scale(0.96); }+ #anim-loop-toggle:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent); }+ #anim-loop-toggle[hidden] { display: none; }+ #anim-loop-toggle .lt-glyph { font-size: 11px; line-height: 1; }+ #stage-error { position: absolute; inset: 0; z-index: 3; display: none; flex-direction: column;+ align-items: center; justify-content: center; gap: 14px; padding: 24px; text-align: center;+ background: radial-gradient(ellipse at 50% 60%, rgba(20,20,20,0.96) 0%, rgba(8,8,8,0.98) 70%);+ backdrop-filter: blur(2px); }+ #stage-error[data-visible="true"] { display: flex; animation: fade-in 0.2s ease; }+ #stage-error .se-title { font-size: 16px; font-weight: 700; color: #fff; }+ #stage-error .se-msg { font-size: 13px; color: var(--muted); max-width: 420px; line-height: 1.5; }+ #stage-error .se-retry { background: var(--accent); color: #fff; border: 0; border-radius: 8px;+ padding: 9px 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: filter 0.15s, transform 0.1s; }+ #stage-error .se-retry:hover { filter: brightness(1.1); }+ #stage-error .se-retry:active { transform: scale(0.97); }+ #stage-error .se-retry:focus-visible { outline: none; box-shadow: 0 0 0 2px #fff; }+ #stage-error .se-retry[disabled] { opacity: 0.6; cursor: wait; }@media (min-width: 721px) {#side {position: relative;@@ -427,7 +450,16 @@<div id="stage-title" aria-live="polite"></div><div id="stage-caption" aria-live="polite"></div></div>- <div id="anim-chips" role="group" aria-label="Trigger animation"></div>+ <div id="stage-error" role="alert" aria-live="assertive">+ <div class="se-title">Avatar failed to load</div>+ <div class="se-msg" id="stage-error-msg">The 3D model couldn't be loaded. Check your connection or try a different avatar.</div>+ <button type="button" class="se-retry" id="stage-error-retry">Retry</button>+ </div>+ <div id="anim-chips" role="group" aria-label="Trigger animation" aria-busy="true">+ <button type="button" id="anim-loop-toggle" aria-pressed="true" title="Pause or resume the looping animation" hidden>+ <span class="lt-glyph" aria-hidden="true">⏸</span><span class="lt-label">Pause</span>+ </button>+ </div></div><aside id="side"><div class="side-header" id="side-header">@@ -725,17 +757,52 @@}}+ // A valid persisted config is a plain object whose `emotions` and+ // `actions` (when present) are plain objects mapping string→string.+ // Anything else is corrupt and gets discarded so we boot from defaults.+ function isPlainStringMap(v) {+ if (v == null) return true; // absent is fine — treated as {}+ if (typeof v !== 'object' || Array.isArray(v)) return false;+ return Object.values(v).every((x) => typeof x === 'string');+ }+ function sanitizeActions(v) {+ // actions map: key → { emotion?: string, tts?: string }+ if (v == null) return true;+ if (typeof v !== 'object' || Array.isArray(v)) return false;+ return Object.values(v).every((entry) =>+ entry && typeof entry === 'object' && !Array.isArray(entry) &&+ Object.values(entry).every((x) => typeof x === 'string'));+ }+function loadConfig() {+ let saved;try {- const saved = localStorage.getItem('pumpfun-agent-config');- if (saved) {- const parsed = JSON.parse(saved);- if (parsed.emotions) config.settings.emotions = parsed.emotions;- if (parsed.actions) config.settings.actions = parsed.actions;- }+ saved = localStorage.getItem('pumpfun-agent-config');} catch (err) {- console.error('Failed to load config', err);+ console.error('Failed to read config from storage', err);+ return;}+ if (!saved) return;++ let parsed;+ try {+ parsed = JSON.parse(saved);+ } catch (err) {+ console.warn('Discarding corrupt agent config (unparseable)', err);+ try { localStorage.removeItem('pumpfun-agent-config'); } catch {}+ return;+ }++ const ok = parsed && typeof parsed === 'object' && !Array.isArray(parsed)+ && isPlainStringMap(parsed.emotions) && sanitizeActions(parsed.actions);+ if (!ok) {+ console.warn('Discarding corrupt agent config (bad shape), falling back to defaults');+ try { localStorage.removeItem('pumpfun-agent-config'); } catch {}+ return;+ }++ if (parsed.emotions) config.settings.emotions = parsed.emotions;+ if (parsed.actions) config.settings.actions = parsed.actions;}$('config-save-btn').addEventListener('click', saveConfig);@@ -793,6 +860,7 @@query: '',loaded: { defaults: true, community: false, mine: false },loading: { community: false, mine: false },+ error: { community: null, mine: null },data: { defaults: DEFAULT_AVATARS.map((a) => ({ ...a, _kind: 'default' })), community: [], mine: [] },cursor: { community: null, mine: null },hasMore: { community: false, mine: false },@@ -866,6 +934,7 @@async function ensureLoaded(tab) {if (tab === 'defaults' || picker.loaded[tab] || picker.loading[tab]) return;picker.loading[tab] = true;+ picker.error[tab] = null;renderPickerBody();try {if (tab === 'community') {@@ -907,6 +976,7 @@picker.loaded[tab] = true;} catch (err) {console.warn('[picker] load failed', tab, err);+ picker.error[tab] = err?.message || 'load failed';} finally {picker.loading[tab] = false;renderPickerBody();@@ -960,7 +1030,36 @@return;}if (picker.loading[tab] && !picker.data[tab].length) {- body.innerHTML = `<div class="pf-status">Loading…</div>`;+ const grid = document.createElement('div');+ grid.className = 'pf-grid';+ grid.setAttribute('aria-busy', 'true');+ grid.setAttribute('aria-label', 'Loading avatars');+ for (let i = 0; i < 8; i++) {+ const sk = document.createElement('div');+ sk.className = 'pf-skeleton';+ grid.appendChild(sk);+ }+ body.appendChild(grid);+ return;+ }++ if (picker.error[tab] && !picker.data[tab].length) {+ const wrap = document.createElement('div');+ wrap.className = 'pf-status';+ wrap.setAttribute('role', 'alert');+ wrap.innerHTML = `Couldn't load ${tab === 'mine' ? 'your' : 'community'} avatars.+ <div class="sub" style="font-size:11px;margin-top:4px;color:var(--muted)">${escapeHtml(picker.error[tab])}</div>`;+ const retry = document.createElement('button');+ retry.type = 'button';+ retry.className = 'cta';+ retry.textContent = 'Retry';+ retry.addEventListener('click', () => {+ picker.loaded[tab] = false;+ picker.error[tab] = null;+ ensureLoaded(tab);+ });+ wrap.appendChild(retry);+ body.appendChild(wrap);return;}@@ -1043,6 +1142,10 @@let animations = [];let es = null, esTries = 0, esBackoff = 1000, esClosed = false;+ let esOpenTimer = null; // fires if a connection never reaches OPEN+ let esConsecutiveFails = 0; // consecutive failed connection attempts+ const ES_OPEN_TIMEOUT_MS = 12000; // force-close a stuck CONNECTING socket after this+ const ES_FAILS_BEFORE_ERROR = 4; // surface a manual-retry error state after this manylet queue = [], queueTimer = null, queuePaused = false;let replayQueue = [];let firstClaims = { data: [], el: $('first-claims'), refreshing: false, ts: 0 };@@ -1073,13 +1176,57 @@// the previous iframe-based agent embed which expected ?id=<agentId> and// silently rendered nothing when only ?src=<glb> was supplied.const viewer = iframe; // alias kept so existing variable name still reads- function loadAgent() { viewer.src = params.avatar; }+ const loopToggle = $('anim-loop-toggle');+ const stageError = $('stage-error');+ const stageErrorMsg = $('stage-error-msg');+ let loopActive = true; // user's pause/play preference for the auto-loop+ let loopAnimName = null; // the animation currently used as the idle loop+ let oneShotPlaying = false; // a one-shot chip animation is in flight++ function loadAgent() {+ stageError.dataset.visible = 'false';+ oneShotPlaying = false;+ $('anim-chips').setAttribute('aria-busy', 'true');+ viewer.src = params.avatar;+ }loadAgent();+ function startLoop() {+ if (!loopAnimName) return;+ try {+ viewer.animationName = loopAnimName;+ viewer.play({ repetitions: Infinity });+ } catch {}+ }++ function syncLoopToggle() {+ const hasLoop = !!loopAnimName;+ loopToggle.hidden = !hasLoop;+ if (!hasLoop) return;+ loopToggle.setAttribute('aria-pressed', String(loopActive));+ loopToggle.querySelector('.lt-glyph').textContent = loopActive ? '⏸' : '▶';+ loopToggle.querySelector('.lt-label').textContent = loopActive ? 'Pause' : 'Play';+ loopToggle.title = loopActive ? 'Pause the looping animation' : 'Resume the looping animation';+ }++ loopToggle.addEventListener('click', () => {+ if (!loopAnimName) return;+ loopActive = !loopActive;+ if (loopActive) {+ if (!oneShotPlaying) startLoop();+ } else {+ try { viewer.pause(); } catch {}+ }+ syncLoopToggle();+ });+viewer.addEventListener('load', () => {+ stageError.dataset.visible = 'false';animations = viewer.availableAnimations || [];const chips = $('anim-chips');- chips.innerHTML = '';+ chips.setAttribute('aria-busy', 'false');+ // Clear only the dynamically-added chips; keep the persistent loop toggle.+ chips.querySelectorAll('.anim-chip, .empty').forEach((el) => el.remove());animations.forEach((anim) => {const btn = document.createElement('button');btn.type = 'button';@@ -1088,24 +1235,59 @@btn.addEventListener('click', () => playAnim(anim));chips.appendChild(btn);});- if (!animations.length) chips.innerHTML = '<span class="empty" style="padding:0">no animations on this avatar</span>';- // Auto-play the first available animation so the avatar isn't a T-pose- if (animations.length) { viewer.animationName = animations[0]; viewer.play({ repetitions: Infinity }); }+ if (!animations.length) {+ const empty = document.createElement('span');+ empty.className = 'empty';+ empty.style.padding = '0';+ empty.textContent = 'no animations on this avatar';+ chips.appendChild(empty);+ }+ // Auto-play the first available animation so the avatar isn't a T-pose.+ loopAnimName = animations.length ? animations[0] : null;+ oneShotPlaying = false;+ if (loopAnimName && loopActive) startLoop();+ syncLoopToggle();if (config.modal.dataset.open === 'true') renderConfigBody();});viewer.addEventListener('error', (e) => {console.warn('[agent] model load error', e?.detail || e);- $('anim-chips').innerHTML = '<span class="empty" style="padding:0;color:var(--danger)">avatar failed to load</span>';+ $('anim-chips').setAttribute('aria-busy', 'false');+ loopAnimName = null;+ syncLoopToggle();+ stageErrorMsg.textContent = 'The 3D model at ' + shortenUrl(params.avatar) ++ " couldn't be loaded. Check your connection, then retry — or pick a different avatar.";+ stageError.dataset.visible = 'true';+ });++ // When a one-shot reaction animation finishes, fall back to the idle loop+ // if the user hasn't paused it — so the avatar never freezes mid-pose.+ viewer.addEventListener('finished', () => {+ if (!oneShotPlaying) return;+ oneShotPlaying = false;+ if (loopActive) startLoop();+ });++ $('stage-error-retry').addEventListener('click', (e) => {+ const btn = e.currentTarget;+ btn.disabled = true;+ const orig = btn.textContent;+ btn.textContent = 'Retrying…';+ stageError.dataset.visible = 'false';+ // Force model-viewer to re-fetch even if the URL is unchanged.+ viewer.src = '';+ requestAnimationFrame(() => { loadAgent(); });+ setTimeout(() => { btn.disabled = false; btn.textContent = orig; }, 1500);});function playAnim(name) {if (!viewer.availableAnimations?.includes(name)) return false;try {+ oneShotPlaying = true;viewer.animationName = name;viewer.currentTime = 0;viewer.play({ repetitions: 1 });return true;- } catch { return false; }+ } catch { oneShotPlaying = false; return false; }}// ── Web Speech narration (replaces iframe-side TTS) ──────────────────@@ -1246,10 +1428,36 @@return { ...ev, type, timestamp };}+ // Tear down the current socket and any pending open-timeout. Safe to call+ // repeatedly; never throws.+ function teardownEs() {+ if (esOpenTimer) { clearTimeout(esOpenTimer); esOpenTimer = null; }+ if (es) { try { es.close(); } catch {} es = null; }+ }++ // A connection attempt failed (or stalled). Either escalate to a manual+ // retry state once we've burned through the auto-retry budget, or schedule+ // the next backoff reconnect.+ function scheduleReconnect(reason) {+ if (esClosed) return;+ teardownEs();+ esConsecutiveFails++;+ if (esConsecutiveFails >= ES_FAILS_BEFORE_ERROR) {+ // Stop hammering — surface a recoverable error the user can retry.+ console.warn(`[sse] giving up after ${esConsecutiveFails} attempts (${reason}); awaiting manual retry`);+ setStatus('down', 'offline — retry');+ return;+ }+ console.log(`[sse] ${reason}; reconnect in ${esBackoff / 1000}s (fail ${esConsecutiveFails})`);+ setStatus('down', 'reconnecting…');+ setTimeout(connect, esBackoff);+ esBackoff = Math.min(esBackoff * 1.5, 15000);+ }+function connect() {esTries++;setStatus('connecting', `connecting (try ${esTries})…`);- if (es) { try { es.close(); } catch {} es = null; }+ teardownEs();const endpoint = new URL('/api/agents/pumpfun-feed', location.href);endpoint.searchParams.set('kind', params.kind || 'all');@@ -1260,9 +1468,23 @@if (params.whale) endpoint.searchParams.set('whale', String(params.whale));es = new EventSource(endpoint.href, { withCredentials: true });+ const thisEs = es;++ // A stuck CONNECTING socket never fires 'open' or 'error' on some+ // proxies/networks — the feed would hang blank forever. Force the+ // issue: if we don't reach OPEN within the budget, treat it as a+ // failed attempt and reconnect (or escalate to manual retry).+ esOpenTimer = setTimeout(() => {+ esOpenTimer = null;+ if (esClosed || es !== thisEs) return;+ if (es.readyState !== EventSource.OPEN) scheduleReconnect('connect timeout');+ }, ES_OPEN_TIMEOUT_MS);+es.addEventListener('open', () => {+ if (esOpenTimer) { clearTimeout(esOpenTimer); esOpenTimer = null; }esTries = 0;esBackoff = 1000;+ esConsecutiveFails = 0;setStatus('live', 'live');});const ingest = (sseType) => (msg) => {@@ -1274,18 +1496,15 @@es.addEventListener('graduation', ingest('graduation'));es.addEventListener('ping', () => {});es.addEventListener('close', () => {- if (esClosed) return;- try { es.close(); } catch {}- setTimeout(connect, 250);+ if (esClosed || es !== thisEs) return;+ scheduleReconnect('server closed');});es.onerror = () => {- if (esClosed || !es) return;+ if (esClosed || es !== thisEs) return;if (es.readyState === EventSource.CLOSED) {- console.log(`[sse] disconnected, reconnect in ${esBackoff/1000}s`);- setStatus('down', 'offline');- setTimeout(connect, esBackoff);- esBackoff = Math.min(esBackoff * 1.5, 15000);+ scheduleReconnect('disconnected');} else {+ // Still CONNECTING — the open-timeout above is our backstop.setStatus('connecting', 'reconnecting…');}};@@ -1401,6 +1620,8 @@esClosed = false;esTries = 0;esBackoff = 1000;+ esConsecutiveFails = 0;+ teardownEs();connect();}});@@ -1659,11 +1880,29 @@heliusPill.el.dataset.count = '';}, 1200);}+ // Build a clean, shareable URL: keep only the public presentation params+ // (filters, mood, narration, avatar) and drop transient/private ones such+ // as `asset` (a specific agent pubkey the viewer pasted) and `mint` (a+ // personal in-session search filter) so we never over-share.+ const SHARE_PARAM_KEYS = [+ 'kind', 'minTier', 'network', 'narrate', 'announceMints',+ 'mood', 'avatar', 'mcMin', 'mcMax', 'minBuy', 'whale',+ ];+ function buildShareUrl() {+ const src = new URL(location.href);+ const out = new URL(location.origin + location.pathname);+ for (const key of SHARE_PARAM_KEYS) {+ const v = src.searchParams.get(key);+ if (v != null && v !== '') out.searchParams.set(key, v);+ }+ return out.href;+ }+function copyShareLink() {const btn = $('ctl-share');const label = $('ctl-share-label');const orig = label.textContent;- navigator.clipboard.writeText(location.href).then(() => {+ navigator.clipboard.writeText(buildShareUrl()).then(() => {label.textContent = 'Copied!';btn.dataset.flash = 'true';setTimeout(() => {diff --git a/public/register.html b/public/register.htmlindex 45c0c01a6..6e73b2ce7 100644--- a/public/register.html+++ b/public/register.html@@ -790,6 +790,28 @@const form = document.getElementById('f');const err = document.getElementById('err');const btn = document.getElementById('submit');++ // Already-authenticated guard (parity with /login): a signed-in user+ // landing on the signup form is bounced straight to their destination.+ // A 401 means "not signed in" and is expected; only a transport failure+ // surfaces a notice so the user isn't left guessing.+ if (performance.getEntriesByType('navigation')[0]?.type !== 'back_forward') {+ fetch('/api/auth/me', { credentials: 'include' })+ .then((r) => {+ if (r.ok) return r.json();+ if (r.status === 401) return null;+ throw new Error('session-check-failed');+ })+ .then((data) => {+ if (data?.user) location.replace(next);+ })+ .catch(() => {+ err.textContent =+ "Couldn't verify your session — check your connection. You can still create an account below.";+ err.style.display = 'block';+ });+ }+form.addEventListener('submit', async (e) => {e.preventDefault();err.style.display = 'none';@@ -811,15 +833,27 @@? 'Too many attempts. Try again in a moment.': res.status === 409? 'That username is taken.'- : (data.error_description || 'Registration failed');+ : res.status === 400+ ? (data.error_description || 'Check your username and password and try again.')+ : res.status === 422+ ? (data.error_description || 'That username or password isn’t allowed — try another.')+ : res.status >= 500+ ? 'Something went wrong on our end. Try again in a moment.'+ : (data.error_description || 'Registration failed');throw new Error(msg);}try {localStorage.setItem('3dagent:auth-hint', JSON.stringify({ authed: true, ts: Date.now() }));} catch { /* ignore */ }- location.href = next;+ location.replace(next);} catch (e) {- err.textContent = e.message;+ // A thrown Error from the !res.ok branch carries human copy; a+ // raw fetch rejection (offline / DNS / CORS) does not, so map it+ // to a clear, actionable network message instead of "Failed to fetch".+ const isNetwork = e instanceof TypeError;+ err.textContent = isNetwork+ ? "Couldn't reach the server — check your connection and try again."+ : e.message;err.style.display = 'block';btn.disabled = false;btn.textContent = 'Create account';diff --git a/public/strategy-lab.html b/public/strategy-lab.htmlindex a553f983a..078ea6a1d 100644--- a/public/strategy-lab.html+++ b/public/strategy-lab.html@@ -97,6 +97,26 @@.mode-switch { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }.mode-switch button { border: none; background: #fff; border-radius: 0; padding: .4rem .7rem; }.mode-switch button.active { background: #111; color: #fff; }++ .modal-backdrop {+ position: fixed; inset: 0; z-index: 100;+ display: flex; align-items: center; justify-content: center;+ padding: 1rem; background: rgba(15, 15, 15, .55);+ opacity: 0; transition: opacity .14s ease;+ }+ .modal-backdrop.open { opacity: 1; }+ .modal {+ background: #fff; border: 1px solid var(--border); border-radius: 12px;+ width: 100%; max-width: 440px; padding: 1.25rem 1.35rem;+ box-shadow: 0 18px 48px rgba(0, 0, 0, .28);+ transform: translateY(8px) scale(.985); transition: transform .14s ease;+ }+ .modal-backdrop.open .modal { transform: none; }+ .modal h3 { margin: 0 0 .5rem; font-size: 1.05rem; }+ .modal p { margin: 0 0 .65rem; color: var(--muted); line-height: 1.5; }+ .modal p strong { color: var(--bad-fg); }+ .modal .modal-actions { display: flex; gap: .5rem; justify-content: flex-end; margin-top: 1.1rem; }+ .modal button:focus-visible { outline: 2px solid var(--info-fg); outline-offset: 2px; }</style><meta name="description" content="Build DCA and subscription strategies that trade on-chain on your behalf.">@@ -204,6 +224,18 @@<div id="portfolio"><p class="muted">Pick an agent above to load on-chain holdings.</p></div></section>+ <!-- ── Confirm modal (Stop & sell all) ─────────────────────────────────── -->+ <div id="confirmModal" class="modal-backdrop" hidden>+ <div class="modal" role="dialog" aria-modal="true" aria-labelledby="confirmTitle" aria-describedby="confirmBody">+ <h3 id="confirmTitle">Stop & sell all?</h3>+ <p id="confirmBody"></p>+ <div class="modal-actions">+ <button id="confirmCancel" type="button">Cancel</button>+ <button id="confirmAccept" type="button" class="danger">Stop & sell all</button>+ </div>+ </div>+ </div>+<script type="module">const PRESETS = {momentum: {@@ -246,6 +278,66 @@const agentSel = $('agentSel'), netSel = $('netSel'), provisionBtn = $('provisionBtn');const walletInfo = $('walletInfo'), walletStatus = $('walletStatus');+ // ── Accessible confirm dialog ─────────────────────────────────────────+ // Promise<boolean>: resolves true on confirm, false on cancel/Escape/backdrop.+ // Focus trap, Escape-to-cancel, focus restored to the trigger on close.+ function confirmDialog({ body, confirmLabel = 'Confirm' }) {+ const backdrop = $('confirmModal');+ const bodyEl = $('confirmBody');+ const accept = $('confirmAccept');+ const cancel = $('confirmCancel');+ bodyEl.innerHTML = body;+ accept.textContent = confirmLabel;+ const lastFocused = document.activeElement;++ return new Promise((resolve) => {+ const focusable = [cancel, accept];++ function close(result) {+ backdrop.classList.remove('open');+ backdrop.removeEventListener('keydown', onKeydown, true);+ backdrop.removeEventListener('pointerdown', onBackdrop);+ accept.removeEventListener('click', onAccept);+ cancel.removeEventListener('click', onCancel);+ const finish = () => {+ backdrop.hidden = true;+ backdrop.removeEventListener('transitionend', finish);+ if (lastFocused && typeof lastFocused.focus === 'function') lastFocused.focus();+ resolve(result);+ };+ // Allow the fade-out transition to play, then hide.+ backdrop.addEventListener('transitionend', finish);+ setTimeout(finish, 200); // fallback if transitionend never fires+ }+ const onAccept = () => close(true);+ const onCancel = () => close(false);+ const onBackdrop = (e) => { if (e.target === backdrop) close(false); };+ function onKeydown(e) {+ if (e.key === 'Escape') { e.preventDefault(); close(false); return; }+ if (e.key === 'Tab') {+ // Trap focus within the two buttons.+ e.preventDefault();+ const idx = focusable.indexOf(document.activeElement);+ const next = e.shiftKey+ ? focusable[(idx - 1 + focusable.length) % focusable.length]+ : focusable[(idx + 1) % focusable.length];+ next.focus();+ }+ }++ accept.addEventListener('click', onAccept);+ cancel.addEventListener('click', onCancel);+ backdrop.addEventListener('pointerdown', onBackdrop);+ backdrop.addEventListener('keydown', onKeydown, true);++ backdrop.hidden = false;+ // Force reflow so the opacity/transform transition runs from the closed state.+ void backdrop.offsetWidth;+ backdrop.classList.add('open');+ cancel.focus(); // default focus on the non-destructive action+ });+ }+let mode = 'simulate';let activeRun = null;let currentWallet = null; // { address, sol }@@ -547,7 +639,12 @@const id = agentSel.value;if (!id) { setStatus('Select an agent first.', 'bad'); return; }const net = netSel.value;- if (!confirm(`STOP all activity and SELL every position on ${net}?\n\nThis aborts any running strategy and sells 100% of every SPL holding the wallet owns.`)) return;+ const netLabel = net === 'mainnet' ? 'mainnet' : 'devnet';+ const ok = await confirmDialog({+ body: `<strong>This stops all activity and sells every position on ${netLabel}.</strong> Any running strategy is aborted and 100% of every SPL holding the wallet owns is sold. This cannot be undone.`,+ confirmLabel: 'Stop & sell all',+ });+ if (!ok) return;// Abort any running stream first.activeRun?.abort();pushLog('error', '■ STOP — closing all positions');diff --git a/public/studio/launch-panel.js b/public/studio/launch-panel.jsindex 4a6536ad5..bd1c67c3d 100644--- a/public/studio/launch-panel.js+++ b/public/studio/launch-panel.js@@ -406,9 +406,14 @@ function injectCss() {const DEMO_ID = '__demo__';-export function mountLaunchPanel(container, { getAvatar, getUser, getPreviewViewer } = {}) {+export function mountLaunchPanel(container, { getAvatar, getUser, getPreviewViewer, context } = {}) {injectCss();+ // The left-column UI differs by mount: on /launch it's an agent picker, in the+ // studio / avatar page it's an avatar gallery. The empty-state CTA must point+ // at whatever the user actually sees beside the panel.+ const onLaunchPage = context === 'launch';+let av = null;// ── State ──────────────────────────────────────────────────────────────@@ -1232,8 +1237,8 @@ export function mountLaunchPanel(container, { getAvatar, getUser, getPreviewViewconst baseCost = PUMP_BASE_COST.toFixed(3);container.innerHTML = `<div class="lp"><div class="lp-guide">- <p class="lp-guide-h">Launch a token for your avatar</p>- <p class="lp-guide-sub">This mints a <b style="color:rgba(255,255,255,.78);font-weight:500">memecoin on pump.fun</b> tied to the avatar you pick. Other people can buy your coin; if you pick an <em>Agent</em> coin, revenue from your agent's paid endpoints buys back and burns the token on-chain.</p>+ <p class="lp-guide-h">Launch a token for your ${onLaunchPage ? 'agent' : 'avatar'}</p>+ <p class="lp-guide-sub">This mints a <b style="color:rgba(255,255,255,.78);font-weight:500">memecoin on pump.fun</b> tied to the ${onLaunchPage ? 'agent' : 'avatar'} you pick. Other people can buy your coin; if you pick an <em>Agent</em> coin, revenue from your agent's paid endpoints buys back and burns the token on-chain.</p><div class="lp-guide-steps"><div class="lp-guide-step">@@ -1267,7 +1272,9 @@ export function mountLaunchPanel(container, { getAvatar, getUser, getPreviewView<span><b style="color:rgba(255,255,255,.78);font-weight:500">Cost:</b> ~${baseCost} SOL covers the mint & pump.fun fee. Anything you add as an <em>initial buy</em> seeds the bonding curve and credits coins to your wallet. No on-chain action happens until you click <b style="color:rgba(255,255,255,.78);font-weight:500">Launch</b> and sign.</span></div>- <a class="lp-guide-cta" href="/dashboard/avatars" target="_blank" rel="noopener">Pick or upload an avatar to begin →</a>+ ${onLaunchPage+ ? `<a class="lp-guide-cta" href="/create-agent">Pick an agent on the left, or create one →</a>`+ : `<a class="lp-guide-cta" href="/dashboard/avatars" target="_blank" rel="noopener">Pick or upload an avatar to begin →</a>`}<div class="lp-guide-links"><a href="/gallery" target="_blank" rel="noopener">Browse community gallery</a>@@ -1324,7 +1331,7 @@ export function mountLaunchPanel(container, { getAvatar, getUser, getPreviewView<a class="lp-ex-link" href="${esc(PUMP_URL(m.mint))}" target="_blank" rel="noopener">pump.fun ↗</a><a class="lp-ex-link" href="https://solscan.io/token/${esc(m.mint)}" target="_blank" rel="noopener">Solscan ↗</a>${s.resolvedAgentId || av?.agent_id- ? `<a class="lp-ex-link" href="/agent/${esc(s.resolvedAgentId || av.agent_id)}">Agent page ↗</a>`+ ? `<a class="lp-ex-link" href="/agents/${esc(s.resolvedAgentId || av.agent_id)}">Agent page ↗</a>`: ''}</div><div id="lp-fees"></div>@@ -1703,7 +1710,7 @@ export function mountLaunchPanel(container, { getAvatar, getUser, getPreviewView<div class="lp-ok-links"><a class="lp-ext" href="${esc(PUMP_URL(mint))}" target="_blank" rel="noopener">pump.fun ↗</a><a class="lp-ext" href="https://solscan.io/token/${esc(mint)}" target="_blank" rel="noopener">Solscan ↗</a>- ${agentId ? `<a class="lp-ext" href="/agent/${esc(agentId)}">Agent page ↗</a>` : ''}+ ${agentId ? `<a class="lp-ext" href="/agents/${esc(agentId)}">Agent page ↗</a>` : ''}</div><button class="lp-share" id="lp-share">📋 Copy launch announcement</button><button class="lp-again" id="lp-again">Launch another token</button>diff --git a/public/tutor.html b/public/tutor.htmlindex 715faaa03..4eb64222d 100644--- a/public/tutor.html+++ b/public/tutor.html@@ -37,6 +37,7 @@display: flex;flex-direction: column;min-height: 100vh;+ min-height: 100dvh;}a { color: var(--accent-2); }@@ -100,6 +101,13 @@.msg.user .bubble { background: var(--user); border-color: #363636; max-width: 86%; }.msg.tutor .bubble { background: var(--surface); }.msg.error .bubble { background: #2a1620; border-color: #5a2a3a; color: #ffb4c4; }+ .msg.notice .bubble { background: #1c1a26; border-color: #3a3550; color: var(--text-dim); }+ .notice-retry {+ display: inline-block; margin-top: 10px; background: transparent; color: var(--accent-2);+ border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font: inherit;+ font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s;+ }+ .notice-retry:hover { border-color: var(--accent); color: var(--text); }.kp { margin: 12px 0 0; padding: 12px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; }.kp h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }@@ -122,6 +130,13 @@form.composer {position: sticky; bottom: 0; padding: 14px 0 22px;background: linear-gradient(transparent, var(--bg) 22%);+ /* On mobile, the soft keyboard can overlay a sticky bottom bar without+ shrinking the layout viewport. --kb-offset (set from the VisualViewport+ API in tutor.js) lifts the composer above the keyboard when focused. */+ transform: translateY(calc(-1 * var(--kb-offset, 0px)));+ transition: transform .18s ease;+ padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));+ will-change: transform;}.composer-inner {display: flex; gap: 10px; align-items: flex-end;@@ -134,6 +149,9 @@font: inherit; font-size: 15px; line-height: 1.5; max-height: 180px; padding: 6px 0;}.controls { display: flex; align-items: center; gap: 8px; }+ .q-count { font-family: var(--mono); font-size: 11px; color: var(--text-faint); min-width: 62px; text-align: right; font-variant-numeric: tabular-nums; transition: color .15s; }+ .q-count.warn { color: #f1c21b; }+ .q-count.max { color: #fa4d56; }select#level {background: var(--surface-2); color: var(--text-dim); border: 1px solid var(--border);border-radius: 9px; padding: 8px 10px; font-size: 12.5px; outline: none;@@ -211,8 +229,9 @@<form class="composer" id="composer" autocomplete="off"><div class="composer-inner">- <textarea id="q" rows="1" placeholder="Ask your question…" aria-label="Your question"></textarea>+ <textarea id="q" rows="1" maxlength="2000" placeholder="Ask your question…" aria-label="Your question" aria-describedby="q-count"></textarea><div class="controls">+ <span class="q-count" id="q-count" aria-live="polite" aria-label="Characters used">0 / 2000</span><select id="level" aria-label="Expertise level" title="Target expertise level"><option value="beginner">Beginner</option><option value="intermediate" selected>Intermediate</option>diff --git a/public/tutor.js b/public/tutor.jsindex 04d5afd26..64100df90 100644--- a/public/tutor.js+++ b/public/tutor.js@@ -17,6 +17,7 @@ const qEl = $('q');const levelEl = $('level');const sendBtn = $('send');const endBtn = $('end-btn');+const qCount = $('q-count');const tabAmount = $('tab-amount');const tabCount = $('tab-count');const scrim = $('scrim');@@ -56,6 +57,28 @@ function setTab(totalAtomics, count) {endBtn.disabled = count === 0;}+// The paywall helper (/x402.js) and this module both load async with no ordering+// guarantee, so an early ask can race ahead of window.X402.pay being defined.+// Wait briefly for it before treating its absence as a real load failure.+function x402Ready() {+ return !!(window.X402 && typeof window.X402.pay === 'function');+}+function waitForX402(timeoutMs = 6000) {+ if (x402Ready()) return Promise.resolve(true);+ return new Promise((resolve) => {+ const start = Date.now();+ const timer = setInterval(() => {+ if (x402Ready()) {+ clearInterval(timer);+ resolve(true);+ } else if (Date.now() - start >= timeoutMs) {+ clearInterval(timer);+ resolve(false);+ }+ }, 120);+ });+}+// ── rendering ──────────────────────────────────────────────────────────────────function addUser(text) {@@ -89,7 +112,7 @@ function addTutor(result) {const fu = el('div', 'followup');fu.innerHTML = 'Next: ';const b = el('button', null, escapeHtml(result.followUp));- b.addEventListener('click', () => { qEl.value = result.followUp; qEl.focus(); autosize(); });+ b.addEventListener('click', () => { qEl.value = result.followUp; qEl.focus(); autosize(); updateCount(); });fu.append(b);bubble.append(fu);}@@ -135,10 +158,16 @@ async function ask(question) {addUser(text);qEl.value = '';autosize();+ updateCount();try {- if (!window.X402 || typeof window.X402.pay !== 'function') {- throw new Error('Payment library failed to load. Refresh and try again.');+ if (!x402Ready()) {+ // Give the async-loading paywall helper a short grace window before we+ // declare it failed — the first question often beats /x402.js finishing.+ const ready = await waitForX402();+ if (!ready) {+ throw new Error('Payment library failed to load. Refresh and try again.');+ }}const out = await window.X402.pay({endpoint: TUTOR_ENDPOINT,@@ -221,28 +250,78 @@ function renderInvoice(inv) {// ── session resume ─────────────────────────────────────────────────────────────+function addNotice(text, retry) {+ clearEmpty();+ const m = el('div', 'msg notice');+ m.append(el('div', 'who', 'Session'));+ const bubble = el('div', 'bubble');+ bubble.append(el('div', null, escapeHtml(text)));+ if (retry) {+ const b = el('button', 'notice-retry', 'Try again');+ b.addEventListener('click', () => { m.remove(); retry(); });+ bubble.append(b);+ }+ m.append(bubble);+ thread.append(m);+}+async function resume() {+ // Only attempt a resume when there is a real prior session to restore — a+ // freshly-minted id (no server record yet) legitimately returns nothing and+ // must stay silent. A genuine fetch/HTTP failure, by contrast, is surfaced so+ // the user isn't left staring at a blank thread wondering where their history went.+ let r;try {- const r = await fetch(`${SESSION_ENDPOINT}?sessionId=${encodeURIComponent(sessionId)}`);- if (!r.ok) return;- const s = await r.json();- if (s.status === 'closed' || !s.lineItems || !s.lineItems.length) return;- for (const li of s.lineItems) addHistory(li.question, li.costUsd);- setTab(s.totalAtomics, s.questionCount);- scrollDown();+ r = await fetch(`${SESSION_ENDPOINT}?sessionId=${encodeURIComponent(sessionId)}`);} catch {- // Resume is best-effort.+ addNotice(+ 'Couldn’t reach your previous session — your history may be temporarily unavailable. You can still ask new questions.',+ resume,+ );+ return;}+ // A 5xx/4xx from the session store is a genuine failure worth surfacing. (An+ // unknown id is NOT an error here — the endpoint returns 200 with no line items,+ // handled silently below.)+ if (!r.ok) {+ addNotice(+ 'Your previous session is temporarily unavailable (server error). You can still ask new questions.',+ resume,+ );+ return;+ }+ let s;+ try {+ s = await r.json();+ } catch {+ addNotice(+ 'Your previous session couldn’t be read back. You can still ask new questions.',+ resume,+ );+ return;+ }+ if (s.status === 'closed' || !s.lineItems || !s.lineItems.length) return;+ for (const li of s.lineItems) addHistory(li.question, li.costUsd);+ setTab(s.totalAtomics, s.questionCount);+ scrollDown();}// ── wiring ───────────────────────────────────────────────────────────────────+const Q_MAX = Number(qEl.getAttribute('maxlength')) || 2000;function autosize() {qEl.style.height = 'auto';qEl.style.height = Math.min(qEl.scrollHeight, 180) + 'px';}+function updateCount() {+ if (!qCount) return;+ const len = qEl.value.length;+ qCount.textContent = `${len} / ${Q_MAX}`;+ qCount.classList.toggle('warn', len >= Q_MAX * 0.9 && len < Q_MAX);+ qCount.classList.toggle('max', len >= Q_MAX);+}-qEl.addEventListener('input', autosize);+qEl.addEventListener('input', () => { autosize(); updateCount(); });qEl.addEventListener('keydown', (e) => {if (e.key === 'Enter' && !e.shiftKey) {e.preventDefault();@@ -261,5 +340,37 @@ endBtn.addEventListener('click', endSession);$('invoice-close').addEventListener('click', () => scrim.classList.remove('open'));scrim.addEventListener('click', (e) => { if (e.target === scrim) scrim.classList.remove('open'); });+// ── mobile soft-keyboard: keep the composer above the keyboard ──────────────────+// When the on-screen keyboard opens, some mobile browsers overlay it on top of the+// layout viewport without resizing it, hiding a sticky bottom composer. The+// VisualViewport API reports the actually-visible region; we lift the composer by+// the difference so it stays in view, and keep the caret scrolled into view.+(function initKeyboardAware() {+ const vv = window.visualViewport;+ if (!vv) return; // older browsers: sticky positioning is the graceful fallback+ let raf = 0;+ function apply() {+ raf = 0;+ // How much of the layout viewport is hidden below the visual viewport —+ // i.e. the keyboard's height when open, 0 when closed.+ const hidden = Math.max(0, window.innerHeight - (vv.height + vv.offsetTop));+ document.documentElement.style.setProperty('--kb-offset', hidden > 60 ? `${hidden}px` : '0px');+ }+ function schedule() {+ if (!raf) raf = requestAnimationFrame(apply);+ }+ vv.addEventListener('resize', schedule);+ vv.addEventListener('scroll', schedule);+ qEl.addEventListener('focus', () => {+ schedule();+ // Let the keyboard settle, then bring the caret into view.+ setTimeout(() => qEl.scrollIntoView({ block: 'nearest' }), 250);+ });+ qEl.addEventListener('blur', () => {+ document.documentElement.style.setProperty('--kb-offset', '0px');+ });+})();+resume();+updateCount();qEl.focus();diff --git a/public/vanity-wallet.html b/public/vanity-wallet.htmlindex fb2bc2885..bfbfecf80 100644--- a/public/vanity-wallet.html+++ b/public/vanity-wallet.html@@ -202,7 +202,7 @@<h1>✦ Vanity wallet generator</h1><p class="lede">Grind a Solana wallet address that <strong>starts with</strong>, <strong>ends with</strong>, or is bookended by characters of your choice — for your agent, treasury, or anywhere a memorable address matters.- <strong>Runs entirely in your browser.</strong> The secret key never leaves your device.+ <strong>Runs entirely in your browser.</strong> The secret key stays on your device — it only leaves if you explicitly assign the wallet to an agent.</p><div class="card">@@ -402,7 +402,12 @@const $ = (id) => document.getElementById(id);const BASE58 = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz';const BASE58_RE = /^[1-9A-HJ-NP-Za-km-z]+$/;- const RATE_PER_CORE = 5000;+ // Rough per-core throughput for the pre-grind ETA only. The WASM+ // ed25519 grinder derives tens of thousands of keypairs/sec per core;+ // 30k is a conservative, defensible figure consistent with the LIVE+ // rate the grinder reports once running. The pre-grind number is always+ // shown as a rough estimate ("~") — the live rate is the real one.+ const RATE_PER_CORE = 30000;// Current pattern state, kept in sync by update().let ignoreCase = false;@@ -549,7 +554,7 @@}$('preview').innerHTML = renderPreview(pfx, sfx);- $('est').textContent = `est. ${fmtTime(estSeconds(pfx, sfx))} on ${cores} cores`;+ $('est').textContent = `rough estimate: ${fmtTime(estSeconds(pfx, sfx))} on ${cores} cores`;const effLen = effectiveLength(expectedAttempts(pfx, sfx, ignoreCase));$('tier').innerHTML = effLen >= 5? '<span class="tier-tag tier-paid">slow — minutes+</span>'@@ -666,6 +671,10 @@startPreviewLoop();} finally {controls = null;+ // Belt-and-suspenders: the decorative scan-line interval is+ // normally cleared in endGrindUI, but clear it here too so it+ // can never leak if an error is thrown before endGrindUI runs.+ if (scanLoop) { clearInterval(scanLoop); scanLoop = null; }}});@@ -755,7 +764,7 @@const data = await r.json();agents = data.agents || [];} catch (e) {- host.innerHTML = `<div class="assign"><h4>Use this wallet with an agent</h4><p style="font-size:.8rem;color:var(--danger);margin:0">Could not load your agents: ${esc(e.message)}</p></div>`;+ host.innerHTML = `<div class="assign"><h4>Use this wallet with an agent</h4><p style="font-size:.8rem;color:var(--bad-fg);margin:0">Could not load your agents: ${esc(e.message)}</p></div>`;return;}if (!agents.length) {@@ -777,7 +786,7 @@<option value="">— select an agent —</option>${agents.map((a) => `<option value="${esc(a.id)}">${esc(a.name)} ${a.meta?.solana_address ? '(already has wallet)' : ''}</option>`).join('')}</select>- <div id="assign-replace-warn" hidden style="margin-top:.5rem;padding:.5rem .65rem;border:1px solid var(--danger);border-radius:8px;background:rgba(255,90,90,.06);font-size:.78rem;line-height:1.45"></div>+ <div id="assign-replace-warn" hidden style="margin-top:.5rem;padding:.5rem .65rem;border:1px solid var(--bad-fg);border-radius:8px;background:rgba(255,90,90,.06);font-size:.78rem;line-height:1.45"></div><div class="custody"><label><input type="checkbox" id="assign-ack" />@@ -806,7 +815,7 @@function refresh() {const existing = sel.value ? walletByAgent[sel.value] : null;if (existing) {- warn.innerHTML = `<strong style="color:var(--danger)">This agent already has a wallet</strong> (<code style="font-family:ui-monospace,monospace">${esc(truncAddr(existing))}</code>). Assigning will <strong>replace</strong> it — the old wallet is detached and can no longer sign for this agent. Make sure you have its key backed up.`;+ warn.innerHTML = `<strong style="color:var(--bad-fg)">This agent already has a wallet</strong> (<code style="font-family:ui-monospace,monospace">${esc(truncAddr(existing))}</code>). Assigning will <strong>replace</strong> it — the old wallet is detached and can no longer sign for this agent. Make sure you have its key backed up.`;warn.hidden = false;btn.textContent = 'Replace wallet';} else {@@ -833,7 +842,7 @@});if (!del.ok) {const delData = await del.json().catch(() => ({}));- status.innerHTML = `<span style="color:var(--danger)">Could not remove the existing wallet: ${esc(delData.error_description || del.status)}</span>`;+ status.innerHTML = `<span style="color:var(--bad-fg)">Could not remove the existing wallet: ${esc(delData.error_description || del.status)}</span>`;btn.disabled = false;return;}@@ -851,9 +860,9 @@const data = await r.json();if (!r.ok) {if (r.status === 409) {- status.innerHTML = `<span style="color:var(--danger)">${esc(data.error_description)} — pick another agent or remove the existing wallet first.</span>`;+ status.innerHTML = `<span style="color:var(--bad-fg)">${esc(data.error_description)} — pick another agent or remove the existing wallet first.</span>`;} else {- status.innerHTML = `<span style="color:var(--danger)">Failed: ${esc(data.error_description || r.status)}</span>`;+ status.innerHTML = `<span style="color:var(--bad-fg)">Failed: ${esc(data.error_description || r.status)}</span>`;}btn.disabled = false;return;@@ -867,7 +876,7 @@<a href="/agent/${esc(sel.value)}" style="color:inherit;text-decoration:underline">Open agent →</a></div>`;} catch (e) {- status.innerHTML = `<span style="color:var(--danger)">Network error: ${esc(e.message)}</span>`;+ status.innerHTML = `<span style="color:var(--bad-fg)">Network error: ${esc(e.message)}</span>`;btn.disabled = false;}});diff --git a/scripts/gen-demo-avatars.mjs b/scripts/gen-demo-avatars.mjsdeleted file mode 100644index 7eaf7428e..000000000--- a/scripts/gen-demo-avatars.mjs+++ /dev/null@@ -1,401 +0,0 @@-// Generates api/_lib/demo-avatars.js seed entries from verified public GLB sources.-// Sources: KhronosGroup/glTF-Sample-Assets (CC-BY 4.0), three.js examples (MIT),-// and on-disk shipped assets.--import fs from 'node:fs';-import path from 'node:path';-import { fileURLToPath } from 'node:url';--const HERE = path.dirname(fileURLToPath(import.meta.url));--const KHRONOS_BASE = 'https://cdn.jsdelivr.net/gh/KhronosGroup/glTF-Sample-Assets/Models';-const THREEJS_BASE = 'https://cdn.jsdelivr.net/gh/mrdoob/three.js/examples/models/gltf';--// Khronos models verified to have glTF-Binary/{name}.glb-const KHRONOS = fs.readFileSync(path.join(HERE, 'khronos-glbs.txt'), 'utf8').trim().split('\n').filter(Boolean);-// three.js model basenames (without .glb)-const THREEJS = fs.readFileSync(path.join(HERE, 'threejs-glbs.txt'), 'utf8').trim().split('\n')- .map((s) => s.replace(/\.glb$/, '')).filter(Boolean);--// Curated community-avatar lineup. Each entry is a named identity rendered with-// a real GLB shipped under /public, and every persona maps to a *visually-// distinct* model — no two share a silhouette unless the personas are thematic-// siblings (Boss/Agent/Spartian all run the soldier rig on purpose). Soldier-// rigs go to operative personas, robot rigs to AI/protocol personas, and the-// human rigs are spread across the rest so the gallery reads as a real roster.-//-// `attr` selects the license/attribution block (see *_ATTR below): 'threejs'-// for MIT three.js example models, 'khronos' for CC-BY 4.0 Khronos sample-// assets, and the default (omitted) for first-party three.ws starter assets.-const ON_DISK = [- { name: 'CZ', slug: 'cz', path: '/avatars/cz.glb', tags: ['humanoid', 'character', 'community'], desc: 'CZ — stylized humanoid with idle pose, ready for chat overlays.' },- { name: 'Ansem', slug: 'ansem', path: '/avatars/default.glb', tags: ['humanoid', 'community', 'trader'], desc: 'Ansem — trader persona for chart-watchers and crypto Twitter.' },- { name: 'Boss', slug: 'boss', path: '/animations/soldier.glb', tags: ['humanoid', 'rigged', 'animated', 'community'], desc: 'Boss — for the one running the room. Soldier rig with locomotion.', attr: 'threejs' },- { name: 'Vernington', slug: 'vernington', path: '/avatars/readyplayerme.glb', tags: ['humanoid', 'rigged', 'avatar', 'community'], desc: 'Vernington — the senior of the Vern lineage, full-body humanoid rig.', attr: 'threejs' },- { name: 'Saga', slug: 'saga', path: '/animations/robotexpressive.glb', tags: ['robot', 'animated', 'rigged', 'community'], desc: 'Saga — mobile-native, expressive robot rig with idle, walk, jump, dance clips.', attr: 'threejs' },- { name: 'Claude', slug: 'claude', path: '/avatars/cesium-man.glb', tags: ['humanoid', 'rigged', 'animated', 'community', 'ai'], desc: 'Claude — calm, thoughtful AI persona on a clean walking rig.', attr: 'khronos' },- { name: '3D', slug: '3d', path: '/avatars/brainstem.glb', tags: ['robot', 'rigged', 'animated', 'community', 'meta'], desc: '3D — meta avatar for the platform itself, fully articulated sci-fi rig.', attr: 'khronos' },- { name: 'AI', slug: 'ai', path: '/avatars/xbot.glb', tags: ['robot', 'rigged', 'animated', 'community', 'ai'], desc: 'AI — clean rigged android stand-in, ready for animation retargeting.', attr: 'threejs' },- { name: 'Agent', slug: 'agent', path: '/animations/soldier.glb', tags: ['humanoid', 'rigged', 'animated', 'community', 'agent'], desc: 'Agent — operative ready for autonomous on-chain work.', attr: 'threejs' },- { name: 'Vern', slug: 'vern', path: '/avatars/rigged-figure.glb', tags: ['humanoid', 'rigged', 'community'], desc: 'Vern — base form, before the Vernington promotion.', attr: 'khronos' },- { name: 'Crossinger', slug: 'crossinger', path: '/avatars/michelle.glb', tags: ['humanoid', 'rigged', 'character', 'community'], desc: 'Crossinger — chain-hopper, multi-network identity.', attr: 'threejs' },- { name: 'Spartian', slug: 'spartian', path: '/animations/soldier.glb', tags: ['humanoid', 'rigged', 'animated', 'community'], desc: 'Spartian — disciplined, armored, never folds.', attr: 'threejs' },- // Name surfaced as "Tester" because the marketplace UI auto-name filter- // strips entries whose name is exactly "test" (see AVATAR_AUTONAMED_RE in- // src/marketplace.js). Slug stays `test` to preserve the requested handle.- { name: 'Tester', slug: 'test', path: '/avatars/default.glb', tags: ['humanoid', 'community'], desc: 'Tester — kicks the tires on every release before anyone else.' },- // New distinct characters that widen the gallery beyond the starter trio.- { name: 'Nova', slug: 'nova', path: '/avatars/selfie-girl.glb', tags: ['humanoid', 'character', 'community'], desc: 'Nova — high-detail portrait avatar with an expressive face, built for streams and overlays.' },- { name: 'Foxy', slug: 'foxy', path: '/avatars/fox.glb', tags: ['animal', 'mascot', 'rigged', 'animated', 'community'], desc: 'Foxy — stylized fox mascot with survey, walk, and run animations.', attr: 'khronos' },-];--// Curated metadata for well-known Khronos models. Anything not listed here gets-// auto-classified by name keywords.-const KHRONOS_META = {- Avocado: { tags: ['food', 'pbr', 'classic'], desc: 'A photorealistic avocado — a Khronos classic for testing physically-based rendering.' },- BarramundiFish: { tags: ['animal', 'fish', 'pbr'], desc: 'Detailed barramundi fish with realistic scales and PBR materials.' },- BoomBox: { tags: ['object', 'audio', 'pbr', 'classic'], desc: 'Retro boombox with intricate textures — a benchmark PBR asset.' },- Box: { tags: ['primitive', 'test'], desc: 'The simplest possible glTF: a single textured cube.' },- BoxAnimated: { tags: ['primitive', 'animated', 'test'], desc: 'A simple box with a baked transform animation.' },- BoxInterleaved: { tags: ['primitive', 'test'], desc: 'A box with interleaved vertex attributes — a glTF format test.' },- BoxTextured: { tags: ['primitive', 'textured'], desc: 'A box with a texture map applied.' },- BoxTexturedNonPowerOfTwo: { tags: ['primitive', 'textured', 'test'], desc: 'A textured box demonstrating non-power-of-two textures.' },- BoxVertexColors: { tags: ['primitive', 'colors'], desc: 'A box with per-vertex colors instead of textures.' },- BrainStem: { tags: ['humanoid', 'rigged', 'animated'], desc: 'Walking humanoid figure with skinned mesh and animations.' },- CarConcept: { tags: ['vehicle', 'concept', 'pbr'], desc: 'Concept car with sculpted bodywork and clear-coat materials.' },- CarbonFibre: { tags: ['material', 'pbr', 'test'], desc: 'Carbon-fibre weave material test — anisotropy and clear-coat.' },- CesiumMan: { tags: ['humanoid', 'rigged', 'animated', 'classic'], desc: 'The iconic Cesium Man — walking animation, fully rigged.' },- CesiumMilkTruck: { tags: ['vehicle', 'animated', 'classic'], desc: 'Cesium Milk Truck rolling along — wheel rotation animation.' },- ChairDamaskPurplegold: { tags: ['furniture', 'pbr', 'fabric'], desc: 'Ornate damask chair with gold leaf and patterned upholstery.' },- ChronographWatch: { tags: ['object', 'pbr', 'metal'], desc: 'Detailed chronograph wristwatch with metallic finish and glass face.' },- ClearCoatCarPaint: { tags: ['material', 'pbr', 'test'], desc: 'Clear-coat car paint material test under varied lighting.' },- ClearCoatTest: { tags: ['material', 'test'], desc: 'Clear-coat extension reference test.' },- ClearcoatWicker: { tags: ['material', 'pbr', 'fabric'], desc: 'Wicker pattern with clear-coat layer.' },- CommercialRefrigerator: { tags: ['object', 'commercial', 'glass'], desc: 'Commercial glass-door refrigerator with transmission.' },- DamagedHelmet: { tags: ['object', 'armor', 'pbr', 'iconic'], desc: 'Battle-worn sci-fi helmet — possibly the most-rendered glTF in history.' },- DiffuseTransmissionPlant: { tags: ['plant', 'transmission', 'pbr'], desc: 'Botanical leaves demonstrating diffuse transmission for thin foliage.' },- DiffuseTransmissionTeacup: { tags: ['object', 'transmission', 'pbr'], desc: 'Bone china teacup with translucent walls.' },- DragonAttenuation: { tags: ['creature', 'glass', 'transmission'], desc: 'Glass dragon demonstrating volume attenuation and transmission.' },- DragonDispersion: { tags: ['creature', 'glass', 'transmission'], desc: 'Glass dragon with chromatic dispersion for prismatic light.' },- Duck: { tags: ['animal', 'iconic', 'classic'], desc: 'The Khronos Duck — every 3D dev has met this duck.' },- Fox: { tags: ['animal', 'animated', 'rigged', 'iconic'], desc: 'Stylized fox with three baked animations — Survey, Walk, Run.' },- GlamVelvetSofa: { tags: ['furniture', 'fabric', 'pbr'], desc: 'Velvet sofa demonstrating sheen for fabric materials.' },- GlassBrokenWindow: { tags: ['object', 'glass', 'transmission'], desc: 'Shattered window pane with refraction and transmission.' },- GlassHurricaneCandleHolder: { tags: ['object', 'glass', 'transmission'], desc: 'Hurricane candle holder with thick glass and a flickering candle.' },- GlassVaseFlowers: { tags: ['object', 'glass', 'plant'], desc: 'Cut-glass vase with flowers — refraction through curved glass.' },- IridescenceLamp: { tags: ['object', 'pbr', 'iridescent'], desc: 'Lamp shade with iridescent thin-film effect.' },- IridescenceAbalone: { tags: ['object', 'pbr', 'iridescent'], desc: 'Abalone shell with natural iridescence.' },- IridescenceSuzanne: { tags: ['classic', 'iridescent'], desc: 'Blender Suzanne with iridescent thin-film material.' },- IridescentDishWithOlives: { tags: ['food', 'pbr', 'iridescent'], desc: 'Iridescent ceramic dish holding olives.' },- Lantern: { tags: ['object', 'metal', 'pbr', 'classic'], desc: 'Traditional lantern with intricate metalwork — a Khronos PBR benchmark.' },- MaterialsVariantsShoe: { tags: ['fashion', 'shoe', 'variants'], desc: 'Shoe with material variants — swap colorways at runtime.' },- MetalRoughSpheres: { tags: ['material', 'pbr', 'test'], desc: 'Spheres demonstrating the full metallic-roughness range.' },- MetalRoughSpheresNoTextures: { tags: ['material', 'pbr', 'test'], desc: 'Untextured metallic-roughness sphere grid.' },- MorphPrimitivesTest: { tags: ['test', 'morph'], desc: 'Morph target test for blend shapes on primitives.' },- MorphStressTest: { tags: ['test', 'morph'], desc: 'Stress test for many simultaneous morph targets.' },- NegativeScaleTest: { tags: ['test'], desc: 'Negative scaling and winding-order test.' },- NormalTangentMirrorTest: { tags: ['test', 'normals'], desc: 'Mirror-symmetry test for normal and tangent vectors.' },- NormalTangentTest: { tags: ['test', 'normals'], desc: 'Normal/tangent space correctness test.' },- OrientationTest: { tags: ['test'], desc: 'Coordinate system orientation test for glTF importers.' },- PointLightIntensityTest: { tags: ['test', 'lighting'], desc: 'Point light intensity falloff test.' },- PotOfCoals: { tags: ['object', 'fire', 'emissive'], desc: 'Glowing pot of coals demonstrating emissive strength.' },- ReciprocatingSaw: { tags: ['tool', 'object', 'pbr'], desc: 'Reciprocating saw with detailed mechanical parts.' },- RecursiveSkeletons: { tags: ['test', 'skinning'], desc: 'Stress test for deeply nested skeletal hierarchies.' },- RiggedFigure: { tags: ['humanoid', 'rigged', 'classic'], desc: 'Bare-bones rigged humanoid for testing skinning.' },- RiggedSimple: { tags: ['rigged', 'test'], desc: 'Minimal rigged figure — the smallest possible skinned mesh.' },- SimpleInstancing: { tags: ['test', 'instancing'], desc: 'EXT_mesh_gpu_instancing demonstration.' },- SpecGlossVsMetalRough: { tags: ['material', 'test'], desc: 'Spec-gloss vs metallic-roughness workflow comparison.' },- SpecularSilkPouf: { tags: ['furniture', 'fabric', 'pbr'], desc: 'Silk pouf footstool with specular sheen.' },- SpecularTest: { tags: ['material', 'test'], desc: 'KHR_materials_specular extension test.' },- StainedGlassLamp: { tags: ['object', 'glass', 'emissive'], desc: 'Tiffany-style stained glass lamp with internal light source.' },- TextureCoordinateTest: { tags: ['test', 'textures'], desc: 'UV coordinate correctness test.' },- TextureLinearInterpolationTest: { tags: ['test', 'textures'], desc: 'Linear texture interpolation test.' },- TextureSettingsTest: { tags: ['test', 'textures'], desc: 'Texture sampler settings test.' },- ToyCar: { tags: ['vehicle', 'toy', 'pbr'], desc: 'Stylized toy car with chunky proportions and shiny paint.' },- TransmissionRoughnessTest: { tags: ['material', 'test', 'transmission'], desc: 'Transmission with varying roughness test.' },- TransmissionTest: { tags: ['material', 'test', 'transmission'], desc: 'KHR_materials_transmission extension test.' },- TransmissionThinwallTestGrid: { tags: ['material', 'test', 'transmission'], desc: 'Thin-wall transmission grid test.' },- UnlitTest: { tags: ['material', 'test'], desc: 'KHR_materials_unlit extension test — flat shading.' },- VertexColorTest: { tags: ['test', 'colors'], desc: 'Per-vertex color test plane.' },- VirtualCity: { tags: ['scene', 'environment', 'urban'], desc: 'Stylized low-poly city block — buildings, streets, props.' },- WaterBottle: { tags: ['object', 'pbr', 'transmission'], desc: 'Water bottle with translucent plastic body and embossed label.' },- XmpMetadataRoundedCube: { tags: ['test', 'metadata'], desc: 'Rounded cube embedding XMP metadata for attribution.' },- AlphaBlendModeTest: { tags: ['test', 'material'], desc: 'Plate of swatches showing alpha-blend, alpha-mask, and opaque modes side by side.' },- AnimatedColorsCube: { tags: ['animated', 'primitive'], desc: 'Cube with animated per-vertex color values for animation channel testing.' },- AnimatedMorphCube: { tags: ['animated', 'morph', 'primitive'], desc: 'Cube morphing through blend-shape targets — a baseline morph-target test.' },- AnimationPointerUVs: { tags: ['animated', 'test'], desc: 'KHR_animation_pointer demo: animated UV transforms driven by pointer paths.' },- AnisotropyBarnLamp: { tags: ['object', 'lighting', 'pbr'], desc: 'Barn-style lamp with brushed-metal anisotropic shading on the housing.' },- AnisotropyDiscTest: { tags: ['test', 'material', 'pbr'], desc: 'Disc demonstrating brushed-metal anisotropic highlights at varying angles.' },- AnisotropyRotationTest: { tags: ['test', 'material', 'pbr'], desc: 'Anisotropy rotation test — checks correct tangent rotation across UVs.' },- AnisotropyStrengthTest: { tags: ['test', 'material', 'pbr'], desc: 'Anisotropy strength sweep from 0 to 1 across a row of spheres.' },- AntiqueCamera: { tags: ['object', 'photography', 'pbr'], desc: 'Vintage twin-lens reflex camera with leather wrap and chrome detailing.' },- AttenuationTest: { tags: ['test', 'material', 'transmission'], desc: 'Volume attenuation test — colored glass blocks of varying thickness.' },- CompareAlphaCoverage: { tags: ['test', 'material'], desc: 'Side-by-side comparison of alpha-coverage approaches for foliage and fabric.' },- CompareAmbientOcclusion: { tags: ['test', 'material'], desc: 'Ambient occlusion on/off comparison on a reference object.' },- CompareAnisotropy: { tags: ['test', 'material', 'pbr'], desc: 'Comparison spheres demonstrating anisotropic vs isotropic specular.' },- CompareBaseColor: { tags: ['test', 'material', 'pbr'], desc: 'Base color sweep across the sRGB cube for material correctness checks.' },- CompareClearcoat: { tags: ['test', 'material', 'pbr'], desc: 'Clearcoat extension comparison — with vs without the clear-coat layer.' },- CompareDispersion: { tags: ['test', 'material', 'glass'], desc: 'Comparison of glass with and without chromatic dispersion.' },- CompareEmissiveStrength: { tags: ['test', 'lighting'], desc: 'KHR_materials_emissive_strength comparison — HDR-bright vs LDR emission.' },- CompareIor: { tags: ['test', 'material', 'glass'], desc: 'Index-of-refraction comparison sweeping IOR from 1.0 to 2.4.' },- CompareIridescence: { tags: ['test', 'material', 'pbr'], desc: 'Iridescence on/off comparison highlighting thin-film color shifts.' },- CompareMetallic: { tags: ['test', 'material', 'pbr'], desc: 'Metallic factor sweep from 0 (dielectric) to 1 (metal).' },- CompareNormal: { tags: ['test', 'material'], desc: 'Normal map intensity comparison across multiple bump strengths.' },- CompareRoughness: { tags: ['test', 'material', 'pbr'], desc: 'Roughness sweep from mirror to fully rough across spheres.' },- CompareSheen: { tags: ['test', 'material', 'fabric'], desc: 'KHR_materials_sheen comparison — fabric-like grazing-angle highlights.' },- CompareSpecular: { tags: ['test', 'material', 'pbr'], desc: 'KHR_materials_specular comparison sweeping specular factor.' },- CompareTransmission: { tags: ['test', 'material', 'glass'], desc: 'Transmission on/off comparison — solid vs see-through materials.' },- CompareVolume: { tags: ['test', 'material', 'glass'], desc: 'Volume thickness comparison demonstrating refraction depth.' },- CubeVisibility: { tags: ['test'], desc: 'Visibility flag test — cubes hidden via the visibility extension.' },- DiffuseTransmissionTest: { tags: ['test', 'material', 'transmission'], desc: 'KHR_materials_diffuse_transmission test on thin foliage panels.' },- DirectionalLight: { tags: ['test', 'lighting'], desc: 'Directional (sun) light reference scene with shadow-casting plane.' },- DispersionTest: { tags: ['test', 'glass', 'material'], desc: 'Chromatic dispersion test — light splitting across a glass prism.' },- EmissiveStrengthTest: { tags: ['test', 'lighting'], desc: 'Emissive intensity sweep showing HDR brightness in scene-referred lighting.' },- IORTestGrid: { tags: ['test', 'material', 'glass'], desc: 'IOR test grid — glass spheres at every common index of refraction.' },- InterpolationTest: { tags: ['test', 'animated'], desc: 'Animation interpolation modes: STEP, LINEAR, CUBICSPLINE side by side.' },- LightVisibility: { tags: ['test', 'lighting'], desc: 'Light-source visibility flag test for KHR_lights_punctual.' },- LightsPunctualLamp: { tags: ['object', 'lighting'], desc: 'Lamp model wired up via KHR_lights_punctual — real point light source.' },- MultiUVTest: { tags: ['test', 'textures'], desc: 'Multi-UV-channel test for textures using TEXCOORD_1.' },- PlaysetLightTest: { tags: ['test', 'lighting'], desc: 'Toy playset lighting test — multiple punctual lights interacting.' },- PotOfCoalsAnimationPointer: { tags: ['object', 'fire', 'animated'], desc: 'Pot of coals with KHR_animation_pointer driving emissive flicker.' },- ScatteringSkull: { tags: ['object', 'sss', 'pbr'], desc: 'Skull with subsurface scattering for translucent bone material.' },- SheenChair: { tags: ['furniture', 'fabric', 'pbr'], desc: 'Armchair upholstered in sheen-fabric demonstrating grazing-angle highlights.' },- SheenTestGrid: { tags: ['test', 'material', 'fabric'], desc: 'Sheen test grid sweeping roughness and color.' },- SheenWoodLeatherSofa: { tags: ['furniture', 'fabric', 'pbr'], desc: 'Sofa combining sheen fabric, leather, and wood — a multi-material reference.' },- SunglassesKhronos: { tags: ['fashion', 'object', 'pbr'], desc: 'Aviator-style sunglasses with tinted transmission lenses and metal frame.' },- TextureEncodingTest: { tags: ['test', 'textures'], desc: 'Texture color-space encoding test (sRGB vs linear).' },- TextureTransformMultiTest: { tags: ['test', 'textures'], desc: 'KHR_texture_transform test with multiple offsets/scales/rotations.' },- TransmissionOrderTest: { tags: ['test', 'material', 'transmission'], desc: 'Render-order test for stacked transmissive materials.' },- USDShaderBallForGltf: { tags: ['material', 'test'], desc: 'Pixar USD-compatible shader ball ported to glTF for cross-format material checks.' },- 'Unicode❤♻Test': { tags: ['test'], desc: 'Unicode glTF asset name test (the file name itself is the test).' },-};--// Curated metadata for three.js example models-const THREEJS_META = {- Soldier: { tags: ['humanoid', 'rigged', 'animated', 'character'], desc: 'Soldier character with walk, run, and idle animations — three.js classic.' },- Horse: { tags: ['animal', 'animated', 'rigged'], desc: 'Galloping horse with skeletal animation.' },- Parrot: { tags: ['animal', 'bird', 'animated'], desc: 'Flying parrot with wing-flap animation.' },- Flamingo: { tags: ['animal', 'bird', 'animated'], desc: 'Pink flamingo in flight.' },- Stork: { tags: ['animal', 'bird', 'animated'], desc: 'Stork mid-flight with wing animation.' },- Michelle: { tags: ['humanoid', 'rigged', 'character'], desc: 'Michelle character with Mixamo-compatible rig.' },- Xbot: { tags: ['robot', 'rigged', 'animated', 'character'], desc: 'X-Bot rigged humanoid robot, ready for retargeting.' },- LittlestTokyo: { tags: ['scene', 'environment', 'urban', 'animated'], desc: 'Animated Tokyo street scene by Glen Fox — cars driving, neon, atmosphere.' },- ferrari: { tags: ['vehicle', 'car', 'pbr'], desc: 'Detailed Ferrari with full PBR materials and accurate proportions.' },- 'duck': { tags: ['animal', 'iconic'], desc: 'Three.js duck — slightly different vibe than the Khronos one.' },- 'facecap': { tags: ['humanoid', 'face', 'animated', 'morph'], desc: 'Face capture sample with blendshape animation.' },- 'kira': { tags: ['humanoid', 'character', 'rigged'], desc: 'Kira character model.' },- 'nemetona': { tags: ['humanoid', 'character'], desc: 'Nemetona character bust.' },- 'ShaderBall': { tags: ['material', 'test'], desc: 'Shader ball — the standard material test sphere with reflective base.' },- 'ShaderBall2': { tags: ['material', 'test'], desc: 'Alternate shader ball variant.' },- 'PrimaryIonDrive': { tags: ['scifi', 'vehicle', 'animated'], desc: 'Primary ion drive engine module with animated pulse.' },- 'collision-world': { tags: ['scene', 'environment', 'test'], desc: 'Test scene with collision geometry.' },- 'pool': { tags: ['scene', 'water', 'environment'], desc: 'Pool scene with water reflections.' },- 'minimalistic_modern_bedroom': { tags: ['scene', 'interior', 'architecture'], desc: 'Minimalist modern bedroom interior.' },- 'space_ship_hallway': { tags: ['scene', 'scifi', 'interior'], desc: 'Sci-fi spaceship corridor scene.' },- 'dungeon_warkarma': { tags: ['scene', 'fantasy', 'environment'], desc: 'Fantasy dungeon scene by Warkarma.' },- 'venice_mask': { tags: ['object', 'mask', 'pbr'], desc: 'Ornate Venetian carnival mask with gold leaf detailing.' },- 'steampunk_camera': { tags: ['object', 'steampunk', 'pbr'], desc: 'Steampunk-style camera with brass fittings and leather wrap.' },- 'rolex': { tags: ['object', 'watch', 'luxury', 'pbr'], desc: 'Detailed Rolex-style timepiece with metallic finish.' },- 'godrays_demo': { tags: ['scene', 'lighting', 'demo'], desc: 'God rays / volumetric lighting demonstration scene.' },- 'readyplayer.me': { tags: ['humanoid', 'avatar', 'character'], desc: 'Humanoid avatar sample — three.ws-compatible character ready for VR/AR.', displayName: 'Humanoid Avatar', slug: 'demo-humanoid-avatar' },- 'bath_day': { tags: ['scene', 'animated', 'character'], desc: 'Bath day animated scene — quirky character moment.' },- 'coffeeMug': { tags: ['object', 'pbr'], desc: 'Ceramic coffee mug.' },- 'coffeemat': { tags: ['object', 'machine', 'pbr'], desc: 'Coffee machine with detailed dispenser.' },- 'gears': { tags: ['object', 'mechanical', 'animated'], desc: 'Interlocking gears with mechanical animation.' },- 'SheenChair': { tags: ['furniture', 'fabric', 'pbr'], desc: 'Armchair upholstered in sheen-fabric demonstrating KHR_materials_sheen.' },- 'AnisotropyBarnLamp': { tags: ['object', 'lighting', 'pbr'], desc: 'Barn lamp with brushed-metal anisotropic shading.' },- 'BoomBox': { tags: ['object', 'audio', 'pbr'], desc: 'Three.js variant of the iconic boombox.' },- 'DispersionTest': { tags: ['material', 'test', 'glass'], desc: 'Chromatic dispersion test — refraction splitting light.' },- 'DragonAttenuation': { tags: ['creature', 'glass'], desc: 'Three.js dragon with volume attenuation.' },- 'IridescentDishWithOlives': { tags: ['food', 'pbr', 'iridescent'], desc: 'Iridescent dish, three.js packaging.' },- 'IridescenceLamp': { tags: ['object', 'pbr', 'iridescent'], desc: 'Iridescent lamp from three.js examples.' },- 'ShadowmappableMesh': { tags: ['test', 'shadows'], desc: 'Mesh with high-frequency detail for shadow-mapping tests.' },-};--function classifyByName(name) {- const n = name.toLowerCase();- const tags = [];- let desc = '';- if (/anim|morph|interpol/i.test(name)) tags.push('animated');- if (/transmission|glass|disperion|attenuation/i.test(name)) tags.push('glass', 'transmission');- if (/iridescen|anisotropy|sheen|specular|clearcoat/i.test(name)) tags.push('material', 'pbr');- if (/test|grid|reference/i.test(name)) tags.push('test');- if (/box|cube|triangle|primitive|simple|compare/i.test(name)) tags.push('primitive');- if (/light|emissive/i.test(name)) tags.push('lighting');- if (/ior|alpha|texture/i.test(name)) tags.push('material', 'test');- if (/instanc|stress/i.test(name)) tags.push('test');- if (tags.length === 0) tags.push('object');- desc = `Khronos reference asset — ${name.replace(/([A-Z])/g, ' $1').trim().toLowerCase()}.`;- return { tags: [...new Set(tags)], desc };-}--const lines = [];-const seenSlugs = new Set();-let idx = 0;--const baseDate = new Date('2025-04-01T00:00:00Z').getTime();--function addItem({ id, slug, name, glbUrl, image, tags, desc, attribution }) {- if (seenSlugs.has(slug)) {- // Disambiguate duplicates by source- slug = slug + '-' + attribution.handle;- }- seenSlugs.add(slug);- // Stagger created dates so the feed doesn't all bunch up.- const sortDate = new Date(baseDate - idx * 3_600_000).toISOString();- idx += 1;- const tagsStr = JSON.stringify(tags);- const descStr = JSON.stringify(desc);- const nameStr = JSON.stringify(name);- const slugStr = JSON.stringify(slug);- const idStr = JSON.stringify(id);- const glbStr = JSON.stringify(glbUrl);- const imgStr = image ? JSON.stringify(image) : 'null';- const attrStr = JSON.stringify(attribution);- const authorStr = JSON.stringify({ handle: attribution.handle, displayName: attribution.displayName, profileUrl: attribution.url });- lines.push(` demoItem({ id: ${idStr}, slug: ${slugStr}, name: ${nameStr}, description: ${descStr}, tags: ${tagsStr}, glbUrl: ${glbStr}, image: ${imgStr}, sortDate: ${JSON.stringify(sortDate)}, attribution: ${attrStr}, author: ${authorStr} }),`);-}--const KHRONOS_ATTR = { handle: 'khronos', displayName: 'Khronos Group', url: 'https://github.com/KhronosGroup/glTF-Sample-Assets', license: 'CC-BY 4.0' };-const THREEJS_ATTR = { handle: 'threejs', displayName: 'three.js examples', url: 'https://github.com/mrdoob/three.js', license: 'MIT' };-const ONDISK_ATTR = { handle: 'three.ws', displayName: 'three.ws starter', url: 'https://three.ws', license: 'CC-BY 4.0' };--// On-disk first-const ATTR_BY_KEY = { khronos: KHRONOS_ATTR, threejs: THREEJS_ATTR, ondisk: ONDISK_ATTR };-for (const m of ON_DISK) {- addItem({- id: `avatar_demo_disk_${m.slug}`,- slug: `demo-${m.slug}`,- name: m.name,- glbUrl: `https://three.ws${m.path}`,- image: null,- tags: m.tags,- desc: m.desc,- attribution: ATTR_BY_KEY[m.attr] || ONDISK_ATTR,- });-}--// Filters out pure technical fixtures from the marketplace catalogue. The-// Khronos asset repo includes many "compare X / X test / animation pointer"-// assets meant for renderer conformance — they'd dilute a marketplace meant-// for showcasing characters and curated objects. We keep them in the source-// list so the generator stays close to upstream, but skip them here.-function isReferenceFixture(name, meta) {- if (/^Compare/i.test(name)) return true;- if (/Test$|TestGrid$/i.test(name)) return true;- if (/^Animated(Cube|Triangle|ColorsCube|MorphCube)$/i.test(name)) return true;- if (/^(Box|Cube|Triangle|Simple|Primitive|Recursive|MultiUV|Cameras|Negative|Mirror|Orientation|Texture(Coord|Encoding|LinearInterp|Settings|Transform)|Vertex|Interpolation|XmpMetadata|CubeVisibility|LightVisibility|MeshPrimitive|UnicodeFile|Unicode)/i.test(name)) return true;- if (/AnimationPointer/i.test(name) && !/Lamp|PotOfCoals/i.test(name)) return true;- // Drop entries whose tags consist entirely of {test, primitive, material} with- // no aesthetic descriptor — pure reference grids.- const tagSet = new Set(meta.tags);- const filler = ['test', 'material', 'primitive', 'normals', 'metadata', 'colors'];- const hasShowcase = meta.tags.some((t) => !filler.includes(t));- if (!hasShowcase) return true;- return false;-}--// Khronos / three.js bulk catalogue is gated by INCLUDE_BULK_DEMOS. The Community-// Avatars wall is currently curated to a small named lineup (see ON_DISK above),-// so we skip the bulk public-domain catalogue by default. Set the env var to-// regenerate the full feed.-const INCLUDE_BULK_DEMOS = process.env.INCLUDE_BULK_DEMOS === '1';--let dropped = 0;--if (INCLUDE_BULK_DEMOS) {- // Khronos- for (const name of KHRONOS) {- const meta = KHRONOS_META[name] || classifyByName(name);- if (isReferenceFixture(name, meta)) {- dropped += 1;- continue;- }- const slug = 'demo-' + name.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase();- addItem({- id: `avatar_demo_k_${name.toLowerCase()}`,- slug,- name: name.replace(/([a-z])([A-Z])/g, '$1 $2').replace(/([A-Z])([A-Z][a-z])/g, '$1 $2'),- glbUrl: `${KHRONOS_BASE}/${name}/glTF-Binary/${name}.glb`,- image: null, // jsdelivr can't serve thumbnails reliably; let the model-viewer poster handle it- tags: meta.tags,- desc: meta.desc,- attribution: KHRONOS_ATTR,- });- }-- // three.js — skip ones already in Khronos to avoid duplicates- const KHRONOS_LOWER = new Set(KHRONOS.map((s) => s.toLowerCase()));- for (const baseName of THREEJS) {- if (KHRONOS_LOWER.has(baseName.toLowerCase())) continue; // skip dupes- // Case-insensitive THREEJS_META lookup so 'ferrari' (filename) matches 'Ferrari' (META key).- const metaKey = Object.keys(THREEJS_META).find((k) => k.toLowerCase() === baseName.toLowerCase());- const meta = (metaKey && THREEJS_META[metaKey]) || classifyByName(baseName);- const niceName = baseName- .replace(/[-_]+/g, ' ')- .replace(/\.glb$/, '')- .replace(/^(.)/, (m) => m.toUpperCase())- .replace(/\b([a-z])/g, (m) => m.toUpperCase());- addItem({- id: `avatar_demo_t_${baseName.toLowerCase().replace(/[^a-z0-9]+/g, '-')}`,- slug: 'demo-' + baseName.toLowerCase().replace(/[^a-z0-9]+/g, '-'),- name: niceName,- glbUrl: `${THREEJS_BASE}/${baseName}.glb`,- image: null,- tags: meta.tags,- desc: meta.desc,- attribution: THREEJS_ATTR,- });- }-}--const file = `/**- * Demo avatar fixtures for /api/explore.- *- * These appear in the marketplace + 3D viewer to demonstrate the platform with- * a curated catalogue of public-domain glTF assets:- * - Khronos glTF Sample Assets (CC-BY 4.0)- * - three.js example models (MIT)- * - On-disk starter avatars (shipped with three.ws)- *- * Generated by scripts/gen-demo-avatars.mjs from a verified GLB URL list —- * every entry has been HEAD-checked for 200 + correct Content-Type. Edit the- * generator, not this file, when adding sources.- *- * IDs prefixed with \`avatar_demo_\` so they never collide with DB UUIDs.- */--import { env } from './env.js';--function demoItem({ id, slug, name, description, tags, glbUrl, image, sortDate, attribution, author }) {- const explicitGlb = glbUrl;- const finalGlb = explicitGlb.startsWith('http')- ? explicitGlb- : \`\${env.APP_ORIGIN}\${explicitGlb}\`;- return {- kind: 'avatar',- sortDate,- avatarId: id,- slug,- name,- description,- image,- glbUrl: finalGlb,- has3d: true,- tags,- createdAt: sortDate,- viewerUrl: \`/avatars/\${id}\`,- attribution,- author,- };-}--export const DEMO_AVATARS = [-${lines.join('\n')}-];-`;--const target = path.join(HERE, '..', 'api', '_lib', 'demo-avatars.js');-fs.writeFileSync(target, file);-console.log('wrote', lines.length, 'demo entries to', target);-console.log('dropped', dropped, 'reference/test fixtures');diff --git a/scripts/wf-verify-tasks.mjs b/scripts/wf-verify-tasks.mjsdeleted file mode 100644index 995337149..000000000--- a/scripts/wf-verify-tasks.mjs+++ /dev/null@@ -1,51 +0,0 @@-export const meta = {- name: 'verify-and-prune-tasks',- description: 'Verify task completion against the repo and delete confirmed-complete files',- phases: [{ title: 'Verify', detail: 'one agent per batch verifies + deletes done files' }],-}--const BATCHES = [{"group":"tasks/agent-monetization","idx":1,"files":[{"path":"tasks/agent-monetization/08-monetization-settings-ui.md","tier1":"likely-pending(missing artifact)","missing":["src/components/monetization-settings.js","src/components/agent-editor.js","src/components/monetization-settings.js"]},{"path":"tasks/agent-monetization/12-platform-fee-config.md","tier1":"likely-done","missing":["src/components/monetization-settings.js"]},{"path":"tasks/agent-monetization/15-cron-withdrawal-processor.md","tier1":"likely-done","missing":["api/cron/process-withdrawals.js"]},{"path":"tasks/agent-monetization/16-rate-limiting-and-abuse.md","tier1":"likely-done","missing":[]},{"path":"tasks/agent-monetization/17-notifications.md","tier1":"likely-done","missing":["api/_lib/migrations/014_notifications.sql","src/components/notification-bell.js"]},{"path":"tasks/agent-monetization/19-security-review.md","tier1":"likely-done","missing":["api/_lib/migrations/013_agent_monetization.sql","api/cron/process-withdrawals.js"]}]},{"group":"tasks/collectible-ux","idx":1,"files":[{"path":"tasks/collectible-ux/01-deploy-progress-ui.md","tier1":"likely-done","missing":[]},{"path":"tasks/collectible-ux/02-mint-success-reveal.md","tier1":"likely-done","missing":[]},{"path":"tasks/collectible-ux/03-agent-detail-collectible-polish.md","tier1":"likely-done","missing":[]},{"path":"tasks/collectible-ux/04-og-image-dynamic.md","tier1":"likely-done","missing":[]}]},{"group":"tasks","idx":1,"files":[{"path":"tasks/commit-push-pending-changes.md","tier1":"likely-done","missing":[]},{"path":"tasks/devnet-smoke-trade.md","tier1":"likely-done","missing":[]},{"path":"tasks/fix-forge-seed-circuit-breaker.md","tier1":"likely-done","missing":[]},{"path":"tasks/fix-register-prep-rpc-chain.md","tier1":"likely-done","missing":[]},{"path":"tasks/rotate-replicate-token.md","tier1":"likely-done","missing":[]},{"path":"tasks/set-admin-code-env.md","tier1":"likely-done","missing":[]},{"path":"tasks/task-06-mcp-modularization.md","tier1":"unknown","missing":["api/mcp.test.js"]},{"path":"tasks/task-09-memory-sync.md","tier1":"likely-done","missing":[]}]},{"group":"tasks","idx":2,"files":[{"path":"tasks/task-irl-01-permanent-auth-pins.md","tier1":"likely-done","missing":[]},{"path":"tasks/task-irl-02-dashboard-manage.md","tier1":"likely-done","missing":["src/dashboard-next/router.js","pages/irl-placements.js","data/changelog.js"]},{"path":"tasks/task-irl-03-compass-heading.md","tier1":"likely-done","missing":[]},{"path":"tasks/verify-nvidia-trellis-artifact-fix.md","tier1":"likely-done","missing":[]},{"path":"tasks/wire-pumpfun-bot-url.md","tier1":"likely-done","missing":[]},{"path":"tasks/x-post-mcp-text-to-3d.md","tier1":"likely-done","missing":["data/changelog.js"]}]},{"group":"tasks/devops","idx":1,"files":[{"path":"tasks/devops/20-devops-setup-ci-cd-pipeline.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/irl","idx":1,"files":[{"path":"tasks/irl/01-caption-and-heading.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl/02-view-agent-profile.md","tier1":"likely-done","missing":["pages/agents.html"]},{"path":"tasks/irl/03-x402-payment.md","tier1":"likely-done","missing":["sdk/x402-fetch/src/index.js"]},{"path":"tasks/irl/04-my-pins-management.md","tier1":"unknown","missing":["api/irl/my-pins.js","/api/irl/pins/mine","api/irl/my-pins.js","/api/irl/pins/mine"]},{"path":"tasks/irl/05-radar-minimap.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl/06-agent-id-from-session.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/irl-live","idx":1,"files":[{"path":"tasks/irl-live/A1-webxr-world-anchor.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/A2-anchor-persistence-schema.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/A3-cross-user-anchor-consistency.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/A4-ios-gyro-anchor-fallback.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/B1-camera-aware-lookat.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/B2-inspect-card-v2.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/B3-real-interactions-profile-pay.md","tier1":"likely-done","missing":["packages/x402-fetch/dist/index.esm.js"]},{"path":"tasks/irl-live/B4-raycast-tap-accuracy.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/irl-live","idx":2,"files":[{"path":"tasks/irl-live/C2-skills-services-management.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/C3-reputation-surface.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/C4-interaction-inbox-notifications.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/C5-remote-location-management.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/C6-remote-outfit-change.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/D1-realtime-pin-sync.md","tier1":"likely-done","missing":["src/index.js","src/irl-schemas.js","src/rooms/IrlRoom.js"]},{"path":"tasks/irl-live/D2-live-viewer-presence.md","tier1":"likely-done","missing":["src/rooms/IrlRoom.js","src/schemas.js"]},{"path":"tasks/irl-live/D3-interaction-broadcast.md","tier1":"likely-done","missing":["src/rooms/IrlRoom.js"]}]},{"group":"tasks/irl-live","idx":3,"files":[{"path":"tasks/irl-live/D4-moderation-safety-caps.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/E1-permissions-onboarding.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/E2-performance-scale.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/E3-deeplinks-share.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-live/E4-designed-states.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/irl-xr","idx":1,"files":[{"path":"tasks/irl-xr/01-xr-avatar-lock.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-xr/02-avatar-picker-thumbnail-3d.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-xr/03-irl-xr-deeplink.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-xr/04-irl-scene-persistence.md","tier1":"likely-done","missing":[]},{"path":"tasks/irl-xr/05-irl-xr-screenshot.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/launchpad","idx":1,"files":[{"path":"tasks/launchpad/01-launch-modal-post-launch-cta.md","tier1":"likely-done","missing":[]},{"path":"tasks/launchpad/02-launches-feed-coin3d-action.md","tier1":"likely-done","missing":[]},{"path":"tasks/launchpad/03-pump-live-e2e-verify.md","tier1":"likely-done","missing":[]},{"path":"tasks/launchpad/04-pump-visualizer-data-wire.md","tier1":"likely-done","missing":[]},{"path":"tasks/launchpad/05-launchpad-builder-avatar-picker.md","tier1":"likely-done","missing":[]},{"path":"tasks/launchpad/06-agent-coin-shared-widget.md","tier1":"likely-done","missing":[]},{"path":"tasks/launchpad/07-tokenized-agents-skill-gate.md","tier1":"likely-done","missing":["pages/agent-home.html"]},{"path":"tasks/launchpad/08-nav-and-crosslinks.md","tier1":"unknown","missing":[]}]},{"group":"tasks/mcp-agent-selfsufficiency","idx":1,"files":[{"path":"tasks/mcp-agent-selfsufficiency/01-memory-mcp-tools.md","tier1":"likely-done","missing":["api/mcp-memory.test.js","/api/agent-memory/"]},{"path":"tasks/mcp-agent-selfsufficiency/02-avatar-persist-and-render.md","tier1":"unknown","missing":["api/avatars.js","api/avatars.js","api/mcp-avatar-persist.test.js"]},{"path":"tasks/mcp-agent-selfsufficiency/03-register-agent-onchain.md","tier1":"likely-done","missing":["api/mcp-register-agent.test.js"]},{"path":"tasks/mcp-agent-selfsufficiency/04-embed-code-tool.md","tier1":"likely-done","missing":["api/mcp-embed.test.js","/api/oembed"]},{"path":"tasks/mcp-agent-selfsufficiency/05-wallet-provision-and-monetize.md","tier1":"likely-done","missing":["api/mcp-wallet-provision.test.js"]}]},{"group":"tasks/monetization-feature","idx":1,"files":[{"path":"tasks/monetization-feature/03-backend-api-to-set-skill-prices.md","tier1":"likely-pending(missing artifact)","missing":["api/agents/[id]/skills.js","api/agents/[id]/skills.js"]},{"path":"tasks/monetization-feature/03-backend-seed-skill-pricing-data.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/05-frontend-handle-price-loading-states.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/05-solana-define-skill-nft-standard.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/06-backend-api-for-nft-collection.md","tier1":"likely-done","missing":["api/agents/[id]/skill-collection.js"]},{"path":"tasks/monetization-feature/07-backend-api-for-nft-minting.md","tier1":"likely-done","missing":["api/skills/purchase.js"]},{"path":"tasks/monetization-feature/07-creator-earnings-dashboard.md","tier1":"likely-pending(missing artifact)","missing":["src/earnings.js","src/earnings.js"]},{"path":"tasks/monetization-feature/07-frontend-ui-creator-dashboard.md","tier1":"likely-pending(missing artifact)","missing":["public/creator-dashboard.html","src/creator-dashboard.js","public/creator-dashboard.html","src/creator-dashboard.js"]}]},{"group":"tasks/monetization-feature","idx":2,"files":[{"path":"tasks/monetization-feature/08-backend-gate-skill-usage.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/08-creator-earnings-dashboard.md","tier1":"likely-pending(missing artifact)","missing":["/api/dashboard/earnings","/api/dashboard/earnings"]},{"path":"tasks/monetization-feature/08-frontend-ui-set-price-modal.md","tier1":"likely-done","missing":["public/creator-dashboard.html","src/creator-dashboard.js"]},{"path":"tasks/monetization-feature/09-admin-payout-system.md","tier1":"likely-pending(missing artifact)","missing":["api/admin/payouts.js","api/admin/payouts.js"]},{"path":"tasks/monetization-feature/09-backend-creator-payouts-table.md","tier1":"likely-pending(missing artifact)","missing":["scripts/migrate-db.mjs","scripts/migrate-db.mjs"]},{"path":"tasks/monetization-feature/09-construct-solana-transaction.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/09-frontend-integrate-solana-pay.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/09-frontend-js-set-price-api-call.md","tier1":"likely-done","missing":["src/creator-dashboard.js"]}]},{"group":"tasks/monetization-feature","idx":3,"files":[{"path":"tasks/monetization-feature/09-platform-fee-system.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/10-backend-payout-cron.md","tier1":"likely-pending(missing artifact)","missing":["api/cron/process-payouts.js","api/cron/process-payouts.js"]},{"path":"tasks/monetization-feature/10-backend-verify-payment.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/10-referral-system-frontend.md","tier1":"likely-done","missing":["src/profile.js"]},{"path":"tasks/monetization-feature/10-send-solana-transaction.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/10-subscription-based-skills-db-schema.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/11-confirm-payment-api.md","tier1":"likely-pending(missing artifact)","missing":["api/payments/confirm.js","api/payments/confirm.js"]},{"path":"tasks/monetization-feature/11-frontend-wallet-connection.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/monetization-feature","idx":4,"files":[{"path":"tasks/monetization-feature/11-referral-system-signup-flow.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/11-subscription-based-skills-access-logic.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/12-frontend-js-initiate-purchase.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/12-gated-content-via-nfts.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/12-handle-payment-confirmation-ui.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/12-referral-commission-logic.md","tier1":"likely-done","missing":["api/payments/verify.js"]},{"path":"tasks/monetization-feature/13-api-keys-for-developers.md","tier1":"likely-done","missing":["src/api-keys.js"]},{"path":"tasks/monetization-feature/13-frontend-save-skill-prices.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/monetization-feature","idx":5,"files":[{"path":"tasks/monetization-feature/14-api-usage-tracking.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/14-frontend-creator-earnings-dashboard.md","tier1":"likely-done","missing":["/api/earnings/summary","/api/earnings/payouts"]},{"path":"tasks/monetization-feature/14-skill-bundles.md","tier1":"unknown","missing":[]},{"path":"tasks/monetization-feature/14-user-skills-database.md","tier1":"likely-done","missing":["api/payments/confirm.js","api/_lib/migrations/...-user-unlocked-skills.sql"]},{"path":"tasks/monetization-feature/15-api-billing-and-subscriptions.md","tier1":"likely-done","missing":["/api/billing/webhook"]},{"path":"tasks/monetization-feature/15-backend-logic-skill-unlock.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/15-pay-what-you-want-pricing.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/15-user-skills-api.md","tier1":"likely-pending(missing artifact)","missing":["api/agents/[id]/unlocked-skills.js","api/agents/[id]/unlocked-skills.js"]}]},{"group":"tasks/monetization-feature","idx":6,"files":[{"path":"tasks/monetization-feature/16-frontend-ui-my-agents-purchased-skills.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/16-ui-ux-monetization-polish.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/16-user-purchase-history.md","tier1":"likely-pending(missing artifact)","missing":["/api/users/me/purchases","/api/users/me/purchases"]},{"path":"tasks/monetization-feature/17-invoicing-and-receipts.md","tier1":"likely-pending(missing artifact)","missing":["/api/receipts/","/api/receipts/"]},{"path":"tasks/monetization-feature/17-transactional-emails.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/18-affiliate-referral-program.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/18-backend-revenue-sharing.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/18-revenue-stats-ui.md","tier1":"likely-pending(missing artifact)","missing":["api/billing/revenue-stats.js","api/billing/revenue-stats.js","public/dashboard/dashboard.js"]}]},{"group":"tasks/monetization-feature","idx":7,"files":[{"path":"tasks/monetization-feature/18-terms-of-service-and-privacy-policy.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/19-affiliate-dashboard-improvements.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/19-creator-analytics.md","tier1":"likely-pending(missing artifact)","missing":["public/creator-analytics.html","src/creator-analytics.js","/api/creator/analytics","public/creator-analytics.html"]},{"path":"tasks/monetization-feature/19-frontend-purchased-skills-list.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/19-revenue-events-table.md","tier1":"likely-pending(missing artifact)","missing":["api/billing/revenue-events.js","public/dashboard/dashboard.js","api/billing/revenue-events.js","public/dashboard/dashboard.js"]},{"path":"tasks/monetization-feature/19-support-for-multiple-currencies.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/20-analytics-for-creators.md","tier1":"likely-pending(missing artifact)","missing":["/api/dashboard/analytics","/api/dashboard/analytics"]},{"path":"tasks/monetization-feature/20-fraud-detection-and-prevention.md","tier1":"unknown","missing":[]}]},{"group":"tasks/monetization-feature","idx":8,"files":[{"path":"tasks/monetization-feature/20-payout-wallet-api.md","tier1":"likely-pending(missing artifact)","missing":["api/billing/payout-wallet.js","api/billing/payout-wallet.js"]},{"path":"tasks/monetization-feature/20-protocol-add-ownership-context.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/20-ui-transaction-history.md","tier1":"likely-pending(missing artifact)","missing":["public/purchase-history.html","src/purchase-history.js","/api/users/me/purchases","public/purchase-history.html"]},{"path":"tasks/monetization-feature/21-currency-conversion-support.md","tier1":"likely-done","missing":["api/_lib/currency.js"]},{"path":"tasks/monetization-feature/21-fullstack-multi-currency-support.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/21-payout-wallet-ui.md","tier1":"likely-done","missing":["public/dashboard/dashboard.js","/api/billing/payout-wallet"]},{"path":"tasks/monetization-feature/21-search-filter-by-price.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/21-user-ratings-and-reviews.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/monetization-feature","idx":9,"files":[{"path":"tasks/monetization-feature/22-gifting-skills.md","tier1":"unknown","missing":[]},{"path":"tasks/monetization-feature/22-tax-compliance-forms.md","tier1":"unknown","missing":[]},{"path":"tasks/monetization-feature/23-localization-currency.md","tier1":"unknown","missing":[]},{"path":"tasks/monetization-feature/23-on-chain-royalties-for-skill-usage.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/24-add-toast-notifications.md","tier1":"likely-pending(missing artifact)","missing":["src/ui-helpers.js","src/ui-helpers.js"]},{"path":"tasks/monetization-feature/24-backend-analytics.md","tier1":"likely-pending(missing artifact)","missing":["/api/admin/analytics/sales","/api/admin/analytics/sales"]},{"path":"tasks/monetization-feature/24-creator-payout-system.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/24-subscription-management-ui.md","tier1":"likely-pending(missing artifact)","missing":["/api/billing/create-portal-session","/api/billing/create-portal-session"]}]},{"group":"tasks/monetization-feature","idx":10,"files":[{"path":"tasks/monetization-feature/25-backend-api-security.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/25-documentation-for-monetization-features.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/25-legal-and-tax-compliance.md","tier1":"likely-done","missing":[]},{"path":"tasks/monetization-feature/25-refactor-skill-display-component.md","tier1":"likely-pending(missing artifact)","missing":["src/components/SkillBadge.js","src/components/SkillBadge.js"]}]},{"group":"tasks/nvidia-nim","idx":1,"files":[{"path":"tasks/nvidia-nim/00-key-setup.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/01-probe-trellis.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/02-probe-flux-tts-embeddings.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/10-trellis-provider.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/11-register-backend.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/12-flux-lane.md","tier1":"likely-done","missing":["api/text-to-image.test.js"]},{"path":"tasks/nvidia-nim/13-tests.md","tier1":"likely-done","missing":["api/providers-nvidia.test.js","api/providers-replicate.test.js"]},{"path":"tasks/nvidia-nim/14-deploy-smoke-changelog.md","tier1":"likely-done","missing":["data/changelog.js"]}]},{"group":"tasks/nvidia-nim","idx":2,"files":[{"path":"tasks/nvidia-nim/20-tts-lane.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/21-tts-verify.md","tier1":"likely-done","missing":["data/changelog.js"]},{"path":"tasks/nvidia-nim/30-embeddings-multiprovider.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/31-reembed-migration.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/32-rag-verify.md","tier1":"likely-done","missing":["data/changelog.js"]},{"path":"tasks/nvidia-nim/40-vision-lane.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/41-moderation-prefilter.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/42-audio2face-spike.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/nvidia-nim/probes","idx":1,"files":[{"path":"tasks/nvidia-nim/probes/audio2face.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/probes/embeddings.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/probes/flux.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/probes/moderation.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/probes/trellis.md","tier1":"likely-done","missing":[]},{"path":"tasks/nvidia-nim/probes/tts.md","tier1":"unknown","missing":["api/_lib/nim-tts.js"]},{"path":"tasks/nvidia-nim/probes/vision.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/onchain-deployment","idx":1,"files":[{"path":"tasks/onchain-deployment/01-deploy-mainnet-validation-registry.md","tier1":"likely-done","missing":["data/changelog.js"]},{"path":"tasks/onchain-deployment/02-redeploy-base-threews-payments.md","tier1":"likely-done","missing":["scripts/deploy-multichain.mjs","contracts/vanity/payments-bsc-deployed.js"]},{"path":"tasks/onchain-deployment/03-deploy-solana-agent-invocation.md","tier1":"likely-done","missing":["sdk/src/index.ts","contracts/idl/agent_invocation.js"]},{"path":"tasks/onchain-deployment/04-register-threews-self-erc8004.md","tier1":"likely-done","missing":["public/.well-known/agent-registration.js","public/.well-known/3d-agent-card.schema.js"]},{"path":"tasks/onchain-deployment/05-backfill-provenance-and-parity-guard.md","tier1":"likely-done","missing":[]},{"path":"tasks/onchain-deployment/06-bind-existing-agent-onchain.md","tier1":"likely-done","missing":[]},{"path":"tasks/onchain-deployment/07-wire-validation-attestation.md","tier1":"likely-done","missing":["api/model-check.js"]},{"path":"tasks/onchain-deployment/08-surface-reputation-onchain.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/onchain-deployment","idx":2,"files":[{"path":"tasks/onchain-deployment/09-fund-solana-relayers-verify-crons.md","tier1":"likely-done","missing":["api/cron/pump-agent-stats.js"]},{"path":"tasks/onchain-deployment/10-onchain-e2e-smoke-harness.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/platform-ux","idx":1,"files":[{"path":"tasks/platform-ux/16-ux-implement-dark-mode.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/pump-dashboard-real-apis","idx":1,"files":[{"path":"tasks/pump-dashboard-real-apis/12-alerts-server-persist.md","tier1":"likely-done","missing":["api/alerts/config.js","/api/alerts/config"]}]},{"group":"tasks/pumpfun-launchpad-100","idx":1,"files":[{"path":"tasks/pumpfun-launchpad-100/01-usdc-trade-recording.md","tier1":"likely-pending(missing artifact)","missing":["api/_lib/migrations/2026-06-14-pump-trades-quote.sql","api/_lib/migrations/2026-06-14-pump-trades-quote.sql"]},{"path":"tasks/pumpfun-launchpad-100/02-usdc-buy-sell-ui.md","tier1":"likely-done","missing":[]},{"path":"tasks/pumpfun-launchpad-100/03-custodial-usdc-trading.md","tier1":"likely-done","missing":["api/cron/pump-agent-stats.js"]},{"path":"tasks/pumpfun-launchpad-100/04-alerts-server-persistence.md","tier1":"likely-done","missing":["api/cron/pumpfun-monitor.js"]},{"path":"tasks/pumpfun-launchpad-100/05-pumpfun-signals-cron.md","tier1":"likely-done","missing":["api/cron/pumpfun-signals.js","api/cron/pumpfun-monitor.js"]},{"path":"tasks/pumpfun-launchpad-100/06-strategy-validate-semantic.md","tier1":"likely-done","missing":[]},{"path":"tasks/pumpfun-launchpad-100/07-devnet-smoke-runbook.md","tier1":"likely-done","missing":["api/pump.test.js"]},{"path":"tasks/pumpfun-launchpad-100/07-devnet-smoke-trade.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/pumpfun-launchpad-100","idx":2,"files":[{"path":"tasks/pumpfun-launchpad-100/08-wire-pumpfun-bot-url.md","tier1":"likely-done","missing":[]},{"path":"tasks/pumpfun-launchpad-100/09-launch-flow-e2e.md","tier1":"likely-done","missing":[]},{"path":"tasks/pumpfun-launchpad-100/10-definition-of-done-sweep.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/pumpfun-upstream","idx":1,"files":[{"path":"tasks/pumpfun-upstream/01-v2-trade-instructions-usdc-audit.md","tier1":"likely-done","missing":[]},{"path":"tasks/pumpfun-upstream/02-pump-fun-skills-upstream-sync.md","tier1":"likely-done","missing":[]},{"path":"tasks/pumpfun-upstream/03-pump-segments-sdk-investigation.md","tier1":"likely-done","missing":[]},{"path":"tasks/pumpfun-upstream/03-segments-findings.md","tier1":"likely-done","missing":["src/segments/definitions.ts","sdk/blob/devnet/src/segments/definitions.ts","src/client.ts","sdk/blob/devnet/src/client.ts"]},{"path":"tasks/pumpfun-upstream/04-agent-payments-sdk-reconcile.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/site-overhaul/A-health","idx":1,"files":[{"path":"tasks/site-overhaul/A-health/A01-fix-localhost-fallbacks.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/A-health/A02-dead-links-and-unhandled-promises.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/A-health/A03-green-test-suite.md","tier1":"likely-done","missing":["api/webhooks-replicate.test.js"]},{"path":"tasks/site-overhaul/A-health/A04-error-boundaries-audit.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/A-health/A05-console-hygiene.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/site-overhaul/B-ui-uniformity","idx":1,"files":[{"path":"tasks/site-overhaul/B-ui-uniformity/B01-canonical-design-tokens.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/B-ui-uniformity/B03-shared-button-system.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/B-ui-uniformity/B04-shared-card-surface-system.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/B-ui-uniformity/B05-shared-nav-everywhere.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/B-ui-uniformity/B06-shared-footer-everywhere.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/B-ui-uniformity/B07-typography-unification.md","tier1":"unknown","missing":[]},{"path":"tasks/site-overhaul/B-ui-uniformity/B08-replace-hardcoded-colors.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/B-ui-uniformity/B09-spacing-and-radius.md","tier1":"unknown","missing":[]}]},{"group":"tasks/site-overhaul/C-ux-newcomers","idx":1,"files":[{"path":"tasks/site-overhaul/C-ux-newcomers/C03-getting-started-flow.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/C-ux-newcomers/C06-designed-empty-states.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/C-ux-newcomers/C09-dashboard-contextual-help.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/site-overhaul/D-new-features","idx":1,"files":[{"path":"tasks/site-overhaul/D-new-features/D04-shareable-og-cards.md","tier1":"likely-done","missing":["api/og/[type].js"]},{"path":"tasks/site-overhaul/D-new-features/D05-guided-tour-engine.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/D-new-features/D06-trending-leaderboard.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/D-new-features/D07-embed-wizard.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/site-overhaul/E-improve-features","idx":1,"files":[{"path":"tasks/site-overhaul/E-improve-features/E01-create-flow-whats-next.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/E-improve-features/E02-play-walk-newcomer-framing.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/E-improve-features/E03-discover-marketplace-parity.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/E-improve-features/E04-scan-forge-clarity.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/E-improve-features/E05-studio-launch-mark-and-clarity.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/E-improve-features/E06-dashboard-ia-cleanup.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/E-improve-features/E07-ibm-suite-shared-shell.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/site-overhaul/F-advertise-value","idx":1,"files":[{"path":"tasks/site-overhaul/F-advertise-value/F01-interactive-feature-showcase.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/F-advertise-value/F02-per-feature-landing-pages.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/F-advertise-value/F03-honest-social-proof.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/F-advertise-value/F04-lifecycle-onboarding-comms.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/F-advertise-value/F05-task-oriented-docs.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/F-advertise-value/F06-why-threews-positioning.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/site-overhaul/G-partnerships-content","idx":1,"files":[{"path":"tasks/site-overhaul/G-partnerships-content/G01-partnership-kit-generator.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/G-partnerships-content/G02-demo-video-scripts.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/G-partnerships-content/G03-powered-by-partner-widget.md","tier1":"likely-done","missing":[]},{"path":"tasks/site-overhaul/G-partnerships-content/G04-content-engine.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/walk","idx":1,"files":[{"path":"tasks/walk/02-walk-homepage-hero.md","tier1":"likely-done","missing":["pages/home-next.html","src/home-next.js"]},{"path":"tasks/walk/05-chrome-extension-scaffold.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/06-chrome-extension-content-script.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/07-chrome-extension-popup-picker.md","tier1":"likely-done","missing":["/api/me"]},{"path":"tasks/walk/08-chrome-extension-settings.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/09-chrome-extension-page-narrator.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/10-chrome-extension-store-release.md","tier1":"likely-done","missing":["scripts/extension-screenshots.mjs"]},{"path":"tasks/walk/11-walk-keyboard-controls.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/walk","idx":2,"files":[{"path":"tasks/walk/12-walk-mobile-joystick.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/13-walk-camera-modes.md","tier1":"likely-done","missing":["src/walk-cameras.js"]},{"path":"tasks/walk/14-walk-avatar-gestures.md","tier1":"likely-done","missing":["src/walk-gestures.js"]},{"path":"tasks/walk/15-walk-speech-bubbles.md","tier1":"likely-done","missing":["src/walk-speech-bubble.js"]},{"path":"tasks/walk/16-walk-voice-chat.md","tier1":"likely-done","missing":["src/walk-voice-chat.js","api/voice/transcribe.js"]},{"path":"tasks/walk/17-walk-multiplayer.md","tier1":"likely-done","missing":["src/walk-multiplayer.js"]},{"path":"tasks/walk/18-walk-environment-selector.md","tier1":"likely-done","missing":["src/walk-environments.js","public/environments/index.js"]},{"path":"tasks/walk/19-walk-npc-companions.md","tier1":"likely-done","missing":["src/walk-npcs.js"]}]},{"group":"tasks/walk","idx":3,"files":[{"path":"tasks/walk/20-walk-capture-screenshot-gif.md","tier1":"likely-done","missing":["src/walk-capture.js"]},{"path":"tasks/walk/22-widget-studio-walking-widget.md","tier1":"likely-done","missing":["pages/widget-studio.html","src/widget-studio.js"]},{"path":"tasks/walk/23-agent-detail-walk-mode.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/24-agent-embed-walking-mode.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/25-features-page-walking-demo.md","tier1":"likely-pending(missing artifact)","missing":["public/features.js","public/features.js"]},{"path":"tasks/walk/26-pricing-page-walking-mascot.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/27-dashboard-topbar-walking-avatar.md","tier1":"likely-done","missing":["public/dashboard-classic/index.html"]},{"path":"tasks/walk/28-profile-page-walking-avatar.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/walk","idx":4,"files":[{"path":"tasks/walk/29-marketplace-walk-browse.md","tier1":"likely-done","missing":["pages/marketplace-walk.html"]},{"path":"tasks/walk/30-avatar-edit-walk-preview.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/31-site-wide-walk-mode-toggle.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/32-walk-navigation-between-pages.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/33-walk-aware-page-transitions.md","tier1":"likely-done","missing":["src/walk-companion-transitions.js"]},{"path":"tasks/walk/34-section-narration-as-avatar-walks.md","tier1":"likely-done","missing":["src/walk-companion-narrator.js"]},{"path":"tasks/walk/35-click-to-walk-navigation.md","tier1":"likely-done","missing":["src/walk-companion-click-to-walk.js"]},{"path":"tasks/walk/36-walk-path-visualization.md","tier1":"likely-done","missing":["src/walk-trails.js"]}]},{"group":"tasks/walk","idx":5,"files":[{"path":"tasks/walk/37-walk-minimap.md","tier1":"likely-done","missing":["src/walk-minimap.js"]},{"path":"tasks/walk/38-walk-session-persistence.md","tier1":"likely-done","missing":["src/walk-session.js"]},{"path":"tasks/walk/39-walk-leaderboard.md","tier1":"likely-done","missing":["pages/walk-leaderboard.html","/api/walk/metrics","/api/walk/leaderboard"]},{"path":"tasks/walk/40-walk-analytics-dashboard.md","tier1":"likely-done","missing":["pages/walk-analytics.html","/api/walk/metrics","/api/walk/analytics"]},{"path":"tasks/walk/41-walk-performance-optimization.md","tier1":"likely-done","missing":["scripts/compress-environment-textures.mjs"]},{"path":"tasks/walk/42-walk-pwa-install.md","tier1":"likely-done","missing":["public/walk-sw.js"]},{"path":"tasks/walk/43-walk-ar-mode-webxr.md","tier1":"likely-done","missing":[]},{"path":"tasks/walk/44-walk-embed-snippet-generator-ui.md","tier1":"unknown","missing":["src/embed-walk.js","src/embed-walk.js"]}]},{"group":"tasks/walk","idx":6,"files":[{"path":"tasks/walk/45-walk-shareable-links-og-image.md","tier1":"likely-done","missing":["api/og/walk.js"]},{"path":"tasks/walk/46-walk-landing-marketing-page.md","tier1":"likely-pending(missing artifact)","missing":["pages/walk-landing.html","pages/walk-landing.html","data/walk-social.js"]},{"path":"tasks/walk/47-walk-api-programmatic-control.md","tier1":"likely-pending(missing artifact)","missing":["/api/walk/control/session","public/docs/walk-api.html","/api/walk/control/session","/api/walk/control/"]},{"path":"tasks/walk/48-walk-postmessage-events-spec.md","tier1":"likely-done","missing":["src/walk-embed-events.js","public/docs/walk-embed-api.html"]},{"path":"tasks/walk/49-walk-documentation-page.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/wow-sprint","idx":1,"files":[{"path":"tasks/wow-sprint/02-mock-and-stub-eradication.md","tier1":"likely-done","missing":[]},{"path":"tasks/wow-sprint/03-dead-path-and-broken-link-audit.md","tier1":"likely-done","missing":[]},{"path":"tasks/wow-sprint/04-console-errors-cleanup.md","tier1":"likely-done","missing":[]},{"path":"tasks/wow-sprint/05-performance-pass.md","tier1":"likely-done","missing":["src/home-v4-hero.js","src/home-v4-scroll.js"]},{"path":"tasks/wow-sprint/06-accessibility-pass.md","tier1":"likely-done","missing":["pages/agent-home.html"]},{"path":"tasks/wow-sprint/07-home-page-overhaul.md","tier1":"likely-done","missing":["src/home-v4-hero.js","src/home-v4-scroll.js"]},{"path":"tasks/wow-sprint/08-design-system-tokens.md","tier1":"likely-pending(missing artifact)","missing":["src/styles/tokens.css","src/styles/tokens.css"]},{"path":"tasks/wow-sprint/09-empty-loading-error-states.md","tier1":"likely-done","missing":["pages/agent-home.html","src/skills.js"]}]},{"group":"tasks/wow-sprint","idx":2,"files":[{"path":"tasks/wow-sprint/10-mobile-responsive-pass.md","tier1":"likely-done","missing":["pages/agent-home.html","src/components/footer.js"]},{"path":"tasks/wow-sprint/11-microinteractions-motion.md","tier1":"likely-done","missing":["pages/agent-home.html"]},{"path":"tasks/wow-sprint/12-reactive-3d-hero.md","tier1":"likely-done","missing":["src/home-v4-hero.js"]},{"path":"tasks/wow-sprint/13-onchain-activity-visualization.md","tier1":"likely-done","missing":[]},{"path":"tasks/wow-sprint/14-holder-dashboard.md","tier1":"likely-done","missing":[]},{"path":"tasks/wow-sprint/15-holder-leaderboard-and-badges.md","tier1":"likely-done","missing":[]},{"path":"tasks/wow-sprint/16-token-page-upgrade.md","tier1":"likely-done","missing":["pages/pump-coin-page.html","pages/pumpfun-buy.html"]},{"path":"tasks/wow-sprint/17-holder-rewards-surface.md","tier1":"likely-done","missing":[]}]},{"group":"tasks/wow-sprint","idx":3,"files":[{"path":"tasks/wow-sprint/18-marketplace-crosslinking.md","tier1":"likely-done","missing":["pages/agent-home.html"]},{"path":"tasks/wow-sprint/19-shareable-og-cards.md","tier1":"likely-done","missing":["api/og/[type].js"]},{"path":"tasks/wow-sprint/20-analytics-instrumentation.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/agent-fixes","idx":1,"files":[{"path":"prompts/agent-fixes/fix-agent-strategy-routing.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-agents-8004-search-timeout.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-agents-solana-rpc-cache.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-auth-register-seed-agent.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-avatars-reconstruct-env.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-avaturn-api-key.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-billing-withdrawals-42p18.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-chat-502-upstream.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/agent-fixes","idx":2,"files":[{"path":"prompts/agent-fixes/fix-club-leaderboard-db.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-erc8004-crawl-timeout.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-marketplace-agents-500.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-mocap-clips-sql-params.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-permissions-list-500.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-pump-agent-stats-rpc-429.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-threews-subdomain-esm.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-widgets-index-routing.md","tier1":"likely-done","missing":["api/widgets.js"]}]},{"group":"prompts/agent-fixes","idx":3,"files":[{"path":"prompts/agent-fixes/fix-x402-pay-503.md","tier1":"likely-done","missing":[]},{"path":"prompts/agent-fixes/fix-x402-upstash-redis.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/animation-studio","idx":1,"files":[{"path":"prompts/animation-studio/01-avatar-loading-and-rigged-posing.md","tier1":"likely-done","missing":[]},{"path":"prompts/animation-studio/02-keyframe-timeline-and-export.md","tier1":"likely-done","missing":[]},{"path":"prompts/animation-studio/03-backend-animation-clips-api.md","tier1":"likely-done","missing":[]},{"path":"prompts/animation-studio/04-save-and-library.md","tier1":"likely-done","missing":[]},{"path":"prompts/animation-studio/05-playback-across-platform.md","tier1":"likely-done","missing":["public/animations/manifest.js","/api/animations/clips/"]},{"path":"prompts/animation-studio/06-monetization.md","tier1":"likely-done","missing":[]},{"path":"prompts/animation-studio/07-nav-promotion-and-polish.md","tier1":"likely-done","missing":["public/features.js"]}]},{"group":"prompts/dashboard-next","idx":1,"files":[{"path":"prompts/dashboard-next/02-avatars.md","tier1":"likely-done","missing":["scripts/_dn-shot.mjs"]},{"path":"prompts/dashboard-next/03-widgets.md","tier1":"likely-done","missing":["scripts/_dn-shot.mjs"]},{"path":"prompts/dashboard-next/04-library.md","tier1":"likely-done","missing":["scripts/_dn-shot.mjs","/api/animations","/api/voices/list","/api/voices/sample"]},{"path":"prompts/dashboard-next/05-api-embed.md","tier1":"likely-done","missing":["scripts/_dn-shot.mjs","/api/embed-policy","/api/embed-policy/","/api/mcp/config"]},{"path":"prompts/dashboard-next/06-monetize.md","tier1":"likely-done","missing":["scripts/_dn-shot.mjs","/api/billing/usage","/api/billing/payments","/api/billing/subscriptions"]},{"path":"prompts/dashboard-next/07-account.md","tier1":"likely-done","missing":["public/dashboard/account.html","scripts/_dn-shot.mjs","/api/wallets","/api/wallets/"]},{"path":"prompts/dashboard-next/08-palette.md","tier1":"likely-done","missing":["scripts/_dn-palette-shot.mjs"]},{"path":"prompts/dashboard-next/09-activity-drawer.md","tier1":"likely-done","missing":["src/dashboard-next/components/drawer-stream.js","scripts/_dn-shot.mjs","/api/events"]}]},{"group":"prompts/dashboard-next","idx":2,"files":[{"path":"prompts/dashboard-next/10-polish-pass.md","tier1":"likely-done","missing":["scripts/_dn-shot-mobile.mjs"]},{"path":"prompts/dashboard-next/11-mobile-nav.md","tier1":"likely-done","missing":["scripts/_dn-mobile-shot.mjs"]},{"path":"prompts/dashboard-next/12-production-wiring.md","tier1":"likely-done","missing":["scripts/_dn-shot.mjs"]}]},{"group":"prompts/monetization","idx":1,"files":[{"path":"prompts/monetization/01-db-schema-for-skill-pricing.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/01-display-priced-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/01_display_priced_skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/02-add-purchase-button.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/02-add-wallet-connect-button.md","tier1":"likely-done","missing":["src/main.js"]},{"path":"prompts/monetization/02-api-set-skill-price.md","tier1":"likely-done","missing":["api/agents/[id]/skills/price.js"]},{"path":"prompts/monetization/02-backend-create-skill-pricing-table.md","tier1":"likely-done","missing":["scripts/migrations/002_create_agent_skill_prices.sql"]},{"path":"prompts/monetization/02-creator-ui-set-prices.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":2,"files":[{"path":"prompts/monetization/02-display-priced-skills-api.md","tier1":"likely-done","missing":["/api/marketplace/agents/"]},{"path":"prompts/monetization/02-purchase-skill-button.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/02-skill-purchase-button.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/02-ui-skill-pricing.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/02-user-wallet-connection.md","tier1":"likely-pending(missing artifact)","missing":["public/wallet-connector.js","public/wallet-connector.js"]},{"path":"prompts/monetization/02_db_schema_for_pricing.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/03-backend-api-set-prices.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/03-backend-api-set-skill-prices.md","tier1":"likely-pending(missing artifact)","missing":["api/agents/skills.js","api/agents/skills.js"]}]},{"group":"prompts/monetization","idx":3,"files":[{"path":"prompts/monetization/03-creator-api-set-skill-price.md","tier1":"likely-pending(missing artifact)","missing":["/api/creator/agents/","/api/creator/agents/"]},{"path":"prompts/monetization/03-implement-solana-wallet-connection.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/03-purchase-flow-ui.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/03-purchase-modal-ui.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/03-save-skill-prices.md","tier1":"unknown","missing":["api/agents/prices.js","api/agents/prices.js"]},{"path":"prompts/monetization/03-skill-purchase-flow-ui.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/03-solana-pay-backend.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/03-ui-manage-skill-prices.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":4,"files":[{"path":"prompts/monetization/03_ui_for_setting_prices.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/04-backend-price-validation.md","tier1":"likely-done","missing":["api/agents/[id]/skills/price.js"]},{"path":"prompts/monetization/04-backend-purchase-endpoint.md","tier1":"likely-pending(missing artifact)","missing":["api/marketplace/skills/purchase.js","api/marketplace/skills/purchase.js"]},{"path":"prompts/monetization/04-connect-wallet-integration.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/04-db-schema-skill-prices.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/04-design-database-schema-for-skill-pricing.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/04-frontend-display-priced-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/04-frontend-skill-pricing-ui.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":5,"files":[{"path":"prompts/monetization/04-premium-indicator-marketplace.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/04-solana-pay-frontend-qr.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/04-wallet-connection.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/04_api_for_saving_prices.md","tier1":"unknown","missing":["api/agents/skill-prices.js","api/agents/skill-prices.js","api/agents/[agentId]/skill-prices.js"]},{"path":"prompts/monetization/05-create-purchase-skill-button.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/05-creator-ui-for-pricing.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/05-filter-marketplace-price.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/05-frontend-transaction-signing.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":6,"files":[{"path":"prompts/monetization/05-initiate-payment-api.md","tier1":"likely-pending(missing artifact)","missing":["api/payments/initiate.js","api/payments/initiate.js"]},{"path":"prompts/monetization/05-initiate-solana-transaction.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/05-transaction-confirmation-backend.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/05-ui-purchase-skill-button.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/05-ui-toggle-for-paid-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/05-wallet-integration.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/05_ui_for_purchasing.md","tier1":"unknown","missing":[]},{"path":"prompts/monetization/06-backend-payment-transaction-api.md","tier1":"likely-pending(missing artifact)","missing":["api/payments/create-transaction.js","api/payments/create-transaction.js"]}]},{"group":"prompts/monetization","idx":7,"files":[{"path":"prompts/monetization/06-create-backend-api-for-payments.md","tier1":"likely-pending(missing artifact)","missing":["/api/payments/prepare-transaction","api/payments/prepare-transaction.js","/api/payments/prepare-transaction"]},{"path":"prompts/monetization/06-create-skill-nft-collection.md","tier1":"likely-pending(missing artifact)","missing":["scripts/create-agent-collection.mjs","scripts/create-agent-collection.mjs"]},{"path":"prompts/monetization/06-granting-skill-access.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/06-marketplace-filters.md","tier1":"likely-done","missing":["api/marketplace/agents.js"]},{"path":"prompts/monetization/06-solana-pay-endpoint.md","tier1":"likely-pending(missing artifact)","missing":["/api/purchase/skill/","/api/purchase/skill/"]},{"path":"prompts/monetization/06-solana-pay-integration.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/06-ui-payment-modal.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/06-verifying-purchase-and-unlocking-skill.md","tier1":"likely-done","missing":["api/marketplace/skills/verify-purchase.js"]}]},{"group":"prompts/monetization","idx":8,"files":[{"path":"prompts/monetization/06_db_schema_for_purchases.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/07-creator-dashboard-monetization-tab.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/07-frontend-payment-and-signing.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/07-frontend-unlock-skill-button.md","tier1":"likely-done","missing":["/api/users/me/unlocked-skills"]},{"path":"prompts/monetization/07-marketplace-paid-indicator.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/07-mint-skill-nft-on-purchase.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/07-purchase-skill-ui.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/07-real-time-ui-update.md","tier1":"likely-done","missing":["api/payments/check-purchase-status.js"]}]},{"group":"prompts/monetization","idx":9,"files":[{"path":"prompts/monetization/07-solana-payment-integration.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/07_api_purchase_prep.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/08-backend-api-process-payment.md","tier1":"likely-pending(missing artifact)","missing":["/api/marketplace/skills/purchase","/api/marketplace/skills/purchase"]},{"path":"prompts/monetization/08-backend-ownership-verification.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/08-backend-solana-pay-transaction.md","tier1":"likely-pending(missing artifact)","missing":["/api/purchase/details","/api/purchase/details","/api/purchase/transaction"]},{"path":"prompts/monetization/08-detect-paid-skill-usage.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/08-frontend-payment-flow.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/08-record-skill-ownership.md","tier1":"likely-pending(missing artifact)","missing":["/api/payments/finalize-purchase","api/payments/finalize-purchase.js","/api/payments/finalize-purchase"]}]},{"group":"prompts/monetization","idx":10,"files":[{"path":"prompts/monetization/08-set-skill-prices-ui.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/08_frontend_signing_logic.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/09-backend-create-skill-ownership-table.md","tier1":"likely-pending(missing artifact)","missing":["scripts/migrations/003_create_user_unlocked_skills.sql","scripts/migrations/003_create_user_unlocked_skills.sql"]},{"path":"prompts/monetization/09-backend-set-skill-prices.md","tier1":"likely-pending(missing artifact)","missing":["api/agents/[id]/pricing.js","api/agents/[id]/pricing.js"]},{"path":"prompts/monetization/09-db-schema-user-purchases.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/09-frontend-gating-for-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/09-frontend-solana-pay-qr.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/09-payment-required-modal.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":11,"files":[{"path":"prompts/monetization/09-save-skill-prices-backend.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/09-update-ui-for-owned-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/09_api_purchase_confirm.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/10-access-control-for-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/10-agent-editor-ui-for-pricing.md","tier1":"likely-done","missing":["src/agent-editor.js"]},{"path":"prompts/monetization/10-backend-prepare-payment.md","tier1":"likely-done","missing":["api/payments/prepare-skill-payment.js","/api/payments/prepare-skill-payment"]},{"path":"prompts/monetization/10-backend-transaction-verification.md","tier1":"likely-pending(missing artifact)","missing":["api/payments/verify-transaction.js","api/payments/verify-transaction.js"]},{"path":"prompts/monetization/10-creator-payout-wallet-management.md","tier1":"likely-done","missing":["api/agents/[id]/treasury.js"]}]},{"group":"prompts/monetization","idx":12,"files":[{"path":"prompts/monetization/10-creator-payout-wallet.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/10-payment-recipient-setup.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/10_enforce_skill_ownership.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/11-backend-api-for-skill-prices.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/11-backend-creator-wallet-table.md","tier1":"likely-pending(missing artifact)","missing":["scripts/migrations/004_create_creator_payout_wallets.sql","scripts/migrations/004_create_creator_payout_wallets.sql"]},{"path":"prompts/monetization/11-backend-payout-logic.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/11-creator-dashboard-ui.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/11-creator-earnings-dashboard-ui.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":13,"files":[{"path":"prompts/monetization/11-creator-payouts-dashboard.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/11-frontend-payment-flow.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/11-reflect-unlocked-skills.md","tier1":"likely-pending(missing artifact)","missing":["/api/users/me/unlocked-skills","/api/users/me/unlocked-skills"]},{"path":"prompts/monetization/11_creator_wallet_ui.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/12-backend-confirm-payment.md","tier1":"likely-done","missing":["api/payments/confirm-skill-payment.js","/api/payments/confirm-skill-payment"]},{"path":"prompts/monetization/12-backend-for-earnings-data.md","tier1":"likely-pending(missing artifact)","missing":["api/agents/[id]/earnings.js","api/agents/[id]/earnings.js"]},{"path":"prompts/monetization/12-creator-earnings-dashboard.md","tier1":"likely-pending(missing artifact)","missing":["/api/creator/dashboard","api/creator/dashboard.js","/api/creator/dashboard"]},{"path":"prompts/monetization/12-my-purchased-skills-page.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":14,"files":[{"path":"prompts/monetization/12-platform-fee-implementation.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/12-sales-analytics-api.md","tier1":"likely-done","missing":["api/dashboard/analytics.js"]},{"path":"prompts/monetization/12-user-purchase-history.md","tier1":"likely-pending(missing artifact)","missing":["/api/users/me/purchase-history","/api/users/me/purchase-history"]},{"path":"prompts/monetization/12_creator_payouts_dashboard.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/13-api-for-owned-skills.md","tier1":"likely-pending(missing artifact)","missing":["api/users/me/owned-skills.js","api/users/me/owned-skills.js"]},{"path":"prompts/monetization/13-db-schema-access-grants.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/13-display-sales-analytics.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/13-platform-fee-implementation.md","tier1":"likely-done","missing":["api/payments/prepare-transaction.js"]}]},{"group":"prompts/monetization","idx":15,"files":[{"path":"prompts/monetization/13-spl-token-payments.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/13-subscription-model-database-schema.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/13-subscription-tiers-db-schema.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/13_platform_fee_integration.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/14-grant-skill-access.md","tier1":"likely-done","missing":["/api/payments/confirm-skill-payment"]},{"path":"prompts/monetization/14-payout-management-ui.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/14-platform-fee.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/14-subscription-tiers-ui-creator.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":16,"files":[{"path":"prompts/monetization/14-ui-for-subscription-tiers.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/14-ui-transaction-status.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/14_graceful_tx_failures.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/15-backend-check-active-grant.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/15-caching-skill-prices.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/15-save-subscription-tiers-api.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/15-skill-pricing-management.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/15-transaction-history.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":17,"files":[{"path":"prompts/monetization/15_gasless_transactions.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/16-integrate-skills-with-chat.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/16-skill-bundles-subscriptions.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/16-subscription-model-database.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/16-update-chat-ui-purchased.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/16-user-facing-subscription-ui.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/16-user-subscription-flow.md","tier1":"likely-done","missing":["api/subscriptions/verify.js"]},{"path":"prompts/monetization/16_refactor_service_class.md","tier1":"likely-pending(missing artifact)","missing":["api/_lib/services/MonetizationService.js","api/_lib/services/MonetizationService.js","api/skills/purchase-prep.js"]}]},{"group":"prompts/monetization","idx":18,"files":[{"path":"prompts/monetization/17-access-control-for-skills.md","tier1":"likely-done","missing":["api/_lib/access-control.js"]},{"path":"prompts/monetization/17-creator-dashboard-tab.md","tier1":"likely-pending(missing artifact)","missing":["/api/dashboard/earnings","/api/dashboard/earnings"]},{"path":"prompts/monetization/17-subscription-payment-activation.md","tier1":"likely-pending(missing artifact)","missing":["/api/subscribe/transaction","/api/subscribe/details","/api/subscribe/status","/api/subscribe/transaction"]},{"path":"prompts/monetization/17-subscription-purchase-flow.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/17-ui-for-insufficient-skills.md","tier1":"likely-done","missing":["src/chat.js"]},{"path":"prompts/monetization/17-user-purchase-history.md","tier1":"likely-done","missing":["/api/users/me/purchases"]},{"path":"prompts/monetization/17_caching_layer.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/18-db-schema-earnings.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":19,"files":[{"path":"prompts/monetization/18-gifting-skills.md","tier1":"unknown","missing":[]},{"path":"prompts/monetization/18-on-chain-program-for-skill-nfts.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/18-refactor-to-payment-sdk.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/18-subscription-token-gating.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/18-tip-jar-feature.md","tier1":"likely-pending(missing artifact)","missing":["/api/tip/transaction","/api/tip/details","/api/tip/transaction","/api/tip/details"]},{"path":"prompts/monetization/18_testing_the_service.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/19-backend-record-earnings.md","tier1":"likely-done","missing":["/api/payments/confirm-skill-payment"]},{"path":"prompts/monetization/19-creator-revenue-dashboard.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":20,"files":[{"path":"prompts/monetization/19-free-trials-for-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/19-integrate-skill-nfts-into-purchase-flow.md","tier1":"likely-done","missing":["contracts/target/idl/skill_marketplace.js"]},{"path":"prompts/monetization/19-platform-fee-integration.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/19-purchase-notifications.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/19_sale_notifications.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/20-analytics-for-creators.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/20-creator-revenue-api.md","tier1":"likely-pending(missing artifact)","missing":["/api/creators/me/stats","/api/creators/me/transactions","/api/creators/me/revenue-chart","/api/creators/me/stats"]},{"path":"prompts/monetization/20-display-earnings-dashboard.md","tier1":"likely-done","missing":["api/dashboard/earnings.js","/api/dashboard/earnings"]}]},{"group":"prompts/monetization","idx":21,"files":[{"path":"prompts/monetization/20-error-handling-frontend.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/20-referral-system.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/20-usage-based-billing-model.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/20_multiple_currencies.md","tier1":"likely-done","missing":["api/_lib/config.js"]},{"path":"prompts/monetization/21-affiliate-referral-program.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/21-affiliate-referral-system.md","tier1":"likely-done","missing":["api/marketplace/skills/verify-purchase.js"]},{"path":"prompts/monetization/21-loading-states-frontend.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/21-payout-system-ui.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":22,"files":[{"path":"prompts/monetization/21-platform-fee-mechanism.md","tier1":"likely-done","missing":["/api/purchase/details"]},{"path":"prompts/monetization/21-transaction-status-notifications.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/21_nft_gating.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/22-backend-for-payouts.md","tier1":"likely-done","missing":["api/dashboard/request-payout.js","/api/dashboard/request-payout"]},{"path":"prompts/monetization/22-creator-revenue-charts.md","tier1":"likely-pending(missing artifact)","missing":["src/creator-dashboard.js","src/creator-dashboard.js"]},{"path":"prompts/monetization/22-marketplace-analytics-dashboard.md","tier1":"likely-done","missing":["api/marketplace/analytics.js"]},{"path":"prompts/monetization/22-my-collection-page.md","tier1":"likely-pending(missing artifact)","missing":["src/collection.js","src/collection.js"]},{"path":"prompts/monetization/22-responsive-design-payment-modal.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":23,"files":[{"path":"prompts/monetization/22-user-reviews-for-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/22_skill_subscriptions.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/23-e2e-testing-purchase-flow.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/23-email-and-in-app-notifications.md","tier1":"likely-done","missing":["api/_lib/notifications.js","api/marketplace/skills/verify-purchase.js"]},{"path":"prompts/monetization/23-gifting-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/23-on-chain-royalties.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/23-skill-gating-api.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/23-ui-payout-wallet-config.md","tier1":"likely-pending(missing artifact)","missing":["/api/dashboard/payout-settings","api/dashboard/payout-settings.js","/api/dashboard/payout-settings"]}]},{"group":"prompts/monetization","idx":24,"files":[{"path":"prompts/monetization/23_free_trials.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/24-analytics-and-tracking.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/24-dynamic-pricing.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/24-end-to-end-monetization-testing.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/24-skill-bundles.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/24-skill-bundling.md","tier1":"unknown","missing":[]},{"path":"prompts/monetization/24-subscription-model.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/24_creator_analytics.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization","idx":25,"files":[{"path":"prompts/monetization/25-affiliate-referral-system.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/25-creator-documentation.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/25-documentation-for-creators.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/25-fiat-on-ramp-integration.md","tier1":"unknown","missing":[]},{"path":"prompts/monetization/25-free-trials-for-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization/25-user-purchases-page.md","tier1":"likely-done","missing":["src/purchases.js","api/users/my-purchases.js"]},{"path":"prompts/monetization/25_admin_panel.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization-feature","idx":1,"files":[{"path":"prompts/monetization-feature/02-backend-create-skill-pricing-table.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-feature/03-backend-create-user-purchases-table.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-feature/04-backend-purchase-skill-endpoint.md","tier1":"likely-pending(missing artifact)","missing":["api/skills/purchase.js","api/skills/purchase.js"]},{"path":"prompts/monetization-feature/05-ui-add-buy-skill-button.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-feature/06-frontend-handle-buy-skill-click.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-feature/07-backend-verify-and-record-purchase.md","tier1":"likely-done","missing":["api/skills/verify-purchase.js"]},{"path":"prompts/monetization-feature/08-ui-polling-for-purchase-completion.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-feature/09-ui-creator-set-prices-interface.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization-feature","idx":2,"files":[{"path":"prompts/monetization-feature/10-backend-save-skill-prices.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-feature/11-backend-access-control-logic.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-feature/12-ui-display-owned-locked-states.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-feature/13-creator-earnings-dashboard.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization-prompts","idx":1,"files":[{"path":"prompts/monetization-prompts/01-display-priced-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/02-add-purchase-button.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/02-database-schema-skill-prices.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/02-purchase-skill-button.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/03-create-purchase-modal.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/03-creator-api-set-skill-prices.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/03-skill-purchase-modal.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/04-connect-wallet-integration.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization-prompts","idx":2,"files":[{"path":"prompts/monetization-prompts/04-database-schema-user-purchases.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/04-wallet-integration-setup.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/05-api-initiate-purchase.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/05-solana-pay-integration.md","tier1":"likely-pending(missing artifact)","missing":["/api/transactions/create-skill-purchase","/api/transactions/create-skill-purchase"]},{"path":"prompts/monetization-prompts/05-spl-token-transfer.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/06-backend-purchase-endpoint.md","tier1":"likely-pending(missing artifact)","missing":["api/marketplace/purchase-skill.js","api/marketplace/purchase-skill.js"]},{"path":"prompts/monetization-prompts/06-frontend-solana-pay-qr-code.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/06-transaction-status-polling.md","tier1":"likely-pending(missing artifact)","missing":["/api/skills/purchase/verify","/api/skills/purchase/verify"]}]},{"group":"prompts/monetization-prompts","idx":3,"files":[{"path":"prompts/monetization-prompts/07-api-webhook-confirm-purchase.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/07-ui-feedback-on-purchase.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/08-creator-ui-set-prices.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/08-database-schema-for-pricing.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/08-purchase-skill-api-endpoint.md","tier1":"likely-pending(missing artifact)","missing":["api/transactions/create-skill-purchase.js","api/transactions/create-skill-purchase.js"]},{"path":"prompts/monetization-prompts/09-admin-interface-for-prices.md","tier1":"likely-pending(missing artifact)","missing":["api/agents/set-skill-price.js","api/agents/set-skill-price.js"]},{"path":"prompts/monetization-prompts/09-frontend-polling-confirmation.md","tier1":"likely-pending(missing artifact)","missing":["api/marketplace/purchase-status.js","api/marketplace/purchase-status.js"]},{"path":"prompts/monetization-prompts/09-verify-solana-transaction-api.md","tier1":"likely-pending(missing artifact)","missing":["api/skills/purchase/verify.js","api/skills/purchase/verify.js"]}]},{"group":"prompts/monetization-prompts","idx":4,"files":[{"path":"prompts/monetization-prompts/10-creator-dashboard-earnings-ui.md","tier1":"likely-pending(missing artifact)","missing":["src/dashboard-earnings.js","src/dashboard-earnings.js"]},{"path":"prompts/monetization-prompts/10-creator-payout-logic.md","tier1":"likely-pending(missing artifact)","missing":["api/cron/process-payouts.js","api/cron/process-payouts.js"]},{"path":"prompts/monetization-prompts/10-record-skill-ownership.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/11-api-creator-earnings.md","tier1":"likely-pending(missing artifact)","missing":["api/dashboard/earnings.js","api/dashboard/earnings.js"]},{"path":"prompts/monetization-prompts/11-api-security-for-purchase.md","tier1":"likely-done","missing":["api/skills/purchase/verify.js"]},{"path":"prompts/monetization-prompts/11-user-purchased-skills.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/12-backend-gate-skill-usage.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/12-creator-payout-setup.md","tier1":"unknown","missing":["/api/transactions/create-skill-purchase","/api/transactions/create-skill-purchase"]}]},{"group":"prompts/monetization-prompts","idx":5,"files":[{"path":"prompts/monetization-prompts/12-on-chain-receipts-as-nfts.md","tier1":"likely-done","missing":["api/marketplace/purchase-skill.js"]},{"path":"prompts/monetization-prompts/13-allow-free-skills.md","tier1":"likely-pending(missing artifact)","missing":["api/agents/remove-skill-price.js","api/agents/remove-skill-price.js"]},{"path":"prompts/monetization-prompts/13-frontend-buy-skill-button.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/13-platform-fee-logic.md","tier1":"likely-pending(missing artifact)","missing":["/api/transactions/create-skill-purchase","/api/transactions/create-skill-purchase","/api/skills/purchase/verify"]},{"path":"prompts/monetization-prompts/14-creator-dashboard-backend.md","tier1":"likely-done","missing":["/api/creator/dashboard/stats","/api/creator/dashboard/sales-history","/api/creator/dashboard/sales-by-skill"]},{"path":"prompts/monetization-prompts/14-frontend-ui-update-post-purchase.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/14-skill-gating-logic.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/15-creator-earnings-dashboard.md","tier1":"likely-done","missing":["api/creators/me/dashboard-stats.js"]}]},{"group":"prompts/monetization-prompts","idx":6,"files":[{"path":"prompts/monetization-prompts/15-skill-pricing-management-ui.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/15-user-dashboard-purchased-skills.md","tier1":"unknown","missing":["src/dashboard-my-skills.js","src/dashboard-my-skills.js"]},{"path":"prompts/monetization-prompts/16-on-chain-nft-license.md","tier1":"likely-pending(missing artifact)","missing":["api/minter/mint-skill-license.js","api/minter/mint-skill-license.js"]},{"path":"prompts/monetization-prompts/16-skill-pricing-management-api.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/16-support-multiple-currencies.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/17-affiliate-program.md","tier1":"likely-done","missing":["api/cron/process-payouts.js","api/marketplace/purchase-skill.js"]},{"path":"prompts/monetization-prompts/17-creator-payout-settings-ui.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/17-database-schema-creator-payouts.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization-prompts","idx":7,"files":[{"path":"prompts/monetization-prompts/18-api-creator-withdrawal.md","tier1":"likely-pending(missing artifact)","missing":["api/dashboard/request-withdrawal.js","api/dashboard/request-withdrawal.js"]},{"path":"prompts/monetization-prompts/18-creator-dashboard-ui.md","tier1":"likely-pending(missing artifact)","missing":["src/creator-dashboard.js","/api/creator/dashboard/revenue-over-time","src/creator-dashboard.js","/api/creator/dashboard/stats"]},{"path":"prompts/monetization-prompts/18-subscription-model.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/19-skill-bundling.md","tier1":"unknown","missing":[]},{"path":"prompts/monetization-prompts/19-skill-gating-logic.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/19-worker-payout-processing.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/20-batch-skill-purchase.md","tier1":"likely-pending(missing artifact)","missing":["/api/transactions/create-skill-purchase","/api/transactions/create-skill-purchase"]},{"path":"prompts/monetization-prompts/20-email-notifications.md","tier1":"likely-done","missing":["workers/payout-processor.js"]}]},{"group":"prompts/monetization-prompts","idx":8,"files":[{"path":"prompts/monetization-prompts/20-skill-reviews-and-ratings.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/21-gifting-skills.md","tier1":"unknown","missing":[]},{"path":"prompts/monetization-prompts/21-refactor-monetization-service.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/21-skill-subscription-model-backend.md","tier1":"likely-pending(missing artifact)","missing":["/api/subscriptions/create","/api/webhooks/payments","/api/subscriptions/create","/api/webhooks/payments"]},{"path":"prompts/monetization-prompts/22-skill-subscription-model-frontend.md","tier1":"likely-pending(missing artifact)","missing":["/api/subscriptions/create","/api/subscriptions/create"]},{"path":"prompts/monetization-prompts/22-unit-tests-monetization-service.md","tier1":"likely-done","missing":["api/_lib/monetization-service.js"]},{"path":"prompts/monetization-prompts/23-e2e-test-purchase-flow.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/23-email-receipts.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/monetization-prompts","idx":9,"files":[{"path":"prompts/monetization-prompts/24-admin-monetization-dashboard.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/24-analytics-and-tracking.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/25-update-documentation.md","tier1":"likely-done","missing":[]},{"path":"prompts/monetization-prompts/25-user-experience-onboarding.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/onchain-demo","idx":1,"files":[{"path":"prompts/onchain-demo/01-three-ws-self-registration.md","tier1":"likely-done","missing":["data/three-ws-agent-onchain.js","public/.well-known/3d-agent-card.js","public/.well-known/agent-registration.js"]},{"path":"prompts/onchain-demo/02-register-genesis-rank1-pda.md","tier1":"likely-pending(missing artifact)","missing":["scripts/register-genesis-rank1-pda.mjs","scripts/genesis-results.js","scripts/register-genesis-rank1-pda.mjs"]},{"path":"prompts/onchain-demo/03-verify-metaplex-agents-page.md","tier1":"likely-done","missing":["data/three-ws-agent-onchain.js","scripts/genesis-results.js"]}]},{"group":"prompts","idx":1,"files":[{"path":"prompts/prompt-1-asset-compression.md","tier1":"likely-done","missing":[]},{"path":"prompts/prompt-2-lobby-performance.md","tier1":"likely-done","missing":[]},{"path":"prompts/prompt-3-bvh-main-viewer.md","tier1":"likely-done","missing":[]},{"path":"prompts/prompt-4-postprocessing.md","tier1":"unknown","missing":[]},{"path":"prompts/pumpfun-usdc-deploy.md","tier1":"likely-done","missing":["scripts/pump-vanity-grind.mjs"]},{"path":"prompts/pumpfun-usdc-link-agent.md","tier1":"likely-done","missing":[]},{"path":"prompts/pumpfun-usdc-monitor-gate.md","tier1":"likely-done","missing":["scripts/pump-usdc-status.mjs"]}]},{"group":"prompts/prompts/monetization","idx":1,"files":[{"path":"prompts/prompts/monetization/02-purchase-skill-button.md","tier1":"likely-done","missing":[]},{"path":"prompts/prompts/monetization/03-solana-pay-integration.md","tier1":"likely-done","missing":[]},{"path":"prompts/prompts/monetization/04-backend-payment-verification.md","tier1":"likely-pending(missing artifact)","missing":["/api/payments/verify","api/payments/verify.js","/api/payments/verify"]},{"path":"prompts/prompts/monetization/05-unlock-skill-after-purchase.md","tier1":"likely-done","missing":[]},{"path":"prompts/prompts/monetization/06-user-purchased-skills-api.md","tier1":"likely-pending(missing artifact)","missing":["/api/users/me/skills","/api/users/me/skills"]},{"path":"prompts/prompts/monetization/07-skill-pricing-dashboard.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/siwx","idx":1,"files":[{"path":"prompts/siwx/01-db-schema.md","tier1":"likely-pending(missing artifact)","missing":["scripts/migrate.mjs","api/_lib/migrations.js","scripts/migrate.mjs"]},{"path":"prompts/siwx/02-storage-adapter.md","tier1":"likely-done","missing":[]},{"path":"prompts/siwx/03-paid-endpoint-integration.md","tier1":"likely-done","missing":["api/_lib/x402-paid-endpoint.siwx.test.js"]},{"path":"prompts/siwx/04-wire-endpoints.md","tier1":"likely-done","missing":[]},{"path":"prompts/siwx/05-browser-modal.md","tier1":"likely-done","missing":["public/x402-test.html"]},{"path":"prompts/siwx/06-nonce-gc-cron.md","tier1":"likely-done","missing":[]},{"path":"prompts/siwx/07-verify-end-to-end.md","tier1":"likely-done","missing":[]}]},{"group":"prompts/tripo-gap","idx":1,"files":[{"path":"prompts/tripo-gap/01-text-to-animation.md","tier1":"likely-done","missing":["api/animate.js"]},{"path":"prompts/tripo-gap/02-game-ready-export-tier.md","tier1":"unknown","missing":["api/forge-gameready.js","api/forge-gameready.js","/api/forge-gameready"]},{"path":"prompts/tripo-gap/03-blender-comfyui-plugins.md","tier1":"likely-done","missing":["api/api-keys.test.js"]},{"path":"prompts/tripo-gap/04-monetized-3d-api-mcp.md","tier1":"unknown","missing":["api/x402/generate.js","api/x402/generate.js","api/forge-openapi.js"]}]}]--const SCHEMA = {- type: 'object',- properties: {- results: {- type: 'array',- items: {- type: 'object',- properties: {- file: { type: 'string' },- verdict: { type: 'string', enum: ['done', 'partial', 'pending'] },- confidence: { type: 'string', enum: ['high', 'medium', 'low'] },- evidence: { type: 'string', description: 'concrete repo evidence: file paths, symbols, endpoints, commits checked' },- missing: { type: 'string', description: 'what is absent or unwired if not done; empty if done' },- deleted: { type: 'boolean', description: 'true only if you removed this file (done + high confidence)' },- },- required: ['file', 'verdict', 'confidence', 'evidence', 'deleted'],- },- },- },- required: ['results'],-}--phase('Verify')-log('Verifying ' + BATCHES.length + ' batches across ' + 37 + ' groups')--const PROMPT = (b) =>- 'You are auditing whether work items in the three.ws repo are ACTUALLY complete, and deleting the ones that are. Make NO edits to source files; the ONLY filesystem change you may make is deleting confirmed-complete task files as instructed below.\n\n' +- 'For EACH task/prompt file below: (1) Read the file. (2) Determine its concrete deliverables — files to create, endpoints, UI, DB tables, symbols, env/ops actions — usually in its "Files", "What to build", "Acceptance", "Verify" or "Definition of Done" sections. (3) Inspect the repo to see if those deliverables truly exist AND are wired/used: use Glob/Grep for files and symbols, Read to confirm wiring, and git log (oneline, case-insensitive grep on a key term) for history. \n\n' +- 'Verdict rules: "done" = deliverables exist and are wired/reachable (not just a file present); "partial" = some deliverables exist but it is incomplete or unwired; "pending" = not started, OR an ops/action task (fund wallet, rotate token, run migration, deploy) whose action has no evidence of having been performed. A topic appearing in a commit message is NOT proof — verify the artifact. The tier1 guess is only a prior; override it when evidence disagrees, and say so in evidence.\n\n' +- 'Files to verify (path :: tier1 guess :: heuristic-missing):\n' +- b.files.map(f => '- ' + f.path + ' :: ' + f.tier1 + (f.missing.length ? ' :: missing? ' + f.missing.join(', ') : '')).join('\n') +- '\n\nDELETION STEP — after you have verified every file: for EACH file you judged verdict="done" AND confidence="high", delete it now by running the shell command rm "<path>" (plain rm, never git rm — agents share one git index). Delete ONLY done+high files; never delete partial, pending, or medium/low-confidence files. When in any doubt about completeness, do NOT delete — downgrade to medium confidence instead. Do NOT run git add, git commit, or git push. Set deleted=true for every file you removed and deleted=false for all others.\n\n' +- 'Return exactly one result object per file listed.'--const out = await parallel(BATCHES.map(b => () =>- agent(PROMPT(b), { label: b.group + ' #' + b.idx, phase: 'Verify', schema: SCHEMA })- .then(r => (r && r.results) ? r.results : [])-))--const all = out.filter(Boolean).flat()-const n = v => all.filter(x => x.verdict === v).length-log('done=' + n('done') + ' partial=' + n('partial') + ' pending=' + n('pending') + ' of ' + all.length)-return { total: all.length, done: n('done'), partial: n('partial'), pending: n('pending'), results: all }diff --git a/src/agent-exchange.js b/src/agent-exchange.jsindex 88fde92f7..11af7d48c 100644--- a/src/agent-exchange.js+++ b/src/agent-exchange.js@@ -32,6 +32,16 @@ const STAGE_DEFS = [{ id: 'done', label: 'Confirmed', narration: 'Confirmed on-chain. Intel delivered.' },];+// Terminal failure stage — rendered alongside the flow stages but hidden until+// a payment errors out, times out, or is rejected. It always reflects the final+// failure reason so the viewer sees exactly where the exchange stopped.+const ERROR_STAGE = { id: 'failed', label: 'Failed', narration: 'Payment did not complete. No funds were moved.' };++// How long a single x402-pay request may run before we abort it and surface a+// timeout. The full challenge→settle flow is fast; 30s covers a slow facilitator+// or RPC without leaving the viewer staring at a hung "Paying…" button.+const PAY_TIMEOUT_MS = 30000;+// Agent scripts — lines spoken at each stage of the exchange.const LINES = {A: {@@ -130,13 +140,37 @@ function sayB(text) {// ── Payment stages ────────────────────────────────────────────────────────────function renderStages() {- els.stages.innerHTML = STAGE_DEFS.map((s) =>- `<div class="stage" id="stage-${s.id}">` ++ const stageEl = (s, extra = '') =>+ `<div class="stage${extra}" id="stage-${s.id}">` +`<span class="si" aria-hidden="true"></span>` +`<span>${s.label}</span>` +`<span class="sval" id="sval-${s.id}"></span>` +- `</div>`,- ).join('');+ `</div>`;+ // Flow stages, then the terminal failure stage (hidden until a payment fails).+ els.stages.innerHTML =+ STAGE_DEFS.map((s) => stageEl(s)).join('') ++ stageEl(ERROR_STAGE, ' stage-terminal');+ hideErrorStage();+}++// The terminal failure stage is only meaningful when something went wrong, so it+// stays out of the flow until showErrorStage() promotes it.+function showErrorStage(reason) {+ const el = $(`stage-${ERROR_STAGE.id}`);+ if (!el) return;+ el.hidden = false;+ el.className = 'stage stage-terminal error';+ const sv = $(`sval-${ERROR_STAGE.id}`);+ if (sv) sv.textContent = reason ? `· ${reason}` : '';+}++function hideErrorStage() {+ const el = $(`stage-${ERROR_STAGE.id}`);+ if (!el) return;+ el.hidden = true;+ el.className = 'stage stage-terminal';+ const sv = $(`sval-${ERROR_STAGE.id}`);+ if (sv) sv.textContent = '';}function setStage(id, state, val = '') {@@ -149,6 +183,7 @@ function setStage(id, state, val = '') {function resetStages() {for (const s of STAGE_DEFS) setStage(s.id, '');+ hideErrorStage();els.receipt.classList.remove('show');}@@ -303,6 +338,11 @@ async function doPurchase() {let activeStage = 'challenge';let errored = false;+ // Abort the request if the whole flow stalls past the timeout. The timer is+ // cleared the moment the stream finishes (success or thrown error).+ const ctrl = new AbortController();+ const timeoutId = setTimeout(() => ctrl.abort(), PAY_TIMEOUT_MS);+try {const res = await fetch('/api/x402-pay', {method: 'POST',@@ -313,6 +353,7 @@ async function doPurchase() {endpoint: '/api/x402/crypto-intel',body: { topic: activeTopic },}),+ signal: ctrl.signal,});if (!res.ok || !res.body) {@@ -391,28 +432,49 @@ async function doPurchase() {renderReceipt(settled, intel);+ // Send focus to the receipt so keyboard + screen-reader users land on the+ // just-confirmed result instead of staying on the pay button.+ focusReceipt();+} catch (err) {- if (!errored) setStage(activeStage, 'error', 'failed');+ // A timeout surfaces as an AbortError — translate it into a clear reason.+ const timedOut = err?.name === 'AbortError';+ const reason = timedOut+ ? `No response in ${Math.round(PAY_TIMEOUT_MS / 1000)}s`+ : (err.message || 'Payment failed');++ // Mark whichever stage was in flight as errored (unless the stream already+ // did), then promote the terminal failure stage with the reason.+ if (!errored) setStage(activeStage, 'error', timedOut ? 'timed out' : 'failed');+ showErrorStage(reason);+sayA(LINES.A.error);sayB(LINES.B.error);gestureA('idle');- const msg = escHtml(err.message || 'Payment failed. No funds moved.');+ const headline = timedOut+ ? 'Payment timed out — no funds moved'+ : 'Payment failed — no funds moved';+ const body = timedOut+ ? 'The payment service did not respond in time. No USDC left the wallet. Pick a topic and try again.'+ : escHtml(reason);els.receipt.innerHTML =`<div style="background:rgba(255,79,106,.06);border:1px solid rgba(255,79,106,.22);border-radius:10px;padding:12px 14px;">` +`<div style="display:flex;align-items:center;gap:7px;font-weight:700;color:var(--red);font-size:13px;margin-bottom:5px;">` +`<svg width="13" height="13" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>` +- `Payment failed — no funds moved` ++ `${escHtml(headline)}` +`</div>` +- `<div style="font-size:12.5px;color:var(--muted);">${msg} ` ++ `<div style="font-size:12.5px;color:var(--muted);">${body} ` +`<a href="/pay" style="color:var(--usdc-lt);text-decoration:none;" onmouseover="this.style.textDecoration='underline'" onmouseout="this.style.textDecoration='none'">Learn about x402 →</a>` +`</div>` +`</div>`;els.receipt.classList.add('show');+ focusReceipt();// Reset narration to empty state so the viewer knows they can retry.showEmptyState();} finally {+ clearTimeout(timeoutId);busy = false;els.payBtn.classList.remove('busy');els.payBtn.disabled = false;@@ -420,6 +482,12 @@ async function doPurchase() {}}+// Move keyboard focus to the receipt panel without scrolling the page out from+// under the viewer's eye on the result. The panel is tabindex=-1 in the markup.+function focusReceipt() {+ try { els.receipt.focus({ preventScroll: false }); } catch { /* focus unsupported */ }+}+// ── SSE reader (same pattern as /pay demo) ────────────────────────────────────async function* sseReader(res) {const reader = res.body.getReader();diff --git a/src/agent-trade.js b/src/agent-trade.jsindex fc5daed38..7b6468228 100644--- a/src/agent-trade.js+++ b/src/agent-trade.js@@ -248,7 +248,59 @@ const els = {cfgClose: document.getElementById('cfgClose'),};-els.cfgClose.addEventListener('click', () => els.notConfigured.classList.add('hidden'));+// ── Config overlay focus management ─────────────────────────────────────────+// The overlay is a modal dialog over a 3D canvas (OrbitControls). Keyboard users+// need: focus moved into it on open, Tab trapped inside it, Escape to dismiss, and+// focus returned to the trigger on close — otherwise Tab silently escapes to the+// canvas and the overlay reads as a dead end.+let cfgLastFocus = null;++function cfgFocusable() {+ return [...els.notConfigured.querySelectorAll('a[href], button:not([disabled])')].filter(+ (el) => el.offsetParent !== null,+ );+}++function openConfigOverlay() {+ cfgLastFocus = document.activeElement;+ els.notConfigured.classList.remove('hidden');+ // Move focus to the dismiss control so keyboard users land inside the dialog.+ requestAnimationFrame(() => els.cfgClose?.focus());+}++function closeConfigOverlay() {+ if (els.notConfigured.classList.contains('hidden')) return;+ els.notConfigured.classList.add('hidden');+ // Return focus somewhere sensible so the user keeps their place: the original+ // trigger if it's still focusable, else the run button, else the topic select+ // (the run button is disabled when unconfigured and can't take focus).+ const candidates = [cfgLastFocus, els.startBtn, els.topicSelect].filter(+ (el) => el && document.contains(el) && !el.disabled,+ );+ candidates[0]?.focus?.();+}++els.notConfigured.addEventListener('keydown', (e) => {+ if (e.key === 'Escape') {+ e.preventDefault();+ closeConfigOverlay();+ return;+ }+ if (e.key !== 'Tab') return;+ const focusable = cfgFocusable();+ if (!focusable.length) return;+ const first = focusable[0];+ const last = focusable[focusable.length - 1];+ if (e.shiftKey && document.activeElement === first) {+ e.preventDefault();+ last.focus();+ } else if (!e.shiftKey && document.activeElement === last) {+ e.preventDefault();+ first.focus();+ }+});++els.cfgClose.addEventListener('click', closeConfigOverlay);// ── Label & bubble positioning ──────────────────────────────────────────────function project(v3) {@@ -519,7 +571,7 @@ async function checkConfig() {if (!r.ok) return;const d = await r.json();if (!d.configured) {- els.notConfigured.classList.remove('hidden');+ openConfigOverlay();els.startBtn.disabled = true;} else {if (d.buyer?.address) els.buyerAddr.textContent = fmt(d.buyer.address);diff --git a/src/characters.js b/src/characters.jsindex defd0934e..b50d2d033 100644--- a/src/characters.js+++ b/src/characters.js@@ -21,6 +21,22 @@ function formatUsd(n) {return '$' + Number(n).toFixed(2);}+function escHtml(s) {+ return String(s ?? '')+ .replace(/&/g, '&')+ .replace(/</g, '<')+ .replace(/>/g, '>')+ .replace(/"/g, '"')+ .replace(/'/g, ''');+}++// Only allow http(s) image URLs; anything else (javascript:, data:, etc.) is+// dropped so a hostile image_url can't smuggle script into the src attribute.+function safeUrl(u) {+ const s = String(u ?? '').trim();+ return /^https?:\/\//i.test(s) ? escHtml(s) : '';+}+function avatarPlaceholder(name) {const letter = (name || '?')[0].toUpperCase();const hue = [...(name || 'X')].reduce((acc, c) => acc + c.charCodeAt(0), 0) % 360;@@ -29,14 +45,16 @@ function avatarPlaceholder(name) {function cardHtml(ch) {const { letter, color } = avatarPlaceholder(ch.name);- const avatarEl = ch.image_url- ? `<img class="chs-card-avatar" src="${ch.image_url}" alt="${ch.name}"+ const name = escHtml(ch.name);+ const imgSrc = safeUrl(ch.image_url);+ const avatarEl = imgSrc+ ? `<img class="chs-card-avatar" src="${imgSrc}" alt="${name}"onerror="this.style.display='none';this.nextElementSibling.style.display='flex'" /><div class="chs-card-avatar-ph" style="display:none;background:${color}">${letter}</div>`: `<div class="chs-card-avatar-ph" style="background:${color}">${letter}</div>`;const creator = ch.author_name- ? `<div class="chs-card-creator">by @${ch.author_name.toLowerCase().replace(/\s+/g, '')}</div>`+ ? `<div class="chs-card-creator">by @${escHtml(ch.author_name.toLowerCase().replace(/\s+/g, ''))}</div>`: '';let tokenHtml = '';@@ -49,7 +67,7 @@ function cardHtml(ch) {tokenHtml = `<div class="chs-card-token"><div class="chs-card-token-left">- <span class="chs-card-token-symbol">$${ch.token.symbol}</span>+ <span class="chs-card-token-symbol">$${escHtml(ch.token.symbol)}</span>${price ? `<span class="chs-card-token-price">${price}</span>` : ''}</div>${changeEl}@@ -67,15 +85,15 @@ function cardHtml(ch) {</div>`;return `- <a class="chs-card" href="/character/${ch.id}">+ <a class="chs-card" href="/character/${encodeURIComponent(ch.id)}"><div class="chs-card-top">${avatarEl}<div class="chs-card-info">- <div class="chs-card-name">${ch.name}</div>+ <div class="chs-card-name">${name}</div>${creator}</div></div>- ${ch.description ? `<p class="chs-card-desc">${ch.description}</p>` : ''}+ ${ch.description ? `<p class="chs-card-desc">${escHtml(ch.description)}</p>` : ''}${statsHtml}${tokenHtml}</a>`;diff --git a/src/club-gate.js b/src/club-gate.jsindex 4a032d626..55990ded4 100644--- a/src/club-gate.js+++ b/src/club-gate.js@@ -17,9 +17,31 @@ import { log } from './shared/log.js';const COVER_ENDPOINT = '/api/x402/club-cover';const PASS_KEY = 'club:pass:v1';+// Hard client-side ceiling on a cached pass, independent of the server's+// expiresAt. Even if the cover endpoint ever returns a long-lived (or missing)+// expiry, a device never re-enters free for more than one night. The shorter of+// {server expiresAt, issuedAt + this} wins.+const MAX_PASS_AGE_MS = 24 * 60 * 60 * 1000;+const door = document.getElementById('club-door');if (door) initDoor(door);+// Logout / wallet switch invalidates the cached cover pass — it is bound to the+// paying wallet, so a disconnect or a different wallet must pay cover again.+// `wallet:changed` fires with detail.address === null on disconnect.+window.addEventListener('wallet:changed', (e) => {+ const addr = e?.detail && Object.prototype.hasOwnProperty.call(e.detail, 'address')+ ? e.detail.address+ : undefined;+ // Clear on an explicit disconnect (null) or a wallet switch (different addr).+ if (addr === null || (addr && addr !== readPassWallet())) clearPass();+});++function readPassWallet() {+ try { return JSON.parse(localStorage.getItem(PASS_KEY) || 'null')?.wallet || null; }+ catch { return null; }+}+function initDoor(root) {const payBtn = root.querySelector('#club-door-pay');const msgEl = root.querySelector('#club-door-msg');@@ -155,13 +177,33 @@ function welcomeFor(pass) {}// ── Local pass cache (per device, until the pass expires) ─────────────────+// A cached pass is valid only while BOTH the server's expiresAt and the local+// 24h ceiling (issuedAt + MAX_PASS_AGE_MS) are still in the future. A pass with+// no usable timestamp is discarded rather than trusted forever.function readPass() {try {const raw = localStorage.getItem(PASS_KEY);if (!raw) return null;const pass = JSON.parse(raw);- if (!pass?.expiresAt || Date.parse(pass.expiresAt) <= Date.now()) {- localStorage.removeItem(PASS_KEY);+ const now = Date.now();++ const serverExpiry = pass?.expiresAt ? Date.parse(pass.expiresAt) : NaN;+ const issuedAt = pass?.issuedAt ? Date.parse(pass.issuedAt) : NaN;+ const localExpiry = Number.isFinite(issuedAt) ? issuedAt + MAX_PASS_AGE_MS : NaN;++ // Need at least one valid expiry boundary; otherwise the pass is untrusted.+ if (!Number.isFinite(serverExpiry) && !Number.isFinite(localExpiry)) {+ clearPass();+ return null;+ }++ // Earliest of the available boundaries is the effective expiry.+ const effectiveExpiry = Math.min(+ Number.isFinite(serverExpiry) ? serverExpiry : Infinity,+ Number.isFinite(localExpiry) ? localExpiry : Infinity,+ );+ if (effectiveExpiry <= now) {+ clearPass();return null;}return pass;@@ -177,10 +219,19 @@ function writePass(pass) {tier: pass.tier,visits: pass.visits,expiresAt: pass.expiresAt,+ // Bind the cache to the paying wallet so a wallet switch invalidates it.+ wallet: pass.payer || null,+ // Stamp the moment of caching so the 24h client ceiling is enforceable+ // even when the server omits or over-extends expiresAt.+ issuedAt: new Date().toISOString(),}));} catch {}}+function clearPass() {+ try { localStorage.removeItem(PASS_KEY); } catch {}+}+function wait(ms) {return new Promise((resolve) => setTimeout(resolve, ms));}diff --git a/src/club.js b/src/club.jsindex a77290a15..35990066d 100644--- a/src/club.js+++ b/src/club.js@@ -274,9 +274,31 @@ async function loadInitialTips({ attempt = 0 } = {}) {}}-// Subscribe to the SSE channel. Reconnects with linear backoff after an-// error; after 3 consecutive failures shows a "live updates paused" badge.-// The badge clears as soon as the next connection succeeds.+// Backfill tips after an SSE reconnect: fetch recent history and render any+// rows the dedup cache hasn't seen, so a gap during the outage is closed. New+// rows flash as live; already-seen rows are dropped by rememberTicketId.+async function backfillTips() {+ try {+ const r = await fetch(TIPS_HISTORY_URL, { cache: 'no-store' });+ if (!r.ok) return;+ const data = await r.json();+ const tips = Array.isArray(data?.tips) ? data.tips : [];+ // Oldest-first so sequential prepend leaves newest on top.+ for (const t of tips.slice().reverse()) {+ renderTipRow(t, { live: true });+ }+ } catch (err) {+ log.warn('[club] tip backfill failed', err);+ }+}++// Subscribe to the SSE channel. Reconnects with exponential backoff + jitter+// after an error; after 3 consecutive failures shows a "live updates paused"+// badge. On every successful (re)connection it backfills from the tips REST+// endpoint so any tips that landed while the socket was down still appear — the+// per-ticket dedup in renderTipRow keeps backfill from duplicating live rows.+const SSE_BASE_DELAY_MS = 1000; // first retry ~1s+const SSE_MAX_DELAY_MS = 30000; // cap backoff at 30s during a long outagefunction subscribeTipStream() {if (typeof window.EventSource !== 'function') {setFeedStatus('Live updates paused', 'paused');@@ -286,6 +308,9 @@ function subscribeTipStream() {let consecutiveFailures = 0;let reconnectTimer = 0;let closedByUser = false;+ // First open is a cold start (initial history already loaded separately);+ // only reconnections trigger a gap-filling backfill.+ let reconnecting = false;const open = () => {if (closedByUser) return;@@ -299,6 +324,11 @@ function subscribeTipStream() {es.addEventListener('hello', () => {consecutiveFailures = 0;setFeedStatus(null);+ // Pull anything missed while the socket was down. Dedup makes this safe.+ if (reconnecting) {+ reconnecting = false;+ backfillTips();+ }});es.addEventListener('tip', (e) => {try {@@ -315,6 +345,7 @@ function subscribeTipStream() {// advances predictably and the badge timing is honest.try { es?.close(); } catch {}es = null;+ reconnecting = true;consecutiveFailures += 1;if (consecutiveFailures >= 3) {setFeedStatus('Live updates paused', 'paused');@@ -326,9 +357,10 @@ function subscribeTipStream() {const scheduleReconnect = () => {if (closedByUser) return;clearTimeout(reconnectTimer);- // 1.5 s, 3 s, 6 s, capped — fast enough to recover from a momentary- // blip without hammering the endpoint during a longer outage.- const delay = Math.min(1500 * Math.max(1, consecutiveFailures), 6000);+ // Exponential backoff: 1s, 2s, 4s, 8s… capped at 30s, with full jitter so+ // many reconnecting clients don't thunder the endpoint in lockstep.+ const exp = Math.min(SSE_BASE_DELAY_MS * 2 ** (consecutiveFailures - 1), SSE_MAX_DELAY_MS);+ const delay = Math.round(exp / 2 + Math.random() * (exp / 2));reconnectTimer = setTimeout(open, delay);};@@ -1326,6 +1358,47 @@ window.addEventListener('club:performance-end', () => {window.addEventListener('keydown', start, { once: true });}+// ── x402 readiness gate ──────────────────────────────────────────────────+// The x402 widget (public/x402.js) sets window.X402 synchronously when its+// module finishes evaluating, but module load order and a failed/blocked script+// mean we can't assume it's there. Poll briefly for window.X402.pay; resolve the+// moment it appears (typically immediately on the first check).+function whenX402Ready(cb) {+ if (window.X402?.pay) { cb(); return; }+ let waited = 0;+ const POLL_MS = 100;+ const MAX_WAIT_MS = 15000;+ const id = setInterval(() => {+ waited += POLL_MS;+ if (window.X402?.pay) {+ clearInterval(id);+ cb();+ } else if (waited >= MAX_WAIT_MS) {+ clearInterval(id);+ // Widget never loaded — leave tip buttons disabled and tell the user.+ onTipButtonsUnavailable();+ }+ }, POLL_MS);+}++function enableTipButtons() {+ for (const card of poleCardEls.values()) {+ const btn = card.querySelector('.club-tip-btn');+ if (!btn) continue;+ btn.disabled = false;+ btn.removeAttribute('aria-disabled');+ btn.removeAttribute('title');+ }+}++function onTipButtonsUnavailable() {+ for (const card of poleCardEls.values()) {+ const btn = card.querySelector('.club-tip-btn');+ if (btn) btn.title = 'Payment widget unavailable — reload to try again';+ }+ setStatus('Payment widget failed to load — reload the page to tip.', { kind: 'error' });+}+// ── Tip flow (x402 drop-in) ──────────────────────────────────────────────async function tipDancer({ dancer, dance, button }) {if (!window.X402?.pay) {@@ -1618,6 +1691,12 @@ function savePoleAvatar(poleId, key) {savedPoleAvatars[poleId] = key;try { localStorage.setItem(POLE_AVATARS_KEY, JSON.stringify(savedPoleAvatars)); } catch {}}+// Drop a pole's persisted override (used when a saved look no longer resolves)+// so the next load doesn't keep retrying a dead avatar.+function forgetPoleAvatar(poleId) {+ delete savedPoleAvatars[poleId];+ try { localStorage.setItem(POLE_AVATARS_KEY, JSON.stringify(savedPoleAvatars)); } catch {}+}// The default look for a pole is that pole's own dancer; persisted only when// the visitor picks something else.function defaultAvatarKey(poleId) { return `dancer-${poleId}`; }@@ -1758,6 +1837,7 @@ async function swapPoleAvatar(poleId, key) {station.swapAvatar(template, fallbackTemplateRef || template);savePoleAvatar(poleId, key);refreshAvatarButton(poleId);+ clearAvatarReselect(poleId);setStatus(`${dancerNameFor(poleId)} now wearing ${entry.name}.`, { kind: 'ok' });return true;} catch (err) {@@ -1792,14 +1872,42 @@ async function initAvatarSelector(dancerUrls) {// Re-apply any look the visitor chose on a previous visit. The boot path// already attached each pole's own dancer, so we only swap the overrides.+ // If a saved look no longer resolves (gallery 404, removed avatar, network+ // timeout), don't silently leave the visitor with the default — flag the+ // pole so they're prompted to re-pick instead of wondering why their look+ // reverted.for (const pole of POLES) {const key = savedPoleAvatars[pole.id];- if (key && avatarCatalog.has(key) && key !== defaultAvatarKey(pole.id)) {- swapPoleAvatar(pole.id, key);+ if (!key || key === defaultAvatarKey(pole.id)) continue;++ if (!avatarCatalog.has(key)) {+ // The saved avatar isn't in the catalog anymore — clear it and prompt.+ forgetPoleAvatar(pole.id);+ markAvatarReselect(pole.id, `${dancerNameFor(pole.id)}'s saved look is no longer available — pick a new one.`);+ continue;+ }++ const ok = await swapPoleAvatar(pole.id, key);+ if (!ok) {+ markAvatarReselect(pole.id, `Couldn't restore ${dancerNameFor(pole.id)}'s saved look — tap to choose again.`);}}}+// Flag a pole's avatar button so the visitor knows the saved look didn't load+// and can re-select. Non-destructive: the default rig is already on stage, so+// the dancer keeps performing while the prompt stands.+function markAvatarReselect(poleId, message) {+ const btn = poleCardEls.get(poleId)?.querySelector('.club-avatar-btn');+ if (btn) {+ btn.classList.add('needs-reselect');+ btn.title = message;+ const change = btn.querySelector('.club-avatar-change');+ if (change) change.textContent = 'Re-select avatar';+ }+ setStatus(message, { kind: 'warn' });+}+function renderPoles() {if (!polesPanel) return;polesPanel.innerHTML = '';@@ -1844,7 +1952,7 @@ function renderPoles() {${DANCES.map((d) => `<option value="${d.key}">${d.label}</option>`).join('')}</select></label>- <button type="button" class="club-tip-btn" data-dancer="${pole.id}" aria-label="Tip ${meta.name} $0.001 USDC">+ <button type="button" class="club-tip-btn" data-dancer="${pole.id}" aria-label="Tip ${meta.name} $0.001 USDC" disabled aria-disabled="true" title="Connecting payment widget…">Tip $0.001</button>`;@@ -1852,6 +1960,11 @@ function renderPoles() {poleCardEls.set(pole.id, card);}+ // Tip buttons stay disabled until the x402 payment widget is live, so a tap+ // can't fall through to a missing window.X402.pay. enableTipButtons() flips+ // them on the moment the widget is ready (see whenX402Ready below).+ whenX402Ready(enableTipButtons);+// Tap card on mobile to VIP.polesPanel.addEventListener('click', (e) => {const avatarBtn = e.target.closest('.club-avatar-btn');@@ -2087,20 +2200,57 @@ async function fetchLeaderboard() {headers: { accept: 'application/json' },cache: 'no-store',});- if (!res.ok) throw new Error(`HTTP ${res.status}`);+ // Distinguish a server-side failure (5xx/4xx) from a transport failure+ // (fetch reject, caught below) so the user sees the right recovery hint.+ if (!res.ok) {+ const e = new Error(`HTTP ${res.status}`);+ e.kind = res.status >= 500 ? 'down' : 'server';+ throw e;+ }const body = await res.json();renderLeaderboard(body.rows || []);} catch (err) {log.error('[club] leaderboard fetch failed', err);- // Don't blow away an already-rendered table on a transient hiccup.+ // A rejected fetch (offline / DNS / CORS) surfaces as a TypeError.+ const kind = err?.kind || (err instanceof TypeError ? 'network' : 'down');+ // Don't blow away an already-rendered table on a transient hiccup —+ // stale-but-real data beats an error wall.if (!lbRowsEl.querySelector('.club-lb-row')) {- lbRowsEl.innerHTML = '<div class="club-lb-empty">Leaderboard unavailable.</div>';+ renderLeaderboardError(kind);}} finally {lbInflight = false;}}+// Leaderboard error states, distinguished by failure mode, each with an action.+function renderLeaderboardError(kind) {+ if (!lbRowsEl) return;+ const copy = {+ network: {+ msg: "You're offline — the leaderboard couldn't load.",+ cta: 'Retry',+ },+ down: {+ msg: 'The leaderboard is temporarily unavailable.',+ cta: 'Try again',+ },+ server: {+ msg: "Couldn't load the leaderboard.",+ cta: 'Retry',+ },+ }[kind] || { msg: "Couldn't load the leaderboard.", cta: 'Retry' };+ lbRowsEl.innerHTML =+ `<div class="club-lb-empty club-lb-error">` ++ `<span>${copy.msg}</span>` ++ `<button type="button" class="club-lb-retry">${copy.cta}</button>` ++ `</div>`;+ lbRowsEl.querySelector('.club-lb-retry')?.addEventListener('click', () => {+ lbRowsEl.innerHTML = '<div class="club-lb-empty">Loading leaderboard…</div>';+ fetchLeaderboard();+ });+}+function renderLeaderboard(rows) {if (!lbRowsEl) return;if (!rows.length) {diff --git a/src/coin3d/main.js b/src/coin3d/main.jsindex aa06e25fe..10665cd65 100644--- a/src/coin3d/main.js+++ b/src/coin3d/main.js@@ -123,6 +123,16 @@ function ipfsToHttp(url) {return url;}+// If a gateway URL fails, the content is usually still pinned elsewhere — retry+// the same CID on a second gateway before degrading. Returns null when the URL+// isn't a known gateway URL (nothing useful to retry).+function altIpfsGateway(url) {+ if (typeof url !== 'string') return null;+ if (url.includes('ipfs.io/ipfs/')) return url.replace('ipfs.io/ipfs/', 'cloudflare-ipfs.com/ipfs/');+ if (url.includes('cloudflare-ipfs.com/ipfs/')) return url.replace('cloudflare-ipfs.com/ipfs/', 'ipfs.io/ipfs/');+ return null;+}+function numOrNull(v) {const n = Number(v);return Number.isFinite(n) ? n : null;@@ -231,18 +241,24 @@ function buildCoin(snapshot) {if (snapshot.image) {const loader = new TextureLoader();loader.setCrossOrigin('anonymous');- loader.load(- snapshot.image,- (tex) => {- tex.colorSpace = SRGBColorSpace;- const lit = new MeshStandardMaterial({ map: tex, metalness: 0.3, roughness: 0.55 });- coin.material = [rim, lit, lit];- },- undefined,- () => {- // Texture failed — keep the tinted disc; not an error worth blocking on.- },- );++ const applyTexture = (tex) => {+ tex.colorSpace = SRGBColorSpace;+ const lit = new MeshStandardMaterial({ map: tex, metalness: 0.3, roughness: 0.55 });+ coin.material = [rim, lit, lit];+ };++ const loadFrom = (src, allowRetry) => {+ loader.load(src, applyTexture, undefined, () => {+ // The primary gateway dropped the logo. The CID is usually pinned on+ // other gateways too, so retry once on an alternate before degrading+ // to the tinted disc.+ const alt = allowRetry ? altIpfsGateway(src) : null;+ if (alt) loadFrom(alt, false);+ });+ };++ loadFrom(snapshot.image, true);}}@@ -416,6 +432,7 @@ function renderHud(s) {<a class="hud-link" href="https://pump.fun/coin/${encodeURIComponent(s.mint)}" target="_blank" rel="noopener">pump.fun ↗</a><a class="hud-link" href="/launches">All launches →</a>${s.mint ? `<a class="hud-link" href="/communities/${encodeURIComponent(s.mint)}">3D world →</a>` : ''}+ <a class="hud-link" href="/launch">Launch your own →</a></div>`;if (s.mint) {@@ -438,7 +455,7 @@ function compact(n) {async function main() {if (!mint) {setStatus('empty', 'No token specified', 'Add ?mint=<address> to view a token in 3D.', {- href: '/demo/coin',+ href: '/launches',label: 'Browse coins',});return;@@ -450,7 +467,7 @@ async function main() {snapshot = await loadSnapshot();} catch (err) {setStatus('error', "Couldn't load this token", err.message, {- href: '/demo/coin',+ href: '/launches',label: 'Browse coins',});return;@@ -458,7 +475,7 @@ async function main() {if (snapshot.name === 'Unknown token' && !snapshot.image && !snapshot.holders.length) {setStatus('error', 'Token not found', `No on-chain data for ${mint}.`, {- href: '/demo/coin',+ href: '/launches',label: 'Browse coins',});return;diff --git a/src/constellation/main.js b/src/constellation/main.jsindex f73f83bf5..6b0df0e70 100644--- a/src/constellation/main.js+++ b/src/constellation/main.js@@ -390,7 +390,7 @@ async function runGraniteAnalysis(token, neighbors) {function graniteUnavailableNotice(code) {if (code === 'provider_not_configured') {- return '<div class="c-notice">IBM Granite isn\'t enabled on this deployment yet — set <code>WATSONX_API_KEY</code> to turn on live analysis. See the <a href="/ibm/galaxy">IBM Granite demos</a>.</div>';+ return '<div class="c-notice">IBM Granite isn\'t enabled on this deployment yet — set <code>WATSONX_API_KEY</code> to turn on live analysis. See the <a href="/galaxy">IBM Granite demos</a>.</div>';}if (code === 'rate_limited') {return '<div class="c-notice">Rate limit reached — wait a moment and click again.</div>';@@ -489,11 +489,11 @@ async function init() {setStatus('live', `Embedded by IBM Granite · <code>${escapeHtml(model || EMBED_MODEL_HINT)}</code> · ${dimensions || dim}d`);} catch (e) {if (e.code === 'embed_unconfigured') {- setStatus('off', 'IBM watsonx not configured — showing tokens by trending rank. <a href="/ibm/galaxy" style="color:var(--brand-blue-light)">Enable →</a>');+ setStatus('off', 'Semantic layout off — IBM watsonx isn\'t configured, so stars are placed by trending rank instead of meaning. <a href="/galaxy" style="color:var(--brand-blue-light)">Enable Granite →</a>');} else if (e.status === 404) {- setStatus('off', 'Granite embeddings endpoint not deployed yet — showing tokens by trending rank.');+ setStatus('off', 'Semantic layout off — the Granite embeddings endpoint isn\'t deployed yet, so stars are placed by trending rank.');} else {- setStatus('err', `Granite embeddings unavailable (${escapeHtml(e.code || e.message)}) — showing tokens by rank.`);+ setStatus('err', `Semantic layout off — Granite embeddings unavailable (${escapeHtml(e.code || e.message)}). Stars are placed by trending rank.`);}}}diff --git a/src/dashboard-next/pages/account.js b/src/dashboard-next/pages/account.jsindex ec605dc98..8279dadbb 100644--- a/src/dashboard-next/pages/account.js+++ b/src/dashboard-next/pages/account.js@@ -157,9 +157,10 @@ async function copyToClipboard(text) {<div class="dn-panel-title">Delegation</div><div class="dn-panel-sub" style="margin:0">Let one of your agents answer on behalf of another, or hand off to a partner agent.</div></div>- <a class="dn-btn" href="#delegation">Open delegation console →</a>+ <button class="dn-btn" type="button" data-action="open-delegation-console">Open delegation console →</button></div><div data-slot="delegation"><div class="dn-skeleton" style="height:80px"></div></div>+ <div data-slot="delegation-console" hidden></div></section><section class="dn-panel" data-section="actions">@@ -195,7 +196,24 @@ async function copyToClipboard(text) {const wallets = await loadWallets(walletsHost);renderSns(snsHost, wallets);- loadDelegations(delegationHost);++ const delegationConsoleHost = main.querySelector('[data-slot="delegation-console"]');+ const delegationSection = main.querySelector('#delegation');+ await loadDelegations(delegationHost, delegationConsoleHost);++ // "Open delegation console →" (section header) and per-agent "Configure →"+ // both open the real console below the table — no more dead self-anchors.+ delegationSection.addEventListener('click', (e) => {+ const opener = e.target.closest('[data-action="open-delegation-console"]');+ const configure = e.target.closest('[data-action="configure-delegation"]');+ if (!opener && !configure) return;+ e.preventDefault();+ openDelegationConsole(+ delegationConsoleHost,+ configure ? configure.getAttribute('data-agent-id') : null,+ );+ });+loadActions(actionsHost);main.querySelector('[data-action="export-csv"]').addEventListener('click', async (e) => {@@ -691,10 +709,16 @@ async function renderSns(host, wallets) {// ── Delegation ────────────────────────────────────────────────────────────-async function loadDelegations(host) {+// Agents available as delegation targets — captured on load so the console can+// build its picker without a second fetch.+let delegationAgents = [];++async function loadDelegations(host, consoleHost) {try {const r = await get('/api/agents');const agents = Array.isArray(r?.agents) ? r.agents : [];+ delegationAgents = agents;+ if (consoleHost) consoleHost.hidden = true;if (agents.length === 0) {host.innerHTML = `<div class="dn-empty" style="padding:32px 24px">@@ -715,7 +739,7 @@ async function loadDelegations(host) {${a.wallet_address ? `<span style="font-family:${MONO}">${esc(truncMid(a.wallet_address, 6, 6))}</span>` : '<span style="color:var(--nxt-ink-fade)">no delegate</span>'}</td><td style="padding:11px 12px;text-align:right">- <a class="dn-btn ghost" href="#delegation" style="padding:5px 10px;font-size:12px">Configure →</a>+ <button class="dn-btn ghost" type="button" data-action="configure-delegation" data-agent-id="${esc(a.id)}" style="padding:5px 10px;font-size:12px">Configure →</button></td></tr>`).join('');@@ -739,6 +763,102 @@ async function loadDelegations(host) {}}+// ── Delegation console ──────────────────────────────────────────────────────+// Real, working delegation: pick one of your agents, send it a prompt, and the+// platform runs a live LLM turn AS that agent (POST /api/agent-delegate) and+// streams the answer back here. Replaces the old dead `#delegation` anchors.++function openDelegationConsole(host, preselectAgentId) {+ if (!host) return;+ if (host.dataset.built !== '1') {+ const options = delegationAgents+ .map(+ (a) =>+ `<option value="${esc(a.id)}">${esc(a.name || a.display_name || 'Unnamed agent')}</option>`,+ )+ .join('');+ host.innerHTML = `+ <form data-deleg-form style="margin-top:14px;border:1px solid var(--nxt-stroke);border-radius:var(--nxt-radius-sm);padding:16px;display:flex;flex-direction:column;gap:12px">+ <div style="display:flex;flex-direction:column;gap:6px">+ <label style="font-size:11.5px;color:var(--nxt-ink-fade);text-transform:uppercase;letter-spacing:0.04em">Delegate to</label>+ <select data-deleg-agent class="dn-input" style="width:100%">${options}</select>+ </div>+ <div style="display:flex;flex-direction:column;gap:6px">+ <label style="font-size:11.5px;color:var(--nxt-ink-fade);text-transform:uppercase;letter-spacing:0.04em">Message</label>+ <textarea data-deleg-message class="dn-input" rows="3" maxlength="8000" placeholder="What should this agent answer on your behalf?" style="width:100%;resize:vertical;font-family:inherit"></textarea>+ </div>+ <div style="display:flex;gap:10px;align-items:center">+ <button class="dn-btn primary" type="submit" data-deleg-run>Run delegation</button>+ <button class="dn-btn ghost" type="button" data-deleg-close>Close</button>+ </div>+ <div data-deleg-result></div>+ </form>`;+ const form = host.querySelector('[data-deleg-form]');+ form.addEventListener('submit', (e) => {+ e.preventDefault();+ runDelegation(host);+ });+ host.querySelector('[data-deleg-close]').addEventListener('click', () => {+ host.hidden = true;+ });+ host.dataset.built = '1';+ }++ host.hidden = false;+ const select = host.querySelector('[data-deleg-agent]');+ if (preselectAgentId && select) select.value = preselectAgentId;+ host.scrollIntoView({ behavior: 'smooth', block: 'nearest' });+ host.querySelector('[data-deleg-message]')?.focus();+}++async function runDelegation(host) {+ const select = host.querySelector('[data-deleg-agent]');+ const messageEl = host.querySelector('[data-deleg-message]');+ const runBtn = host.querySelector('[data-deleg-run]');+ const result = host.querySelector('[data-deleg-result]');+ const toAgentId = select?.value;+ const message = (messageEl?.value || '').trim();++ if (!toAgentId) {+ result.innerHTML = `<div style="color:var(--nxt-danger,#ff8a8a);font-size:13px">Pick an agent to delegate to.</div>`;+ return;+ }+ if (!message) {+ result.innerHTML = `<div style="color:var(--nxt-danger,#ff8a8a);font-size:13px">Enter a message for the agent to answer.</div>`;+ messageEl?.focus();+ return;+ }++ runBtn.disabled = true;+ runBtn.textContent = 'Running…';+ result.innerHTML = `<div class="dn-skeleton" style="height:64px"></div>`;+ try {+ const out = await post('/api/agent-delegate', { toAgentId, message });+ result.innerHTML = `+ <div style="border:1px solid var(--nxt-stroke);border-radius:var(--nxt-radius-sm);padding:13px;background:rgba(255,255,255,0.02)">+ <div style="display:flex;justify-content:space-between;align-items:center;margin-bottom:8px">+ <span style="font-size:11.5px;color:var(--nxt-ink-fade);text-transform:uppercase;letter-spacing:0.04em">Response</span>+ ${out?.model ? `<span class="dn-tag" style="font-family:${MONO};font-size:11px">${esc(out.model)}</span>` : ''}+ </div>+ <div style="font-size:13.5px;color:var(--nxt-ink);line-height:1.6;white-space:pre-wrap">${esc(out?.response || '(empty response)')}</div>+ </div>`;+ } catch (err) {+ const status = err?.status;+ const msg =+ status === 429+ ? 'Delegation rate limit reached — wait a moment and try again.'+ : status === 404+ ? 'That agent could not be found. Pick another.'+ : status === 503+ ? 'Delegation is temporarily unavailable. Try again shortly.'+ : err?.message || 'Delegation failed. Try again.';+ result.innerHTML = `<div style="border:1px solid rgba(255,86,86,0.3);background:rgba(255,86,86,0.08);color:#ffb4b4;border-radius:var(--nxt-radius-sm);padding:12px;font-size:13px;line-height:1.5">${esc(msg)}</div>`;+ } finally {+ runBtn.disabled = false;+ runBtn.textContent = 'Run delegation';+ }+}+// ── Action log ────────────────────────────────────────────────────────────let actionsCursor = null;diff --git a/src/dashboard-next/pages/agents.js b/src/dashboard-next/pages/agents.jsindex 9521fe846..3cd340040 100644--- a/src/dashboard-next/pages/agents.js+++ b/src/dashboard-next/pages/agents.js@@ -701,7 +701,7 @@ function openCreateModal(host, agents, avatars) {const thumbEl = overlay.querySelector('[data-slot="avatar-thumb"]');const labelEl = overlay.querySelector('[data-slot="avatar-label"]');if (picked.thumbnail_url) {- thumbEl.innerHTML = `<img src="${esc(picked.thumbnail_url)}" style="width:100%;height:100%;object-fit:cover" />`;+ thumbEl.innerHTML = `<img src="${esc(picked.thumbnail_url)}" alt="${esc(picked.name || picked.id || 'Avatar')}" style="width:100%;height:100%;object-fit:cover" />`;}labelEl.textContent = picked.name || picked.id;}@@ -788,7 +788,7 @@ function openEditModal(host, agent, avatars, allAgents) {${(() => {const av = avatars.find((x) => x.id === currentAvatarId);return av?.thumbnail_url- ? `<img src="${esc(av.thumbnail_url)}" style="width:100%;height:100%;object-fit:cover" />`+ ? `<img src="${esc(av.thumbnail_url)}" alt="${esc(av.name || av.id || 'Avatar')}" style="width:100%;height:100%;object-fit:cover" />`: `<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round" style="color:var(--nxt-ink-dim)"><circle cx="12" cy="8" r="4"/><path d="M4 21c1.5-4.5 4.5-7 8-7s6.5 2.5 8 7"/></svg>`;})()}</span>@@ -840,7 +840,7 @@ function openEditModal(host, agent, avatars, allAgents) {const thumbEl = overlay.querySelector('[data-slot="avatar-thumb"]');const labelEl = overlay.querySelector('[data-slot="avatar-label"]');if (picked.thumbnail_url) {- thumbEl.innerHTML = `<img src="${esc(picked.thumbnail_url)}" style="width:100%;height:100%;object-fit:cover" />`;+ thumbEl.innerHTML = `<img src="${esc(picked.thumbnail_url)}" alt="${esc(picked.name || picked.id || 'Avatar')}" style="width:100%;height:100%;object-fit:cover" />`;}labelEl.textContent = picked.name || picked.id;}diff --git a/src/demo-economy.js b/src/demo-economy.jsindex 8d21e7d2e..64e0d668e 100644--- a/src/demo-economy.js+++ b/src/demo-economy.js@@ -301,8 +301,12 @@ function drawIdle(ctx, W, H, t) {ctx.restore();}-function drawBazaar(ctx, W, H, services, t) {- if (!services) return;+function drawBazaar(ctx, W, H, data, t) {+ if (!data) return;+ // Accept either a bare array (legacy) or { services, bazaarAvailable }.+ const list = Array.isArray(data) ? data : (data.services || []);+ const bazaarAvailable = Array.isArray(data) ? true : data.bazaarAvailable !== false;+ if (!list.length) return;ctx.save();ctx.textAlign = 'left';@@ -310,9 +314,14 @@ function drawBazaar(ctx, W, H, services, t) {ctx.fillStyle = '#4e8cff';ctx.font = 'bold 38px -apple-system,system-ui,sans-serif';ctx.fillText('x402 Bazaar', 60, 70);- ctx.fillStyle = 'rgba(255,255,255,0.3)';+ ctx.fillStyle = bazaarAvailable ? 'rgba(255,255,255,0.3)' : 'rgba(240,160,48,0.65)';ctx.font = '26px -apple-system,system-ui,sans-serif';- ctx.fillText('Available services · Coinbase network', 60, 110);+ ctx.fillText(+ bazaarAvailable+ ? 'Available services · Coinbase network'+ : 'Live bazaar unavailable · showing the three.ws service',+ 60, 110,+ );// Dividerctx.strokeStyle = 'rgba(78,140,255,0.3)';@@ -324,7 +333,7 @@ function drawBazaar(ctx, W, H, services, t) {// Service rowsconst rowH = 110;- (services || []).slice(0, 4).forEach((svc, i) => {+ list.slice(0, 4).forEach((svc, i) => {const y = 160 + i * rowH;const highlight = i === 0 && Math.sin(t * 3) > 0;diff --git a/src/fact-checker-app.js b/src/fact-checker-app.jsindex b7eaf6ed4..2cfe06e91 100644--- a/src/fact-checker-app.js+++ b/src/fact-checker-app.js@@ -32,7 +32,10 @@ function showOnly(panelId) {function setLoading(active) {const btn = el('check-btn');const status = el('loading-status');- if (btn) btn.disabled = active;+ if (btn) {+ btn.disabled = active;+ btn.setAttribute('aria-busy', String(active));+ }if (status) status.classList.toggle('active', active);}@@ -152,31 +155,35 @@ function renderResult(data) {// ── 402 Payment required ──────────────────────────────────────────────────────function renderPaymentRequired(responseData) {- const descEl = el('payment-desc');- if (descEl) {- const price = responseData?.priceUsdc || '$0.10';- descEl.textContent = `This endpoint costs ${price} per check. Connect your wallet to pay with USDC on Base or Solana.`;+ // Parse the per-network prices from the live 402 challenge. We never fall back+ // to a hardcoded number: if the challenge can't be read, the UI says so plainly+ // rather than quoting a possibly-stale price.+ const accepts = Array.isArray(responseData?.accepts) ? responseData.accepts : [];+ const baseEl = el('payment-price-base');+ const solEl = el('payment-price-sol');+ const UNAVAILABLE = 'price unavailable';++ let basePrice = null;+ let solPrice = null;+ for (const acc of accepts) {+ const atomics = parseInt(acc?.amount || '0', 10);+ if (!Number.isFinite(atomics) || atomics <= 0) continue;+ const usdc = `$${(atomics / 1_000_000).toFixed(2)}`;+ if (acc.network?.includes('8453') || acc.network === 'base') basePrice = usdc;+ if (acc.network?.includes('solana') || acc.network?.includes('5eykt')) solPrice = usdc;}- // Try to extract price from 402 body.- try {- const accepts = responseData?.accepts || [];- for (const acc of accepts) {- const atomics = parseInt(acc.amount || '0', 10);- if (atomics > 0) {- const usdc = (atomics / 1_000_000).toFixed(2);- if (acc.network?.includes('8453') || acc.network === 'base') {- const el2 = el('payment-price-base');- if (el2) el2.textContent = `$${usdc}`;- }- if (acc.network?.includes('solana') || acc.network?.includes('5eykt')) {- const el2 = el('payment-price-sol');- if (el2) el2.textContent = `$${usdc}`;- }- }- }- } catch {- // Best-effort.+ if (baseEl) baseEl.textContent = basePrice || UNAVAILABLE;+ if (solEl) solEl.textContent = solPrice || UNAVAILABLE;++ // A single authoritative price for the description: prefer the server's own+ // priceUsdc, else the lowest network quote we parsed, else admit it's unknown.+ const descEl = el('payment-desc');+ if (descEl) {+ const headline = responseData?.priceUsdc || basePrice || solPrice;+ descEl.textContent = headline+ ? `This endpoint costs ${headline} per check. Connect your wallet to pay with USDC on Base or Solana.`+ : 'This endpoint requires a USDC payment per check, but the live price could not be read just now. Connect your wallet to pay with USDC on Base or Solana — the exact amount is confirmed in your wallet before you sign.';}showOnly('payment-panel');@@ -186,7 +193,7 @@ function renderPaymentRequired(responseData) {async function runCheck(claim, strictness) {setLoading(true);- updateLoadingStatus('Submitting claim...');+ updateLoadingStatus('Checking — searching sources and weighing evidence…');showOnly('skeleton');try {@@ -215,7 +222,7 @@ async function runCheck(claim, strictness) {errBody = null;}showError(- errBody?.error || errBody?.message || `HTTP ${res.status} error`,+ errBody?.error || errBody?.message || friendlyHttpError(res.status),errBody?.code || `http_${res.status}`,);return;@@ -254,33 +261,30 @@ function updateCharCounter(len) {// ── Loading status text ───────────────────────────────────────────────────────-const LOADING_STAGES = [- 'Generating search queries...',- 'Searching web sources...',- 'Analyzing evidence...',- 'Computing verdict...',-];-let loadingStageIdx = 0;-let loadingInterval = null;-+// The /api/x402/fact-check endpoint returns a single JSON response — it does not+// stream per-stage progress. So we show one honest indicator for the whole wait+// rather than inventing timed "stages" that bear no relation to the backend.function updateLoadingStatus(text) {const el2 = el('loading-status');if (!el2) return;- if (!text) {- clearInterval(loadingInterval);- loadingInterval = null;- el2.textContent = '';- return;- }- el2.textContent = text;- if (text === 'Submitting claim...') {- // Cycle through stages automatically.- loadingStageIdx = 0;- clearInterval(loadingInterval);- loadingInterval = setInterval(() => {- loadingStageIdx = (loadingStageIdx + 1) % LOADING_STAGES.length;- el2.textContent = LOADING_STAGES[loadingStageIdx];- }, 2000);+ el2.textContent = text || '';+}++// ── HTTP status → friendly copy ────────────────────────────────────────────────++function friendlyHttpError(status) {+ switch (status) {+ case 429:+ return 'Too many checks right now. Wait a moment and try again.';+ case 500:+ return 'The fact-checker hit an internal error. Please try again.';+ case 502:+ case 503:+ return 'The fact-checker is temporarily unavailable. Please try again in a few seconds.';+ case 504:+ return 'The check took too long to respond. Please try again.';+ default:+ return `The request failed (HTTP ${status}). Please try again.`;}}diff --git a/src/leaderboard.js b/src/leaderboard.jsindex 04047b6f4..37b540e18 100644--- a/src/leaderboard.js+++ b/src/leaderboard.js@@ -23,6 +23,34 @@ const $ = (sel, root = document) => root.querySelector(sel);const state = { network: 'mainnet', window: '30d', sort: 'score', verified: false };let timer = null;let firstLoad = true;+let staleBadgeEl = null;++// Stale / reconnecting indicator — surfaced when a background refresh fails+// while a previously-loaded board is still on screen, so holders know the+// numbers may be momentarily out of date instead of silently trusting them.+function ensureStaleBadge() {+ if (staleBadgeEl) return staleBadgeEl;+ const board = $('.lb-board');+ if (!board) return null;+ const badge = document.createElement('div');+ badge.className = 'lb-stale-badge';+ badge.hidden = true;+ badge.setAttribute('role', 'status');+ badge.setAttribute('aria-live', 'polite');+ badge.innerHTML = '<span class="lb-stale-dot" aria-hidden="true"></span><span class="lb-stale-text">Reconnecting — showing last known standings</span>';+ board.parentNode.insertBefore(badge, board);+ staleBadgeEl = badge;+ return badge;+}++function showStale() {+ const badge = ensureStaleBadge();+ if (badge) badge.hidden = false;+}++function clearStale() {+ if (staleBadgeEl) staleBadgeEl.hidden = true;+}// --- URL <-> state -----------------------------------------------------------function readUrl() {@@ -62,8 +90,15 @@ function rowMarkup(r) {const dd = r.max_drawdown_pct > 0? `<span class="lb-neg">−${r.max_drawdown_pct.toFixed(1)}%</span>` : '<span class="lb-muted">0%</span>';const scoreBar = Math.max(4, Math.min(100, r.score));+ const rowLabel = [+ `Rank ${r.rank}`,+ r.agent_name || 'Unnamed agent',+ r.wallet ? `wallet ${shortAddr(r.wallet)}` : '',+ `score ${r.score}`,+ `realized P&L ${fmtSol(r.realized_pnl_sol)}`,+ ].filter(Boolean).join(', ');return `- <a class="lb-row" href="${href}" data-top="${r.rank <= 3 ? r.rank : ''}" aria-label="${escapeHtml(r.agent_name || 'Trader')}, rank ${r.rank}, score ${r.score}">+ <a class="lb-row" href="${href}" data-top="${r.rank <= 3 ? r.rank : ''}" aria-label="${escapeHtml(rowLabel)}"><span class="lb-rank">${r.rank}</span><span class="lb-trader"><img class="lb-avatar" src="${escapeHtml(img)}" alt="" loading="lazy" onerror="this.src='${identicon(r.agent_id || r.wallet || '?')}'" />@@ -145,6 +180,7 @@ async function load() {renderBoard(data);renderTicker(data.trades);firstLoad = false;+ clearStale();} catch (err) {board.setAttribute('aria-busy', 'false');if (firstLoad) {@@ -154,8 +190,11 @@ async function load() {<p>The track-record feed didn’t respond. This is usually transient.</p><button class="lb-btn lb-btn-primary" id="lb-retry">Retry</button>`;$('#lb-retry')?.addEventListener('click', () => load());+ } else {+ // On a refresh failure we keep the last good board on screen — no+ // flicker — but flag it as stale so the standings aren't trusted blindly.+ showStale();}- // On a refresh failure we keep the last good board on screen — no flicker.}}@@ -302,14 +341,18 @@ async function loadOracleLeaderboard() {row.className = 'lb-oracle-row';row.setAttribute('data-rank', String(a.rank));const traderHref = `/trader/${encodeURIComponent(a.agent_id)}`;+ const profileHref = `/agents/${encodeURIComponent(a.agent_id)}`;+ const plainName = a.name || `${a.agent_id.slice(0, 8)}…`;+ const wrText = a.win_rate != null ? `${a.win_rate}% conviction win rate` : 'win rate pending';+ row.setAttribute('aria-label', `Rank ${a.rank}: ${plainName}, ${wrText}`);row.innerHTML = `<span class="lb-rank">${a.rank}</span>- <a class="lb-trader lb-oracle-trader-link" href="${traderHref}">${img}<span class="lb-trader-meta"><span class="lb-trader-name">${name}</span></span></a>+ <a class="lb-trader lb-oracle-trader-link" href="${profileHref}">${img}<span class="lb-trader-meta"><span class="lb-trader-name">${name}</span></span></a><span class="lb-col-num">${wr}</span><span class="lb-col-num lb-neg" style="font-size:12px;color:var(--ink-dim)">${wl}</span><span class="lb-col-num lb-hide-sm">${pnl}</span><span class="lb-col-num lb-hide-sm">${roi}</span>- <span class="lb-col-num"><a class="lb-btn lb-btn-primary" href="${traderHref}#tp-copy-panel" style="font-size:11px;padding:4px 11px">Copy →</a></span>+ <span class="lb-col-num"><span class="lb-oracle-actions"><a class="lb-btn" href="${profileHref}" style="font-size:11px;padding:4px 10px" aria-label="Open ${escapeHtml(plainName)} profile">Profile</a><a class="lb-btn lb-btn-primary" href="${traderHref}#tp-copy-panel" style="font-size:11px;padding:4px 11px" aria-label="Copy ${escapeHtml(plainName)}">Copy →</a></span></span>`;container.appendChild(row);}diff --git a/src/marketplace-analytics.js b/src/marketplace-analytics.jsindex fbdcd3ec4..3cbbbd1c3 100644--- a/src/marketplace-analytics.js+++ b/src/marketplace-analytics.js@@ -107,8 +107,13 @@ async function load() {const errorEl = document.getElementById('an-error');const canvas = document.getElementById('volume-chart');- const res = await fetch('/api/marketplace/analytics');- if (!res.ok) {+ let res;+ try {+ res = await fetch('/api/marketplace/analytics');+ } catch {+ res = null;+ }+ if (!res || !res.ok) {errorEl.textContent = 'Failed to load analytics. Please refresh.';errorEl.hidden = false;statsGrid.innerHTML = '';@@ -179,4 +184,14 @@ async function load() {}}-load();+load().catch(() => {+ const errorEl = document.getElementById('an-error');+ if (errorEl) {+ errorEl.textContent = 'Failed to load analytics. Please refresh.';+ errorEl.hidden = false;+ }+ ['stats-grid', 'top-skills-list', 'top-agents-list'].forEach((id) => {+ const el = document.getElementById(id);+ if (el) el.innerHTML = '';+ });+});diff --git a/src/oracle.js b/src/oracle.jsindex 71f23750b..61fdd815c 100644--- a/src/oracle.js+++ b/src/oracle.js@@ -163,8 +163,9 @@ function boot() {const TCOL = { prime: '#c084fc', strong: '#34d399', lean: '#fbbf24', watch: '#94a3b8', avoid: '#f87171' };_searchDrop.innerHTML = items.map((it) => {const col = TCOL[it.tier] || '#94a3b8';- return `<button class="ms-item" data-mint="${esc(it.mint)}" type="button">- <span class="ms-sym">${esc(it.symbol || it.name || it.mint.slice(0, 8))}</span>+ const label = it.symbol || it.name || it.mint.slice(0, 8);+ return `<button class="ms-item" data-mint="${esc(it.mint)}" type="button" aria-label="View ${esc(label)} conviction">+ <span class="ms-sym">${esc(label)}</span><span class="ms-tier" style="color:${col}">${esc(it.tier || '')}${it.score != null ? ` ${it.score}` : ''}</span></button>`;}).join('');@@ -339,7 +340,14 @@ async function loadGraph() {graphHandle = mountOracleGraph(canvas, labels);graphHandle.loadCoins(coins);} catch (err) {- if (stateEl) stateEl.textContent = `Graph failed to load: ${err.message}`;+ if (stateEl) {+ stateEl.innerHTML = `<div class="state" style="padding:0"><b>Graph failed to load</b>${esc(err.message || 'The conviction data could not be reached. This is usually temporary.')}<div style="margin-top:14px"><button class="btn" type="button" id="ogRetry">Retry now</button></div></div>`;+ $('#ogRetry')?.addEventListener('click', () => {+ canvas.dataset.loaded = '';+ stateEl.textContent = '';+ loadGraph();+ });+ }}}@@ -385,11 +393,36 @@ function renderFeed() {}function renderFeedEmpty(kind) {- const msg = kind === 'warming'- ? { b: 'Oracle is warming up', p: 'The conviction engine ships with its backend — once the ingestion augmentor is live it scores every new pump.fun launch in real time. Check back shortly.' }- : { b: 'No launches clear this filter yet', p: 'Loosen the tier or score filter, or wait for the next wave — new coins are scored the moment they surface.' };- $('#feedGrid').innerHTML = `<div class="state" style="grid-column:1/-1"><b>${msg.b}</b>${esc(msg.p)}</div>`;+ const grid = $('#feedGrid');$('#ctFeed').textContent = '';++ if (kind === 'warming') {+ grid.innerHTML = `<div class="state" style="grid-column:1/-1"><b>Oracle is warming up</b>The conviction engine ships with its backend — once the ingestion augmentor is live it scores every new pump.fun launch in real time. Check back shortly.</div>`;+ return;+ }++ // kind === 'empty' — the feed loaded, but nothing rendered. Distinguish+ // "no scored coins anywhere yet" from "your filters excluded everything".+ const hasFilters = !!(state.tier || state.category || state.minScore);+ if (!hasFilters) {+ grid.innerHTML = `<div class="state" style="grid-column:1/-1"><b>No launches scored yet</b>Oracle hasn't surfaced any conviction-scored coins in this window. New launches are scored the moment they hit pump.fun — they'll appear here automatically, no reload needed.</div>`;+ return;+ }++ grid.innerHTML = `<div class="state" style="grid-column:1/-1"><b>No launches clear your filters</b>There are scored coins, but none pass your current tier, narrative, or minimum-score filters. Loosen them to see more.<div style="margin-top:14px"><button class="btn" type="button" id="feedReset">Reset filters</button></div></div>`;+ $('#feedReset')?.addEventListener('click', resetFeedFilters);+}++function resetFeedFilters() {+ state.tier = '';+ state.category = '';+ state.minScore = 0;+ $$('#tierSeg button').forEach((x) => x.classList.toggle('on', x.dataset.tier === ''));+ const catSel = $('#catSel'); if (catSel) catSel.value = '';+ const minSel = $('#minSel'); if (minSel) minSel.value = '0';+ $$('#hotSectors .hs-card').forEach((c) => c.classList.remove('active'));+ syncFilterUrl();+ loadFeed();}// ── hot sectors ───────────────────────────────────────────────────────────────@@ -458,6 +491,8 @@ function coinCard(it, watched = new Set()) {const btn = document.createElement('button');btn.className = `coin ${tierClass(it.tier)}`;btn.dataset.mint = it.mint;+ btn.type = 'button';+ btn.setAttribute('aria-label', `View ${it.symbol || it.name || it.mint.slice(0, 8)} conviction — score ${it.score}, ${it.tier || 'unrated'} tier`);btn.innerHTML = `<div class="coin-top">${it.image_uri@@ -580,9 +615,23 @@ async function loadWallets() {if (state.label) q.set('label', state.label);const { ok, data } = await api(`/api/oracle/wallet?${q}`);wrap.dataset.loaded = '1';- if (!ok || !data || !(data.items || []).length) {- wrap.innerHTML = `<div class="state"><b>No wallets ranked yet</b>The reputation graph fills in as coins resolve to outcomes. Once the brain has judged enough launches, the proven money surfaces here.</div>`;+ if (!ok) {+ wrap.innerHTML = `<div class="state"><b>Could not reach the reputation graph</b>The wallet leaderboard did not respond — this is usually temporary. The engine or network may be momentarily unavailable.<div style="margin-top:14px"><button class="btn" type="button" id="walletRetry">Retry now</button></div></div>`;$('#ctWallets').textContent = '';+ $('#walletRetry')?.addEventListener('click', () => loadWallets());+ return;+ }+ if (!data || !(data.items || []).length) {+ const filtered = !!state.label;+ wrap.innerHTML = filtered+ ? `<div class="state"><b>No wallets match this label</b>No wallets carry the <b>${esc(state.label.replace('_', ' '))}</b> label yet. Switch back to <b>All</b> to see every ranked wallet.<div style="margin-top:14px"><button class="btn" type="button" id="walletReset">Show all wallets</button></div></div>`+ : `<div class="state"><b>No wallets ranked yet</b>The reputation graph fills in as coins resolve to outcomes. Once the brain has judged enough launches, the proven money surfaces here.</div>`;+ $('#ctWallets').textContent = '';+ $('#walletReset')?.addEventListener('click', () => {+ state.label = '';+ $$('#labelSeg button').forEach((x) => x.classList.toggle('on', x.dataset.label === ''));+ loadWallets();+ });return;}$('#ctWallets').textContent = data.items.length;@@ -817,7 +866,7 @@ function afSkeletons(n) {function afTableHtml(items) {return `<div class="af-outer"><table class="af-table"><thead><tr>- <th>Agent</th><th>Coin</th><th>Tier</th><th>Score</th><th>Size ◎</th><th>Mode</th><th>Outcome</th><th>PnL ◎</th><th>When</th>+ <th scope="col">Agent</th><th scope="col">Coin</th><th scope="col">Tier</th><th scope="col">Score</th><th scope="col">Size ◎</th><th scope="col">Mode</th><th scope="col">Outcome</th><th scope="col">PnL ◎</th><th scope="col">When</th></tr></thead><tbody>${items.map(afRow).join('')}</tbody></table></div>`;}@@ -1209,6 +1258,7 @@ function renderDrawer(d) {<a class="dr-act" href="${pumpUrl(c.mint)}" target="_blank" rel="noopener">pump.fun ↗</a><a class="dr-act" href="${solscan(c.mint)}" target="_blank" rel="noopener">solscan ↗</a><a class="dr-act" href="/launches/${esc(c.mint)}" target="_blank" rel="noopener">Details ↗</a>+ <a class="dr-act" href="/coin3d?mint=${encodeURIComponent(c.mint)}" target="_blank" rel="noopener" title="Open the full 3D coin profile">View in 3D ↗</a><button class="dr-act dr-watch" id="drWatch" data-mint="${esc(c.mint)}" type="button" aria-pressed="${watchedMints().has(c.mint)}">${watchedMints().has(c.mint) ? '★ Watching' : '☆ Watch'}</button><button class="dr-act" id="drCopyMint" type="button" title="Copy mint address" data-mint="${esc(c.mint)}">Copy mint</button><button class="dr-act" id="drCopyLink" type="button" title="Copy shareable link" data-link="${esc(coinShareUrl(c.mint))}">Copy link</button>@@ -1756,8 +1806,8 @@ async function loadActions(agentId) {<div class="act-wrap"><table class="act-table"><thead><tr>- <th>Coin</th><th>Tier</th><th>Conv.</th>- <th>Size</th><th>Outcome</th><th>PnL</th><th>When</th>+ <th scope="col">Coin</th><th scope="col">Tier</th><th scope="col">Conv.</th>+ <th scope="col">Size</th><th scope="col">Outcome</th><th scope="col">PnL</th><th scope="col">When</th></tr></thead><tbody>${rows}</tbody></table>diff --git a/src/play/arena.js b/src/play/arena.jsindex cb091b8f3..820d4d2f2 100644--- a/src/play/arena.js+++ b/src/play/arena.js@@ -176,12 +176,16 @@ function arenaPositions(n) {let es = null;function connectStream() {es = new EventSource(`/api/sniper/stream?network=${NETWORK}`);- es.addEventListener('open', () => setLive(true));+ es.addEventListener('open', () => { setLive(true); refreshTapeEmpty(); });es.addEventListener('buy', (m) => safe(() => onBuy(JSON.parse(m.data))));es.addEventListener('sell', (m) => safe(() => onSell(JSON.parse(m.data))));- es.addEventListener('update', () => {});- es.onerror = () => { setLive(false); try { es.close(); } catch { /* already closed */ } setTimeout(connectStream, 2500); };+ // A bare 'update' nudge means standings shifted (open P&L, rank, new agent)+ // without a discrete buy/sell — refresh the board, debounced so a burst of+ // nudges collapses into one fetch.+ es.addEventListener('update', () => { clearTimeout(_boardDebounce); _boardDebounce = setTimeout(loadBoardOnly, 1200); });+ es.onerror = () => { setLive(false); refreshTapeEmpty(); try { es.close(); } catch { /* already closed */ } setTimeout(connectStream, 2500); };}+let _boardDebounce = null;const safe = (fn) => { try { fn(); } catch { /* one bad frame never breaks the stream */ } };function onBuy(p) {@@ -436,10 +440,15 @@ function renderBoard(rows) {body.innerHTML = rows.slice(0, 12).map((r) => {const wr = r.closed ? Math.round((r.wins / r.closed) * 100) : 0;const up = (r.realized_pnl_sol ?? 0) >= 0;+ const name = r.agent_name || 'Agent';+ const initial = esc((name.trim()[0] || '?').toUpperCase());+ // On a broken avatar, swap the <img> for a mono-initial tile that fills the+ // same 26px column — no orphaned gap in the grid.+ const onerr = `this.outerHTML='<span class="r-av r-av-fb">${initial}</span>'`;return `<button class="row no-orbit" data-id="${esc(r.agent_id)}"><span class="r-rank">${r.rank}</span>- <img class="r-av" src="${esc(r.image || '/avatars/thumbs/default.png')}" alt="" onerror="this.style.visibility='hidden'"/>- <span class="r-name">${esc(r.agent_name || 'Agent')}<small>${r.open_positions} open · ${r.closed ? wr + '% win' : 'new'}</small></span>+ <img class="r-av" src="${esc(r.image || '/avatars/thumbs/default.png')}" alt="" onerror="${onerr}"/>+ <span class="r-name">${esc(name)}<small>${r.open_positions} open · ${r.closed ? wr + '% win' : 'new'}</small></span><span class="r-pnl ${up ? 'up' : 'down'}">${fmtSol(r.realized_pnl_sol)}</span></button>`;}).join('');@@ -493,11 +502,24 @@ function bigWinBanner(p) {// ── status / states ─────────────────────────────────────────────────────────────+let _streamLive = false;function setLive(on) {+ _streamLive = on;const dot = $('liveDot');dot.classList.toggle('on', on);dot.querySelector('span').textContent = on ? 'live' : 'reconnecting…';}++// Keep the live-tape empty state honest: when no trade has streamed yet, the copy+// must distinguish "stream up, awaiting the next trade" from "stream down,+// reconnecting". Once a real trade lands, pushTape() removes the placeholder for+// good and this is a no-op.+function refreshTapeEmpty() {+ const ph = $('tapeEmpty');+ if (!ph) return;+ ph.textContent = _streamLive ? 'Waiting for the next trade…' : 'Reconnecting to trade stream…';+ ph.classList.toggle('reconnecting', !_streamLive);+}function setLoading(text) {const el = $('loading');if (!el) return;@@ -520,11 +542,48 @@ function mountControls() {}let pickerLoaded = false;+let pickerReturnFocus = null;function openPicker() {- $('picker').classList.add('open');+ const picker = $('picker');+ if (picker.classList.contains('open')) return;+ pickerReturnFocus = document.activeElement;+ picker.classList.add('open');+ picker.addEventListener('keydown', trapPickerFocus);if (!pickerLoaded) { pickerLoaded = true; renderPicker(); }+ // Move focus into the dialog — first selectable tile if present, else the+ // close button — so keyboard users land inside the modal, not behind it.+ requestAnimationFrame(() => {+ const first = $('pickGrid')?.querySelector('.pick-tile') || $('pickClose');+ first?.focus();+ });+}+function closePicker() {+ const picker = $('picker');+ if (!picker.classList.contains('open')) return;+ picker.classList.remove('open');+ picker.removeEventListener('keydown', trapPickerFocus);+ // Restore focus to whatever opened the picker (the avatar button / empty CTA).+ if (pickerReturnFocus && document.contains(pickerReturnFocus)) pickerReturnFocus.focus();+ pickerReturnFocus = null;+}++// Trap Tab / Shift+Tab inside the open dialog so focus can't escape behind it.+function trapPickerFocus(e) {+ if (e.key !== 'Tab') return;+ const modal = $('picker').querySelector('.pick-modal');+ const focusables = modal.querySelectorAll(+ 'button:not([disabled]), a[href], [tabindex]:not([tabindex="-1"])'+ );+ if (!focusables.length) return;+ const first = focusables[0];+ const last = focusables[focusables.length - 1];+ const active = document.activeElement;+ if (e.shiftKey && (active === first || !modal.contains(active))) {+ e.preventDefault(); last.focus();+ } else if (!e.shiftKey && active === last) {+ e.preventDefault(); first.focus();+ }}-function closePicker() { $('picker').classList.remove('open'); }async function renderPicker() {const grid = $('pickGrid');diff --git a/src/selfie-modal.js b/src/selfie-modal.jsindex 925ebeb28..4bf5518e2 100644--- a/src/selfie-modal.js+++ b/src/selfie-modal.js@@ -107,7 +107,7 @@ class SelfieModal {<div class="sfm-stage" data-sfm-stage><video class="sfm-video" data-sfm-video autoplay playsinline muted></video><canvas class="sfm-canvas" data-sfm-canvas></canvas>- <img class="sfm-preview-img" data-sfm-preview hidden />+ <img class="sfm-preview-img" data-sfm-preview alt="Captured selfie preview" hidden /><div class="sfm-badges" data-sfm-badges></div><div class="sfm-hint" data-sfm-hint>Loading face mesh...</div></div>diff --git a/src/shopper-app.js b/src/shopper-app.jsindex b435e0cc3..3dfab48ed 100644--- a/src/shopper-app.js+++ b/src/shopper-app.js@@ -15,6 +15,10 @@ const ACTION_LABELS = {synthesize: 'Synthesize',};+// The agent charges a $0.01 base fee and spends up to the budget on downstream+// calls, so a budget below the base fee can't fund a single paid step.+const MIN_BUDGET_USD = 0.01;+export function init() {const taskInput = document.getElementById('task-input');const runBtn = document.getElementById('run-btn');@@ -22,31 +26,57 @@ export function init() {const budgetDisplay = document.getElementById('budget-display');const resultPanel = document.getElementById('result-panel');const chipRow = document.getElementById('chip-row');+ const runHint = document.getElementById('run-hint');if (!taskInput || !runBtn || !resultPanel) return;+ // Gate the CTA on a non-empty task and a fundable budget. Distinct hints+ // tell the user exactly which precondition is unmet before they pay.+ function refreshGate() {+ const task = taskInput.value.trim();+ const budget = parseFloat(budgetSlider.value);+ let reason = '';++ if (!task) {+ reason = 'Describe a task to run.';+ } else if (!(budget >= MIN_BUDGET_USD)) {+ reason = `Raise the budget to at least $${MIN_BUDGET_USD.toFixed(2)} — the agent can't fund a paid call below that.`;+ }++ runBtn.disabled = !!reason;+ if (runHint) {+ runHint.textContent = reason;+ runHint.classList.toggle('warn', !!reason);+ }+ return !reason;+ }+// Budget sliderbudgetSlider.addEventListener('input', () => {budgetDisplay.textContent = `$${parseFloat(budgetSlider.value).toFixed(2)}`;+ refreshGate();});+ taskInput.addEventListener('input', refreshGate);+// Example task chipschipRow.addEventListener('click', (e) => {const chip = e.target.closest('.chip');if (!chip) return;taskInput.value = chip.dataset.task || '';taskInput.focus();+ refreshGate();});// Form submitrunBtn.addEventListener('click', () => {- const task = taskInput.value.trim();- if (!task) {+ if (!refreshGate()) {taskInput.focus();return;}+ const task = taskInput.value.trim();const maxCostUsd = parseFloat(budgetSlider.value) || 0.5;- runTask({ task, maxCostUsd, resultPanel, runBtn });+ runTask({ task, maxCostUsd, resultPanel, runBtn, refreshGate });});taskInput.addEventListener('keydown', (e) => {@@ -54,9 +84,12 @@ export function init() {runBtn.click();}});++ // Establish the initial gate state (empty task → disabled, hint shown).+ refreshGate();}-async function runTask({ task, maxCostUsd, resultPanel, runBtn }) {+async function runTask({ task, maxCostUsd, resultPanel, runBtn, refreshGate }) {runBtn.disabled = true;runBtn.textContent = 'Running…';@@ -76,9 +109,24 @@ async function runTask({ task, maxCostUsd, resultPanel, runBtn }) {return;}+ if (res.status === 400) {+ const body = await res.json().catch(() => ({}));+ showError(+ resultPanel,+ body.error || body.message || 'That task or budget was rejected. Adjust your inputs and try again.',+ );+ return;+ }+if (!res.ok) {const body = await res.json().catch(() => ({ error: `HTTP ${res.status}` }));- showError(resultPanel, body.error || body.message || `HTTP ${res.status}`);+ const isServer = res.status >= 500;+ showError(+ resultPanel,+ body.error || body.message || (isServer+ ? 'The agent service is temporarily unavailable. Please try again in a moment.'+ : `Request failed (HTTP ${res.status}).`),+ );return;}@@ -87,9 +135,11 @@ async function runTask({ task, maxCostUsd, resultPanel, runBtn }) {showError(resultPanel, err.message || 'Network error — please try again');return;} finally {- runBtn.disabled = false;runBtn.innerHTML ='<svg width="14" height="14" fill="none" viewBox="0 0 14 14"><path d="M3 2l9 5-9 5V2z" fill="currentColor"/></svg> Run Task';+ // Re-evaluate preconditions so the CTA only re-enables when valid.+ if (typeof refreshGate === 'function') refreshGate();+ else runBtn.disabled = false;}renderResults(resultPanel, data, task);@@ -109,22 +159,43 @@ function showError(panel, message) {panel.innerHTML = `<div class="error-card"><p>${escHtml(message)}</p>- <button class="btn" onclick="location.reload()">Retry</button>+ <button class="btn" type="button" id="error-retry">Run again</button></div>`;+ const retry = panel.querySelector('#error-retry');+ if (retry) {+ retry.addEventListener('click', () => {+ // Keep the user's task and budget; just re-trigger the run.+ const runBtn = document.getElementById('run-btn');+ if (runBtn && !runBtn.disabled) runBtn.click();+ else document.getElementById('task-input')?.focus();+ });+ }}function showPaywallPrompt(panel, body, paymentRequiredHeader) {- const reqParam = paymentRequiredHeader- ? encodeURIComponent(paymentRequiredHeader)- : '';- const paywallUrl = reqParam ? `/paywall.html?req=${reqParam}&return=${encodeURIComponent(location.pathname)}` : '/paywall.html';+ // The payment challenge can arrive in the `payment-required` header or, on+ // proxies that strip it, inside the 402 JSON body. Fall back to the body+ // (and finally to a bare paywall) so the Pay button always works.+ const challenge = paymentRequiredHeader+ || body?.paymentRequired+ || body?.payment_required+ || (body?.accepts ? JSON.stringify(body) : '');++ const reqParam = challenge ? encodeURIComponent(challenge) : '';+ const ret = encodeURIComponent(location.pathname);+ const paywallUrl = reqParam+ ? `/paywall.html?req=${reqParam}&return=${ret}`+ : `/paywall.html?return=${ret}`;++ const detail = body?.error || body?.message+ || 'This endpoint costs USDC on Base or Solana. Use a wallet to pay and unlock the result.';panel.innerHTML = `<div class="error-card" style="border-color: rgba(255,180,0,0.3)"><p style="color:#e6a820">Payment required to use the Endpoint Shopper agent.</p><p style="color:var(--text-3); font-size:13.5px; margin:0 0 14px">- This endpoint costs USDC on Base or Solana. Use a wallet to pay and unlock the result.+ ${escHtml(detail)}</p><a class="btn primary" href="${paywallUrl}">Pay with Wallet</a></div>diff --git a/src/three-economy.js b/src/three-economy.jsindex 9c7e543d1..0c8b7d67f 100644--- a/src/three-economy.js+++ b/src/three-economy.js@@ -897,8 +897,8 @@ function shell() {<div class="hs-lbl">returned to holders & counting · 0 burned</div></div><div class="ec-cta">- <a class="ec-btn primary" href="/three-token">Get $THREE</a>- <a class="ec-btn" href="#tiers">See holder tiers</a>+ <a class="ec-btn primary" href="/three-token" aria-label="Get $THREE — open the token page to buy">Get $THREE</a>+ <a class="ec-btn" href="#tiers" aria-label="Jump to the holder tiers section below">See holder tiers</a></div></header>@@ -1197,47 +1197,89 @@ async function load(root) {.catch(() => {});// Stats drive the flow viz, the stat band, on-chain wallets, reflections + projector.- getJSON(`${API}/stats`)- .then((s) => {- const band = document.getElementById('ec-stats');- if (band) {- band.innerHTML = statCards(s)- .map(- (c) =>- `<div class="ec-stat" style="--accent:${c.accent}"><div class="v" style="--accent:${c.accent}"><span data-roll>0</span>${c.sym ? '<span class="sym">$THREE</span>' : ''}</div><div class="k">${esc(c.k)}</div></div>`,- )- .join('');- const cards = statCards(s);- band.querySelectorAll('[data-roll]').forEach((el, i) => {- rollup(el, cards[i].v, cards[i].sym ? fmtCompact : (n) => Math.round(n).toLocaleString('en-US'));- });- }- // Hero north-star metric: total $THREE returned to holders.- const heroEl = document.querySelector('#ec-hero-stat [data-roll]');- if (heroEl) {- const dec = s?.token?.decimals ?? 6;- rollup(heroEl, atomicsToTokens(s?.reflected?.total_atomics ?? '0', dec), fmtCompact, 1400);- }- const oc = document.getElementById('ec-onchain');- if (oc) oc.innerHTML = onchainHTML(s);- const rf = document.getElementById('ec-reflected');- if (rf) {- rf.innerHTML = reflectedHTML(s);- wireProjector(s);- }- // Trust stamp: when the data is from and where it comes from.- const stamp = document.getElementById('ec-stamp');- if (stamp) {- const when = new Date().toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' });- stamp.textContent = `Updated ${when} · source: Solana RPC + settle ledger`;- }- if (window._ecFlow) window._ecFlow.seed(s);- })- .catch(() => {- setErr('ec-stats', 'Economy stats are temporarily unavailable.');- setErr('ec-onchain', 'On-chain data is temporarily unavailable.');- setErr('ec-reflected', 'Reflection history is temporarily unavailable.');- });+ // Wrapped so a failed first load renders a designed "live figures unavailable" notice+ // with a working Retry — never a silent page stuck on "—" placeholders.+ function renderStats(s) {+ const band = document.getElementById('ec-stats');+ if (band) {+ band.innerHTML = statCards(s)+ .map(+ (c) =>+ `<div class="ec-stat" style="--accent:${c.accent}"><div class="v" style="--accent:${c.accent}"><span data-roll>0</span>${c.sym ? '<span class="sym">$THREE</span>' : ''}</div><div class="k">${esc(c.k)}</div></div>`,+ )+ .join('');+ const cards = statCards(s);+ band.querySelectorAll('[data-roll]').forEach((el, i) => {+ rollup(el, cards[i].v, cards[i].sym ? fmtCompact : (n) => Math.round(n).toLocaleString('en-US'));+ });+ }+ // Hero north-star metric: total $THREE returned to holders.+ const heroEl = document.querySelector('#ec-hero-stat [data-roll]');+ if (heroEl) {+ const dec = s?.token?.decimals ?? 6;+ rollup(heroEl, atomicsToTokens(s?.reflected?.total_atomics ?? '0', dec), fmtCompact, 1400);+ }+ const oc = document.getElementById('ec-onchain');+ if (oc) oc.innerHTML = onchainHTML(s);+ const rf = document.getElementById('ec-reflected');+ if (rf) {+ rf.innerHTML = reflectedHTML(s);+ wireProjector(s);+ }+ // Trust stamp: when the data is from and where it comes from.+ const stamp = document.getElementById('ec-stamp');+ if (stamp) {+ const when = new Date().toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' });+ stamp.textContent = `Updated ${when} · source: Solana RPC + settle ledger`;+ }+ if (window._ecFlow) window._ecFlow.seed(s);+ }++ function renderStatsError() {+ // One honest, recoverable notice across the stats band, on-chain wallets and+ // reflection sections — plus the hero stat + stamp, which would otherwise sit+ // silently on their "0"/"Loading…" placeholders forever.+ const band = document.getElementById('ec-stats');+ if (band) {+ band.innerHTML = `<div class="ec-err" style="grid-column:1/-1;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap">+ <span>Live figures are temporarily unavailable. The economy is unchanged — this is a read hiccup.</span>+ <button class="ec-btn" id="ec-stats-retry" type="button" aria-label="Retry loading live economy figures">Retry</button>+ </div>`;+ }+ const heroStat = document.getElementById('ec-hero-stat');+ if (heroStat) {+ const num = heroStat.querySelector('[data-roll]');+ if (num) num.textContent = '—';+ const lbl = heroStat.querySelector('.hs-lbl');+ if (lbl) lbl.textContent = 'live total unavailable — retrying';+ }+ const stamp = document.getElementById('ec-stamp');+ if (stamp) stamp.textContent = 'Live figures unavailable — couldn\'t reach Solana RPC + settle ledger.';+ setErr('ec-onchain', 'On-chain data is temporarily unavailable.');+ setErr('ec-reflected', 'Reflection history is temporarily unavailable.');+ const retry = document.getElementById('ec-stats-retry');+ if (retry) {+ retry.addEventListener('click', () => {+ retry.disabled = true;+ retry.textContent = 'Retrying…';+ // Restore skeletons so the retry reads as a real reload, not a frozen error.+ const b = document.getElementById('ec-stats');+ if (b) b.innerHTML = '<div class="ec-stat ec-skel" style="height:96px"></div>'.repeat(5);+ const oc = document.getElementById('ec-onchain');+ if (oc) oc.innerHTML = '<div class="ec-wallets">' + '<div class="ec-wallet ec-skel" style="height:108px"></div>'.repeat(2) + '</div>';+ const rf = document.getElementById('ec-reflected');+ if (rf) rf.innerHTML = '<div class="ec-card ec-skel" style="height:200px"></div><div class="ec-card ec-skel" style="height:200px"></div>';+ const stamp2 = document.getElementById('ec-stamp');+ if (stamp2) stamp2.textContent = 'Loading live figures…';+ loadStats();+ });+ }+ }++ function loadStats() {+ return getJSON(`${API}/stats`).then(renderStats).catch(renderStatsError);+ }+ loadStats();getJSON(`${API}/catalog`).then((c) => {diff --git a/src/trades.js b/src/trades.jsindex 36abef1c1..599b56733 100644--- a/src/trades.js+++ b/src/trades.js@@ -46,14 +46,68 @@ document.addEventListener('DOMContentLoaded', () => {readUrl();applyStateToControls();- $('#tfWinSeg').addEventListener('click', (e) => {- const b = e.target.closest('[data-win]');- if (!b) return;- $$('#tfWinSeg button').forEach((x) => x.classList.toggle('on', x === b));- state.window = b.dataset.win;+ const winSeg = $('#tfWinSeg');++ // Activate a time-window tab: sync visual state, ARIA, roving tabindex,+ // then reload the feed. Shared by pointer + keyboard activation.+ function selectWindowTab(btn, { focus = false } = {}) {+ if (!btn) return;+ $$('#tfWinSeg button').forEach((x) => {+ const on = x === btn;+ x.classList.toggle('on', on);+ x.setAttribute('aria-selected', on ? 'true' : 'false');+ x.tabIndex = on ? 0 : -1;+ });+ if (focus) btn.focus();+ if (state.window === btn.dataset.win) return;+ state.window = btn.dataset.win;state.cursor = null;writeUrl();load(true);+ }++ winSeg.addEventListener('click', (e) => {+ const b = e.target.closest('[data-win]');+ if (!b) return;+ selectWindowTab(b);+ });++ // WAI-ARIA tablist keyboard support: roving focus with Left/Right/Home/End,+ // explicit activation on Enter/Space.+ winSeg.addEventListener('keydown', (e) => {+ const current = e.target.closest('[data-win]');+ if (!current) return;+ const tabs = $$('#tfWinSeg button');+ const i = tabs.indexOf(current);+ if (i === -1) return;++ let next = null;+ switch (e.key) {+ case 'ArrowRight':+ case 'ArrowDown':+ next = tabs[(i + 1) % tabs.length];+ break;+ case 'ArrowLeft':+ case 'ArrowUp':+ next = tabs[(i - 1 + tabs.length) % tabs.length];+ break;+ case 'Home':+ next = tabs[0];+ break;+ case 'End':+ next = tabs[tabs.length - 1];+ break;+ case 'Enter':+ case ' ':+ case 'Spacebar':+ e.preventDefault();+ selectWindowTab(current);+ return;+ default:+ return;+ }+ e.preventDefault();+ selectWindowTab(next, { focus: true });});$('#tfMinPnl').addEventListener('change', () => {@@ -131,12 +185,15 @@ function writeUrl() {}function applyStateToControls() {- $(`#tfWinSeg button[data-win="${state.window}"]`)?.classList.add('on');- $('#tfWinSeg button[data-win="24h"]')?.classList.toggle('on', state.window === '24h');$('#tfMinPnl').value = String(state.minPnl);$('#tfNetwork').value = state.network;- // sync seg buttons- $$('#tfWinSeg button').forEach((b) => b.classList.toggle('on', b.dataset.win === state.window));+ // sync seg buttons — visual state, ARIA selection, and roving tabindex+ $$('#tfWinSeg button').forEach((b) => {+ const on = b.dataset.win === state.window;+ b.classList.toggle('on', on);+ b.setAttribute('aria-selected', on ? 'true' : 'false');+ b.tabIndex = on ? 0 : -1;+ });}// ── Fetch + render ────────────────────────────────────────────────────────────diff --git a/src/unstoppable-dashboard.js b/src/unstoppable-dashboard.jsindex ae87937c2..4eeb421c6 100644--- a/src/unstoppable-dashboard.js+++ b/src/unstoppable-dashboard.js@@ -10,6 +10,7 @@import { log } from './shared/log.js';const STATUS_ENDPOINT = '/api/agents/unstoppable-status';const POLL_INTERVAL_MS = 60_000;+const MAX_BACKOFF_MS = 300_000; // 5 minutesconst LOCALSTORAGE_KEY = 'unstoppable_last_reading';// ─── Helpers ──────────────────────────────────────────────────────────────────@@ -187,7 +188,7 @@ function renderActivityFeed(activities) {}).join('');}-function renderFull(data, { fromCache = false } = {}) {+function renderFull(data, { fromCache = false, savedAt = null } = {}) {const treasury = data.treasury || {};const atomics = treasury.balance_usdc_atomics || 0;@@ -200,7 +201,10 @@ function renderFull(data, { fromCache = false } = {}) {const updatedEl = document.getElementById('heroUpdated');if (updatedEl) {if (fromCache) {- updatedEl.textContent = 'Showing cached data — live data costs $0.01 per query';+ const age = savedAt ? relativeTime(savedAt) : '';+ updatedEl.innerHTML = age+ ? `Showing cached data <span class="cache-age">(cached ${escapeHtml(age)})</span> — live data costs $0.01 per query`+ : 'Showing cached data — live data costs $0.01 per query';} else {updatedEl.textContent = 'Updated ' + relativeTime(new Date().toISOString());}@@ -227,6 +231,34 @@ function renderPaymentRequired(challenge) {const updatedEl = document.getElementById('heroUpdated');if (updatedEl) updatedEl.textContent = 'Payment required for live data';++ setDonateLocked(true, priceUsdc);+}++// Toggle the donate button between its default fund state and the "unlock live+// data" state shown when the status endpoint returns 402 and we're on cache.+function setDonateLocked(locked, priceUsdc = '0.01') {+ const btn = document.getElementById('donateBtn');+ const label = document.getElementById('donateLabel');+ if (!btn) return;+ const price = `$${parseFloat(priceUsdc).toFixed(2)}`;+ if (locked) {+ btn.textContent = `Unlock live data — ${price}`;+ btn.classList.remove('primary');+ btn.classList.add('unlock');+ btn.setAttribute('aria-label', `Pay ${price} USDC to unlock live data`);+ if (label) {+ label.textContent = "You're viewing cached data. Pay to unlock the agent's live treasury, runway, and activity.";+ }+ } else {+ btn.textContent = 'Donate $0.01';+ btn.classList.remove('unlock');+ btn.classList.add('primary');+ btn.setAttribute('aria-label', 'Donate $0.01 USDC to fund the agent');+ if (label) {+ label.textContent = "Keep it alive — donate $0.01 USDC to extend the agent's runway and unlock the live view.";+ }+ }}function escapeHtml(str) {@@ -250,7 +282,7 @@ async function fetchStatus() {});} catch (err) {log.warn('[unstoppable-dashboard] fetch error:', err.message);- return null;+ return { ok: false, transient: true };}if (response.status === 200) {@@ -269,10 +301,23 @@ async function fetchStatus() {return { ok: false, status: 402, challenge };}+ // 5xx (and any other unexpected status) is a transient server fault — the+ // caller backs the poll interval off so we stop hammering a degraded API.log.warn('[unstoppable-dashboard] unexpected status:', response.status);- return null;+ return { ok: false, transient: true, status: response.status };}+function showCachedOrEmpty() {+ const cached = loadFromCache();+ if (cached?.data) {+ renderFull(cached.data, { fromCache: true, savedAt: cached.savedAt });+ return true;+ }+ return false;+}++// Returns true when the poll succeeded (200 or a clean 402) so the scheduler+// can reset its backoff; false on transient server/network faults.async function poll() {const result = await fetchStatus();@@ -280,7 +325,8 @@ async function poll() {renderFull(result.data);const notice = document.getElementById('paymentNotice');if (notice) notice.style.display = 'none';- return;+ setDonateLocked(false);+ return true;}if (result?.status === 402) {@@ -288,7 +334,7 @@ async function poll() {// Show cached data if available.const cached = loadFromCache();if (cached?.data) {- renderFull(cached.data, { fromCache: true });+ renderFull(cached.data, { fromCache: true, savedAt: cached.savedAt });} else {// No cache — show zeroed state.const el = document.getElementById('balanceDisplay');@@ -298,14 +344,13 @@ async function poll() {const card = document.getElementById('reflectionCard');if (card) card.innerHTML = '<div class="reflection-text" style="color: var(--text-3); font-style: italic;">Pay to unlock live reflections.</div>';}- return;+ // A clean 402 is a successful poll — reset the cadence to 60s.+ return true;}- // Network or server error — try to show cache.- const cached = loadFromCache();- if (cached?.data) {- renderFull(cached.data, { fromCache: true });- }+ // Network or server error — keep showing cache and signal backoff.+ showCachedOrEmpty();+ return false;}// ─── Public API ───────────────────────────────────────────────────────────────@@ -322,8 +367,10 @@ async function donate() {}const btn = document.getElementById('donateBtn');+ const retry = document.getElementById('donateRetry');try {if (btn) btn.disabled = true;+ if (retry) retry.classList.remove('show');const out = await X402.pay({endpoint: STATUS_ENDPOINT,method: 'GET',@@ -336,6 +383,7 @@ async function donate() {if (out.result && typeof out.result === 'object') {renderFull(out.result);saveToCache(out.result);+ setDonateLocked(false);const notice = document.getElementById('paymentNotice');if (notice) notice.style.display = 'none';} else {@@ -344,11 +392,39 @@ async function donate() {} catch (err) {if (err?.code === 'cancelled') return; // donor dismissed the checkoutshowToast('Payment failed: ' + String(err?.message || 'unknown error').slice(0, 80));+ // Keep the button live and surface a top-up path — the most common+ // failure here is an under-funded wallet, which a top-up + retry fixes.+ if (retry) retry.classList.add('show');} finally {+ // Re-enable so the donor can retry immediately after topping up.if (btn) btn.disabled = false;}}+// Self-scheduling poll loop with exponential backoff. On a healthy poll+// (200 or a clean 402) the cadence stays at 60s; on a transient 5xx/network+// fault the delay doubles up to a 5-minute cap so we stop hammering a+// degraded API, then snaps back to 60s the moment a poll succeeds.+let currentDelayMs = POLL_INTERVAL_MS;+let pollTimer = null;++async function scheduledPoll() {+ let healthy = false;+ try {+ healthy = await poll();+ } catch (err) {+ log.warn('[unstoppable-dashboard] poll threw:', err?.message);+ }++ if (healthy) {+ currentDelayMs = POLL_INTERVAL_MS;+ } else {+ currentDelayMs = Math.min(currentDelayMs * 2, MAX_BACKOFF_MS);+ }++ pollTimer = setTimeout(scheduledPoll, currentDelayMs);+}+export function init() {// Expose public methods for onclick handlers.window.__unstoppable = { donate };@@ -356,12 +432,12 @@ export function init() {// Show cached data immediately while we fetch.const cached = loadFromCache();if (cached?.data) {- renderFull(cached.data, { fromCache: true });+ renderFull(cached.data, { fromCache: true, savedAt: cached.savedAt });}- // First poll immediately, then on interval.- poll();- setInterval(poll, POLL_INTERVAL_MS);+ // First poll immediately, then schedule with adaptive backoff.+ if (pollTimer) clearTimeout(pollTimer);+ scheduledPoll();// Update relative timestamps every 30s without re-fetching.setInterval(() => {diff --git a/src/usdz-pipeline.js b/src/usdz-pipeline.jsindex b667f081c..8d20d8471 100644--- a/src/usdz-pipeline.js+++ b/src/usdz-pipeline.js@@ -15,6 +15,7 @@ import { conformanceReport } from './runtime/arkit52.js';import { GLTFExporter } from 'three/addons/exporters/GLTFExporter.js';import { USDZExporter } from 'three/addons/exporters/USDZExporter.js';import { MeshStandardMaterial, Color, DoubleSide } from 'three';+import { getDecoders } from './viewer/internal.js';// Bone-name fragments that mark the lower body. Matched case-insensitively// after stripping the standard prefixes (mixamorig:, CC_Base_, Armature|).@@ -39,6 +40,13 @@ function _isLowerBody(name) {async function _loadGlbBlob(blob) {const loader = new GLTFLoader();+ // Avatars baked through the server pipeline ship as EXT_meshopt_compression,+ // and uploaded GLBs may use KHR_draco_mesh_compression. Without these+ // decoders GLTFLoader throws "setMeshoptDecoder must be called before loading+ // compressed files" (or the Draco equivalent) and the whole export fails.+ const { dracoLoader, meshoptDecoder } = await getDecoders();+ loader.setMeshoptDecoder(meshoptDecoder);+ loader.setDRACOLoader(dracoLoader);const arrayBuf = await blob.arrayBuffer();return new Promise((resolve, reject) => {loader.parse(arrayBuf, '', resolve, reject);diff --git a/vercel.json b/vercel.jsonindex 80799c768..3cd2930bf 100644--- a/vercel.json+++ b/vercel.json@@ -199,7 +199,7 @@"strict-transport-security": "max-age=63072000; includeSubDomains; preload","x-content-type-options": "nosniff","referrer-policy": "strict-origin-when-cross-origin",- "content-security-policy": "base-uri 'self'; object-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval' blob: https://cdn.jsdelivr.net https://cdnjs.cloudflare.com https://unpkg.com https://esm.sh https://ajax.googleapis.com https://s3.tradingview.com https://platform.twitter.com https://3d-agent.vercel.app https://three.ws https://three.ws; worker-src 'self' blob:; frame-ancestors *; report-uri /api/client-errors"+ "content-security-policy": "base-uri 'self'; object-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval' blob: https://cdn.jsdelivr.net https://cdnjs.cloudflare.com https://unpkg.com https://esm.sh https://ajax.googleapis.com https://s3.tradingview.com https://platform.twitter.com https://3d-agent.vercel.app https://three.ws https://three.ws; worker-src 'self' blob:; frame-ancestors 'self'; report-uri /api/client-errors"},"continue": true},