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: pump dashboard/visualizer and token widget updates, attestation and companion improvements
nirholasc9b33f27d51d
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2df1d835c..57d798798 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -14,6 +14,8 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **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]`+- **Live token card on the home page is streaming again** — The 'Live token · Pump.fun' card on the home page was stuck on 'Loading live token…' and falling back to 'Live feed unavailable right now.' It now picks a real trending pump.fun coin — complete with its logo and market cap — and streams its live buys and sells again. The same fix restores the trending coin grid on the Communities page. `[fix]`+- **On-chain agent reputation attestations are minting reliably again** — The background job that records agents' on-chain milestones — token graduations, fee claims, whale trades — had stopped running because it could only read its signing key in one specific format. Now it accepts the key in any standard Solana format, so those reputation events post to the chain again, and a misconfigured key skips cleanly instead of taking the whole monitor down. `[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]`@@ -21,6 +23,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Take the guided tour — a 3D guide walks you through every feature** — New to three.ws, or never sure what half the menus do? Press play on the new Guided Tour and a 3D avatar steps onto the page, walks across the real live site, and points at each feature in turn — a beam connects the guide to exactly what it's describing, a spotlight dims everything else, and it tells you what the feature does and how to use it. Every stop is narrated out loud and shown in a chat bubble above the guide's head, so you can listen, read along, or mute the voice. The tour runs as chapters — getting started, building an agent and giving it a body and voice, taking it on-chain with wallets and payments, the live showcases, and where to learn more — about half an hour end to end, and entirely paced by you: pause, skip ahead, step back, or scrub the progress bar anytime. Wander off to try something and the guide waits; press play and it walks you back to where you left off. Start it from the new Tour page or the Discover menu. (`/tour`) `[feature]`- **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]`+- **The walking guide now strolls on phones and tablets** — The corner walk companion only knew how to follow a mouse cursor, so on touch devices — with no cursor to chase — it stood frozen in place. On phones and tablets it now wanders on its own, ambling between headings and pausing to look around, so the walk actually walks. Its dismiss and 'choose avatar' buttons, previously revealed only on hover, are now always tappable on touch, and the 'tap me to walk the whole page' invite reads right for a finger instead of a click. `[fix]`- **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]`diff --git a/api/_lib/attest-event.js b/api/_lib/attest-event.jsindex cb5519185..c2fc40e36 100644--- a/api/_lib/attest-event.js+++ b/api/_lib/attest-event.js@@ -65,10 +65,73 @@ export function buildPayload({}}+/**+ * Decode a Solana secret key from any encoding used across the three.ws env,+ * synchronously (bs58 is statically imported here). Mirrors the async+ * decodeSecretKey() in solana-signers.js so the attester key works whether it+ * was provisioned as a Solana CLI JSON byte array, base64, or base58.+ * - JSON array of 64 (or 32) ints — `solana-keygen` keypair file contents+ * - base64 of the raw secret-key bytes+ * - base58 of the raw secret-key bytes+ * @param {string} secret+ * @returns {Uint8Array|null} 64/32-byte key, or null if it can't be decoded.+ */+export function decodeAttesterSecret(secret) {+ const raw = (secret || '').trim();+ if (!raw) return null;++ // JSON array form (Solana CLI keypair file contents).+ if (raw.startsWith('[')) {+ try {+ const arr = JSON.parse(raw);+ if (Array.isArray(arr) && (arr.length === 64 || arr.length === 32)) {+ return Uint8Array.from(arr);+ }+ } catch {+ /* fall through */+ }+ }++ // base64 form. Buffer.from is lenient, so validate the byte length and+ // require a clean round-trip to reject base58 strings that happen to+ // base64-decode to 64 bytes.+ try {+ const buf = Buffer.from(raw, 'base64');+ if (+ (buf.length === 64 || buf.length === 32) &&+ buf.toString('base64').replace(/=+$/, '') === raw.replace(/=+$/, '')+ ) {+ return new Uint8Array(buf);+ }+ } catch {+ /* fall through */+ }++ // base58 form.+ try {+ const bytes = bs58.decode(raw);+ if (bytes.length === 64 || bytes.length === 32) return Uint8Array.from(bytes);+ } catch {+ /* fall through */+ }++ return null;+}+export function loadAttesterKeypair() {const k = process.env.ATTEST_AGENT_SECRET_KEY;if (!k) throw Object.assign(new Error('ATTEST_AGENT_SECRET_KEY not configured'), { status: 500 });- return Keypair.fromSecretKey(bs58.decode(k));+ const bytes = decodeAttesterSecret(k);+ if (!bytes) {+ throw Object.assign(+ new Error(+ 'ATTEST_AGENT_SECRET_KEY is set but could not be decoded — expected a 64-byte ' ++ 'ed25519 secret key as a JSON byte array, base64, or base58 string.',+ ),+ { status: 500, code: 'attester_key_undecodable' },+ );+ }+ return Keypair.fromSecretKey(bytes);}function withTimeout(promise, ms, onTimeout) {diff --git a/api/cron/[name].js b/api/cron/[name].jsindex 711bb1784..5a0fe1432 100644--- a/api/cron/[name].js+++ b/api/cron/[name].js@@ -1097,7 +1097,22 @@ async function handlePumpfunMonitor(req, res) {limit ${PUMPFUN_MONITOR_MAX_PER_RUN}`;- const attester = loadAttesterKeypair();+ let attester;+ try {+ attester = loadAttesterKeypair();+ } catch (e) {+ // Key is present but undecodable (wrong encoding). Skip the attestation+ // work cleanly rather than 500-ing every run and marking the cron job as+ // failing — heartbeat + alerts above already ran. Surface the reason so+ // the misconfiguration is visible in the cron response/logs.+ return json(res, 200, {+ skipped: true,+ reason: e?.code === 'attester_key_undecodable' ? 'attester_key_undecodable' : 'attester_load_failed',+ detail: e?.message || String(e),+ heartbeat: true,+ alerts: alertReport,+ });+ }const report = {scanned: rows.length,minted: 0,diff --git a/api/pump/[action].js b/api/pump/[action].jsindex a91285ef4..5ff323061 100644--- a/api/pump/[action].js+++ b/api/pump/[action].js@@ -2445,9 +2445,9 @@ async function handleLaunches(req, res) {select pam.mint, pam.network, pam.name, pam.symbol, pam.buyback_bps,pam.metadata_uri, pam.quote_mint, pam.created_at,ai.id as agent_id, ai.name as agent_name,- ai.solana_address as agent_solana_address,- ai.solana_vanity_prefix as agent_solana_vanity_prefix,- ai.solana_vanity_suffix as agent_solana_vanity_suffix,+ ai.meta->>'solana_address' as agent_solana_address,+ ai.meta->>'solana_vanity_prefix' as agent_solana_vanity_prefix,+ ai.meta->>'solana_vanity_suffix' as agent_solana_vanity_suffix,a.thumbnail_key as avatar_thumbnail_key,a.visibility as avatar_visibility,oc.score as oracle_score, oc.tier as oracle_tier, oc.category as oracle_category@@ -2466,9 +2466,9 @@ async function handleLaunches(req, res) {select pam.mint, pam.network, pam.name, pam.symbol, pam.buyback_bps,pam.metadata_uri, pam.quote_mint, pam.created_at,ai.id as agent_id, ai.name as agent_name,- ai.solana_address as agent_solana_address,- ai.solana_vanity_prefix as agent_solana_vanity_prefix,- ai.solana_vanity_suffix as agent_solana_vanity_suffix,+ ai.meta->>'solana_address' as agent_solana_address,+ ai.meta->>'solana_vanity_prefix' as agent_solana_vanity_prefix,+ ai.meta->>'solana_vanity_suffix' as agent_solana_vanity_suffix,a.thumbnail_key as avatar_thumbnail_key,a.visibility as avatar_visibilityfrom pump_agent_mints pam@@ -2482,9 +2482,9 @@ async function handleLaunches(req, res) {select pam.mint, pam.network, pam.name, pam.symbol, pam.buyback_bps,pam.metadata_uri, pam.quote_mint, pam.created_at,ai.id as agent_id, ai.name as agent_name,- ai.solana_address as agent_solana_address,- ai.solana_vanity_prefix as agent_solana_vanity_prefix,- ai.solana_vanity_suffix as agent_solana_vanity_suffix,+ ai.meta->>'solana_address' as agent_solana_address,+ ai.meta->>'solana_vanity_prefix' as agent_solana_vanity_prefix,+ ai.meta->>'solana_vanity_suffix' as agent_solana_vanity_suffix,a.thumbnail_key as avatar_thumbnail_key,a.visibility as avatar_visibilityfrom pump_agent_mints pamdiff --git a/api/pump/launch-detail.js b/api/pump/launch-detail.jsindex c495e1835..d0ce774d6 100644--- a/api/pump/launch-detail.js+++ b/api/pump/launch-detail.js@@ -155,9 +155,9 @@ async function buildDetail(mint, network) {pam.sharing_config, pam.created_at,ai.id as agent_id, ai.name as agent_name, ai.description as agent_description,ai.is_public as agent_public,- ai.solana_address as agent_solana_address,- ai.solana_vanity_prefix as agent_solana_vanity_prefix,- ai.solana_vanity_suffix as agent_solana_vanity_suffix,+ ai.meta->>'solana_address' as agent_solana_address,+ ai.meta->>'solana_vanity_prefix' as agent_solana_vanity_prefix,+ ai.meta->>'solana_vanity_suffix' as agent_solana_vanity_suffix,a.thumbnail_key as avatar_thumbnail_key, a.visibility as avatar_visibilityfrom pump_agent_mints pamleft join agent_identities ai on ai.id = pam.agent_id and ai.deleted_at is nulldiff --git a/data/changelog.json b/data/changelog.jsonindex 9ed73ee60..17c67bebb 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,22 @@{"$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": "The walking guide now strolls on phones and tablets",+ "summary": "The corner walk companion only knew how to follow a mouse cursor, so on touch devices — with no cursor to chase — it stood frozen in place. On phones and tablets it now wanders on its own, ambling between headings and pausing to look around, so the walk actually walks. Its dismiss and 'choose avatar' buttons, previously revealed only on hover, are now always tappable on touch, and the 'tap me to walk the whole page' invite reads right for a finger instead of a click.",+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-06-20",+ "title": "On-chain agent reputation attestations are minting reliably again",+ "summary": "The background job that records agents' on-chain milestones — token graduations, fee claims, whale trades — had stopped running because it could only read its signing key in one specific format. Now it accepts the key in any standard Solana format, so those reputation events post to the chain again, and a misconfigured key skips cleanly instead of taking the whole monitor down.",+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-20","title": "Live token card on the home page is streaming again",diff --git a/extensions/walk-avatar/store-assets/marquee-1280x800.png b/extensions/walk-avatar/store-assets/marquee-1280x800.pngindex b5f1fddd9..fbcc5ca44 100644Binary files a/extensions/walk-avatar/store-assets/marquee-1280x800.png and b/extensions/walk-avatar/store-assets/marquee-1280x800.png differdiff --git a/extensions/walk-avatar/store-assets/screenshot-1.png b/extensions/walk-avatar/store-assets/screenshot-1.pngindex b23532517..ff8022252 100644Binary files a/extensions/walk-avatar/store-assets/screenshot-1.png and b/extensions/walk-avatar/store-assets/screenshot-1.png differdiff --git a/extensions/walk-avatar/store-assets/screenshot-2.png b/extensions/walk-avatar/store-assets/screenshot-2.pngindex fee20a3f1..f33220cf6 100644Binary files a/extensions/walk-avatar/store-assets/screenshot-2.png and b/extensions/walk-avatar/store-assets/screenshot-2.png differdiff --git a/extensions/walk-avatar/store-assets/screenshot-4.png b/extensions/walk-avatar/store-assets/screenshot-4.pngindex e3c558781..008b15e28 100644Binary files a/extensions/walk-avatar/store-assets/screenshot-4.png and b/extensions/walk-avatar/store-assets/screenshot-4.png differdiff --git a/extensions/walk-avatar/store-assets/screenshot-5.png b/extensions/walk-avatar/store-assets/screenshot-5.pngindex b8fc302cc..95ad2b760 100644Binary files a/extensions/walk-avatar/store-assets/screenshot-5.png and b/extensions/walk-avatar/store-assets/screenshot-5.png differdiff --git a/pages/pump-dashboard.html b/pages/pump-dashboard.htmlindex 463161d6a..d73f1f88e 100644--- a/pages/pump-dashboard.html+++ b/pages/pump-dashboard.html@@ -4182,11 +4182,33 @@// ── Modals ───────────────────────────────────────────────────function openModal(id) {- $(id)?.classList.add('is-open');+ const backdrop = $(id);+ if (!backdrop) return;+ backdrop.classList.add('is-open');+ const focusable =+ backdrop.querySelector('input, select, textarea') ||+ backdrop.querySelector('button');+ focusable?.focus();}function closeModal(id) {$(id)?.classList.remove('is-open');}+ // Escape closes the topmost open modal; backdrop-click closes that modal.+ // Wired once at init via initModalDismiss().+ function initModalDismiss() {+ document.addEventListener('keydown', (e) => {+ if (e.key !== 'Escape') return;+ const open = document.querySelector('.pd-modal-backdrop.is-open');+ if (open) closeModal(open.id);+ });+ document+ .querySelectorAll('.pd-modal-backdrop')+ .forEach((backdrop) => {+ backdrop.addEventListener('click', (e) => {+ if (e.target === backdrop) closeModal(backdrop.id);+ });+ });+ }// ── Uptime ───────────────────────────────────────────────────@@ -5107,6 +5129,9 @@loadApiKeys();});+ // Modal dismissal (Escape + backdrop click), wired once+ initModalDismiss();+// Boot the data flowsconnectApi();connectWebSocket();diff --git a/pages/pump-live.html b/pages/pump-live.htmlindex 1cd4726fe..780003e57 100644--- a/pages/pump-live.html+++ b/pages/pump-live.html@@ -844,6 +844,12 @@const links = document.createElement('div');links.className = 'token-links';+ // On-platform coin profile — keeps traders inside three.ws instead of+ // bouncing straight to pump.fun/solscan.+ const profileLink = document.createElement('a');+ profileLink.href = '/launches/' + encodeURIComponent(token.mint);+ profileLink.textContent = 'Profile';+ profileLink.setAttribute('aria-label', `Open the three.ws profile for ${token.symbol || token.name || 'this coin'}`);const pumpLink = document.createElement('a');pumpLink.href = 'https://pump.fun/' + encodeURIComponent(token.mint);pumpLink.target = '_blank';@@ -874,7 +880,7 @@const oracleBadge = document.createElement('span');oracleBadge.className = 'pl-oracle-badge';oracleBadge.dataset.oracleMint = token.mint;- links.append(pumpLink, solscanLink, watchBtn, oracleBadge);+ links.append(profileLink, pumpLink, solscanLink, watchBtn, oracleBadge);info.append(nameEl, symEl, mcapEl, links);card.append(img, info);diff --git a/pages/pump-visualizer.html b/pages/pump-visualizer.htmlindex 69e2ae8d7..690e36d32 100644--- a/pages/pump-visualizer.html+++ b/pages/pump-visualizer.html@@ -486,6 +486,7 @@color: var(--vz-text);}.vz-legend li:hover { background: rgba(255,255,255,0.04); }+ .vz-legend li:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }.vz-legend li.is-selected { background: var(--accent-soft); }.vz-legend li .rank { color: var(--vz-muted); width: 26px; font-size: 10px; font-variant-numeric: tabular-nums; }.vz-legend li .rank.age { color: var(--vz-red); font-weight: 600; }@@ -1856,7 +1857,16 @@li.appendChild(pill);}+ li.tabIndex = 0;+ li.setAttribute('role', 'button');+ li.setAttribute('aria-label', 'View details for ' + (token.name || 'Unknown') + (token.symbol ? ' ($' + token.symbol + ')' : ''));li.addEventListener('click', () => focusToken(token));+ li.addEventListener('keydown', (e) => {+ if (e.key === 'Enter' || e.key === ' ') {+ e.preventDefault();+ focusToken(token);+ }+ });legendList.appendChild(li);});legendEl.hidden = false;diff --git a/public/changelog.json b/public/changelog.jsonindex 2ffc924a3..f1df2829f 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-20T05:35:12.277Z",+ "generated_at": "2026-06-20T06:46:51.241Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -89,6 +89,26 @@"fix"]},+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "Live token card on the home page is streaming again",+ "summary": "The 'Live token · Pump.fun' card on the home page was stuck on 'Loading live token…' and falling back to 'Live feed unavailable right now.' It now picks a real trending pump.fun coin — complete with its logo and market cap — and streams its live buys and sells again. The same fix restores the trending coin grid on the Communities page.",+ "link": null,+ "tags": [+ "fix"+ ]+ },+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "On-chain agent reputation attestations are minting reliably again",+ "summary": "The background job that records agents' on-chain milestones — token graduations, fee claims, whale trades — had stopped running because it could only read its signing key in one specific format. Now it accepts the key in any standard Solana format, so those reputation events post to the chain again, and a misconfigured key skips cleanly instead of taking the whole monitor down.",+ "link": null,+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-20","type": "update",@@ -163,6 +183,16 @@"improvement"]},+ {+ "date": "2026-06-20",+ "type": "update",+ "title": "The walking guide now strolls on phones and tablets",+ "summary": "The corner walk companion only knew how to follow a mouse cursor, so on touch devices — with no cursor to chase — it stood frozen in place. On phones and tablets it now wanders on its own, ambling between headings and pausing to look around, so the walk actually walks. Its dismiss and 'choose avatar' buttons, previously revealed only on hover, are now always tappable on touch, and the 'tap me to walk the whole page' invite reads right for a finger instead of a click.",+ "link": null,+ "tags": [+ "fix"+ ]+ },{"date": "2026-06-20","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 2301fa60e..387ecf15d 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -70,6 +70,22 @@<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>Live token card on the home page is streaming again</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-20:Live token card on the home page is streaming again</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The 'Live token · Pump.fun' card on the home page was stuck on 'Loading live token…' and falling back to 'Live feed unavailable right now.' It now picks a real trending pump.fun coin — complete with its logo and market cap — and streams its live buys and sells again. The same fix restores the trending coin grid on the Communities page.</description>+ </item>+ <item>+ <title>On-chain agent reputation attestations are minting reliably again</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-20:On-chain agent reputation attestations are minting reliably again</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The background job that records agents' on-chain milestones — token graduations, fee claims, whale trades — had stopped running because it could only read its signing key in one specific format. Now it accepts the key in any standard Solana format, so those reputation events post to the chain again, and a misconfigured key skips cleanly instead of taking the whole monitor down.</description>+ </item><item><title>Pick and switch avatars from the Walk Avatar extension popup</title><link>https://three.ws/changelog</link>@@ -126,6 +142,14 @@<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>The walking guide now strolls on phones and tablets</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-20:The walking guide now strolls on phones and tablets</guid>+ <pubDate>Sat, 20 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The corner walk companion only knew how to follow a mouse cursor, so on touch devices — with no cursor to chase — it stood frozen in place. On phones and tablets it now wanders on its own, ambling between headings and pausing to look around, so the walk actually walks. Its dismiss and 'choose avatar' buttons, previously revealed only on hover, are now always tappable on touch, and the 'tap me to walk the whole page' invite reads right for a finger instead of a click.</description>+ </item><item><title>Walk Avatar extension gets a full settings page</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex b69b0d199..9b8012d3f 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-20T05:35:12.182Z",+ "generated_at": "2026-06-20T06:46:51.221Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/pumpfun.html b/public/pumpfun.htmlindex 03b7ad587..e1b5a60c3 100644--- a/public/pumpfun.html+++ b/public/pumpfun.html@@ -494,7 +494,7 @@<div id="first-claims"><div class="empty">Loading first-time claims…</div></div></div><div id="feed-wrap">- <h2><span id="feed-title">Live feed</span><a id="helius-pill" class="helius-pill" href="https://helius.dev" target="_blank" rel="noopener" title="Real-time Solana data via Helius webhooks"><span class="helius-dot" aria-hidden="true"></span><span id="helius-count" class="helius-count">0</span>Powered by Helius</a></h2>+ <h2><span id="feed-title">Live feed</span><a id="helius-pill" class="helius-pill" href="https://pumpportal.fun" target="_blank" rel="noopener" title="Real-time pump.fun data via the PumpPortal WebSocket — count is events received this session"><span class="helius-dot" aria-hidden="true"></span><span id="helius-count" class="helius-count">0</span>Powered by PumpPortal</a></h2><button type="button" class="feed-jump" id="feed-jump" data-visible="false" aria-live="polite">↑ <span id="feed-jump-count">0</span> new</button><div id="feed"><div class="empty">Waiting for events…</div></div></div>@@ -1174,6 +1174,7 @@count: 0,timer: null,};+ let quietTimer = null; // fires when a live feed has had no events for a whileconst seen = new Set(); // seen mints in this session// ── Avatar viewer ────────────────────────────────────────────────────@@ -1491,6 +1492,7 @@esBackoff = 1000;esConsecutiveFails = 0;setStatus('live', 'live');+ scheduleQuiet();});const ingest = (sseType) => (msg) => {let ev; try { ev = JSON.parse(msg.data); } catch { return; }@@ -1516,10 +1518,6 @@}function handleEvent(evt) {- if (evt.type === 'meta') {- updateHeliusPill(evt);- return;- }if (seen.has(evt.mint)) return;if (evt.type === 'mint') seen.add(evt.mint);@@ -1533,6 +1531,7 @@feed.pending.push(card);updateFeedJump();}+ markActivity();narrateEvent(evt);}@@ -1867,16 +1866,18 @@return (s || '').replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/"/g, '"').replace(/'/g, ''');}function shortenAddress(a) { return a ? a.slice(0, 4) + '…' + a.slice(-4) : ''; }- function updateHeliusPill(data) {- if (data.active_ws < 2) {- heliusPill.el.title = `Real-time Solana data via Helius webhooks. ${data.active_ws} listener.`;- heliusPill.el.href = 'https://helius.dev';- heliusPill.el.target = '_blank';- } else {- heliusPill.el.title = `Real-time Solana data via Helius webhooks. ${data.active_ws} listeners. You rock!`;- heliusPill.el.href = 'https://youtu.be/dQw4w9WgXcQ';- heliusPill.el.target = '_blank';- }+ // Real per-session event counter: every event we actually render bumps the+ // pill. (The feed source is PumpPortal, which does not emit a listener-count+ // `meta` event, so the count reflects throughput the viewer can see.) Also+ // drives the quiet state — a connected feed with no recent activity.+ const QUIET_AFTER_MS = 45_000;+ function scheduleQuiet() {+ clearTimeout(quietTimer);+ quietTimer = setTimeout(() => {+ if (status.pill.dataset.state === 'live') setStatus('quiet', 'live · quiet');+ }, QUIET_AFTER_MS);+ }+ function markActivity() {heliusPill.count++;heliusPill.countEl.textContent = heliusPill.count;heliusPill.el.dataset.count = 'active';@@ -1884,6 +1885,9 @@heliusPill.timer = setTimeout(() => {heliusPill.el.dataset.count = '';}, 1200);+ // An event after a quiet stretch means we're live again.+ if (status.pill.dataset.state === 'quiet') setStatus('live', 'live');+ scheduleQuiet();}// Build a clean, shareable URL: keep only the public presentation params// (filters, mood, narration, avatar) and drop transient/private ones suchdiff --git a/scripts/extension-screenshots.mjs b/scripts/extension-screenshots.mjsindex a6f3375aa..1714ae292 100644--- a/scripts/extension-screenshots.mjs+++ b/scripts/extension-screenshots.mjs@@ -234,7 +234,7 @@ async function routeApi(context, avatars, allowOrigin) {headers: { 'access-control-allow-origin': origin, 'access-control-allow-credentials': 'true' },body: JSON.stringify(obj),});- if (/\/api\/avatars\/(mine|featured)\b/.test(url) || /\/api\/avatars\?/.test(url)) return reply({ avatars });+ if (/\/api\/avatars(\/(mine|featured|public))?(\?|$)/.test(url)) return reply({ avatars });if (/\/api\/tts\/voices\b/.test(url)) return reply({ enabled: true, default: DEFAULT_VOICE, voices: TTS_VOICES, providers: { nvidia: true, openai: true } });if (/\/api\/(me|threews\/me)\b/.test(url)) return reply({ user: { handle: '@you', username: 'you' } });return route.continue();diff --git a/src/agent-detail.js b/src/agent-detail.jsindex 8dea61e39..cea18dd36 100644--- a/src/agent-detail.js+++ b/src/agent-detail.js@@ -182,16 +182,23 @@ async function renderLaunchHistory(container, agent) {);for (const coin of coins) {const isDevnet = coin.network === 'devnet';- const href = isDevnet- ? `https://explorer.solana.com/address/${coin.mint}?cluster=devnet`- : `https://pump.fun/${coin.mint}`;- const row = el('a', {- class: 'ad-launch-row',- href,- target: '_blank',- rel: 'noopener noreferrer',- 'aria-label': `${coin.symbol || coin.name || 'coin'} on ${isDevnet ? 'Solana Explorer' : 'pump.fun'}`,- });+ // Keep traders on-platform: each launched coin links to its three.ws+ // coin profile (/launches/<mint>), matching the launches-feed cards.+ // Devnet mints have no market page, so they still deep-link to the+ // explorer in a new tab.+ const row = isDevnet+ ? el('a', {+ class: 'ad-launch-row',+ href: `https://explorer.solana.com/address/${coin.mint}?cluster=devnet`,+ target: '_blank',+ rel: 'noopener noreferrer',+ 'aria-label': `${coin.symbol || coin.name || 'coin'} on Solana Explorer`,+ })+ : el('a', {+ class: 'ad-launch-row',+ href: `/launches/${coin.mint}`,+ 'aria-label': `${coin.symbol || coin.name || 'coin'} on three.ws`,+ });box.appendChild(row);if (isDevnet) {// Devnet mints have no pump.fun market data — render the static row.diff --git a/src/app.js b/src/app.jsindex 703a09402..3c05e11f1 100644--- a/src/app.js+++ b/src/app.js@@ -470,7 +470,7 @@ class App {}const model = options.model || '/avatars/cz.glb';- const resolvedModel = isDecentralizedURI(model) ? resolveURI(model) : model;+ const resolvedModel = resolveModelUrl(model);const isDefaultCz = !options.model;const loadPromise = this.view(resolvedModel, '', new Map());if (isDefaultCz) {@@ -1333,7 +1333,7 @@ class App {document.querySelector('header')?.style.setProperty('display', 'none');}- const resolved = isDecentralizedURI(modelUrl) ? resolveURI(modelUrl) : modelUrl;+ const resolved = resolveModelUrl(modelUrl);this.view(resolved, '', new Map());// Apply post-create brand bits once viewer exists.@@ -2395,7 +2395,7 @@ class App {return;}- const resolvedGlb = isDecentralizedURI(glbUri) ? resolveURI(glbUri) : glbUri;+ const resolvedGlb = resolveModelUrl(glbUri);await this.view(resolvedGlb, '', new Map());} catch (err) {log.warn('[3d-agent] on-chain load failed:', err);diff --git a/src/avatar-drop.js b/src/avatar-drop.jsindex e5560cc7e..eddc3086b 100644--- a/src/avatar-drop.js+++ b/src/avatar-drop.js@@ -16,6 +16,7 @@ import {import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';import { reserveWebGLContext } from './webgl-budget.js';import { log } from './shared/log.js';+import { resolveDevR2Url } from './shared/dev-r2-proxy.js';export function initAvatarDrop(sectionEl) {const canvas = sectionEl.querySelector('#drop-canvas');@@ -342,17 +343,6 @@ export function initAvatarDrop(sectionEl) {);}- // Resolve GLB URL for dev proxy- function resolveGlb(url) {- if (!url) return url;- const isDev = location.hostname === 'localhost'- || location.hostname.includes('.github.dev')- || location.hostname.includes('.gitpod.io');- if (isDev && url.includes('r2.dev')) {- try { return '/r2-proxy' + new URL(url).pathname; } catch (_) {}- }- return url;- }const AVATAR_ID = 'bacff13e-b64b-4ac0-860d-44f0168ad23b';const BOOT_TIMEOUT_MS = 12_000;@@ -366,7 +356,7 @@ export function initAvatarDrop(sectionEl) {timedFetch(`${location.origin}/api/avatars/${AVATAR_ID}`).then(r => r.json()).then(d => {- const glb = resolveGlb(d.avatar?.model_url || d.avatar?.url);+ const glb = resolveDevR2Url(d.avatar?.model_url || d.avatar?.url);if (!glb) return;new GLTFLoader().load(glb, gltf => {diff --git a/src/game/coin-buy.css b/src/game/coin-buy.cssindex 1954c62b4..035225f67 100644--- a/src/game/coin-buy.css+++ b/src/game/coin-buy.css@@ -75,6 +75,7 @@cursor: pointer; font-size: 13px; line-height: 1; transition: border-color 0.12s ease, color 0.12s ease;}.cc-buy-x:hover { border-color: var(--cc-edge-hi); color: var(--cc-text); }+.cc-buy-x:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }/* Buy / Sell direction toggle. */.cc-buy-tabs {@@ -114,6 +115,7 @@cursor: pointer; transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;}.cc-buy-preset:hover { border-color: var(--cc-edge-hi); color: var(--cc-text); }+.cc-buy-preset:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }.cc-buy-preset.cc-on { background: rgba(255, 255, 255, 0.08); border-color: var(--cc-edge-hi); color: var(--cc-text); }/* Wallet balance / holdings line under the amount (USDC buys + all sells). */@@ -152,6 +154,7 @@font-variant-numeric: tabular-nums; cursor: pointer; transition: border-color 0.12s ease, color 0.12s ease;}.cc-buy-slip-btn:hover { border-color: var(--cc-edge-hi); color: var(--cc-text); }+.cc-buy-slip-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }.cc-buy-slip-btn.cc-on { border-color: var(--cc-edge-hi); color: var(--cc-text); background: rgba(255, 255, 255, 0.06); }.cc-buy-wallet {@@ -181,6 +184,7 @@.cc-buy-status[data-kind="err"] { color: #d88a8a; }.cc-buy-status a { color: inherit; text-decoration: underline; }.cc-buy-link { background: none; border: none; padding: 0; color: var(--cc-text); text-decoration: underline; cursor: pointer; font: inherit; }+.cc-buy-link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }.cc-buy-pumplink {display: block; margin-top: 14px; text-align: center;@@ -188,3 +192,4 @@transition: color 0.12s ease;}.cc-buy-pumplink:hover { color: var(--cc-text); }+.cc-buy-pumplink:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }diff --git a/src/launch-detail.js b/src/launch-detail.jsindex 5b05cb7c7..dba63de59 100644--- a/src/launch-detail.js+++ b/src/launch-detail.js@@ -1043,18 +1043,24 @@ function renderEconomics() {body.appendChild(el('div', { class: 'ld-burn-feed' }, [el('span', { class: 'ld-burn-feed-title', text: 'Recent burns' }),- ...feed.map((b) =>- el('a', {- class: 'ld-burn-row',- href: b.tx_signature ? `https://solscan.io/tx/${b.tx_signature}` : '#',- target: '_blank',- rel: 'noopener noreferrer',- }, [+ ...feed.map((b) => {+ const cells = [el('span', { class: 'ld-burn-amt', text: `🔥 ${compact(Number(b.burn_amount || 0) / 1e6)}` }),el('span', { class: 'ld-burn-time', text: relTime(b.created_at) }),- el('span', { class: 'ld-burn-link', text: 'tx ↗' }),- ]),- ),+ ];+ // Only render a clickable tx link when the burn has a signature —+ // otherwise show a plain, non-linking row (no dead href="#").+ if (b.tx_signature) {+ cells.push(el('span', { class: 'ld-burn-link', text: 'tx ↗' }));+ return el('a', {+ class: 'ld-burn-row',+ href: `https://solscan.io/tx/${b.tx_signature}`,+ target: '_blank',+ rel: 'noopener noreferrer',+ }, cells);+ }+ return el('div', { class: 'ld-burn-row' }, cells);+ }),]),);}diff --git a/src/marketplace-detail.js b/src/marketplace-detail.jsindex 9c9f5014d..45ff1d537 100644--- a/src/marketplace-detail.js+++ b/src/marketplace-detail.js@@ -15,6 +15,7 @@ import { coinChipHTML } from './shared/agent-coin.js';import { walletChipHTML } from './shared/agent-wallet-chip.js';import { agentAvatarGlb, hasCustomAvatar, seeInWorldHref } from './shared/agent-3d.js';import { log } from './shared/log.js';+import { resolveDevR2Url } from './shared/dev-r2-proxy.js';const API = '/api';const $ = (id) => document.getElementById(id);@@ -91,25 +92,6 @@ export function renderDetailAvatar(a) {let stageVisibilityObserver = null;let stageFullscreenBound = false;-// R2's public bucket only allows the three.ws origin — in dev (localhost /-// Codespaces) GLB fetches fail CORS, so route them through Vite's /r2-proxy-// (same workaround as avatar-drop.js). No-op in production.-function resolveStageGlb(url) {- if (!url) return url;- const isDev =- location.hostname === 'localhost' ||- location.hostname.includes('.github.dev') ||- location.hostname.includes('.gitpod.io');- if (isDev && url.includes('r2.dev')) {- try {- return '/r2-proxy' + new URL(url).pathname;- } catch {- /* malformed URL — use as-is */- }- }- return url;-}-export function renderDetailModelStage(a) {const card = $('d-model-card');const stage = $('d-model-stage');@@ -132,7 +114,7 @@ export function renderDetailModelStage(a) {}const mv = document.createElement('model-viewer');- mv.setAttribute('src', resolveStageGlb(glbUrl));+ mv.setAttribute('src', resolveDevR2Url(glbUrl));mv.setAttribute('alt', `${a.name || 'Agent'} — 3D model`);mv.setAttribute('camera-controls', '');mv.setAttribute('auto-rotate', '');diff --git a/src/pump/agent-token-widget.js b/src/pump/agent-token-widget.jsindex 01d056e16..08f84c03c 100644--- a/src/pump/agent-token-widget.js+++ b/src/pump/agent-token-widget.js@@ -429,7 +429,7 @@ export class AgentTokenWidget {_renderEmpty() {const ownerCta = this.isOwner- ? `<div style="margin-top:0.7rem"><a href="/dashboard/pump-launch?agent=${this.agentId}" class="atok-btn atok-btn-primary" style="text-decoration:none;display:inline-block">Launch $AGENT →</a></div>`+ ? `<div style="margin-top:0.7rem"><a href="/launch?agent=${this.agentId}" class="atok-btn atok-btn-primary" style="text-decoration:none;display:inline-block">Launch $AGENT →</a></div>`: '';this.mount.innerHTML = `<div class="atok">diff --git a/src/pump/launch-token-modal.js b/src/pump/launch-token-modal.jsindex f430d49f3..5c9e28f16 100644--- a/src/pump/launch-token-modal.js+++ b/src/pump/launch-token-modal.js@@ -127,6 +127,7 @@ export class LaunchTokenModal {this._overlay = null;this._chart = null;this._keyHandler = null;+ this._prevActive = null;this._solPriceUsd = null;this._deployBusy = false;}@@ -182,6 +183,8 @@ export class LaunchTokenModal {open() {if (this._overlay) return;+ this._prevActive =+ document.activeElement instanceof HTMLElement ? document.activeElement : null;this._injectCss();this._fetchSolPrice();@@ -192,13 +195,43 @@ export class LaunchTokenModal {el.addEventListener('click', (e) => {if (e.target === el) this._close();});+ // Focus trap: Escape closes; Tab/Shift+Tab cycle within the dialog so+ // keyboard and screen-reader users can't tab out behind the overlay.this._keyHandler = (e) => {- if (e.key === 'Escape') this._close();+ if (e.key === 'Escape') { this._close(); return; }+ if (e.key !== 'Tab') return;+ const items = this._focusable();+ if (items.length === 0) return;+ const first = items[0], last = items[items.length - 1];+ const active = document.activeElement;+ if (e.shiftKey && (active === first || !el.contains(active))) {+ e.preventDefault(); last.focus();+ } else if (!e.shiftKey && (active === last || !el.contains(active))) {+ e.preventDefault(); first.focus();+ }};window.addEventListener('keydown', this._keyHandler);requestAnimationFrame(() => el.classList.add('ltm-open'));if (this._needsDeploy) this._renderStep0();else this._renderStep1();+ this._focusInitial();+ }++ /** All focusable controls inside the dialog, in DOM order. */+ _focusable() {+ if (!this._overlay) return [];+ return Array.from(+ this._overlay.querySelectorAll(+ 'a[href], button:not([disabled]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), [tabindex]:not([tabindex="-1"])',+ ),+ ).filter((el) => el.offsetParent !== null || el.getClientRects().length > 0);+ }++ /** Move focus into the dialog on open — close button, else first control. */+ _focusInitial() {+ const close = this._overlay?.querySelector('.ltm-close');+ const target = close || this._focusable()[0];+ target?.focus();}_close() {@@ -215,6 +248,10 @@ export class LaunchTokenModal {window.removeEventListener('keydown', this._keyHandler);this._keyHandler = null;}+ if (this._prevActive && this._prevActive.isConnected) {+ this._prevActive.focus();+ }+ this._prevActive = null;}_stepDots() {diff --git a/src/pump/pump-modals.js b/src/pump/pump-modals.jsindex a19f58803..b1f0c9694 100644--- a/src/pump/pump-modals.js+++ b/src/pump/pump-modals.js@@ -1,5 +1,5 @@/**- * Pump.fun modals: pay, governance, launch wizard, withdraw confirm.+ * Pump.fun modals: pay, governance, launch wizard.** Mounted once per page via mountPumpModals(). Listens on window CustomEvents* dispatched by the AgentTokenWidget (pump-pay-open, pump-governance-open,@@ -39,6 +39,9 @@ const M_STYLES = `color: #fff; font-size: 0.9rem; font-family: inherit;}.pmodal input[type="range"] { width: 100%; accent-color: #a4f0bc; }+.pmodal input:focus-visible, .pmodal select:focus-visible, .pmodal textarea:focus-visible {+ outline: 2px solid #fff; outline-offset: 2px;+}.pmodal-slider-label {display: flex; justify-content: space-between; font-size: 0.78rem;color: rgba(255,255,255,0.6); margin-top: 0.4rem;@@ -51,6 +54,7 @@ const M_STYLES = `color: rgba(255,255,255,0.7); font-size: 0.84rem; font-weight: 600; transition: 0.15s;}.pmodal-quote-opt:hover { background: rgba(255,255,255,0.08); }+.pmodal-quote-opt:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }.pmodal-quote-opt.active {background: rgba(120,200,140,0.18); border-color: rgba(120,200,140,0.4); color: #d8f5e2;}@@ -61,6 +65,7 @@ const M_STYLES = `color: rgba(255,255,255,0.85); font-size: 0.86rem; transition: 0.15s;}.pmodal-btn:hover { background: rgba(255,255,255,0.08); }+.pmodal-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }.pmodal-btn-primary {background: rgba(120,200,140,0.18); border-color: rgba(120,200,140,0.32); color: #d8f5e2;}@@ -114,12 +119,52 @@ function openModal() {back.className = 'pmodal-back';const inner = document.createElement('div');inner.className = 'pmodal';+ inner.setAttribute('role', 'dialog');+ inner.setAttribute('aria-modal', 'true');back.appendChild(inner);document.body.appendChild(back);back.addEventListener('click', (e) => {if (e.target === back) close();});++ const FOCUSABLE = 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';+ function focusables() {+ return Array.from(inner.querySelectorAll(FOCUSABLE)).filter(+ (el) => el.offsetParent !== null || el === document.activeElement,+ );+ }+ function onKeydown(e) {+ if (e.key === 'Escape') {+ e.preventDefault();+ close();+ return;+ }+ if (e.key !== 'Tab') return;+ const items = focusables();+ if (!items.length) return;+ const first = items[0];+ const last = items[items.length - 1];+ if (e.shiftKey && document.activeElement === first) {+ e.preventDefault();+ last.focus();+ } else if (!e.shiftKey && document.activeElement === last) {+ e.preventDefault();+ first.focus();+ }+ }+ document.addEventListener('keydown', onKeydown, true);++ // Focus the first input, else the first button, inside the modal. Callers+ // populate inner.innerHTML synchronously after openModal() returns, so defer+ // to the next frame to focus a control that actually exists.+ requestAnimationFrame(() => {+ if (!inner.isConnected) return;+ const firstField = inner.querySelector('input, select, textarea') || inner.querySelector('button');+ if (firstField) firstField.focus();+ });+function close() {+ document.removeEventListener('keydown', onKeydown, true);if (back.parentNode) back.parentNode.removeChild(back);}return { back, inner, close };diff --git a/tests/api/pumpfun-monitor.test.js b/tests/api/pumpfun-monitor.test.jsindex d8a459d51..230d2e5b5 100644--- a/tests/api/pumpfun-monitor.test.js+++ b/tests/api/pumpfun-monitor.test.js@@ -1,7 +1,10 @@-import { describe, it, expect } from 'vitest';+import { describe, it, expect, afterEach } from 'vitest';++import bs58 from 'bs58';+import { Keypair } from '@solana/web3.js';import { detectEvents } from '../../api/cron/[name].js';-import { deriveEventId } from '../../api/_lib/attest-event.js';+import { deriveEventId, decodeAttesterSecret, loadAttesterKeypair } from '../../api/_lib/attest-event.js';const baseRow = {mint_id: 'mint-uuid',@@ -90,3 +93,75 @@ describe('deriveEventId', () => {expect(a).not.toBe(b);});});++describe('decodeAttesterSecret', () => {+ // A real, deterministic ed25519 keypair to encode across formats.+ const kp = Keypair.fromSeed(new Uint8Array(32).fill(7));+ const secret = kp.secretKey; // 64 bytes+ const expectedPubkey = kp.publicKey.toBase58();++ it('decodes a base58 secret key (the historical format)', () => {+ const bytes = decodeAttesterSecret(bs58.encode(secret));+ expect(bytes).toBeInstanceOf(Uint8Array);+ expect(Keypair.fromSecretKey(bytes).publicKey.toBase58()).toBe(expectedPubkey);+ });++ it('decodes a Solana CLI JSON byte-array secret key', () => {+ const bytes = decodeAttesterSecret(JSON.stringify(Array.from(secret)));+ expect(Keypair.fromSecretKey(bytes).publicKey.toBase58()).toBe(expectedPubkey);+ });++ it('decodes a JSON byte-array with surrounding whitespace', () => {+ const bytes = decodeAttesterSecret(` ${JSON.stringify(Array.from(secret))}\n`);+ expect(Keypair.fromSecretKey(bytes).publicKey.toBase58()).toBe(expectedPubkey);+ });++ it('decodes a base64 secret key', () => {+ const bytes = decodeAttesterSecret(Buffer.from(secret).toString('base64'));+ expect(Keypair.fromSecretKey(bytes).publicKey.toBase58()).toBe(expectedPubkey);+ });++ it('returns null for empty / missing input', () => {+ expect(decodeAttesterSecret('')).toBeNull();+ expect(decodeAttesterSecret(null)).toBeNull();+ expect(decodeAttesterSecret(' ')).toBeNull();+ });++ it('returns null for an undecodable string', () => {+ expect(decodeAttesterSecret('not-a-real-key-!@#$')).toBeNull();+ });++ it('returns null for a wrong-length byte array', () => {+ expect(decodeAttesterSecret(JSON.stringify([1, 2, 3]))).toBeNull();+ });+});++describe('loadAttesterKeypair', () => {+ const kp = Keypair.fromSeed(new Uint8Array(32).fill(9));+ const original = process.env.ATTEST_AGENT_SECRET_KEY;++ afterEach(() => {+ if (original === undefined) delete process.env.ATTEST_AGENT_SECRET_KEY;+ else process.env.ATTEST_AGENT_SECRET_KEY = original;+ });++ it('loads a JSON byte-array key from env (the format that caused the crash)', () => {+ process.env.ATTEST_AGENT_SECRET_KEY = JSON.stringify(Array.from(kp.secretKey));+ expect(loadAttesterKeypair().publicKey.toBase58()).toBe(kp.publicKey.toBase58());+ });++ it('throws a typed error when the key is set but undecodable', () => {+ process.env.ATTEST_AGENT_SECRET_KEY = 'not-base58-!@#';+ expect(() => loadAttesterKeypair()).toThrowError(/could not be decoded/);+ try {+ loadAttesterKeypair();+ } catch (e) {+ expect(e.code).toBe('attester_key_undecodable');+ }+ });++ it('throws when the key is missing', () => {+ delete process.env.ATTEST_AGENT_SECRET_KEY;+ expect(() => loadAttesterKeypair()).toThrowError(/not configured/);+ });+});diff --git a/walk-sdk/src/companion.js b/walk-sdk/src/companion.jsindex 00c9beada..4d83fffa1 100644--- a/walk-sdk/src/companion.js+++ b/walk-sdk/src/companion.js@@ -103,6 +103,13 @@ class WalkCompanion {this._cursorMovedAt = 0;this._yaw = 0;this._targetYaw = 0;+ // Touch devices have no hovering cursor to follow, so the companion would+ // sit frozen in idle. On a coarse pointer it wanders on its own instead —+ // switched off the moment a real (fine) pointer moves it.+ this._autonomous =+ typeof matchMedia === 'function' ? !matchMedia('(pointer: fine)').matches : false;+ this._autoWalking = false;+ this._autoUntil = 0;this._onPointerMove = this._onPointerMove.bind(this);this._onLinkClick = this._onLinkClick.bind(this);this._onVisibility = this._onVisibility.bind(this);@@ -351,6 +358,9 @@ class WalkCompanion {}_onPointerMove(e) {+ // A genuine fine pointer (mouse/trackpad/stylus) takes over cursor-follow;+ // touch-drag (pointerType 'touch') leaves the autonomous wander in charge.+ if (e.pointerType && e.pointerType !== 'touch') this._autonomous = false;this._cursorX = e.clientX;this._cursorMovedAt = performance.now();}@@ -401,7 +411,8 @@ class WalkCompanion {ssSet(this.config.keys.invited, '1');clearTimeout(this._inviteTimer);this._inviteTimer = setTimeout(() => {- if (this.mounted) this._say('Click me to walk the whole page →');+ if (this.mounted)+ this._say(this._autonomous ? 'Tap me to walk the whole page →' : 'Click me to walk the whole page →');}, 5600);}}@@ -461,13 +472,26 @@ class WalkCompanion {this.clock.update();const dt = Math.min(this.clock.getDelta(), 0.05);- const movingRecently = performance.now() - this._cursorMovedAt < CURSOR_IDLE_MS;- if (!this._reduced && !this._orientLock) {+ const now = performance.now();+ const movingRecently = now - this._cursorMovedAt < CURSOR_IDLE_MS;+ if (this._autonomous) {+ if (!this._reduced && !this._orientLock && now >= this._autoUntil) {+ this._autoWalking = !this._autoWalking;+ if (this._autoWalking) {+ // Stroll toward a fresh heading, then pause and face it.+ this._targetYaw = clamp(Math.random() * 1.2 - 0.6, -0.6, 0.6);+ this._autoUntil = now + 1800 + Math.random() * 2200;+ } else {+ this._autoUntil = now + 900 + Math.random() * 1600;+ }+ }+ } else if (!this._reduced && !this._orientLock) {const rel = (this._cursorX - window.innerWidth / 2) / (window.innerWidth / 2);this._targetYaw = clamp(rel * 0.7, -0.7, 0.7);}const turning = Math.abs(this._targetYaw - this._yaw) > 0.04;- const shouldWalk = !this._reduced && (movingRecently || turning);+ const walkCue = this._autonomous ? this._autoWalking : movingRecently;+ const shouldWalk = !this._reduced && (walkCue || turning);this.controller?.setState(shouldWalk ? 'walk' : 'idle');this._yaw += (this._targetYaw - this._yaw) * 0.12;@@ -517,6 +541,7 @@ function ensureStyles() {.walk-companion-bubble.is-in{opacity:1;transform:translateX(-50%) translateY(0)}.walk-companion-bubble::after{content:'';position:absolute;left:50%;top:100%;transform:translateX(-50%);border:6px solid transparent;border-top-color:rgba(18,20,28,.94)}@media (max-width:520px){.walk-companion{width:148px;height:208px;right:10px;bottom:10px}.walk-companion-bubble{font-size:11.5px;max-width:170px}}+@media (pointer:coarse){.walk-companion-close,.walk-companion-swap{opacity:1;width:26px;height:26px}.walk-companion-swap{right:32px}}@media (prefers-reduced-motion:reduce){.walk-companion,.walk-companion-bubble{transition:none}}`;document.head.appendChild(style);