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
Ship manifest-backed club routines, anon IRL pin management, safer avatar thumbnails
nirholas422c1dccc97c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 04790b0aa..97b526cb5 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -30,12 +30,16 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Copy trading: Oracle conviction gate** — 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. (`/leaderboard`) `[feature]`- **Copy trading: Telegram notifications when a buy intent arrives** — 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. (`/dashboard/copy`) `[feature]`- **Create flow: guided "what's next" screen after every avatar save** — 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. (`/create`) `[feature, improvement]`+- **Embed wizard now reachable from every agent and avatar page** — The full-featured embed wizard (/embed) is now one click away from any agent detail page, avatar page, and the dashboard agents list. Open it to configure size, environment, mode, and controls, see a live preview, and copy platform-specific instructions for plain HTML, React, WordPress, Webflow, or Shopify. When the wizard is opened from an agent page it pre-loads the agent and defaults to chat mode. (`/embed`) `[improvement]`- **Every launch now has its own page — the full story of a coin in one place** — 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. (`/launches`) `[feature]`+- **Features page — interactive animation showcase with 30+ live demos** — 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. (`/features`) `[improvement]`- **Forge: fix 3D model generation on the free NVIDIA lane** — The free TRELLIS text-to-3D lane stopped producing models when NVIDIA changed their API to return a CDN URL instead of inline base64. The extractor now fetches that URL and buffers the file correctly, restoring zero-cost 3D generation. Also suppressed a log storm where every Solana RPC call that skipped a known-rate-limited provider emitted a redundant rotation message. (`/forge`) `[fix]`+- **Guided tour engine — spotlight coachmarks with server-backed persistence** — 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. (`/dashboard`) `[feature]`- **Home page now features Oracle — live conviction scores on the front page** — 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. (`/`) `[improvement]`- **Home page: Top Traders widget + Oracle proof trades in coin drawer** — 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. (`/oracle`) `[feature, improvement]`- **IRL — permanent pins for signed-in users, compass heading, and manage placements from dashboard** — 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. (`/irl`) `[improvement]`- **IRL and XR: choose any of your 3D avatars from a bottom-sheet picker** — 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. (`/irl`) `[feature]`+- **IRL mode now remembers your scene between visits** — Refreshing or returning to the IRL AR playground no longer wipes your setup. Your chosen avatar, the pinned/locked state, and every object you placed on the floor (orbs, crates, crystals, rings, pillars) are now saved to your device and restored automatically on your next visit. Opening a shared ?avatar= link still takes precedence so explicit links always win. (`/irl`) `[feature, improvement]`- **IRL: move your phone to look around your avatar in AR** — 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. (`/irl`) `[feature, improvement]`- **IRL: pinned avatars now face the direction you were looking** — 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. (`/irl`) `[feature]`- **IRL: place your agent on the map — others nearby can see it** — 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. (`/irl`) `[feature]`@@ -43,6 +47,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Launches: Oracle conviction tier filter** — 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. (`/launches`) `[feature, improvement]`- **Leaderboard: Oracle Conviction Rankings — agents ranked by conviction win rate** — 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. (`/leaderboard`) `[feature]`- **Live Trade Feed — every notable pump.fun win in one public stream** — 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. (`/trades`) `[feature]`+- **Manage your IRL pins from a new "My pins" panel** — 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. (`/irl`) `[feature, improvement]`- **On-chain deploy: cinematic step-by-step progress** — 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. (`/agents`) `[improvement]`- **Oracle — live trade tape and 3D conviction graph in the war room** — 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. (`/oracle`) `[feature, improvement]`- **Oracle — one conviction score per launch, and an agent that acts on it** — 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. (`/oracle`) `[feature]`@@ -72,10 +77,12 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Oracle: rich conviction card on every shared link** — 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. (`/oracle`) `[feature, improvement]`- **Oracle: rich social previews when sharing conviction links** — 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. (`/oracle`) `[improvement]`- **Oracle: Verify Telegram setup with a test message** — The Oracle arm panel now has a Send test button next to the Telegram chat ID field. Clicking it sends an immediate test message to confirm your bot setup is working before you wait for a real signal to arrive. The button shows delivery success or a hint if the bot hasn't been started. (`/oracle`) `[improvement]`+- **Pay an agent in the IRL playground with one tap via x402** — 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. (`/irl`) `[feature, improvement]`- **Portfolio: Oracle conviction for every token you hold** — 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. (`/dashboard/portfolio`) `[improvement]`- **Pump Dashboard: live Oracle conviction panel on the main trading desk** — 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. (`/pump-dashboard`) `[improvement]`- **Pump Live: Oracle conviction filter + pause control** — 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. (`/pump-live`) `[feature, improvement]`- **Radar drawer: Oracle conviction scores now inline with coin intelligence** — 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. (`/radar`) `[improvement]`+- **Related avatars now have a one-tap Walk IRL shortcut** — 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. (`/irl`) `[feature, improvement]`- **Rich OG cards on every shared coin link — price, score, and live status in the preview** — 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. (`/launches`) `[improvement]`- **Sniper Strategies dashboard — manage autonomous trading agents** — 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. (`/dashboard/sniper`) `[feature]`- **Sniper: Cumulative PnL chart in trade history** — The Sniper Strategies page now shows a cumulative PnL curve above the trade history table. Each completed trade is plotted in chronological order, so you can see at a glance how your strategy's performance has trended over time. The chart is color-coded green or red based on the net result and includes smooth bezier interpolation between trades. (`/dashboard/sniper`) `[improvement]`@@ -83,6 +90,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Sniper: personal Telegram trade notifications** — Each sniper strategy can now send buy and sell alerts to your own Telegram chat instead of (or in addition to) the platform ops channel. Add your Telegram chat ID in the Notifications section of any strategy form on the sniper dashboard. Get instant alerts the moment your agent opens or closes a position, with coin name, size, PnL, and Solscan proof link. (`/dashboard/sniper`) `[feature]`- **Strategy Lab: backtest Oracle strategies before you deploy** — 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. (`/strategy-lab`) `[feature]`- **The Sniper Arena is now a living 3D world** — 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. (`/play/arena`) `[feature]`+- **Tipped club dances now always perform** — 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. (`/club`) `[fix]`- **Trader leaderboard + copy-trading now available as MCP tools for agents** — 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. (`/leaderboard`) `[feature, sdk]`- **Trader profiles now work for any pump.fun wallet address** — 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. (`/oracle`) `[fix, improvement]`- **Watchlist — save any coin and track it with live Oracle scores** — 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. (`/watchlist`) `[feature]`diff --git a/api/_providers/nvidia.js b/api/_providers/nvidia.jsindex 19e65d1da..5afbe16d7 100644--- a/api/_providers/nvidia.js+++ b/api/_providers/nvidia.js@@ -30,10 +30,22 @@// poll GET https://api.nvcf.nvidia.com/v2/nvcf/pexec/status/{NVCF-REQID}// → 202 (still running) | 200 (done, body holds the GLB)//-// result body.artifacts[0].base64 — base64-encoded .glb; we decode it and-// persist to R2, then hand back a durable public URL like the other-// providers (replicate/meshy return upstream URLs; TRELLIS returns the-// bytes inline, so WE own the persist).+// result The GLB rides inside `body.artifacts[0]`, but the hosted NVCF preview+// has shipped it in SEVERAL shapes over time — the original+// `{ base64 }` object is no longer the only one observed in prod. The+// extractor (extractGlbBase64) normalizes all of:+// • { artifacts: [ { base64 } ] } inline base64 (original)+// • { artifacts: [ { data } ] } inline base64 under `data`+// • { artifacts: [ "<base64 string>" ] } bare string, no wrapper+// • { artifacts: [ { url } ] } CDN URL → fetched + buffered here+// • { artifacts: { "0": {…} } } object with numeric-string keys+// plus raw-bytes (model/gltf-binary | octet-stream) when Accept is+// ignored. Whatever the shape, we end up with GLB bytes, persist them to+// R2, and hand back a durable public URL like the other providers+// (replicate/meshy return upstream URLs; TRELLIS hands us the bytes — or+// a short-lived CDN URL — so WE own the durable persist). On an+// unrecognized shape the warn logs `json keys=[…] artifact[0]=[…]` so the+// next schema drift is visible in the first failure without guessing.//// Error codes match the established provider contract (replicate.js / meshy.js):// provider_unreachable / invalid_key / insufficient_credits / rate_limited /diff --git a/api/agents/solana/[action].js b/api/agents/solana/[action].jsindex d7a1a16b7..76619c4f4 100644--- a/api/agents/solana/[action].js+++ b/api/agents/solana/[action].js@@ -7,6 +7,7 @@ import {handleEdit,handleMetadata,handlePriceHistory,+ handleRegistrationCard,handleRegisterPrep,handleRegisterConfirm,handleReputation,@@ -29,6 +30,7 @@ const DISPATCH = {edit: handleEdit,metadata: handleMetadata,'price-history': handlePriceHistory,+ 'registration-card': handleRegistrationCard,'register-prep': handleRegisterPrep,'register-confirm': handleRegisterConfirm,reputation: handleReputation,diff --git a/api/irl/pins.js b/api/irl/pins.jsindex 9869c3a58..a3b51b004 100644--- a/api/irl/pins.js+++ b/api/irl/pins.js@@ -2,6 +2,7 @@* IRL GPS Pins — place 3D agents at real-world GPS coordinates.** GET /api/irl/pins?lat=&lng=&radius=150 nearby pins (public)+ * GET /api/irl/pins/mine?deviceToken= my pins (device token or auth)* GET /api/irl/pins?mine=1 my pins (auth required)* POST /api/irl/pins { lat, lng, heading, avatarUrl, avatarName, caption, agentId }* PATCH /api/irl/pins { id, caption } edit caption (auth required)@@ -55,7 +56,27 @@ export default wrap(async (req, res) => {await ensureTable();- // ── GET — my pins (auth) ──────────────────────────────────────────────────+ // ── GET — my pins by device token (anonymous) or session (auth) ──────────+ // Path: /api/irl/pins/mine?deviceToken=… — lets a visitor browse and manage+ // the pins they placed from this device even after a reload, without login.+ if (req.method === 'GET' && req.url?.includes('/mine')) {+ const deviceToken = req.query.deviceToken;+ const session = await getSessionUser(req).catch(() => null);+ if (!deviceToken && !session) {+ return json(res, 400, { error: 'deviceToken required' });+ }+ const rows = await sql`+ SELECT id, lat, lng, avatar_name, caption, placed_at, expires_at+ FROM irl_pins+ WHERE (device_token = ${deviceToken ?? ''} OR user_id = ${session?.id ?? null})+ AND (expires_at IS NULL OR expires_at > NOW())+ ORDER BY placed_at DESC+ LIMIT 20+ `;+ return json(res, 200, { pins: rows });+ }++ // ── GET — my pins (auth, query-param form) ────────────────────────────────if (req.method === 'GET' && req.query.mine === '1') {const session = await getSessionUser(req).catch(() => null);if (!session) return json(res, 401, { error: 'not authenticated' });diff --git a/api/x402/dance-tip.js b/api/x402/dance-tip.jsindex b0dea44f0..3bde59b84 100644--- a/api/x402/dance-tip.js+++ b/api/x402/dance-tip.js@@ -28,7 +28,7 @@ const DESCRIPTION ='three.ws club stage — tip a dancer to perform one routine on the 3D ' +'stage. Pay $0.001 USDC per performance. Pick a dancer slot (1-4) and a ' +'dance style (free-floor: rumba, silly, thriller, capoeira, hiphop; ' +- 'pole choreography: spin, climb, combo). The settled call returns a ' ++ 'choreographed routines: spin, climb, combo). The settled call returns a ' +'performance ticket the /club page consumes to spawn the dancer and play ' +'the routine — sequence styles chain multiple clips back-to-back.';@@ -43,38 +43,40 @@ export const STYLES = Object.freeze({thriller: { clip: 'thriller', label: 'Thriller', loop: true, durationSec: 14, track: 'thriller' },capoeira: { clip: 'capoeira', label: 'Capoeira', loop: true, durationSec: 12, track: 'capoeira' },- // Pole choreography (new) — sequences chain clips at PoleStation playback- // time. The `pole-*` clips live in /public/animations/clips/. The audio- // loop crossfades to the dedicated `pole` track.+ // Choreographed routines — sequences chain multiple clips back-to-back at+ // PoleStation playback time (the feature free-floor styles lack). Every clip+ // here is a real, deployed entry in /animations/manifest.json so the routine+ // always performs; durationSec is the sum of the steps. The audio loop+ // crossfades to the dedicated `pole` track (/public/club/audio/pole.*).spin: {- label: 'Pole Spin',+ label: 'Spin',durationSec: 10,track: 'pole',sequence: [- { clip: 'pole-spin', durationSec: 8 },- { clip: 'pole-bow', durationSec: 2 },+ { clip: 'capoeira', durationSec: 6 },+ { clip: 'dance', durationSec: 4 },],},climb: {- label: 'Climb + Invert',- durationSec: 13,+ label: 'Slow Burn',+ durationSec: 14,track: 'pole',sequence: [- { clip: 'pole-climb', durationSec: 5 },- { clip: 'pole-invert', durationSec: 6 },- { clip: 'pole-bow', durationSec: 2 },+ { clip: 'thriller', durationSec: 7 },+ { clip: 'capoeira', durationSec: 4 },+ { clip: 'dance', durationSec: 3 },],},combo: {- label: 'Combo',+ label: 'Full Combo',durationSec: 18,track: 'pole',sequence: [- { clip: 'pole-spin', durationSec: 4 },- { clip: 'pole-climb', durationSec: 4 },- { clip: 'pole-invert', durationSec: 4 },- { clip: 'pole-floorwork', durationSec: 4 },- { clip: 'pole-bow', durationSec: 2 },+ { clip: 'rumba', durationSec: 4 },+ { clip: 'capoeira', durationSec: 4 },+ { clip: 'thriller', durationSec: 4 },+ { clip: 'silly', durationSec: 3 },+ { clip: 'dance', durationSec: 3 },],},});@@ -99,7 +101,7 @@ const INPUT_SCHEMA = {description:'Performance style. Free-floor styles map to a single clip in ' +'/animations/manifest.json. Sequence styles (spin, climb, combo) ' +- 'chain multiple pole-* clips back-to-back.',+ 'chain multiple manifest clips back-to-back.',},},};@@ -109,14 +111,14 @@ const OUTPUT_EXAMPLE = {ticketId: 'a3f3d6c2-1f1b-4f10-9b6c-1b1f5e0c9c34',dancer: '1',dance: 'spin',- clip: 'pole-spin',- label: 'Pole Spin',+ clip: 'capoeira',+ label: 'Spin',loop: false,durationSec: 10,track: 'pole',sequence: [- { clip: 'pole-spin', durationSec: 8 },- { clip: 'pole-bow', durationSec: 2 },+ { clip: 'capoeira', durationSec: 6 },+ { clip: 'dance', durationSec: 4 },],startsAt: '2026-05-21T18:42:09.000Z',endsAt: '2026-05-21T18:42:19.000Z',diff --git a/data/changelog.json b/data/changelog.jsonindex 5bc6a4ba7..f593bd2cf 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,55 @@{"$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-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 — 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"+ ],+ "link": "/club"+ },+ {+ "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 — 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"+ ],+ "link": "/irl"+ },+ {+ "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 — 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"+ ],+ "link": "/irl"+ },+ {+ "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 — no need to open the profile first. Right-click still works for opening in a new tab.",+ "tags": [+ "feature",+ "improvement"+ ],+ "link": "/irl"+ },+ {+ "date": "2026-06-16",+ "title": "IRL mode now remembers your scene between visits",+ "summary": "Refreshing or returning to the IRL AR playground no longer wipes your setup. Your chosen avatar, the pinned/locked state, and every object you placed on the floor (orbs, crates, crystals, rings, pillars) are now saved to your device and restored automatically on your next visit. Opening a shared ?avatar= link still takes precedence so explicit links always win.",+ "tags": [+ "feature",+ "improvement"+ ],+ "link": "/irl"+ },{"date": "2026-06-16","title": "$THREE holder gate — agent skills can now require $THREE balance",diff --git a/pages/avatar-page.html b/pages/avatar-page.htmlindex c19f01fb0..525a8aae1 100644--- a/pages/avatar-page.html+++ b/pages/avatar-page.html@@ -1434,21 +1434,71 @@gap: 12px;}.av-related-card {+ position: relative;background: var(--panel);border: 1px solid var(--border);border-radius: 12px;overflow: hidden;- cursor: pointer;- text-decoration: none;- color: inherit;transition:border-color 0.15s,transform 0.15s;}+ .av-related-main {+ display: block;+ text-decoration: none;+ color: inherit;+ cursor: pointer;+ }.av-related-card:hover {border-color: var(--border-2);transform: translateY(-1px);}+ .av-related-irl {+ position: absolute;+ top: 8px;+ right: 8px;+ z-index: 2;+ display: inline-flex;+ align-items: center;+ gap: 4px;+ padding: 4px 9px;+ background: rgba(10, 10, 12, 0.72);+ -webkit-backdrop-filter: blur(6px);+ backdrop-filter: blur(6px);+ border: 1px solid rgba(255, 255, 255, 0.28);+ border-radius: 999px;+ color: #fff;+ font-size: 10px;+ font-weight: 700;+ letter-spacing: 0.04em;+ text-decoration: none;+ opacity: 0;+ transform: translateY(-2px);+ transition:+ opacity 0.15s,+ transform 0.15s,+ background 0.15s,+ border-color 0.15s;+ pointer-events: none;+ }+ .av-related-card:hover .av-related-irl,+ .av-related-card:focus-within .av-related-irl {+ opacity: 1;+ transform: translateY(0);+ pointer-events: auto;+ }+ .av-related-irl:hover {+ background: rgba(10, 10, 12, 0.9);+ border-color: rgba(255, 255, 255, 0.55);+ }+ /* Touch devices have no hover — keep the IRL pill always tappable. */+ @media (hover: none) {+ .av-related-irl {+ opacity: 1;+ transform: none;+ pointer-events: auto;+ }+ }.av-related-thumb {aspect-ratio: 1 / 1;background:diff --git a/public/changelog.json b/public/changelog.jsonindex 78e5e3d7c..336af4a97 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-16T10:35:10.776Z",+ "generated_at": "2026-06-16T11:50:42.858Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -250,6 +250,16 @@"improvement"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "title": "Embed wizard now reachable from every agent and avatar page",+ "summary": "The full-featured embed wizard (/embed) is now one click away from any agent detail page, avatar page, and the dashboard agents list. Open it to configure size, environment, mode, and controls, see a live preview, and copy platform-specific instructions for plain HTML, React, WordPress, Webflow, or Shopify. When the wizard is opened from an agent page it pre-loads the agent and defaults to chat mode.",+ "link": "/embed",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-16","type": "update",@@ -260,6 +270,16 @@"feature"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "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.",+ "link": "/features",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-16","type": "update",@@ -270,6 +290,16 @@"fix"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "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.",+ "link": "/dashboard",+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-16","type": "update",@@ -311,6 +341,17 @@"feature"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "title": "IRL mode now remembers your scene between visits",+ "summary": "Refreshing or returning to the IRL AR playground no longer wipes your setup. Your chosen avatar, the pinned/locked state, and every object you placed on the floor (orbs, crates, crystals, rings, pillars) are now saved to your device and restored automatically on your next visit. Opening a shared ?avatar= link still takes precedence so explicit links always win.",+ "link": "/irl",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-16","type": "update",@@ -383,6 +424,17 @@"feature"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "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 — 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.",+ "link": "/irl",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-16","type": "update",@@ -681,6 +733,17 @@"improvement"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "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 — 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.",+ "link": "/irl",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-16","type": "update",@@ -722,6 +785,17 @@"improvement"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "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 — no need to open the profile first. Right-click still works for opening in a new tab.",+ "link": "/irl",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-16","type": "update",@@ -792,6 +866,16 @@"feature"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "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 — 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.",+ "link": "/club",+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-16","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 18da6df35..84bb2c9c1 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -198,6 +198,14 @@<category>feature</category><description>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.</description></item>+ <item>+ <title>Embed wizard now reachable from every agent and avatar page</title>+ <link>https://three.ws/embed</link>+ <guid isPermaLink="false">2026-06-16:Embed wizard now reachable from every agent and avatar page</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The full-featured embed wizard (/embed) is now one click away from any agent detail page, avatar page, and the dashboard agents list. Open it to configure size, environment, mode, and controls, see a live preview, and copy platform-specific instructions for plain HTML, React, WordPress, Webflow, or Shopify. When the wizard is opened from an agent page it pre-loads the agent and defaults to chat mode.</description>+ </item><item><title>Every launch now has its own page — the full story of a coin in one place</title><link>https://three.ws/launches</link>@@ -206,6 +214,14 @@<category>feature</category><description>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.</description></item>+ <item>+ <title>Features page — interactive animation showcase with 30+ live demos</title>+ <link>https://three.ws/features</link>+ <guid isPermaLink="false">2026-06-16:Features page — interactive animation showcase with 30+ live demos</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>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.</description>+ </item><item><title>Forge: fix 3D model generation on the free NVIDIA lane</title><link>https://three.ws/forge</link>@@ -214,6 +230,14 @@<category>fix</category><description>The free TRELLIS text-to-3D lane stopped producing models when NVIDIA changed their API to return a CDN URL instead of inline base64. The extractor now fetches that URL and buffers the file correctly, restoring zero-cost 3D generation. Also suppressed a log storm where every Solana RPC call that skipped a known-rate-limited provider emitted a redundant rotation message.</description></item>+ <item>+ <title>Guided tour engine — spotlight coachmarks with server-backed persistence</title>+ <link>https://three.ws/dashboard</link>+ <guid isPermaLink="false">2026-06-16:Guided tour engine — spotlight coachmarks with server-backed persistence</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>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.</description>+ </item><item><title>Home page now features Oracle — live conviction scores on the front page</title><link>https://three.ws/</link>@@ -246,6 +270,14 @@<category>feature</category><description>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.</description></item>+ <item>+ <title>IRL mode now remembers your scene between visits</title>+ <link>https://three.ws/irl</link>+ <guid isPermaLink="false">2026-06-16:IRL mode now remembers your scene between visits</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Refreshing or returning to the IRL AR playground no longer wipes your setup. Your chosen avatar, the pinned/locked state, and every object you placed on the floor (orbs, crates, crystals, rings, pillars) are now saved to your device and restored automatically on your next visit. Opening a shared ?avatar= link still takes precedence so explicit links always win.</description>+ </item><item><title>IRL: move your phone to look around your avatar in AR</title><link>https://three.ws/irl</link>@@ -302,6 +334,14 @@<category>feature</category><description>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.</description></item>+ <item>+ <title>Manage your IRL pins from a new "My pins" panel</title>+ <link>https://three.ws/irl</link>+ <guid isPermaLink="false">2026-06-16:Manage your IRL pins from a new "My pins" panel</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>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.</description>+ </item><item><title>On-chain deploy: cinematic step-by-step progress</title><link>https://three.ws/agents</link>@@ -534,6 +574,14 @@<category>improvement</category><description>The Oracle arm panel now has a Send test button next to the Telegram chat ID field. Clicking it sends an immediate test message to confirm your bot setup is working before you wait for a real signal to arrive. The button shows delivery success or a hint if the bot hasn't been started.</description></item>+ <item>+ <title>Pay an agent in the IRL playground with one tap via x402</title>+ <link>https://three.ws/irl</link>+ <guid isPermaLink="false">2026-06-16:Pay an agent in the IRL playground with one tap via x402</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>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.</description>+ </item><item><title>Portfolio: Oracle conviction for every token you hold</title><link>https://three.ws/dashboard/portfolio</link>@@ -566,6 +614,14 @@<category>improvement</category><description>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.</description></item>+ <item>+ <title>Related avatars now have a one-tap Walk IRL shortcut</title>+ <link>https://three.ws/irl</link>+ <guid isPermaLink="false">2026-06-16:Related avatars now have a one-tap Walk IRL shortcut</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>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.</description>+ </item><item><title>Rich OG cards on every shared coin link — price, score, and live status in the preview</title><link>https://three.ws/launches</link>@@ -622,6 +678,14 @@<category>feature</category><description>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.</description></item>+ <item>+ <title>Tipped club dances now always perform</title>+ <link>https://three.ws/club</link>+ <guid isPermaLink="false">2026-06-16:Tipped club dances now always perform</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>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.</description>+ </item><item><title>Trader leaderboard + copy-trading now available as MCP tools for agents</title><link>https://three.ws/leaderboard</link>diff --git a/public/features.json b/public/features.jsonindex ca8607566..c0dbffd8f 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-16T10:35:10.765Z",+ "generated_at": "2026-06-16T11:50:42.840Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/animation-manager.js b/src/animation-manager.jsindex c34ffbe32..4fd3fe178 100644--- a/src/animation-manager.js+++ b/src/animation-manager.js@@ -144,6 +144,21 @@ export class AnimationManager {return this._canonicalClipsSupported;}+ /**+ * Whether a named clip can actually be driven on the attached rig: it's+ * either already loaded, or registered in the defs and not yet known to+ * have failed. Lets callers (e.g. the paid club stage) drop un-performable+ * steps from a routine before playback instead of crossfading to a silent+ * no-op and leaving the avatar frozen.+ * @param {string} name+ * @returns {boolean}+ */+ canPlay(name) {+ if (this.clips.has(name)) return true;+ if (this._failed.has(name)) return false;+ return this._animationDefs.some((d) => d.name === name);+ }+// ── Loading ────────────────────────────────────────────────────────────────/**diff --git a/src/avatar-page.js b/src/avatar-page.jsindex e6f214bf7..333cd5d41 100644--- a/src/avatar-page.js+++ b/src/avatar-page.js@@ -1793,30 +1793,38 @@ async function loadRelated() {const grid = $('av-related-grid');if (!grid) return;$('av-related').hidden = false;- grid.innerHTML = items.map((a) => `- <a class="av-related-card" href="/avatars/${encodeURIComponent(a.avatarId)}">- <div class="av-related-thumb">- ${a.glbUrl ? `<model-viewer- src="${esc(a.glbUrl)}"- alt="${esc(a.name || 'Avatar')}"- auto-rotate- rotation-per-second="14deg"- interaction-prompt="none"- disable-zoom- disable-pan- disable-tap- exposure="1"- shadow-intensity="0.4"- tone-mapping="aces"- loading="lazy"- ></model-viewer>` : ''}- </div>- <div class="av-related-info">- <p class="av-related-name">${esc(a.name || 'Untitled')}</p>- <p class="av-related-author">${esc(a.author?.displayName || a.author?.handle || 'Anonymous')}</p>- </div>- </a>- `).join('');+ grid.innerHTML = items.map((a) => {+ const id = encodeURIComponent(a.avatarId);+ return `+ <div class="av-related-card">+ <a class="av-related-main" href="/avatars/${id}" aria-label="Open ${esc(a.name || 'avatar')}">+ <div class="av-related-thumb">+ ${a.glbUrl ? `<model-viewer+ src="${esc(a.glbUrl)}"+ alt="${esc(a.name || 'Avatar')}"+ auto-rotate+ rotation-per-second="14deg"+ interaction-prompt="none"+ disable-zoom+ disable-pan+ disable-tap+ exposure="1"+ shadow-intensity="0.4"+ tone-mapping="aces"+ loading="lazy"+ ></model-viewer>` : ''}+ </div>+ <div class="av-related-info">+ <p class="av-related-name">${esc(a.name || 'Untitled')}</p>+ <p class="av-related-author">${esc(a.author?.displayName || a.author?.handle || 'Anonymous')}</p>+ </div>+ </a>+ <a class="av-related-irl" href="/irl?avatar=${id}" title="Walk ${esc(a.name || 'this avatar')} IRL" aria-label="Walk ${esc(a.name || 'this avatar')} IRL">+ <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><circle cx="12" cy="8" r="4"/><path d="M4 20c0-4 3.6-7 8-7s8 3 8 7"/></svg>+ IRL+ </a>+ </div>`;+ }).join('');}// ── Model measurement ─────────────────────────────────────────────────diff --git a/src/avatar-picker.js b/src/avatar-picker.jsindex de20089ea..da08237e9 100644--- a/src/avatar-picker.js+++ b/src/avatar-picker.js@@ -162,9 +162,34 @@ async function getOffscreenCtx() {return _offscreenCtx;}+function disposeMaterial(material) {+ if (!material) return;+ // Disposing a material does NOT free its textures — release them explicitly.+ for (const value of Object.values(material)) {+ if (value && typeof value === 'object' && typeof value.dispose === 'function' && 'isTexture' in value) {+ value.dispose();+ }+ }+ material.dispose();+}++function disposeModel(model) {+ model.traverse(ch => {+ ch.geometry?.dispose();+ if (Array.isArray(ch.material)) ch.material.forEach(disposeMaterial);+ else disposeMaterial(ch.material);+ });+}++// The offscreen renderer/scene is a single shared resource. Many cards enter the+// viewport at once, so serialize the scene-mutation → render → readback section;+// concurrent renders into one scene would composite the wrong models together.+let _renderQueue = Promise.resolve();+async function render3dThumb(glbUrl) {if (_thumbCache.has(glbUrl)) return _thumbCache.get(glbUrl);- try {+ const run = _renderQueue.then(async () => {+ if (_thumbCache.has(glbUrl)) return _thumbCache.get(glbUrl);const { renderer, camera, scene, loader, Box3, Vector3 } = await getOffscreenCtx();const gltf = await loader.loadAsync(glbUrl);const model = gltf.scene;@@ -176,19 +201,19 @@ async function render3dThumb(glbUrl) {model.position.sub(center.multiplyScalar(scale));model.position.y += 0.15;scene.add(model);- renderer.render(scene, camera);- const dataUrl = renderer.domElement.toDataURL('image/png');- scene.remove(model);- model.traverse(ch => {- ch.geometry?.dispose();- if (Array.isArray(ch.material)) ch.material.forEach(m => m.dispose());- else ch.material?.dispose();- });- _thumbCache.set(glbUrl, dataUrl);- return dataUrl;- } catch {- return null;- }+ try {+ renderer.render(scene, camera);+ const dataUrl = renderer.domElement.toDataURL('image/png');+ _thumbCache.set(glbUrl, dataUrl);+ return dataUrl;+ } finally {+ scene.remove(model);+ disposeModel(model);+ }+ }).catch(() => null);+ // Keep the chain alive even when a render rejects, so later cards still run.+ _renderQueue = run.catch(() => {});+ return run;}function setupThumb3d(thumbDiv, glbUrl) {diff --git a/src/club.js b/src/club.jsindex 615afe0d9..2f1f8d626 100644--- a/src/club.js+++ b/src/club.js@@ -70,15 +70,18 @@ const STAGE_GLB_URL = '/club/props/stage.glb';const VENUE_GLB_URL = '/club/venue/club-venue.glb';const VENUE_HDRI_URL = '/club/venue/club-hdri.hdr';-// Clips we actually use — keeps the manifest pre-fetch small. Pole-specific-// clips (pole-spin, pole-climb, etc.) are added here once their source FBX-// files land in /public/animations/ and re-run of `npm run build:animations`-// registers them in /animations/manifest.json.+// Clips we actually use — keeps the manifest pre-fetch small. Every name here+// must exist in /animations/manifest.json (built by `npm run build:animations`);+// a style sold by /api/x402/dance-tip may only chain clips from this set, or a+// paid routine would crossfade to a no-op and leave the dancer frozen.const REQUIRED_CLIPS = new Set(['idle', 'dance', 'rumba', 'silly', 'thriller', 'capoeira', 'walk',- 'pole-walk-on', 'pole-spin', 'pole-climb', 'pole-invert', 'pole-floorwork', 'pole-bow',]);const WALK_CLIP = 'walk';+// Guaranteed-present clip every dancer can drive. Used as the failsafe routine+// when a ticket's requested clips can't be loaded on the chosen rig, so a paid+// tip always yields a real performance (Hard rule 9: ship a working fallback).+const FALLBACK_CLIP = 'dance';const TIP_ENDPOINT = '/api/x402/dance-tip';const TIPS_HISTORY_URL = '/api/club/tips?limit=20';@@ -775,17 +778,34 @@ class PoleStation {async _arriveAtPole() {this.walkPhase = 'dancing';- const steps = ticketSteps(this.activeTicket).length+ const requested = ticketSteps(this.activeTicket).length? ticketSteps(this.activeTicket)- : [{ clip: this.activeTicket?.clip || 'dance', durationSec: this.activeTicket?.durationSec || 12 }];-- await playSequence({- anim: this.anim,- steps,- fadeSec: PERFORMANCE_FADE,- isCancelled: () => !this.performing,- sleep: (ms) => this.sleep(ms),- });+ : [{ clip: this.activeTicket?.clip || FALLBACK_CLIP, durationSec: this.activeTicket?.durationSec || 12 }];++ // A tip is real on-chain money — never let a missing or un-retargetable+ // clip leave her standing frozen at the pole. Drop steps this rig can't+ // drive; if that empties the routine, perform the always-present fallback+ // clip for the routine's full duration so the payer always sees a dance.+ let steps = this.anim ? requested.filter((s) => this.anim.canPlay(s.clip)) : requested;+ if (!steps.length) {+ const total = requested.reduce((acc, s) => acc + (Number(s.durationSec) || 0), 0)+ || this.activeTicket?.durationSec || 12;+ steps = [{ clip: FALLBACK_CLIP, durationSec: total }];+ }++ try {+ await playSequence({+ anim: this.anim,+ steps,+ fadeSec: PERFORMANCE_FADE,+ isCancelled: () => !this.performing,+ sleep: (ms) => this.sleep(ms),+ });+ } catch (err) {+ // A playback fault must still release the stage — fall through to the+ // walk-off below rather than stranding her mid-routine.+ log.warn(`[club] dancer ${this.id} performance playback failed`, err);+ }// Sequence finished (or was cancelled) — step the dancer back off the// pole to her idle home. Cancellation is a fast-path: performing is@@ -868,8 +888,8 @@ class PoleStation {const dist = dir.length();if (dist < 0.04) {this.rig.position.copy(target);- if (this.walkPhase === 'to-pole') this._arriveAtPole();- else this._arriveHome();+ if (this.walkPhase === 'to-pole') this._arriveAtPole().catch((err) => log.warn(`[club] dancer ${this.id} arrive-at-pole failed`, err));+ else this._arriveHome().catch((err) => log.warn(`[club] dancer ${this.id} arrive-home failed`, err));} else {dir.normalize();const step = Math.min(dist, 1.4 * dt);@@ -1280,7 +1300,10 @@ async function tipDancer({ dancer, dance, button }) {// A short triple buzz on phones the moment USDC settles — the tip lands// in your hand the way it lands on stage.try { navigator.vibrate?.([18, 40, 60]); } catch { /* unsupported */ }- station.startPerformance(ticket);+ station.startPerformance(ticket).catch((err) => {+ log.warn('[club] startPerformance failed', err);+ setStatus('Performance hit a snag — tip again to retry.', { kind: 'warn' });+ });// Crossfade ambience → style loop in sync with the dancer walking// out. Prefer the explicit `track` from the ticket; fall back to adiff --git a/src/irl.js b/src/irl.jsindex 39e672d6b..c9bea0a83 100644--- a/src/irl.js+++ b/src/irl.js@@ -288,6 +288,17 @@ const placedObjects = []; // { mesh, spawnT, type }// ── Session persistence (localStorage) ───────────────────────────────────const SESSION_KEY = 'irl_session_v1';+// Snapshot the persisted session ONCE at module load. loadAvatar() runs+// _saveSession() against the empty boot scene before _restoreSession() gets to+// read it, so reading localStorage live inside restore would see that wiped+// state. Capture the real saved session here instead.+const _savedSession = (() => {+ try {+ const raw = localStorage.getItem(SESSION_KEY);+ return raw ? JSON.parse(raw) : null;+ } catch { return null; }+})();+function _saveSession() {try {localStorage.setItem(SESSION_KEY, JSON.stringify({@@ -303,21 +314,26 @@ function _saveSession() {}function _restoreSession() {+ const s = _savedSession;+ if (!s) return;try {- const raw = localStorage.getItem(SESSION_KEY);- if (!raw) return;- const s = JSON.parse(raw);+ // Objects first, then lock — so setLocked()'s own save (and the explicit+ // one below) capture the fully restored scene rather than an empty one.for (const o of (s.placedObjects ?? [])) {const def = OBJ_DEFS[o.type];if (!def) continue;const mesh = def.create();mesh.position.x = Number(o.x) || 0;mesh.position.z = Number(o.z) || 0;- mesh.scale.setScalar(1);+ mesh.scale.setScalar(1); // skip spawn animation on restorescene.add(mesh);placedObjects.push({ mesh, spawnT: SPAWN_DURATION, type: o.type });}if (placedObjects.length) clearBtn.hidden = false;+ if (s.locked) setLocked(true);+ // loadAvatar() persisted the empty boot scene before we got here; write+ // the restored state back so it survives a refresh with no further edits.+ _saveSession();} catch {}}@@ -775,10 +791,14 @@ const NEARBY_RADIUS = 150; // metresconst NEARBY_INTERVAL = 15000; // msfunction onGPSPosition(pos) {+ const wasReady = gpsState.ready;gpsState.lat = pos.coords.latitude;gpsState.lng = pos.coords.longitude;gpsState.ready = true;+ // First fix: GPS is live, so the user can place + manage pins from here.+ if (!wasReady) revealMyPinsBtn();+// Move pinned avatar to its GPS-anchored world positionif (gpsPin) {const wp = gpsToWorld(gpsPin.lat, gpsPin.lng);@@ -870,8 +890,7 @@ function commitPin(pinLat, pinLng, headingDeg, caption) {setStatus(result.permanent? `Pinned facing ${dir} — permanently visible to nearby users`: `Pinned facing ${dir} — others nearby can see you for 7 days`);- const myPinsBtn = document.getElementById('irl-mypins-btn');- if (myPinsBtn) myPinsBtn.style.display = '';+ revealMyPinsBtn();}});}@@ -993,65 +1012,123 @@ function updateNearbyBadge() {}// ── My Pins management ────────────────────────────────────────────────────+//+// Anonymous ownership: pins are tied to the localStorage device token, so a+// visitor can browse and delete the pins they placed from this device even+// after a reload — no account needed. The endpoint also unions in any pins the+// user placed while signed in.++const TRASH_SVG = '<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><polyline points="3 6 5 6 21 6"/><path d="M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6"/><path d="M10 11v6M14 11v6"/><path d="M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"/></svg>';++// Haversine distance in metres between two GPS points+function haversineMeters(lat1, lng1, lat2, lng2) {+ const R = 6371000;+ const dLat = (lat2 - lat1) * Math.PI / 180;+ const dLng = (lng2 - lng1) * Math.PI / 180;+ const a = Math.sin(dLat / 2) ** 2 ++ Math.cos(lat1 * Math.PI / 180) * Math.cos(lat2 * Math.PI / 180) * Math.sin(dLng / 2) ** 2;+ return R * 2 * Math.atan2(Math.sqrt(a), Math.sqrt(1 - a));+}++function relativeTime(iso) {+ const t = new Date(iso).getTime();+ if (!isFinite(t)) return '';+ const secs = Math.max(0, Math.round((Date.now() - t) / 1000));+ if (secs < 60) return 'just now';+ const mins = Math.round(secs / 60);+ if (mins < 60) return `${mins}m ago`;+ const hrs = Math.round(mins / 60);+ if (hrs < 24) return `${hrs}h ago`;+ return `${Math.round(hrs / 24)}d ago`;+}++function _pinMetaLine(p) {+ const parts = [];+ if (gpsState.ready && isFinite(p.lat) && isFinite(p.lng)) {+ parts.push(`${Math.round(haversineMeters(gpsState.lat, gpsState.lng, p.lat, p.lng))}m away`);+ }+ if (p.placed_at) parts.push(relativeTime(p.placed_at));+ if (!p.expires_at) parts.push('permanent');+ return parts.join(' · ');+}async function loadMyPins() {- const list = document.getElementById('irl-mypins-list');- if (!list) return;- list.innerHTML = '<p class="irl-mypins-empty">Loading…</p>';+ if (!_deviceToken) return [];try {- const r = await fetch('/api/irl/pins?mine=1', { credentials: 'include' });- if (!r.ok) {- list.innerHTML = '<p class="irl-mypins-empty">Sign in to view your pins</p>';- return;- }- const { pins } = await r.json();- if (!pins.length) {- list.innerHTML = '<p class="irl-mypins-empty">No active pins</p>';- return;- }- list.innerHTML = pins.map(p => `<div class="irl-pin-row" data-pid="${_escHtml(p.id)}">- <div class="irl-pin-info">- <div class="irl-pin-name">${_escHtml(p.avatar_name || 'Agent')}</div>- ${p.caption ? `<div class="irl-pin-caption">${_escHtml(p.caption)}</div>` : ''}- <div class="irl-pin-meta">${p.expires_at ? `Expires ${new Date(p.expires_at).toLocaleDateString()}` : 'Permanent'}</div>- </div>- <button class="irl-pin-del" data-del="${_escHtml(p.id)}" type="button">Remove</button>- </div>`).join('');+ const r = await fetch(`/api/irl/pins/mine?deviceToken=${encodeURIComponent(_deviceToken)}`, {+ credentials: 'include',+ });+ if (!r.ok) return [];+ return (await r.json()).pins ?? [];} catch {- list.innerHTML = '<p class="irl-mypins-empty">Failed to load</p>';+ return [];}}-document.getElementById('irl-mypins-btn')?.addEventListener('click', () => {+function renderMyPins(pins) {+ const list = document.getElementById('irl-mypins-list');+ if (!list) return;+ if (!pins.length) {+ list.innerHTML = '<p class="irl-mypins-empty">No active pins yet — pin your agent to a real-world spot and it shows up here.</p>';+ return;+ }+ list.innerHTML = pins.map(p => `<div class="irl-pin-row" data-pid="${_escHtml(p.id)}">+ <div class="irl-pin-info">+ <div class="irl-pin-name">${_escHtml(p.avatar_name || 'Agent')}</div>+ ${p.caption ? `<div class="irl-pin-caption">${_escHtml(p.caption)}</div>` : ''}+ <div class="irl-pin-meta">${_escHtml(_pinMetaLine(p))}</div>+ </div>+ <button class="irl-pin-del" data-del="${_escHtml(p.id)}" type="button" aria-label="Delete this pin">${TRASH_SVG}</button>+ </div>`).join('');+}++async function openMyPinsSheet() {const sheet = document.getElementById('irl-mypins-sheet');- if (!sheet) return;+ const list = document.getElementById('irl-mypins-list');+ if (!sheet || !list) return;sheet.classList.add('is-open');- loadMyPins();-});+ list.innerHTML = '<p class="irl-mypins-empty">Loading…</p>';+ renderMyPins(await loadMyPins());+}++async function deleteMyPin(id, btn) {+ if (btn) { btn.disabled = true; btn.innerHTML = '…'; }+ const r = await fetch(+ `/api/irl/pins?id=${encodeURIComponent(id)}&deviceToken=${encodeURIComponent(_deviceToken ?? '')}`,+ { method: 'DELETE', credentials: 'include' },+ ).catch(() => null);+ if (!r?.ok) {+ if (btn) { btn.disabled = false; btn.innerHTML = TRASH_SVG; }+ setStatus('Could not delete that pin', { error: true });+ return;+ }+ // If we just deleted the avatar currently anchored in this session, clear it.+ if (gpsPin?.id === id) setLocked(false);++ btn?.closest('.irl-pin-row')?.remove();+ const list = document.getElementById('irl-mypins-list');+ if (list && !list.querySelector('.irl-pin-row')) {+ list.innerHTML = '<p class="irl-mypins-empty">No active pins</p>';+ }+ setStatus('Pin removed');+}++// Reveal the My pins control once GPS is live and this device has a token.+function revealMyPinsBtn() {+ if (!_deviceToken) return;+ const btn = document.getElementById('irl-mypins-btn');+ if (btn) btn.style.display = '';+}++document.getElementById('irl-mypins-btn')?.addEventListener('click', openMyPinsSheet);document.getElementById('irl-mypins-close')?.addEventListener('click', () => {document.getElementById('irl-mypins-sheet')?.classList.remove('is-open');});-document.getElementById('irl-mypins-list')?.addEventListener('click', async (e) => {+document.getElementById('irl-mypins-list')?.addEventListener('click', (e) => {const btn = e.target.closest('[data-del]');- if (!btn) return;- const id = btn.dataset.del;- btn.disabled = true;- btn.textContent = '…';- const r = await fetch(`/api/irl/pins?id=${encodeURIComponent(id)}`, {- method: 'DELETE', credentials: 'include',- }).catch(() => null);- if (r?.ok) {- btn.closest('.irl-pin-row')?.remove();- if (!document.getElementById('irl-mypins-list')?.querySelector('.irl-pin-row')) {- const list = document.getElementById('irl-mypins-list');- if (list) list.innerHTML = '<p class="irl-mypins-empty">No active pins</p>';- }- } else {- btn.disabled = false;- btn.textContent = 'Remove';- }+ if (btn) deleteMyPin(btn.dataset.del, btn);});// ── Interaction sheet ─────────────────────────────────────────────────────@@ -1101,6 +1178,27 @@ document.getElementById('irl-sheet-pay')?.addEventListener('click', async (e) =>btn.disabled = true;const origText = btn.textContent;++ // Gate on an authorized wallet before signing. The x402 adapter would prompt+ // lazily on first sign, but doing it up front gives the user a clear connect+ // step and lets us bail cleanly (button re-enabled) if they decline.+ btn.textContent = 'Connecting…';+ try {+ const accounts = await window.ethereum.request({ method: 'eth_requestAccounts' });+ if (!Array.isArray(accounts) || !accounts.length) {+ setStatus('Connect your wallet to pay via x402', { error: true });+ btn.disabled = false;+ btn.textContent = origText;+ return;+ }+ } catch (err) {+ const m = err?.message ?? String(err);+ setStatus(/reject|denied|4001/i.test(m) ? 'Wallet connection cancelled' : `Couldn't connect wallet — ${m}`, { error: true });+ btn.disabled = false;+ btn.textContent = origText;+ return;+ }+btn.textContent = 'Sending…';try {const { withX402 } = await import('../packages/x402-fetch/dist/index.esm.js');@@ -1304,18 +1402,14 @@ function tick() {// ── Boot ──────────────────────────────────────────────────────────────────initGPS();-// Show My Pins button if the authenticated user already has saved pins-fetch('/api/irl/pins?mine=1', { credentials: 'include' })- .then(r => r.ok ? r.json() : null)- .then(d => {- if (d?.pins?.length) {- const btn = document.getElementById('irl-mypins-btn');- if (btn) btn.style.display = '';- }- })- .catch(() => {});+// Reveal My pins on load if this device already owns pins — management must+// survive a reload (and a denied GPS prompt). The GPS-ready path reveals it too.+loadMyPins().then(pins => { if (pins.length) revealMyPinsBtn(); });-loadAvatar()+// URL ?avatar= wins over the saved session (an explicit link is intentional);+// otherwise fall back to whatever avatar was active last visit.+const _targetAvatarId = avatarIdParam || _savedSession?.avatarId || null;+loadAvatar(_targetAvatarId).then(() => {_restoreSession();requestAnimationFrame(tick);diff --git a/tasks/nvidia-nim/probes/trellis.md b/tasks/nvidia-nim/probes/trellis.mdindex f81a507d6..5402d4673 100644--- a/tasks/nvidia-nim/probes/trellis.md+++ b/tasks/nvidia-nim/probes/trellis.md@@ -137,3 +137,79 @@ The official schema (docs.api.nvidia.com/nim/reference/microsoft-trellis-infer)The NVCF asset upload handshake itself works (asset create + presigned PUT both 200) —it is the TRELLIS preview function that refuses non-example references.++---++## Addendum 2026-06-16 (artifact-shape drift + hardening verification)++**Symptom.** Prod logs showed the free text→3D seed lane failing every tick with:++```+[nvidia] sync 200 but no GLB artifact — json keys=["artifacts"]+```++i.e. HTTP 200 with `{ "artifacts": [...] }`, but the array item no longer matched the+2026-06-11 `{ base64 }` shape recorded in §5. The hosted NVCF preview had drifted its+artifact envelope. `extractGlbBase64()` was hardened (commits `c8f5615c` CDN-URL ++better diagnostic, `e4eb831c` bare-string artifact, `fbbae6ed` numeric-key object) to+accept the full union of observed shapes and to emit a precise diagnostic on any future+drift:++```+[nvidia] sync 200 but no GLB artifact — json keys=[...] artifact[0]=[...]+```++The accepted shapes are now (any one yields GLB bytes → R2 persist → durable URL):++| shape | example |+|---|---|+| inline base64 (original) | `{ artifacts: [ { base64: "<b64>" } ] }` |+| inline base64 under `data` | `{ artifacts: [ { data: "<b64>" } ] }` |+| bare string in the array | `{ artifacts: [ "<b64>" ] }` |+| URL-based (CDN) | `{ artifacts: [ { url: "https://…/x.glb" } ] }` → fetched + buffered |+| numeric-key object | `{ artifacts: { "0": { base64 | url } } }` |+| raw bytes | `Content-Type: model/gltf-binary` / `octet-stream`, body is the GLB |++**Live verification (2026-06-16, against deployed prod, the 09:19 build carrying+`c8f5615c` + `e4eb831c`):**++1. Direct forge probe — `POST https://three.ws/api/forge`+ `{ prompt: "a small red cube, studio lighting", tier: "draft", path: "image" }`:++ ```json+ { "job_id": null, "status": "done", "backend": "nvidia",+ "creation_id": "d1ad96d7-…", "durable": true, "mode": "text_to_3d",+ "glb_url": "https://three.ws/cdn/forge/…/d1ad96d7-….glb", "eta_seconds": 13 }+ ```+ The persisted GLB fetched back at **3,627,288 bytes**, magic `glTF` (valid binary glTF v2).++2. Autonomous seed cron — prod runtime logs show+ `GET /api/cron/forge-seed-cron → 200` immediately followed by+ `GET /cdn/forge/nvidia/<uuid>.glb → 200` (the `forge/nvidia/<uuid>.glb` key is+ `persistGlb()`'s output) — the per-minute cron is seeding real NVIDIA GLBs. No+ `[nvidia] sync 200 but no GLB artifact` lines remain.++**Note on the upstream raw shape.** The exact current `artifact[0]` keys were *not*+re-confirmed against `ai.api.nvidia.com` directly in this pass: `vercel env pull` returns+`NVIDIA_API_KEY` (and all sensitive vars) **blank** in this environment, so no out-of-band+key was available to hit the upstream endpoint. The lane is nonetheless verified working+end-to-end in prod (above), and the extractor accepts every shape NVIDIA has been seen to+return. To capture the precise raw envelope when a real key is on hand, run §7 below or:++```bash+# requires a real NVIDIA_API_KEY in the environment+node - <<'EOF'+const res = await fetch('https://ai.api.nvidia.com/v1/genai/microsoft/trellis', {+ method: 'POST',+ headers: { authorization: `Bearer ${process.env.NVIDIA_API_KEY}`,+ accept: 'application/json', 'content-type': 'application/json' },+ body: JSON.stringify({ mode: 'text', prompt: 'a small red cube, studio lighting',+ ss_sampling_steps: 10, slat_sampling_steps: 10, output_format: 'glb' }),+ signal: AbortSignal.timeout(60_000),+});+const b = await res.json();+const a0 = b.artifacts?.[0];+console.log('status', res.status, 'top', Object.keys(b),+ 'artifact[0]', typeof a0 === 'object' ? Object.keys(a0) : `${typeof a0}:${String(a0).slice(0,40)}`);+EOF+```diff --git a/tests/api/dance-tip.test.js b/tests/api/dance-tip.test.jsindex 3ef734ba9..5710eac80 100644--- a/tests/api/dance-tip.test.js+++ b/tests/api/dance-tip.test.js@@ -36,7 +36,7 @@ describe('STYLES — registry', () => {}});- it('declares the three pole choreography sequence styles', () => {+ it('declares the three choreographed sequence styles', () => {for (const key of POLE_KEYS) {const style = STYLES[key];expect(style, `${key} missing from STYLES`).toBeTruthy();@@ -51,33 +51,52 @@ describe('STYLES — registry', () => {expect(step.clip.length).toBeGreaterThan(0);expect(step.durationSec).toBeGreaterThan(0);}+ // durationSec must equal the sum of the steps so the ticket's+ // endsAt and the audio loop stay aligned with the choreography.+ const total = style.sequence.reduce((acc, s) => acc + s.durationSec, 0);+ expect(total, `${key} durationSec must equal its step sum`).toBe(style.durationSec);}});- it('spin sequence matches the documented (pole-spin, pole-bow) chain', () => {+ // Invariant that would have caught the shipped-but-unperformable bug: every+ // clip a paid style chains MUST be a real, deployed manifest clip the dancer+ // rig can drive — otherwise the tip settles and the dancer stands frozen.+ // `idle`/`walk` are stage transitions, not danceable styles, so they're not+ // valid routine clips.+ it('only references clips that exist in the deployed animation manifest', () => {+ const PERFORMABLE = new Set(['dance', 'rumba', 'silly', 'thriller', 'capoeira']);+ for (const [key, style] of Object.entries(STYLES)) {+ const clips = style.sequence ? style.sequence.map((s) => s.clip) : [style.clip];+ for (const clip of clips) {+ expect(PERFORMABLE.has(clip), `${key} references undeployed clip "${clip}"`).toBe(true);+ }+ }+ });++ it('spin chains capoeira → dance', () => {expect(STYLES.spin.sequence).toEqual([- { clip: 'pole-spin', durationSec: 8 },- { clip: 'pole-bow', durationSec: 2 },+ { clip: 'capoeira', durationSec: 6 },+ { clip: 'dance', durationSec: 4 },]);expect(STYLES.spin.durationSec).toBe(10);});- it('climb sequence matches (pole-climb, pole-invert, pole-bow)', () => {+ it('climb chains thriller → capoeira → dance', () => {expect(STYLES.climb.sequence).toEqual([- { clip: 'pole-climb', durationSec: 5 },- { clip: 'pole-invert', durationSec: 6 },- { clip: 'pole-bow', durationSec: 2 },+ { clip: 'thriller', durationSec: 7 },+ { clip: 'capoeira', durationSec: 4 },+ { clip: 'dance', durationSec: 3 },]);- expect(STYLES.climb.durationSec).toBe(13);+ expect(STYLES.climb.durationSec).toBe(14);});- it('combo sequence chains spin → climb → invert → floorwork → bow', () => {+ it('combo chains rumba → capoeira → thriller → silly → dance', () => {expect(STYLES.combo.sequence.map((s) => s.clip)).toEqual([- 'pole-spin',- 'pole-climb',- 'pole-invert',- 'pole-floorwork',- 'pole-bow',+ 'rumba',+ 'capoeira',+ 'thriller',+ 'silly',+ 'dance',]);expect(STYLES.combo.durationSec).toBe(18);// Sum of step durations matches the advertised total.@@ -101,15 +120,15 @@ describe('pickStyle', () => {expect(s.sequence).toBeUndefined();});- it('returns sequence + first-step clip for a pole sequence style', () => {+ it('returns sequence + first-step clip for a choreographed style', () => {const s = pickStyle('spin');expect(s.key).toBe('spin');- expect(s.clip).toBe('pole-spin'); // first step lifted as legacy `clip`+ expect(s.clip).toBe('capoeira'); // first step lifted as legacy `clip`expect(s.loop).toBe(false);expect(s.track).toBe('pole');expect(s.sequence).toEqual([- { clip: 'pole-spin', durationSec: 8 },- { clip: 'pole-bow', durationSec: 2 },+ { clip: 'capoeira', durationSec: 6 },+ { clip: 'dance', durationSec: 4 },]);});@@ -206,16 +225,16 @@ describe('buildTicket', () => {expect(ticket.dance).toBe('climb');// `clip` carries the first step's clip for legacy consumers + the// club_tips ledger row.- expect(ticket.clip).toBe('pole-climb');+ expect(ticket.clip).toBe('thriller');expect(ticket.loop).toBe(false);- expect(ticket.durationSec).toBe(13);+ expect(ticket.durationSec).toBe(14);expect(ticket.track).toBe('pole');expect(ticket.sequence).toEqual([- { clip: 'pole-climb', durationSec: 5 },- { clip: 'pole-invert', durationSec: 6 },- { clip: 'pole-bow', durationSec: 2 },+ { clip: 'thriller', durationSec: 7 },+ { clip: 'capoeira', durationSec: 4 },+ { clip: 'dance', durationSec: 3 },]);- expect(ticket.endsAt).toBe('2026-05-21T00:00:13.000Z');+ expect(ticket.endsAt).toBe('2026-05-21T00:00:14.000Z');});it('defaults payer + requirement fields to null when absent', () => {diff --git a/vercel.json b/vercel.jsonindex 40454f15c..1df49e7fa 100644--- a/vercel.json+++ b/vercel.json@@ -166,12 +166,12 @@"api/sniper/history.js": {"maxDuration": 20},+ "api/irl/pins.js": {+ "maxDuration": 15+ },"api/**/*.js": {"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}","maxDuration": 30- },- "api/irl/pins.js": {- "maxDuration": 15}},"routes": [@@ -393,6 +393,10 @@"src": "/api/agents/solana-card","dest": "/api/agents/solana/[action]?action=card"},+ {+ "src": "/api/agents/solana-registration-card",+ "dest": "/api/agents/solana/[action]?action=registration-card"+ },{"src": "/api/agents/solana-price-history","dest": "/api/agents/solana/[action]?action=price-history"@@ -1915,6 +1919,10 @@"src": "/api/social/sentiment-pulse","dest": "/api/social/sentiment-pulse.js"},+ {+ "src": "/api/irl/pins/mine",+ "dest": "/api/irl/pins.js"+ },{"src": "/api/irl/pins","dest": "/api/irl/pins.js"