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: Walk Avatar popup avatar picker with sign-in, Featured/Recent tabs
originols34ac9140e710
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 881a28bf8..e71b9d190 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,8 +8,18 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Grind-Bounty Market** (`/vanity/bounties`) — A decentralized x402 bounty market for hard Solana vanity addresses — escrow a USDC bounty and a fleet of independent workers grinds it in parallel. The first verified match wins, but the found key is sealed to you so the worker never sees your wallet. Earn USDC by grinding open bounties.- **Proof-of-Grind Gallery** (`/vanity/gallery`) — A public gallery and leaderboard of the rarest Solana vanity addresses ground on three.ws — each provably-fair, verified, and shareable. Appraise any address to see its honest rarity tier and grind cost.+- **Express yourself in Walk — wave, dance, sit, point, cheer and more** — Your avatar can now emote while you stroll. Hold G on desktop — or long-press the action button on mobile — to pop a radial gesture wheel, aim, and release to play one of eight gestures: wave, dance, sit, point, cheer, agree, disagree, and a talking idle. Keys 1–8 fire them instantly, and a quick-access tray sits in the corner. Upper-body gestures like wave and cheer blend over your walk so you keep moving while you gesture; sit and dance take over the whole body, and a single step rises you back up. Everything crossfades — no stiff T-pose flashes between moves — and gestures replicate to other players in the same world. Chat messages now animate the avatar as it 'talks', and developers can trigger any gesture programmatically with window.walk.playGesture('wave'). (`/walk`) `[feature]`- **Grind-bounty market: post a reward, a fleet grinds your hard vanity address** — A 5-to-8-character vanity address is hours-to-years on one machine, so until now "hard" vanity meant running your browser overnight and hoping. The new grind-bounty market makes it a liquid, pay-for-results service. Post the pattern you want, escrow a USDC bounty, and a fleet of independent workers grinds it in parallel — the first one to find a verified match is paid automatically. The breakthrough is that the found key is sealed to your encryption key before the worker ever submits it, so the worker earns the bounty yet never sees your wallet, and three.ws never holds your secret either. Settlement is trustless via x402: no valid match, no payout; only one worker can win; and a bounty that goes unfilled refunds your escrow when it expires. You also get an honest difficulty meter and a fair-price oracle when posting (priced off the real grind odds, not made-up numbers), a live board with biggest-reward and expiring-soon sorts, and a one-click way to open your won wallet locally with your private key. Want to earn instead? Flip on "Grind & earn," point your spare cores at the open bounties, and get paid in USDC for every fill — there's a leaderboard of the top grinders. (`/vanity/bounties`) `[feature, security, sdk]`+- **IRL augmented reality, location, and motion sensors now enabled in production** — The live IRL map was served with a browser security header that switched off the camera, GPS, and device-motion access the augmented-reality view depends on — so on stricter browsers, opening /irl to place or discover an agent in AR couldn't start the camera or read your location. We now grant exactly those capabilities, scoped to the IRL page itself and nothing else, so the camera, your location, and device motion come up the moment you open it while every other page stays locked down. (`/irl`) `[fix, security]`+- **IRL pin placement and discovery are reliable again** — Placing an agent at a real-world spot and seeing nearby agents on the IRL map could intermittently fail to load. The cause was that the apps re-checked the entire database schema on every single request, and under bursts of traffic those redundant checks could collide and stall the request. We now run that setup once and never let it block a placement or a nearby-search again — so dropping a pin, browsing what's around you, and logging an encounter respond immediately and consistently. (`/irl`) `[fix]`+- **Pick and switch avatars from the Walk Avatar extension popup** — The three.ws Walk Avatar browser extension popup is now a full avatar picker. Sign in straight from the popup — it opens three.ws, signs you in, and links the extension automatically — then browse your own avatars, a Featured shelf of community favorites, and a Recent tab of the avatars you've picked before. Tap any thumbnail to instantly swap the walking avatar on the current tab, drag the speed slider to change how fast it walks in real time, and use the big switch to turn it on or off for the site you're on. Every thumbnail is a real avatar from your account, with graceful empty, loading, and error states throughout. `[feature]`- **Proof-of-grind: a public gallery of the rarest wallets ground here** — A vanity address is a flex — but until now the flex was unverifiable. Proof-of-grind turns it into provenance. Every provably-fair grind can now carry an honest rarity score and tier (Common → Mythic) computed straight from the real grind difficulty: longer patterns rank higher, with documented, capped bonuses for real dictionary words, palindromes, and repeated-character runs — no inflated numbers. Publish a wallet (opt-in, secret-free; we re-verify your signed receipt against the live three.ws service key before it appears) and it joins a public gallery and leaderboard of the rarest addresses ground on three.ws, sortable and filterable by tier and pattern, each with a verified badge and a beautiful share card for X. New tools: paste any address to appraise its tier and estimated grind cost, and every agent's wallet chip now shows its rarity tier wherever it appears. No secret, seed, or sealed key is ever stored or shown. (`/vanity/gallery`) `[feature, security, sdk]`+- **Real product analytics + the $THREE conversion funnel** — We now measure the journeys that matter so we can find and fix where people drop off. Every key step is captured as a real, privacy-respecting event: landing on the homepage and which call-to-action you click, connecting a wallet (started, succeeded, or failed), creating an agent, and copying an embed snippet. The $THREE holder funnel is fully instrumented end to end — token page view → buy clicked → swap quote shown → swap confirmed → swap settled on-chain — so we can see exactly how far buyers get. Marketplace searches, agent profile views, and dashboard/visualizer opens are tracked too, alongside failed API calls so reliability is visible. Wallet addresses are always truncated, events are queued so they never slow the page, and analytics can never break the app. `[improvement, infra]`+- **Solana cover-charge and x402 payments fixed when the primary RPC misbehaves** — Paying the Pole Club cover charge — and any Solana payment authorized through the checkout — could fail at the "Authorize payment" step with an internal-error reference. The cause was a misconfigured upstream Solana node answering with a "not found" status that our automatic failover didn't treat as a reason to switch providers, so the payment stalled instead of routing to a healthy node. Failover now rotates off a dead or misrouted node the same way it already handled rate-limits and outages, so the wallet falls through to a working node and the payment goes through. (`/club`) `[fix]`+- **The homepage hero now reacts to live $THREE market data** — The 3D agent on the home page now stands inside a living $THREE energy field — a faceted crystal in a particle cloud that breathes with the market in real time. Price momentum speeds its spin and warms or cools its color, 24-hour volume sets how brightly the field glows, every on-chain buy sends a green ripple and every sell a red one, and each deploy burn flares the whole field in burn-orange. A small live readout in the corner shows the current $THREE price, 24h change, and holder count. It loads only when the hero is on screen, drops to a calm static version if you prefer reduced motion, and quietly shows a "reconnecting" hint instead of ever inventing a number when the feed blips. (`/`) `[feature, improvement]`+- **The pricing page now reveals as you scroll** — The lower sections of the pricing page — the full feature comparison, the FAQ, and the closing call-to-action — now fade and rise gently into view as you scroll to them instead of sitting flat on the page, matching the staggered entrance the plan cards already had. The motion is purely cosmetic and gracefully turns itself off if you've asked your system to reduce motion, and the content always appears even on browsers that don't support scroll detection. (`/pricing`) `[improvement]`+- **Walk Avatar extension gets a full settings page** — The three.ws Walk Avatar browser extension now has a dedicated settings page (open it from the popup's "All settings" link or chrome://extensions → Details → Extension options). Choose your default avatar, where it appears on a page (including a new follow-the-cursor mode), its size, walk speed, and a light/dark/auto theme that reads each page's background. Turn on read-aloud narration and pick from real synthesis voices, and set per-site allow and block lists so the avatar only shows up where you want it. Every change saves instantly and roams across your signed-in Chrome installs, with a one-click reset to defaults and a diagnostics panel showing your session and extension version. `[feature]`+- **Walk Avatar reads articles aloud more cleanly** — When you turn on read-aloud narration in the Walk Avatar browser extension, it now isolates the real article on a page before speaking — using Mozilla's Readability engine to strip away navigation, headers, footers, sidebars and ads — so the avatar narrates the actual story you're reading instead of menu labels or boilerplate. As you scroll, it follows the section in view, shows the text in a tidy speech bubble above the avatar (now neatly clamped to three lines), and reads it with a real synthesis voice; muting silences it and cancels any in-flight audio instantly. Narration stays off when you've asked your system to reduce motion. `[improvement]`## 2026-06-19diff --git a/api/auth/extension-token.js b/api/auth/extension-token.jsnew file mode 100644index 000000000..c4a3ce01b--- /dev/null+++ b/api/auth/extension-token.js@@ -0,0 +1,86 @@+// POST /api/auth/extension-token — exchange the caller's browser session for a+// Bearer access token the Walk Avatar extension can use.+//+// Why this exists: the extension popup runs on a chrome-extension:// origin, so+// the site's __Host-sid session cookie (SameSite) is never attached to its+// cross-site fetches. The extension therefore authenticates with a Bearer token+// instead. After the user signs in on three.ws, the /extension/auth-callback+// page calls this endpoint same-origin (the session cookie DOES attach there),+// receives a token, and hands it to the extension's background worker via the+// callback URL. The token is a standard HS256 access JWT — identical shape to+// the OAuth access tokens authenticateBearer() already verifies — scoped to+// avatars:read so the extension can list avatars and read identity, nothing more.++import { SignJWT } from 'jose';+import { getSessionUser } from '../_lib/auth.js';+import { sql } from '../_lib/db.js';+import { cors, error, json, method, wrap, rateLimited } from '../_lib/http.js';+import { limits, clientIp } from '../_lib/rate-limit.js';+import { env } from '../_lib/env.js';+import { randomToken } from '../_lib/crypto.js';++// 30 days — matches the browser session TTL so the extension stays signed in as+// long as a same-device web session would, and re-auth is a single click.+const EXTENSION_TOKEN_TTL_SEC = 60 * 60 * 24 * 30;+const EXTENSION_SCOPE = 'avatars:read';+const EXTENSION_CLIENT_ID = 'walk-extension';++export default wrap(async (req, res) => {+ if (cors(req, res, { methods: 'POST,OPTIONS', credentials: true })) return;+ if (!method(req, res, ['POST'])) return;++ // Defense in depth: this mints a token from the session cookie, so only allow+ // it from our own origin. A cross-origin attacker can't read the JSON response+ // (CORS), but refusing foreign Origins outright keeps the surface tight.+ const origin = req.headers.origin;+ if (origin) {+ let ok = false;+ try {+ ok = new URL(origin).origin === new URL(env.APP_ORIGIN).origin;+ } catch {+ ok = false;+ }+ if (!ok) return error(res, 403, 'forbidden', 'cross-origin token mint not allowed');+ }++ const rl = await limits.authIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);++ const session = await getSessionUser(req);+ if (!session) return error(res, 401, 'unauthorized', 'sign in on three.ws first');++ const [user] = await sql`+ SELECT id, username, display_name FROM users+ WHERE id = ${session.id} AND deleted_at IS NULL+ LIMIT 1+ `;+ if (!user) return error(res, 404, 'not_found', 'user not found');++ const now = Math.floor(Date.now() / 1000);+ const expSec = now + EXTENSION_TOKEN_TTL_SEC;+ const token = await new SignJWT({+ scope: EXTENSION_SCOPE,+ client_id: EXTENSION_CLIENT_ID,+ token_use: 'access',+ })+ .setProtectedHeader({ alg: 'HS256', kid: env.JWT_KID, typ: 'JWT' })+ .setIssuer(env.ISSUER)+ .setSubject(user.id)+ .setAudience(env.MCP_RESOURCE)+ .setIssuedAt(now)+ .setExpirationTime(expSec)+ .setJti(randomToken(16))+ .sign(new TextEncoder().encode(env.JWT_SECRET));++ return json(res, 200, {+ token,+ token_type: 'Bearer',+ scope: EXTENSION_SCOPE,+ expires_at: new Date(expSec * 1000).toISOString(),+ user: {+ id: user.id,+ username: user.username || null,+ display_name: user.display_name || user.username || 'three.ws user',+ },+ });+});diff --git a/api/avatars/[id]/[action].js b/api/avatars/[id]/[action].jsindex 24256284a..222eab753 100644--- a/api/avatars/[id]/[action].js+++ b/api/avatars/[id]/[action].js@@ -50,6 +50,8 @@ export default wrap(async (req, res) => {return handleSession(req, res);case 'storage-mode':return handleStorageMode(req, res);+ case 'thumb':+ return handleThumb(req, res);case 'thumbnail':return handleThumbnail(req, res);case 'versions':@@ -563,6 +565,35 @@ function redirect(res, url) {res.end();}+// ── thumb (embed-friendly poster) ────────────────────────────────────────────+// GET /api/avatars/:id/thumb — 302 to the avatar's R2-hosted poster, with+// wildcard CORS so it loads from a plain <img src> in any first-party client+// (the Walk Avatar extension popup, the embed SDK) where an Authorization+// header can't be attached. Unlike `thumbnail`, this is public for every+// visibility: the poster PNG is already a public CDN object, while the GLB+// stays gated behind `glb`. No thumbnail → 404 so the client renders its+// initial-glyph fallback.+async function handleThumb(req, res) {+ res.setHeader('access-control-allow-origin', '*');+ res.setHeader('access-control-allow-methods', 'GET,OPTIONS');+ if (req.method === 'OPTIONS') {+ res.statusCode = 204;+ return res.end();+ }+ if (!method(req, res, ['GET'])) return;++ const id = req.query?.id || new URL(req.url, 'http://x').pathname.split('/').filter(Boolean)[2];+ if (!id) return error(res, 400, 'invalid_request', 'avatar id required');++ const [row] = await sql`+ SELECT thumbnail_key FROM avatars WHERE id = ${id} AND deleted_at IS NULL LIMIT 1+ `;+ if (!row) return error(res, 404, 'not_found', 'avatar not found');+ if (!row.thumbnail_key) return error(res, 404, 'not_found', 'avatar has no thumbnail');++ return redirect(res, publicUrl(row.thumbnail_key));+}+// ── glb (same-origin CORS-friendly proxy) ─────────────────────────────────// GET /api/avatars/:id/glb — streams the avatar's GLB through the API so// hosts on any origin can fetch it without R2 CORS configuration. The R2diff --git a/api/avatars/featured.js b/api/avatars/featured.jsnew file mode 100644index 000000000..ace3525e1--- /dev/null+++ b/api/avatars/featured.js@@ -0,0 +1,47 @@+// GET /api/avatars/featured — curated + popular public avatars for the+// "Featured" tab of the Walk Avatar extension. Public, no auth.+//+// Order: admin-curated `featured` flag first, then most-viewed, then newest, so+// the tab is never empty as long as any public avatar with a thumbnail exists.+// Only public avatars that actually have a poster are returned — a picker grid+// of blank tiles is worse than a shorter list.++import { sql } from '../_lib/db.js';+import { cors, json, method, wrap, rateLimited } from '../_lib/http.js';+import { limits, clientIp } from '../_lib/rate-limit.js';+import { env } from '../_lib/env.js';++export default wrap(async (req, res) => {+ if (cors(req, res, { methods: 'GET,OPTIONS' })) return;+ if (!method(req, res, ['GET'])) return;++ const rl = await limits.publicIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);++ const url = new URL(req.url, 'http://x');+ const limit = Math.min(Math.max(Number(url.searchParams.get('limit')) || 30, 1), 60);++ const rows = await sql`+ SELECT id, name, slug, visibility, created_at, featured, view_count+ FROM avatars+ WHERE deleted_at IS NULL+ AND visibility = 'public'+ AND thumbnail_key IS NOT NULL+ ORDER BY featured DESC, view_count DESC, created_at DESC+ LIMIT ${limit}+ `;++ res.setHeader('cache-control', 'public, max-age=60, s-maxage=300, stale-while-revalidate=600');+ return json(res, 200, {+ avatars: rows.map((r) => ({+ id: r.id,+ name: r.name || 'Untitled avatar',+ slug: r.slug || null,+ visibility: r.visibility,+ featured: r.featured === true,+ has_thumbnail: true,+ thumb_url: `${env.APP_ORIGIN}/api/avatars/${r.id}/thumb`,+ created_at: r.created_at,+ })),+ });+});diff --git a/api/avatars/mine.js b/api/avatars/mine.jsnew file mode 100644index 000000000..36e8c5790--- /dev/null+++ b/api/avatars/mine.js@@ -0,0 +1,59 @@+// GET /api/avatars/mine — the signed-in caller's own avatars, slimmed to what+// a picker needs (id, name, thumbnail, visibility). Powers the "My Avatars" tab+// of the Walk Avatar extension. Auth: session cookie OR Bearer (avatars:read).+//+// Thumbnails are served through /api/avatars/:id/thumb so a plain <img src> in+// any first-party client (extension popup, embed) renders without juggling auth+// headers — the poster PNG is a public CDN object regardless of avatar+// visibility, while the GLB itself stays gated.++import { getSessionUser, authenticateBearer, extractBearer, hasScope } from '../_lib/auth.js';+import { listAvatars } from '../_lib/avatars.js';+import { cors, error, json, method, wrap, rateLimited } from '../_lib/http.js';+import { limits, clientIp } from '../_lib/rate-limit.js';+import { env } from '../_lib/env.js';++async function resolveAuth(req) {+ const session = await getSessionUser(req);+ if (session) return { userId: session.id };+ const bearer = await authenticateBearer(extractBearer(req));+ if (bearer && hasScope(bearer.scope, 'avatars:read')) return { userId: bearer.userId };+ return null;+}++export function slimAvatar(av) {+ return {+ id: av.id,+ name: av.name || 'Untitled avatar',+ slug: av.slug || null,+ visibility: av.visibility,+ has_thumbnail: !!av.thumbnail_url,+ thumb_url: `${env.APP_ORIGIN}/api/avatars/${av.id}/thumb`,+ created_at: av.created_at,+ };+}++export default wrap(async (req, res) => {+ if (cors(req, res, { methods: 'GET,OPTIONS', credentials: true })) return;+ if (!method(req, res, ['GET'])) return;++ const rl = await limits.publicIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);++ const auth = await resolveAuth(req);+ if (!auth) return error(res, 401, 'unauthorized', 'sign in or provide a token with avatars:read');++ const url = new URL(req.url, 'http://x');+ const limit = Math.min(Math.max(Number(url.searchParams.get('limit')) || 60, 1), 200);++ const { avatars, next_cursor } = await listAvatars({+ userId: auth.userId,+ limit,+ cursor: url.searchParams.get('cursor'),+ });++ return json(res, 200, {+ avatars: avatars.map(slimAvatar),+ next_cursor,+ });+});diff --git a/api/me.js b/api/me.jsnew file mode 100644index 000000000..1606f73b3--- /dev/null+++ b/api/me.js@@ -0,0 +1,61 @@+// GET /api/me — the authenticated caller's identity for the Walk Avatar+// extension (and any other first-party client). Resolves a browser session+// cookie OR a Bearer access token, and returns the minimal public profile the+// extension popup renders in its header pill.+//+// Distinct from /api/auth/me (full session bootstrap) and /api/threews/me+// (subdomain claim widget): this is a tiny, stable, CORS-friendly identity+// endpoint the extension can call with the token it minted at sign-in.++import { getSessionUser, authenticateBearer, extractBearer } from './_lib/auth.js';+import { sql } from './_lib/db.js';+import { cors, error, json, method, wrap, rateLimited } from './_lib/http.js';+import { limits, clientIp } from './_lib/rate-limit.js';+import { publicUrl } from './_lib/r2.js';++async function resolveAuth(req) {+ const session = await getSessionUser(req);+ if (session) return { userId: session.id };+ const bearer = await authenticateBearer(extractBearer(req));+ if (bearer) return { userId: bearer.userId };+ return null;+}++export default wrap(async (req, res) => {+ if (cors(req, res, { methods: 'GET,OPTIONS', credentials: true })) return;+ if (!method(req, res, ['GET'])) return;++ const rl = await limits.authIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);++ const auth = await resolveAuth(req);+ if (!auth) return error(res, 401, 'unauthorized', 'sign in required');++ const [user] = await sql`+ SELECT u.id, u.username, u.display_name, u.created_at,+ a.thumbnail_key+ FROM users u+ LEFT JOIN LATERAL (+ SELECT thumbnail_key+ FROM avatars+ WHERE owner_id = u.id AND deleted_at IS NULL AND thumbnail_key IS NOT NULL+ ORDER BY created_at DESC+ LIMIT 1+ ) a ON true+ WHERE u.id = ${auth.userId} AND u.deleted_at IS NULL+ LIMIT 1+ `;+ if (!user) return error(res, 404, 'not_found', 'user not found');++ const handle = user.username || null;+ return json(res, 200, {+ user: {+ id: user.id,+ username: handle,+ display_name: user.display_name || handle || 'three.ws user',+ handle: handle ? `@${handle}` : (user.display_name || 'signed in'),+ avatar_url: user.thumbnail_key ? publicUrl(user.thumbnail_key) : null,+ created_at: user.created_at,+ },+ });+});diff --git a/data/changelog.json b/data/changelog.jsonindex 57bd06f69..a5a2eda9b 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,95 @@{"$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-20",+ "title": "Express yourself in Walk — wave, dance, sit, point, cheer and more",+ "summary": "Your avatar can now emote while you stroll. Hold G on desktop — or long-press the action button on mobile — to pop a radial gesture wheel, aim, and release to play one of eight gestures: wave, dance, sit, point, cheer, agree, disagree, and a talking idle. Keys 1–8 fire them instantly, and a quick-access tray sits in the corner. Upper-body gestures like wave and cheer blend over your walk so you keep moving while you gesture; sit and dance take over the whole body, and a single step rises you back up. Everything crossfades — no stiff T-pose flashes between moves — and gestures replicate to other players in the same world. Chat messages now animate the avatar as it 'talks', and developers can trigger any gesture programmatically with window.walk.playGesture('wave').",+ "tags": [+ "feature"+ ],+ "link": "/walk"+ },+ {+ "date": "2026-06-20",+ "title": "Pick and switch avatars from the Walk Avatar extension popup",+ "summary": "The three.ws Walk Avatar browser extension popup is now a full avatar picker. Sign in straight from the popup — it opens three.ws, signs you in, and links the extension automatically — then browse your own avatars, a Featured shelf of community favorites, and a Recent tab of the avatars you've picked before. Tap any thumbnail to instantly swap the walking avatar on the current tab, drag the speed slider to change how fast it walks in real time, and use the big switch to turn it on or off for the site you're on. Every thumbnail is a real avatar from your account, with graceful empty, loading, and error states throughout.",+ "tags": [+ "feature"+ ]+ },+ {+ "date": "2026-06-20",+ "title": "Real product analytics + the $THREE conversion funnel",+ "summary": "We now measure the journeys that matter so we can find and fix where people drop off. Every key step is captured as a real, privacy-respecting event: landing on the homepage and which call-to-action you click, connecting a wallet (started, succeeded, or failed), creating an agent, and copying an embed snippet. The $THREE holder funnel is fully instrumented end to end — token page view → buy clicked → swap quote shown → swap confirmed → swap settled on-chain — so we can see exactly how far buyers get. Marketplace searches, agent profile views, and dashboard/visualizer opens are tracked too, alongside failed API calls so reliability is visible. Wallet addresses are always truncated, events are queued so they never slow the page, and analytics can never break the app.",+ "tags": [+ "improvement",+ "infra"+ ]+ },+ {+ "date": "2026-06-20",+ "title": "Walk Avatar reads articles aloud more cleanly",+ "summary": "When you turn on read-aloud narration in the Walk Avatar browser extension, it now isolates the real article on a page before speaking — using Mozilla's Readability engine to strip away navigation, headers, footers, sidebars and ads — so the avatar narrates the actual story you're reading instead of menu labels or boilerplate. As you scroll, it follows the section in view, shows the text in a tidy speech bubble above the avatar (now neatly clamped to three lines), and reads it with a real synthesis voice; muting silences it and cancels any in-flight audio instantly. Narration stays off when you've asked your system to reduce motion.",+ "tags": [+ "improvement"+ ]+ },+ {+ "date": "2026-06-20",+ "title": "Walk Avatar extension gets a full settings page",+ "summary": "The three.ws Walk Avatar browser extension now has a dedicated settings page (open it from the popup's \"All settings\" link or chrome://extensions → Details → Extension options). Choose your default avatar, where it appears on a page (including a new follow-the-cursor mode), its size, walk speed, and a light/dark/auto theme that reads each page's background. Turn on read-aloud narration and pick from real synthesis voices, and set per-site allow and block lists so the avatar only shows up where you want it. Every change saves instantly and roams across your signed-in Chrome installs, with a one-click reset to defaults and a diagnostics panel showing your session and extension version.",+ "tags": [+ "feature"+ ]+ },+ {+ "date": "2026-06-20",+ "title": "The pricing page now reveals as you scroll",+ "summary": "The lower sections of the pricing page — the full feature comparison, the FAQ, and the closing call-to-action — now fade and rise gently into view as you scroll to them instead of sitting flat on the page, matching the staggered entrance the plan cards already had. The motion is purely cosmetic and gracefully turns itself off if you've asked your system to reduce motion, and the content always appears even on browsers that don't support scroll detection.",+ "tags": [+ "improvement"+ ],+ "link": "/pricing"+ },+ {+ "date": "2026-06-20",+ "title": "The homepage hero now reacts to live $THREE market data",+ "summary": "The 3D agent on the home page now stands inside a living $THREE energy field — a faceted crystal in a particle cloud that breathes with the market in real time. Price momentum speeds its spin and warms or cools its color, 24-hour volume sets how brightly the field glows, every on-chain buy sends a green ripple and every sell a red one, and each deploy burn flares the whole field in burn-orange. A small live readout in the corner shows the current $THREE price, 24h change, and holder count. It loads only when the hero is on screen, drops to a calm static version if you prefer reduced motion, and quietly shows a \"reconnecting\" hint instead of ever inventing a number when the feed blips.",+ "tags": [+ "feature",+ "improvement"+ ],+ "link": "/"+ },+ {+ "date": "2026-06-20",+ "title": "Solana cover-charge and x402 payments fixed when the primary RPC misbehaves",+ "summary": "Paying the Pole Club cover charge — and any Solana payment authorized through the checkout — could fail at the \"Authorize payment\" step with an internal-error reference. The cause was a misconfigured upstream Solana node answering with a \"not found\" status that our automatic failover didn't treat as a reason to switch providers, so the payment stalled instead of routing to a healthy node. Failover now rotates off a dead or misrouted node the same way it already handled rate-limits and outages, so the wallet falls through to a working node and the payment goes through.",+ "tags": [+ "fix"+ ],+ "link": "/club"+ },+ {+ "date": "2026-06-20",+ "title": "IRL augmented reality, location, and motion sensors now enabled in production",+ "summary": "The live IRL map was served with a browser security header that switched off the camera, GPS, and device-motion access the augmented-reality view depends on — so on stricter browsers, opening /irl to place or discover an agent in AR couldn't start the camera or read your location. We now grant exactly those capabilities, scoped to the IRL page itself and nothing else, so the camera, your location, and device motion come up the moment you open it while every other page stays locked down.",+ "tags": [+ "fix",+ "security"+ ],+ "link": "/irl"+ },+ {+ "date": "2026-06-20",+ "title": "IRL pin placement and discovery are reliable again",+ "summary": "Placing an agent at a real-world spot and seeing nearby agents on the IRL map could intermittently fail to load. The cause was that the apps re-checked the entire database schema on every single request, and under bursts of traffic those redundant checks could collide and stall the request. We now run that setup once and never let it block a placement or a nearby-search again — so dropping a pin, browsing what's around you, and logging an encounter respond immediately and consistently.",+ "tags": [+ "fix"+ ],+ "link": "/irl"+ },{"date": "2026-06-20","title": "Grind-bounty market: post a reward, a fleet grinds your hard vanity address",diff --git a/extensions/walk-avatar/background.js b/extensions/walk-avatar/background.jsindex d1e2ed44e..1d02aa322 100644--- a/extensions/walk-avatar/background.js+++ b/extensions/walk-avatar/background.js@@ -4,8 +4,8 @@// • Seed and serve default settings (chrome.storage.sync, roams across installs).// • Relay the popup/options UI to the per-tab content scripts.// • Capture the session token from the three.ws auth-callback tab.-// • Inject content.js + content-narrator.js on demand and keep their iframes-// in sync as settings change.+// • Inject vendor/readability.js + content-narrator.js + content.js on demand+// and keep their iframes in sync as settings change.// • Enforce the site allow/blocklist before an avatar is ever mounted.const THREEWS_ORIGIN = 'https://three.ws';@@ -66,12 +66,15 @@ async function getSettings() {return { ...DEFAULTS, ...sync };}-// Inject both content modules (idempotent — re-injection is a no-op once the-// guard flag is set inside content.js).+// Inject the content modules in dependency order (idempotent — re-injection is+// a no-op once the guard flag is set inside content.js). vendor/readability.js+// runs first so it can publish window.__ThreewsReadability before+// content-narrator.js reads it; content.js mounts the iframe and owns the+// narrator lifecycle, so it goes last.async function injectContent(tabId) {await chrome.scripting.executeScript({target: { tabId },- files: ['content-narrator.js', 'content.js'],+ files: ['vendor/readability.js', 'content-narrator.js', 'content.js'],});}@@ -140,6 +143,17 @@ chrome.runtime.onMessage.addListener((msg, sender, sendResponse) => {break;}+ case 'reset-settings': {+ // Clear everything and re-seed the canonical defaults, then push+ // them to every mounted iframe. The session token lives in+ // storage.local and is intentionally left untouched.+ await chrome.storage.sync.clear();+ await chrome.storage.sync.set(DEFAULTS);+ broadcast({ type: 'walk:applySettings', settings: { ...DEFAULTS } });+ sendResponse({ ok: true, settings: { ...DEFAULTS } });+ break;+ }+case 'check-site': {const settings = await getSettings();sendResponse({ allowed: siteAllowed(msg.url || '', settings) });@@ -168,10 +182,12 @@ function broadcast(message) {}// ── Auth callback capture ─────────────────────────────────────────────────────-// The popup opens three.ws/login?redirect=extension. After a successful sign-in-// the site redirects to /extension/auth-callback?token=<session>. We read the-// token out of that tab's URL, persist it, close the tab, and notify any open-// popup so it can re-render the signed-in state.+// The popup opens three.ws/login?next=/extension/auth-callback. After a+// successful sign-in the site lands on /extension/auth-callback, which mints a+// Bearer token (POST /api/auth/extension-token) and redirects to+// /extension/auth-callback?token=<token>. We read the token out of that tab's+// URL, persist it, close the tab, and notify any open popup so it can re-render+// the signed-in state.chrome.tabs.onUpdated.addListener((tabId, changeInfo, tab) => {if (changeInfo.status !== 'complete' || !tab.url) return;if (!tab.url.startsWith(THREEWS_ORIGIN + '/extension/auth-callback')) return;diff --git a/extensions/walk-avatar/options.js b/extensions/walk-avatar/options.jsindex 2eec2f0f1..1aca239f9 100644--- a/extensions/walk-avatar/options.js+++ b/extensions/walk-avatar/options.js@@ -1,95 +1,443 @@-// options.js — settings page controller+// options.js — full settings page for the Walk Avatar extension.+//+// Every control auto-saves through the background service worker+// (`update-settings`), which persists to chrome.storage.sync (roams across the+// user's Chrome installs) and broadcasts `walk:applySettings` to every tab with+// a mounted avatar — so a change here is live everywhere immediately.+//+// Real APIs:+// GET /api/tts/voices — voices the narrator can actually synthesize+// GET /api/avatars — the signed-in user's avatars (+ featured/public)+// GET /api/threews/me — session identity for the diagnostics panelconst THREEWS = 'https://three.ws';+const state = {+ session: null,+ settings: {},+ avatarTab: 'mine',+ avatarCache: { mine: null, featured: null },+};++// ── Messaging ────────────────────────────────────────────────────────────────+function msg(type, data = {}) {+ return chrome.runtime.sendMessage({ type, ...data });+}++async function persist(partial) {+ await msg('update-settings', { settings: partial });+ state.settings = { ...state.settings, ...partial };+ toast('Saved');+}++async function apiFetch(path) {+ const headers = { Accept: 'application/json' };+ if (state.session) headers['Authorization'] = `Bearer ${state.session}`;+ const res = await fetch(`${THREEWS}${path}`, { headers, credentials: 'include' });+ if (res.status === 401) {+ const err = new Error('unauthorized');+ err.status = 401;+ throw err;+ }+ if (!res.ok) throw new Error(`HTTP ${res.status}`);+ return res.json();+}++function openLogin() {+ chrome.tabs.create({+ url: `${THREEWS}/login?next=${encodeURIComponent('/extension/auth-callback')}`,+ });+}++// ── Toast ──────────────────────────────────────────────────────────────────────+let toastTimer = null;+function toast(text, isError = false) {+ const el = document.getElementById('toast');+ document.getElementById('toast-text').textContent = text;+ el.classList.toggle('error', isError);+ el.classList.add('show');+ clearTimeout(toastTimer);+ toastTimer = setTimeout(() => el.classList.remove('show'), 1600);+}++// ── Segmented controls ──────────────────────────────────────────────────────────+function wireSegment(groupId, attr, onChange) {+ const group = document.getElementById(groupId);+ group.addEventListener('click', (e) => {+ const btn = e.target.closest('button[data-' + attr + ']');+ if (!btn) return;+ setSegment(groupId, attr, btn.dataset[attr]);+ onChange(btn.dataset[attr]);+ });+}++function setSegment(groupId, attr, value) {+ const group = document.getElementById(groupId);+ for (const btn of group.querySelectorAll('button')) {+ btn.setAttribute('aria-pressed', btn.dataset[attr] === value ? 'true' : 'false');+ }+}++// ── Voices ───────────────────────────────────────────────────────────────────────async function loadVoices() {+ const select = document.getElementById('opt-voice');+ const sub = document.getElementById('voice-sub');try {- const res = await fetch(`${THREEWS}/api/tts/voices`);- if (!res.ok) return;- const { voices } = await res.json();- const select = document.getElementById('opt-voice');+ const data = await apiFetch('/api/tts/voices');+ const voices = Array.isArray(data.voices) ? data.voices : [];+ if (voices.length === 0) {+ select.innerHTML = '<option value="">No voices available</option>';+ sub.textContent = 'No synthesis provider is configured right now.';+ return;+ }select.innerHTML = '';- voices.forEach((v) => {+ for (const v of voices) {const opt = document.createElement('option');opt.value = v.id;- opt.textContent = v.name;+ opt.textContent = v.name + (v.description ? ` — ${v.description}` : '');select.appendChild(opt);- });- } catch {}+ }+ select.value = state.settings.voice || data.default || voices[0].id;+ const providers = data.providers || {};+ sub.textContent = data.enabled+ ? `${voices.length} voices · ${providers.nvidia ? 'NVIDIA' : 'OpenAI'} synthesis`+ : 'Narration audio is currently unavailable.';+ } catch (err) {+ select.innerHTML = '<option value="">Couldn’t load voices</option>';+ sub.textContent = 'Could not reach the voice catalog. Check your connection.';+ }+}++// ── Avatar picker ────────────────────────────────────────────────────────────────+function avSkeleton(n = 5) {+ return Array.from({ length: n }, () => '<div class="av-thumb skeleton" aria-hidden="true"></div>').join('');+}++function renderAvatarMessage(html) {+ document.getElementById('av-grid').innerHTML = `<div class="av-msg" role="status">${html}</div>`;+}++function renderAvatars(avatars) {+ const grid = document.getElementById('av-grid');+ grid.innerHTML = '';+ for (const av of avatars) {+ const thumb = document.createElement('button');+ thumb.type = 'button';+ thumb.className = 'av-thumb' + (av.id === state.settings.avatarId ? ' selected' : '');+ thumb.title = av.name || 'Avatar';+ thumb.setAttribute('role', 'option');+ thumb.setAttribute('aria-label', `Set default avatar ${av.name || ''}`.trim());+ thumb.setAttribute('aria-selected', av.id === state.settings.avatarId ? 'true' : 'false');++ if (av.thumbnail_url) {+ const img = document.createElement('img');+ img.src = av.thumbnail_url;+ img.alt = av.name || 'avatar';+ img.loading = 'lazy';+ img.addEventListener('error', () => {+ img.remove();+ thumb.classList.add('no-thumb');+ thumb.prepend(glyph(av.name));+ });+ thumb.appendChild(img);+ } else {+ thumb.classList.add('no-thumb');+ thumb.appendChild(glyph(av.name));+ }++ const check = document.createElement('span');+ check.className = 'check';+ check.textContent = '✓';+ thumb.appendChild(check);++ thumb.addEventListener('click', () => selectAvatar(av.id));+ grid.appendChild(thumb);+ }+}++function glyph(name) {+ const span = document.createElement('span');+ span.className = 'glyph';+ span.textContent = (name || '?').trim().charAt(0).toUpperCase() || '?';+ return span;+}++async function selectAvatar(avatarId) {+ state.settings.avatarId = avatarId;+ // set-avatar persists avatarId and live-swaps it in any mounted iframe.+ await msg('set-avatar', { avatarId });+ // Re-render current tab from cache to refresh the selection ring.+ const cached = state.avatarCache[state.avatarTab];+ if (cached) renderAvatars(cached);+ toast('Default avatar set');+}++async function loadAvatars(tab) {+ state.avatarTab = tab;+ const grid = document.getElementById('av-grid');+ grid.innerHTML = avSkeleton();++ if (!state.session) {+ renderAvatarMessage(`+ <div class="emoji" aria-hidden="true">🔑</div>+ <div class="title">Sign in to choose an avatar</div>+ <p>Your three.ws avatars sync here once you sign in.</p>+ <button class="btn" id="av-signin">Sign in</button>`);+ document.getElementById('av-signin')?.addEventListener('click', openLogin);+ return;+ }++ try {+ const path = tab === 'mine'+ ? '/api/avatars?limit=60'+ : '/api/avatars/public?limit=60';+ const body = await apiFetch(path);+ const avatars = (body.avatars || []).filter((a) => a && a.id);+ state.avatarCache[tab] = avatars;++ if (avatars.length === 0) {+ if (tab === 'mine') {+ renderAvatarMessage(`+ <div class="emoji" aria-hidden="true">🚶</div>+ <div class="title">No avatars yet</div>+ <p>Create a 3D avatar from a selfie, then set it as your default companion.</p>+ <button class="btn" id="av-create">Create your first avatar</button>`);+ document.getElementById('av-create')?.addEventListener('click', () => {+ chrome.tabs.create({ url: `${THREEWS}/create-selfie` });+ });+ } else {+ renderAvatarMessage(`+ <div class="emoji" aria-hidden="true">✨</div>+ <div class="title">No featured avatars right now</div>+ <p>Check back soon, or browse the gallery.</p>+ <button class="btn ghost" id="av-gallery">Open gallery</button>`);+ document.getElementById('av-gallery')?.addEventListener('click', () => {+ chrome.tabs.create({ url: `${THREEWS}/gallery` });+ });+ }+ return;+ }+ renderAvatars(avatars);+ } catch (err) {+ if (err.status === 401) {+ await msg('clear-session');+ state.session = null;+ renderDiagnostics();+ loadAvatars(tab);+ return;+ }+ renderAvatarMessage(`+ <div class="emoji" aria-hidden="true">⚠️</div>+ <div class="title">Couldn’t load avatars</div>+ <p>${err.message}</p>+ <button class="btn ghost" id="av-retry">Retry</button>`);+ document.getElementById('av-retry')?.addEventListener('click', () => loadAvatars(tab));+ }}-async function boot() {- // Load voices from real API- await loadVoices();+// ── Diagnostics ──────────────────────────────────────────────────────────────────+async function renderDiagnostics() {+ const sessionEl = document.getElementById('diag-session');+ const accountEl = document.getElementById('diag-account');+ const signOutBtn = document.getElementById('sign-out-btn');- // Load stored settings- const settings = await chrome.storage.sync.get(null);+ if (!state.session) {+ sessionEl.textContent = 'not signed in';+ sessionEl.className = 'diag-value offline';+ accountEl.textContent = '—';+ signOutBtn.classList.add('hidden');+ return;+ }- document.getElementById('opt-position').value = settings.position || 'bottom-right';- document.getElementById('opt-width').value = String(settings.width || 180);- document.getElementById('opt-height').value = String(settings.height || 260);+ sessionEl.textContent = 'signed in';+ sessionEl.className = 'diag-value online';+ signOutBtn.classList.remove('hidden');- const speed = settings.walkSpeed || 1;+ try {+ const body = await apiFetch('/api/threews/me');+ const user = body?.data?.user || body?.user || {};+ accountEl.textContent = user.username ? `@${user.username}` : (user.display_name || 'signed in');+ } catch (err) {+ if (err.status === 401) {+ await msg('clear-session');+ state.session = null;+ renderDiagnostics();+ return;+ }+ accountEl.textContent = 'unavailable';+ }+}++// ── Populate controls from stored settings ──────────────────────────────────────+function applySettingsToUI(s) {+ document.getElementById('opt-position').value = s.position || 'bottom-right';++ const sizePreset = s.sizePreset || 'medium';+ setSegment('opt-size', 'size', sizePreset);+ document.getElementById('custom-size-row').classList.toggle('hidden', sizePreset !== 'custom');+ document.getElementById('opt-width').value = String(s.width || 180);+ document.getElementById('opt-height').value = String(s.height || 260);++ const speed = s.walkSpeed || 1;document.getElementById('opt-speed').value = String(speed);document.getElementById('opt-speed-val').textContent = parseFloat(speed).toFixed(1) + '×';- document.getElementById('opt-narration').checked = !!settings.narrationEnabled;- if (settings.voice) document.getElementById('opt-voice').value = settings.voice;+ setSegment('opt-theme', 'theme', s.theme || 'auto');++ document.getElementById('opt-narration').checked = !!s.narrationEnabled;+ if (s.voice) document.getElementById('opt-voice').value = s.voice;++ document.getElementById('opt-allowlist').value = (s.siteAllowlist || []).join('\n');+ document.getElementById('opt-blocklist').value = (s.siteBlocklist || []).join('\n');+ updateFiltersNote();+}++function parseDomainList(textareaId) {+ return document.getElementById(textareaId).value+ .split('\n')+ .map((l) => l.trim().toLowerCase().replace(/^https?:\/\//, '').replace(/\/.*$/, ''))+ .filter(Boolean);+}- document.getElementById('opt-allowlist').value = (settings.siteAllowlist || []).join('\n');- document.getElementById('opt-blocklist').value = (settings.siteBlocklist || []).join('\n');+function updateFiltersNote() {+ const allow = parseDomainList('opt-allowlist');+ const block = parseDomainList('opt-blocklist');+ const note = document.getElementById('filters-note');+ if (allow.length === 0 && block.length === 0) {+ note.textContent = 'Avatar can appear on every site.';+ } else if (allow.length > 0) {+ note.textContent = `Restricted to ${allow.length} site${allow.length > 1 ? 's' : ''}` ++ (block.length ? `, ${block.length} blocked.` : '.');+ } else {+ note.textContent = `${block.length} site${block.length > 1 ? 's' : ''} blocked.`;+ }+}- // Speed slider live update- document.getElementById('opt-speed').addEventListener('input', () => {- const v = parseFloat(document.getElementById('opt-speed').value);- document.getElementById('opt-speed-val').textContent = v.toFixed(1) + '×';+// ── Wiring ───────────────────────────────────────────────────────────────────────+function wireControls() {+ // Position+ document.getElementById('opt-position').addEventListener('change', (e) => {+ persist({ position: e.target.value });});- // Diagnostics- const { threews_session: session } = await chrome.storage.local.get('threews_session');- document.getElementById('diag-session').textContent = session ? 'signed in' : 'not signed in';- document.getElementById('diag-version').textContent = chrome.runtime.getManifest().version;+ // Size preset+ wireSegment('opt-size', 'size', (size) => {+ document.getElementById('custom-size-row').classList.toggle('hidden', size !== 'custom');+ persist({ sizePreset: size });+ });- // Sign out- document.getElementById('sign-out-btn').addEventListener('click', async () => {- await chrome.storage.local.remove('threews_session');- document.getElementById('diag-session').textContent = 'not signed in';+ // Custom dimensions+ const clampDim = (v, lo, hi, dflt) => {+ const n = parseInt(v, 10);+ if (Number.isNaN(n)) return dflt;+ return Math.max(lo, Math.min(hi, n));+ };+ document.getElementById('opt-width').addEventListener('change', (e) => {+ const w = clampDim(e.target.value, 80, 600, 180);+ e.target.value = String(w);+ persist({ width: w });+ });+ document.getElementById('opt-height').addEventListener('change', (e) => {+ const h = clampDim(e.target.value, 120, 800, 260);+ e.target.value = String(h);+ persist({ height: h });+ });++ // Walk speed — live label on input, persist on release+ const speed = document.getElementById('opt-speed');+ speed.addEventListener('input', () => {+ document.getElementById('opt-speed-val').textContent = parseFloat(speed.value).toFixed(1) + '×';});+ speed.addEventListener('change', () => persist({ walkSpeed: parseFloat(speed.value) }));- // Save- document.getElementById('save-btn').addEventListener('click', async () => {- const newSettings = {- position: document.getElementById('opt-position').value,- width: parseInt(document.getElementById('opt-width').value, 10) || 180,- height: parseInt(document.getElementById('opt-height').value, 10) || 260,- walkSpeed: parseFloat(document.getElementById('opt-speed').value),- narrationEnabled: document.getElementById('opt-narration').checked,- voice: document.getElementById('opt-voice').value,- siteAllowlist: document.getElementById('opt-allowlist').value- .split('\n').map(s => s.trim()).filter(Boolean),- siteBlocklist: document.getElementById('opt-blocklist').value- .split('\n').map(s => s.trim()).filter(Boolean),- };-- await chrome.storage.sync.set(newSettings);-- // Broadcast to all active content scripts- const tabs = await chrome.tabs.query({ status: 'complete' });- tabs.forEach((tab) => {- chrome.tabs.sendMessage(tab.id, {- type: 'walk:config',- speed: newSettings.walkSpeed,- }).catch(() => {});+ // Theme+ wireSegment('opt-theme', 'theme', (theme) => persist({ theme }));++ // Narration toggle+ document.getElementById('opt-narration').addEventListener('change', (e) => {+ persist({ narrationEnabled: e.target.checked });+ });++ // Voice+ document.getElementById('opt-voice').addEventListener('change', (e) => {+ if (e.target.value) persist({ voice: e.target.value });+ });++ // Site filters — live note, explicit apply (so a half-typed domain isn't saved)+ document.getElementById('opt-allowlist').addEventListener('input', updateFiltersNote);+ document.getElementById('opt-blocklist').addEventListener('input', updateFiltersNote);+ document.getElementById('save-filters-btn').addEventListener('click', () => {+ const siteAllowlist = parseDomainList('opt-allowlist');+ const siteBlocklist = parseDomainList('opt-blocklist');+ document.getElementById('opt-allowlist').value = siteAllowlist.join('\n');+ document.getElementById('opt-blocklist').value = siteBlocklist.join('\n');+ persist({ siteAllowlist, siteBlocklist });+ updateFiltersNote();+ });++ // Avatar tabs+ document.querySelectorAll('.av-tab').forEach((btn) => {+ btn.addEventListener('click', () => {+ document.querySelectorAll('.av-tab').forEach((b) => {+ const on = b === btn;+ b.classList.toggle('active', on);+ b.setAttribute('aria-selected', on ? 'true' : 'false');+ });+ loadAvatars(btn.dataset.tab);});+ });++ // Reset+ document.getElementById('reset-btn').addEventListener('click', async () => {+ const ok = confirm('Reset all Walk Avatar settings to their defaults? Your sign-in stays active.');+ if (!ok) return;+ const res = await msg('reset-settings');+ state.settings = res?.settings || {};+ applySettingsToUI(state.settings);+ if (state.settings.voice) document.getElementById('opt-voice').value = state.settings.voice;+ // Refresh the avatar selection ring (avatarId is cleared by reset).+ const cached = state.avatarCache[state.avatarTab];+ if (cached) renderAvatars(cached);+ toast('Settings reset to defaults');+ });- const btn = document.getElementById('save-btn');- btn.textContent = 'Saved!';- btn.classList.add('saved');- setTimeout(() => {- btn.textContent = 'Save settings';- btn.classList.remove('saved');- }, 1800);+ // Sign out+ document.getElementById('sign-out-btn').addEventListener('click', async () => {+ await msg('clear-session');+ state.session = null;+ state.avatarCache = { mine: null, featured: null };+ renderDiagnostics();+ loadAvatars(state.avatarTab);+ toast('Signed out');});++ // Docs / version+ document.getElementById('diag-version').textContent = chrome.runtime.getManifest().version;}-boot();+// React to a sign-in completing in another tab while this page is open.+chrome.runtime.onMessage.addListener((m) => {+ if (m.type === 'session-updated' && m.token) {+ state.session = m.token;+ state.avatarCache = { mine: null, featured: null };+ renderDiagnostics();+ loadAvatars(state.avatarTab);+ }+});++// ── Boot ─────────────────────────────────────────────────────────────────────────+(async () => {+ wireControls();++ const { session, settings } = await msg('get-state');+ state.session = session || null;+ state.settings = settings || {};++ applySettingsToUI(state.settings);++ await Promise.all([+ loadVoices(),+ loadAvatars('mine'),+ renderDiagnostics(),+ ]);+})();diff --git a/extensions/walk-avatar/popup.css b/extensions/walk-avatar/popup.cssnew file mode 100644index 000000000..07ecb9ebb--- /dev/null+++ b/extensions/walk-avatar/popup.css@@ -0,0 +1,222 @@+/* popup.css — Walk Avatar popup styles.+ * Tokens mirror the three.ws site palette (var(--accent) = sky-300) so the+ * popup reads as part of the product. 360×480 fixed popup. */++*, *::before, *::after { box-sizing: border-box; }++:root {+ --bg: #0a0a0a;+ --surface: #141414;+ --surface-2: #1c1c1c;+ --border: rgba(255, 255, 255, 0.08);+ --text: #fafafa;+ --text-2: #a1a1aa;+ --accent: #7dd3fc;+ --accent-soft: rgba(125, 211, 252, 0.12);+ --danger: #f87171;+ --success: #34d399;+}++html, body {+ margin: 0;+ padding: 0;+ width: 360px;+ min-height: 480px;+ background: var(--bg);+ color: var(--text);+ font-family: 'Inter', system-ui, -apple-system, sans-serif;+ font-size: 13px;+ -webkit-font-smoothing: antialiased;+}++/* ── Header ─────────────────────────────────────────────────────────────── */+.header {+ display: flex;+ align-items: center;+ justify-content: space-between;+ padding: 12px 16px;+ border-bottom: 1px solid var(--border);+}+.header-logo { font-size: 14px; font-weight: 600; color: var(--text); }+.header-logo span { color: var(--accent); }+.auth-pill { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }+.auth-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); transition: background 0.2s; }+.auth-pill.signed-in .dot { background: var(--success); }+.auth-pill .avatar-chip {+ width: 18px; height: 18px; border-radius: 50%; object-fit: cover;+ border: 1px solid var(--border); display: none;+}+.auth-pill.signed-in .avatar-chip { display: inline-block; }+#auth-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.sign-in-btn {+ background: transparent;+ border: 1px solid var(--border);+ color: var(--accent);+ font-size: 11px;+ padding: 3px 8px;+ border-radius: 6px;+ cursor: pointer;+ transition: background 0.15s, border-color 0.15s;+}+.sign-in-btn:hover { background: var(--accent-soft); border-color: var(--accent); }+.sign-in-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }++/* ── Tabs ───────────────────────────────────────────────────────────────── */+.tabs { display: flex; border-bottom: 1px solid var(--border); }+.tab-btn {+ flex: 1;+ padding: 9px 8px;+ background: transparent;+ border: 0;+ border-bottom: 2px solid transparent;+ color: var(--text-2);+ font-size: 12px;+ cursor: pointer;+ transition: color 0.15s, border-color 0.15s;+}+.tab-btn:hover { color: var(--text); }+.tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }+.tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }++.tab-panel { display: none; }+.tab-panel.active { display: block; }++.scroll-area { height: 248px; overflow-y: auto; }+.scroll-area::-webkit-scrollbar { width: 8px; }+.scroll-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }++/* ── Avatar grid ────────────────────────────────────────────────────────── */+.avatar-grid {+ display: grid;+ grid-template-columns: repeat(3, 1fr);+ gap: 8px;+ padding: 12px;+}+.avatar-thumb {+ position: relative;+ aspect-ratio: 1;+ width: 96px;+ max-width: 100%;+ border-radius: 10px;+ overflow: hidden;+ cursor: pointer;+ border: 2px solid transparent;+ transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;+ background: var(--surface);+ padding: 0;+}+.avatar-thumb:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }+.avatar-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }+.avatar-thumb.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }+.avatar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }+.avatar-thumb.no-thumb { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }+.thumb-glyph { font-size: 28px; font-weight: 600; color: var(--accent); }+.thumb-badge {+ position: absolute; top: 4px; left: 4px;+ padding: 1px 5px; border-radius: 5px; font-size: 9px; font-weight: 600;+ background: rgba(0, 0, 0, 0.55); color: var(--accent);+ text-transform: uppercase; letter-spacing: 0.03em;+}++.skeleton {+ background: linear-gradient(90deg, var(--surface) 25%, rgba(255, 255, 255, 0.06) 50%, var(--surface) 75%);+ background-size: 200% 100%;+ animation: shimmer 1.4s infinite;+ cursor: default;+}+@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }++/* ── Empty / error states ───────────────────────────────────────────────── */+.empty-state { grid-column: 1 / -1; padding: 28px 16px; text-align: center; color: var(--text-2); }+.empty-emoji { font-size: 30px; margin-bottom: 8px; }+.empty-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }+.empty-sub { font-size: 11.5px; line-height: 1.5; margin: 0 0 14px; }+.cta-btn {+ background: var(--accent);+ color: #001018;+ border: 0;+ padding: 8px 16px;+ border-radius: 8px;+ font-size: 12px;+ font-weight: 600;+ cursor: pointer;+ transition: opacity 0.15s, transform 0.1s;+}+.cta-btn:hover { opacity: 0.9; }+.cta-btn:active { transform: scale(0.98); }+.cta-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }+.cta-btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }+.cta-btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }++.error-msg {+ margin: 0 12px 12px;+ padding: 10px 12px;+ font-size: 11.5px;+ color: var(--danger);+ background: rgba(248, 113, 113, 0.08);+ border: 1px solid rgba(248, 113, 113, 0.3);+ border-radius: 8px;+ display: none;+ align-items: center;+ justify-content: space-between;+ gap: 10px;+}+.err-text { flex: 1; }+.retry-btn {+ background: transparent;+ border: 1px solid var(--danger);+ color: var(--danger);+ padding: 3px 10px;+ border-radius: 6px;+ font-size: 11px;+ cursor: pointer;+ flex-shrink: 0;+}+.retry-btn:hover { background: rgba(248, 113, 113, 0.12); }++/* ── Speed + footer ─────────────────────────────────────────────────────── */+.speed-row {+ padding: 10px 16px 0;+ display: flex;+ align-items: center;+ gap: 8px;+ font-size: 11px;+ color: var(--text-2);+}+.speed-row input[type=range] { flex: 1; accent-color: var(--accent); }+#speed-val { width: 36px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }++.footer {+ padding: 12px 16px;+ border-top: 1px solid var(--border);+ display: flex;+ align-items: center;+ justify-content: space-between;+ gap: 12px;+}+.footer.disabled { opacity: 0.5; }+.toggle-label { font-size: 12px; font-weight: 500; color: var(--text); }+.toggle-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }+.filtered-tag {+ display: inline-block;+ margin-left: 4px;+ padding: 1px 6px;+ border-radius: 999px;+ font-size: 9.5px;+ text-transform: uppercase;+ letter-spacing: 0.04em;+ background: rgba(248, 113, 113, 0.14);+ color: var(--danger);+}+.toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }+.toggle-switch input { opacity: 0; width: 0; height: 0; }+.toggle-track { position: absolute; inset: 0; border-radius: 24px; background: var(--border); cursor: pointer; transition: background 0.2s; }+.toggle-switch input:checked + .toggle-track { background: var(--accent); }+.toggle-switch input:focus-visible + .toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }+.toggle-switch input:disabled + .toggle-track { cursor: not-allowed; }+.toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform 0.2s; }+.toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); }++.subnav { display: flex; justify-content: flex-end; padding: 6px 16px 8px; }+.settings-link { font-size: 11px; color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }+.settings-link:hover { color: var(--accent); }diff --git a/extensions/walk-avatar/popup.html b/extensions/walk-avatar/popup.htmlindex 4cd33f862..c611d18f2 100644--- a/extensions/walk-avatar/popup.html+++ b/extensions/walk-avatar/popup.html@@ -3,209 +3,13 @@<head><meta charset="utf-8" /><title>three.ws Walk Avatar</title>- <style>- *, *::before, *::after { box-sizing: border-box; }- :root {- --bg: #0a0a0a;- --surface: #141414;- --surface-2: #1c1c1c;- --border: rgba(255,255,255,0.08);- --text: #fafafa;- --text-2: #a1a1aa;- --accent: #7dd3fc;- --accent-soft: rgba(125,211,252,0.12);- --danger: #f87171;- --success: #34d399;- }- html, body {- margin: 0; padding: 0;- width: 360px;- min-height: 480px;- background: var(--bg);- color: var(--text);- font-family: 'Inter', system-ui, -apple-system, sans-serif;- font-size: 13px;- -webkit-font-smoothing: antialiased;- }-- .header {- display: flex;- align-items: center;- justify-content: space-between;- padding: 12px 16px;- border-bottom: 1px solid var(--border);- }- .header-logo { font-size: 14px; font-weight: 600; color: var(--text); }- .header-logo span { color: var(--accent); }- .auth-pill { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-2); }- .auth-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--text-2); transition: background 0.2s; }- .auth-pill.signed-in .dot { background: var(--success); }- .sign-in-btn {- background: transparent;- border: 1px solid var(--border);- color: var(--accent);- font-size: 11px;- padding: 3px 8px;- border-radius: 6px;- cursor: pointer;- transition: background 0.15s, border-color 0.15s;- }- .sign-in-btn:hover { background: var(--accent-soft); border-color: var(--accent); }- .sign-in-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }-- .tabs { display: flex; border-bottom: 1px solid var(--border); }- .tab-btn {- flex: 1;- padding: 9px 8px;- background: transparent;- border: 0;- border-bottom: 2px solid transparent;- color: var(--text-2);- font-size: 12px;- cursor: pointer;- transition: color 0.15s, border-color 0.15s;- }- .tab-btn:hover { color: var(--text); }- .tab-btn.active { color: var(--text); border-bottom-color: var(--accent); }- .tab-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }-- .tab-panel { display: none; }- .tab-panel.active { display: block; }-- .scroll-area { max-height: 248px; overflow-y: auto; }- .scroll-area::-webkit-scrollbar { width: 8px; }- .scroll-area::-webkit-scrollbar-thumb { background: var(--border); border-radius: 8px; }-- .avatar-grid {- display: grid;- grid-template-columns: repeat(3, 1fr);- gap: 8px;- padding: 12px;- }- .avatar-thumb {- position: relative;- aspect-ratio: 1;- border-radius: 10px;- overflow: hidden;- cursor: pointer;- border: 2px solid transparent;- transition: border-color 0.15s, transform 0.12s, box-shadow 0.15s;- background: var(--surface);- padding: 0;- }- .avatar-thumb:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.4); }- .avatar-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }- .avatar-thumb.selected { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent-soft); }- .avatar-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }- .avatar-thumb.no-thumb { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }- .thumb-glyph { font-size: 28px; font-weight: 600; color: var(--accent); }-- .skeleton {- background: linear-gradient(90deg, var(--surface) 25%, rgba(255,255,255,0.06) 50%, var(--surface) 75%);- background-size: 200% 100%;- animation: shimmer 1.4s infinite;- cursor: default;- }- @keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }-- .empty-state { grid-column: 1 / -1; padding: 28px 16px; text-align: center; color: var(--text-2); }- .empty-emoji { font-size: 30px; margin-bottom: 8px; }- .empty-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 4px; }- .empty-sub { font-size: 11.5px; line-height: 1.5; margin: 0 0 14px; }- .cta-btn {- background: var(--accent);- color: #001018;- border: 0;- padding: 8px 16px;- border-radius: 8px;- font-size: 12px;- font-weight: 600;- cursor: pointer;- transition: opacity 0.15s, transform 0.1s;- }- .cta-btn:hover { opacity: 0.9; }- .cta-btn:active { transform: scale(0.98); }- .cta-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }- .cta-btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); }- .cta-btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }-- .error-msg {- margin: 0 12px 12px;- padding: 10px 12px;- font-size: 11.5px;- color: var(--danger);- background: rgba(248,113,113,0.08);- border: 1px solid rgba(248,113,113,0.3);- border-radius: 8px;- display: none;- align-items: center;- justify-content: space-between;- gap: 10px;- }- .err-text { flex: 1; }- .retry-btn {- background: transparent;- border: 1px solid var(--danger);- color: var(--danger);- padding: 3px 10px;- border-radius: 6px;- font-size: 11px;- cursor: pointer;- flex-shrink: 0;- }- .retry-btn:hover { background: rgba(248,113,113,0.12); }-- .speed-row {- padding: 10px 16px 0;- display: flex;- align-items: center;- gap: 8px;- font-size: 11px;- color: var(--text-2);- }- .speed-row input[type=range] { flex: 1; accent-color: var(--accent); }- #speed-val { width: 34px; text-align: right; font-variant-numeric: tabular-nums; color: var(--text); }-- .footer {- padding: 12px 16px;- border-top: 1px solid var(--border);- display: flex;- align-items: center;- justify-content: space-between;- gap: 12px;- }- .footer.disabled { opacity: 0.5; }- .toggle-label { font-size: 12px; font-weight: 500; color: var(--text); }- .toggle-sub { font-size: 11px; color: var(--text-2); margin-top: 2px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }- .filtered-tag {- display: inline-block;- margin-left: 4px;- padding: 1px 6px;- border-radius: 999px;- font-size: 9.5px;- text-transform: uppercase;- letter-spacing: 0.04em;- background: rgba(248,113,113,0.14);- color: var(--danger);- }- .toggle-switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }- .toggle-switch input { opacity: 0; width: 0; height: 0; }- .toggle-track { position: absolute; inset: 0; border-radius: 24px; background: var(--border); cursor: pointer; transition: background 0.2s; }- .toggle-switch input:checked + .toggle-track { background: var(--accent); }- .toggle-switch input:focus-visible + .toggle-track { outline: 2px solid var(--accent); outline-offset: 2px; }- .toggle-switch input:disabled + .toggle-track { cursor: not-allowed; }- .toggle-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: white; transition: transform 0.2s; }- .toggle-switch input:checked + .toggle-track::after { transform: translateX(20px); }-- .subnav { display: flex; justify-content: flex-end; padding: 6px 16px 0; }- .settings-link { font-size: 11px; color: var(--text-2); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }- .settings-link:hover { color: var(--accent); }- </style>+ <link rel="stylesheet" href="popup.css" /></head><body><div class="header"><div class="header-logo">three<span>.ws</span> walk</div><div class="auth-pill" id="auth-pill">+ <img class="avatar-chip" id="auth-avatar" alt="" /><div class="dot"></div><span id="auth-label">not signed in</span><button class="sign-in-btn" id="sign-in-btn">Sign in</button>@@ -215,32 +19,24 @@<div class="tabs" role="tablist"><button class="tab-btn active" data-tab="mine" role="tab" aria-selected="true">My Avatars</button><button class="tab-btn" data-tab="featured" role="tab" aria-selected="false">Featured</button>+ <button class="tab-btn" data-tab="recent" role="tab" aria-selected="false">Recent</button></div><div class="scroll-area"><div class="tab-panel active" id="tab-mine" role="tabpanel">- <div class="avatar-grid" id="grid-mine">- <div class="avatar-thumb skeleton"></div>- <div class="avatar-thumb skeleton"></div>- <div class="avatar-thumb skeleton"></div>- <div class="avatar-thumb skeleton"></div>- <div class="avatar-thumb skeleton"></div>- <div class="avatar-thumb skeleton"></div>- </div>+ <div class="avatar-grid" id="grid-mine"></div><div class="error-msg" id="error-mine"></div></div><div class="tab-panel" id="tab-featured" role="tabpanel">- <div class="avatar-grid" id="grid-featured">- <div class="avatar-thumb skeleton"></div>- <div class="avatar-thumb skeleton"></div>- <div class="avatar-thumb skeleton"></div>- <div class="avatar-thumb skeleton"></div>- <div class="avatar-thumb skeleton"></div>- <div class="avatar-thumb skeleton"></div>- </div>+ <div class="avatar-grid" id="grid-featured"></div><div class="error-msg" id="error-featured"></div></div>++ <div class="tab-panel" id="tab-recent" role="tabpanel">+ <div class="avatar-grid" id="grid-recent"></div>+ <div class="error-msg" id="error-recent"></div>+ </div></div><div class="speed-row">diff --git a/extensions/walk-avatar/popup.js b/extensions/walk-avatar/popup.jsindex 94c9e17c2..c98ce2371 100644--- a/extensions/walk-avatar/popup.js+++ b/extensions/walk-avatar/popup.js@@ -1,13 +1,20 @@// popup.js — controller for the Walk Avatar popup.//-// Wires the real three.ws API:-// GET /api/threews/me — session identity (username)-// GET /api/avatars — the signed-in user's avatars-// GET /api/avatars?include_public=true&visibility=public — featured/public-// Thumbnails come back on each avatar as `thumbnail_url` (a CDN URL); the GLB-// model is `model_url`. No per-thumb endpoint is needed.+// Real three.ws API (no placeholders, no sample data):+// GET /api/me — signed-in identity (handle shown in the pill)+// GET /api/avatars/mine — the caller's avatars (Bearer, avatars:read)+// GET /api/avatars/featured — curated + popular public avatars+// GET /api/avatars/:id/thumb — poster JPG/PNG (used directly as <img src>)+//+// Auth: the popup opens three.ws/login?next=/extension/auth-callback. The site+// mints a Bearer token there and the background worker captures it from the+// callback URL into chrome.storage.local.threews_session. The "Recent" tab is+// the avatars the user has picked here, kept in chrome.storage.local.const THREEWS = 'https://three.ws';+const RECENT_KEY = 'recentAvatars';+const SELECTION_KEY = 'walk_selection';+const MAX_RECENT = 12;const state = {session: null,@@ -16,15 +23,18 @@ const state = {currentTab: null,tabEnabled: false,activeTab: 'mine',+ // id -> avatar object, so the Recent tab and re-selection can render without+ // a refetch and we can snapshot picks into chrome.storage.local.+ cache: new Map(),};-// ── API ───────────────────────────────────────────────────────────────────+// ── API ─────────────────────────────────────────────────────────────────────async function apiFetch(path) {const headers = { Accept: 'application/json' };if (state.session) headers['Authorization'] = `Bearer ${state.session}`;const res = await fetch(`${THREEWS}${path}`, { headers, credentials: 'include' });if (res.status === 401) {- const err = new Error('unauthorized');+ const err = new Error('session expired');err.status = 401;throw err;}@@ -37,27 +47,42 @@ function msg(type, data = {}) {}function openLogin() {- chrome.tabs.create({ url: `${THREEWS}/login?redirect=extension` });+ chrome.tabs.create({+ url: `${THREEWS}/login?next=${encodeURIComponent('/extension/auth-callback')}`,+ });+}++function thumbUrl(av) {+ return av.thumb_url || `${THREEWS}/api/avatars/${av.id}/thumb`;}-// ── Auth header ────────────────────────────────────────────────────────────+// ── Auth header ───────────────────────────────────────────────────────────────async function renderAuth() {const pill = document.getElementById('auth-pill');const label = document.getElementById('auth-label');+ const avatarChip = document.getElementById('auth-avatar');const signInBtn = document.getElementById('sign-in-btn');if (state.session) {try {- const body = await apiFetch('/api/threews/me');- const user = body?.data?.user || body?.user || {};+ const body = await apiFetch('/api/me');+ const user = body?.user || {};pill.classList.add('signed-in');- label.textContent = user.username ? `@${user.username}` : (user.display_name || 'signed in');+ label.textContent =+ user.handle || (user.username ? `@${user.username}` : user.display_name || 'signed in');+ if (user.avatar_url) {+ avatarChip.src = user.avatar_url;+ avatarChip.onerror = () => avatarChip.removeAttribute('src');+ } else {+ avatarChip.removeAttribute('src');+ }signInBtn.textContent = 'Sign out';signInBtn.onclick = async () => {await msg('clear-session');state.session = null;+ avatarChip.removeAttribute('src');renderAuth();- loadAvatars('mine');+ loadAvatars(state.activeTab);};return;} catch (err) {@@ -69,14 +94,18 @@ async function renderAuth() {}pill.classList.remove('signed-in');+ avatarChip.removeAttribute('src');label.textContent = 'not signed in';signInBtn.textContent = 'Sign in';signInBtn.onclick = openLogin;}-// ── Avatar grids ────────────────────────────────────────────────────────────+// ── Avatar grids ──────────────────────────────────────────────────────────────function skeleton(n = 6) {- return Array.from({ length: n }, () => '<div class="avatar-thumb skeleton" aria-hidden="true"></div>').join('');+ return Array.from(+ { length: n },+ () => '<div class="avatar-thumb skeleton" aria-hidden="true"></div>',+ ).join('');}function renderEmpty(gridEl, tab) {@@ -91,6 +120,13 @@ function renderEmpty(gridEl, tab) {gridEl.querySelector('#create-cta')?.addEventListener('click', () => {chrome.tabs.create({ url: `${THREEWS}/create-selfie` });});+ } else if (tab === 'recent') {+ gridEl.innerHTML = `+ <div class="empty-state" role="status">+ <div class="empty-emoji" aria-hidden="true">🕘</div>+ <div class="empty-title">No recent picks</div>+ <p class="empty-sub">Avatars you choose here show up in this tab so you can switch back fast.</p>+ </div>`;} else {gridEl.innerHTML = `<div class="empty-state" role="status">@@ -114,9 +150,18 @@ function renderError(gridEl, errorEl, tab, message) {errorEl.querySelector(`#retry-${tab}`)?.addEventListener('click', () => loadAvatars(tab));}+function fallbackGlyph(name) {+ const span = document.createElement('span');+ span.className = 'thumb-glyph';+ span.textContent = (name || '?').trim().charAt(0).toUpperCase() || '?';+ return span;+}+function renderAvatarGrid(gridEl, avatars) {gridEl.innerHTML = '';for (const av of avatars) {+ state.cache.set(av.id, av);+const thumb = document.createElement('button');thumb.className = 'avatar-thumb' + (av.id === state.selectedAvatarId ? ' selected' : '');thumb.type = 'button';@@ -124,9 +169,21 @@ function renderAvatarGrid(gridEl, avatars) {thumb.setAttribute('aria-label', `Select avatar ${av.name || ''}`.trim());thumb.setAttribute('aria-pressed', av.id === state.selectedAvatarId ? 'true' : 'false');- if (av.thumbnail_url) {+ if (av.featured) {+ const badge = document.createElement('span');+ badge.className = 'thumb-badge';+ badge.textContent = 'Featured';+ thumb.appendChild(badge);+ }++ // has_thumbnail === false means the poster endpoint would 404 — skip the+ // round trip and render the initial glyph straight away.+ if (av.has_thumbnail === false) {+ thumb.classList.add('no-thumb');+ thumb.appendChild(fallbackGlyph(av.name));+ } else {const img = document.createElement('img');- img.src = av.thumbnail_url;+ img.src = thumbUrl(av);img.alt = av.name || 'avatar';img.loading = 'lazy';img.addEventListener('error', () => {@@ -135,33 +192,59 @@ function renderAvatarGrid(gridEl, avatars) {thumb.appendChild(fallbackGlyph(av.name));});thumb.appendChild(img);- } else {- thumb.classList.add('no-thumb');- thumb.appendChild(fallbackGlyph(av.name));}- thumb.addEventListener('click', () => selectAvatar(av.id, gridEl, thumb));+ thumb.addEventListener('click', () => selectAvatar(av, thumb));gridEl.appendChild(thumb);}}-function fallbackGlyph(name) {- const span = document.createElement('span');- span.className = 'thumb-glyph';- span.textContent = (name || '?').trim().charAt(0).toUpperCase() || '?';- return span;-}--function selectAvatar(avatarId, gridEl, thumbEl) {+// ── Selection ─────────────────────────────────────────────────────────────────+async function selectAvatar(av, thumbEl) {+ const avatarId = av.id;state.selectedAvatarId = avatarId;- for (const t of gridEl.parentElement.parentElement.querySelectorAll('.avatar-thumb')) {++ // Reflect selection across the whole popup (all three grids).+ for (const t of document.querySelectorAll('.avatar-thumb')) {const on = t === thumbEl;t.classList.toggle('selected', on);t.setAttribute('aria-pressed', on ? 'true' : 'false');}- msg('set-avatar', { avatarId });- // If the avatar is already running on this tab, the background broadcast- // swaps it live; otherwise the selection is stored for the next enable.++ // 1) Persist the picker selection in the shape the rest of the extension reads.+ await persistSelection();++ // 2) Remember it as a "recent" pick for the Recent tab.+ await pushRecent(av);++ // 3) Background relay updates the synced default + broadcasts a live swap to+ // every mounted tab; also message the current tab directly so the swap is+ // instant even if the broadcast races.+ await msg('set-avatar', { avatarId });+ if (state.currentTab?.id != null) {+ chrome.tabs+ .sendMessage(state.currentTab.id, { type: 'walk:setAvatar', avatarId })+ .catch(() => {});+ }+}++// ── Recent tab (client-side, real picks) ───────────────────────────────────────+async function getRecent() {+ const out = await chrome.storage.local.get(RECENT_KEY).catch(() => ({}));+ return Array.isArray(out[RECENT_KEY]) ? out[RECENT_KEY] : [];+}++async function pushRecent(av) {+ const slim = {+ id: av.id,+ name: av.name || 'Avatar',+ thumb_url: thumbUrl(av),+ has_thumbnail: av.has_thumbnail !== false,+ featured: !!av.featured,+ };+ const existing = (await getRecent()).filter((a) => a && a.id && a.id !== av.id);+ const next = [slim, ...existing].slice(0, MAX_RECENT);+ await chrome.storage.local.set({ [RECENT_KEY]: next }).catch(() => {});}async function loadAvatars(tab) {@@ -169,6 +252,15 @@ async function loadAvatars(tab) {const gridEl = document.getElementById(`grid-${tab}`);const errorEl = document.getElementById(`error-${tab}`);errorEl.style.display = 'none';++ // Recent is local — no network, no skeleton flash.+ if (tab === 'recent') {+ const recent = await getRecent();+ recent.forEach((a) => state.cache.set(a.id, a));+ if (recent.length === 0) return renderEmpty(gridEl, tab);+ return renderAvatarGrid(gridEl, recent);+ }+gridEl.innerHTML = skeleton();try {@@ -184,16 +276,12 @@ async function loadAvatars(tab) {return;}- const path = tab === 'mine'- ? '/api/avatars?limit=60'- : '/api/avatars?include_public=true&visibility=public&limit=60';+ const path =+ tab === 'mine' ? '/api/avatars/mine?limit=60' : '/api/avatars/featured?limit=48';const body = await apiFetch(path);const avatars = (body.avatars || []).filter((a) => a && a.id);- if (avatars.length === 0) {- renderEmpty(gridEl, tab);- return;- }+ if (avatars.length === 0) return renderEmpty(gridEl, tab);renderAvatarGrid(gridEl, avatars);} catch (err) {if (err.status === 401) {@@ -207,7 +295,7 @@ async function loadAvatars(tab) {}}-// ── Current tab ──────────────────────────────────────────────────────────────+// ── Current tab ────────────────────────────────────────────────────────────────async function initCurrentTab() {const [tab] = await chrome.tabs.query({ active: true, currentWindow: true });state.currentTab = tab;@@ -224,7 +312,9 @@ async function initCurrentTab() {}let host = tab.url;- try { host = new URL(tab.url).hostname; } catch {}+ try {+ host = new URL(tab.url).hostname;+ } catch {}siteEl.textContent = host;// Per-tab enable state is kept in session storage, set when the popup toggles.@@ -240,7 +330,7 @@ async function initCurrentTab() {}}-// ── Toggle ────────────────────────────────────────────────────────────────────+// ── Toggle ──────────────────────────────────────────────────────────────────────document.getElementById('enable-toggle').addEventListener('change', async (e) => {const enabled = e.target.checked;if (!state.currentTab) return;@@ -258,27 +348,57 @@ document.getElementById('enable-toggle').addEventListener('change', async (e) =>const siteEl = document.getElementById('current-site');siteEl.innerHTML = `${siteEl.textContent} <span class="filtered-tag">${res.reason || res.error}</span>`;await chrome.storage.session.set({ [key]: false }).catch(() => {});+ state.tabEnabled = false;+ await persistSelection();return;}state.tabEnabled = enabled;await chrome.storage.session.set({ [key]: enabled }).catch(() => {});+ await persistSelection();});// ── Speed slider ──────────────────────────────────────────────────────────────const speedSlider = document.getElementById('speed-slider');const speedVal = document.getElementById('speed-val');+function currentSpeed() {+ return parseFloat(speedSlider.value) || 1;+}++async function persistSelection() {+ await chrome.storage.local+ .set({+ [SELECTION_KEY]: {+ avatarId: state.selectedAvatarId || state.settings.avatarId || '',+ walkSpeed: currentSpeed(),+ enabled: state.tabEnabled,+ },+ })+ .catch(() => {});+}++// Throttle live speed broadcasts so dragging the slider stays smooth.+let speedThrottle = null;speedSlider.addEventListener('input', () => {- speedVal.textContent = parseFloat(speedSlider.value).toFixed(1) + '×';+ speedVal.textContent = currentSpeed().toFixed(1) + '×';+ if (speedThrottle) return;+ speedThrottle = setTimeout(() => {+ speedThrottle = null;+ msg('update-settings', { settings: { walkSpeed: currentSpeed() } });+ }, 150);});speedSlider.addEventListener('change', async () => {- const v = parseFloat(speedSlider.value);- await msg('update-settings', { settings: { walkSpeed: v } });+ if (speedThrottle) {+ clearTimeout(speedThrottle);+ speedThrottle = null;+ }+ await msg('update-settings', { settings: { walkSpeed: currentSpeed() } });+ await persistSelection();});-// ── Tab bar ────────────────────────────────────────────────────────────────────+// ── Tab bar ──────────────────────────────────────────────────────────────────────document.querySelectorAll('.tab-btn').forEach((btn) => {btn.addEventListener('click', () => {const tab = btn.dataset.tab;@@ -321,9 +441,5 @@ chrome.runtime.onMessage.addListener((m) => {speedSlider.value = String(speed);speedVal.textContent = parseFloat(speed).toFixed(1) + '×';- await Promise.all([- renderAuth(),- initCurrentTab(),- loadAvatars('mine'),- ]);+ await Promise.all([renderAuth(), initCurrentTab(), loadAvatars('mine')]);})();diff --git a/public/changelog.json b/public/changelog.jsonindex fd407f45f..3a3cec7e8 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-20T01:36:23.606Z",+ "generated_at": "2026-06-20T05:16:39.524Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -26,6 +26,16 @@"launch"]},+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "Express yourself in Walk — wave, dance, sit, point, cheer and more",+ "summary": "Your avatar can now emote while you stroll. Hold G on desktop — or long-press the action button on mobile — to pop a radial gesture wheel, aim, and release to play one of eight gestures: wave, dance, sit, point, cheer, agree, disagree, and a talking idle. Keys 1–8 fire them instantly, and a quick-access tray sits in the corner. Upper-body gestures like wave and cheer blend over your walk so you keep moving while you gesture; sit and dance take over the whole body, and a single step rises you back up. Everything crossfades — no stiff T-pose flashes between moves — and gestures replicate to other players in the same world. Chat messages now animate the avatar as it 'talks', and developers can trigger any gesture programmatically with window.walk.playGesture('wave').",+ "link": "/walk",+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-20","type": "update",@@ -38,6 +48,37 @@"sdk"]},+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "IRL augmented reality, location, and motion sensors now enabled in production",+ "summary": "The live IRL map was served with a browser security header that switched off the camera, GPS, and device-motion access the augmented-reality view depends on — so on stricter browsers, opening /irl to place or discover an agent in AR couldn't start the camera or read your location. We now grant exactly those capabilities, scoped to the IRL page itself and nothing else, so the camera, your location, and device motion come up the moment you open it while every other page stays locked down.",+ "link": "/irl",+ "tags": [+ "fix",+ "security"+ ]+ },+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "IRL pin placement and discovery are reliable again",+ "summary": "Placing an agent at a real-world spot and seeing nearby agents on the IRL map could intermittently fail to load. The cause was that the apps re-checked the entire database schema on every single request, and under bursts of traffic those redundant checks could collide and stall the request. We now run that setup once and never let it block a placement or a nearby-search again — so dropping a pin, browsing what's around you, and logging an encounter respond immediately and consistently.",+ "link": "/irl",+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "Pick and switch avatars from the Walk Avatar extension popup",+ "summary": "The three.ws Walk Avatar browser extension popup is now a full avatar picker. Sign in straight from the popup — it opens three.ws, signs you in, and links the extension automatically — then browse your own avatars, a Featured shelf of community favorites, and a Recent tab of the avatars you've picked before. Tap any thumbnail to instantly swap the walking avatar on the current tab, drag the speed slider to change how fast it walks in real time, and use the big switch to turn it on or off for the site you're on. Every thumbnail is a real avatar from your account, with graceful empty, loading, and error states throughout.",+ "link": null,+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-20","type": "update",@@ -50,6 +91,68 @@"sdk"]},+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "Real product analytics + the $THREE conversion funnel",+ "summary": "We now measure the journeys that matter so we can find and fix where people drop off. Every key step is captured as a real, privacy-respecting event: landing on the homepage and which call-to-action you click, connecting a wallet (started, succeeded, or failed), creating an agent, and copying an embed snippet. The $THREE holder funnel is fully instrumented end to end — token page view → buy clicked → swap quote shown → swap confirmed → swap settled on-chain — so we can see exactly how far buyers get. Marketplace searches, agent profile views, and dashboard/visualizer opens are tracked too, alongside failed API calls so reliability is visible. Wallet addresses are always truncated, events are queued so they never slow the page, and analytics can never break the app.",+ "link": null,+ "tags": [+ "improvement",+ "infra"+ ]+ },+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "Solana cover-charge and x402 payments fixed when the primary RPC misbehaves",+ "summary": "Paying the Pole Club cover charge — and any Solana payment authorized through the checkout — could fail at the \"Authorize payment\" step with an internal-error reference. The cause was a misconfigured upstream Solana node answering with a \"not found\" status that our automatic failover didn't treat as a reason to switch providers, so the payment stalled instead of routing to a healthy node. Failover now rotates off a dead or misrouted node the same way it already handled rate-limits and outages, so the wallet falls through to a working node and the payment goes through.",+ "link": "/club",+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "The homepage hero now reacts to live $THREE market data",+ "summary": "The 3D agent on the home page now stands inside a living $THREE energy field — a faceted crystal in a particle cloud that breathes with the market in real time. Price momentum speeds its spin and warms or cools its color, 24-hour volume sets how brightly the field glows, every on-chain buy sends a green ripple and every sell a red one, and each deploy burn flares the whole field in burn-orange. A small live readout in the corner shows the current $THREE price, 24h change, and holder count. It loads only when the hero is on screen, drops to a calm static version if you prefer reduced motion, and quietly shows a \"reconnecting\" hint instead of ever inventing a number when the feed blips.",+ "link": "/",+ "tags": [+ "feature",+ "improvement"+ ]+ },+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "The pricing page now reveals as you scroll",+ "summary": "The lower sections of the pricing page — the full feature comparison, the FAQ, and the closing call-to-action — now fade and rise gently into view as you scroll to them instead of sitting flat on the page, matching the staggered entrance the plan cards already had. The motion is purely cosmetic and gracefully turns itself off if you've asked your system to reduce motion, and the content always appears even on browsers that don't support scroll detection.",+ "link": "/pricing",+ "tags": [+ "improvement"+ ]+ },+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "Walk Avatar extension gets a full settings page",+ "summary": "The three.ws Walk Avatar browser extension now has a dedicated settings page (open it from the popup's \"All settings\" link or chrome://extensions → Details → Extension options). Choose your default avatar, where it appears on a page (including a new follow-the-cursor mode), its size, walk speed, and a light/dark/auto theme that reads each page's background. Turn on read-aloud narration and pick from real synthesis voices, and set per-site allow and block lists so the avatar only shows up where you want it. Every change saves instantly and roams across your signed-in Chrome installs, with a one-click reset to defaults and a diagnostics panel showing your session and extension version.",+ "link": null,+ "tags": [+ "feature"+ ]+ },+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "Walk Avatar reads articles aloud more cleanly",+ "summary": "When you turn on read-aloud narration in the Walk Avatar browser extension, it now isolates the real article on a page before speaking — using Mozilla's Readability engine to strip away navigation, headers, footers, sidebars and ads — so the avatar narrates the actual story you're reading instead of menu labels or boilerplate. As you scroll, it follows the section in view, shows the text in a tidy speech bubble above the avatar (now neatly clamped to three lines), and reads it with a real synthesis voice; muting silences it and cancels any in-flight audio instantly. Narration stays off when you've asked your system to reduce motion.",+ "link": null,+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-19","type": "launch",diff --git a/public/changelog.xml b/public/changelog.xmlindex 1b193dcbe..9e900fb25 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -22,6 +22,14 @@<category>launch</category><description>A public gallery and leaderboard of the rarest Solana vanity addresses ground on three.ws — each provably-fair, verified, and shareable. Appraise any address to see its honest rarity tier and grind cost.</description></item>+ <item>+ <title>Express yourself in Walk — wave, dance, sit, point, cheer and more</title>+ <link>https://three.ws/walk</link>+ <guid isPermaLink="false">2026-06-20:Express yourself in Walk — wave, dance, sit, point, cheer and more</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>Your avatar can now emote while you stroll. Hold G on desktop — or long-press the action button on mobile — to pop a radial gesture wheel, aim, and release to play one of eight gestures: wave, dance, sit, point, cheer, agree, disagree, and a talking idle. Keys 1–8 fire them instantly, and a quick-access tray sits in the corner. Upper-body gestures like wave and cheer blend over your walk so you keep moving while you gesture; sit and dance take over the whole body, and a single step rises you back up. Everything crossfades — no stiff T-pose flashes between moves — and gestures replicate to other players in the same world. Chat messages now animate the avatar as it 'talks', and developers can trigger any gesture programmatically with window.walk.playGesture('wave').</description>+ </item><item><title>Grind-bounty market: post a reward, a fleet grinds your hard vanity address</title><link>https://three.ws/vanity/bounties</link>@@ -30,6 +38,30 @@<category>feature</category><description>A 5-to-8-character vanity address is hours-to-years on one machine, so until now "hard" vanity meant running your browser overnight and hoping. The new grind-bounty market makes it a liquid, pay-for-results service. Post the pattern you want, escrow a USDC bounty, and a fleet of independent workers grinds it in parallel — the first one to find a verified match is paid automatically. The breakthrough is that the found key is sealed to your encryption key before the worker ever submits it, so the worker earns the bounty yet never sees your wallet, and three.ws never holds your secret either. Settlement is trustless via x402: no valid match, no payout; only one worker can win; and a bounty that goes unfilled refunds your escrow when it expires. You also get an honest difficulty meter and a fair-price oracle when posting (priced off the real grind odds, not made-up numbers), a live board with biggest-reward and expiring-soon sorts, and a one-click way to open your won wallet locally with your private key. Want to earn instead? Flip on "Grind & earn," point your spare cores at the open bounties, and get paid in USDC for every fill — there's a leaderboard of the top grinders.</description></item>+ <item>+ <title>IRL augmented reality, location, and motion sensors now enabled in production</title>+ <link>https://three.ws/irl</link>+ <guid isPermaLink="false">2026-06-20:IRL augmented reality, location, and motion sensors now enabled in production</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The live IRL map was served with a browser security header that switched off the camera, GPS, and device-motion access the augmented-reality view depends on — so on stricter browsers, opening /irl to place or discover an agent in AR couldn't start the camera or read your location. We now grant exactly those capabilities, scoped to the IRL page itself and nothing else, so the camera, your location, and device motion come up the moment you open it while every other page stays locked down.</description>+ </item>+ <item>+ <title>IRL pin placement and discovery are reliable again</title>+ <link>https://three.ws/irl</link>+ <guid isPermaLink="false">2026-06-20:IRL pin placement and discovery are reliable again</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Placing an agent at a real-world spot and seeing nearby agents on the IRL map could intermittently fail to load. The cause was that the apps re-checked the entire database schema on every single request, and under bursts of traffic those redundant checks could collide and stall the request. We now run that setup once and never let it block a placement or a nearby-search again — so dropping a pin, browsing what's around you, and logging an encounter respond immediately and consistently.</description>+ </item>+ <item>+ <title>Pick and switch avatars from the Walk Avatar extension popup</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-20:Pick and switch avatars from the Walk Avatar extension popup</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The three.ws Walk Avatar browser extension popup is now a full avatar picker. Sign in straight from the popup — it opens three.ws, signs you in, and links the extension automatically — then browse your own avatars, a Featured shelf of community favorites, and a Recent tab of the avatars you've picked before. Tap any thumbnail to instantly swap the walking avatar on the current tab, drag the speed slider to change how fast it walks in real time, and use the big switch to turn it on or off for the site you're on. Every thumbnail is a real avatar from your account, with graceful empty, loading, and error states throughout.</description>+ </item><item><title>Proof-of-grind: a public gallery of the rarest wallets ground here</title><link>https://three.ws/vanity/gallery</link>@@ -38,6 +70,54 @@<category>feature</category><description>A vanity address is a flex — but until now the flex was unverifiable. Proof-of-grind turns it into provenance. Every provably-fair grind can now carry an honest rarity score and tier (Common → Mythic) computed straight from the real grind difficulty: longer patterns rank higher, with documented, capped bonuses for real dictionary words, palindromes, and repeated-character runs — no inflated numbers. Publish a wallet (opt-in, secret-free; we re-verify your signed receipt against the live three.ws service key before it appears) and it joins a public gallery and leaderboard of the rarest addresses ground on three.ws, sortable and filterable by tier and pattern, each with a verified badge and a beautiful share card for X. New tools: paste any address to appraise its tier and estimated grind cost, and every agent's wallet chip now shows its rarity tier wherever it appears. No secret, seed, or sealed key is ever stored or shown.</description></item>+ <item>+ <title>Real product analytics + the $THREE conversion funnel</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-20:Real product analytics + the $THREE conversion funnel</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>We now measure the journeys that matter so we can find and fix where people drop off. Every key step is captured as a real, privacy-respecting event: landing on the homepage and which call-to-action you click, connecting a wallet (started, succeeded, or failed), creating an agent, and copying an embed snippet. The $THREE holder funnel is fully instrumented end to end — token page view → buy clicked → swap quote shown → swap confirmed → swap settled on-chain — so we can see exactly how far buyers get. Marketplace searches, agent profile views, and dashboard/visualizer opens are tracked too, alongside failed API calls so reliability is visible. Wallet addresses are always truncated, events are queued so they never slow the page, and analytics can never break the app.</description>+ </item>+ <item>+ <title>Solana cover-charge and x402 payments fixed when the primary RPC misbehaves</title>+ <link>https://three.ws/club</link>+ <guid isPermaLink="false">2026-06-20:Solana cover-charge and x402 payments fixed when the primary RPC misbehaves</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>Paying the Pole Club cover charge — and any Solana payment authorized through the checkout — could fail at the "Authorize payment" step with an internal-error reference. The cause was a misconfigured upstream Solana node answering with a "not found" status that our automatic failover didn't treat as a reason to switch providers, so the payment stalled instead of routing to a healthy node. Failover now rotates off a dead or misrouted node the same way it already handled rate-limits and outages, so the wallet falls through to a working node and the payment goes through.</description>+ </item>+ <item>+ <title>The homepage hero now reacts to live $THREE market data</title>+ <link>https://three.ws/</link>+ <guid isPermaLink="false">2026-06-20:The homepage hero now reacts to live $THREE market data</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The 3D agent on the home page now stands inside a living $THREE energy field — a faceted crystal in a particle cloud that breathes with the market in real time. Price momentum speeds its spin and warms or cools its color, 24-hour volume sets how brightly the field glows, every on-chain buy sends a green ripple and every sell a red one, and each deploy burn flares the whole field in burn-orange. A small live readout in the corner shows the current $THREE price, 24h change, and holder count. It loads only when the hero is on screen, drops to a calm static version if you prefer reduced motion, and quietly shows a "reconnecting" hint instead of ever inventing a number when the feed blips.</description>+ </item>+ <item>+ <title>The pricing page now reveals as you scroll</title>+ <link>https://three.ws/pricing</link>+ <guid isPermaLink="false">2026-06-20:The pricing page now reveals as you scroll</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The lower sections of the pricing page — the full feature comparison, the FAQ, and the closing call-to-action — now fade and rise gently into view as you scroll to them instead of sitting flat on the page, matching the staggered entrance the plan cards already had. The motion is purely cosmetic and gracefully turns itself off if you've asked your system to reduce motion, and the content always appears even on browsers that don't support scroll detection.</description>+ </item>+ <item>+ <title>Walk Avatar extension gets a full settings page</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-20:Walk Avatar extension gets a full settings page</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The three.ws Walk Avatar browser extension now has a dedicated settings page (open it from the popup's "All settings" link or chrome://extensions → Details → Extension options). Choose your default avatar, where it appears on a page (including a new follow-the-cursor mode), its size, walk speed, and a light/dark/auto theme that reads each page's background. Turn on read-aloud narration and pick from real synthesis voices, and set per-site allow and block lists so the avatar only shows up where you want it. Every change saves instantly and roams across your signed-in Chrome installs, with a one-click reset to defaults and a diagnostics panel showing your session and extension version.</description>+ </item>+ <item>+ <title>Walk Avatar reads articles aloud more cleanly</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-20:Walk Avatar reads articles aloud more cleanly</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>When you turn on read-aloud narration in the Walk Avatar browser extension, it now isolates the real article on a page before speaking — using Mozilla's Readability engine to strip away navigation, headers, footers, sidebars and ads — so the avatar narrates the actual story you're reading instead of menu labels or boilerplate. As you scroll, it follows the section in view, shows the text in a tidy speech bubble above the avatar (now neatly clamped to three lines), and reads it with a real synthesis voice; muting silences it and cancels any in-flight audio instantly. Narration stays off when you've asked your system to reduce motion.</description>+ </item><item><title>Agent Studio</title><link>https://three.ws/agent-studio</link>diff --git a/public/extension-auth-callback.html b/public/extension-auth-callback.htmlnew file mode 100644index 000000000..214b94bd5--- /dev/null+++ b/public/extension-auth-callback.html@@ -0,0 +1,136 @@+<!doctype html>+<html lang="en">+<head>+ <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>+ <meta charset="utf-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1" />+ <meta name="robots" content="noindex" />+ <title>Connecting the Walk Avatar extension · three.ws</title>+ <style>+ :root {+ --bg: #0a0a0a; --surface: #141414; --border: rgba(255,255,255,0.08);+ --text: #fafafa; --text-2: #a1a1aa; --accent: #7dd3fc; --danger: #f87171; --success: #34d399;+ }+ * { box-sizing: border-box; }+ html, body { margin: 0; height: 100%; }+ body {+ background: var(--bg); color: var(--text);+ font-family: 'Inter', system-ui, -apple-system, sans-serif;+ display: flex; align-items: center; justify-content: center;+ min-height: 100vh; padding: 24px;+ }+ .card {+ width: 100%; max-width: 420px; background: var(--surface);+ border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px;+ text-align: center;+ }+ .logo { font-size: 16px; font-weight: 700; margin-bottom: 20px; }+ .logo span { color: var(--accent); }+ .spinner {+ width: 36px; height: 36px; margin: 8px auto 18px;+ border: 3px solid var(--border); border-top-color: var(--accent);+ border-radius: 50%; animation: spin 0.8s linear infinite;+ }+ @keyframes spin { to { transform: rotate(360deg); } }+ .icon { font-size: 38px; line-height: 1; margin-bottom: 12px; }+ h1 { font-size: 17px; margin: 0 0 8px; }+ p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); margin: 0 0 18px; }+ .btn {+ display: inline-block; background: var(--accent); color: #001018;+ border: 0; border-radius: 10px; padding: 11px 20px; font-size: 13.5px;+ font-weight: 600; cursor: pointer; text-decoration: none;+ transition: opacity 0.15s, transform 0.1s;+ }+ .btn:hover { opacity: 0.9; }+ .btn:active { transform: scale(0.98); }+ .btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--border); margin-left: 8px; }+ .hidden { display: none; }+ .ok { color: var(--success); }+ .err { color: var(--danger); }+ </style>+</head>+<body>+ <div class="card">+ <div class="logo">three<span>.ws</span> · Walk Avatar</div>++ <div id="loading">+ <div class="spinner" role="status" aria-label="Connecting"></div>+ <h1>Connecting your account…</h1>+ <p>Linking the Walk Avatar extension to your three.ws avatars.</p>+ </div>++ <div id="success" class="hidden">+ <div class="icon ok" aria-hidden="true">✓</div>+ <h1>You're connected</h1>+ <p>The extension now has access to your avatars. You can close this tab — it'll close itself in a moment.</p>+ </div>++ <div id="need-login" class="hidden">+ <div class="icon" aria-hidden="true">🔑</div>+ <h1>Sign in to continue</h1>+ <p>Sign in to three.ws, then we'll connect the Walk Avatar extension automatically.</p>+ <a class="btn" href="/login?next=/extension/auth-callback">Sign in</a>+ </div>++ <div id="error" class="hidden">+ <div class="icon err" aria-hidden="true">⚠</div>+ <h1>Couldn't connect</h1>+ <p id="error-msg">Something went wrong while linking the extension.</p>+ <button class="btn" id="retry-btn">Try again</button>+ <a class="btn ghost" href="/login?next=/extension/auth-callback">Sign in again</a>+ </div>+ </div>++ <script>+ (function () {+ 'use strict';+ var $ = function (id) { return document.getElementById(id); };+ function show(which) {+ ['loading', 'success', 'need-login', 'error'].forEach(function (k) {+ $(k).classList.toggle('hidden', k !== which);+ });+ }++ // If the URL already carries the minted token, the extension's+ // background worker is reading it from this very URL — just confirm+ // success and stop. (Prevents a re-mint/redirect loop.)+ var params = new URLSearchParams(location.search);+ if (params.get('token')) {+ show('success');+ // Best-effort auto-close once the background worker has captured it.+ setTimeout(function () { window.close(); }, 2500);+ return;+ }++ async function connect() {+ show('loading');+ try {+ var res = await fetch('/api/auth/extension-token', {+ method: 'POST',+ credentials: 'include',+ headers: { 'content-type': 'application/json' },+ });+ if (res.status === 401) { show('need-login'); return; }+ if (!res.ok) {+ var body = await res.json().catch(function () { return {}; });+ throw new Error(body.message || ('HTTP ' + res.status));+ }+ var data = await res.json();+ if (!data || !data.token) throw new Error('No token returned');+ // Hand the token to the extension's background worker by putting+ // it in the URL it is watching, then re-render as success.+ location.replace('/extension/auth-callback?token=' + encodeURIComponent(data.token));+ } catch (e) {+ $('error-msg').textContent = (e && e.message)+ ? ('Something went wrong: ' + e.message)+ : 'Something went wrong while linking the extension.';+ show('error');+ }+ }++ $('retry-btn').addEventListener('click', connect);+ connect();+ })();+ </script>+</body>+</html>diff --git a/tasks/walk/07-chrome-extension-popup-picker.md b/tasks/walk/07-chrome-extension-popup-picker.mddeleted file mode 100644index cbe7683c5..000000000--- a/tasks/walk/07-chrome-extension-popup-picker.md+++ /dev/null@@ -1,53 +0,0 @@-# Task 07 — Chrome Extension: Popup Avatar Picker--## Priority: URGENT--## Objective-Build the extension popup UI so users can sign in, browse their three.ws avatars, pick one, and toggle the walking avatar on/off for the current tab. The picker must show real avatars from the real three.ws API — no placeholders.--## Scope-- File: `extensions/walk-avatar/popup.html`, `popup.js`, `popup.css`-- Layout (360×480px popup):- - Header: three.ws logo, "Sign in" or signed-in user pill (shows handle from `/api/me`)- - Tab bar: "My Avatars" | "Featured" | "Recent"- - Avatar grid: 3 columns of 96×96 thumbnails, each loads via `/api/avatars/<id>/thumb` real endpoint- - Selected avatar gets accent border (var(--accent) from site CSS)- - Footer: large toggle switch "Enable on this site" + speed slider (0.5x–2x walk speed)-- Auth: extension opens `https://three.ws/login?redirect=ext` in a new tab; site posts back the session token via `window.postMessage`; popup stores in `chrome.storage.local` as `threews_session`-- On avatar select: write `{ avatarId, walkSpeed, enabled }` to `chrome.storage.local`; send `chrome.tabs.sendMessage` to current tab → content script swaps the iframe `src`-- Empty state if user has zero avatars: CTA "Create your first avatar" → opens `https://three.ws/create-selfie`-- Loading state: real skeleton shimmer (no fake loading spinner)-- Error state on API failure: shows real error message + retry button--## API endpoints to wire (all already exist or must exist — verify in `api/`)-- `GET /api/me` — session check-- `GET /api/avatars/mine` — user's avatars list-- `GET /api/avatars/featured` — featured avatars-- `GET /api/avatars/<id>/thumb` — thumbnail JPG--If any of these endpoints don't exist, create them in `api/` as real Vercel functions with real database queries — do not stub.--## Definition of Done-- Sign in flow works end-to-end from popup-- Real avatars from real API render in the grid-- Selecting an avatar in the popup immediately swaps the avatar on the current tab-- Speed slider live-updates the iframe via postMessage-- Toggle off removes the iframe from the tab-- No console errors in popup DevTools or content script--## Rules-Complete 100%. No stubs. No fake data. Wire every step end-to-end and verify in a real browser with the dev server running. If an API endpoint is missing, build it for real — do not mock.--<!-- AUTO:self-delete-on-complete -->-------## ✅ On completion — delete this file--This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:--```bash-git rm "tasks/walk/07-chrome-extension-popup-picker.md"-```--Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.diff --git a/vercel.json b/vercel.jsonindex fd0776f9f..ab2e112ad 100644--- a/vercel.json+++ b/vercel.json@@ -202,6 +202,13 @@},"continue": true},+ {+ "src": "/irl/?$",+ "headers": {+ "permissions-policy": "accelerometer=(self), autoplay=(self), camera=(self), display-capture=(), encrypted-media=(self), geolocation=(self), gyroscope=(self), magnetometer=(self), microphone=(), midi=(), payment=(self), serial=(), usb=(), xr-spatial-tracking=(self)"+ },+ "continue": true+ },{"src": "/(login|register|forgot-password|reset-password|account|settings|wallet|pay|paywall|vanity-wallet|eth-vanity|evm-wallet|dashboard|dashboard-next|dashboard-classic)(/.*)?$","headers": {@@ -1919,6 +1926,10 @@"src": "/api/pump/smart-money","dest": "/api/pump/smart-money.js"},+ {+ "src": "/api/pump/safety",+ "dest": "/api/pump/safety.js"+ },{"src": "/api/pump/check-three-balance","dest": "/api/pump/check-three-balance.js"@@ -3400,6 +3411,10 @@"src": "/legal/tos/?","dest": "/legal/tos.html"},+ {+ "src": "/extension/auth-callback/?",+ "dest": "/extension-auth-callback.html"+ },{"src": "/extension/privacy/?","dest": "/extension-privacy.html"