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
Club cover x402, chat tools, style, element, IBM docs, and changelog updates
nirholas770c7ccb0e24
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fd3900da9..5d1add10a 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -19,13 +19,16 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Avatar feet stay planted on the floor** — Fixed your avatar sinking partway through the floor in the Pole Club walk-in — most noticeable in the Clubhouse. The avatar now re-checks the ground beneath it every frame and keeps its feet on the surface as you move between rooms, instead of standing at the height it spawned at. (`/club`) `[fix]`- **Avatars from any tool animate perfectly when uploaded** — 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. (`/avatars`) `[improvement, fix]`- **Avatars now wear hats, glasses, and earrings in every coin world** — 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. (`/play`) `[feature]`+- **Browse and walk into the club as any 3D agent** — The club's agent switcher now has a Browse button that opens the full directory of public 3D agents. Search them, filter by skill or on-chain status, sort by popular/newest/name, and spin each agent's avatar in a live 3D preview before you pick. Choose one and you swap into it instantly — walking up to the club as that agent — instead of being limited to the short quick-switch list. (`/club`) `[feature]`- **Build mode — place, rotate, and delete props in every coin world** — 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. (`/play`) `[feature]`- **Build structures, snap blocks, and share your coin world creation** — 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. (`/play`) `[feature, improvement]`- **Buy a skill, get an on-chain NFT receipt in your wallet** — 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. (`/marketplace`) `[feature]`- **Change a placed agent's outfit from your dashboard — everyone nearby sees it** — 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. (`/dashboard/irl-placements`) `[feature]`- **Chat tool calls no longer break on certain models** — Some models (like GPT OSS 120B) return tool-call arguments as a ready-made object instead of streamed text. Chat assumed text and mangled it into "[object Object]", so tools such as ForgeTextTo3D failed with a JSON parse error. Chat now handles both formats, and a tool that takes no arguments no longer errors either — so generating a model from a prompt works across every model. (`/chat`) `[fix]`- **Choose who dances — visual avatar picker in the Pole Club** — Each pole card now has a thumbnail Change-avatar button that opens a visual gallery picker — the same browse-and-tap experience as the /play avatar selector. Preview the looks as image tiles, then tap one to swap who dances on that pole: each dancer's signature look, a set of built-in rigs, or any public avatar from the community gallery. The dancer swaps to the new model live, right on stage, with no reload, and your picks are remembered per pole on your next visit. The button locks for the few seconds a dancer is mid-routine so a swap never interrupts a paid performance, and any model the animation library can't drive falls back to the default rig automatically. (`/club`) `[feature]`+- **Cleaner avatar loading on embeds** — Embedded 3D agents no longer flash a grey skeleton silhouette while the avatar streams in. The frame now stays clean — showing the poster preview when one is set, or transparent until the avatar paints — so the load-in reads as polished rather than half-built. `[improvement]`- **Clearer pricing on every agent's skills in the marketplace** — 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. (`/marketplace`) `[improvement]`+- **Club door ban list now enforced** — Fixed the paid club door so the ban check actually runs. A wiring error meant the bouncer's on-chain ban lookup threw on every entry and quietly failed open, admitting wallets it should have turned away. The USDC door and the $THREE door now share one bouncer and run the real ban-and-tier check on every cover charge, so banned wallets are stopped at the rope. (`/club`) `[fix, security]`- **Coin world builds now have ownership, caps, and anti-grief protection** — 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. (`/play`) `[feature, improvement]`- **Connect your Solana wallet right from the app header** — 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. (`/app`) `[feature]`- **Connect your Solana wallet right from the marketplace** — 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. (`/marketplace`) `[feature]`@@ -69,7 +72,6 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Nearby agents on IRL now update live — no reload** — 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. (`/irl`) `[feature, improvement]`- **Never lose your way in — a minimap on the walk to the Pole Club** — The walk-in to the Pole Club now has a live minimap in the top-right corner. It shows a top-down radar of the room you're in, your avatar as an arrow that points the way you're facing, and a pulsing line to the door you're headed for — so you always know which way the exit is. It re-fits to each room as you move from the alley to the gallery to the clubhouse, and the door marker turns green once you're in range to enter. (`/club`) `[feature]`- **Pay an IRL agent for its services — and open its full profile — right from the card** — 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. (`/irl`) `[feature]`-- **Pick a 3D agent to drop into any world** — Added a dedicated agent picker to the worlds lobby. Tap “Browse 3D agents” to search the full directory of public agents, filter by skill or on-chain status, sort by popular/newest/name, and spin each agent's avatar in a live 3D preview before you commit. Choose one and you drop into the world wearing its avatar — no more sifting through raw avatars and accessories to find an actual agent. (`/worlds`) `[feature]`- **Place your IRL agent on the real floor with AR anchoring** — 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. (`/irl`) `[feature]`- **Placed objects in coin worlds now survive restarts** — 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. (`/play`) `[feature]`- **Pole Club dancer tips now reliably reach their Solana wallets** — 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. (`/club`) `[fix]`@@ -81,12 +83,13 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **See how many people are viewing a spot with you on IRL** — 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. (`/irl`) `[feature]`- **See your IRL agent's on-chain reputation right from the dashboard** — 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. (`/dashboard/irl-placements`) `[feature]`- **Share a photo straight from the XR viewer** — 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. (`/xr`) `[feature, improvement]`+- **Simpler color picker in advanced controls** — The color pickers in the viewer's advanced controls and the material editor now drop the vertical rainbow hue strip, leaving a single clean saturation-and-brightness field that fills the full picker width. Picking a color is tidier and less cluttered. `[improvement]`- **Sniper dashboard: your live positions now show real-time profit and loss and reconnect on their own** — 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. (`/dashboard/sniper`) `[feature]`- **Sniper now auto-sells coins that graduate off the bonding curve** — 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. (`/dashboard/sniper`) `[fix]`- **Switch your agent mid-walk, and a fix for the avatar that wouldn't stop** — The walk-in to the Pole Club now has an Agent picker in the top-left: choose which avatar you walk in as — from a set of bundled rigs or any public avatar from the gallery — and the model swaps live, mid-stride, with no reload and without losing your place or heading. You can switch as many times as you like, in any room along the way. Also fixed: an avatar that could keep walking on its own after the window lost focus or you opened the cover-charge card — held keys are now released cleanly so she always stops when you do. (`/club`) `[feature, fix]`- **Tag mini-game in /play worlds** — 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. (`/play`) `[feature]`- **Tapping an IRL agent is now reliable — hit the body, not just the tiny label** — 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. (`/irl`) `[improvement]`-- **The IBM x402 demo grew a 3D agent that pays for itself** — The live x402 demo at three.ws/ibm/x402-demo now has a 3D AI agent below the payment card. When you run the $0.001 call, the agent watches the same on-chain settlement you do and reacts in real time — it celebrates and announces the payment the moment it clears. You can also ask it how x402 and $THREE work. Under it, three new rooms — Forge (text to 3D), Play (live worlds), and IRL (augmented reality) — load the real three.ws surfaces inline on a click, or open full-screen. Everything still loads from three.ws with no build step. (`/ibm/x402-demo`) `[feature]`+- **The IBM page became a live showcase — five three.ws demos in one place** — The IBM page at three.ws/ibm/x402-demo is now a full showcase of the IBM × three.ws partnership: five real, unmocked demos you can try in sequence. Pay a tenth of a cent over x402 and watch it settle on-chain; meet a 3D AI agent that pays for its own data and celebrates the moment your payment clears; then Forge (turn text into a 3D model), Play (a shared 3D world), and IRL (an agent in augmented reality) each run full-size right on the page, with a one-tap full-screen. Everything still loads from three.ws with no build step. (`/ibm/x402-demo`) `[feature]`- **The Oracle's proof pages — wins, backtest, and live activity — load again** — 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. (`/oracle`) `[fix]`- **The sniper now runs as an always-on service — armed strategies fire in real time** — 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. (`/dashboard/sniper`) `[infra, feature]`- **Try x402 live — pay a tenth of a cent to call a real API from your own wallet** — 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. (`/ibm/x402-demo`) `[feature, sdk]`diff --git a/api/x402/club-cover.js b/api/x402/club-cover.jsindex 38c0a5675..c4deb6026 100644--- a/api/x402/club-cover.js+++ b/api/x402/club-cover.js@@ -17,7 +17,14 @@ import { buildBazaarSchema } from '../_lib/x402-spec.js';import { installAccessControl } from '../_lib/x402/access-control.js';import { withService } from '../_lib/x402/bazaar-helpers.js';import { priceFor } from '../_lib/x402-prices.js';-import { issueCoverPass, PASS_TTL_SEC } from '../_lib/club/cover-pass.js';+import {+ issueCoverPass,+ PASS_TTL_SEC,+ normalizeWallet,+ findBan,+ visitsFor,+ tierFor,+} from '../_lib/club/cover-pass.js';const ROUTE = '/api/x402/club-cover';@@ -94,50 +101,9 @@ const BAZAAR = {}),};-// Normalize a wallet for ban/activity lookups. Lowercased so a Base 0x address-// matches regardless of EIP-55 checksum casing; base58 Solana addresses are-// case-sensitive but never collide across the lowercase fold in practice.-function normalizeWallet(w) {- return String(w || '').trim().toLowerCase();-}--/**- * Look the payer's wallet up against the ban list. Fails OPEN: a missing- * table or a transient DB error must not lock the whole club out, so any- * error resolves to "not banned". Returns the matching row or null.- */-async function findBan(wallet) {- if (!wallet) return null;- try {- const rows = await sql`select wallet, reason from club_bans where wallet = ${wallet} limit 1`;- return rows?.[0] ?? null;- } catch (err) {- console.warn('[club-cover] ban lookup failed (fail-open)', err?.message || err);- return null;- }-}--/**- * Count this wallet's prior settled club tips to assign a door tier. Pure- * read of the existing club_tips ledger — the same on-chain-settled payments- * that drive the live feed. Fails soft to 0 visits / newcomer.- */-async function visitsFor(wallet) {- if (!wallet) return 0;- try {- const rows = await sql`select count(*)::int as n from club_tips where lower(payer) = ${wallet}`;- return rows?.[0]?.n ?? 0;- } catch (err) {- console.warn('[club-cover] visit count failed (soft 0)', err?.message || err);- return 0;- }-}--function tierFor(visits) {- if (visits >= 10) return 'vip';- if (visits >= 1) return 'regular';- return 'newcomer';-}+// normalizeWallet / findBan / visitsFor / tierFor live in+// ../_lib/club/cover-pass.js so the USDC door here and the $THREE door share+// one bouncer (and one DB-backed ban/tier lookup). Imported above.export const BAZAAR_SCHEMA = BAZAAR;diff --git a/chat/src/tools.js b/chat/src/tools.jsindex d05522805..86b4ed2c0 100644--- a/chat/src/tools.js+++ b/chat/src/tools.js@@ -1208,6 +1208,155 @@ return { mint, signature, metadataUri, explorer: 'https://solscan.io/tx/' + sign},],},+ {+ id: 'forge-avatar',+ name: 'Text → 3D Avatar',+ description:+ 'Generate a real, textured 3D avatar from a text prompt, auto-rig it into an animation-ready character, and save it to your three.ws avatar library — the full text → mesh → rig → library pipeline, rendered in an orbit viewer with a skeleton toggle.',+ schema: [+ {+ clientDefinition: {+ id: 'pack-forge-avatar-001',+ name: 'ForgeAvatar',+ description: 'Generate a 3D avatar (GLB) from a text prompt, auto-rig it, save it to the avatar library, and render it in an orbit viewer.',+ arguments: [+ { name: 'prompt', type: 'string', description: 'Single-subject avatar description, e.g. "a friendly cyberpunk fox mascot, full body". 3–1000 chars.' },+ { name: 'name', type: 'string', description: 'Optional name for the saved avatar (defaults to the prompt).' },+ { name: 'save', type: 'boolean', description: 'Save the rigged avatar to the signed-in user library (default true). Set false to only preview.' },+ ],+ body: `const prompt = String(args.prompt || '').trim();+if (prompt.length < 3) throw new Error('prompt required (3–1000 chars)');+const wantSave = args.save !== false;+const avatarName = (String(args.name || '').trim() || prompt).slice(0, 80);+async function pollForge(jobId, tries) {+ let state = null;+ for (let i = 0; i < tries; i++) {+ await new Promise((r) => setTimeout(r, 2500));+ const poll = await fetch('/api/forge?job=' + encodeURIComponent(jobId), { credentials: 'include' });+ if (!poll.ok) throw new Error('Forge poll failed: ' + poll.status);+ state = await poll.json();+ if (state.status === 'done' || state.status === 'failed') break;+ }+ return state;+}+const submit = await fetch('/api/forge', { method: 'POST', headers: {'content-type':'application/json'}, credentials: 'include', body: JSON.stringify({ prompt }) });+if (!submit.ok) throw new Error('Forge submit failed: ' + submit.status + ' ' + await submit.text());+const job = await submit.json();+if (!job.job_id) throw new Error('Forge returned no job id');+let state = await pollForge(job.job_id, 75);+if (!state || state.status === 'failed') throw new Error('Generation failed: ' + ((state && state.error) || 'unknown error'));+if (state.status !== 'done') throw new Error('Generation timed out after ~3 minutes — try again or open three.ws/forge');+let glb = state.glb_url;+if (!glb) throw new Error('Job finished without a model URL');+let rigged = false, rigNote = '';+try {+ const rs = await fetch('/api/forge?action=rig', { method: 'POST', headers: {'content-type':'application/json'}, credentials: 'include', body: JSON.stringify({ glb_url: glb }) });+ if (rs.ok) {+ const rj = await rs.json();+ if (rj.job_id) {+ const rstate = await pollForge(rj.job_id, 60);+ if (rstate && rstate.status === 'done' && rstate.glb_url) { glb = rstate.glb_url; rigged = true; }+ else rigNote = (rstate && rstate.error) ? ('Rigging failed (' + rstate.error + ') — using the static mesh.') : 'Rigging did not finish — using the static mesh.';+ } else rigNote = 'Rigging returned no job — using the static mesh.';+ } else if (rs.status === 501) {+ rigNote = 'Auto-rigging is not enabled on this deployment — using the static mesh.';+ } else {+ rigNote = 'Rigging unavailable (' + rs.status + ') — using the static mesh.';+ }+} catch (e) { rigNote = 'Rigging error — using the static mesh.'; }+let savedUrl = '', saveNote = '';+if (wantSave) {+ try {+ const resp = await fetch(glb);+ if (!resp.ok) throw new Error('download ' + resp.status);+ const buf = await resp.arrayBuffer();+ const bytes = buf.byteLength;+ const pres = await fetch('/api/avatar/presign-glb', { method: 'POST', headers: {'content-type':'application/json'}, credentials: 'include', body: JSON.stringify({ content_type: 'model/gltf-binary', bytes, filename: 'avatar.glb' }) });+ if (pres.status === 401) { saveNote = 'Sign in to save this to your avatar library.'; }+ else if (!pres.ok) { saveNote = 'Could not prepare storage (' + pres.status + ').'; }+ else {+ const presign = await pres.json();+ const put = await fetch(presign.upload_url, { method: 'PUT', headers: {'content-type':'model/gltf-binary'}, body: buf });+ if (!put.ok) { saveNote = 'Upload to storage failed (' + put.status + ').'; }+ else {+ const cr = await fetch('/api/avatars', { method: 'POST', headers: {'content-type':'application/json'}, credentials: 'include', body: JSON.stringify({ name: avatarName, storage_key: presign.storage_key, size_bytes: bytes, content_type: 'model/gltf-binary', visibility: 'unlisted', source: 'studio', source_meta: { source_prompt: prompt, rigged } }) });+ if (cr.status === 401) { saveNote = 'Sign in to save this to your avatar library.'; }+ else if (!cr.ok) { saveNote = 'Could not save to library (' + cr.status + ').'; }+ else { const a = await cr.json(); const id = a && a.avatar && a.avatar.id; if (id) savedUrl = '/discover/avatar/' + id; else saveNote = 'Saved, but no id returned.'; }+ }+ }+ } catch (e) { saveNote = 'Save skipped: ' + (e && e.message ? e.message : String(e)); }+}+const statusBits = [rigged ? 'Rigged ✓' : 'Static mesh'];+if (rigNote) statusBits.push(rigNote);+if (savedUrl) statusBits.push('Saved to your library ✓');+else if (saveNote) statusBits.push(saveNote);+const statusLine = statusBits.join(' • ');+const links = ['<a href="' + glb + '" download="avatar.glb">Download GLB</a>'];+if (savedUrl) links.push('<a href="' + savedUrl + '" target="_blank" rel="noopener">View in library ↗</a>');+links.push('<a href="https://three.ws/forge?prompt=' + encodeURIComponent(prompt) + '" target="_blank" rel="noopener">Open in Forge ↗</a>');+const linksHtml = links.join('');+const html = \`<!DOCTYPE html><html><head><meta charset="utf-8"><style>+html,body{margin:0;height:100%;background:#0b0d10;color:#e5e7eb;font-family:ui-sans-serif,system-ui,sans-serif;overflow:hidden}+#hud{position:absolute;left:12px;top:10px;font-size:13px;background:rgba(0,0,0,.4);padding:6px 10px;border-radius:8px;max-width:72%}+#hud .sub{opacity:.72;margin-top:4px;font-size:11px}+#bar{position:absolute;left:12px;bottom:10px;display:flex;gap:8px;font-size:12px;flex-wrap:wrap}+#bar a{color:#e5e7eb;background:rgba(0,0,0,.4);padding:6px 10px;border-radius:8px;text-decoration:none;border:1px solid rgba(255,255,255,.15)}+#bar a:hover{background:rgba(255,255,255,.12)}+#tip{position:absolute;right:12px;top:10px;font-size:11px;opacity:.6;background:rgba(0,0,0,.4);padding:5px 9px;border-radius:8px}+</style></head><body>+<div id="hud">\${prompt.replace(/</g,'<')}<div class="sub">\${statusLine.replace(/</g,'<')}</div></div>+<div id="tip"></div>+<div id="bar">\${linksHtml}</div>+<script type="module">+import * as THREE from 'https://esm.sh/[email protected]';+import { OrbitControls } from 'https://esm.sh/[email protected]/examples/jsm/controls/OrbitControls.js';+import { GLTFLoader } from 'https://esm.sh/[email protected]/examples/jsm/loaders/GLTFLoader.js';+const renderer = new THREE.WebGLRenderer({ antialias: true });+renderer.setPixelRatio(devicePixelRatio); renderer.setSize(innerWidth, innerHeight); renderer.setClearColor(0x0b0d10);+document.body.appendChild(renderer.domElement);+const scene = new THREE.Scene();+const cam = new THREE.PerspectiveCamera(45, innerWidth/innerHeight, 0.01, 1000); cam.position.set(0, 1.2, 3);+const ctl = new OrbitControls(cam, renderer.domElement); ctl.enableDamping = true; ctl.autoRotate = true; ctl.autoRotateSpeed = 1.6;+addEventListener('resize', () => { renderer.setSize(innerWidth, innerHeight); cam.aspect = innerWidth/innerHeight; cam.updateProjectionMatrix(); });+addEventListener('pointerdown', () => { ctl.autoRotate = false; }, { once: true });+scene.add(new THREE.AmbientLight(0xffffff, 0.7));+const k = new THREE.DirectionalLight(0xffffff, 1.1); k.position.set(3, 4, 5); scene.add(k);+const gltf = await new GLTFLoader().loadAsync(\${JSON.stringify(glb)});+const m = gltf.scene;+const box = new THREE.Box3().setFromObject(m);+const size = box.getSize(new THREE.Vector3()).length();+const center = box.getCenter(new THREE.Vector3());+m.position.sub(center); cam.position.set(0, size * 0.25, size * 1.4); ctl.target.set(0,0,0);+scene.add(m);+let skel = null;+m.traverse((o) => { if (!skel && o.isSkinnedMesh && o.skeleton) { skel = new THREE.SkeletonHelper(m); skel.visible = false; scene.add(skel); } });+const tip = document.getElementById('tip');+if (skel) { tip.textContent = 'Press S to toggle skeleton'; addEventListener('keydown', (e) => { if ((e.key === 's' || e.key === 'S') && skel) skel.visible = !skel.visible; }); }+else { tip.remove(); }+function tick(){ ctl.update(); renderer.render(scene, cam); requestAnimationFrame(tick); }+tick();+</script></body></html>\`;+return { contentType: 'text/html', content: html };`,+ },+ type: 'function',+ function: {+ name: 'ForgeAvatar',+ description:+ 'Generate a real 3D AVATAR from a text prompt: forge a textured GLB, auto-rig it into an animation-ready character, save it to the signed-in user three.ws avatar library, and render it in an interactive orbit viewer (press S for the skeleton). Use whenever the user asks to make, create, or generate an AVATAR, character, or agent body from a description (use ForgeTextTo3D instead for a generic object/prop). Takes ~1–3 min. Describe ONE full-body subject with material and style. If the user is not signed in, it still returns the rigged model and notes that sign-in is needed to save.',+ parameters: {+ type: 'object',+ properties: {+ prompt: { type: 'string', description: 'Single-subject, full-body avatar description, e.g. "a friendly cyberpunk fox mascot, full body". 3–1000 characters.' },+ name: { type: 'string', description: 'Optional name for the saved avatar. Defaults to the prompt.' },+ save: { type: 'boolean', description: 'Whether to save the rigged avatar to the library (default true).' },+ },+ required: ['prompt'],+ },+ },+ },+ ],+ },{id: 'wallet-balances',name: 'Wallet Balances',diff --git a/data/changelog.json b/data/changelog.jsonindex 12b7cb47b..316b5daa7 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -3,12 +3,38 @@"entries": [{"date": "2026-06-17",- "title": "Pick a 3D agent to drop into any world",- "summary": "Added a dedicated agent picker to the worlds lobby. Tap “Browse 3D agents” to search the full directory of public agents, filter by skill or on-chain status, sort by popular/newest/name, and spin each agent's avatar in a live 3D preview before you commit. Choose one and you drop into the world wearing its avatar — no more sifting through raw avatars and accessories to find an actual agent.",+ "title": "Simpler color picker in advanced controls",+ "summary": "The color pickers in the viewer's advanced controls and the material editor now drop the vertical rainbow hue strip, leaving a single clean saturation-and-brightness field that fills the full picker width. Picking a color is tidier and less cluttered.",+ "tags": [+ "improvement"+ ]+ },+ {+ "date": "2026-06-17",+ "title": "Club door ban list now enforced",+ "summary": "Fixed the paid club door so the ban check actually runs. A wiring error meant the bouncer's on-chain ban lookup threw on every entry and quietly failed open, admitting wallets it should have turned away. The USDC door and the $THREE door now share one bouncer and run the real ban-and-tier check on every cover charge, so banned wallets are stopped at the rope.",+ "tags": [+ "fix",+ "security"+ ],+ "link": "/club"+ },+ {+ "date": "2026-06-17",+ "title": "Cleaner avatar loading on embeds",+ "summary": "Embedded 3D agents no longer flash a grey skeleton silhouette while the avatar streams in. The frame now stays clean — showing the poster preview when one is set, or transparent until the avatar paints — so the load-in reads as polished rather than half-built.",+ "tags": [+ "improvement"+ ]+ },+ {+ "date": "2026-06-17",+ "title": "Browse and walk into the club as any 3D agent",+ "summary": "The club's agent switcher now has a Browse button that opens the full directory of public 3D agents. Search them, filter by skill or on-chain status, sort by popular/newest/name, and spin each agent's avatar in a live 3D preview before you pick. Choose one and you swap into it instantly — walking up to the club as that agent — instead of being limited to the short quick-switch list.","tags": ["feature"],- "link": "/worlds"+ "link": "/club"},{"date": "2026-06-17",@@ -58,8 +84,8 @@},{"date": "2026-06-17",- "title": "The IBM x402 demo grew a 3D agent that pays for itself",- "summary": "The live x402 demo at three.ws/ibm/x402-demo now has a 3D AI agent below the payment card. When you run the $0.001 call, the agent watches the same on-chain settlement you do and reacts in real time — it celebrates and announces the payment the moment it clears. You can also ask it how x402 and $THREE work. Under it, three new rooms — Forge (text to 3D), Play (live worlds), and IRL (augmented reality) — load the real three.ws surfaces inline on a click, or open full-screen. Everything still loads from three.ws with no build step.",+ "title": "The IBM page became a live showcase — five three.ws demos in one place",+ "summary": "The IBM page at three.ws/ibm/x402-demo is now a full showcase of the IBM × three.ws partnership: five real, unmocked demos you can try in sequence. Pay a tenth of a cent over x402 and watch it settle on-chain; meet a 3D AI agent that pays for its own data and celebrates the moment your payment clears; then Forge (turn text into a 3D model), Play (a shared 3D world), and IRL (an agent in augmented reality) each run full-size right on the page, with a one-tap full-screen. Everything still loads from three.ws with no build step.","tags": ["feature"],diff --git a/pages/club.html b/pages/club.htmlindex 09e109b9e..a78219251 100644--- a/pages/club.html+++ b/pages/club.html@@ -830,10 +830,29 @@.club-agent-select:focus-visible { outline: none; border-color: #ff3bd6; box-shadow: 0 0 0 3px rgba(255, 59, 214, 0.25); }.club-agent-select:disabled { opacity: 0.55; cursor: progress; }.club-agent-select option { background: #120a18; color: #fff; }+ .club-agent-browse {+ display: inline-flex;+ align-items: center;+ gap: 6px;+ padding: 5px 13px 5px 11px;+ border-radius: 999px;+ border: 1px solid rgba(255, 59, 214, 0.35);+ background: rgba(255, 59, 214, 0.12);+ color: #ff9ee8;+ font: 600 12px/1 'Inter', system-ui, sans-serif;+ cursor: pointer;+ white-space: nowrap;+ transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;+ }+ .club-agent-browse svg { flex: none; }+ .club-agent-browse:hover { border-color: rgba(255, 59, 214, 0.7); background: rgba(255, 59, 214, 0.2); color: #fff; }+ .club-agent-browse:focus-visible { outline: none; border-color: #ff3bd6; box-shadow: 0 0 0 3px rgba(255, 59, 214, 0.25); }+ .club-agent-browse:disabled { opacity: 0.55; cursor: progress; }@media (max-width: 560px) {.club-agent-switch { top: 14px; left: 12px; padding: 6px 9px 6px 11px; gap: 7px; }.club-agent-label { display: none; }.club-agent-select { max-width: 132px; font-size: 11px; }+ .club-agent-browse { padding: 5px 11px; font-size: 11px; }}/* Minimap — top-down radar of the room you're in: your avatar, the@@ -1889,6 +1908,10 @@<select id="club-agent-select" class="club-agent-select" aria-label="Choose which agent you walk as"><option value="">Loading…</option></select>+ <button id="club-agent-browse" type="button" class="club-agent-browse" aria-label="Browse all 3D agents">+ <svg viewBox="0 0 16 16" width="13" height="13" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true"><rect x="2" y="2" width="5" height="5" rx="1"/><rect x="9" y="2" width="5" height="5" rx="1"/><rect x="2" y="9" width="5" height="5" rx="1"/><rect x="9" y="9" width="5" height="5" rx="1"/></svg>+ Browse+ </button></div><div id="club-minimap" class="club-minimap" aria-hidden="true"><div class="club-minimap-head">diff --git a/pages/ibm/HOSTING.md b/pages/ibm/HOSTING.mdindex 17b536720..44170bc3e 100644--- a/pages/ibm/HOSTING.md+++ b/pages/ibm/HOSTING.md@@ -9,32 +9,40 @@ host it.> <https://three.ws/ibm/x402-demo>. Compare your hosted copy against it, or link to it> directly if you'd rather not self-host.-## What it demonstrates (one paragraph)+## What it demonstrates-x402 reactivates the dormant HTTP `402 Payment Required` status as a payment rail. A normal-request to a paid endpoint returns `402` with machine-readable terms (amount, asset, network,-recipient). The visitor's wallet signs a gasless stablecoin authorization, the request is-retried with an `X-PAYMENT` header, and the call settles on-chain in about a second — no API-key, no account, no invoice. The page shows the live `402` challenge, runs a real paid call,-and renders the response plus the on-chain transaction receipt.+The page is a **live showcase of the IBM × three.ws partnership** — five real, unmocked demos+presented in sequence, each running against production three.ws systems. The hero frames the+partnership and the lineup; everything below is interactive.-## The 3D agent layer (below the demo)+**Demo 01 · x402 payments.** x402 reactivates the dormant HTTP `402 Payment Required` status as+a payment rail. A normal request to a paid endpoint returns `402` with machine-readable terms+(amount, asset, network, recipient). The visitor's wallet signs a gasless stablecoin+authorization, the request is retried with an `X-PAYMENT` header, and the call settles on-chain+in about a second — no API key, no account, no invoice. The page shows the live `402`+challenge, runs a real paid call, and renders the response plus the on-chain receipt.-Below the payment demo the page embeds three live three.ws product surfaces, all loaded at-runtime from `https://three.ws` (still no build step, still no backend):+## The 3D agent layer (Demos 02–05)-- **A 3D AI agent** — the `<agent-3d>` web component renders a WebGL avatar that runs its own- brain in the browser and **reacts to the payment**: it celebrates and announces the+Below the payment demo the page embeds four more live three.ws surfaces, all loaded at runtime+from `https://three.ws` (still no build step, still no backend):++- **Demo 02 · A 3D AI agent** — the `<agent-3d>` web component renders a WebGL avatar that runs+ its own brain in the browser and **reacts to the payment**: it celebrates and announces thesettlement the moment the visitor's `402` call clears. It lazy-boots only when scrolled intoview, and degrades to a calm skeleton if its script is blocked.-- **Forge / Play / IRL rooms** — three cards that, on click, lazy-load the real- `three.ws/forge`, `three.ws/play`, and `three.ws/irl` surfaces inline in an `<iframe>` (each- with an "open full-screen" fallback). Nothing loads until the visitor asks for it.+- **Demos 03–05 · Forge / Play / IRL** — each is its own full-size section (Creation, Worlds,+ Reality) with an explanation and the real `three.ws/forge`, `three.ws/play`, and+ `three.ws/irl` surface embedded full-width in an `<iframe>`. They lazy-load as each section+ nears the viewport (so three heavy apps never load at once), and each has a one-tap+ **Full screen** button plus a **new-tab** fallback. IRL is AR, so it's best on a phone and+ only prompts for the camera when the visitor chooses to enable it.Because these load the agent runtime, an avatar GLB, the agent's model endpoint, and framedthree.ws pages, the **Tier 2** CSP below adds `https://three.ws` to `frame-src`/`img-src` and-`blob:` to `worker-src`. If you only want the original payment demo and not the agent layer,-delete the `#agent` and `#rooms` `<section>`s plus the `agent-3d.js` `<script>` tag, and the+`blob:` to `worker-src`. If you only want Demo 01 (the payment demo) and not the agent layer,+delete the `#agent`, `#forge`, `#play`, and `#irl` `<section>`s plus the `agent-3d.js`+`<script>` tag, and the**Tier 1** policy is all you need.## What to uploaddiff --git a/pages/ibm/x402-demo.html b/pages/ibm/x402-demo.htmlindex 7b610a980..40c03bf2e 100644--- a/pages/ibm/x402-demo.html+++ b/pages/ibm/x402-demo.html@@ -5,7 +5,7 @@<meta name="viewport" content="width=device-width,initial-scale=1"><meta name="color-scheme" content="light dark"><title>x402 live demo — three.ws × IBM</title>-<meta name="description" content="A live, self-contained x402 demo: pay $0.001 in USDC from your own wallet to call a real three.ws data API. Settled on-chain on Base or Solana. No backend, no account.">+<meta name="description" content="A live, self-contained x402 demo: pay $0.001 in USDC from your own wallet to call a real three.ws data API. Settled on-chain on Solana. No backend, no account."><meta property="og:title" content="x402 live demo — three.ws × IBM"><meta property="og:description" content="Pay $0.001 in USDC from your own wallet to call a real three.ws API. See HTTP 402 micropayments settle on-chain in about a second."><meta property="og:type" content="website">@@ -365,9 +365,9 @@ agent-3d:defined ~ .agent-skel{display:none}<meta property="og:image:height" content="630"><meta name="twitter:card" content="summary_large_image"><meta name="twitter:title" content="x402 Live Demo (IBM × three.ws) · three.ws">- <meta name="twitter:description" content="A self-contained x402 micropayment demo: pay $0.001 USDC from your own wallet — MetaMask on Base or Phantom on Solana — to call a real three.ws data API. Watch the live HTTP 402 challenge, sign a gasless authorization, and see the on-chain settlement receipt. No backend, no account; built as the public face of the IBM × three.ws partnership.">+ <meta name="twitter:description" content="A self-contained x402 micropayment demo: pay $0.001 USDC from your own wallet — MetaMask or Phantom on Solana — to call a real three.ws data API. Watch the live HTTP 402 challenge, sign a gasless authorization, and see the on-chain settlement receipt. No backend, no account; built as the public face of the IBM × three.ws partnership."><meta name="twitter:image" content="https://three.ws/og-image.png">- <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"x402 Live Demo (IBM × three.ws)","description":"A self-contained x402 micropayment demo: pay $0.001 USDC from your own wallet — MetaMask on Base or Phantom on Solana — to call a real three.ws data API. Watch the live HTTP 402 challenge, sign a gasless authorization, and see the on-chain settlement receipt. No backend, no account; built as the public face of the IBM × three.ws partnership.","url":"https://three.ws/ibm/x402-demo","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"x402 Live Demo (IBM × three.ws)","description":"A self-contained x402 micropayment demo: pay $0.001 USDC from your own wallet — MetaMask or Phantom on Solana — to call a real three.ws data API. Watch the live HTTP 402 challenge, sign a gasless authorization, and see the on-chain settlement receipt. No backend, no account; built as the public face of the IBM × three.ws partnership.","url":"https://three.ws/ibm/x402-demo","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script></head><body>@@ -433,7 +433,7 @@ agent-3d:defined ~ .agent-skel{display:none}<div class="inner"><div class="section-tag">Demo 01 · Payments</div><h2 id="demo-h">Buy a <strong>data call</strong> for $0.001</h2>- <p class="section-lead">This calls a real three.ws API — a token-symbol availability check — for one tenth of a cent in USDC, settled on Base or Solana mainnet. Nothing here is mocked: the price below is read live from the server's own 402 response.</p>+ <p class="section-lead">This calls a real three.ws API — a token-symbol availability check — for one tenth of a cent in USDC, settled on Solana mainnet. The price below is read live from the server's own 402 response.</p><div class="demo"><div class="demo-head">@@ -481,7 +481,7 @@ agent-3d:defined ~ .agent-skel{display:none}<!-- requirements --><div class="note"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>- <p>You'll need a browser wallet — <b>MetaMask</b> (for Base) or <b>Phantom</b> (for Solana) — holding at least <b>$0.001 USDC</b> on mainnet. This spends real funds, but only a tenth of a cent. The payment is a gasless signature; the network fee is sponsored by the facilitator. No wallet? You can still watch the 402 challenge above and read the <a href="https://three.ws/docs/x402" target="_blank" rel="noopener">protocol docs</a>.</p>+ <p>You'll need a browser wallet — <b>MetaMask</b> or <b>Phantom</b> (for Solana) — holding at least <b>$0.001 USDC</b> on mainnet. This spends real funds, but only a tenth of a cent. The payment is a gasless signature; the network fee is sponsored by the facilitator. No wallet? You can still watch the 402 challenge above and read the <a href="https://three.ws/docs/x402" target="_blank" rel="noopener">protocol docs</a>.</p></div></div></div>@@ -508,7 +508,7 @@ agent-3d:defined ~ .agent-skel{display:none}background="transparent"width="100%" height="460px"name-plate="on"- instructions="You are Aria, the live guide for the x402 demo on three.ws (an IBM Business Partner). x402 reactivates the dormant HTTP 402 Payment Required status as a payment rail: a request to a paid endpoint returns 402 with machine-readable terms (amount, asset, network, recipient); the wallet signs a gasless USDC authorization; the call is retried with an X-PAYMENT header and settles on Base or Solana in about a second — no key, no account, no invoice. You yourself just paid one tenth of a cent to call a real three.ws API. You can also explain Forge (turn a text prompt into a textured 3D model), Play (drop an agent into a live 3D world), and IRL (place an agent in augmented reality on a phone). The only coin three.ws issues is $THREE — never name, invent, or recommend any other token. Be concise, concrete, and friendly. Two or three sentences per answer."+ instructions="You are Aria, the live guide for the x402 demo on three.ws (an IBM Business Partner). x402 reactivates the dormant HTTP 402 Payment Required status as a payment rail: a request to a paid endpoint returns 402 with machine-readable terms (amount, asset, network, recipient); the wallet signs a gasless USDC authorization; the call is retried with an X-PAYMENT header and settles on Solana in about a second — no key, no account, no invoice. You yourself just paid one tenth of a cent to call a real three.ws API. You can also explain Forge (turn a text prompt into a textured 3D model), Play (drop an agent into a live 3D world), and IRL (place an agent in augmented reality on a phone). The only coin three.ws issues is $THREE — never name, invent, or recommend any other token. Be concise, concrete, and friendly. Two or three sentences per answer."style="--agent-accent:#0f62fe;--agent-surface:rgba(22,22,22,.92);--agent-on-surface:#f4f4f4;--agent-bubble-bg:#ffffff;--agent-bubble-color:#161616;--agent-chat-font:'IBM Plex Sans',system-ui,sans-serif"></agent-3d><div class="agent-skel" aria-hidden="true"><span class="s-head"></span><span class="s-body"></span></div>@@ -530,66 +530,67 @@ agent-3d:defined ~ .agent-skel{display:none}</div></section>-<!-- ══ ROOMS ══ -->-<section class="section" id="rooms" aria-labelledby="rooms-h">+<!-- ══ DEMO 03 · FORGE ══ -->+<section class="section" id="forge" aria-labelledby="forge-h"><div class="inner">- <div class="section-tag">Where agents come from, live, and go</div>- <h2 id="rooms-h">Step into the rest of <strong>three.ws</strong></h2>- <p class="section-lead">The agent above didn't appear from nowhere. Forge built her body, Play is the world she lives in, and IRL puts her in the room with you. Each one is a real, production three.ws surface — load it right here, or open it full-screen.</p>-- <div class="rooms">- <!-- FORGE -->- <div class="room" data-room="forge" data-src="https://three.ws/forge" data-allow="clipboard-write; xr-spatial-tracking; fullscreen">- <div class="room-head">- <div class="room-ico" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><path d="M3 7l9-4 9 4-9 4-9-4z"/><path d="M3 7v10l9 4 9-4V7"/><path d="M12 11v10"/></svg></div>- <h3><span class="verb">Forge · Text → 3D</span>Describe it, get a model</h3>- <p>Type a prompt and Forge returns a textured, downloadable GLB you can orbit, rig, and drop into any agent — bodies like Aria's start here.</p>- </div>- <div class="room-actions">- <button class="room-open" type="button">Open inline →</button>- <a class="room-out" href="https://three.ws/forge" target="_blank" rel="noopener">Full page ↗</a>- </div>- <div class="room-embed">- <div class="embed-bar"><span class="bar-url">three.ws/forge</span><span class="bar-actions"><button type="button" data-fs>⤢ Full screen</button><a class="room-out" href="https://three.ws/forge" target="_blank" rel="noopener" style="display:inline-flex;align-items:center;padding:5px 10px;border:1px solid var(--ibm-divider);border-radius:2px">New tab ↗</a><button type="button" data-close>Close</button></span></div>- <div class="embed-load"><span class="spin" aria-hidden="true"></span><span>Loading Forge…</span></div>- <div class="embed-err">Couldn't load Forge inline. <a href="https://three.ws/forge" target="_blank" rel="noopener">Open it in a new tab ↗</a></div>- </div>+ <div class="section-tag">Demo 03 · Creation</div>+ <h2 id="forge-h">Forge — describe it, get a <strong>3D model</strong></h2>+ <p class="section-lead">Type a sentence and Forge runs a real generation pipeline that returns a textured, downloadable GLB — one you can orbit, rig, inspect in AR, and drop onto any agent. The bodies our agents wear start here. The live tool is below; describe something and watch it build.</p>+ <div class="live-embed" data-src="https://three.ws/forge" data-allow="clipboard-write; xr-spatial-tracking; fullscreen; accelerometer; gyroscope" data-label="Forge — three.ws">+ <div class="embed-bar">+ <span class="bar-url"><span class="dot" aria-hidden="true"></span>three.ws/forge</span>+ <span class="bar-actions">+ <button type="button" data-fs>⤢ Full screen</button>+ <a href="https://three.ws/forge" target="_blank" rel="noopener">New tab ↗</a>+ </span>+ </div>+ <div class="embed-frame">+ <div class="embed-load embed-state"><span class="spin" aria-hidden="true"></span><span>Loading the live Forge tool…</span></div>+ <div class="embed-err embed-state">Forge couldn't load inline here. <span class="es-hint"><a href="https://three.ws/forge" target="_blank" rel="noopener">Open it in a new tab ↗</a></span></div></div>+ </div>+ </div>+</section>- <!-- PLAY -->- <div class="room" data-room="play" data-src="https://three.ws/play" data-allow="fullscreen; gamepad; xr-spatial-tracking; autoplay">- <div class="room-head">- <div class="room-ico" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><rect x="2" y="6" width="20" height="12" rx="6"/><path d="M7 12h4M9 10v4"/><circle cx="16" cy="11" r="1"/><circle cx="18.5" cy="13.5" r="1"/></svg></div>- <h3><span class="verb">Play · Live worlds</span>Drop an agent into a world</h3>- <p>A multiplayer 3D space where agents and visitors share the same room — walk, wave, and watch them react to live on-chain activity.</p>- </div>- <div class="room-actions">- <button class="room-open" type="button">Open inline →</button>- <a class="room-out" href="https://three.ws/play" target="_blank" rel="noopener">Full page ↗</a>- </div>- <div class="room-embed">- <div class="embed-bar"><span class="bar-url">three.ws/play</span><span class="bar-actions"><button type="button" data-fs>⤢ Full screen</button><a class="room-out" href="https://three.ws/play" target="_blank" rel="noopener" style="display:inline-flex;align-items:center;padding:5px 10px;border:1px solid var(--ibm-divider);border-radius:2px">New tab ↗</a><button type="button" data-close>Close</button></span></div>- <div class="embed-load"><span class="spin" aria-hidden="true"></span><span>Loading Play…</span></div>- <div class="embed-err">Couldn't load Play inline. <a href="https://three.ws/play" target="_blank" rel="noopener">Open it in a new tab ↗</a></div>- </div>+<!-- ══ DEMO 04 · PLAY ══ -->+<section class="section" id="play" aria-labelledby="play-h">+ <div class="inner">+ <div class="section-tag">Demo 04 · Worlds</div>+ <h2 id="play-h">Play — drop an agent into a <strong>live world</strong></h2>+ <p class="section-lead">Every coin on three.ws is a 3D space agents and visitors share in real time — walk in, pick an avatar, and move around a world that reacts to live on-chain activity. Pick a name and a body below to enter; it runs full-size, right on the page.</p>+ <div class="live-embed" data-src="https://three.ws/play" data-allow="fullscreen; gamepad; autoplay; xr-spatial-tracking; microphone" data-label="Play — three.ws">+ <div class="embed-bar">+ <span class="bar-url"><span class="dot" aria-hidden="true"></span>three.ws/play</span>+ <span class="bar-actions">+ <button type="button" data-fs>⤢ Full screen</button>+ <a href="https://three.ws/play" target="_blank" rel="noopener">New tab ↗</a>+ </span>+ </div>+ <div class="embed-frame">+ <div class="embed-load embed-state"><span class="spin" aria-hidden="true"></span><span>Loading the live world…</span></div>+ <div class="embed-err embed-state">Play couldn't load inline here. <span class="es-hint"><a href="https://three.ws/play" target="_blank" rel="noopener">Open it in a new tab ↗</a></span></div></div>+ </div>+ </div>+</section>- <!-- IRL -->- <div class="room" data-room="irl" data-src="https://three.ws/irl" data-allow="camera; gyroscope; accelerometer; magnetometer; xr-spatial-tracking; fullscreen">- <div class="room-head">- <div class="room-ico" aria-hidden="true"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.6"><path d="M3 9l9-6 9 6v6l-9 6-9-6V9z"/><path d="M12 3v18M3 9l9 6 9-6"/></svg></div>- <h3><span class="verb">IRL · Augmented reality</span>Put an agent in the room</h3>- <p>Anchor a 3D agent to real space and view it through your phone's camera. Best on a mobile device — scan the QR or open IRL on your phone.</p>- </div>- <div class="room-actions">- <button class="room-open" type="button">Open inline →</button>- <a class="room-out" href="https://three.ws/irl" target="_blank" rel="noopener">Full page ↗</a>- </div>- <div class="room-embed">- <div class="embed-bar"><span class="bar-url">three.ws/irl</span><span class="bar-actions"><button type="button" data-fs>⤢ Full screen</button><a class="room-out" href="https://three.ws/irl" target="_blank" rel="noopener" style="display:inline-flex;align-items:center;padding:5px 10px;border:1px solid var(--ibm-divider);border-radius:2px">New tab ↗</a><button type="button" data-close>Close</button></span></div>- <div class="embed-load"><span class="spin" aria-hidden="true"></span><span>Loading IRL…</span></div>- <div class="embed-err">Couldn't load IRL inline — AR works best opened directly on a phone. <a href="https://three.ws/irl" target="_blank" rel="noopener">Open on your device ↗</a></div>- </div>+<!-- ══ DEMO 05 · IRL ══ -->+<section class="section" id="irl" aria-labelledby="irl-h">+ <div class="inner">+ <div class="section-tag">Demo 05 · Reality</div>+ <h2 id="irl-h">IRL — put an agent in the <strong>real world</strong></h2>+ <p class="section-lead">Anchor a 3D agent to physical space and see it through your camera, with real-world pins you place around you — you stay in control of every permission. AR is a phone experience, so it's best opened on a mobile device; the live surface is below, and the camera prompt only fires when you choose to enable it.</p>+ <div class="live-embed" data-src="https://three.ws/irl" data-allow="camera; gyroscope; accelerometer; magnetometer; xr-spatial-tracking; fullscreen" data-label="IRL — three.ws">+ <div class="embed-bar">+ <span class="bar-url"><span class="dot" aria-hidden="true"></span>three.ws/irl</span>+ <span class="bar-actions">+ <button type="button" data-fs>⤢ Full screen</button>+ <a href="https://three.ws/irl" target="_blank" rel="noopener">Open on your phone ↗</a>+ </span>+ </div>+ <div class="embed-frame">+ <div class="embed-load embed-state"><span class="spin" aria-hidden="true"></span><span>Loading IRL…</span></div>+ <div class="embed-err embed-state">IRL couldn't load inline here — augmented reality works best opened directly on a phone. <span class="es-hint"><a href="https://three.ws/irl" target="_blank" rel="noopener">Open it on your device ↗</a></span></div></div></div></div>@@ -630,7 +631,7 @@ agent-3d:defined ~ .agent-skel{display:none}<a href="https://three.ws/changelog" target="_blank" rel="noopener">Changelog</a></nav><div class="footer-legal">- Live x402 demo · three.ws, an IBM Business Partner. Payments settle in USDC on Base or Solana mainnet via the x402 protocol. The only coin this platform issues is $THREE (FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump).+ Live x402 demo · three.ws, an IBM Business Partner. Payments settle in USDC on Solana mainnet via the x402 protocol. The only coin this platform issues is $THREE (FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump).</div></div></footer>@@ -778,66 +779,52 @@ agent-3d:defined ~ .agent-skel{display:none}agentReact(function (el) { if (el.expressEmotion) el.expressEmotion('concern', 0.8); });}- // ── rooms: lazy-load real three.ws surfaces inline on demand ───────────────- // Nothing loads until the visitor clicks — keeps the page light and respects- // data. The iframe streams a live, framable production surface (frame-ancestors- // is open for these routes); a load timeout falls back to an "open in tab" path.- function wireRooms() {- var grid = document.querySelector('.rooms');- var rooms = document.querySelectorAll('.room');- function syncHasLive() {- grid.classList.toggle('has-live', !!document.querySelector('.room.is-live'));- }- Array.prototype.forEach.call(rooms, function (room) {- var openBtn = room.querySelector('.room-open');- var embed = room.querySelector('.room-embed');- var closeBtn = room.querySelector('[data-close]');- var fsBtn = room.querySelector('[data-fs]');- var loadedIframe = null, timer = null;-- openBtn.addEventListener('click', function () {- // One room at a time — collapse any other that's open.- Array.prototype.forEach.call(rooms, function (r) { if (r !== room) r.classList.remove('is-live'); });- room.classList.add('is-live');- syncHasLive();- if (!loadedIframe) {- embed.classList.remove('failed', 'loaded');- var iframe = document.createElement('iframe');- iframe.title = room.getAttribute('data-room') + ' — three.ws';- iframe.loading = 'lazy';- iframe.setAttribute('allow', room.getAttribute('data-allow') || '');- iframe.setAttribute('allowfullscreen', '');- iframe.setAttribute('referrerpolicy', 'no-referrer-when-downgrade');- iframe.addEventListener('load', function () {- clearTimeout(timer);- embed.classList.add('loaded');- });- // If the surface refuses to frame or stalls, surface the new-tab fallback.- timer = setTimeout(function () {- if (!embed.classList.contains('loaded')) embed.classList.add('failed');- }, 12000);- iframe.src = room.getAttribute('data-src');- embed.appendChild(iframe);- loadedIframe = iframe;- }- // Bring the now full-width stage into view.- embed.scrollIntoView({ behavior: prefersReducedMotion() ? 'auto' : 'smooth', block: 'start' });- });-+ // ── full-size demo embeds (Forge / Play / IRL) ─────────────────────────────+ // Each presents a real, framable production surface at full size. The iframe+ // is created only as the section nears the viewport (IntersectionObserver),+ // so three heavy apps never load at once on first paint. A load timeout falls+ // back to an "open in a new tab" path; the Full-screen button uses the real+ // Fullscreen API.+ function loadEmbed(embed) {+ if (embed.dataset.loaded === '1') return;+ embed.dataset.loaded = '1';+ var frame = embed.querySelector('.embed-frame');+ var iframe = document.createElement('iframe');+ iframe.title = embed.getAttribute('data-label') || 'three.ws demo';+ iframe.loading = 'lazy';+ iframe.setAttribute('allow', embed.getAttribute('data-allow') || '');+ iframe.setAttribute('allowfullscreen', '');+ iframe.setAttribute('referrerpolicy', 'no-referrer-when-downgrade');+ var timer = setTimeout(function () {+ if (!embed.classList.contains('loaded')) embed.classList.add('failed');+ }, 15000);+ iframe.addEventListener('load', function () {+ clearTimeout(timer);+ embed.classList.add('loaded');+ });+ iframe.src = embed.getAttribute('data-src');+ frame.appendChild(iframe);+ }+ function wireLiveEmbeds() {+ var embeds = document.querySelectorAll('.live-embed');+ Array.prototype.forEach.call(embeds, function (embed) {+ var fsBtn = embed.querySelector('[data-fs]');if (fsBtn) fsBtn.addEventListener('click', function () {var req = embed.requestFullscreen || embed.webkitRequestFullscreen;if (req) { try { req.call(embed); } catch (_) {} }- else if (loadedIframe) { window.open(room.getAttribute('data-src'), '_blank', 'noopener'); }- });-- closeBtn.addEventListener('click', function () {- if (document.fullscreenElement === embed && document.exitFullscreen) {- try { document.exitFullscreen(); } catch (_) {}- }- room.classList.remove('is-live');- syncHasLive();+ else { window.open(embed.getAttribute('data-src'), '_blank', 'noopener'); }});});+ if ('IntersectionObserver' in window) {+ var io = new IntersectionObserver(function (entries) {+ entries.forEach(function (e) {+ if (e.isIntersecting) { loadEmbed(e.target); io.unobserve(e.target); }+ });+ }, { rootMargin: '400px 0px' });+ Array.prototype.forEach.call(embeds, function (embed) { io.observe(embed); });+ } else {+ Array.prototype.forEach.call(embeds, loadEmbed);+ }}// ── 1. live 402 challenge preview ─────────────────────────────────────────@@ -1062,10 +1049,10 @@ agent-3d:defined ~ .agent-skel{display:none}hint.innerHTML = '<b>Wallet detected.</b> You can pay this call directly.';} else if (isCoarsePointer()) {hint.classList.remove('detected');- hint.innerHTML = 'No wallet in this browser. On a phone, open this page inside your <b>MetaMask</b> (Base) or <b>Phantom</b> (Solana) in-app browser to pay. You can still read the live 402 challenge above.';+ hint.innerHTML = 'No wallet in this browser. On a phone, open this page inside your <b>MetaMask</b> or <b>Phantom</b> (Solana) in-app browser to pay. You can still read the live 402 challenge above.';} else {hint.classList.remove('detected');- hint.innerHTML = 'No wallet detected. Install <b>MetaMask</b> (Base) or <b>Phantom</b> (Solana) to pay — or just read the live 402 challenge above.';+ hint.innerHTML = 'No wallet detected. Install <b>MetaMask</b> or <b>Phantom</b> (Solana) to pay — or just read the live 402 challenge above.';}}// Wallet extensions inject asynchronously; re-check briefly after load.@@ -1107,7 +1094,7 @@ agent-3d:defined ~ .agent-skel{display:none}});wireAgent();- wireRooms();+ wireLiveEmbeds();pollForWallet();loadChallengePreview();})();diff --git a/public/changelog.json b/public/changelog.jsonindex fd19f3ec4..d026048eb 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-17T22:12:47.201Z",+ "generated_at": "2026-06-17T22:29:45.437Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -138,6 +138,16 @@"feature"]},+ {+ "date": "2026-06-17",+ "type": "update",+ "title": "Browse and walk into the club as any 3D agent",+ "summary": "The club's agent switcher now has a Browse button that opens the full directory of public 3D agents. Search them, filter by skill or on-chain status, sort by popular/newest/name, and spin each agent's avatar in a live 3D preview before you pick. Choose one and you swap into it instantly — walking up to the club as that agent — instead of being limited to the short quick-switch list.",+ "link": "/club",+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-17","type": "update",@@ -199,6 +209,16 @@"feature"]},+ {+ "date": "2026-06-17",+ "type": "update",+ "title": "Cleaner avatar loading on embeds",+ "summary": "Embedded 3D agents no longer flash a grey skeleton silhouette while the avatar streams in. The frame now stays clean — showing the poster preview when one is set, or transparent until the avatar paints — so the load-in reads as polished rather than half-built.",+ "link": null,+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-17","type": "update",@@ -209,6 +229,17 @@"improvement"]},+ {+ "date": "2026-06-17",+ "type": "update",+ "title": "Club door ban list now enforced",+ "summary": "Fixed the paid club door so the ban check actually runs. A wiring error meant the bouncer's on-chain ban lookup threw on every entry and quietly failed open, admitting wallets it should have turned away. The USDC door and the $THREE door now share one bouncer and run the real ban-and-tier check on every cover charge, so banned wallets are stopped at the rope.",+ "link": "/club",+ "tags": [+ "fix",+ "security"+ ]+ },{"date": "2026-06-17","type": "update",@@ -655,16 +686,6 @@"feature"]},- {- "date": "2026-06-17",- "type": "update",- "title": "Pick a 3D agent to drop into any world",- "summary": "Added a dedicated agent picker to the worlds lobby. Tap “Browse 3D agents” to search the full directory of public agents, filter by skill or on-chain status, sort by popular/newest/name, and spin each agent's avatar in a live 3D preview before you commit. Choose one and you drop into the world wearing its avatar — no more sifting through raw avatars and accessories to find an actual agent.",- "link": "/worlds",- "tags": [- "feature"- ]- },{"date": "2026-06-17","type": "update",@@ -778,6 +799,16 @@"improvement"]},+ {+ "date": "2026-06-17",+ "type": "update",+ "title": "Simpler color picker in advanced controls",+ "summary": "The color pickers in the viewer's advanced controls and the material editor now drop the vertical rainbow hue strip, leaving a single clean saturation-and-brightness field that fills the full picker width. Picking a color is tidier and less cluttered.",+ "link": null,+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-17","type": "update",@@ -832,8 +863,8 @@{"date": "2026-06-17","type": "update",- "title": "The IBM x402 demo grew a 3D agent that pays for itself",- "summary": "The live x402 demo at three.ws/ibm/x402-demo now has a 3D AI agent below the payment card. When you run the $0.001 call, the agent watches the same on-chain settlement you do and reacts in real time — it celebrates and announces the payment the moment it clears. You can also ask it how x402 and $THREE work. Under it, three new rooms — Forge (text to 3D), Play (live worlds), and IRL (augmented reality) — load the real three.ws surfaces inline on a click, or open full-screen. Everything still loads from three.ws with no build step.",+ "title": "The IBM page became a live showcase — five three.ws demos in one place",+ "summary": "The IBM page at three.ws/ibm/x402-demo is now a full showcase of the IBM × three.ws partnership: five real, unmocked demos you can try in sequence. Pay a tenth of a cent over x402 and watch it settle on-chain; meet a 3D AI agent that pays for its own data and celebrates the moment your payment clears; then Forge (turn text into a 3D model), Play (a shared 3D world), and IRL (an agent in augmented reality) each run full-size right on the page, with a one-tap full-screen. Everything still loads from three.ws with no build step.","link": "/ibm/x402-demo","tags": ["feature"diff --git a/public/changelog.xml b/public/changelog.xmlindex ca636ebb5..58c456dfa 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -110,6 +110,14 @@<category>feature</category><description>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.</description></item>+ <item>+ <title>Browse and walk into the club as any 3D agent</title>+ <link>https://three.ws/club</link>+ <guid isPermaLink="false">2026-06-17:Browse and walk into the club as any 3D agent</guid>+ <pubDate>Wed, 17 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The club's agent switcher now has a Browse button that opens the full directory of public 3D agents. Search them, filter by skill or on-chain status, sort by popular/newest/name, and spin each agent's avatar in a live 3D preview before you pick. Choose one and you swap into it instantly — walking up to the club as that agent — instead of being limited to the short quick-switch list.</description>+ </item><item><title>Build mode — place, rotate, and delete props in every coin world</title><link>https://three.ws/play</link>@@ -158,6 +166,14 @@<category>feature</category><description>Each pole card now has a thumbnail Change-avatar button that opens a visual gallery picker — the same browse-and-tap experience as the /play avatar selector. Preview the looks as image tiles, then tap one to swap who dances on that pole: each dancer's signature look, a set of built-in rigs, or any public avatar from the community gallery. The dancer swaps to the new model live, right on stage, with no reload, and your picks are remembered per pole on your next visit. The button locks for the few seconds a dancer is mid-routine so a swap never interrupts a paid performance, and any model the animation library can't drive falls back to the default rig automatically.</description></item>+ <item>+ <title>Cleaner avatar loading on embeds</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-17:Cleaner avatar loading on embeds</guid>+ <pubDate>Wed, 17 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>Embedded 3D agents no longer flash a grey skeleton silhouette while the avatar streams in. The frame now stays clean — showing the poster preview when one is set, or transparent until the avatar paints — so the load-in reads as polished rather than half-built.</description>+ </item><item><title>Clearer pricing on every agent's skills in the marketplace</title><link>https://three.ws/marketplace</link>@@ -166,6 +182,14 @@<category>improvement</category><description>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.</description></item>+ <item>+ <title>Club door ban list now enforced</title>+ <link>https://three.ws/club</link>+ <guid isPermaLink="false">2026-06-17:Club door ban list now enforced</guid>+ <pubDate>Wed, 17 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Fixed the paid club door so the ban check actually runs. A wiring error meant the bouncer's on-chain ban lookup threw on every entry and quietly failed open, admitting wallets it should have turned away. The USDC door and the $THREE door now share one bouncer and run the real ban-and-tier check on every cover charge, so banned wallets are stopped at the rope.</description>+ </item><item><title>Coin world builds now have ownership, caps, and anti-grief protection</title><link>https://three.ws/play</link>@@ -510,14 +534,6 @@<category>feature</category><description>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.</description></item>- <item>- <title>Pick a 3D agent to drop into any world</title>- <link>https://three.ws/worlds</link>- <guid isPermaLink="false">2026-06-17:Pick a 3D agent to drop into any world</guid>- <pubDate>Wed, 17 Jun 2026 12:00:00 GMT</pubDate>- <category>feature</category>- <description>Added a dedicated agent picker to the worlds lobby. Tap “Browse 3D agents” to search the full directory of public agents, filter by skill or on-chain status, sort by popular/newest/name, and spin each agent's avatar in a live 3D preview before you commit. Choose one and you drop into the world wearing its avatar — no more sifting through raw avatars and accessories to find an actual agent.</description>- </item><item><title>Place your IRL agent on the real floor with AR anchoring</title><link>https://three.ws/irl</link>@@ -606,6 +622,14 @@<category>feature</category><description>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.</description></item>+ <item>+ <title>Simpler color picker in advanced controls</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-17:Simpler color picker in advanced controls</guid>+ <pubDate>Wed, 17 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The color pickers in the viewer's advanced controls and the material editor now drop the vertical rainbow hue strip, leaving a single clean saturation-and-brightness field that fills the full picker width. Picking a color is tidier and less cluttered.</description>+ </item><item><title>Sniper dashboard: your live positions now show real-time profit and loss and reconnect on their own</title><link>https://three.ws/dashboard/sniper</link>@@ -647,12 +671,12 @@<description>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.</description></item><item>- <title>The IBM x402 demo grew a 3D agent that pays for itself</title>+ <title>The IBM page became a live showcase — five three.ws demos in one place</title><link>https://three.ws/ibm/x402-demo</link>- <guid isPermaLink="false">2026-06-17:The IBM x402 demo grew a 3D agent that pays for itself</guid>+ <guid isPermaLink="false">2026-06-17:The IBM page became a live showcase — five three.ws demos in one place</guid><pubDate>Wed, 17 Jun 2026 12:00:00 GMT</pubDate><category>feature</category>- <description>The live x402 demo at three.ws/ibm/x402-demo now has a 3D AI agent below the payment card. When you run the $0.001 call, the agent watches the same on-chain settlement you do and reacts in real time — it celebrates and announces the payment the moment it clears. You can also ask it how x402 and $THREE work. Under it, three new rooms — Forge (text to 3D), Play (live worlds), and IRL (augmented reality) — load the real three.ws surfaces inline on a click, or open full-screen. Everything still loads from three.ws with no build step.</description>+ <description>The IBM page at three.ws/ibm/x402-demo is now a full showcase of the IBM × three.ws partnership: five real, unmocked demos you can try in sequence. Pay a tenth of a cent over x402 and watch it settle on-chain; meet a 3D AI agent that pays for its own data and celebrates the moment your payment clears; then Forge (turn text into a 3D model), Play (a shared 3D world), and IRL (an agent in augmented reality) each run full-size right on the page, with a one-tap full-screen. Everything still loads from three.ws with no build step.</description></item><item><title>The Oracle's proof pages — wins, backtest, and live activity — load again</title>diff --git a/public/features.json b/public/features.jsonindex 9f2dc71bd..8d608e83a 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-17T22:12:47.184Z",+ "generated_at": "2026-06-17T22:29:45.425Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/style.css b/public/style.cssindex 925e047ad..f8203ce6f 100644--- a/public/style.css+++ b/public/style.css@@ -1004,6 +1004,17 @@ header h1 .wordmark-logo {border-radius: var(--radius-sm) !important;}+/* Remove the dat.GUI color-picker hue strip globally — the saturation/value+ field carries the picker; the vertical hue knob is suppressed everywhere. */+.dg .cr.color .selector .hue-field,+.dg .selector .hue-field {+ display: none !important;+}+.dg .cr.color .selector .saturation-field,+.dg .selector .saturation-field {+ width: 100% !important;+}+@media screen and (max-width: 700px) {header:not(.nav):not(:has(#nav-container)) {padding: 0 1em;diff --git a/src/club-entrance.js b/src/club-entrance.jsindex 8777ec39c..da2aa8b9d 100644--- a/src/club-entrance.js+++ b/src/club-entrance.js@@ -461,14 +461,48 @@ async function start(canvasEl) {// Pick which avatar you walk as, live, at any point in the journey. Bundled// rigs are offered immediately; public gallery avatars stream in and append.const agentSelect = document.getElementById('club-agent-select');+ const agentBrowseBtn = document.getElementById('club-agent-browse');let swappingAgent = false;function setupAgentSwitch() {- if (!agentSelect) return;- renderAgentOptions(BUNDLED_AGENTS);- agentSelect.value = currentAvatarUrl;- agentSelect.addEventListener('change', onAgentChange);- loadGalleryAgents();+ if (agentSelect) {+ renderAgentOptions(BUNDLED_AGENTS);+ agentSelect.value = currentAvatarUrl;+ agentSelect.addEventListener('change', onAgentChange);+ loadGalleryAgents();+ }+ if (agentBrowseBtn) agentBrowseBtn.addEventListener('click', onBrowseAgents);+ }++ // Open the full 3D-agent directory in a modal and walk in as the chosen one.+ // The picker module is lazy-loaded so the heavy club scene boots without it.+ async function onBrowseAgents() {+ if (swappingAgent) return;+ let openAgentPicker;+ try {+ ({ openAgentPicker } = await import('./agent-picker.js'));+ } catch (err) {+ log.warn('[club-entrance] agent picker failed to load', err);+ return;+ }+ releaseControls();+ const agent = await openAgentPicker({+ title: 'Choose your 3D agent',+ ctaLabel: 'Walk in as this agent',+ });+ if (!agent) return;+ const url = agent.avatar_model_url || '';+ if (!url) {+ log.warn('[club-entrance] picked agent has no wearable avatar', agent.id);+ return;+ }+ // Register the pick in the quick-switch dropdown (deduped) so it can be+ // re-selected without reopening the modal, then swap onto it live.+ if (!agentList.some((a) => a.url === url)) {+ agentList = [...agentList, { key: `agent-${agent.id}`, name: agent.name || 'Agent', url }];+ renderAgentOptions(agentList);+ }+ await swapAvatarTo(url);}// Build/refresh the <option> list, keeping the active rig selected. Deduped by@@ -509,34 +543,44 @@ async function start(canvasEl) {async function onAgentChange() {const url = agentSelect.value;- if (!url || url === currentAvatarUrl || swappingAgent) {+ if (!url || url === currentAvatarUrl) {agentSelect.value = currentAvatarUrl;return;}+ await swapAvatarTo(url);+ }++ // Swap the player's rig to `url` live — position, heading and camera untouched,+ // the clip library rebound so there's no T-pose flash. Shared by the quick+ // dropdown and the agent-picker modal. Returns true on a successful swap.+ async function swapAvatarTo(url) {+ if (!url || url === currentAvatarUrl || swappingAgent) return false;swappingAgent = true;- agentSelect.disabled = true;+ if (agentSelect) agentSelect.disabled = true;+ if (agentBrowseBtn) agentBrowseBtn.disabled = true;const movingNow = anim.currentName === 'walk';try {const gltf = await loader.loadAsync(url);const next = gltf.scene;scaleToHeight(next, AVATAR_HEIGHT);placeOnFloor(next);- // Swap the rig's child — position, heading and camera are untouched.rig.remove(avatar);disposeObject(avatar);avatar = next;rig.add(avatar);- // Rebind the clip library to the new rig (idle/walk are already in memory)- // and resume whatever the avatar was doing so there's no T-pose flash.anim.attach(avatar, { avatarUrl: url });await anim.play(movingNow ? 'walk' : 'idle');currentAvatarUrl = url;+ if (agentSelect) agentSelect.value = url;+ return true;} catch (err) {log.warn('[club-entrance] agent swap failed', err);- agentSelect.value = currentAvatarUrl; // keep the working rig selected+ if (agentSelect) agentSelect.value = currentAvatarUrl; // keep the working rig selected+ return false;} finally {swappingAgent = false;- agentSelect.disabled = false;+ if (agentSelect) agentSelect.disabled = false;+ if (agentBrowseBtn) agentBrowseBtn.disabled = false;}}@@ -779,6 +823,7 @@ async function start(canvasEl) {window.removeEventListener('blur', onBlur);document.removeEventListener('visibilitychange', onVisibility);agentSelect?.removeEventListener('change', onAgentChange);+ agentBrowseBtn?.removeEventListener('click', onBrowseAgents);onAdmit = null;try { anim.dispose?.(); } catch {}disposeObject(scene);diff --git a/src/club.js b/src/club.jsindex 290d99537..5d173f803 100644--- a/src/club.js+++ b/src/club.js@@ -427,14 +427,14 @@ const POLE_COLORS = [0xff3bd6, 0x4ad6ff, 0xff8a3b, 0x9b5dff];// dancer wears. A local `avatar` path loads that GLB directly; an `avatarId`// is resolved through /api/avatars/:id at boot (see resolveDancerAvatarUrl).// The three are deliberately three DISTINCT, verified-drivable rigs so the-// lineup never collapses onto one look: two rock-solid bundled rigs that are-// guaranteed to retarget, plus Dylan from the gallery. attachAvatar still-// falls back to the default rig if a rig ever isn't drivable, and each dancer-// is tinted with her pole's accent color so the three read as a set.+// lineup never collapses onto one look: Dylan and Michelle (the two swapped in),+// plus one kept original gallery rig. attachAvatar still falls back to the default+// rig if a rig ever isn't drivable, and each dancer is tinted with her pole's+// accent color so the three read as a set.const DANCER_META = [- { name: 'Aria', bio: 'Neon pink fire. Classical meets street.', palette: 'pink', avatar: '/avatars/michelle.glb' },- { name: 'Nova', bio: 'Cyan ice. Fluid and hypnotic.', palette: 'cyan', avatarId: '25195a2e-130c-4da5-8cad-8e7490d69b45' },- { name: 'Blaze', bio: 'Amber heat. Power and precision.', palette: 'amber', avatar: '/avatars/realistic-female.glb' },+ { name: 'Aria', bio: 'Neon pink fire. Classical meets street.', palette: 'pink', avatarId: '25195a2e-130c-4da5-8cad-8e7490d69b45' },+ { name: 'Nova', bio: 'Cyan ice. Fluid and hypnotic.', palette: 'cyan', avatar: '/avatars/michelle.glb' },+ { name: 'Blaze', bio: 'Amber heat. Power and precision.', palette: 'amber', avatarId: 'd92b292e-c2db-40cb-bf88-3e141c6b0057' },];// Every dancer is scaled to this standing height (metres) so a mix ofdiff --git a/src/element.js b/src/element.jsindex eec9fcc2e..76868d538 100644--- a/src/element.js+++ b/src/element.js@@ -400,49 +400,6 @@ const BASE_STYLE = `.token-card-bar .fill.danger { background: linear-gradient(90deg, #f59e0b, #ef4444); }.token-card .flags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }.token-card .flag { font: 600 9px/1 var(--agent-chat-font); letter-spacing: .04em; text-transform: uppercase; padding: 3px 6px; border-radius: 4px; background: rgba(239,68,68,.18); color: #fecaca; border: 1px solid rgba(239,68,68,.32); }- .input-row {- display: flex;- gap: 6px;- background: var(--agent-surface);- border-radius: 999px;- padding: 4px 4px 4px 14px;- backdrop-filter: blur(12px);- flex: 0 0 auto;- }- .input-row input {- flex: 1;- background: transparent;- border: 0;- color: var(--agent-on-surface);- font: 14px var(--agent-chat-font);- outline: none;- }- .input-row input:disabled {- opacity: 0.5;- cursor: not-allowed;- }- .input-row input[data-state="thinking"] {- opacity: 0.6;- }- .input-row[data-busy="true"] {- opacity: 0.75;- }- button.icon {- width: 36px;- height: 36px;- border-radius: 50%;- border: 0;- background: var(--agent-accent);- color: white;- cursor: pointer;- display: inline-flex;- align-items: center;- justify-content: center;- }- button.icon.mic[data-listening="true"] { box-shadow: 0 0 0 4px var(--agent-mic-glow); }- button.icon.mic[data-voice-state="listening"] { box-shadow: 0 0 0 4px #22c55e; }- button.icon.mic[data-voice-state="thinking"] { box-shadow: 0 0 0 4px #eab308; }- button.icon.mic[data-voice-state="speaking"] { box-shadow: 0 0 0 4px #3b82f6; }.poster {position: absolute;inset: 0;@@ -452,65 +409,16 @@ const BASE_STYLE = `transition: opacity 0.4s;pointer-events: none;}- /* Loading state — a skeleton avatar silhouette with a shimmer sweep fills- the frame while the GLB streams in (skeletons read as "almost there",- spinners read as "stuck"). Neutral tones so it composites on transparent,- dark, and light hosts alike. */+ /* Loading state — an invisible status region while the GLB streams in. The+ poster image (when supplied) fills the frame; otherwise the host sees+ transparent until the avatar paints. No silhouette placeholder. Kept as a+ non-visual role=status region for screen readers and the loading part. */.loading {position: absolute;inset: 0;- display: grid;- place-items: stretch;pointer-events: none;z-index: 4;}- .skeleton {- position: relative;- width: 100%;- height: 100%;- display: flex;- flex-direction: column;- align-items: center;- justify-content: flex-end;- gap: 2.5%;- padding-bottom: 7%;- box-sizing: border-box;- overflow: hidden;- -webkit-mask-image: linear-gradient(180deg, transparent, #000 16%, #000 88%, transparent);- mask-image: linear-gradient(180deg, transparent, #000 16%, #000 88%, transparent);- }- .skeleton-head {- width: 22%;- max-width: 88px;- aspect-ratio: 1;- border-radius: 50%;- background: var(--agent-skeleton, rgba(148, 148, 168, 0.18));- }- .skeleton-body {- width: 42%;- max-width: 168px;- height: 46%;- border-radius: 44% 44% 24% 24% / 26% 26% 9% 9%;- background: var(--agent-skeleton, rgba(148, 148, 168, 0.18));- }- .skeleton-shimmer {- position: absolute;- inset: 0;- background: linear-gradient(- 100deg,- transparent 30%,- rgba(255, 255, 255, 0.13) 50%,- transparent 70%- );- transform: translateX(-100%);- animation: agent-skeleton-sweep 1.5s ease-in-out infinite;- }- @keyframes agent-skeleton-sweep {- to { transform: translateX(100%); }- }- @media (prefers-reduced-motion: reduce) {- .skeleton-shimmer { animation: none; opacity: 0.45; transform: none; }- }/* Static decoration fallback — a calm avatar silhouette shown when a bare(chat-less) embed's body fails to load, instead of a blank frame or abroken/empty canvas. Chat embeds get the richer .error card instead. */@@ -666,6 +574,12 @@ const BASE_STYLE = `/* Kiosk mode: hide dat.GUI debug controls entirely */:host([kiosk]) .gui-wrap { display: none !important; }:host([kiosk]) .gui-toggle { display: none !important; }+ /* Remove the dat.GUI color-picker hue strip globally — the saturation/value+ field carries the picker; the vertical hue knob is suppressed in-shadow too. */+ .dg .cr.color .selector .hue-field,+ .dg .selector .hue-field { display: none !important; }+ .dg .cr.color .selector .saturation-field,+ .dg .selector .saturation-field { width: 100% !important; }/* viewer mode: pure 3D canvas, no chat / input / avatar anchor / debug.Use when embedding the avatar as decoration (landing pages, launchpads). */:host([viewer]) .chrome { display: none !important; }@@ -683,7 +597,6 @@ const BASE_STYLE = `gap: 8px;}:host([avatar-chat="off"]) .chat { flex: 1; max-height: 40%; }- :host([avatar-chat="off"]) .input-row { flex: 1; }:host([avatar-chat="off"]) .avatar-anchor { display: none; }/* Floating mode layout fixes */:host([mode="floating"]) .chrome {@@ -697,9 +610,6 @@ const BASE_STYLE = `:host([mode="section"]) .chat {max-width: 600px;}- :host([mode="section"]) .input-row {- max-width: 600px;- }/* Fullscreen mode — centre the chrome column on large monitors */:host([mode="fullscreen"]) .chrome {max-width: 800px;@@ -987,12 +897,6 @@ class Agent3DElement extends HTMLElement {loading.part = 'loading';loading.setAttribute('role', 'status');loading.setAttribute('aria-label', 'Loading avatar');- loading.innerHTML =- '<div class="skeleton" aria-hidden="true">' +- '<span class="skeleton-head"></span>' +- '<span class="skeleton-body"></span>' +- '<span class="skeleton-shimmer"></span>' +- '</div>';loading.hidden = true;this.shadowRoot.appendChild(loading);this._loadingEl = loading;@@ -1049,30 +953,6 @@ class Agent3DElement extends HTMLElement {chat.setAttribute('aria-live', 'polite');chat.setAttribute('aria-label', 'Conversation');- const row = document.createElement('div');- row.className = 'input-row';- const input = document.createElement('input');- input.type = 'text';- input.placeholder = 'Say something...';- input.setAttribute('aria-label', 'Message to agent');- input.addEventListener('keydown', (e) => {- if (e.key === 'Enter' && input.value.trim()) {- const v = input.value.trim();- input.value = '';- this._onStreamChunk(); // immediate visual feedback before LLM responds- this.say(v);- input.focus();- }- });- const micBtn = document.createElement('button');- micBtn.className = 'icon mic';- micBtn.title = 'Push to talk';- micBtn.setAttribute('aria-label', 'Push to talk');- micBtn.innerHTML = '🎙';- micBtn.addEventListener('click', () => this._toggleMic());- row.appendChild(input);- row.appendChild(micBtn);-// Avatar anchor — transparent window between chat and input;// the Three.js canvas shows through here. Thought bubble lives inside.const avatarAnchor = document.createElement('div');@@ -1089,11 +969,8 @@ class Agent3DElement extends HTMLElement {chat.appendChild(avatarAnchor);chrome.appendChild(chat);- chrome.appendChild(row);this.shadowRoot.appendChild(chrome);this._chatEl = chat;- this._inputEl = input;- this._micEl = micBtn;this._avatarAnchorEl = avatarAnchor;this._thoughtBubbleEl = thoughtBubble;this._thoughtTextEl = thoughtBubble.querySelector('.text');@@ -1589,7 +1466,7 @@ class Agent3DElement extends HTMLElement {if (this._booting || this._mounted) return;this._renderShell();// Clear any decoration fallback left by a prior failed attempt so the- // fresh boot's skeleton/avatar isn't drawn underneath a stale silhouette.+ // fresh boot's avatar isn't drawn underneath a stale silhouette.if (this._fallbackEl) {this._fallbackEl.remove();this._fallbackEl = null;@@ -2709,6 +2586,10 @@ class Agent3DElement extends HTMLElement {}async _toggleMic() {+ // The mic button lives in the (now removed) input row, so this is only+ // reachable if a future voice flow calls it directly. Bail safely when+ // there is no mic element to reflect listening state onto.+ if (!this._micEl) return;const voiceServer = this.getAttribute('voice-server');if (voiceServer) {await this._toggleVoiceClient(voiceServer);