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
feat: add content billboard feature for 3D coin worlds and restore avatar cam in agent screens
zprv2af6b7f1a19b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 14594f345..7e6aebb55 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -24,6 +24,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Changelog Telegram bot health check** — The autonomous x402 loop now pings the changelog Telegram bot every 5 minutes by paying $0.001 USDC to the new /api/x402/telegram-health endpoint. It verifies the bot can reach the Telegram API, measures round-trip latency, and raises a Redis alert when it can't — so ops knows immediately when $THREE holders would miss a changelog entry. `[infra, feature]`- **Cinematic FX — one-tap film looks for any 3D avatar** — The 3D viewer now ships a full cinematic post-processing pipeline behind a new Cinematic FX panel. Pick a look — Studio, Cinematic, Portrait, Vivid, Neon, or Noir — and the avatar instantly gains the matching grade: soft ambient-occlusion contact shadows, depth-of-field focus falloff, bloom, colour grade (saturation, contrast, brightness, hue), chromatic aberration, and animated film grain. Every effect is also exposed as a live slider so you can dial in your own look, and your chosen preset is remembered per agent. The default Studio look is unchanged, so existing gallery thumbnails and embeds render exactly as before unless you opt into a richer style. `[feature, improvement]`- **Club Social Activity — the platform tracks its own nightlife economy on-chain** — The autonomous loop now pays /api/x402/analytics every 30 minutes with { report: "clubs", period: "24h" } for a live snapshot of the Pole Club's social economy. The report reads straight from the real ledgers — settled tips (club_tips), the stage roster (club_dancer_wallets) and settled door cover charges (x402_audit_log) — and returns how many stages are active, how many distinct patrons showed up, the tip count and USDC volume, the cover charges collected at the door, and a fastest-growing-stage leaderboard. Every snapshot is appended to a club_social_analytics time series so a dashboard can chart whether the nightlife is heating up or cooling down and spot which stages are on the rise. `[feature, infra]`+- **Coin worlds now have a billboard you can feature content on** — Every 3D coin world now stands a billboard behind the spawn point — a framed panel on posts, like a real-world hoarding. By default it shows the world's own image so the space isn't bare. Anyone can feature their own content on it: walk into a world, tap 'Feature your content', drop in an image and caption, and pay the slot fee in USDC or $THREE over x402 to hold the board for everyone who visits, for six hours. It's a content slot, not an ad — nothing is targeted or tracked, your avatar can walk right under it, and the slot frees itself when the time's up. Agents can place content too, straight from the x402 Bazaar. `[feature]`- **Create an agent by describing it — the wizard now builds itself** — Spinning up an agent no longer means filling out five steps of fields. At the top of the Create flow there's now a single box: describe your agent in a sentence — "a witty crypto market analyst that explains charts in plain English" — and we generate the whole thing for you: name, description, tags, the right skills, a fitting 3D body, a marketplace category, a greeting, and its personality. No idea where to start? Tap an example or hit "Surprise me" and get a complete agent with zero typing. Everything lands on the Review step pre-filled, so you read it over, tweak anything you like, and ship. The by-hand form is still right there for anyone who wants it. (`/create-agent`) `[feature]`- **Five pages that were returning 404 are reachable again** — The Gaussian-splat viewer (/splat), the capture tool (/capture), the integrations directory (/integrations), partners (/partners), and the live-agents board (/agents-live) were all returning a 404 in production even though the pages existed and were linked from the nav. Our routing pins every clean URL explicitly, and these five were missing their entry, so the request fell through to the not-found page. We added the missing routes and tightened the route audit so a new page can no longer ship without one. (`/splat`) `[fix]`- **Fixed strategy backtesting failing to find candidate coins** — Running a strategy backtest (and live strategy runs) could fail with a server error while scanning for candidate coins. The scan and trading steps rely on several bundled trading skills, but only one of them was being shipped to production — so the moment a backtest tried to pull trending or new coins, it hit a missing-module error. All of the required skills now deploy together, and backtests source their candidate coins and replay normally again. `[fix]`@@ -49,6 +50,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **The Agents directory now lists every on-chain agent, not just ours** — Until now /agents showed the agents launched on three.ws plus the ones registered through ERC-8004 on EVM chains. We've expanded it to the whole Solana agent ecosystem: a new background crawler indexes the Metaplex Agent Registry and the AgenC coordination protocol every half hour, so agents created anywhere on Solana — not only on three.ws — appear in the directory automatically. The page now opens on one unified feed with quick filters for All sources, Solana, and EVM, and every card carries a coloured badge showing where the agent came from (Metaplex, AgenC, an EVM chain, or three.ws). Agents we launched that are also registered upstream are de-duplicated so they only show once, with their richer three.ws profile. (`/agents`) `[feature, infra]`- **The Avatar Engines Atlas page is now reachable** — The link to the Avatar Engines Atlas — the curated rundown of the open-source and commercial engines behind high-quality, photoreal 3D human avatars — was returning a 404 because the page was never wired into routing. The route is now in place, so the page opens from navigation as intended. (`/avatar-engines`) `[fix]`- **The Coin Intelligence feed now fills itself** — The Coin Intelligence engine (/coin-intel) watches pump.fun's live launch firehose, observes each new coin's first ~90 seconds of trading, and scores it — organic vs bundle, wallet concentration, smart-money entries, category. Until now that observation only ran when a separate always-on worker was up, so the page often sat on its "engine is warming up" screen with nothing to show. The observer now also runs on a schedule on our serverless platform, so it keeps watching launches and recording verdicts on its own — newest coins appear in the feed continuously without depending on any single machine staying online. (`/coin-intel`) `[fix, feature]`+- **The live Agent Screen now shows the agent's avatar cam again** — When you open an agent's live screen, the right-hand 'Avatar Cam' renders that agent's 3D avatar so it feels like you're watching someone work, not just a screen. A bug was stopping the avatar from loading — the cam fell back to an 'Avatar unavailable' placeholder on every agent. It now loads the avatar correctly and plays the idle animation on any humanoid rig, so the cam is live again next to the screen and activity log. (`/agent-screen`) `[fix]`- **The Live Agents wall now shows every agent, 24/7** — The Live Agents page (/agents-live) used to show only the handful of agents that happened to have a browser actively streaming — usually none, so the page sat empty. Now it shows every agent on the platform, each with a live screen, and a screen is never blank: when no live browser is attached, the card streams the agent's real activity as a live terminal straight from its on-chain and skill history. Scroll to load more, and watch the live/total counts update in real time. Open any agent any time — and when you're actually watching one, an on-demand caster spins a real browser feed up for it (and tears it down when you leave), so live pixels are available for any agent without anything running idle. The same activity feed now also powers the screens on the agent desks in the 3D world. (`/agents-live`) `[feature, improvement]`- **The main menu is now organized — no more walls of links** — The top navigation kept everything but had become hard to scan: the Launch menu alone listed 25 features in one long single-column drop-down, and nearly every item shouted a "New" badge, so the badge meant nothing. Each menu — Build, Discover, Launch, Learn — is now split into clearly labelled columns grouped by what you're trying to do (Launch, for example, splits into Launch / Terminal & trade / Intelligence / Compete & earn). Every feature is still one click away, on desktop and in the mobile drawer; nothing was removed or moved off-platform. The only badge left is the green "Live" dot, which now genuinely means the page is running right now. `[improvement]`- **The Money Pulse now sits on a pure-black canvas** — The Money Pulse page (/pulse) now renders on a true black background in every theme, so the live feed of tips, launches, trades and agent-to-agent payments reads as one calm, high-contrast field. Previously the page could pick up a lighter surface or near-black tone depending on your theme; it's now consistently black with the monochrome ink ramp pinned for readability. (`/pulse`) `[improvement]`diff --git a/api/_lib/billboard-store.js b/api/_lib/billboard-store.jsnew file mode 100644index 000000000..ab69f9e93--- /dev/null+++ b/api/_lib/billboard-store.js@@ -0,0 +1,116 @@+// Billboard placements — the paid content panel that stands in each 3D+// coin-world (rendered by src/walk.js). One placement per coin-world at a time;+// whoever paid most recently holds the board until their rental expires.+//+// This is a paid community canvas, NOT an ad network: there is no targeting and+// no tracking. A placement is just { image, caption } plus the rental window.+// It lives in Redis with a TTL equal to the rental, so it disappears on its own+// when the slot runs out — no sweeper, no stale boards. Reads fail open (a+// Redis outage shows the world's default content, never an error).++import { getRedis } from './redis.js';++const KEY_PREFIX = 'billboard:';+const MINT_RE = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;+const MAX_CAPTION = 80;+const MAX_URL = 1024;++// One purchase buys the board for this many hours. Paying again resets the TTL,+// so a holder extends simply by buying another slot.+export const SLOT_HOURS = 6;++function key(coin) {+ return KEY_PREFIX + coin;+}++export function isValidCoin(coin) {+ return MINT_RE.test(String(coin || '').trim());+}++// Only real http/https image URLs survive — data:, javascript:, blob:, and+// anything unparseable are rejected so the panel can never be a script vector.+export function sanitizeImageUrl(raw) {+ const s = String(raw || '').trim();+ if (!s) return null;+ try {+ const u = new URL(s);+ if (u.protocol !== 'http:' && u.protocol !== 'https:') return null;+ if (u.href.length > MAX_URL) return null;+ return u.href;+ } catch {+ return null;+ }+}++export function sanitizeCaption(raw) {+ return String(raw || '')+ .replace(/[\u0000-\u001f\u007f]/g, ' ') // strip control chars+ .trim()+ .slice(0, MAX_CAPTION);+}++// Read the active placement for a coin-world, or null when none / expired /+// Redis is offline. TTL already enforces expiry; the endsAt check is a+// belt-and-braces guard against clock skew on the read path.+export async function getPlacement(coin) {+ if (!isValidCoin(coin)) return null;+ const r = getRedis();+ if (!r) return null;+ try {+ const v = await r.get(key(coin.trim()));+ if (!v) return null;+ const rec = typeof v === 'string' ? JSON.parse(v) : v;+ if (rec?.endsAt && Date.parse(rec.endsAt) <= Date.now()) return null;+ return rec;+ } catch (err) {+ console.warn('[billboard] read failed:', err?.message || err);+ return null;+ }+}++// Write (or replace) the placement for a coin-world. Returns the stored record+// even when Redis is absent so a paid caller still gets a confirmation ticket —+// the payment is real and audited regardless of whether the panel persisted.+export async function setPlacement(+ coin,+ { image, caption, payer = null, network = null, amountAtomics = null, asset = null, hours = SLOT_HOURS } = {},+) {+ if (!isValidCoin(coin)) {+ const e = new Error('a valid coin-world mint is required');+ e.status = 400;+ e.code = 'invalid_coin';+ throw e;+ }+ const img = sanitizeImageUrl(image);+ const cap = sanitizeCaption(caption);+ if (!img && !cap) {+ const e = new Error('provide an image URL and/or a caption to display');+ e.status = 400;+ e.code = 'empty_content';+ throw e;+ }++ const seconds = Math.round(Math.min(Math.max(Number(hours) || SLOT_HOURS, 1), 24) * 3600);+ const now = Date.now();+ const rec = {+ coin: coin.trim(),+ image: img,+ caption: cap || null,+ payer,+ network,+ amountAtomics,+ asset,+ startsAt: new Date(now).toISOString(),+ endsAt: new Date(now + seconds * 1000).toISOString(),+ };++ const r = getRedis();+ if (r) {+ try {+ await r.set(key(rec.coin), JSON.stringify(rec), { ex: seconds });+ } catch (err) {+ console.warn('[billboard] write failed:', err?.message || err);+ }+ }+ return rec;+}diff --git a/api/billboard.js b/api/billboard.jsnew file mode 100644index 000000000..50d8e0f39--- /dev/null+++ b/api/billboard.js@@ -0,0 +1,29 @@+// GET /api/billboard?coin=<mint>+//+// Free read side of the coin-world billboard. Returns the active paid placement+// for a coin-world, or { placement: null } when nobody holds the board (or the+// slot expired). The 3D world at /temporary fetches this on boot — if a+// placement exists it renders that content on the in-world panel instead of the+// world's default. Setting a placement is paid: see /api/x402/billboard.+//+// Fails open: a Redis outage or a bad mint returns { placement: null } with 200+// so the world simply shows its default content rather than erroring.++import { cors, json, method, wrap } from './_lib/http.js';+import { getPlacement, isValidCoin, SLOT_HOURS } from './_lib/billboard-store.js';++export default wrap(async (req, res) => {+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;+ if (!method(req, res, ['GET'])) return;++ const coin = String(req.query?.coin || '').trim();+ if (!isValidCoin(coin)) {+ return json(res, 200, { placement: null, slotHours: SLOT_HOURS });+ }++ const placement = await getPlacement(coin);+ // Short cache: placements change rarely (a 6-hour slot), but a fresh visitor+ // should see a new holder within a minute.+ res.setHeader('Cache-Control', 'public, max-age=30, s-maxage=30');+ return json(res, 200, { placement: placement || null, slotHours: SLOT_HOURS });+});diff --git a/api/x402/billboard.js b/api/x402/billboard.jsnew file mode 100644index 000000000..5b2148694--- /dev/null+++ b/api/x402/billboard.js@@ -0,0 +1,166 @@+// GET /api/x402/billboard?coin=<mint>&image=<url>&caption=<text>+//+// Paid endpoint cataloged by the CDP x402 Bazaar. For a flat USDC/$THREE fee+// the caller features their content on a 3D coin-world's billboard — the framed+// panel src/walk.js stands behind spawn — for a fixed rental window. Whoever+// pays most recently holds the board until the slot expires.+//+// This is a paid community canvas, not an ad unit: nothing is targeted or+// tracked, the panel just shows one image and/or caption. The /temporary coin+// world reads the active placement from /api/billboard and renders it in place+// of the world's default content. Agents can call this programmatically with+// @x402/fetch to put their own art (or a coin's image) on a world's board.++import { paidEndpoint } from '../_lib/x402-paid-endpoint.js';+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 { setPlacement, sanitizeImageUrl, sanitizeCaption, isValidCoin, SLOT_HOURS } from '../_lib/billboard-store.js';++const ROUTE = '/api/x402/billboard';++const DESCRIPTION =+ 'three.ws coin worlds — feature your content on a 3D world’s billboard. ' ++ `Pay once to hold the framed panel behind spawn for ${SLOT_HOURS} hours: ` ++ 'pass the coin-world mint plus an image URL and/or a short caption. The ' ++ '/temporary coin world renders your placement in place of its default ' ++ 'content for everyone who walks in until the slot expires. It is a paid ' ++ 'content canvas, not an ad unit — nothing is targeted or tracked.';++const INPUT_EXAMPLE = {+ coin: 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump',+ image: 'https://three.ws/og-image.png',+ caption: 'gm from the gallery',+};++const INPUT_SCHEMA = {+ $schema: 'https://json-schema.org/draft/2020-12/schema',+ type: 'object',+ required: ['coin'],+ properties: {+ coin: {+ type: 'string',+ pattern: '^[1-9A-HJ-NP-Za-km-z]{32,44}$',+ description: 'The coin-world mint — which world’s billboard to set.',+ },+ image: {+ type: 'string',+ format: 'uri',+ description: 'http/https image URL, cover-fit onto the panel. Optional if a caption is given.',+ },+ caption: {+ type: 'string',+ maxLength: 80,+ description: 'Short caption shown in a strip under the image. Optional if an image is given.',+ },+ },+};++const OUTPUT_EXAMPLE = {+ ok: true,+ coin: 'FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump',+ image: 'https://three.ws/og-image.png',+ caption: 'gm from the gallery',+ slotHours: SLOT_HOURS,+ startsAt: '2026-06-28T18:42:09.000Z',+ endsAt: '2026-06-29T00:42:09.000Z',+ payer: 'wwwPqsM4N7T9J69tB82nLyzxqsH159j4orftLTQfUGV',+ network: 'solana',+ amountAtomics: '50000',+ asset: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v',+};++const OUTPUT_SCHEMA = {+ $schema: 'https://json-schema.org/draft/2020-12/schema',+ type: 'object',+ required: ['ok', 'coin', 'slotHours', 'startsAt', 'endsAt'],+ properties: {+ ok: { type: 'boolean', const: true },+ coin: { type: 'string' },+ image: { type: ['string', 'null'] },+ caption: { type: ['string', 'null'] },+ slotHours: { type: 'integer', minimum: 1, maximum: 24 },+ startsAt: { type: 'string', format: 'date-time' },+ endsAt: { type: 'string', format: 'date-time' },+ payer: { type: ['string', 'null'] },+ network: { type: ['string', 'null'] },+ amountAtomics: { type: ['string', 'null'] },+ asset: { type: ['string', 'null'] },+ },+};++const BAZAAR = {+ discoverable: true,+ info: {+ input: { type: 'http', method: 'GET', queryParams: INPUT_EXAMPLE },+ output: { type: 'json', example: OUTPUT_EXAMPLE },+ },+ schema: buildBazaarSchema({+ method: 'GET',+ queryParamsSchema: INPUT_SCHEMA,+ outputSchema: OUTPUT_SCHEMA,+ }),+};++export const BAZAAR_SCHEMA = BAZAAR;++export default paidEndpoint({+ route: ROUTE,+ method: 'GET',+ // Flat fee for one slot. $0.05 USDC default — a placement is more than a tip+ // but kept low so featuring content stays accessible.+ priceAtomics: priceFor('billboard', '50000'),+ networks: ['solana', 'base'],+ description: DESCRIPTION,+ bazaar: BAZAAR,+ service: withService({+ serviceName: 'three.ws Coin-World Billboard',+ tags: ['3d', 'world', 'billboard', 'content', 'placement'],+ }),+ requiredScope: 'x402:bypass',+ accessControl: installAccessControl({ requiredScope: 'x402:bypass' }),+ async handler({ req, requirement, payer, bypass }) {+ const coin = String(req.query?.coin || '').trim();+ if (!isValidCoin(coin)) {+ const err = new Error('a valid coin-world mint is required in ?coin=');+ err.status = 400;+ err.code = 'invalid_coin';+ throw err;+ }+ const image = sanitizeImageUrl(req.query?.image);+ const caption = sanitizeCaption(req.query?.caption);+ if (!image && !caption) {+ const err = new Error('provide ?image=<url> and/or ?caption=<text> to display');+ err.status = 400;+ err.code = 'empty_content';+ throw err;+ }++ const rec = await setPlacement(coin, {+ image,+ caption,+ payer: payer ?? (bypass ? bypass.callerId : null),+ network: requirement?.network ?? null,+ amountAtomics: requirement?.amount ?? null,+ asset: requirement?.asset ?? null,+ hours: SLOT_HOURS,+ });++ const out = {+ ok: true,+ coin: rec.coin,+ image: rec.image,+ caption: rec.caption,+ slotHours: SLOT_HOURS,+ startsAt: rec.startsAt,+ endsAt: rec.endsAt,+ payer: rec.payer,+ network: rec.network,+ amountAtomics: rec.amountAtomics,+ asset: rec.asset,+ };+ if (bypass) out.bypass = bypass.reason;+ return out;+ },+});diff --git a/data/changelog.json b/data/changelog.jsonindex 22d1bef75..8aec4b22f 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,23 @@{"$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-28",+ "title": "Coin worlds now have a billboard you can feature content on",+ "summary": "Every 3D coin world now stands a billboard behind the spawn point — a framed panel on posts, like a real-world hoarding. By default it shows the world's own image so the space isn't bare. Anyone can feature their own content on it: walk into a world, tap 'Feature your content', drop in an image and caption, and pay the slot fee in USDC or $THREE over x402 to hold the board for everyone who visits, for six hours. It's a content slot, not an ad — nothing is targeted or tracked, your avatar can walk right under it, and the slot frees itself when the time's up. Agents can place content too, straight from the x402 Bazaar.",+ "tags": [+ "feature"+ ]+ },+ {+ "date": "2026-06-28",+ "title": "The live Agent Screen now shows the agent's avatar cam again",+ "summary": "When you open an agent's live screen, the right-hand 'Avatar Cam' renders that agent's 3D avatar so it feels like you're watching someone work, not just a screen. A bug was stopping the avatar from loading — the cam fell back to an 'Avatar unavailable' placeholder on every agent. It now loads the avatar correctly and plays the idle animation on any humanoid rig, so the cam is live again next to the screen and activity log.",+ "tags": [+ "fix"+ ],+ "link": "/agent-screen"+ },{"date": "2026-06-28","title": "The Agents directory now lists every on-chain agent, not just ours",diff --git a/pages/temporary.html b/pages/temporary.htmlindex 57b6c269f..65c1b2e83 100644--- a/pages/temporary.html+++ b/pages/temporary.html@@ -1470,6 +1470,10 @@</div><script type="module" src="/src/walk.js"></script>+ <!-- x402 payment widget — powers the in-world "Feature your content"+ billboard publish flow (window.X402.pay). Defer-loaded; walk.js polls+ for it before letting the pay button run. -->+ <script src="/x402.js" defer></script><!-- Coin-world social layer: lobby (no ?coin=) or Town (live communityfeed + realtime bubbles) bound to the current coin. Self-contained;the 3D scene above is walk.js's, the multiplayer join is walk-net's. -->diff --git a/public/changelog.json b/public/changelog.jsonindex e3ee88a9d..f22b4cda0 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-28T21:20:14.117Z",+ "generated_at": "2026-06-28T22:56:12.840Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -195,6 +195,16 @@"infra"]},+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "Coin worlds now have a billboard you can feature content on",+ "summary": "Every 3D coin world now stands a billboard behind the spawn point — a framed panel on posts, like a real-world hoarding. By default it shows the world's own image so the space isn't bare. Anyone can feature their own content on it: walk into a world, tap 'Feature your content', drop in an image and caption, and pay the slot fee in USDC or $THREE over x402 to hold the board for everyone who visits, for six hours. It's a content slot, not an ad — nothing is targeted or tracked, your avatar can walk right under it, and the slot frees itself when the time's up. Agents can place content too, straight from the x402 Bazaar.",+ "link": null,+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-28","type": "update",@@ -459,6 +469,16 @@"feature"]},+ {+ "date": "2026-06-28",+ "type": "update",+ "title": "The live Agent Screen now shows the agent's avatar cam again",+ "summary": "When you open an agent's live screen, the right-hand 'Avatar Cam' renders that agent's 3D avatar so it feels like you're watching someone work, not just a screen. A bug was stopping the avatar from loading — the cam fell back to an 'Avatar unavailable' placeholder on every agent. It now loads the avatar correctly and plays the idle animation on any humanoid rig, so the cam is live again next to the screen and activity log.",+ "link": "/agent-screen",+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-28","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex c10d72837..2fd7bfe2b 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -150,6 +150,14 @@<category>feature</category><description>The autonomous loop now pays /api/x402/analytics every 30 minutes with { report: "clubs", period: "24h" } for a live snapshot of the Pole Club's social economy. The report reads straight from the real ledgers — settled tips (club_tips), the stage roster (club_dancer_wallets) and settled door cover charges (x402_audit_log) — and returns how many stages are active, how many distinct patrons showed up, the tip count and USDC volume, the cover charges collected at the door, and a fastest-growing-stage leaderboard. Every snapshot is appended to a club_social_analytics time series so a dashboard can chart whether the nightlife is heating up or cooling down and spot which stages are on the rise.</description></item>+ <item>+ <title>Coin worlds now have a billboard you can feature content on</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-28:Coin worlds now have a billboard you can feature content on</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Every 3D coin world now stands a billboard behind the spawn point — a framed panel on posts, like a real-world hoarding. By default it shows the world's own image so the space isn't bare. Anyone can feature their own content on it: walk into a world, tap 'Feature your content', drop in an image and caption, and pay the slot fee in USDC or $THREE over x402 to hold the board for everyone who visits, for six hours. It's a content slot, not an ad — nothing is targeted or tracked, your avatar can walk right under it, and the slot frees itself when the time's up. Agents can place content too, straight from the x402 Bazaar.</description>+ </item><item><title>Create an agent by describing it — the wizard now builds itself</title><link>https://three.ws/create-agent</link>@@ -350,6 +358,14 @@<category>fix</category><description>The Coin Intelligence engine (/coin-intel) watches pump.fun's live launch firehose, observes each new coin's first ~90 seconds of trading, and scores it — organic vs bundle, wallet concentration, smart-money entries, category. Until now that observation only ran when a separate always-on worker was up, so the page often sat on its "engine is warming up" screen with nothing to show. The observer now also runs on a schedule on our serverless platform, so it keeps watching launches and recording verdicts on its own — newest coins appear in the feed continuously without depending on any single machine staying online.</description></item>+ <item>+ <title>The live Agent Screen now shows the agent's avatar cam again</title>+ <link>https://three.ws/agent-screen</link>+ <guid isPermaLink="false">2026-06-28:The live Agent Screen now shows the agent's avatar cam again</guid>+ <pubDate>Sun, 28 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>When you open an agent's live screen, the right-hand 'Avatar Cam' renders that agent's 3D avatar so it feels like you're watching someone work, not just a screen. A bug was stopping the avatar from loading — the cam fell back to an 'Avatar unavailable' placeholder on every agent. It now loads the avatar correctly and plays the idle animation on any humanoid rig, so the cam is live again next to the screen and activity log.</description>+ </item><item><title>The Live Agents wall now shows every agent, 24/7</title><link>https://three.ws/agents-live</link>diff --git a/public/features.json b/public/features.jsonindex a9b6dddd3..7f0d30223 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-28T21:20:14.079Z",+ "generated_at": "2026-06-28T22:56:12.827Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/agent-screen.js b/src/agent-screen.jsindex be840a85d..27ac4ab74 100644--- a/src/agent-screen.js+++ b/src/agent-screen.js@@ -428,7 +428,6 @@ async function boot(id) {webcamCamera.position.set(0, 1.62, 0.9);webcamCamera.lookAt(0, 1.55, 0);- let webcamMixer = null;let webcamAnimManager = null;let webcamAvatar = null;let webcamRafId = null;@@ -448,11 +447,31 @@ async function boot(id) {webcamCamera.position.set(0, h - 0.12, 0.72);webcamCamera.lookAt(0, h - 0.18, 0);- // Drive idle animation- webcamAnimManager = new AnimationManager(model, { loop: true });- if (gltf.animations?.length) {- webcamMixer = webcamAnimManager.init(gltf.animations);- webcamAnimManager.play('idle');+ // Drive idle animation via the universal canonical clip library, which+ // retargets the pre-baked idle onto ANY humanoid rig (Mixamo, Avaturn,+ // VRM, …). The GLB's own gltf.animations are intentionally ignored — most+ // avatars ship without animation, so the shared clip is what gives every+ // agent presence on the cam. A rig that can't be skeleton-driven falls+ // back to its authored bind pose (supportsCanonicalClips() gate).+ webcamAnimManager = new AnimationManager();+ webcamAnimManager.attach(model, { avatarUrl: glbUrl || '/avatars/default.glb' });+ if (webcamAnimManager.supportsCanonicalClips()) {+ try {+ const manifest = await fetch('/animations/manifest.json', { cache: 'force-cache' })+ .then((r) => {+ if (!r.ok) throw new Error(`HTTP ${r.status} fetching animation manifest`);+ return r.json();+ });+ const needed = manifest.filter((d) => d.name === 'idle');+ if (needed.length) {+ webcamAnimManager.setAnimationDefs(needed);+ await webcamAnimManager.loadAll();+ webcamAnimManager.play('idle');+ }+ } catch (err) {+ // Non-fatal: a frozen bind-pose avatar still gives presence.+ console.warn('[agent-screen] idle clip load failed:', err);+ }}// Size the renderer to match the bezel@@ -473,7 +492,7 @@ async function boot(id) {webcamRafId = requestAnimationFrame(webcamTick);const dt = Math.min((t - last) / 1000, 0.1);last = t;- if (webcamMixer) webcamMixer.update(dt);+ webcamAnimManager?.update(dt);webcamRenderer.render(webcamScene, webcamCamera);}webcamRafId = requestAnimationFrame(webcamTick);@@ -647,6 +666,7 @@ async function boot(id) {window.addEventListener('beforeunload', () => {client.disconnect();if (webcamRafId) cancelAnimationFrame(webcamRafId);+ webcamAnimManager?.detach();webcamRenderer.dispose();});}diff --git a/src/walk.js b/src/walk.jsindex 7b432a141..5313e116e 100644--- a/src/walk.js+++ b/src/walk.js@@ -2928,6 +2928,7 @@ const marketplaceGallery = GALLERY_MODElet net = null;let netConnected = false;let coinTotem = null; // CoinTotem instance when in a coin community world+let contentBillboard = null; // ContentBillboard instance — a static content panel in-world// Remote-avatar template cache. Each distinct GLB URL is fetched once and// reused (via SkeletonUtils.clone) for every player wearing it, so a room full@@ -3652,6 +3653,9 @@ function buildCollidersFromMeta(meta) {});}}+ // The content billboard is a persistent prop, not part of any environment's+ // manifest — re-add its post colliders on every swap (this array is reset above).+ if (contentBillboard) worldObstacles.push(...contentBillboard.colliders());}// Kickable physics props — beach balls and crates that fall, roll, and get@@ -3721,6 +3725,7 @@ function applyEnvironmentMeta(meta) {applySky(meta, stage);clearDynamicMeshes();buildCollidersFromMeta(meta);+ contentBillboard?.placeOnTerrain();buildDynamicProps(meta);rebuildPhysicsWorld();try {@@ -4980,6 +4985,389 @@ if (import.meta.env?.DEV) {}}+// ── Content billboard ────────────────────────────────────────────────────────+// A cheap, static billboard you can drop content onto — a framed panel on two+// posts standing as a backdrop behind spawn. It is decoration, not an ad unit:+// no targeting, no tracking, no network of its own. It just shows one image (or+// a short caption) so a space has something on its walls.+//+// /temporary?board=<image-url> put your own content on it+// /temporary?boardText=<text> caption strip under the image (or use it alone)+// /temporary?board=off hide it entirely+//+// With no params it falls back to the coin's own image in a coin world, or the+// three.ws cover image on the mainland, so the panel is never blank.+{+ const params = new URLSearchParams(location.search);+ const boardParam = (params.get('board') || '').trim();+ const boardText = (params.get('boardText') || '').slice(0, 80).trim();++ // Resolve the content image: explicit param → the coin's image → cover image.+ function resolveContentImage() {+ if (boardParam && boardParam !== 'off') {+ try {+ const u = new URL(boardParam, location.origin);+ if (u.protocol === 'http:' || u.protocol === 'https:') return u.href;+ } catch {+ /* not a URL — treated as no image, caption-only is still valid */+ }+ }+ if (COIN_PARAMS.image) return COIN_PARAMS.image;+ return new URL('/og-image.png', location.origin).href;+ }++ // 16:9 content surface painted to a canvas → CanvasTexture. The image is+ // cover-fit; a tinted gradient + caption stands in until (or unless) it loads,+ // so cross-origin taint or a 404 degrades to something legible, never blank.+ // Parameterized so the same painter draws the world default and any paid+ // placement that streams in later (see ContentBillboard.setContent).+ function paintContentTexture({ imageSrc, caption } = {}) {+ const W = 1024;+ const H = 576;+ const cv = document.createElement('canvas');+ cv.width = W;+ cv.height = H;+ const ctx = cv.getContext('2d');+ const tex = new CanvasTexture(cv);+ tex.anisotropy = 8;++ const label = caption || (COIN_PARAMS.symbol ? `$${COIN_PARAMS.symbol}` : 'three.ws');++ const drawCaptionStrip = () => {+ if (!caption) return;+ const stripH = Math.round(H * 0.16);+ ctx.fillStyle = 'rgba(8,9,14,0.72)';+ ctx.fillRect(0, H - stripH, W, stripH);+ ctx.fillStyle = 'rgba(255,255,255,0.96)';+ ctx.font = `600 ${Math.round(stripH * 0.46)}px system-ui, sans-serif`;+ ctx.textAlign = 'center';+ ctx.textBaseline = 'middle';+ ctx.fillText(caption, W / 2, H - stripH / 2, W - 48);+ };++ const drawFallback = () => {+ const grad = ctx.createLinearGradient(0, 0, W, H);+ grad.addColorStop(0, '#12141f');+ grad.addColorStop(1, '#05060a');+ ctx.fillStyle = grad;+ ctx.fillRect(0, 0, W, H);+ ctx.fillStyle = 'rgba(255,255,255,0.92)';+ ctx.font = `700 ${Math.round(H * 0.18)}px system-ui, sans-serif`;+ ctx.textAlign = 'center';+ ctx.textBaseline = 'middle';+ ctx.fillText(label, W / 2, H / 2, W - 64);+ };++ drawFallback();+ tex.needsUpdate = true;++ if (imageSrc) {+ const img = new Image();+ img.crossOrigin = 'anonymous';+ img.referrerPolicy = 'no-referrer';+ img.onload = () => {+ try {+ ctx.clearRect(0, 0, W, H);+ const s = Math.max(W / img.width, H / img.height);+ const w = img.width * s;+ const h = img.height * s;+ ctx.drawImage(img, (W - w) / 2, (H - h) / 2, w, h);+ drawCaptionStrip();+ tex.needsUpdate = true;+ } catch {+ drawFallback();+ tex.needsUpdate = true;+ }+ };+ // On error we keep the fallback that's already painted — no handler needed.+ img.src = imageSrc;+ }+ return tex;+ }++ // Footprint and proportions (metres). Panel rides above head height on two+ // posts so the avatar can pass beneath it; only the posts are solid.+ const PANEL_W = 8;+ const PANEL_H = 4.5;+ const PANEL_BOTTOM = 2.4; // clearance from ground to the underside of the frame+ const POST_HALF = 0.14; // post half-thickness+ const POST_X = PANEL_W / 2 - 0.7; // inset from the panel edges+ const FOOT = { x: 0, z: -17 }; // behind spawn (origin) and the coin totem (z=-7)++ class ContentBillboard {+ constructor() {+ this.group = new Group();+ const panelCenterY = PANEL_BOTTOM + PANEL_H / 2;++ const postMat = new MeshStandardMaterial({+ color: 0x2a2d38,+ roughness: 0.7,+ metalness: 0.2,+ });+ const postGeo = new BoxGeometry(POST_HALF * 2, PANEL_BOTTOM + 0.2, POST_HALF * 2);+ for (const sx of [-1, 1]) {+ const post = new Mesh(postGeo, postMat);+ post.position.set(sx * POST_X, (PANEL_BOTTOM + 0.2) / 2, 0);+ post.castShadow = true;+ post.receiveShadow = true;+ this.group.add(post);+ }++ // Backing frame — a thin dark slab a touch larger than the screen so the+ // panel reads as a solid board from any angle and the back isn't see-through.+ const frame = new Mesh(+ new BoxGeometry(PANEL_W + 0.4, PANEL_H + 0.4, 0.16),+ new MeshStandardMaterial({ color: 0x16181f, roughness: 0.85, metalness: 0.1 }),+ );+ frame.position.set(0, panelCenterY, 0);+ frame.castShadow = true;+ this.group.add(frame);++ // Content screen — unlit so the artwork is always legible and cheap to+ // draw, sitting just proud of the frame's front face. Starts on the world+ // default; a paid placement (if any) swaps in via setContent() once the+ // /api/billboard fetch resolves.+ this.screen = new Mesh(+ new PlaneGeometry(PANEL_W, PANEL_H),+ new MeshBasicMaterial({+ map: paintContentTexture({ imageSrc: resolveContentImage(), caption: boardText }),+ toneMapped: false,+ }),+ );+ this.screen.position.set(0, panelCenterY, 0.09);+ this.group.add(this.screen);++ scene.add(this.group);+ this.placeOnTerrain();+ }++ // Swap the panel's artwork. Repaints a fresh texture and disposes the old+ // one. A placement with no image but a caption shows the caption full-bleed;+ // an empty placement reverts to the world default.+ setContent({ image, caption } = {}) {+ const imageSrc = image || (caption ? null : resolveContentImage());+ const tex = paintContentTexture({ imageSrc, caption });+ const prev = this.screen.material.map;+ this.screen.material.map = tex;+ this.screen.material.needsUpdate = true;+ prev?.dispose();+ }++ // Sit the structure on the live terrain — re-called on every environment+ // swap so the billboard tracks the new ground instead of floating or sinking.+ placeOnTerrain() {+ const y = terrain ? terrain.heightAt(FOOT.x, FOOT.z) : 0;+ this.group.position.set(FOOT.x, y, FOOT.z);+ }++ // Static box colliders for the two posts (panel sits above head height, so+ // it is intentionally walk-through). Y is resolved against the live terrain.+ colliders() {+ const gy = terrain ? terrain.heightAt(FOOT.x, FOOT.z) : 0;+ const hy = (PANEL_BOTTOM + 0.2) / 2;+ return [-1, 1].map((sx) => ({+ type: 'box',+ position: { x: FOOT.x + sx * POST_X, y: gy + hy, z: FOOT.z },+ halfExtents: { x: POST_HALF, y: hy, z: POST_HALF },+ rotationY: 0,+ }));+ }+ }++ if (boardParam !== 'off') {+ contentBillboard = new ContentBillboard();++ // In a coin world, the billboard is a paid community canvas: fetch whoever+ // currently holds the board and show their content (unless the visitor+ // passed an explicit ?board= preview override, which wins locally).+ const hasLocalOverride = boardParam && boardParam !== 'off';+ if (COIN_PARAMS.coin && !hasLocalOverride) {+ fetch(`/api/billboard?coin=${encodeURIComponent(COIN_PARAMS.coin)}`, {+ headers: { accept: 'application/json' },+ })+ .then((r) => (r.ok ? r.json() : null))+ .then((data) => {+ const p = data?.placement;+ if (p && (p.image || p.caption)) {+ contentBillboard.setContent({ image: p.image, caption: p.caption });+ }+ })+ .catch(() => {+ /* offline / not configured — the world default stays on the panel */+ });++ buildBillboardPublisher();+ }+ }++ // ── Publish flow ─────────────────────────────────────────────────────────+ // A compact "Feature your content" button + dialog that takes an image URL+ // and caption and pays for the slot over x402 (window.X402.pay, loaded from+ // /x402.js). On a settled payment the panel updates immediately for this+ // viewer; everyone else picks it up from /api/billboard on their next load.+ function buildBillboardPublisher() {+ const SLOT_LABEL = '$0.05 · 6 hours';+ const btn = document.createElement('button');+ btn.id = 'walk-billboard-publish';+ btn.type = 'button';+ btn.textContent = '📢 Feature your content';+ btn.title = 'Put your image on this world’s billboard';+ btn.style.cssText = [+ 'position:fixed',+ 'z-index:7',+ 'left:16px',+ 'bottom:calc(env(safe-area-inset-bottom, 0) + 128px)',+ 'display:inline-flex',+ 'align-items:center',+ 'gap:6px',+ 'padding:8px 12px',+ 'border-radius:999px',+ 'border:1px solid rgba(255,255,255,0.16)',+ 'background:rgba(14,16,24,0.78)',+ 'backdrop-filter:blur(8px)',+ '-webkit-backdrop-filter:blur(8px)',+ 'color:#fff',+ 'font:600 13px/1 system-ui, sans-serif',+ 'cursor:pointer',+ 'transition:transform .12s ease, border-color .12s ease, background .12s ease',+ ].join(';');+ btn.addEventListener('pointerenter', () => {+ btn.style.transform = 'translateY(-1px)';+ btn.style.borderColor = 'rgba(255,255,255,0.32)';+ });+ btn.addEventListener('pointerleave', () => {+ btn.style.transform = '';+ btn.style.borderColor = 'rgba(255,255,255,0.16)';+ });+ btn.addEventListener('click', openPublishDialog);+ document.body.appendChild(btn);++ let overlay = null;++ function closeDialog() {+ overlay?.remove();+ overlay = null;+ }++ function openPublishDialog() {+ if (overlay) return;+ overlay = document.createElement('div');+ overlay.style.cssText = [+ 'position:fixed',+ 'inset:0',+ 'z-index:60',+ 'display:flex',+ 'align-items:center',+ 'justify-content:center',+ 'padding:20px',+ 'background:rgba(4,5,9,0.6)',+ 'backdrop-filter:blur(4px)',+ '-webkit-backdrop-filter:blur(4px)',+ ].join(';');+ overlay.addEventListener('click', (e) => {+ if (e.target === overlay) closeDialog();+ });++ const card = document.createElement('div');+ card.setAttribute('role', 'dialog');+ card.setAttribute('aria-label', 'Feature your content on the billboard');+ card.style.cssText = [+ 'width:min(420px, 100%)',+ 'background:#0e1018',+ 'border:1px solid rgba(255,255,255,0.12)',+ 'border-radius:16px',+ 'padding:20px',+ 'box-shadow:0 24px 60px rgba(0,0,0,0.55)',+ 'color:#fff',+ 'font-family:system-ui, sans-serif',+ ].join(';');+ card.innerHTML = `+ <div style="font:700 16px/1.2 system-ui;margin-bottom:4px">Feature your content</div>+ <div style="font:400 13px/1.45 system-ui;color:rgba(255,255,255,0.6);margin-bottom:16px">+ Hold this world’s billboard for everyone who walks in. ${SLOT_LABEL}. It’s a content+ slot, not an ad — nothing is tracked.+ </div>+ <label style="display:block;font:600 12px/1 system-ui;color:rgba(255,255,255,0.7);margin-bottom:6px">Image URL</label>+ <input id="bb-image" type="url" inputmode="url" placeholder="https://…/art.png"+ style="width:100%;box-sizing:border-box;padding:10px 12px;margin-bottom:14px;border-radius:10px;border:1px solid rgba(255,255,255,0.14);background:#05060a;color:#fff;font:400 14px system-ui" />+ <label style="display:block;font:600 12px/1 system-ui;color:rgba(255,255,255,0.7);margin-bottom:6px">Caption <span style="font-weight:400;color:rgba(255,255,255,0.4)">(optional)</span></label>+ <input id="bb-caption" type="text" maxlength="80" placeholder="gm from the gallery"+ style="width:100%;box-sizing:border-box;padding:10px 12px;margin-bottom:8px;border-radius:10px;border:1px solid rgba(255,255,255,0.14);background:#05060a;color:#fff;font:400 14px system-ui" />+ <div id="bb-msg" role="status" style="min-height:18px;font:500 12px/1.4 system-ui;color:#ffb4b4;margin-bottom:10px"></div>+ <div style="display:flex;gap:8px;justify-content:flex-end">+ <button id="bb-cancel" type="button" style="padding:9px 14px;border-radius:10px;border:1px solid rgba(255,255,255,0.14);background:transparent;color:rgba(255,255,255,0.8);font:600 13px system-ui;cursor:pointer">Cancel</button>+ <button id="bb-pay" type="button" style="padding:9px 16px;border-radius:10px;border:0;background:#5a8dee;color:#fff;font:700 13px system-ui;cursor:pointer">Feature — pay</button>+ </div>`;+ overlay.appendChild(card);+ document.body.appendChild(overlay);++ const imageEl = card.querySelector('#bb-image');+ const captionEl = card.querySelector('#bb-caption');+ const msgEl = card.querySelector('#bb-msg');+ const payBtn = card.querySelector('#bb-pay');+ card.querySelector('#bb-cancel').addEventListener('click', closeDialog);+ imageEl.focus();++ const setMsg = (t) => {+ msgEl.textContent = t || '';+ };++ payBtn.addEventListener('click', async () => {+ const image = imageEl.value.trim();+ const caption = captionEl.value.trim();+ if (!image && !caption) {+ setMsg('Add an image URL or a caption.');+ return;+ }+ if (image && !/^https?:\/\//i.test(image)) {+ setMsg('Image URL must start with http:// or https://');+ return;+ }+ if (!window.X402?.pay) {+ setMsg('Wallet widget still loading — try again in a second.');+ return;+ }+ setMsg('');+ payBtn.disabled = true;+ payBtn.textContent = 'Open wallet…';+ try {+ const qs = new URLSearchParams({ coin: COIN_PARAMS.coin });+ if (image) qs.set('image', image);+ if (caption) qs.set('caption', caption);+ const out = await window.X402.pay({+ endpoint: `/api/x402/billboard?${qs.toString()}`,+ method: 'GET',+ merchant: 'three.ws Coin-World Billboard',+ action: 'Feature your content on this world’s billboard',+ autoConnect: true,+ });+ const res = out?.result;+ if (!res?.ok) throw new Error(res?.error || 'placement did not settle');+ contentBillboard.setContent({ image: res.image, caption: res.caption });+ closeDialog();+ } catch (err) {+ if (err?.code === 'cancelled') {+ payBtn.disabled = false;+ payBtn.textContent = 'Feature — pay';+ return;+ }+ setMsg(err?.message || 'Payment failed — please try again.');+ payBtn.disabled = false;+ payBtn.textContent = 'Feature — pay';+ }+ });++ const onKey = (e) => {+ if (e.key === 'Escape') {+ closeDialog();+ window.removeEventListener('keydown', onKey);+ }+ };+ window.addEventListener('keydown', onKey);+ }+ }+}+// ── Restore zen preference ───────────────────────────────────────────────// Runs after all UI state is declared. URL param wins, then stored choice.(() => {