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
Add NFT-gated skill access, marketplace actions, and avatar edit updates
nirholas3d395dd9e3a8
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 3bf90d191..b5960dc22 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -48,6 +48,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Improvement: Animation Studio recovers your unsaved animation after a refresh or closed tab** — Posing a figure and keyframing a timeline in the Animation Studio is real work — and until now none of it touched your account until you pressed Save, so an accidental tab close or browser refresh could wipe it. The Studio now quietly keeps a local backup of your in-progress animation as you work, and warns you before you leave with unsaved keyframes. Come back later and it offers the recovered timeline right where you left off — 'Recovered your unsaved animation — 6 keyframes.' Saving to your account or opening a saved clip clears the backup, and an explicit shared link still wins. No work lost between sessions. (`/pose`) `[improvement, feature]`- **Improvement: Base USDC payments confirm even when an RPC provider is flaky** — When you pay for a skill or asset in USDC on Base, the platform double-checks your payment landed on-chain before unlocking it. That check used to read from a single blockchain provider — so if that one provider was briefly slow or rate-limited, a payment that had genuinely gone through could look stuck as 'pending' until you retried. It now reads through the same multi-provider failover the rest of the platform already uses: if one provider is down it automatically tries the next, and a momentary outage degrades to a safe, retryable state instead of stranding a confirmed payment. Your funds were never at risk either way; this makes the confirmation itself resilient. `[improvement, infra]`- **Improvement: every server error now hands you a support reference code** — When something fails on our side, the response no longer just says 'something went wrong' — it now carries a short reference code (e.g. 'quote ref a1b2c3d4 to support'). That same code is attached to the exact server log line, our error tracker, and the ops alert that pages the team, so one code maps to one incident. This was already true for most API responses; we extended it to the remaining surfaces that previously failed silently — the RSS announcements feed, sitemaps, the MCP payment flow, on-chain permission checks, and the Solana RPC proxy — so any failure you hit is traceable. Nothing changes when things work; this only makes the rare error far faster to diagnose. `[improvement, infra]`+- **IRL status updates now announced to screen readers** — The status line on the IRL page — the one that confirms things like 'Room aligned to your view', tells you when an agent's spot was refined, or asks you to wait for a clean GPS fix — is now a live region, so screen readers speak each update as it happens instead of leaving it silent on screen. Part of a broader pass making the real-world placement flow fully keyboard- and screen-reader-friendly. (`/irl`) `[improvement]`- **IRL: pinned agents now hold their exact spot indoors instead of drifting** — When you pin your agent to a real-world spot in IRL — on a table, a desk, a shelf — it now stays put as you pan and move your phone, instead of sliding away. Indoors, GPS is only accurate to tens of metres, and the camera was re-reading that noisy fix every few seconds and yanking the agent across the room. Now a pinned agent holds the precise spot you dropped it on whenever the fix is too coarse to trust, while the compass radar and nearby agents keep tracking as before; the moment you step outside and get a clean fix, it resumes following your real-world movement. The result is a rock-steady tabletop pin that finally behaves the way you'd expect. (`/irl`) `[fix]`- **Launch Copilot: every coin you launch can run its own market-maker** — Launching a coin on three.ws no longer means mint-and-hope. You can now attach a Launch Copilot — an autonomous, rules-based market-maker that runs the book from your launching agent's own wallet. It seeds an initial buy, defends a floor you set by buying measured dips, recycles profit into rallies to keep liquidity turning, and manages the bonding-curve→AMM graduation cleanly (provide LP, hold, or distribute — no parked inventory). Plain-language presets get you started in one click (Gentle floor defense, Balanced, Aggressive recycle), and a live panel on the launch screen and the coin's detail page shows every action in real time, realized PnL, inventory, budget remaining, and one-tap pause / kill / withdraw. Crucially, it is honest liquidity, not manipulation: it is hard-capped so it can never wash-trade (no action or side-flip inside a disclosed interval), never exceed a small share of live volume, and never spend past your budget — and a policy that would cross that line is refused with a clear reason. Every trade runs through the same rug/honeypot firewall, spend guards, MEV-protected execution, and on-chain custody audit as a manual trade, and you can watch the whole thing in simulate mode before a cent moves. The market-maker operates on the coin you launched; the only coin three.ws promotes is $THREE. `[feature]`- **Marketplace fork no longer creates duplicate copies on a double-click** — On an agent's marketplace page, impatiently double-clicking "Fork & Chat" used to fire the fork twice before the page could move you to your new copy — quietly leaving two identical agents in your account. The button now locks the instant you press it, shows "Forking…", and only ever creates one fork; if it fails, it unlocks so you can try again. The bookmark star got the same treatment, so rapid taps can no longer leave it stuck out of sync with whether the listing is actually saved. Only coin referenced is $THREE. (`/marketplace`) `[fix]`@@ -65,6 +66,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Patronage: tips that build a real relationship with an agent** — Supporting an agent is no longer a dead-end transaction — it builds a relationship the agent actually remembers. Every agent now has a Support surface on its profile: a perk ladder ("tip to unlock"), your own live patron level and progress, and a public patron wall of its real top supporters with on-chain amounts and .sol names. Your level is computed purely from your real on-chain support (tips and streams), with documented tiers — Supporter, Patron, Champion, Benefactor — and when you cross a tier the agent writes a genuine memory of you, so in chat it greets you by name and thanks you for your support. Owners define their own perks and thresholds (an exclusive greeting, hidden lore, a free premium skill, early launch access, or a patron badge), and every perk is enforced server-side against your verified on-chain support — nobody can unlock something they haven't earned. Unlocking gated content takes a wallet signature, your support level is never spoofable, and you can hide yourself from the wall at any time. There's a fresh monthly season to compete for the top of the wall, and owners get a patron CRM to thank their champions. `[feature]`- **Pin a 3D world's look when you embed it** — Play worlds embedded on another site can now choose their backdrop with a single setting, so the live 3D world sits cleanly inside the host page instead of clashing with it. Add ?biome=<id> to a /play embed URL — for example ?biome=noir for a neutral dark world. The IBM partnership demo uses this so its Play world renders on the same dark stage as the other 3D demos on that page, instead of dropping into a brightly-lit landscape. Default play and every coin's own world are unchanged. (`/play`) `[improvement]`- **Pinch-zoom works everywhere again, and 3D runs lighter on phones** — Eighteen pages — including the camera capture, scan, IRL, city, play, and immersive app surfaces — were silently blocking pinch-zoom and browser zoom, which made them hard to read for anyone who needs larger text. Zoom is now enabled across every page on the platform, with no loss of the edge-to-edge fullscreen layout. Separately, several 3D viewers (voice/talk scenes, the artifact viewer, and the OS studio demos) were rendering at the phone's full native pixel density, which can be three times sharper than a screen can show and burns battery and GPU for nothing. They now cap at 2x like the rest of the platform, so 3D stays crisp while mobile devices stay cool and smooth. Only coin referenced is $THREE. `[improvement, fix]`+- **Place a whole room of AI agents at fixed spots — they hold their layout for everyone** — IRL agents used to be dropped one at a time at a GPS point, and indoors GPS is off by whole rooms — so a cluster of agents could never keep its shape from one phone to the next. Now you can set up a real room: drop several agents at the exact spots you want — one on the couch, one by the desk, one at the door — and they share a single room frame instead of each trusting its own noisy GPS. The couch agent and the door agent stay metres apart on the right sides for every viewer, no matter how each phone's location drifts. As the owner you can realign the whole room in one gesture — grab the cluster, slide and twist it onto its true spot, and every agent moves together with the internal layout intact. If a room ever shows up rotated for you, one tap — face the room's front and tap Align — snaps it to match your view, just on your screen. After an owner realigns a room, nearby viewers pick up the new positions on their next location refresh (within about 10 seconds). Only coin referenced is $THREE. (`/irl`) `[feature]`- **Portfolio Command — live net worth, cost basis, P&L attribution & risk for your agent wallet** — Your agent's holdings, snipes, and discretionary trades used to be scattered across tabs with no single picture. The new Portfolio tab in your agent wallet pulls it all together: live net worth in SOL and USD with a streaming sparkline, every holding valued from real on-chain prices with its FIFO cost basis and unrealized P&L, and a one-click jump to trade or exit any position. A P&L attribution breakdown shows exactly what's making and losing money — your sniper strategies, discretionary trades, strategy objects — with realized vs unrealized split out, plus x402 and withdrawal outflows. A risk panel surfaces concentration (largest-position share + a Herfindahl diversification read), volatile-memecoin tape exposure, realized drawdown and per-trade volatility, and turns them into plain-language flags like '78% concentrated in one illiquid position'. Every figure is real: SOL amounts come straight from the chain and ledger, USD degrades to honest 'unpriced' rather than a guess, and illiquid holdings are flagged, never invented. Updates stream live while the tab is open. `[feature, improvement]`- **Pre-Launch Radar — pre-arm a snipe at block-zero, on signal not luck** — Everyone snipes a coin after it appears in the launch feed — by then thousands of bots see it too. The new Pre-Launch Radar goes earlier. It watches, in real time and from real on-chain reads, the wallets of proven creators (those who've repeatedly graduated coins) and proven smart-money wallets, and detects the launch PRECURSOR: the instant one of them funds a brand-new deploy wallet or submits a pump.fun create instruction, the radar catches it — at or before block-0 — and can pre-arm your agent's snipe before the coin hits any feed. Arm an agent with the new 'Pre-launch radar' trigger and set its gates (minimum creator graduations, require a proven smart-money funder, max precursor age); every pre-armed buy still passes the exact same rug/honeypot firewall, MEV execution engine, spend guards, kill switch, and on-chain custody audit as every other snipe. The new Pre-Launch Radar dashboard shows the live precursor tape, the auto-curated watchlist with why each wallet is watched, and — for you — which precursors your agent actually fired on. This acts only on public on-chain precursors (funding, deploys); it never front-runs anyone's pending transaction. (`/dashboard/prelaunch-radar`) `[feature]`- **Pricing page now shows live pay-per-use prices, straight from the catalog** — The pricing page has a new "Pay only for what you generate" section that lists exactly what each generation and compute call costs — Forge Standard and High, Game-Ready export, the MCP-3D tools, voice cloning, the Granite oracles, and more. Every figure is pulled live from the one pricing catalog the pay-per-call flow uses, so the number you see on /pricing is the number you pay — they can never drift apart. Prices are quoted in USD and settled in $THREE, drafts stay free forever with no card, and if prices can't load the free lane and a retry are still right there. We also tightened the paid generation flow so a generator's billing or credit message can never leak to a buyer: if a generation can't complete, you get clear copy that your payment wasn't taken, not a vendor's internal error. Only coin referenced is $THREE. (`/pricing`) `[feature, improvement]`diff --git a/api/_lib/nft-gate.js b/api/_lib/nft-gate.jsindex ffd1bed6a..ce2f68815 100644--- a/api/_lib/nft-gate.js+++ b/api/_lib/nft-gate.js@@ -157,3 +157,45 @@ export async function userHoldsCollection(userId, collectionMint, opts = {}) {if (wallets.length === 0) return false;return anyWalletHoldsCollection(wallets, collectionMint, opts);}++/**+ * For a set of active price rows, return the skill names an NFT gate currently+ * grants the viewer — so a display surface can mark them "owned" alongside+ * purchased skills. This is for DISPLAY only and is fail-SOFT: a verification+ * error simply omits the skill (the viewer sees the gate, not an error). The+ * authoritative, fail-closed decision lives in hasSkillAccess() on execution.+ *+ * Resolves the viewer's wallets once and checks each distinct collection a+ * single time (skills sharing a collection cost one check).+ *+ * @param {Array<{ skill: string, gate_type?: string, nft_collection_mint?: string }>} priceRows+ * @param {string|null} userId+ * @param {{ fetchImpl?: Function, rpcUrl?: string }} [opts]+ * @returns {Promise<string[]>} skill names the viewer can use via an NFT gate+ */+export async function viewerNftGatedSkills(priceRows, userId, opts = {}) {+ if (!userId || !nftGateEnabled()) return [];+ const gated = (priceRows || []).filter(+ (r) => r.gate_type === 'nft' && r.nft_collection_mint,+ );+ if (gated.length === 0) return [];++ const wallets = await getUserSolanaWallets(userId);+ if (wallets.length === 0) return [];++ const collections = [...new Set(gated.map((r) => r.nft_collection_mint))];+ const heldByCollection = new Map();+ await Promise.all(+ collections.map(async (mint) => {+ try {+ heldByCollection.set(mint, await anyWalletHoldsCollection(wallets, mint, opts));+ } catch {+ heldByCollection.set(mint, false); // fail-soft for display+ }+ }),+ );++ return gated+ .filter((r) => heldByCollection.get(r.nft_collection_mint) === true)+ .map((r) => r.skill);+}diff --git a/api/agents/[id]/skill-access.js b/api/agents/[id]/skill-access.jsindex ff44bd8d9..b4631b3ba 100644--- a/api/agents/[id]/skill-access.js+++ b/api/agents/[id]/skill-access.js@@ -22,6 +22,7 @@ import { authenticateBearer, extractBearer, getSessionUser } from '../../_lib/auimport { cors, error, json, method, wrap, rateLimited } from '../../_lib/http.js';import { clientIp, limits } from '../../_lib/rate-limit.js';import { getSkillPrices, skillPriceMap } from '../../_lib/skill-price-cache.js';+import { viewerNftGatedSkills } from '../../_lib/nft-gate.js';import { isUuid } from '../../_lib/validate.js';async function resolveAuth(req) {@@ -63,6 +64,13 @@ export default wrap(async (req, res) => {const skill_prices = skillPriceMap(priceRows);const purchased_skills = purchasedRows.map((r) => r.skill);+ // NFT-gated skills the viewer currently holds access to count as "owned" for+ // display — there is no purchase row for them. Fail-soft (display only).+ if (auth) {+ const nftSkills = await viewerNftGatedSkills(priceRows, auth.userId).catch(() => []);+ for (const s of nftSkills) if (!purchased_skills.includes(s)) purchased_skills.push(s);+ }+return json(res,200,diff --git a/api/marketplace/[action].js b/api/marketplace/[action].jsindex d2968185e..a4dc6f402 100644--- a/api/marketplace/[action].js+++ b/api/marketplace/[action].js@@ -24,6 +24,7 @@ import { publicUrl } from '../_lib/r2.js';import { clientIp, limits } from '../_lib/rate-limit.js';import { markProviderCooldown, AUTH_COOLDOWN_SECONDS } from '../_lib/provider-health.js';import { getSkillPrices, skillPriceMap } from '../_lib/skill-price-cache.js';+import { viewerNftGatedSkills } from '../_lib/nft-gate.js';import { z } from 'zod';import { isUuid } from '../_lib/validate.js';@@ -720,6 +721,14 @@ async function handleDetail(req, res, id) {const skill_prices = skillPriceMap(priceRows);const purchased_skills = purchasedRows.map((r) => r.skill);+ // NFT-gated skills the viewer holds access to are "owned" for display (no+ // purchase row exists for them). Fail-soft — the gate, not an error, shows if+ // the on-chain check can't resolve. Enforcement stays in hasSkillAccess.+ if (auth) {+ const nftSkills = await viewerNftGatedSkills(priceRows, auth.userId).catch(() => []);+ for (const s of nftSkills) if (!purchased_skills.includes(s)) purchased_skills.push(s);+ }+const subscription_tiers = tierRows.map((t) => ({id: t.id,name: t.name,diff --git a/data/changelog.json b/data/changelog.jsonindex 77d90a521..49c71dbcd 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,24 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-23",+ "title": "Place a whole room of AI agents at fixed spots — they hold their layout for everyone",+ "summary": "IRL agents used to be dropped one at a time at a GPS point, and indoors GPS is off by whole rooms — so a cluster of agents could never keep its shape from one phone to the next. Now you can set up a real room: drop several agents at the exact spots you want — one on the couch, one by the desk, one at the door — and they share a single room frame instead of each trusting its own noisy GPS. The couch agent and the door agent stay metres apart on the right sides for every viewer, no matter how each phone's location drifts. As the owner you can realign the whole room in one gesture — grab the cluster, slide and twist it onto its true spot, and every agent moves together with the internal layout intact. If a room ever shows up rotated for you, one tap — face the room's front and tap Align — snaps it to match your view, just on your screen. After an owner realigns a room, nearby viewers pick up the new positions on their next location refresh (within about 10 seconds). Only coin referenced is $THREE.",+ "tags": [+ "feature"+ ],+ "link": "/irl"+ },+ {+ "date": "2026-06-23",+ "title": "IRL status updates now announced to screen readers",+ "summary": "The status line on the IRL page — the one that confirms things like 'Room aligned to your view', tells you when an agent's spot was refined, or asks you to wait for a clean GPS fix — is now a live region, so screen readers speak each update as it happens instead of leaving it silent on screen. Part of a broader pass making the real-world placement flow fully keyboard- and screen-reader-friendly.",+ "tags": [+ "improvement"+ ],+ "link": "/irl"+ },{"date": "2026-06-23","title": "Consistent currency formatting across the earnings dashboard",diff --git a/package-lock.json b/package-lock.jsonindex 5b619e175..451a94a90 100644--- a/package-lock.json+++ b/package-lock.json@@ -32,6 +32,7 @@"packages/naming-mcp","packages/intel-mcp","packages/marketplace-mcp",+ "packages/x402-mcp","walk-sdk","tour-sdk"],@@ -23020,6 +23021,10 @@"resolved": "walk-sdk","link": true},+ "node_modules/@three-ws/x402-mcp": {+ "resolved": "packages/x402-mcp",+ "link": true+ },"node_modules/@tootallnate/quickjs-emscripten": {"version": "0.23.0","resolved": "https://registry.npmjs.org/@tootallnate/quickjs-emscripten/-/quickjs-emscripten-0.23.0.tgz",@@ -26444,7 +26449,6 @@"version": "2.14.0","resolved": "https://registry.npmjs.org/@x402/fetch/-/fetch-2.14.0.tgz","integrity": "sha512-GSCnxdrbmtuKeki2MTy2vnJq4e6PrA7XfF1yX23VxKvASIYaXUioW1HtRzNYU7imeMe13YcwefRH1jO7Ei7Tyg==",- "dev": true,"license": "Apache-2.0","dependencies": {"@x402/core": "~2.14.0"@@ -54752,6 +54756,28 @@}}},+ "packages/x402-mcp": {+ "name": "@three-ws/x402-mcp",+ "version": "0.1.0",+ "license": "Apache-2.0",+ "dependencies": {+ "@modelcontextprotocol/sdk": "^1.29.0",+ "@solana/kit": "^6.9.0",+ "@solana/spl-token": "^0.4.14",+ "@solana/web3.js": "^1.98.4",+ "@x402/core": "^2.14.0",+ "@x402/fetch": "^2.14.0",+ "@x402/svm": "^2.14.0",+ "bs58": "^6.0.0",+ "zod": "^3.23.8"+ },+ "bin": {+ "x402-mcp": "src/index.js"+ },+ "engines": {+ "node": ">=20"+ }+ },"page-agent-sdk": {"name": "@three-ws/page-agent","version": "0.1.0",diff --git a/public/changelog.json b/public/changelog.jsonindex 0f694e1e1..df85cdc21 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-23T09:40:21.507Z",+ "generated_at": "2026-06-23T09:42:46.937Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -406,6 +406,16 @@"infra"]},+ {+ "date": "2026-06-23",+ "type": "update",+ "title": "IRL status updates now announced to screen readers",+ "summary": "The status line on the IRL page — the one that confirms things like 'Room aligned to your view', tells you when an agent's spot was refined, or asks you to wait for a clean GPS fix — is now a live region, so screen readers speak each update as it happens instead of leaving it silent on screen. Part of a broader pass making the real-world placement flow fully keyboard- and screen-reader-friendly.",+ "link": "/irl",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-23","type": "update",@@ -581,6 +591,16 @@"fix"]},+ {+ "date": "2026-06-23",+ "type": "update",+ "title": "Place a whole room of AI agents at fixed spots — they hold their layout for everyone",+ "summary": "IRL agents used to be dropped one at a time at a GPS point, and indoors GPS is off by whole rooms — so a cluster of agents could never keep its shape from one phone to the next. Now you can set up a real room: drop several agents at the exact spots you want — one on the couch, one by the desk, one at the door — and they share a single room frame instead of each trusting its own noisy GPS. The couch agent and the door agent stay metres apart on the right sides for every viewer, no matter how each phone's location drifts. As the owner you can realign the whole room in one gesture — grab the cluster, slide and twist it onto its true spot, and every agent moves together with the internal layout intact. If a room ever shows up rotated for you, one tap — face the room's front and tap Align — snaps it to match your view, just on your screen. After an owner realigns a room, nearby viewers pick up the new positions on their next location refresh (within about 10 seconds). Only coin referenced is $THREE.",+ "link": "/irl",+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-23","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex c10cda913..bdb68a605 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -318,6 +318,14 @@<category>improvement</category><description>When something fails on our side, the response no longer just says 'something went wrong' — it now carries a short reference code (e.g. 'quote ref a1b2c3d4 to support'). That same code is attached to the exact server log line, our error tracker, and the ops alert that pages the team, so one code maps to one incident. This was already true for most API responses; we extended it to the remaining surfaces that previously failed silently — the RSS announcements feed, sitemaps, the MCP payment flow, on-chain permission checks, and the Solana RPC proxy — so any failure you hit is traceable. Nothing changes when things work; this only makes the rare error far faster to diagnose.</description></item>+ <item>+ <title>IRL status updates now announced to screen readers</title>+ <link>https://three.ws/irl</link>+ <guid isPermaLink="false">2026-06-23:IRL status updates now announced to screen readers</guid>+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The status line on the IRL page — the one that confirms things like 'Room aligned to your view', tells you when an agent's spot was refined, or asks you to wait for a clean GPS fix — is now a live region, so screen readers speak each update as it happens instead of leaving it silent on screen. Part of a broader pass making the real-world placement flow fully keyboard- and screen-reader-friendly.</description>+ </item><item><title>IRL: pinned agents now hold their exact spot indoors instead of drifting</title><link>https://three.ws/irl</link>@@ -454,6 +462,14 @@<category>improvement</category><description>Eighteen pages — including the camera capture, scan, IRL, city, play, and immersive app surfaces — were silently blocking pinch-zoom and browser zoom, which made them hard to read for anyone who needs larger text. Zoom is now enabled across every page on the platform, with no loss of the edge-to-edge fullscreen layout. Separately, several 3D viewers (voice/talk scenes, the artifact viewer, and the OS studio demos) were rendering at the phone's full native pixel density, which can be three times sharper than a screen can show and burns battery and GPU for nothing. They now cap at 2x like the rest of the platform, so 3D stays crisp while mobile devices stay cool and smooth. Only coin referenced is $THREE.</description></item>+ <item>+ <title>Place a whole room of AI agents at fixed spots — they hold their layout for everyone</title>+ <link>https://three.ws/irl</link>+ <guid isPermaLink="false">2026-06-23:Place a whole room of AI agents at fixed spots — they hold their layout for everyone</guid>+ <pubDate>Tue, 23 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>IRL agents used to be dropped one at a time at a GPS point, and indoors GPS is off by whole rooms — so a cluster of agents could never keep its shape from one phone to the next. Now you can set up a real room: drop several agents at the exact spots you want — one on the couch, one by the desk, one at the door — and they share a single room frame instead of each trusting its own noisy GPS. The couch agent and the door agent stay metres apart on the right sides for every viewer, no matter how each phone's location drifts. As the owner you can realign the whole room in one gesture — grab the cluster, slide and twist it onto its true spot, and every agent moves together with the internal layout intact. If a room ever shows up rotated for you, one tap — face the room's front and tap Align — snaps it to match your view, just on your screen. After an owner realigns a room, nearby viewers pick up the new positions on their next location refresh (within about 10 seconds). Only coin referenced is $THREE.</description>+ </item><item><title>Portfolio Command — live net worth, cost basis, P&L attribution & risk for your agent wallet</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex 66f5de49d..79a9f34c1 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-23T09:40:21.449Z",+ "generated_at": "2026-06-23T09:42:46.849Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/avatar-edit.js b/src/avatar-edit.jsindex bc3f66dcc..c0567a319 100644--- a/src/avatar-edit.js+++ b/src/avatar-edit.js@@ -25,6 +25,8 @@ import { IdleAnimation } from './idle-animation.js';import { renderSculptPanel } from './avatar-sculpt.js';import { renderWardrobePanel } from './avatar-wardrobe.js';import { renderRigPanel } from './avatar-rig.js';+import { AvatarWalkPreview } from './avatar-edit-walk.js';+import { apiFetch } from './api.js';import { playAs } from './game/play-handoff.js';import { log } from './shared/log.js';@@ -64,6 +66,7 @@ let scene = null;let accessoryManager = null;let idle = null;let idleDispose = null;+let walkPreview = null;// Appearance state — `current` reflects what the server has, `working` is what// the UI has committed (locally) and will save. We're dirty when they differ.@@ -100,6 +103,7 @@ const TABS = [{ id: 'earrings', label: 'Earrings', kinds: ['earrings'], emoji: '💎', single: false },{ id: 'sculpt', label: 'Sculpt', kinds: [], emoji: '✨', single: true, sculpt: true },{ id: 'rig', label: 'Animate', kinds: [], emoji: '🦴', rig: true },+ { id: 'walk', label: 'Walk', kinds: [], emoji: '🚶', walk: true },];const KIND_EMOJI = {outfit: '👕',@@ -318,6 +322,15 @@ function renderActivePanel() {const tab = TABS.find((t) => t.id === activeTab);const panel = $('ae-panel');+ // Leaving the Walk tab tears down locomotion and restores the static stage.+ // Idempotent, so it's safe to call on every render regardless of source tab.+ if (activeTab !== 'walk') exitWalkMode();++ if (tab.walk) {+ renderWalkPanel(panel);+ return;+ }+// Wardrobe tab: recolour + show/hide the avatar's own garment layers. Shares// the studio's layer engine (src/avatar-wardrobe.js); changes apply live via// the AccessoryManager and persist in appearance.colors / appearance.hidden.@@ -423,6 +436,146 @@ function renderActivePanel() {bindTiles(panel, tab);}+// ── Walk preview ─────────────────────────────────────────────────────────++function getWalkPreview() {+ if (walkPreview) return walkPreview;+ if (!scene?.root) return null;+ walkPreview = new AvatarWalkPreview({+ scene,+ stageEl: $('ae-stage'),+ // The editor's ambient idle layer writes bone rotations every frame; pause+ // it while a retargeted walk clip owns the skeleton, resume on exit.+ pauseAmbient: () => {+ if (idleDispose) {+ idleDispose();+ idleDispose = null;+ }+ },+ resumeAmbient: () => {+ if (idle && scene && !idleDispose) {+ idleDispose = scene.addOnTick((dt) => idle.update(dt));+ }+ },+ });+ walkPreview.onStatus((msg) => {+ const el = $('ae-walk-status');+ if (el) el.textContent = msg || '';+ });+ return walkPreview;+}++function renderWalkPanel(panel) {+ if (!scene?.root) {+ panel.innerHTML = `<div class="ae-empty">Waiting for avatar to load…</div>`;+ return;+ }+ // Don't rebuild the panel (and lose the env selection) if it's already up —+ // renderActivePanel can re-fire while the Walk tab stays active (e.g. on save).+ if (panel.querySelector('#ae-walk-panel')) {+ enterWalkMode();+ return;+ }++ panel.innerHTML = `+ <div class="ae-walk" id="ae-walk-panel">+ <p class="ae-walk-lede">+ See your avatar in motion. It auto-walks a circle around the stage —+ take over any time with <kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd>+ or the arrow keys. Every sculpt, outfit, and accessory edit shows up here live.+ </p>++ <label class="ae-walk-field">+ <span class="ae-walk-field-label">Environment</span>+ <select class="ae-walk-select" id="ae-walk-env">+ <option value="void">Void</option>+ </select>+ </label>++ <button class="ae-btn primary ae-walk-open" id="ae-walk-open" type="button">+ Open in Walk page →+ </button>+ <p class="ae-walk-note" id="ae-walk-status"></p>+ </div>+ `;++ const envSel = panel.querySelector('#ae-walk-env');+ envSel.addEventListener('change', () => {+ getWalkPreview()?.setEnvironment(envSel.value);+ });+ panel.querySelector('#ae-walk-open').addEventListener('click', openInWalkPage);++ enterWalkMode();++ // Backfill the real environment list once the manifest resolves.+ const preview = getWalkPreview();+ if (preview) {+ Promise.resolve(preview.envManifest || preview._applyEnvironment(preview.envName))+ .then(() => populateEnvOptions(envSel, preview))+ .catch(() => {});+ }+}++function populateEnvOptions(sel, preview) {+ if (!sel || !preview) return;+ const envs = preview.availableEnvironments();+ if (envs.length <= 1) return;+ const current = preview.envName || 'void';+ sel.innerHTML = envs+ .map(+ (e) => `<option value="${esc(e.name)}"${e.name === current ? ' selected' : ''}>${esc(e.label)}</option>`,+ )+ .join('');+}++function enterWalkMode() {+ const preview = getWalkPreview();+ if (!preview || preview.active) return;+ preview.enter().catch((err) => {+ log.warn('[avatar-edit] walk preview enter failed:', err?.message);+ const el = $('ae-walk-status');+ if (el) el.textContent = `Could not start walk: ${err.message}`;+ });+}++function exitWalkMode() {+ if (walkPreview?.active) walkPreview.exit();+}++async function openInWalkPage() {+ const btn = $('ae-walk-open');+ const status = $('ae-walk-status');+ if (btn) btn.disabled = true;+ if (status) status.textContent = 'Preparing preview…';+ try {+ // Mint an unguessable draft id and stash the *current* (unsaved) look so the+ // walk page renders exactly what's on the editor stage — not the last save.+ const draftId = (crypto.randomUUID?.() || `${Date.now()}-${Math.random()}`)+ .replace(/[^a-z0-9]/gi, '')+ .slice(0, 40);+ const r = await apiFetch(`/api/avatars/draft/${encodeURIComponent(draftId)}`, {+ method: 'PUT',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify({+ avatar_id: avatar.id,+ appearance: collapseAppearance(workingAppearance),+ }),+ });+ if (!r.ok) {+ const j = await r.json().catch(() => ({}));+ throw new Error(j.error_description || `Could not save draft (${r.status})`);+ }+ const env = $('ae-walk-env')?.value || 'void';+ const url = `/walk?avatar=${encodeURIComponent(draftId)}&preview=true&env=${encodeURIComponent(env)}`;+ window.open(url, '_blank', 'noopener');+ if (status) status.textContent = 'Opened in a new tab.';+ } catch (err) {+ if (status) status.textContent = err.message;+ } finally {+ if (btn) btn.disabled = false;+ }+}+function tilePreviewMarkup(preset) {const emoji = KIND_EMOJI[preset.kind] || '◇';if (!preset.thumbnail) return emoji;diff --git a/src/irl.js b/src/irl.jsindex 6bbb22e20..baf864128 100644--- a/src/irl.js+++ b/src/irl.js@@ -5591,6 +5591,23 @@ function openPinSheet(pin) {}}+ // Placement badge (H4) — only on the owner's own pin: tell them how exposed this+ // placement is (exact spot vs a deliberately blurred one). A non-owner never sees+ // it; legacy own pins (no placement_kind) read as precise.+ const placeEl = document.getElementById('irl-sheet-placement');+ if (placeEl) {+ if (isOwnPin(pin)) {+ const approx = pin.placement_kind === 'approximate';+ placeEl.textContent = approx+ ? `≈ Approximate placement (~${Math.round(Number(pin.fuzz_radius_m) || PLACEMENT_FUZZ_DEFAULT)} m) — your exact spot was never stored`+ : '📍 Exact placement — stored at the precise spot you chose';+ placeEl.classList.toggle('is-approx', approx);+ placeEl.hidden = false;+ } else {+ placeEl.hidden = true;+ }+ }+// Reset the rich-card surfaces before the fresh card resolves: hide the// previous agent's thumbnail + tier badge so neither flashes while the next// card loads. #irl-card-body gets its skeleton from loadAgentCard() below.diff --git a/tests/api/irl-privacy-center.test.js b/tests/api/irl-privacy-center.test.jsindex 3b5fa395d..270ad7646 100644--- a/tests/api/irl-privacy-center.test.js+++ b/tests/api/irl-privacy-center.test.js@@ -36,21 +36,21 @@ const sqlMock = vi.fn((strings, ...values) => {// ── Summary aggregates ──if (/FILTER \(WHERE hidden_at IS NOT NULL\)/i.test(q)) return P(summaryPinAgg);if (/JOIN irl_pins/i.test(q) && /COUNT\(\*\)::int\s+AS total/i.test(q)) return P(summaryInbox);- if (/FROM irl_interactions/i.test(q) && /viewer_device = /i.test(q) && /COUNT\(\*\)::int AS total/i.test(q)) {+ if (/FROM irl_interactions/i.test(q) && /viewer_device =/i.test(q) && /COUNT\(\*\)::int AS total/i.test(q)) {return P(summaryAuthored);}// ── Export selects ──if (/SELECT id, agent_id, lat, lng, heading/i.test(q)) return P(exportPins);if (/JOIN irl_pins/i.test(q) && /ix\.currency_mint/i.test(q)) return P(exportReceived);- if (/SELECT id, pin_id, agent_id, type/i.test(q) && /viewer_device = /i.test(q)) return P(exportAuthored);+ if (/SELECT id, pin_id, agent_id, type/i.test(q) && /viewer_device =/i.test(q)) return P(exportAuthored);// ── Mutations ──if (/UPDATE irl_pins/i.test(q)) { writes.push('update'); return P(updateResult); }if (/DELETE FROM irl_interactions/i.test(q)) {// The authored purge ("forget device") is the only interactions-delete keyed// on viewer_device with no pin_id clause.- if (/viewer_device IS NOT NULL AND viewer_device = /i.test(q) && !/pin_id/i.test(q)) {+ if (/viewer_device IS NOT NULL AND viewer_device =/i.test(q) && !/pin_id/i.test(q)) {writes.push('del-authored');return P(delAuthored);}@@ -167,7 +167,7 @@ describe('GET summary — accurate, plain-language, the caller’s own data onlyexpect(body.summary.account).toBe('signed-in');expect(body.summary.interactions.youLeftElsewhere).toBe(0);// No statement should be keyed on viewer_device for a tokenless caller.- expect(calls.some((c) => /viewer_device = /i.test(c.q))).toBe(false);+ expect(calls.some((c) => /viewer_device =/i.test(c.q))).toBe(false);});});