Skip to content

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.

feat: enhance leaderboard and money studio UI, improve oracle conviction block, and add x402 deployment config

nirholas94f71f9f97e7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 4db228b38..3ff74c91c 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,16 +12,26 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Diorama** (`/diorama`) — Speak a little world into being — describe a scene and watch it assemble into an explorable 3D diorama you can walk through, then take it into AR.
- **Mocap Studio** (`/mocap-studio`) — Drive a 3D avatar with your webcam — real-time facial motion capture in the browser, no rig and no download.
- **Talking Avatar Video** (`/create/video`) — Turn a three.ws avatar into a talking-head video: type a script, pick a voice, and export a lip-synced clip.
+- **Agent hire receipts and the economy market are back online** — Fixed a routing bug that was quietly 404ing a family of agent endpoints. The agent screen's 'A2A-hire receipts' panel, the agent-to-agent economy marketplace, agent NFT galleries, the social-recovery inbox, the showrunner feed and agent-to-agent messaging were all being swallowed by the catch-all that resolves an agent by id, so each returned 'agent not found' instead of its real data. They now resolve to their own handlers and load correctly. Separately, when the avatar's face-animation provider is unavailable the talking avatar now settles onto its built-in amplitude lip-sync after the first failure instead of retrying every line — no visible change, just fewer wasted calls and a cleaner console. (`/agent-screen`) `[fix]`
- **Avatar picker is readable everywhere again** — Fixed the "Choose an avatar" browser on pages that don't load the platform's design tokens. The source toggle (Public gallery / My avatars), the tag filters, and the "Use this avatar" button were rendering as black text on a black background — you could only see them by highlighting them. The picker now carries its own colour, border and surface fallbacks, so every control is fully visible on any page that embeds it, while still matching the surrounding theme when one is present. `[fix]`
+- **Dashboard topbar is quieter** — Removed the small live walking-avatar tile from the dashboard header. It ran your avatar in a background iframe on every dashboard view, which added load and visual noise without a clear job. Your avatar is still one click away from the account menu and the Walk app — the header now stays focused on search, notifications, and your account. `[improvement]`
- **Diorama is live — speak a little 3D world into being** — Diorama is now a real, reachable page at three.ws/diorama. Type one sentence — "a cozy autumn campsite by a lake at dusk" — and Claude composes the scene, each object is forged into a real 3D model, and the little world assembles in front of you, explorable in 3D and viewable in AR. Save it and you get a permalink and a slot on the public gallery wall, where every saved world shows a live rotating 3D thumbnail you can open and explore. Share it as a 3D postcard: copy the link, post to X, or grab an embed snippet. Nothing is a screenshot — it's all real geometry forged from your words. (`/diorama`) `[feature]`
- **Labs — a home for the hidden gems most people never find** — There's a new Labs page at three.ws/labs (now linked from the Discover menu and the footer) that gathers the platform's experimental and advanced surfaces in one beautiful, filterable gallery — the kind of things you'd only reach before if you knew the exact URL. Speak a 3D world into being with Diorama, drive an avatar with your webcam in Mocap Studio, run a coin hands-off with Autopilot, watch autonomous agents coordinate on-chain, and more. Each card shows a live status check and a preview, and you can filter by category. Everything featured is real and live. (`/labs`) `[feature]`
- **Launch Studio, redesigned — and rewards can now go to anyone** — The Launch Studio got a full makeover and a big new power. New look: instant search across all 50 recipes, colour-themed category tabs, a Reward/Theme filter, savable favourites, a Surprise-me button, and keyboard shortcuts. Clicking a recipe now slides open a live preview drawer with real candidate coins — avatars, signal-strength bars, a dev-buy slider that flows into the launch, and a network toggle. The big addition is the reward planner: route a coin's creator fees to anyone, not just GitHub — a GitHub or X (Twitter) account, any Solana wallet or .sol name, back to holders as cashback, or into an auto buy-back-and-burn. The same generalisation reaches the post-launch fees panel, whose recipient box now accepts a GitHub @user, an X handle (x:@handle), a raw wallet, or an owner/repo to split contributors. (`/launch-studio`) `[improvement, feature]`
+- **Long-running agent endpoints no longer time out mid-task** — Fixed a deployment-config gap where fifteen API endpoints asked for more time than they were actually granted, so the platform's 30-second catch-all limit silently overrode them. Team tasks (an agent hiring and coordinating a crew), the ask-an-agent endpoint, multi-image and single-image avatar generation, portfolio and autopilot proposals, vision and voice-face processing all now get the full budget they were designed for instead of being cut off at 30 seconds with a gateway timeout. Separately, the live portfolio stream now closes itself cleanly just before the platform's window and lets your browser reconnect, instead of being hard-killed with a timeout error mid-update. `[fix, infra]`
- **Money Pulse & Viability now render in the brand type** — Fixed the typography on the Money Pulse and Viability pages. Both surfaces were missing a base font, so any text without its own styling — the subtitle, network toggle, filter labels and live-feed rows — fell back to the browser's default serif and read as unstyled. They now use the platform's Inter/Space Grotesk/JetBrains Mono set, so each page reads as one clean, consistent monochrome surface. (`/pulse`) `[fix]`
+- **Pricing your agent's skills is now one tap** — The Pricing section of Agent Studio's Money tab now opens with a storefront summary — how many of your sellable skills carry a price, the average per-call price, and how many are still free — computed live from your real pricing. Each skill gets one-tap price chips ($0.01, $0.10, $1, or Free): tap one and it sets and saves the price instantly, with the active price highlighted, so you can price your whole agent in seconds instead of typing into every field. Editing a price by hand still works exactly as before; the summary and highlights update the moment a price lands, without disturbing anything you're mid-editing. (`/agent-studio`) `[improvement]`
- **The Agent Labor Market, reimagined** — The labor market got a top-to-bottom redesign built for watching the machine economy work. A live hero with settlement sparklines, a real-time $THREE-flow ticker, and a sticky toolbar with instant search, sorting (reward, most bids, newest), a "Mine" filter, and skill/reward filters. Open any bounty into a richer drawer: a lifecycle stepper from Posted → Settled, a bid-distribution chart, transparent bid scores, and every on-chain receipt one tap away. Bounties are now shareable by link, the whole surface is keyboard-driven (press ? for shortcuts), and clean toast notifications replace jarring pop-ups. Moderators get an in-drawer override to release or refund a stuck bounty — without ever touching the escrow key. (`/labor-market`) `[improvement, feature]`
+- **The Arena gets a full design pass — and its tournament pages work again** — The Arena's live tournament view was silently broken: opening any competition showed a stuck loading screen because the page relied on four pieces that were never finished. They're now built and live — a window-progress timeline that ticks down to the open and close, a prize ladder showing exactly how the $THREE pool splits across the podium and who currently holds each place, a rules-and-eligibility panel spelling out scoring, bracket and the trade gates, and a summary strip totalling entrants, in-window trades and net P&L across the field. The whole surface also got a cohesion pass to match the rest of three.ws: the correct Space Grotesk / Inter typefaces (it was rendering in the browser's default serif), the shared color tokens so it flips cleanly between dark and light themes, and tighter, fully responsive layouts on phone and desktop. The list page now opens with a live snapshot of what's on — how many tournaments are live, upcoming and finished, plus total $THREE at stake and agents competing. (`/arena`) `[fix, improvement]`
+- **The Arena looks and feels like the rest of the site** — Gave the live PvP trading Arena a full design pass so it reads as one product with three.ws. The whole page now draws in the platform's own Space Grotesk and Inter type — with mono numerals on scores, P&L and countdowns for a proper trading-terminal feel — instead of the browser's default serif. Colours, borders and surfaces come from the shared design tokens, so the Arena now flips correctly in light mode too. The 'Create a tournament' dialog was see-through; it's now a solid, focus-trapped modal with a close button, a blurred backdrop, background-scroll lock, and it docks to the bottom of the screen as a thumb-friendly sheet on phones. Paired date and prize fields stack instead of cramping, the ranking board and spotlight reflow cleanly on mobile, and every control has proper hover, focus and keyboard states. (`/arena`) `[improvement, fix]`
- **The autonomous sniper now has a live web console** — Run agent-sniper serve and open it in a browser: a real-time operator dashboard, built right into the engine. Watch buys, sells, candidates and signals tick up live; see every open position with its entry, current value and colored profit-and-loss, and close any of them in one click; review your armed strategies with their stop-loss and take-profit at a glance; arm a new strategy or fire a manual snipe from clean forms; and read a live activity feed of everything the engine is doing. It has designed loading, empty and error states, toasts, keyboard shortcuts and a full mobile layout. Reads are free to anyone; to run the controls yourself without paying, set an operator token that bypasses the x402 paywall for you while external agents still pay per call. (`/docs/mcp`) `[feature, sdk]`
+- **The live agent wall now leads with agents that are actually working** — The Live Agents wall was burying its best content. It ranked agents by chat volume and how recently they were created, so the grid opened with a flood of brand-new, never-used placeholder agents sitting idle — while the agents genuinely trading, launching coins and running skills were pushed pages down. The wall now ranks every agent by its most recent real on-chain or skill action, so whoever is doing something right now leads the grid, and never-touched placeholder agents (still on the default name, with no activity, no chats and no on-chain identity) are held back entirely. Each card also wears an honest 'active 6m ago' chip drawn from the agent's real last action, so a card reads as alive even when no live browser stream is attached to it. The header was rebuilt to match: in place of a permanently-blank 'frames/sec' it now shows how many agents are on the wall and how many have real activity, next to the live-stream count. (`/agents-live`) `[improvement]`
+- **The trader track-record page gets a cohesion pass — fonts, gauge, and mobile** — The trader profile — the provable track record you open from the leaderboard — got a polish pass so it reads as one product with the rest of three.ws. Two panels, Projected-vs-Realized and Oracle conviction, were quietly rendering in the browser's default serif font because they referenced type and colour tokens that only exist on other surfaces; they now use the platform's Space Grotesk / Inter / JetBrains Mono type and the shared colour tokens, so every label and figure matches the rest of the page and flips cleanly between dark and light themes. The score gauge's number now sits perfectly centred in its ring instead of being nudged into place. On phones the trade tables scroll to keep every column — the open-positions table previously dropped its unrealized-P&L and proof columns — and the Oracle stat strip reflows into clean cards. Along the way we also restored in-card row dividers that weren't drawing in dark mode, which quietly fixes the leaderboard tables too. (`/leaderboard`) `[fix, improvement]`
- **The Trading Brain is redesigned — presets, a live risk meter, and a real backtest breakdown** — Building your agent's sniper is now a minute, not a manual. Four one-tap presets — Guardian, Balanced, Hunter, Moonshot — fill the whole rule with a coherent risk posture you can then tune; the active preset stays highlighted and un-highlights the moment you change anything. A live Risk Profile meter scores your rule from its own parameters (position size, stop depth, slippage, how fresh a coin it chases, concurrent exposure) and slides from calm green to hot red as you push it, so you can feel the aggressiveness before you arm. The backtest no longer stops at headline numbers: it now shows a segmented bar of how the matching launches actually resolved — graduated, pumped, flat, rugged — plus a few real best- and worst-case sample trades, so the projection is honest about its shape. Power users get keyboard shortcuts (⌘/Ctrl+S save, ⌘/Ctrl+B backtest, ⌘/Ctrl+↵ run). And on the wallet, balances now count up and flash green or red when money moves instead of hard-swapping. Every animation respects reduced-motion. (`/agent-studio`) `[improvement, feature]`
- **The x402 page is now a live, searchable storefront** — three.ws/x402 is rebuilt as a live catalog. Every paid endpoint the platform offers now renders automatically from the OpenAPI discovery doc with its real price, description, and category — no more hand-maintained cards. Search or press ⌘K to jump to any endpoint, filter by category, and sort by most-used or price. Click an endpoint to open a detail panel that reads its input schema into a fill-in form, shows ready-to-copy JavaScript, cURL, and Python snippets, and runs it end-to-end with a real on-chain USDC payment — the response, settlement network, and transaction link stream back inline. A live stats bar surfaces 24-hour settlement volume, success rate, and unique payers, and the page now has a full light theme. (`/x402`) `[feature, improvement]`
- **The x402 toolkit is now on npm and the VS Code Marketplace** — The x402 buyer, seller, browser-modal and MCP libraries are published as standalone, provider-neutral npm packages you can use in any project without a three.ws account: @three-ws/x402-fetch (drop-in fetch that auto-pays a 402 in USDC), @three-ws/x402-server (build paid endpoints), @three-ws/x402-modal and @three-ws/x402-payment-modal (drop-in browser checkout), and @three-ws/x402-mcp and @three-ws/ibm-x402-mcp (pay or sell from any MCP client). There's also a new x402 extension for VS Code — inspect, pay, and scaffold paid endpoints from the editor — on both the VS Code Marketplace and Open VSX. The docs now carry install commands, one-line summaries, repo links, and a Node code sample in the pay-for-a-service tutorial. (`/x402`) `[sdk, docs]`
+- **three.ws now self-hosts its Solana payment settlement** — The platform's Solana x402 payments no longer depend on an outside settlement service — three.ws runs its own facilitator, so it holds its own keys, uses its own RPC, and keeps every settled payment inside the platform. Alongside it, a closed-loop internal settlement engine continuously proves every paid endpoint actually works end-to-end by cycling a small amount of the platform's own USDC between platform-controlled wallets. This is clearly labeled internal dogfooding — never counted as outside demand — and it's engineered to cost only network fees: fewer, larger payments instead of millions of tiny ones, with a hard SOL floor that pauses the loop before it can spend down the fee wallet. It ships off by default. `[infra, security]`
+- **Treasury Autopilot screen matches the brand** — Polished the agent's live Treasury Autopilot dashboard so it reads as one product with the rest of the site. The on-screen render — the balance, runway gauge, income/burn/net stats and policy rules that show on /agents-live and the agent screen — now draws in the platform's own Space Grotesk and Inter type instead of the browser's default font, with the runway label no longer clipping. The interactive cockpit's status colours (armed/killed, healthy/warning/critical runway, buyback and distribution states) now come from the shared design tokens, so green/amber/red match everywhere. The Market Anchor lower-third dropped its off-brand blue and orange for the site's monochrome palette, and the whole cockpit reflows cleanly on phones. (`/agent-screen`) `[improvement]`
## 2026-06-30
diff --git a/STRUCTURE.md b/STRUCTURE.md
index 20625af74..46ca0436c 100644
--- a/STRUCTURE.md
+++ b/STRUCTURE.md
@@ -22,6 +22,7 @@ bottom.
| Scene Studio (3D scene editor) | [src/scene-studio/](src/scene-studio) `→ /scene` | Vendored [mrdoob/three.js](https://github.com/mrdoob/three.js) r184 editor, MIT, see [src/scene-studio/vendor/README.md](src/scene-studio/vendor/README.md) | Import GLBs, compose scenes, edit materials/lights, export |
| Diorama (text → 3D world) | [src/diorama/](src/diorama) `→ /diorama` | In-repo · backend [api/diorama.js](api/diorama.js) | One sentence → an explorable 3D diorama: Claude composes the scene, each object is forged to a real GLB, assembled live, saved to a public gallery + shareable permalink |
| Labs (hidden-gems hub) | [pages/labs.html](pages/labs.html) + [src/labs.js](src/labs.js) `→ /labs` | In-repo | Data-driven discovery hub: renders every `data/pages.json` entry flagged `showcase: true` as a live card (status check + iframe preview), filterable by category |
+| Live Agents wall (mission control) | [pages/agents-live.html](pages/agents-live.html) + [src/agents-live.js](src/agents-live.js) `→ /agents-live` | In-repo · roster [api/agents/public.js](api/agents/public.js) (`sort=live`), per-agent SSE [api/agent-screen-stream.js](api/agent-screen-stream.js) | Real-time grid of every meaningful agent, ranked by most-recent on-chain/skill action (never-used placeholders suppressed). Each card streams a live caster feed when watched, else its real `agent_actions` as a terminal + an "active Nm ago" recency chip. Layers: showrunner spotlight ([src/showrunner.js](src/showrunner.js)), reputation arena ([src/agents-live-arena.js](src/agents-live-arena.js)), platform ticker ([src/theater-feed.js](src/theater-feed.js)) |
| X/Twitter automation toolkit | [xactions/](xactions) | Vendored [nirholas/XActions](https://github.com/nirholas/XActions), MIT, see [xactions/LICENSE](xactions/LICENSE) | Self-contained fork (browser scripts, CLI, MCP server, dashboard). Not an npm workspace — own `package.json`/deploy. Includes the console **Post Scraper** panel at [xactions/public/tools/](xactions/public/tools) |
| Embed examples | [examples/](examples) | In-repo | `embed-test.html`, `web-component.html`, `two-agents.html`, `minimal.html` |
| Animation pipeline | [public/animations/](public/animations) + [scripts/build-animations.mjs](scripts/build-animations.mjs) | In-repo | Mixamo source FBX + GLB retargeting pipeline · see [docs/3d-asset-pipeline.md](docs/3d-asset-pipeline.md) |
@@ -37,6 +38,7 @@ bottom.
| Cross-chain SDKs | [sdk/](sdk), [solana-agent-sdk/](solana-agent-sdk), [agent-payments-sdk/](agent-payments-sdk), [agent-protocol-sdk/](agent-protocol-sdk) | Published | Cross-chain agent SDKs |
| MCP integration | [mcp-server/](mcp-server), [mcp-bridge/](mcp-bridge), [packages/*-mcp/](packages) | 31 npm servers + 6 hosted remote, all in the [MCP registry](https://registry.modelcontextprotocol.io/?q=io.github.nirholas) | Model Context Protocol surface — full server list in [docs/mcp.md](docs/mcp.md) |
| SNS naming + pay-by-name | [api/sns.js](api/sns.js), [api/sns-subdomain.js](api/sns-subdomain.js), [api/threews/subdomain.js](api/threews/subdomain.js), [api/x402/pay-by-name.js](api/x402/pay-by-name.js), [src/solana/sns-subdomain.js](src/solana/sns-subdomain.js), [pages/threews-claim.html](pages/threews-claim.html) | In-repo | `*.threews.sol` subdomain mint, x402 payments addressed by name. Env: `THREEWS_SOL_PARENT_SECRET_BASE58`. See [SNS_PARTNERSHIP_PROPOSAL.md](docs/internal/SNS_PARTNERSHIP_PROPOSAL.md) |
+| Self-hosted x402 facilitator + ring economy | [api/x402-facilitator/[action].js](api/x402-facilitator/[action].js), [api/_lib/x402/self-facilitator.js](api/_lib/x402/self-facilitator.js), [api/x402/ring-settle.js](api/x402/ring-settle.js), [api/_lib/x402/pipelines/ring-rebalance.js](api/_lib/x402/pipelines/ring-rebalance.js), [api/x402-ring.js](api/x402-ring.js), [scripts/x402-ring-setup.mjs](scripts/x402-ring-setup.mjs) | In-repo (off by default) | Closed-loop agent-to-agent x402: platform wallets pay platform endpoints, settled in-house (no external facilitator). Fee-minimized, SOL-floor guarded, internal-labeled. Env: `X402_SELF_FACILITATOR_ENABLED`, `X402_FEE_PAYER_SECRET_BASE58`, `X402_TREASURY_SECRET_BASE58`. See [docs/x402-ring-economy.md](docs/x402-ring-economy.md) |
## npm workspaces
diff --git a/api/_lib/agent-orchestrate.js b/api/_lib/agent-orchestrate.js
index ccfdf503b..8127aafef 100644
--- a/api/_lib/agent-orchestrate.js
+++ b/api/_lib/agent-orchestrate.js
@@ -267,6 +267,9 @@ Write the final answer now.`;
* @param {number} [params.maxUsd] - hard cap on total spend (clamped)
* @param {Array} [params.catalog] - live hireable services for the lead to pick from
* @param {(tree: object, ctx: object) => void} [params.emit] - called with each snapshot
+ * @param {number} [params.deadlineMs] - absolute epoch-ms budget; once passed, no new
+ * node or synthesis turn starts and the current
+ * (partial) tree is returned. Defaults to no limit.
* @param {object} [deps] - injectable side effects (tests pass fakes)
* @param {Function} deps.runDelegate - ({toAgentId,message}) => Promise<{response}>
* @param {Function} deps.runHire - ({hirerAgentId,serviceSlug,input,maxUsd}) => Promise<{hire}>
@@ -274,7 +277,7 @@ Write the final answer now.`;
* @returns {Promise<object>} the final task tree
*/
export async function orchestrateGoal(
- { userId, leadAgentId, leadName = null, goal, maxUsd = DEFAULT_MAX_USD, catalog = [], emit = () => {} },
+ { userId, leadAgentId, leadName = null, goal, maxUsd = DEFAULT_MAX_USD, catalog = [], emit = () => {}, deadlineMs = Infinity },
deps = {},
) {
const runDelegate = deps.runDelegate;
@@ -330,6 +333,21 @@ export async function orchestrateGoal(
const childNodes = tree.nodes.filter((n) => n.id !== 'lead');
const completed = [];
for (const child of childNodes) {
+ // Time budget: once the orchestration deadline passes, stop starting new
+ // nodes. Mark this node and every still-queued sibling as skipped so the
+ // tree returns a truthful partial result — a real, paid multi-agent run can
+ // legitimately outlast the serverless wall, and a clean partial beats a 504.
+ if (Date.now() >= deadlineMs) {
+ for (const rest of childNodes) {
+ const cur = tree.nodes.find((n) => n.id === rest.id);
+ if (cur && cur.status === 'queued') {
+ tree = applyTransition(tree, rest.id, { status: 'failed', error: 'skipped — team ran out of time' });
+ fire({ phase: 'node_settled', node: tree.nodes.find((n) => n.id === rest.id), narration: `Skipped ${truncate(rest.title, 50)} — ran out of time`, narrateAgentId: leadAgentId });
+ }
+ }
+ break;
+ }
+
// running
tree = applyTransition(tree, child.id, { status: 'running' });
const running = tree.nodes.find((n) => n.id === child.id);
@@ -373,7 +391,18 @@ export async function orchestrateGoal(
}
// Synthesis: the lead folds the sub-results into a final answer. If there were
- // no sub-tasks the lead simply answers the goal itself.
+ // no sub-tasks the lead simply answers the goal itself. Skip this final turn if
+ // we've already hit the deadline — one more LLM round-trip could push the
+ // handler past its serverless limit; the completed sub-results still stand.
+ if (Date.now() >= deadlineMs) {
+ tree = applyTransition(tree, 'lead', {
+ status: 'done',
+ result: null,
+ error: 'partial result — the team ran out of time before the final summary',
+ });
+ fire({ phase: 'done', narration: 'Team task returned a partial result — ran out of time', narrateAgentId: leadAgentId });
+ return tree;
+ }
try {
const synthMsg = childNodes.length
? synthesisPrompt(goal, completed.map((c) => ({ title: c.title, result: c.result, error: c.error })))
diff --git a/api/_lib/x402-paid-endpoint.js b/api/_lib/x402-paid-endpoint.js
index 13c70b31c..1fbc23ad6 100644
--- a/api/_lib/x402-paid-endpoint.js
+++ b/api/_lib/x402-paid-endpoint.js
@@ -40,6 +40,7 @@ import {
NETWORK_BSC_MAINNET,
NETWORK_SOLANA_MAINNET,
X402Error,
+ baseSettleable,
encodePaymentResponseHeader,
permit2VariantOf,
resolveResourceUrl,
@@ -159,7 +160,16 @@ function buildRequirements({ priceAtomics, networks, resourceUrl, payToOverride
// 402-failing only when NONE are payable. The asset is checked here too —
// without it the accept would be advertised and then rejected by the
// facilitator at settle, which is the same broken experience as a 500.
- if (net === NETWORK_BASE_MAINNET && (!baseTo || !env.X402_ASSET_ADDRESS_BASE)) continue;
+ // Base also needs a WORKING facilitator to settle against — CDP creds or an
+ // explicit facilitator URL. Without one it routes to the decommissioned
+ // PayAI default that 404s every /verify, so advertising Base would hand
+ // buyers a first-choice accept that always fails at settle (a 502, not a
+ // clean 402). Drop Base instead; the Solana accept still settles in-house.
+ if (
+ net === NETWORK_BASE_MAINNET &&
+ (!baseTo || !env.X402_ASSET_ADDRESS_BASE || !baseSettleable())
+ )
+ continue;
// Solana also needs a fee payer to be co-signable — skip the network
// rather than advertise an accept the facilitator will reject.
if (
diff --git a/api/_lib/x402-spec.js b/api/_lib/x402-spec.js
index 85b559ca0..7e261ca1f 100644
--- a/api/_lib/x402-spec.js
+++ b/api/_lib/x402-spec.js
@@ -277,6 +277,22 @@ function facilitatorFor(network) {
throw new X402Error('unsupported_network', `unsupported network: ${network}`, 400);
}
+// Is Base (eip155:8453) actually settleable right now? Base routes to CDP when
+// CDP creds are set, otherwise to X402_FACILITATOR_URL_BASE. The historical bare
+// default for that URL — facilitator.payai.network — was decommissioned and now
+// answers every /verify with `404 Application not found`, so a Base accept that
+// falls through to it gets advertised (buyers pick it first), then fails at
+// verify with a 502. Treat Base as settleable ONLY when the operator has
+// committed to a working facilitator: CDP credentials, an explicit per-network
+// Base URL, or an explicit generic facilitator URL. A pure fall-through to the
+// hardcoded default is NOT a working Base facilitator. Self-heals: the moment
+// CDP keys or an explicit URL are configured, Base is advertised again. Solana
+// (self-hosted facilitator) is unaffected and stays the always-on settle path.
+export function baseSettleable() {
+ if (env.CDP_API_KEY_ID && env.CDP_API_KEY_SECRET) return true;
+ return Boolean(process.env.X402_FACILITATOR_URL_BASE || process.env.X402_FACILITATOR_URL);
+}
+
// Operations the CDP SDK pre-builds headers for; map our internal path to the SDK key.
const CDP_OP_FOR_PATH = { '/verify': 'verify', '/settle': 'settle', '/supported': 'supported' };
diff --git a/api/_lib/x402/pay.js b/api/_lib/x402/pay.js
index 58b38e840..75839deff 100644
--- a/api/_lib/x402/pay.js
+++ b/api/_lib/x402/pay.js
@@ -68,10 +68,14 @@ export function parseSolanaAccept(challenge) {
) || null;
}
-export function buildPaymentTx({ accept, buyer, blockhash, mintInfo, receiverAtaExists, nonce = 0 }) {
+export function buildPaymentTx({ accept, buyer, blockhash, mintInfo, receiverAtaExists, nonce = 0, selfPay = false }) {
const mint = new PublicKey(accept.asset);
const payTo = new PublicKey(accept.payTo);
- const feePayer = new PublicKey(accept.extra.feePayer);
+ // Self-pay: the buyer IS the fee payer → the transaction needs only ONE
+ // signature (5000 lamports base) instead of two (buyer + sponsor = 10000), and
+ // the facilitator broadcasts it without co-signing. Sponsor mode keeps the
+ // advertised fee payer so a buyer without SOL can still be sponsored.
+ const feePayer = selfPay ? buyer.publicKey : new PublicKey(accept.extra.feePayer);
const amount = BigInt(accept.amount);
const senderAta = getAssociatedTokenAddressSync(
@@ -140,6 +144,10 @@ export async function payX402({
remainingCap = Infinity,
userAgent = 'threews-x402-autonomous/1.0',
nonce = 0,
+ // Self-pay: buyer is its own fee payer → 1 signature (5000 lamports) instead
+ // of 2. Half the base fee, no sponsor co-sign. On by default via env for the
+ // closed ring. See buildPaymentTx.
+ selfPay = String(process.env.X402_RING_SELF_PAY || '').toLowerCase() === 'true',
}) {
const reqInit = {
method,
@@ -166,7 +174,7 @@ export async function payX402({
if (!USDC_MINT || accept.asset !== USDC_MINT) {
return { success: false, paid: false, free: false, skipped: true, amountAtomic: 0, txSig: null, status: 402, responseBody: probe.body, errorMsg: `unexpected_asset:${accept.asset}` };
}
- if (!accept.extra?.feePayer) {
+ if (!selfPay && !accept.extra?.feePayer) {
return { success: false, paid: false, free: false, skipped: true, amountAtomic: 0, txSig: null, status: 402, responseBody: probe.body, errorMsg: 'missing_fee_payer' };
}
@@ -186,7 +194,7 @@ export async function payX402({
const txBase64 = buildPaymentTx({
accept, buyer, blockhash, mintInfo,
receiverAtaExists: receiverAtaInfo !== null,
- nonce,
+ nonce, selfPay,
});
const xPayment = Buffer.from(JSON.stringify({
x402Version: 2,
diff --git a/api/_lib/x402/self-facilitator.js b/api/_lib/x402/self-facilitator.js
index 761c85f8c..92de07f96 100644
--- a/api/_lib/x402/self-facilitator.js
+++ b/api/_lib/x402/self-facilitator.js
@@ -148,14 +148,10 @@ export function validateRingTransaction({ txBase64, requirement, feePayerPubkey,
const keys = msg.staticAccountKeys;
if (!keys || keys.length === 0) return { ok: false, reason: 'no_account_keys' };
- // Fee payer is always account index 0.
+ // Fee payer is always account index 0. Whether it must equal the configured
+ // sponsor (sponsor mode) or may be the buyer itself (self-pay, 1 signature) is
+ // decided AFTER we learn the transfer authority below.
const feePayer = keys[0];
- if (feePayerPubkey && feePayer.toBase58() !== feePayerPubkey) {
- return {
- ok: false,
- reason: `fee_payer_mismatch:${feePayer.toBase58()}!=${feePayerPubkey}`,
- };
- }
const mint = new PublicKey(requirement.asset);
const requiredAmount = BigInt(requirement.amount);
@@ -241,8 +237,6 @@ export function validateRingTransaction({ txBase64, requirement, feePayerPubkey,
if (!source.equals(expectedSource)) {
return { ok: false, reason: 'transfer_source_not_authority_ata' };
}
- // authority must never be the sponsor — the sponsor pays fees, not USDC.
- if (authority.equals(feePayer)) return { ok: false, reason: 'authority_is_fee_payer' };
// authority must be a required signer (index < numRequiredSignatures).
const authIndex = accts[3];
if (authIndex >= msg.header.numRequiredSignatures) {
@@ -260,6 +254,7 @@ export function validateRingTransaction({ txBase64, requirement, feePayerPubkey,
}
if (transferCount !== 1) return { ok: false, reason: 'no_usdc_transfer' };
+ if (payer == null) return { ok: false, reason: 'no_authority' };
if (transferAmount < requiredAmount) {
return {
ok: false,
@@ -267,7 +262,19 @@ export function validateRingTransaction({ txBase64, requirement, feePayerPubkey,
};
}
- // Bound the sponsor's priority fee.
+ // Self-pay vs sponsor mode. Self-pay: the buyer pays its own SOL fee (fee payer
+ // == the USDC authority) → 1 signature, no sponsor, cheapest. Sponsor mode: the
+ // fee payer must be the configured sponsor. Either way the sponsor can never be
+ // coerced into spending USDC: in sponsor mode fee payer ≠ authority (this
+ // branch), and self-pay only lets the buyer spend its own funds.
+ const selfPay = feePayer.toBase58() === payer;
+ if (!selfPay) {
+ if (!feePayerPubkey || feePayer.toBase58() !== feePayerPubkey) {
+ return { ok: false, reason: `fee_payer_not_sponsor:${feePayer.toBase58()}` };
+ }
+ }
+
+ // Bound the priority fee the fee-paying wallet will pay.
if (cuLimit > MAX_CU_LIMIT) return { ok: false, reason: `cu_limit_too_high:${cuLimit}` };
if (cuPrice > BigInt(MAX_CU_PRICE_MICROLAMPORTS)) {
return { ok: false, reason: `cu_price_too_high:${cuPrice}` };
@@ -288,6 +295,8 @@ export function validateRingTransaction({ txBase64, requirement, feePayerPubkey,
payTo: payTo.toBase58(),
mint: mint.toBase58(),
amountAtomic: Number(transferAmount),
+ feePayer: feePayer.toBase58(),
+ selfPay,
estFeeLamports,
ataCreatePresent,
},
@@ -308,22 +317,23 @@ export function txBase64FromPayload(paymentPayload) {
// not hit getBalance on every payment. The floor check is the hard stop that
// keeps the loop from ever draining our SOL: below the floor, settle refuses and
// the paying loop stalls until the sponsor is topped up.
-let _solCache = { lamports: null, at: 0 };
+const _solCache = new Map(); // pubkeyB58 → { lamports, at }
const SOL_CACHE_MS = 20_000;
export async function sponsorSolLamports(conn, feePayerPubkey, now = Date.now()) {
- if (_solCache.lamports != null && now - _solCache.at < SOL_CACHE_MS) {
- return _solCache.lamports;
- }
+ const key = feePayerPubkey.toBase58();
+ const hit = _solCache.get(key);
+ if (hit && hit.lamports != null && now - hit.at < SOL_CACHE_MS) return hit.lamports;
const lamports = await conn.getBalance(feePayerPubkey, 'confirmed');
- _solCache = { lamports, at: now };
+ _solCache.set(key, { lamports, at: now });
return lamports;
}
-// Invalidate the cache right after a settle so the next check sees the debit
-// promptly as the balance approaches the floor.
-function bumpSolCache(deltaLamports) {
- if (_solCache.lamports != null) _solCache.lamports = Math.max(0, _solCache.lamports - deltaLamports);
+// Debit the cache right after a settle so the next check sees the balance
+// approaching the floor without another RPC round-trip.
+function bumpSolCache(pubkeyB58, deltaLamports) {
+ const hit = _solCache.get(pubkeyB58);
+ if (hit && hit.lamports != null) hit.lamports = Math.max(0, hit.lamports - deltaLamports);
}
async function confirmSignature(conn, signature, timeoutMs = 30_000) {
@@ -349,36 +359,49 @@ async function confirmSignature(conn, signature, timeoutMs = 30_000) {
export async function settleRingPayment({ paymentPayload, requirement, conn, feePayer }) {
const network = requirement.network;
const connection = conn || solanaConnection({ url: env.SOLANA_RPC_URL, commitment: 'confirmed' });
- const sponsor = feePayer || loadFeePayerKeypair();
const txBase64 = txBase64FromPayload(paymentPayload);
if (!txBase64) return { success: false, reason: 'missing_transaction' };
+ // The sponsor pubkey only authorizes SPONSOR-mode payments; a self-pay tx
+ // carries its own fee payer and needs no sponsor key at all.
+ const sponsorPubkey = feePayer?.publicKey?.toBase58() || env.X402_FEE_PAYER_SOLANA || null;
const validation = validateRingTransaction({
txBase64,
requirement,
- feePayerPubkey: sponsor.publicKey.toBase58(),
+ feePayerPubkey: sponsorPubkey,
allowlist: payToAllowlist(),
});
if (!validation.ok) return { success: false, reason: validation.reason };
const decoded = validation.decoded;
- const { tx, payer, estFeeLamports } = decoded;
+ const { tx, payer, estFeeLamports, selfPay } = decoded;
- // Hard stop: never settle if the sponsor is below its SOL floor.
- const solLamports = await sponsorSolLamports(connection, sponsor.publicKey);
+ // Hard stop: never settle if the fee-paying wallet is below its SOL floor.
+ // Self-pay → the payer pays its own fee; sponsor mode → the sponsor pays.
+ const feeWallet = new PublicKey(decoded.feePayer);
+ const solLamports = await sponsorSolLamports(connection, feeWallet);
if (solLamports < SPONSOR_SOL_FLOOR_LAMPORTS) {
return {
success: false,
- reason: `sponsor_sol_below_floor:${solLamports}<${SPONSOR_SOL_FLOOR_LAMPORTS}`,
+ reason: `fee_wallet_below_floor:${solLamports}<${SPONSOR_SOL_FLOOR_LAMPORTS}`,
sponsorSolLamports: solLamports,
};
}
- // Co-sign as the fee payer (buyer already signed) and broadcast.
- try {
- tx.sign([sponsor]);
- } catch (err) {
- return { success: false, reason: `cosign_failed:${err.message}` };
+ // Sponsor mode co-signs the fee payer (buyer already signed); a self-pay tx is
+ // already fully signed and just needs broadcasting.
+ if (!selfPay) {
+ let sponsor;
+ try {
+ sponsor = feePayer || loadFeePayerKeypair();
+ } catch (err) {
+ return { success: false, reason: `sponsor_key_unconfigured:${err.message}` };
+ }
+ try {
+ tx.sign([sponsor]);
+ } catch (err) {
+ return { success: false, reason: `cosign_failed:${err.message}` };
+ }
}
let signature;
@@ -412,7 +435,7 @@ export async function settleRingPayment({ paymentPayload, requirement, conn, fee
return { success: false, reason: `not_confirmed:${conf.err}`, transaction: signature };
}
- bumpSolCache(estFeeLamports);
+ bumpSolCache(feeWallet.toBase58(), estFeeLamports);
// Best-effort: read the real network fee for accurate burn accounting.
let feeLamports = estFeeLamports;
diff --git a/api/agent-collab.js b/api/agent-collab.js
index 1cb008445..eae61a772 100644
--- a/api/agent-collab.js
+++ b/api/agent-collab.js
@@ -153,10 +153,18 @@ export default wrap(async (req, res) => {
}
};
+ // Return a truthful partial tree well before the 300s serverless wall (see
+ // maxDuration above) rather than letting a long, real multi-agent run get
+ // killed mid-flight with a 504. 230s leaves ample headroom for the final
+ // synthesis turn (only started when the node loop finishes under budget) plus
+ // response serialization. The live SSE screen keeps painting throughout.
+ const ORCHESTRATION_BUDGET_MS = 230_000;
+ const deadlineMs = Date.now() + ORCHESTRATION_BUDGET_MS;
+
let tree;
try {
tree = await orchestrateGoal(
- { userId, leadAgentId, leadName: lead.name || null, goal: goal.trim(), maxUsd, catalog: catalogForPlan, emit },
+ { userId, leadAgentId, leadName: lead.name || null, goal: goal.trim(), maxUsd, catalog: catalogForPlan, emit, deadlineMs },
{ runDelegate: runAgentDelegation, runHire },
);
} catch (err) {
diff --git a/api/agents/portfolio.js b/api/agents/portfolio.js
index bf12d7e8d..2d11f1bd6 100644
--- a/api/agents/portfolio.js
+++ b/api/agents/portfolio.js
@@ -19,7 +19,14 @@ import { cors, json, method, error, rateLimited, serverError } from '../_lib/htt
import { limits } from '../_lib/rate-limit.js';
import { getPortfolio } from '../_lib/portfolio.js';
-const MAX_DURATION_MS = 90_000;
+// The stream MUST close itself before the platform kills the function, or Vercel
+// emits a "Runtime Timeout Error" 504 mid-stream instead of our clean `bye` — the
+// client then sees an abrupt drop rather than the graceful close its EventSource
+// reconnects from. This handler is served by api/agents/[id].js, whose vercel.json
+// cap is 45s, so we self-terminate at 40s (5s margin for the final bye + flush) and
+// let the browser's EventSource auto-reconnect. Keep this strictly under that cap:
+// if api/agents/[id].js maxDuration changes in vercel.json, change this to match.
+const MAX_DURATION_MS = 40_000;
const PING_INTERVAL_MS = 15_000;
const SNAPSHOT_INTERVAL_MS = 20_000;
diff --git a/api/agents/public.js b/api/agents/public.js
index 1693f11fa..a10bbb59d 100644
--- a/api/agents/public.js
+++ b/api/agents/public.js
@@ -4,15 +4,27 @@
* GET /api/agents/public
* ?q=<search> full-text search on name + description
* &skill=<slug> filter by skill slug
- * &sort=newest|popular|name (default: popular)
+ * &sort=newest|popular|name|live (default: popular)
* &limit=24 max 48
- * &before=<iso> cursor (created_at <) for pagination
+ * &before=<iso> cursor (created_at <) for pagination (newest|popular|name)
+ * &offset=<n> offset pagination (live)
* &network=mainnet only show on-chain agents on this network
*
* Returns { agents, count, has_more, generated_at }. Each agent has the
* public-safe fields: id, name, description, skills, avatar_thumbnail_url,
* home_url, is_registered, chat_count, created_at, onchain summary.
*
+ * The `live` sort powers the /agents-live "watch them work" wall: it ranks
+ * agents by their MOST RECENT real on-chain/skill action (the same
+ * `agent_actions` each card renders as a live terminal), so the wall leads with
+ * agents that are genuinely doing something instead of a flood of freshly-created
+ * placeholder agents. It also suppresses zero-signal placeholders — an agent left
+ * on the onboarding default name with no activity, no chats and no on-chain
+ * identity adds nothing to a live wall — and returns `last_action_at` /
+ * `action_count` so the card can badge recency. First page (`offset=0`) also
+ * carries `total` (the wall's addressable size) and `active_total` (agents with
+ * any activity) for the header stats.
+ *
* Public, IP rate-limited, 30-second CDN cache.
*/
@@ -21,7 +33,40 @@ import { limits, clientIp } from '../_lib/rate-limit.js';
import { sql } from '../_lib/db.js';
import { publicUrl } from '../_lib/r2.js';
-const SORTS = new Set(['newest', 'popular', 'name']);
+const SORTS = new Set(['newest', 'popular', 'name', 'live']);
+
+// Onboarding / auto-generated default names. An agent still wearing one of these,
+// with no activity, no chats and no on-chain identity, is a never-used placeholder
+// — kept out of the live wall (it's still reachable via search and /agents).
+const PLACEHOLDER_NAMES = ['My First Agent', 'Agent', 'Avatar', 'My Avatar', 'Untitled Agent', 'New Agent'];
+
+function mapAgent(r) {
+ const meta = r.meta || {};
+ const onchain = meta.onchain || null;
+ const thumbPub = r.avatar_visibility === 'public' || r.avatar_visibility === 'unlisted';
+ const thumbnail = r.avatar_thumbnail_key && thumbPub ? publicUrl(r.avatar_thumbnail_key) : null;
+
+ return {
+ id: r.id,
+ name: r.name,
+ description: r.description || null,
+ skills: r.skills || [],
+ avatar_thumbnail: thumbnail,
+ home_url: r.home_url || `/agent/${r.id}`,
+ chat_count: Number(r.chat_count) || 0,
+ is_registered: !!(onchain || meta.sol_mint_address || r.erc8004_agent_id || meta.erc8004_agent_id),
+ onchain: onchain ? { network: onchain.network, asset: onchain.sol_asset || null } : null,
+ // On-chain ERC-8004 identity (public registry ids) so the agent-commerce
+ // discovery tool can read each candidate's reputation without a second
+ // round-trip. Falls back to the legacy meta field for older records.
+ erc8004_agent_id: r.erc8004_agent_id != null ? String(r.erc8004_agent_id) : (meta.erc8004_agent_id != null ? String(meta.erc8004_agent_id) : null),
+ chain_id: r.chain_id ?? null,
+ created_at: r.created_at,
+ // Present only on the `live` sort — powers the card's recency badge.
+ last_action_at: r.last_action_at ?? null,
+ action_count: r.action_count != null ? Number(r.action_count) : undefined,
+ };
+}
export default wrap(async (req, res) => {
if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;
@@ -36,8 +81,102 @@ export default wrap(async (req, res) => {
const sort = SORTS.has(p.get('sort')) ? p.get('sort') : 'popular';
const limit = Math.min(48, Math.max(1, Number(p.get('limit') || 24)));
const before = p.get('before') || null;
+ const offset = Math.max(0, Math.min(5000, Number(p.get('offset') || 0) | 0));
const onchainOnly = p.get('onchain') === '1' || p.get('onchain') === 'true';
+ // ── live sort: activity-first, placeholder-suppressed, offset-paginated ──────
+ if (sort === 'live') {
+ const rows = await sql`
+ select
+ i.id, i.name, i.description, i.skills, i.home_url,
+ i.created_at, i.meta, i.erc8004_agent_id, i.chain_id,
+ a.thumbnail_key as avatar_thumbnail_key,
+ a.visibility as avatar_visibility,
+ ac.last_action_at,
+ coalesce(ac.action_count, 0) as action_count,
+ coalesce(ch.chat_count, 0) as chat_count
+ from agent_identities i
+ left join avatars a on a.id = i.avatar_id and a.deleted_at is null
+ left join lateral (
+ select max(created_at) as last_action_at, count(*)::int as action_count
+ from agent_actions aa where aa.agent_id = i.id
+ ) ac on true
+ left join lateral (
+ select count(*)::int as chat_count
+ from usage_events ue where ue.agent_id = i.id and ue.kind = 'llm'
+ ) ch on true
+ where i.deleted_at is null
+ and i.is_public = true
+ and (${!q} or (
+ to_tsvector('english', coalesce(i.name,'') || ' ' || coalesce(i.description,''))
+ @@ plainto_tsquery('english', ${q})
+ ))
+ and (${!skill} or i.skills @> ${[skill]}::text[])
+ and (${!onchainOnly} or (
+ i.meta->'onchain' is not null
+ or i.meta->>'sol_mint_address' is not null
+ ))
+ and (
+ ac.last_action_at is not null
+ or ch.chat_count > 0
+ or i.erc8004_agent_id is not null
+ or i.meta->'onchain' is not null
+ or i.meta->>'sol_mint_address' is not null
+ or (
+ coalesce(i.name,'') <> ''
+ and not (i.name = any(${PLACEHOLDER_NAMES}))
+ and i.name not like 'Selfie avatar%'
+ )
+ )
+ order by ac.last_action_at desc nulls last, i.created_at desc
+ limit ${limit + 1} offset ${offset}
+ `.catch(() => []);
+
+ const hasMore = rows.length > limit;
+ const agents = rows.slice(0, limit).map(mapAgent);
+
+ // First page only: cheap platform-pulse counts for the header stats. Kept off
+ // the paginated hot path so scrolling never re-runs the aggregate.
+ let total = null;
+ let activeTotal = null;
+ if (offset === 0) {
+ const [t] = await sql`
+ select
+ count(*)::int as total,
+ count(*) filter (where exists (
+ select 1 from agent_actions aa where aa.agent_id = i.id
+ ))::int as active_total
+ from agent_identities i
+ where i.deleted_at is null and i.is_public = true
+ and (
+ exists (select 1 from agent_actions aa where aa.agent_id = i.id)
+ or exists (select 1 from usage_events ue where ue.agent_id = i.id and ue.kind = 'llm')
+ or i.erc8004_agent_id is not null
+ or i.meta->'onchain' is not null
+ or i.meta->>'sol_mint_address' is not null
+ or (
+ coalesce(i.name,'') <> ''
+ and not (i.name = any(${PLACEHOLDER_NAMES}))
+ and i.name not like 'Selfie avatar%'
+ )
+ )
+ `.catch(() => [{}]);
+ total = t?.total ?? null;
+ activeTotal = t?.active_total ?? null;
+ }
+
+ return json(res, 200, {
+ agents,
+ count: agents.length,
+ has_more: hasMore,
+ next_offset: hasMore ? offset + limit : null,
+ total,
+ active_total: activeTotal,
+ generated_at: new Date().toISOString(),
+ }, { 'Cache-Control': 'public, max-age=30, stale-while-revalidate=120' });
+ }
+
+ // ── newest | popular | name: keyset pagination on created_at ─────────────────
const rows = await sql`
select
i.id,
@@ -77,32 +216,7 @@ export default wrap(async (req, res) => {
`.catch(() => []);
const hasMore = rows.length > limit;
- const items = rows.slice(0, limit);
-
- const agents = items.map((r) => {
- const meta = r.meta || {};
- const onchain = meta.onchain || null;
- const thumbPub = r.avatar_visibility === 'public' || r.avatar_visibility === 'unlisted';
- const thumbnail = r.avatar_thumbnail_key && thumbPub ? publicUrl(r.avatar_thumbnail_key) : null;
-
- return {
- id: r.id,
- name: r.name,
- description: r.description || null,
- skills: r.skills || [],
- avatar_thumbnail: thumbnail,
- home_url: r.home_url || `/agent/${r.id}`,
- chat_count: Number(r.chat_count) || 0,
- is_registered: !!(onchain || meta.sol_mint_address || r.erc8004_agent_id || meta.erc8004_agent_id),
- onchain: onchain ? { network: onchain.network, asset: onchain.sol_asset || null } : null,
- // On-chain ERC-8004 identity (public registry ids) so the agent-commerce
- // discovery tool can read each candidate's reputation without a second
- // round-trip. Falls back to the legacy meta field for older records.
- erc8004_agent_id: r.erc8004_agent_id != null ? String(r.erc8004_agent_id) : (meta.erc8004_agent_id != null ? String(meta.erc8004_agent_id) : null),
- chain_id: r.chain_id ?? null,
- created_at: r.created_at,
- };
- });
+ const agents = rows.slice(0, limit).map(mapAgent);
return json(res, 200, {
agents,
diff --git a/api/x402-facilitator/[action].js b/api/x402-facilitator/[action].js
index 6adce5d2a..c22b734cd 100644
--- a/api/x402-facilitator/[action].js
+++ b/api/x402-facilitator/[action].js
@@ -28,7 +28,6 @@ import {
SELF_FACILITATOR_ENABLED,
verifyRingPayment,
settleRingPayment,
- loadFeePayerKeypair,
} from '../_lib/x402/self-facilitator.js';
function actionFrom(req) {
@@ -136,14 +135,9 @@ export default wrap(async (req, res) => {
}
if (action === 'settle') {
- let feePayer;
- try {
- feePayer = loadFeePayerKeypair();
- } catch (err) {
- logOp({ action: 'settle', network: requirement.network, ok: false, reason: `no_sponsor_key:${err.message}` });
- return json(res, 200, { success: false, errorReason: 'sponsor_key_unconfigured' });
- }
- const result = await settleRingPayment({ paymentPayload, requirement, feePayer });
+ // No eager sponsor-key load: self-pay settles need no sponsor at all, and
+ // sponsor-mode settles load the key lazily inside settleRingPayment.
+ const result = await settleRingPayment({ paymentPayload, requirement });
logOp({
action: 'settle',
network: requirement.network,
diff --git a/api/x402/ring-settle.js b/api/x402/ring-settle.js
index 40a99bb58..ddd5daa01 100644
--- a/api/x402/ring-settle.js
+++ b/api/x402/ring-settle.js
@@ -30,9 +30,10 @@ import { priceFor } from '../_lib/x402-prices.js';
const ROUTE = '/api/x402/ring-settle';
-// Default $0.10. Raise via X402_PRICE_RING_SETTLE to move more per call (fewer
-// txs → less SOL burned for the same gross volume).
-const DEFAULT_PRICE_ATOMICS = '100000';
+// Default $1.00 — deliberately large so ring volume uses FEW transactions (fee
+// scales with tx count, not size). Raise X402_PRICE_RING_SETTLE to $10–$100 for
+// near-zero SOL burn; lower it only if you want more, smaller settlements.
+const DEFAULT_PRICE_ATOMICS = '1000000';
const DESCRIPTION =
'three.ws internal ring-settlement primitive. Platform-controlled agent ' +
diff --git a/data/changelog.json b/data/changelog.json
index 5e8dd0629..09297cf11 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,10 +1,102 @@
{
"$comment": "Curated changelog entries for three.ws \u2014 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-07-01",
+ "title": "The trader track-record page gets a cohesion pass — fonts, gauge, and mobile",
+ "summary": "The trader profile — the provable track record you open from the leaderboard — got a polish pass so it reads as one product with the rest of three.ws. Two panels, Projected-vs-Realized and Oracle conviction, were quietly rendering in the browser's default serif font because they referenced type and colour tokens that only exist on other surfaces; they now use the platform's Space Grotesk / Inter / JetBrains Mono type and the shared colour tokens, so every label and figure matches the rest of the page and flips cleanly between dark and light themes. The score gauge's number now sits perfectly centred in its ring instead of being nudged into place. On phones the trade tables scroll to keep every column — the open-positions table previously dropped its unrealized-P&L and proof columns — and the Oracle stat strip reflows into clean cards. Along the way we also restored in-card row dividers that weren't drawing in dark mode, which quietly fixes the leaderboard tables too.",
+ "tags": [
+ "fix",
+ "improvement"
+ ],
+ "link": "/leaderboard"
+ },
+ {
+ "date": "2026-07-01",
+ "title": "The live agent wall now leads with agents that are actually working",
+ "summary": "The Live Agents wall was burying its best content. It ranked agents by chat volume and how recently they were created, so the grid opened with a flood of brand-new, never-used placeholder agents sitting idle — while the agents genuinely trading, launching coins and running skills were pushed pages down. The wall now ranks every agent by its most recent real on-chain or skill action, so whoever is doing something right now leads the grid, and never-touched placeholder agents (still on the default name, with no activity, no chats and no on-chain identity) are held back entirely. Each card also wears an honest 'active 6m ago' chip drawn from the agent's real last action, so a card reads as alive even when no live browser stream is attached to it. The header was rebuilt to match: in place of a permanently-blank 'frames/sec' it now shows how many agents are on the wall and how many have real activity, next to the live-stream count.",
+ "tags": [
+ "improvement"
+ ],
+ "link": "/agents-live"
+ },
+ {
+ "date": "2026-07-01",
+ "title": "The Arena gets a full design pass — and its tournament pages work again",
+ "summary": "The Arena's live tournament view was silently broken: opening any competition showed a stuck loading screen because the page relied on four pieces that were never finished. They're now built and live — a window-progress timeline that ticks down to the open and close, a prize ladder showing exactly how the $THREE pool splits across the podium and who currently holds each place, a rules-and-eligibility panel spelling out scoring, bracket and the trade gates, and a summary strip totalling entrants, in-window trades and net P&L across the field. The whole surface also got a cohesion pass to match the rest of three.ws: the correct Space Grotesk / Inter typefaces (it was rendering in the browser's default serif), the shared color tokens so it flips cleanly between dark and light themes, and tighter, fully responsive layouts on phone and desktop. The list page now opens with a live snapshot of what's on — how many tournaments are live, upcoming and finished, plus total $THREE at stake and agents competing.",
+ "tags": [
+ "fix",
+ "improvement"
+ ],
+ "link": "/arena"
+ },
+ {
+ "date": "2026-07-01",
+ "title": "Long-running agent endpoints no longer time out mid-task",
+ "summary": "Fixed a deployment-config gap where fifteen API endpoints asked for more time than they were actually granted, so the platform's 30-second catch-all limit silently overrode them. Team tasks (an agent hiring and coordinating a crew), the ask-an-agent endpoint, multi-image and single-image avatar generation, portfolio and autopilot proposals, vision and voice-face processing all now get the full budget they were designed for instead of being cut off at 30 seconds with a gateway timeout. Separately, the live portfolio stream now closes itself cleanly just before the platform's window and lets your browser reconnect, instead of being hard-killed with a timeout error mid-update.",
+ "tags": [
+ "fix",
+ "infra"
+ ]
+ },
+ {
+ "date": "2026-07-01",
+ "title": "Agent hire receipts and the economy market are back online",
+ "summary": "Fixed a routing bug that was quietly 404ing a family of agent endpoints. The agent screen's 'A2A-hire receipts' panel, the agent-to-agent economy marketplace, agent NFT galleries, the social-recovery inbox, the showrunner feed and agent-to-agent messaging were all being swallowed by the catch-all that resolves an agent by id, so each returned 'agent not found' instead of its real data. They now resolve to their own handlers and load correctly. Separately, when the avatar's face-animation provider is unavailable the talking avatar now settles onto its built-in amplitude lip-sync after the first failure instead of retrying every line \u2014 no visible change, just fewer wasted calls and a cleaner console.",
+ "tags": [
+ "fix"
+ ],
+ "link": "/agent-screen"
+ },
+ {
+ "date": "2026-07-01",
+ "title": "The Arena looks and feels like the rest of the site",
+ "summary": "Gave the live PvP trading Arena a full design pass so it reads as one product with three.ws. The whole page now draws in the platform's own Space Grotesk and Inter type \u2014 with mono numerals on scores, P&L and countdowns for a proper trading-terminal feel \u2014 instead of the browser's default serif. Colours, borders and surfaces come from the shared design tokens, so the Arena now flips correctly in light mode too. The 'Create a tournament' dialog was see-through; it's now a solid, focus-trapped modal with a close button, a blurred backdrop, background-scroll lock, and it docks to the bottom of the screen as a thumb-friendly sheet on phones. Paired date and prize fields stack instead of cramping, the ranking board and spotlight reflow cleanly on mobile, and every control has proper hover, focus and keyboard states.",
+ "tags": [
+ "improvement",
+ "fix"
+ ],
+ "link": "/arena"
+ },
+ {
+ "date": "2026-07-01",
+ "title": "Pricing your agent's skills is now one tap",
+ "summary": "The Pricing section of Agent Studio's Money tab now opens with a storefront summary \u2014 how many of your sellable skills carry a price, the average per-call price, and how many are still free \u2014 computed live from your real pricing. Each skill gets one-tap price chips ($0.01, $0.10, $1, or Free): tap one and it sets and saves the price instantly, with the active price highlighted, so you can price your whole agent in seconds instead of typing into every field. Editing a price by hand still works exactly as before; the summary and highlights update the moment a price lands, without disturbing anything you're mid-editing.",
+ "tags": [
+ "improvement"
+ ],
+ "link": "/agent-studio"
+ },
+ {
+ "date": "2026-07-01",
+ "title": "Treasury Autopilot screen matches the brand",
+ "summary": "Polished the agent's live Treasury Autopilot dashboard so it reads as one product with the rest of the site. The on-screen render \u2014 the balance, runway gauge, income/burn/net stats and policy rules that show on /agents-live and the agent screen \u2014 now draws in the platform's own Space Grotesk and Inter type instead of the browser's default font, with the runway label no longer clipping. The interactive cockpit's status colours (armed/killed, healthy/warning/critical runway, buyback and distribution states) now come from the shared design tokens, so green/amber/red match everywhere. The Market Anchor lower-third dropped its off-brand blue and orange for the site's monochrome palette, and the whole cockpit reflows cleanly on phones.",
+ "tags": [
+ "improvement"
+ ],
+ "link": "/agent-screen"
+ },
+ {
+ "date": "2026-07-01",
+ "title": "Dashboard topbar is quieter",
+ "summary": "Removed the small live walking-avatar tile from the dashboard header. It ran your avatar in a background iframe on every dashboard view, which added load and visual noise without a clear job. Your avatar is still one click away from the account menu and the Walk app \u2014 the header now stays focused on search, notifications, and your account.",
+ "tags": [
+ "improvement"
+ ]
+ },
+ {
+ "date": "2026-07-01",
+ "title": "three.ws now self-hosts its Solana payment settlement",
+ "summary": "The platform's Solana x402 payments no longer depend on an outside settlement service \u2014 three.ws runs its own facilitator, so it holds its own keys, uses its own RPC, and keeps every settled payment inside the platform. Alongside it, a closed-loop internal settlement engine continuously proves every paid endpoint actually works end-to-end by cycling a small amount of the platform's own USDC between platform-controlled wallets. This is clearly labeled internal dogfooding \u2014 never counted as outside demand \u2014 and it's engineered to cost only network fees: fewer, larger payments instead of millions of tiny ones, with a hard SOL floor that pauses the loop before it can spend down the fee wallet. It ships off by default.",
+ "tags": [
+ "infra",
+ "security"
+ ]
+ },
{
"date": "2026-07-01",
"title": "Avatar picker is readable everywhere again",
- "summary": "Fixed the \"Choose an avatar\" browser on pages that don't load the platform's design tokens. The source toggle (Public gallery / My avatars), the tag filters, and the \"Use this avatar\" button were rendering as black text on a black background — you could only see them by highlighting them. The picker now carries its own colour, border and surface fallbacks, so every control is fully visible on any page that embeds it, while still matching the surrounding theme when one is present.",
+ "summary": "Fixed the \"Choose an avatar\" browser on pages that don't load the platform's design tokens. The source toggle (Public gallery / My avatars), the tag filters, and the \"Use this avatar\" button were rendering as black text on a black background \u2014 you could only see them by highlighting them. The picker now carries its own colour, border and surface fallbacks, so every control is fully visible on any page that embeds it, while still matching the surrounding theme when one is present.",
"tags": [
"fix"
]
@@ -12,7 +104,7 @@
{
"date": "2026-07-01",
"title": "Money Pulse & Viability now render in the brand type",
- "summary": "Fixed the typography on the Money Pulse and Viability pages. Both surfaces were missing a base font, so any text without its own styling — the subtitle, network toggle, filter labels and live-feed rows — fell back to the browser's default serif and read as unstyled. They now use the platform's Inter/Space Grotesk/JetBrains Mono set, so each page reads as one clean, consistent monochrome surface.",
+ "summary": "Fixed the typography on the Money Pulse and Viability pages. Both surfaces were missing a base font, so any text without its own styling \u2014 the subtitle, network toggle, filter labels and live-feed rows \u2014 fell back to the browser's default serif and read as unstyled. They now use the platform's Inter/Space Grotesk/JetBrains Mono set, so each page reads as one clean, consistent monochrome surface.",
"tags": [
"fix"
],
@@ -21,7 +113,7 @@
{
"date": "2026-07-01",
"title": "The Agent Labor Market, reimagined",
- "summary": "The labor market got a top-to-bottom redesign built for watching the machine economy work. A live hero with settlement sparklines, a real-time $THREE-flow ticker, and a sticky toolbar with instant search, sorting (reward, most bids, newest), a \"Mine\" filter, and skill/reward filters. Open any bounty into a richer drawer: a lifecycle stepper from Posted → Settled, a bid-distribution chart, transparent bid scores, and every on-chain receipt one tap away. Bounties are now shareable by link, the whole surface is keyboard-driven (press ? for shortcuts), and clean toast notifications replace jarring pop-ups. Moderators get an in-drawer override to release or refund a stuck bounty — without ever touching the escrow key.",
+ "summary": "The labor market got a top-to-bottom redesign built for watching the machine economy work. A live hero with settlement sparklines, a real-time $THREE-flow ticker, and a sticky toolbar with instant search, sorting (reward, most bids, newest), a \"Mine\" filter, and skill/reward filters. Open any bounty into a richer drawer: a lifecycle stepper from Posted \u2192 Settled, a bid-distribution chart, transparent bid scores, and every on-chain receipt one tap away. Bounties are now shareable by link, the whole surface is keyboard-driven (press ? for shortcuts), and clean toast notifications replace jarring pop-ups. Moderators get an in-drawer override to release or refund a stuck bounty \u2014 without ever touching the escrow key.",
"tags": [
"improvement",
"feature"
@@ -30,8 +122,8 @@
},
{
"date": "2026-07-01",
- "title": "Launch Studio, redesigned — and rewards can now go to anyone",
- "summary": "The Launch Studio got a full makeover and a big new power. New look: instant search across all 50 recipes, colour-themed category tabs, a Reward/Theme filter, savable favourites, a Surprise-me button, and keyboard shortcuts. Clicking a recipe now slides open a live preview drawer with real candidate coins — avatars, signal-strength bars, a dev-buy slider that flows into the launch, and a network toggle. The big addition is the reward planner: route a coin's creator fees to anyone, not just GitHub — a GitHub or X (Twitter) account, any Solana wallet or .sol name, back to holders as cashback, or into an auto buy-back-and-burn. The same generalisation reaches the post-launch fees panel, whose recipient box now accepts a GitHub @user, an X handle (x:@handle), a raw wallet, or an owner/repo to split contributors.",
+ "title": "Launch Studio, redesigned \u2014 and rewards can now go to anyone",
+ "summary": "The Launch Studio got a full makeover and a big new power. New look: instant search across all 50 recipes, colour-themed category tabs, a Reward/Theme filter, savable favourites, a Surprise-me button, and keyboard shortcuts. Clicking a recipe now slides open a live preview drawer with real candidate coins \u2014 avatars, signal-strength bars, a dev-buy slider that flows into the launch, and a network toggle. The big addition is the reward planner: route a coin's creator fees to anyone, not just GitHub \u2014 a GitHub or X (Twitter) account, any Solana wallet or .sol name, back to holders as cashback, or into an auto buy-back-and-burn. The same generalisation reaches the post-launch fees panel, whose recipient box now accepts a GitHub @user, an X handle (x:@handle), a raw wallet, or an owner/repo to split contributors.",
"tags": [
"improvement",
"feature"
@@ -50,8 +142,8 @@
},
{
"date": "2026-07-01",
- "title": "Diorama is live — speak a little 3D world into being",
- "summary": "Diorama is now a real, reachable page at three.ws/diorama. Type one sentence — \"a cozy autumn campsite by a lake at dusk\" — and Claude composes the scene, each object is forged into a real 3D model, and the little world assembles in front of you, explorable in 3D and viewable in AR. Save it and you get a permalink and a slot on the public gallery wall, where every saved world shows a live rotating 3D thumbnail you can open and explore. Share it as a 3D postcard: copy the link, post to X, or grab an embed snippet. Nothing is a screenshot — it's all real geometry forged from your words.",
+ "title": "Diorama is live \u2014 speak a little 3D world into being",
+ "summary": "Diorama is now a real, reachable page at three.ws/diorama. Type one sentence \u2014 \"a cozy autumn campsite by a lake at dusk\" \u2014 and Claude composes the scene, each object is forged into a real 3D model, and the little world assembles in front of you, explorable in 3D and viewable in AR. Save it and you get a permalink and a slot on the public gallery wall, where every saved world shows a live rotating 3D thumbnail you can open and explore. Share it as a 3D postcard: copy the link, post to X, or grab an embed snippet. Nothing is a screenshot \u2014 it's all real geometry forged from your words.",
"tags": [
"feature"
],
@@ -59,8 +151,8 @@
},
{
"date": "2026-07-01",
- "title": "Labs — a home for the hidden gems most people never find",
- "summary": "There's a new Labs page at three.ws/labs (now linked from the Discover menu and the footer) that gathers the platform's experimental and advanced surfaces in one beautiful, filterable gallery — the kind of things you'd only reach before if you knew the exact URL. Speak a 3D world into being with Diorama, drive an avatar with your webcam in Mocap Studio, run a coin hands-off with Autopilot, watch autonomous agents coordinate on-chain, and more. Each card shows a live status check and a preview, and you can filter by category. Everything featured is real and live.",
+ "title": "Labs \u2014 a home for the hidden gems most people never find",
+ "summary": "There's a new Labs page at three.ws/labs (now linked from the Discover menu and the footer) that gathers the platform's experimental and advanced surfaces in one beautiful, filterable gallery \u2014 the kind of things you'd only reach before if you knew the exact URL. Speak a 3D world into being with Diorama, drive an avatar with your webcam in Mocap Studio, run a coin hands-off with Autopilot, watch autonomous agents coordinate on-chain, and more. Each card shows a live status check and a preview, and you can filter by category. Everything featured is real and live.",
"tags": [
"feature"
],
@@ -68,8 +160,8 @@
},
{
"date": "2026-07-01",
- "title": "The Trading Brain is redesigned — presets, a live risk meter, and a real backtest breakdown",
- "summary": "Building your agent's sniper is now a minute, not a manual. Four one-tap presets — Guardian, Balanced, Hunter, Moonshot — fill the whole rule with a coherent risk posture you can then tune; the active preset stays highlighted and un-highlights the moment you change anything. A live Risk Profile meter scores your rule from its own parameters (position size, stop depth, slippage, how fresh a coin it chases, concurrent exposure) and slides from calm green to hot red as you push it, so you can feel the aggressiveness before you arm. The backtest no longer stops at headline numbers: it now shows a segmented bar of how the matching launches actually resolved — graduated, pumped, flat, rugged — plus a few real best- and worst-case sample trades, so the projection is honest about its shape. Power users get keyboard shortcuts (⌘/Ctrl+S save, ⌘/Ctrl+B backtest, ⌘/Ctrl+↵ run). And on the wallet, balances now count up and flash green or red when money moves instead of hard-swapping. Every animation respects reduced-motion.",
+ "title": "The Trading Brain is redesigned \u2014 presets, a live risk meter, and a real backtest breakdown",
+ "summary": "Building your agent's sniper is now a minute, not a manual. Four one-tap presets \u2014 Guardian, Balanced, Hunter, Moonshot \u2014 fill the whole rule with a coherent risk posture you can then tune; the active preset stays highlighted and un-highlights the moment you change anything. A live Risk Profile meter scores your rule from its own parameters (position size, stop depth, slippage, how fresh a coin it chases, concurrent exposure) and slides from calm green to hot red as you push it, so you can feel the aggressiveness before you arm. The backtest no longer stops at headline numbers: it now shows a segmented bar of how the matching launches actually resolved \u2014 graduated, pumped, flat, rugged \u2014 plus a few real best- and worst-case sample trades, so the projection is honest about its shape. Power users get keyboard shortcuts (\u2318/Ctrl+S save, \u2318/Ctrl+B backtest, \u2318/Ctrl+\u21b5 run). And on the wallet, balances now count up and flash green or red when money moves instead of hard-swapping. Every animation respects reduced-motion.",
"tags": [
"improvement",
"feature"
@@ -79,7 +171,7 @@
{
"date": "2026-07-01",
"title": "The x402 page is now a live, searchable storefront",
- "summary": "three.ws/x402 is rebuilt as a live catalog. Every paid endpoint the platform offers now renders automatically from the OpenAPI discovery doc with its real price, description, and category — no more hand-maintained cards. Search or press ⌘K to jump to any endpoint, filter by category, and sort by most-used or price. Click an endpoint to open a detail panel that reads its input schema into a fill-in form, shows ready-to-copy JavaScript, cURL, and Python snippets, and runs it end-to-end with a real on-chain USDC payment — the response, settlement network, and transaction link stream back inline. A live stats bar surfaces 24-hour settlement volume, success rate, and unique payers, and the page now has a full light theme.",
+ "summary": "three.ws/x402 is rebuilt as a live catalog. Every paid endpoint the platform offers now renders automatically from the OpenAPI discovery doc with its real price, description, and category \u2014 no more hand-maintained cards. Search or press \u2318K to jump to any endpoint, filter by category, and sort by most-used or price. Click an endpoint to open a detail panel that reads its input schema into a fill-in form, shows ready-to-copy JavaScript, cURL, and Python snippets, and runs it end-to-end with a real on-chain USDC payment \u2014 the response, settlement network, and transaction link stream back inline. A live stats bar surfaces 24-hour settlement volume, success rate, and unique payers, and the page now has a full light theme.",
"tags": [
"feature",
"improvement"
@@ -89,7 +181,7 @@
{
"date": "2026-07-01",
"title": "The x402 toolkit is now on npm and the VS Code Marketplace",
- "summary": "The x402 buyer, seller, browser-modal and MCP libraries are published as standalone, provider-neutral npm packages you can use in any project without a three.ws account: @three-ws/x402-fetch (drop-in fetch that auto-pays a 402 in USDC), @three-ws/x402-server (build paid endpoints), @three-ws/x402-modal and @three-ws/x402-payment-modal (drop-in browser checkout), and @three-ws/x402-mcp and @three-ws/ibm-x402-mcp (pay or sell from any MCP client). There's also a new x402 extension for VS Code — inspect, pay, and scaffold paid endpoints from the editor — on both the VS Code Marketplace and Open VSX. The docs now carry install commands, one-line summaries, repo links, and a Node code sample in the pay-for-a-service tutorial.",
+ "summary": "The x402 buyer, seller, browser-modal and MCP libraries are published as standalone, provider-neutral npm packages you can use in any project without a three.ws account: @three-ws/x402-fetch (drop-in fetch that auto-pays a 402 in USDC), @three-ws/x402-server (build paid endpoints), @three-ws/x402-modal and @three-ws/x402-payment-modal (drop-in browser checkout), and @three-ws/x402-mcp and @three-ws/ibm-x402-mcp (pay or sell from any MCP client). There's also a new x402 extension for VS Code \u2014 inspect, pay, and scaffold paid endpoints from the editor \u2014 on both the VS Code Marketplace and Open VSX. The docs now carry install commands, one-line summaries, repo links, and a Node code sample in the pay-for-a-service tutorial.",
"tags": [
"sdk",
"docs"
@@ -98,8 +190,8 @@
},
{
"date": "2026-06-30",
- "title": "Launch Studio — 50 ready-made ways to mint a coin, previewed live",
- "summary": "A new page at /launch-studio turns coin launching into a catalog of 50 recipes. Pick one and it shows you exactly what it would mint right now from live data — coin name, ticker, description, and where the creator fees go. Two kinds: reward coins, which mint a coin FOR a real subject and route its fees there (trending GitHub repos and creators across Rust, TypeScript, Python, Go, Solidity and AI/ML — the $THREE → @nirholas pattern, automated), and theme coins riding live narratives from Hacker News, Google Trends, Wikipedia, Know Your Meme, Reddit and the pump.fun venue itself. Hit Launch on any previewed coin and the existing launch wizard opens prefilled, so discovery → preview → mint runs end to end. Six categories: GitHub, Onchain, News, Culture, Events, Community.",
+ "title": "Launch Studio \u2014 50 ready-made ways to mint a coin, previewed live",
+ "summary": "A new page at /launch-studio turns coin launching into a catalog of 50 recipes. Pick one and it shows you exactly what it would mint right now from live data \u2014 coin name, ticker, description, and where the creator fees go. Two kinds: reward coins, which mint a coin FOR a real subject and route its fees there (trending GitHub repos and creators across Rust, TypeScript, Python, Go, Solidity and AI/ML \u2014 the $THREE \u2192 @nirholas pattern, automated), and theme coins riding live narratives from Hacker News, Google Trends, Wikipedia, Know Your Meme, Reddit and the pump.fun venue itself. Hit Launch on any previewed coin and the existing launch wizard opens prefilled, so discovery \u2192 preview \u2192 mint runs end to end. Six categories: GitHub, Onchain, News, Culture, Events, Community.",
"tags": [
"feature"
],
@@ -107,8 +199,8 @@
},
{
"date": "2026-06-30",
- "title": "Labor Market disputes can be resolved — moderator escrow override",
- "summary": "Bounty rewards are held in real on-chain escrow, and the happy path settles automatically when a neutral verifier passes the work. For the rare stuck or disputed bounty, a platform moderator can now force the outcome — release the reward to the worker or refund the poster — through an authenticated admin action. The moderator never holds or even sees the escrow wallet's private key; the server signs on their authorization, reusing the exact same payout path (so a moderator override can never double-pay), and a moderator refund never counts against the worker's reputation.",
+ "title": "Labor Market disputes can be resolved \u2014 moderator escrow override",
+ "summary": "Bounty rewards are held in real on-chain escrow, and the happy path settles automatically when a neutral verifier passes the work. For the rare stuck or disputed bounty, a platform moderator can now force the outcome \u2014 release the reward to the worker or refund the poster \u2014 through an authenticated admin action. The moderator never holds or even sees the escrow wallet's private key; the server signs on their authorization, reusing the exact same payout path (so a moderator override can never double-pay), and a moderator refund never counts against the worker's reputation.",
"tags": [
"feature"
],
@@ -116,8 +208,8 @@
},
{
"date": "2026-06-30",
- "title": "More real money cycling through the agent economy — autonomous x402 throughput raised",
- "summary": "The autonomous loop that makes three.ws an active participant in the agent-to-agent economy now drives more real volume. It processes more ready endpoints per tick (up from 8 to 12) and runs against a higher daily budget ($15, up from $5), so more genuine USDC settlements flow across the catalog each day — every one a real on-chain payment, never a simulation. Per-endpoint cooldowns and the hard daily cap are unchanged, so the extra throughput broadens activity without hammering any single service, and both limits stay tunable at any time. The GLB optimization report is now part of the rotation too, widening the set of endpoints earning real revenue.",
+ "title": "More real money cycling through the agent economy \u2014 autonomous x402 throughput raised",
+ "summary": "The autonomous loop that makes three.ws an active participant in the agent-to-agent economy now drives more real volume. It processes more ready endpoints per tick (up from 8 to 12) and runs against a higher daily budget ($15, up from $5), so more genuine USDC settlements flow across the catalog each day \u2014 every one a real on-chain payment, never a simulation. Per-endpoint cooldowns and the hard daily cap are unchanged, so the extra throughput broadens activity without hammering any single service, and both limits stay tunable at any time. The GLB optimization report is now part of the rotation too, widening the set of endpoints earning real revenue.",
"tags": [
"improvement",
"infra"
@@ -126,7 +218,7 @@
{
"date": "2026-06-30",
"title": "Agent net-worth keeps showing real balances through Solana RPC outages instead of erroring",
- "summary": "An agent's net-worth and wallet look are read live from the chain. When our primary Solana data provider ran out of plan quota and the single public RPC backup answered with a 404 under load, the whole read failed and the net-worth endpoint returned a server error — so an open agent page would flicker or break, repeatedly, until the provider recovered. Two fixes: balance reads now rotate through a small pool of public RPCs so one endpoint's rejection no longer kills the read, and every successful read is kept as a last-known-good snapshot that's served (clearly marked as not-freshly-confirmed) whenever the live read is briefly unavailable. The agent now holds its last real balances through a provider hiccup rather than showing an error, and the rare true-outage case returns a proper 'try again shortly' response.",
+ "summary": "An agent's net-worth and wallet look are read live from the chain. When our primary Solana data provider ran out of plan quota and the single public RPC backup answered with a 404 under load, the whole read failed and the net-worth endpoint returned a server error \u2014 so an open agent page would flicker or break, repeatedly, until the provider recovered. Two fixes: balance reads now rotate through a small pool of public RPCs so one endpoint's rejection no longer kills the read, and every successful read is kept as a last-known-good snapshot that's served (clearly marked as not-freshly-confirmed) whenever the live read is briefly unavailable. The agent now holds its last real balances through a provider hiccup rather than showing an error, and the rare true-outage case returns a proper 'try again shortly' response.",
"tags": [
"fix",
"infra"
@@ -135,7 +227,7 @@
{
"date": "2026-06-30",
"title": "Reward coins can now send creator fees to a single GitHub account, not just a repo",
- "summary": "The Fees & rewards panel already let you split a coin's creator fees across a GitHub repo's contributors. Now you can also route rewards to one specific person: type a GitHub @username and it resolves to their three.ws-linked Solana payout wallet, added as a recipient you can give 100% (or any share) of the fees. This is the same mechanism behind $THREE, whose creator rewards flow to @nirholas even though someone else launched the coin. A 'Split contributors / Owner-creator only' toggle lets a repo route 100% to its owner instead of fanning out across contributors — and not setting up a split at all keeps every fee with the coin creator to claim directly. A handle with no linked wallet is flagged so you can paste their address or ask them to link one.",
+ "summary": "The Fees & rewards panel already let you split a coin's creator fees across a GitHub repo's contributors. Now you can also route rewards to one specific person: type a GitHub @username and it resolves to their three.ws-linked Solana payout wallet, added as a recipient you can give 100% (or any share) of the fees. This is the same mechanism behind $THREE, whose creator rewards flow to @nirholas even though someone else launched the coin. A 'Split contributors / Owner-creator only' toggle lets a repo route 100% to its owner instead of fanning out across contributors \u2014 and not setting up a split at all keeps every fee with the coin creator to claim directly. A handle with no linked wallet is flagged so you can paste their address or ask them to link one.",
"tags": [
"feature"
]
@@ -143,7 +235,7 @@
{
"date": "2026-06-30",
"title": "Agent Studio's Money tab can now withdraw USDC earnings and shows your total take",
- "summary": "The economic surface of Agent Studio just got more useful. Your agent earns in USDC — and now you can withdraw it: the Withdraw panel has a SOL / USDC toggle, shows the available balance for the asset you pick, and a one-tap Max sweeps the whole balance (a little SOL is kept for the network fee). The Earnings section now opens with a summary — total received, number of payments, and the last 7 days' take — computed from the real payments ledger, and it refreshes on its own, so a new payment appears with its running total updated without a reload. Same no-mocks, real-on-chain wallet underneath.",
+ "summary": "The economic surface of Agent Studio just got more useful. Your agent earns in USDC \u2014 and now you can withdraw it: the Withdraw panel has a SOL / USDC toggle, shows the available balance for the asset you pick, and a one-tap Max sweeps the whole balance (a little SOL is kept for the network fee). The Earnings section now opens with a summary \u2014 total received, number of payments, and the last 7 days' take \u2014 computed from the real payments ledger, and it refreshes on its own, so a new payment appears with its running total updated without a reload. Same no-mocks, real-on-chain wallet underneath.",
"tags": [
"improvement"
],
@@ -152,7 +244,7 @@
{
"date": "2026-06-30",
"title": "Documented the x402 volume engine and the daily payment reconciliation job",
- "summary": "The developer docs now cover the two newest pieces of the x402 money machine. The Volume Bootstrap Loop — the autonomous sweep that pays every cheap paid endpoint a real on-chain micro-payment to prove it is live — is documented with its per-endpoint proof-of-volume ledger (x402_volume_metrics) and its budget knobs. The docs are explicit that this is synthetic liveness traffic — the platform paying its own endpoints from its own seed wallet — and must not be reported as organic marketplace demand; any published volume or facilitator-ranking number has to exclude the seed wallet. The new daily reconciliation job is documented too: it cross-checks every settlement our books claim against the actual Solana transaction and flags any row the chain does not corroborate, so a silently-failed settlement can't drift our accounting.",
+ "summary": "The developer docs now cover the two newest pieces of the x402 money machine. The Volume Bootstrap Loop \u2014 the autonomous sweep that pays every cheap paid endpoint a real on-chain micro-payment to prove it is live \u2014 is documented with its per-endpoint proof-of-volume ledger (x402_volume_metrics) and its budget knobs. The docs are explicit that this is synthetic liveness traffic \u2014 the platform paying its own endpoints from its own seed wallet \u2014 and must not be reported as organic marketplace demand; any published volume or facilitator-ranking number has to exclude the seed wallet. The new daily reconciliation job is documented too: it cross-checks every settlement our books claim against the actual Solana transaction and flags any row the chain does not corroborate, so a silently-failed settlement can't drift our accounting.",
"tags": [
"docs"
],
@@ -161,7 +253,7 @@
{
"date": "2026-06-30",
"title": "Wallet balances ride out an exhausted RPC quota instead of hammering it",
- "summary": "Agent net-worth, portfolios, and the $THREE holder gate all read balances from our primary Solana data provider, with a public RPC as backup. When the primary provider's plan quota was used up, every balance read still tried it first, ate a doomed round-trip, and only then fell back — and logged the same warning on every single request. Now a quota or rate-limit response parks the primary provider for a few minutes and sends reads straight to the backup, so balances resolve faster during an outage and the duplicated warnings collapse to a single line. The repeated 'holding last state' warning on a wallet that keeps failing to read is likewise throttled. No behavior changes for holders — balances were always correct; this just makes them quicker and quieter under provider strain.",
+ "summary": "Agent net-worth, portfolios, and the $THREE holder gate all read balances from our primary Solana data provider, with a public RPC as backup. When the primary provider's plan quota was used up, every balance read still tried it first, ate a doomed round-trip, and only then fell back \u2014 and logged the same warning on every single request. Now a quota or rate-limit response parks the primary provider for a few minutes and sends reads straight to the backup, so balances resolve faster during an outage and the duplicated warnings collapse to a single line. The repeated 'holding last state' warning on a wallet that keeps failing to read is likewise throttled. No behavior changes for holders \u2014 balances were always correct; this just makes them quicker and quieter under provider strain.",
"tags": [
"fix",
"infra"
@@ -170,7 +262,7 @@
{
"date": "2026-06-30",
"title": "Documented the full x402 paid-endpoint catalog and where endpoint revenue is recorded",
- "summary": "The developer docs now cover every x402 paid endpoint and the money that flows through them. The endpoint catalog adds the services that had landed without docs — the revenue/analytics report, the avatar batch optimizer, club cover, paid tutoring, the notification gateway, the wallet-connect and Permit2 reference endpoints, the MCP tool catalog — and a new page explains the revenue ledger end to end: how a payment verifies, settles, and is recorded in x402_audit_log, how to read endpoint revenue (with copy-paste SQL and the analytics report shape), how signed receipts work, and why this is the opposite direction of money from the Money Pulse agent-spend feed. The api/x402 directory also gets a README showing how a paid endpoint is built and priced.",
+ "summary": "The developer docs now cover every x402 paid endpoint and the money that flows through them. The endpoint catalog adds the services that had landed without docs \u2014 the revenue/analytics report, the avatar batch optimizer, club cover, paid tutoring, the notification gateway, the wallet-connect and Permit2 reference endpoints, the MCP tool catalog \u2014 and a new page explains the revenue ledger end to end: how a payment verifies, settles, and is recorded in x402_audit_log, how to read endpoint revenue (with copy-paste SQL and the analytics report shape), how signed receipts work, and why this is the opposite direction of money from the Money Pulse agent-spend feed. The api/x402 directory also gets a README showing how a paid endpoint is built and priced.",
"tags": [
"docs"
],
@@ -179,7 +271,7 @@
{
"date": "2026-06-30",
"title": "The $THREE holder leaderboard now rides out RPC rate limits instead of stalling",
- "summary": "The $THREE holder leaderboard, its share card, and the token stats panel all serve from a snapshot that refreshes every few minutes. When our on-chain data provider briefly rate-limited that refresh mid-scan, the whole refresh gave up for that cycle — and the failure was logged as a hard error even though it was a routine, self-healing hiccup. Now the scan retries the throttled page with a short backoff so it finishes and the snapshot stays current, and a rate limit is correctly treated as a transient blip rather than an incident. The result is a fresher holder board with far less log and alert noise.",
+ "summary": "The $THREE holder leaderboard, its share card, and the token stats panel all serve from a snapshot that refreshes every few minutes. When our on-chain data provider briefly rate-limited that refresh mid-scan, the whole refresh gave up for that cycle \u2014 and the failure was logged as a hard error even though it was a routine, self-healing hiccup. Now the scan retries the throttled page with a short backoff so it finishes and the snapshot stays current, and a rate limit is correctly treated as a transient blip rather than an incident. The result is a fresher holder board with far less log and alert noise.",
"tags": [
"fix",
"infra"
@@ -189,7 +281,7 @@
{
"date": "2026-06-30",
"title": "AI chat now routes around a dead provider account instead of hammering it",
- "summary": "When one of the AI providers behind the chat is out of credit or its account is unfunded, it answers every request with the same billing wall. The chat already fell back to a working provider, but it would keep re-trying the dead one as a last resort on the very next message — wasting a round-trip and occasionally surfacing an 'at capacity' message that didn't need to happen. Now the chat recognizes a billing or quota wall as different from a momentary rate-limit: it parks that provider for several minutes and goes straight to a healthy one, so replies come faster and the spurious capacity errors stop. Separately, when an unexpected error bubbles up in the browser, our error reporting now captures what actually went wrong instead of an opaque 'object Object', so real issues get diagnosed and fixed sooner.",
+ "summary": "When one of the AI providers behind the chat is out of credit or its account is unfunded, it answers every request with the same billing wall. The chat already fell back to a working provider, but it would keep re-trying the dead one as a last resort on the very next message \u2014 wasting a round-trip and occasionally surfacing an 'at capacity' message that didn't need to happen. Now the chat recognizes a billing or quota wall as different from a momentary rate-limit: it parks that provider for several minutes and goes straight to a healthy one, so replies come faster and the spurious capacity errors stop. Separately, when an unexpected error bubbles up in the browser, our error reporting now captures what actually went wrong instead of an opaque 'object Object', so real issues get diagnosed and fixed sooner.",
"tags": [
"fix",
"improvement"
@@ -198,7 +290,7 @@
{
"date": "2026-06-30",
"title": "The markets & standings pages now move like the games they are",
- "summary": "Every surface that ranks, scores, or updates live got the same game-feel treatment as the Swarms page, all on real data. On the Trader Leaderboard, the board re-sorts by gliding each trader to their new rank instead of snapping, the headline counters count up between real values, and a connection dot tells you the standings are live or reconnecting. A trader's profile sweeps its score ring on load and counts the score and realized P&L into place. The Signal Marketplace re-ranks its feed cards with the same glide, counts its summary tiles, and shows a live dot. The Money Pulse counts its 24h volume, tips, launches and active-wallet numbers up between polls. Your Watchlist glides its coins into their new order as live data re-sorts them and counts the portfolio totals. Coin Clash gained a live dot, counting army tallies, and a ring gauge on each faction's win rate. Vaults now counts its stat tiles honestly — from the last real value, never faked from zero — and glides the vault board on re-sort. The agent Labor Market counts its $THREE volume and job tallies under a live dot. Coin Radar already spoke this language, and a long-standing render glitch that could blank the feed when a coin's net flow was exactly zero is now fixed. Nothing is invented — every number, rank and beat traces to a real value, and it all goes still under reduced motion.",
+ "summary": "Every surface that ranks, scores, or updates live got the same game-feel treatment as the Swarms page, all on real data. On the Trader Leaderboard, the board re-sorts by gliding each trader to their new rank instead of snapping, the headline counters count up between real values, and a connection dot tells you the standings are live or reconnecting. A trader's profile sweeps its score ring on load and counts the score and realized P&L into place. The Signal Marketplace re-ranks its feed cards with the same glide, counts its summary tiles, and shows a live dot. The Money Pulse counts its 24h volume, tips, launches and active-wallet numbers up between polls. Your Watchlist glides its coins into their new order as live data re-sorts them and counts the portfolio totals. Coin Clash gained a live dot, counting army tallies, and a ring gauge on each faction's win rate. Vaults now counts its stat tiles honestly \u2014 from the last real value, never faked from zero \u2014 and glides the vault board on re-sort. The agent Labor Market counts its $THREE volume and job tallies under a live dot. Coin Radar already spoke this language, and a long-standing render glitch that could blank the feed when a coin's net flow was exactly zero is now fixed. Nothing is invented \u2014 every number, rank and beat traces to a real value, and it all goes still under reduced motion.",
"tags": [
"improvement",
"fix"
@@ -208,7 +300,7 @@
{
"date": "2026-06-30",
"title": "The launch & deploy flow now makes shipping feel like shipping",
- "summary": "Every place where you create and ship a coin or agent got the same game-feel polish as the Swarms page, all driven by real data. On /launches, freshly-landed launches slide in at the top of the live feed, the hero market-cap and launch counters count up between real values, and a live-feed dot tells you the registry is syncing, live, or offline. On a coin's detail page, the live trade tape now tints each new trade in the direction money moved — green when SOL comes back, red when it's spent — the market cap ticks as it refreshes, and a coin ripples once the moment it graduates. The Launch Copilot streams its market-maker action log in row-by-row with the same directional tint, lights a live dot when the stream is connected, and gives a single warm beat the moment the maker goes live. The personal and admin Memetic Launchers count their tallies up between polls, and the admin's launched-today tile ripples each time the live firehose actually mints a coin. The deployments registry counts its headline numbers up as new on-chain agents stream in under a live dot. And Instant Agent Genesis gives one restrained beat when your agent is born, and again when its ERC-8004 identity verifies on-chain. Nothing is faked — every number and beat comes from a real request lifecycle, never a timer, and all of it collapses to a clean static state under reduced motion.",
+ "summary": "Every place where you create and ship a coin or agent got the same game-feel polish as the Swarms page, all driven by real data. On /launches, freshly-landed launches slide in at the top of the live feed, the hero market-cap and launch counters count up between real values, and a live-feed dot tells you the registry is syncing, live, or offline. On a coin's detail page, the live trade tape now tints each new trade in the direction money moved \u2014 green when SOL comes back, red when it's spent \u2014 the market cap ticks as it refreshes, and a coin ripples once the moment it graduates. The Launch Copilot streams its market-maker action log in row-by-row with the same directional tint, lights a live dot when the stream is connected, and gives a single warm beat the moment the maker goes live. The personal and admin Memetic Launchers count their tallies up between polls, and the admin's launched-today tile ripples each time the live firehose actually mints a coin. The deployments registry counts its headline numbers up as new on-chain agents stream in under a live dot. And Instant Agent Genesis gives one restrained beat when your agent is born, and again when its ERC-8004 identity verifies on-chain. Nothing is faked \u2014 every number and beat comes from a real request lifecycle, never a timer, and all of it collapses to a clean static state under reduced motion.",
"tags": [
"improvement"
],
@@ -217,7 +309,7 @@
{
"date": "2026-06-30",
"title": "One shared motion library now powers live game-feel across the platform",
- "summary": "The interaction polish proven on the Swarms page — numbers that count up between real values, directional green/red flashes, live-feed rows that slide in, sparklines, ring gauges, connection dots, and a single restrained it-shipped ripple — now lives in one shared, token-driven, reduced-motion-safe library instead of being re-rolled per page. Every surface that adopts it speaks the same visual vocabulary, and because it's built entirely on the platform's motion tokens, it goes perfectly still the instant you ask your system for reduced motion. The Swarms page is its first consumer; the launch, deploy, markets and AI surfaces follow. It's a foundation, not a faked effect — every animation rides a real value.",
+ "summary": "The interaction polish proven on the Swarms page \u2014 numbers that count up between real values, directional green/red flashes, live-feed rows that slide in, sparklines, ring gauges, connection dots, and a single restrained it-shipped ripple \u2014 now lives in one shared, token-driven, reduced-motion-safe library instead of being re-rolled per page. Every surface that adopts it speaks the same visual vocabulary, and because it's built entirely on the platform's motion tokens, it goes perfectly still the instant you ask your system for reduced motion. The Swarms page is its first consumer; the launch, deploy, markets and AI surfaces follow. It's a foundation, not a faked effect \u2014 every animation rides a real value.",
"tags": [
"improvement",
"sdk"
@@ -226,7 +318,7 @@
{
"date": "2026-06-30",
"title": "x402 payment-modal SDK now installs cleanly outside the monorepo",
- "summary": "The @three-ws/x402-payment-modal package shipped a server-side checkout adapter that quietly relied on @solana/web3.js, @solana/spl-token and express being present — they were never listed in the package, so installing it on its own and using the server piece failed with a missing-module error. Those are now declared as optional dependencies, so the browser modal stays as lightweight as ever while the server and React adapters pull in exactly what they need. The build also no longer assumes a monorepo folder layout. This is the first step in moving the x402 toolkit into its own repositories.",
+ "summary": "The @three-ws/x402-payment-modal package shipped a server-side checkout adapter that quietly relied on @solana/web3.js, @solana/spl-token and express being present \u2014 they were never listed in the package, so installing it on its own and using the server piece failed with a missing-module error. Those are now declared as optional dependencies, so the browser modal stays as lightweight as ever while the server and React adapters pull in exactly what they need. The build also no longer assumes a monorepo folder layout. This is the first step in moving the x402 toolkit into its own repositories.",
"tags": [
"fix",
"sdk"
@@ -234,8 +326,8 @@
},
{
"date": "2026-06-30",
- "title": "Agent and character pages now feel alive — the same game-feel polish, everywhere you meet a character",
- "summary": "The places where you meet, browse and build characters got the same motion treatment as the Swarms and AI pages, all driven by real data. On an agent's profile, its trading record now leads with a win-rate ring and a sparkline of cumulative realized P&L traced from its real recent trades, the P&L, ROI and reputation numbers count up and tint green or red as they settle, the reputation score has its own arc gauge, and recent trades stagger into view. The agent picker, avatar gallery and the /characters feed now land card-by-card as each page loads instead of snapping in. The first-meet celebration for a freshly generated avatar gets a single warm accent beat as its buttons arrive, and the character creator pulses the stage the moment a model actually finishes loading. The $THREE hold-gate sweeps its progress bar to your live holdings and counts the percentage up as it goes. Nothing is faked — every number, gauge and trend comes from a real endpoint or your real wallet balance, the 3D avatars render and animate exactly as before, and all of it collapses to a clean static state under reduced motion.",
+ "title": "Agent and character pages now feel alive \u2014 the same game-feel polish, everywhere you meet a character",
+ "summary": "The places where you meet, browse and build characters got the same motion treatment as the Swarms and AI pages, all driven by real data. On an agent's profile, its trading record now leads with a win-rate ring and a sparkline of cumulative realized P&L traced from its real recent trades, the P&L, ROI and reputation numbers count up and tint green or red as they settle, the reputation score has its own arc gauge, and recent trades stagger into view. The agent picker, avatar gallery and the /characters feed now land card-by-card as each page loads instead of snapping in. The first-meet celebration for a freshly generated avatar gets a single warm accent beat as its buttons arrive, and the character creator pulses the stage the moment a model actually finishes loading. The $THREE hold-gate sweeps its progress bar to your live holdings and counts the percentage up as it goes. Nothing is faked \u2014 every number, gauge and trend comes from a real endpoint or your real wallet balance, the 3D avatars render and animate exactly as before, and all of it collapses to a clean static state under reduced motion.",
"tags": [
"improvement"
],
@@ -243,8 +335,8 @@
},
{
"date": "2026-06-30",
- "title": "The AI surfaces now make the agent's thinking feel alive — the AGI, Alpha Co-pilot and Reasoning Ledger",
- "summary": "The three pages where you watch an agent reason just got the same game-feel polish as the Swarms page, all driven by real data. On The AGI, only genuinely new decisions slide into the live feed (the rest stay put instead of flickering on every refresh), a live dot tells you when the stream is connected or reconnecting, and the reputation ring sweeps and counts up only when the real score actually moves. On the Alpha Co-pilot, the launch feed lands card-by-card, each launch's score bars grow from zero, and when a read comes back the conviction bar fills and counts up, the signals the agent cited reveal in sequence, and the verdict gets a single accent pulse. On the Reasoning Ledger, decisions stagger in as you load older history, the reputation arc fills while the score counts up, and a new sparkline traces realized P&L across the settled calls in view. Nothing is faked — every number, bar and trend comes from the live model output or on-chain outcome, and all of it collapses to a clean static state when you've asked your system for reduced motion.",
+ "title": "The AI surfaces now make the agent's thinking feel alive \u2014 the AGI, Alpha Co-pilot and Reasoning Ledger",
+ "summary": "The three pages where you watch an agent reason just got the same game-feel polish as the Swarms page, all driven by real data. On The AGI, only genuinely new decisions slide into the live feed (the rest stay put instead of flickering on every refresh), a live dot tells you when the stream is connected or reconnecting, and the reputation ring sweeps and counts up only when the real score actually moves. On the Alpha Co-pilot, the launch feed lands card-by-card, each launch's score bars grow from zero, and when a read comes back the conviction bar fills and counts up, the signals the agent cited reveal in sequence, and the verdict gets a single accent pulse. On the Reasoning Ledger, decisions stagger in as you load older history, the reputation arc fills while the score counts up, and a new sparkline traces realized P&L across the settled calls in view. Nothing is faked \u2014 every number, bar and trend comes from the live model output or on-chain outcome, and all of it collapses to a clean static state when you've asked your system for reduced motion.",
"tags": [
"improvement"
],
@@ -252,8 +344,8 @@
},
{
"date": "2026-06-30",
- "title": "The Sniper dashboard now carries the full Money Studio — wallet, Trading Brain, pricing and earnings",
- "summary": "The Sniper Strategies dashboard used to stop at strategy config and live positions. Now every strategy card has a second tab — Money Studio — that opens the exact same control surface as your agent's Money tab in Agent Studio, without leaving the dashboard. Fund the agent's wallet (live SOL and USDC balances, deposit address, withdraw with a one-tap Max, real SPL holdings and on-chain activity), open the full Trading Brain to draw a snipe rule and either scan live launches for one-tap assisted snipes or arm it to run autonomously, backtest a rule over the last 30 days, set per-call prices on the agent's skills, and watch what other agents pay it — all per agent, all real. No more bouncing between Agent Studio and the dashboard to top up a wallet before arming. The original Money tab in Agent Studio is untouched.",
+ "title": "The Sniper dashboard now carries the full Money Studio \u2014 wallet, Trading Brain, pricing and earnings",
+ "summary": "The Sniper Strategies dashboard used to stop at strategy config and live positions. Now every strategy card has a second tab \u2014 Money Studio \u2014 that opens the exact same control surface as your agent's Money tab in Agent Studio, without leaving the dashboard. Fund the agent's wallet (live SOL and USDC balances, deposit address, withdraw with a one-tap Max, real SPL holdings and on-chain activity), open the full Trading Brain to draw a snipe rule and either scan live launches for one-tap assisted snipes or arm it to run autonomously, backtest a rule over the last 30 days, set per-call prices on the agent's skills, and watch what other agents pay it \u2014 all per agent, all real. No more bouncing between Agent Studio and the dashboard to top up a wallet before arming. The original Money tab in Agent Studio is untouched.",
"tags": [
"feature",
"improvement"
@@ -263,7 +355,7 @@
{
"date": "2026-06-30",
"title": "The homepage now shows the autonomous sniper trading, live",
- "summary": "There's a new \"Autonomous trading\" section on three.ws that puts the sniper engine front and center. It opens with three headline numbers that count up as you scroll — launches scored today, winning exits all-time, and the best run a scored launch has reached — all real platform figures. Below them, an interactive diagram walks the full trade loop: Watch, Score, Guard, Buy, Exit. Click or hover any stage to read exactly what the agent does there, from the pump.fun new-launch feed through the risk guards to the take-profit and stop-loss exits. Beside it, a live tape streams real buys, sells and open positions as they happen, each linking to its Solscan signature, and a status pill shows whether the engine is live along with how many strategies are armed and positions are open. Nothing on the panel is simulated. Honors reduced-motion preferences.",
+ "summary": "There's a new \"Autonomous trading\" section on three.ws that puts the sniper engine front and center. It opens with three headline numbers that count up as you scroll \u2014 launches scored today, winning exits all-time, and the best run a scored launch has reached \u2014 all real platform figures. Below them, an interactive diagram walks the full trade loop: Watch, Score, Guard, Buy, Exit. Click or hover any stage to read exactly what the agent does there, from the pump.fun new-launch feed through the risk guards to the take-profit and stop-loss exits. Beside it, a live tape streams real buys, sells and open positions as they happen, each linking to its Solscan signature, and a status pill shows whether the engine is live along with how many strategies are armed and positions are open. Nothing on the panel is simulated. Honors reduced-motion preferences.",
"tags": [
"feature"
],
@@ -272,7 +364,7 @@
{
"date": "2026-06-30",
"title": "The Trading Brain now tracks open snipes live and lets you sell on one tap",
- "summary": "The sniping panel in Agent Studio's Money tab no longer goes stale the moment it loads. Open positions now mark to live price on their own — each one shows its unrealized P&L (in SOL and percent) and refreshes every few seconds, so a snipe climbing or bleeding updates in front of you instead of waiting for a reload. When your agent is armed, new fills and exits appear on the same live tick. Every open position now has a Sell now button: one tap exits the full holding immediately at a real price, through the exact same guarded path the agent's automatic take-profit and stop-loss use — so a manual exit and an automatic one can never drift, and getting out works even with the kill switch on. The Guardrails card now shows real spend: how much SOL the agent has traded today against your daily budget, as a number and a progress bar that turns amber past 60% and red past 90% — so you can see the leash tightening before it stops you. Polling pauses when the tab is hidden to spare your rate limit, and resumes the moment you come back.",
+ "summary": "The sniping panel in Agent Studio's Money tab no longer goes stale the moment it loads. Open positions now mark to live price on their own \u2014 each one shows its unrealized P&L (in SOL and percent) and refreshes every few seconds, so a snipe climbing or bleeding updates in front of you instead of waiting for a reload. When your agent is armed, new fills and exits appear on the same live tick. Every open position now has a Sell now button: one tap exits the full holding immediately at a real price, through the exact same guarded path the agent's automatic take-profit and stop-loss use \u2014 so a manual exit and an automatic one can never drift, and getting out works even with the kill switch on. The Guardrails card now shows real spend: how much SOL the agent has traded today against your daily budget, as a number and a progress bar that turns amber past 60% and red past 90% \u2014 so you can see the leash tightening before it stops you. Polling pauses when the tab is hidden to spare your rate limit, and resumes the moment you come back.",
"tags": [
"improvement"
],
@@ -281,7 +373,7 @@
{
"date": "2026-06-30",
"title": "The autonomous sniper is now an MCP server and an x402 paid API",
- "summary": "Our autonomous pump.fun trading and sniping engine now speaks three languages at once. As an MCP server, any AI agent — Claude, Cursor, your own — can arm snipe strategies, fire manual buys, and watch positions through plain tool calls. As an x402 paid HTTP API, other agents can pay per call in USDC to arm a strategy or trigger a snipe, with free reads for health, status and positions. And it stays a clean library and CLI you can embed anywhere. It runs against your own wallet and RPC — self-custodial by default — with a mandatory stop-loss on every strategy and simulate mode on unless you explicitly go live. Install it with one command: npx -y @three-ws/agent-sniper.",
+ "summary": "Our autonomous pump.fun trading and sniping engine now speaks three languages at once. As an MCP server, any AI agent \u2014 Claude, Cursor, your own \u2014 can arm snipe strategies, fire manual buys, and watch positions through plain tool calls. As an x402 paid HTTP API, other agents can pay per call in USDC to arm a strategy or trigger a snipe, with free reads for health, status and positions. And it stays a clean library and CLI you can embed anywhere. It runs against your own wallet and RPC \u2014 self-custodial by default \u2014 with a mandatory stop-loss on every strategy and simulate mode on unless you explicitly go live. Install it with one command: npx -y @three-ws/agent-sniper.",
"tags": [
"feature",
"sdk"
@@ -291,7 +383,7 @@
{
"date": "2026-06-30",
"title": "The swarm members panel is now a live standings board",
- "summary": "A swarm is a competition between its members, and the members list now reads like one. Members are ranked by stake — #1, #2, #3 — with the lead member marked by a token accent, and each member's reputation shows as a vote-weight chip: the chip carries the reputation score with the exact share of the swarm's vote that score commands beneath it, so you can see your track record become voting power (computed the same way the consensus engine does). The moment the treasury fires a trade, the members who were on the winning side of that consensus pulse green — pulled straight from the real recorded vote breakdown, so you can see exactly who carried it. When someone contributes or exits, the share bars animate and the standings re-sort smoothly instead of snapping. Respects reduced-motion preferences.",
+ "summary": "A swarm is a competition between its members, and the members list now reads like one. Members are ranked by stake \u2014 #1, #2, #3 \u2014 with the lead member marked by a token accent, and each member's reputation shows as a vote-weight chip: the chip carries the reputation score with the exact share of the swarm's vote that score commands beneath it, so you can see your track record become voting power (computed the same way the consensus engine does). The moment the treasury fires a trade, the members who were on the winning side of that consensus pulse green \u2014 pulled straight from the real recorded vote breakdown, so you can see exactly who carried it. When someone contributes or exits, the share bars animate and the standings re-sort smoothly instead of snapping. Respects reduced-motion preferences.",
"tags": [
"improvement"
],
@@ -300,7 +392,7 @@
{
"date": "2026-06-30",
"title": "Swarm treasury figures now count up and flash when money moves",
- "summary": "On a live swarm dashboard, the treasury tiles — balance, realized P&L, open positions and win rate — no longer hard-swap to a new number. When a live update lands, each figure smoothly counts from its current value to the new one and the tile flashes in the direction of the change: green when it rises, red when it drops. A confirmed payout pulses the balance and P&L tiles the instant the money lands. It animates only between two real values, never from zero, and respects reduced-motion preferences (those users get an instant, exact update).",
+ "summary": "On a live swarm dashboard, the treasury tiles \u2014 balance, realized P&L, open positions and win rate \u2014 no longer hard-swap to a new number. When a live update lands, each figure smoothly counts from its current value to the new one and the tile flashes in the direction of the change: green when it rises, red when it drops. A confirmed payout pulses the balance and P&L tiles the instant the money lands. It animates only between two real values, never from zero, and respects reduced-motion preferences (those users get an instant, exact update).",
"tags": [
"improvement"
],
@@ -309,7 +401,7 @@
{
"date": "2026-06-30",
"title": "Swarm dashboards now show consensus building and firing live",
- "summary": "When you watch a trading swarm, you can now see the moment it decides. Every consensus vote animates in and fills a meter toward the swarm's firing threshold in real time. When member consensus clears the line and the treasury actually fires a buy, the meter visibly crosses the threshold with a hot success glow, the vote stamps a pulsing “fire” badge, and a single accent ripple sweeps the panel — so the most important event on the page lands instead of slipping by as a quiet log line. Skips fill toward the line and stop short. Respects reduced-motion preferences.",
+ "summary": "When you watch a trading swarm, you can now see the moment it decides. Every consensus vote animates in and fills a meter toward the swarm's firing threshold in real time. When member consensus clears the line and the treasury actually fires a buy, the meter visibly crosses the threshold with a hot success glow, the vote stamps a pulsing \u201cfire\u201d badge, and a single accent ripple sweeps the panel \u2014 so the most important event on the page lands instead of slipping by as a quiet log line. Skips fill toward the line and stop short. Respects reduced-motion preferences.",
"tags": [
"improvement"
],
@@ -327,7 +419,7 @@
{
"date": "2026-06-30",
"title": "Agent Sniper is now a standalone open-source package",
- "summary": "The engine that lets three.ws agents snipe pump.fun launches is now its own lightweight, embeddable package: @three-ws/agent-sniper. Run it four ways — as a library, a CLI, an MCP server your AI agent can drive, or a paid x402 API that other agents pay in USDC to use. It ships with pluggable wallet, storage, RPC, and launch-feed adapters, so you can run a fully self-custodial sniper from your own keypair or a multi-tenant hosted service from one engine. Every agent gets its own wallet, its own budget and concurrency caps, a mandatory stop-loss, a price-impact circuit breaker, and a simulate-first default — plus the 3D-agent layer that puts a live trading desk on screen. Multiple agents and multiple users can snipe side by side, each embodied by its own 3D AI agent.",
+ "summary": "The engine that lets three.ws agents snipe pump.fun launches is now its own lightweight, embeddable package: @three-ws/agent-sniper. Run it four ways \u2014 as a library, a CLI, an MCP server your AI agent can drive, or a paid x402 API that other agents pay in USDC to use. It ships with pluggable wallet, storage, RPC, and launch-feed adapters, so you can run a fully self-custodial sniper from your own keypair or a multi-tenant hosted service from one engine. Every agent gets its own wallet, its own budget and concurrency caps, a mandatory stop-loss, a price-impact circuit breaker, and a simulate-first default \u2014 plus the 3D-agent layer that puts a live trading desk on screen. Multiple agents and multiple users can snipe side by side, each embodied by its own 3D AI agent.",
"tags": [
"sdk",
"feature"
@@ -336,7 +428,7 @@
{
"date": "2026-06-30",
"title": "Oracle now has full documentation",
- "summary": "Everything behind the conviction score, in one place. The new Oracle docs explain — in plain English and, where you want it, full mathematical detail — how Oracle reads every pump.fun launch: the four pillars (who's buying, how it's structured, what story it rides, how it's moving), exactly how they fuse into a 0–100 score, where the hard caps come from, how the engine is calibrated and backtested against real outcomes, how to arm an agent on it, the full public API, and where it's headed. Real screenshots throughout, a quickstart for traders, builders, and skeptics, and a researcher-level appendix.",
+ "summary": "Everything behind the conviction score, in one place. The new Oracle docs explain \u2014 in plain English and, where you want it, full mathematical detail \u2014 how Oracle reads every pump.fun launch: the four pillars (who's buying, how it's structured, what story it rides, how it's moving), exactly how they fuse into a 0\u2013100 score, where the hard caps come from, how the engine is calibrated and backtested against real outcomes, how to arm an agent on it, the full public API, and where it's headed. Real screenshots throughout, a quickstart for traders, builders, and skeptics, and a researcher-level appendix.",
"tags": [
"docs",
"feature"
@@ -346,7 +438,7 @@
{
"date": "2026-06-30",
"title": "Agent Studio movement previews now play on the live avatar",
- "summary": "On the Body tab of Agent Studio, clicking a move in the Movement library — and pinning a looping idle as your resting pose — now actually animates your agent on the stage. The live avatar was loading without its shared clip library, so previews quietly did nothing and the avatar held its bind pose. The full motion library is now wired to the studio stage, so every clip plays the moment you click it and your pinned resting pose loops everywhere your agent appears.",
+ "summary": "On the Body tab of Agent Studio, clicking a move in the Movement library \u2014 and pinning a looping idle as your resting pose \u2014 now actually animates your agent on the stage. The live avatar was loading without its shared clip library, so previews quietly did nothing and the avatar held its bind pose. The full motion library is now wired to the studio stage, so every clip plays the moment you click it and your pinned resting pose loops everywhere your agent appears.",
"tags": [
"fix"
],
@@ -355,7 +447,7 @@
{
"date": "2026-06-30",
"title": "Memory seeding no longer times out",
- "summary": "Building your agent's memory seed from your connected accounts could fail with an opaque error when the language model took a moment to respond — the request was being cut off before it finished and the page showed a generic failure. The synthesis step now has the time it needs to complete, automatically falls over to a backup provider if one is slow, and when it genuinely can't run it tells you plainly instead of failing silently.",
+ "summary": "Building your agent's memory seed from your connected accounts could fail with an opaque error when the language model took a moment to respond \u2014 the request was being cut off before it finished and the page showed a generic failure. The synthesis step now has the time it needs to complete, automatically falls over to a backup provider if one is slow, and when it genuinely can't run it tells you plainly instead of failing silently.",
"tags": [
"fix"
]
@@ -363,7 +455,7 @@
{
"date": "2026-06-30",
"title": "Agent Labor Market escrow is live",
- "summary": "The Agent Labor Market now settles in real $THREE on-chain. When an agent posts a bounty, the reward moves from its wallet into a dedicated escrow wallet that actually holds the funds until the work is verified — then releases the worker's payout and the skill author's royalty, or refunds the poster if the work fails the neutral verifier. The market header shows escrow status as Live, posting a bounty is open, and the escrow wallet keeps its own gas topped up so settlements never stall. Every move is a real SPL transfer with an explorer link.",
+ "summary": "The Agent Labor Market now settles in real $THREE on-chain. When an agent posts a bounty, the reward moves from its wallet into a dedicated escrow wallet that actually holds the funds until the work is verified \u2014 then releases the worker's payout and the skill author's royalty, or refunds the poster if the work fails the neutral verifier. The market header shows escrow status as Live, posting a bounty is open, and the escrow wallet keeps its own gas topped up so settlements never stall. Every move is a real SPL transfer with an explorer link.",
"tags": [
"feature"
],
@@ -372,7 +464,7 @@
{
"date": "2026-06-30",
"title": "Marketplace & trading viability get a dedicated page",
- "summary": "The two \"honest signal\" panels — marketplace viability (real $THREE skill GMV, take-rate, repeat buyers, trading pairs) and trading viability (real guarded coin-trade flow, cost and realized P&L on closed positions) — now live on their own page at /viability. The Money Pulse stays focused on the live event feed and links across to the full viability breakdown, so each surface does one thing well. Same real on-chain numbers, just easier to read and share.",
+ "summary": "The two \"honest signal\" panels \u2014 marketplace viability (real $THREE skill GMV, take-rate, repeat buyers, trading pairs) and trading viability (real guarded coin-trade flow, cost and realized P&L on closed positions) \u2014 now live on their own page at /viability. The Money Pulse stays focused on the live event feed and links across to the full viability breakdown, so each surface does one thing well. Same real on-chain numbers, just easier to read and share.",
"tags": [
"improvement"
],
@@ -381,7 +473,7 @@
{
"date": "2026-06-30",
"title": "Agent profiles show the agent's real 3D body again",
- "summary": "An agent page now renders the avatar the agent actually wears — including non-humanoid bodies like animals and props — instead of falling back to the default mannequin. The profile was discarding the model link returned for the agent's avatar before it reached the 3D stage, so any agent whose body came through that field silently showed the placeholder figure. The real model now flows through to the hero and fullscreen viewers, and bodies with their own built-in animation play it on the spot.",
+ "summary": "An agent page now renders the avatar the agent actually wears \u2014 including non-humanoid bodies like animals and props \u2014 instead of falling back to the default mannequin. The profile was discarding the model link returned for the agent's avatar before it reached the 3D stage, so any agent whose body came through that field silently showed the placeholder figure. The real model now flows through to the hero and fullscreen viewers, and bodies with their own built-in animation play it on the spot.",
"tags": [
"fix"
]
@@ -406,7 +498,7 @@
{
"date": "2026-06-29",
"title": "Pages stay graceful when the database has a hiccup",
- "summary": "If the platform's database ever becomes briefly unreachable, pages now degrade cleanly instead of throwing hard errors. Live counters and feeds quietly fall back to their empty state, and any request that can't be served returns a clear “temporarily unavailable, retry shortly” response that your browser and our CDN know to retry — rather than a generic 500. Previously a database blip could surface as failed loads across explore, the marketplace, avatars, and the oracle stats at once; those reads now recover on their own the moment the database is back.",
+ "summary": "If the platform's database ever becomes briefly unreachable, pages now degrade cleanly instead of throwing hard errors. Live counters and feeds quietly fall back to their empty state, and any request that can't be served returns a clear \u201ctemporarily unavailable, retry shortly\u201d response that your browser and our CDN know to retry \u2014 rather than a generic 500. Previously a database blip could surface as failed loads across explore, the marketplace, avatars, and the oracle stats at once; those reads now recover on their own the moment the database is back.",
"tags": [
"fix",
"infra"
@@ -415,7 +507,7 @@
{
"date": "2026-06-29",
"title": "Cosmetics you buy now follow you into every world",
- "summary": "When you buy a premium cosmetic for your avatar, that unlock now reaches the 3D world itself: the item is wearable the moment the payment settles, your equipped look is saved to your account, and it re-applies automatically the next time you log in — in any world, whether you arrived through a coin's /play space or /walk. Previously a purchase was recorded but the world didn't yet know you owned it, so the item could still read as locked when you went to wear it. Everyone around you sees your equipped fit too.",
+ "summary": "When you buy a premium cosmetic for your avatar, that unlock now reaches the 3D world itself: the item is wearable the moment the payment settles, your equipped look is saved to your account, and it re-applies automatically the next time you log in \u2014 in any world, whether you arrived through a coin's /play space or /walk. Previously a purchase was recorded but the world didn't yet know you owned it, so the item could still read as locked when you went to wear it. Everyone around you sees your equipped fit too.",
"tags": [
"fix"
],
@@ -424,7 +516,7 @@
{
"date": "2026-06-29",
"title": "Coin creators can now set their cut of cosmetic sales",
- "summary": "When a player buys a premium cosmetic inside your coin's 3D world, a share of that sale already pays out to your wallet in real USDC on-chain — but the percentage was fixed. Your Monetize dashboard now has a Cosmetic revenue split panel: for every coin you've launched it shows the current share, who it pays out to, and a slider to set your cut up to the platform ceiling. Changing it is authorized by signing a message with the coin's own creator wallet — the same wallet the money lands in — so no one else can redirect your revenue. It sits right next to your settled cosmetic earnings, which already show paid, pending, and per-cosmetic totals with on-chain receipts.",
+ "summary": "When a player buys a premium cosmetic inside your coin's 3D world, a share of that sale already pays out to your wallet in real USDC on-chain \u2014 but the percentage was fixed. Your Monetize dashboard now has a Cosmetic revenue split panel: for every coin you've launched it shows the current share, who it pays out to, and a slider to set your cut up to the platform ceiling. Changing it is authorized by signing a message with the coin's own creator wallet \u2014 the same wallet the money lands in \u2014 so no one else can redirect your revenue. It sits right next to your settled cosmetic earnings, which already show paid, pending, and per-cosmetic totals with on-chain receipts.",
"tags": [
"feature"
],
@@ -433,7 +525,7 @@
{
"date": "2026-06-29",
"title": "Splat viewer now loads GitHub and Hugging Face links directly",
- "summary": "Paste a .ply / .splat scene URL from a GitHub or Hugging Face page and the viewer loads it straight away. Previously those links failed with a cross-origin error because the host redirected the browser to a download server that blocked the request. The viewer now rewrites them to the host's raw file address — the one that allows in-browser loading — so the most common places people publish splat scenes just work.",
+ "summary": "Paste a .ply / .splat scene URL from a GitHub or Hugging Face page and the viewer loads it straight away. Previously those links failed with a cross-origin error because the host redirected the browser to a download server that blocked the request. The viewer now rewrites them to the host's raw file address \u2014 the one that allows in-browser loading \u2014 so the most common places people publish splat scenes just work.",
"tags": [
"improvement"
],
@@ -451,7 +543,7 @@
{
"date": "2026-06-29",
"title": "Sniper now acts on the market intel it pays for",
- "summary": "Every coin the sniper holds is enriched with a live market sentiment read, bought autonomously with real USDC over x402 from the platform's own intel endpoints. That paid signal now does more than nudge entries — when a held position is underwater and its signal flips confidently bearish, the sniper can cut the loser early instead of riding it down to the hard stop-loss. The behaviour is opt-in per deployment and never overrides the stop-loss, a take-profit, or a position that's in the green, so existing strategies are unchanged until an operator turns it on.",
+ "summary": "Every coin the sniper holds is enriched with a live market sentiment read, bought autonomously with real USDC over x402 from the platform's own intel endpoints. That paid signal now does more than nudge entries \u2014 when a held position is underwater and its signal flips confidently bearish, the sniper can cut the loser early instead of riding it down to the hard stop-loss. The behaviour is opt-in per deployment and never overrides the stop-loss, a take-profit, or a position that's in the green, so existing strategies are unchanged until an operator turns it on.",
"tags": [
"feature",
"improvement"
@@ -469,7 +561,7 @@
{
"date": "2026-06-29",
"title": "Sniper agents keep their wallets fueled automatically",
- "summary": "A live sniper agent spends SOL on every coin it buys, and once its wallet ran dry it would quietly fail every snipe while still looking healthy. Agents now top themselves back up from the platform treasury the moment their balance drops below a floor — refilling to a working reserve, with per-transfer and daily spend caps and a ledger that survives restarts so the caps can't be bypassed. The sniper status page now shows the live treasury flow: how much SOL has fueled agents today and in total, so you can see the money actually moving.",
+ "summary": "A live sniper agent spends SOL on every coin it buys, and once its wallet ran dry it would quietly fail every snipe while still looking healthy. Agents now top themselves back up from the platform treasury the moment their balance drops below a floor \u2014 refilling to a working reserve, with per-transfer and daily spend caps and a ledger that survives restarts so the caps can't be bypassed. The sniper status page now shows the live treasury flow: how much SOL has fueled agents today and in total, so you can see the money actually moving.",
"tags": [
"feature",
"infra"
@@ -478,7 +570,7 @@
{
"date": "2026-06-29",
"title": "Agent profile layout fixed on laptops and tablets",
- "summary": "On mid-width screens — laptops, tablets, and split-screen windows — agent profile pages were collapsing into a single cramped column hugging the sidebar, with a stray horizontal scrollbar and the \"Walk with this agent\" card wrapping its text one word per line. The page now lays its cards out in a balanced multi-column grid across the full width, the sidebar steps aside when there isn't room for it, the horizontal scroll is gone, and every card adapts cleanly to the width it's given.",
+ "summary": "On mid-width screens \u2014 laptops, tablets, and split-screen windows \u2014 agent profile pages were collapsing into a single cramped column hugging the sidebar, with a stray horizontal scrollbar and the \"Walk with this agent\" card wrapping its text one word per line. The page now lays its cards out in a balanced multi-column grid across the full width, the sidebar steps aside when there isn't room for it, the horizontal scroll is gone, and every card adapts cleanly to the width it's given.",
"tags": [
"fix"
]
@@ -486,7 +578,7 @@
{
"date": "2026-06-29",
"title": "Agent profiles now earn achievements and badges",
- "summary": "Every agent profile now shows the achievements it has earned on three.ws — tiered badges for real milestones like launching a coin, graduating a token to the AMM, crossing $100K and $1M market caps, drawing real supporters, running buyback burns, reaching a Trusted or Elite reputation tier, and sticking around. Each badge is computed from real on-chain and ledger data, never hand-assigned, and the panel also shows an \"in progress\" ladder so a creator can see exactly what's next. The graduate badge celebrates the agents whose coins actually migrated.",
+ "summary": "Every agent profile now shows the achievements it has earned on three.ws \u2014 tiered badges for real milestones like launching a coin, graduating a token to the AMM, crossing $100K and $1M market caps, drawing real supporters, running buyback burns, reaching a Trusted or Elite reputation tier, and sticking around. Each badge is computed from real on-chain and ledger data, never hand-assigned, and the panel also shows an \"in progress\" ladder so a creator can see exactly what's next. The graduate badge celebrates the agents whose coins actually migrated.",
"tags": [
"feature"
]
@@ -504,7 +596,7 @@
{
"date": "2026-06-29",
"title": "Meet the agent behind each coin in interactive 3D",
- "summary": "Every coin page now shows the launching agent as a live, interactive 3D avatar right on the page — drag to orbit, scroll to zoom — instead of a flat thumbnail. Agents with their own model show it; the rest wear the shared base avatar so the stage is never empty. A \"See in world\" link drops that avatar straight into the walkable $THREE world. The 3D view only loads once it scrolls into view, so pages stay fast, and it falls back gracefully if a model can't load.",
+ "summary": "Every coin page now shows the launching agent as a live, interactive 3D avatar right on the page \u2014 drag to orbit, scroll to zoom \u2014 instead of a flat thumbnail. Agents with their own model show it; the rest wear the shared base avatar so the stage is never empty. A \"See in world\" link drops that avatar straight into the walkable $THREE world. The 3D view only loads once it scrolls into view, so pages stay fast, and it falls back gracefully if a model can't load.",
"tags": [
"feature"
],
@@ -522,7 +614,7 @@
{
"date": "2026-06-29",
"title": "Autonomous launcher is live, and each launch now opens with a dev buy",
- "summary": "The Memetic Launcher now runs live by default: platform agents mint coins on a cadence, riding real cultural narratives, with every coin fronted by a real agent avatar. Each launch now also makes a small initial buy on its own curve, so the launching agent holds a position from block one if the coin takes off. Every coin ships with the fullest metadata we can set automatically — name, ticker, avatar image, description, website, and X/Telegram links — and lands in the live launches feed. The same hard limits stay in force: a daily SOL ceiling, an hourly cap, a minimum gap between launches, and a circuit breaker that pauses everything after repeated failures.",
+ "summary": "The Memetic Launcher now runs live by default: platform agents mint coins on a cadence, riding real cultural narratives, with every coin fronted by a real agent avatar. Each launch now also makes a small initial buy on its own curve, so the launching agent holds a position from block one if the coin takes off. Every coin ships with the fullest metadata we can set automatically \u2014 name, ticker, avatar image, description, website, and X/Telegram links \u2014 and lands in the live launches feed. The same hard limits stay in force: a daily SOL ceiling, an hourly cap, a minimum gap between launches, and a circuit breaker that pauses everything after repeated failures.",
"tags": [
"feature"
],
@@ -531,7 +623,7 @@
{
"date": "2026-06-29",
"title": "Full interactive trading chart on every coin page",
- "summary": "Each coin's profile page now lets you switch its price chart between the fast native view and a full interactive DexScreener terminal — candlesticks, zoom, on-chart trades and liquidity — embedded right on the page and keyed to the coin's mint, with a one-tap link to open it in DexScreener. The chart matches your light/dark theme and only loads the heavier terminal when you choose it, so the page stays quick by default.",
+ "summary": "Each coin's profile page now lets you switch its price chart between the fast native view and a full interactive DexScreener terminal \u2014 candlesticks, zoom, on-chart trades and liquidity \u2014 embedded right on the page and keyed to the coin's mint, with a one-tap link to open it in DexScreener. The chart matches your light/dark theme and only loads the heavier terminal when you choose it, so the page stays quick by default.",
"tags": [
"improvement"
],
@@ -540,7 +632,7 @@
{
"date": "2026-06-29",
"title": "New dashboard: total agent-to-agent economy volume",
- "summary": "There's now a live dashboard for the whole agent-to-agent economy: the total real USDC that agents have paid each other for hiring paid skills over x402. The headline is the all-time settled volume, alongside 7-day volume, average hire value, and how many agents are earning vs. paying. A 90-day volume chart (switchable to 7d/30d) shows the trend, two leaderboards rank the top-earning and top-spending agents, and a live feed lists the latest settlements — each one linking straight to its on-chain proof on Solscan. Every number is read from the real hire ledger; nothing is simulated.",
+ "summary": "There's now a live dashboard for the whole agent-to-agent economy: the total real USDC that agents have paid each other for hiring paid skills over x402. The headline is the all-time settled volume, alongside 7-day volume, average hire value, and how many agents are earning vs. paying. A 90-day volume chart (switchable to 7d/30d) shows the trend, two leaderboards rank the top-earning and top-spending agents, and a live feed lists the latest settlements \u2014 each one linking straight to its on-chain proof on Solscan. Every number is read from the real hire ledger; nothing is simulated.",
"tags": [
"feature"
],
@@ -549,7 +641,7 @@
{
"date": "2026-06-29",
"title": "Solana Metaplex agents now appear in the on-chain deployments feed",
- "summary": "The on-chain Deployments feed is no longer EVM-only. Every Solana agent minted as a Metaplex Core asset — both the ones three.ws launches into its own Agents collection and external agents in the Metaplex Agent Registry — now lands in the same live stream alongside ERC-8004 registrations, the moment each mint confirms. Solana shows up as its own chain in the feed, the top-chains panel, and the 24h/7d counters, with rows linking straight to Solscan. The mainnet/testnet toggle maps to Solana mainnet-beta and devnet.",
+ "summary": "The on-chain Deployments feed is no longer EVM-only. Every Solana agent minted as a Metaplex Core asset \u2014 both the ones three.ws launches into its own Agents collection and external agents in the Metaplex Agent Registry \u2014 now lands in the same live stream alongside ERC-8004 registrations, the moment each mint confirms. Solana shows up as its own chain in the feed, the top-chains panel, and the 24h/7d counters, with rows linking straight to Solscan. The mainnet/testnet toggle maps to Solana mainnet-beta and devnet.",
"tags": [
"feature"
],
@@ -558,7 +650,7 @@
{
"date": "2026-06-29",
"title": "Avatars now face you in previews and embeds",
- "summary": "Avatar cards in your dashboard, kiosk previews, and embeds now open with the character squarely facing the viewer instead of showing its back. The 3D viewer was spinning every model 180° on load, so static previews framed the back of the avatar. Removed the stray flip — avatars are authored front-on (+Z) and the framing camera already looks at them head-on, so they now present the front everywhere.",
+ "summary": "Avatar cards in your dashboard, kiosk previews, and embeds now open with the character squarely facing the viewer instead of showing its back. The 3D viewer was spinning every model 180\u00b0 on load, so static previews framed the back of the avatar. Removed the stray flip \u2014 avatars are authored front-on (+Z) and the framing camera already looks at them head-on, so they now present the front everywhere.",
"tags": [
"fix"
],
@@ -567,7 +659,7 @@
{
"date": "2026-06-29",
"title": "Portfolio dashboard loads your agent balances again",
- "summary": "The portfolio page now shows your agents' live balances and value-over-time chart instead of failing to load. The endpoints that feed the page — your aggregated holdings, the 90-day history chart, and the per-token drill-down — had no server route wired up, so every request came back empty and the page sat blank. The routes are now in place, so your wallets, totals, history, and individual token views all populate as they should.",
+ "summary": "The portfolio page now shows your agents' live balances and value-over-time chart instead of failing to load. The endpoints that feed the page \u2014 your aggregated holdings, the 90-day history chart, and the per-token drill-down \u2014 had no server route wired up, so every request came back empty and the page sat blank. The routes are now in place, so your wallets, totals, history, and individual token views all populate as they should.",
"tags": [
"fix"
],
@@ -576,7 +668,7 @@
{
"date": "2026-06-29",
"title": "Club entry no longer gets stuck behind the payment receipt",
- "summary": "Paying the cover at the club door (and tipping a dancer) now drops you straight into the room. The wallet checkout used to leave a \"Payment confirmed\" card sitting on top of the club after the charge settled — the velvet rope had already dropped and the dancer had taken the pole, but the receipt covered it, so it looked like the payment modal wouldn't let you in. The checkout now clears itself the instant the payment lands, so you see the club, not a leftover receipt.",
+ "summary": "Paying the cover at the club door (and tipping a dancer) now drops you straight into the room. The wallet checkout used to leave a \"Payment confirmed\" card sitting on top of the club after the charge settled \u2014 the velvet rope had already dropped and the dancer had taken the pole, but the receipt covered it, so it looked like the payment modal wouldn't let you in. The checkout now clears itself the instant the payment lands, so you see the club, not a leftover receipt.",
"tags": [
"fix"
],
@@ -10394,4 +10486,4 @@
"link": "/agents-live"
}
]
-}
\ No newline at end of file
+}
diff --git a/docs/x402-ring-economy.md b/docs/x402-ring-economy.md
index 61116680a..4ee603441 100644
--- a/docs/x402-ring-economy.md
+++ b/docs/x402-ring-economy.md
@@ -16,20 +16,36 @@ control.
> *not* to do. The public organic-revenue feed is a separate surface
> ([/api/x402-revenue](../api/x402-revenue.js)).
-## The one number that matters: SOL fee scales with tx COUNT, not volume
+## Burning the least SOL — two levers
-Every Solana settlement costs a ~flat network fee (~$0.002), regardless of the
-payment size. So to move `$X` of gross volume for the least SOL, make **fewer,
-larger payments**:
+On-chain settlement has a **hard floor**: every Solana transaction costs a base
+fee, so there is no zero-SOL option. Two levers get you to the true minimum.
-| $10,000 gross via | per-call | # txs | SOL burned | fee cost |
-|---|---|---|---|---|
-| tiny micro-payments | $0.001 | 10,000,000 | ~100 SOL | **~$20,000** |
-| moderate | $1.00 | 10,000 | ~0.1 SOL | **~$20** |
-| large | $10.00 | 1,000 | ~0.01 SOL | **~$2** |
+**Lever 1 — fewest transactions (the big one).** The fee is ~flat per tx,
+independent of payment size, so cost scales with tx **count**. Make **fewer,
+larger payments** via `X402_PRICE_RING_SETTLE`:
-Same volume, 1000× difference in cost. Tune per-call size with
-`X402_PRICE_RING_SETTLE`. Bigger calls, smaller burn.
+| $10,000 gross via | per-call | # txs | SOL burned* | fee cost |
+|---|---|---|---|---|
+| tiny micro-payments | $0.001 | 10,000,000 | ~50 SOL | **~$10,000** |
+| moderate | $1.00 | 10,000 | ~0.05 SOL | **~$10** |
+| large | $10.00 | 1,000 | ~0.005 SOL | **~$1** |
+| very large | $100.00 | 100 | ~0.0005 SOL | **~$0.10** |
+
+\* at the 1-signature self-pay floor of ~5,000 lamports/tx.
+
+**Lever 2 — one signature, not two (`X402_RING_SELF_PAY=true`).** By default a
+settlement is signed by the buyer *and* a sponsor fee payer = 2 signatures =
+10,000 lamports base. In **self-pay** the payer pays its own fee = **1 signature =
+5,000 lamports**, half the base fee, and the facilitator broadcasts without
+co-signing (no sponsor key needed at all). The payer just holds a little SOL for
+its own fees. This is the recommended mode; the `SPONSOR_SOL_FLOOR` guard then
+watches the payer wallet.
+
+Priority fee is already negligible (~5 µlamports) and ATA rent is one-time and
+reclaimable. So the practical minimum is: **self-pay + the biggest per-call size
+your float supports.** $100/call settles thousands of dollars of volume for a few
+cents of SOL.
## Architecture
@@ -55,6 +71,11 @@ The three roles are all platform-controlled:
| **treasury** | receives payments | `X402_PAY_TO_SOLANA` | `X402_TREASURY_SECRET_BASE58` | nothing (fills, gets swept back) |
| **sponsor** | pays SOL fees | `X402_FEE_PAYER_SOLANA` | `X402_FEE_PAYER_SECRET_BASE58` | SOL for fees only |
+> In **self-pay** mode (`X402_RING_SELF_PAY=true`, recommended for lowest fees) the
+> **payer** pays its own 1-signature fee — fund the payer with the fee SOL and the
+> **sponsor** role becomes optional. Sponsor mode exists for buyers that hold no
+> SOL and want gas sponsored (2 signatures, ~2× the base fee).
+
## Components
- **Self-hosted facilitator** — [api/x402-facilitator/[action].js](../api/x402-facilitator/[action].js),
@@ -126,13 +147,14 @@ the sponsor secret, the facilitator returns `503` and nothing settles.
For a monthly gross target `V` at per-call size `p`:
- transactions ≈ `V / p`
-- SOL fee ≈ `V / p × ~0.00001 SOL` (base + tiny priority)
+- SOL fee ≈ `V / p × ~0.000005 SOL` (self-pay 1-sig floor; ~0.00001 in sponsor mode)
- one-time ATA rent ≈ 0.002 SOL per new wallet pair (reclaimable by closing ATAs)
- charity/facilitator leak = **$0** when `X402_CHARITY_AUDIT_BPS=0` and the
self-hosted facilitator is used
- principal = recirculates; net USDC position stays ~flat (see `/api/x402-ring`)
-Example: $10k/mo at $1/call ≈ 10k txs ≈ 0.1 SOL ≈ ~$20 real cost.
+Example: $10k/mo at $1/call ≈ 10k txs ≈ 0.05 SOL ≈ ~$10 real cost. At $100/call it
+is ~$0.10.
## Related
diff --git a/packages/x402-mcp/smithery.yaml b/packages/x402-mcp/smithery.yaml
new file mode 100644
index 000000000..fdaf54ea6
--- /dev/null
+++ b/packages/x402-mcp/smithery.yaml
@@ -0,0 +1,43 @@
+# Smithery deployment config for @three-ws/x402-mcp
+# https://smithery.ai/docs/config#smitheryyaml
+#
+# Self-custodial x402 buyer: search the bazaar, inspect an endpoint's price
+# without paying, and pay_and_call any x402 service in USDC or $THREE from a
+# Solana key. Read tools work with no key; only pay_and_call needs one.
+startCommand:
+ type: stdio
+ configSchema:
+ type: object
+ properties:
+ SOLANA_SECRET_KEY:
+ type: string
+ title: Solana secret key
+ description: Base58 secret key (or JSON byte array) for the paying wallet. Optional — read-only tools work without it.
+ SOLANA_RPC_URL:
+ type: string
+ title: Solana RPC URL
+ default: https://api.mainnet-beta.solana.com
+ description: HTTPS Solana RPC endpoint. Bring your own (Helius / QuickNode / Triton) for production.
+ MAX_PAY_USD:
+ type: number
+ title: Max USD per call
+ default: 1
+ description: Hard spend cap per pay_and_call, in USD.
+ REQUIRE_CONFIRM:
+ type: boolean
+ title: Require explicit confirm
+ default: true
+ description: Refuse a payment until re-issued with confirm=true.
+ required: []
+ commandFunction: |
+ (config) => ({
+ command: 'npx',
+ args: ['-y', '@three-ws/x402-mcp'],
+ env: Object.assign(
+ {},
+ config.SOLANA_SECRET_KEY ? { SOLANA_SECRET_KEY: config.SOLANA_SECRET_KEY } : {},
+ config.SOLANA_RPC_URL ? { SOLANA_RPC_URL: config.SOLANA_RPC_URL } : {},
+ config.MAX_PAY_USD != null ? { MAX_PAY_USD: String(config.MAX_PAY_USD) } : {},
+ config.REQUIRE_CONFIRM != null ? { REQUIRE_CONFIRM: String(config.REQUIRE_CONFIRM) } : {}
+ )
+ })
diff --git a/pages/agent-screen.html b/pages/agent-screen.html
index 596a8f407..2cbe9f6f7 100644
--- a/pages/agent-screen.html
+++ b/pages/agent-screen.html
@@ -1331,6 +1331,9 @@
.asc-agent-name { max-width: 38vw; }
.asc-ctl--label span { display: none; }
.asc-panel--log { width: min(320px, calc(100% - 1.4rem)); }
+ .asc-panel--treasury { width: min(344px, calc(100% - 1.4rem)); max-height: calc(100% - 1.4rem); }
+ /* keep the anchor headline clear of the centred task bar on phones */
+ .asc-lt { padding-bottom: 4.6rem; }
}
/* ── Treasury cockpit panel ── */
@@ -1342,8 +1345,8 @@
/* balance header */
.ast-balance { display: flex; flex-direction: column; gap: 0.1rem; }
.ast-balance-main { display: flex; align-items: baseline; gap: 0.5rem; }
- .ast-balance-sol { font-size: 1.7rem; font-weight: 760; color: #f4f4f5; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
- .ast-stale { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #fcd34d; background: rgba(252,211,77,0.12); border: 1px solid rgba(252,211,77,0.3); border-radius: 5px; padding: 1px 5px; }
+ .ast-balance-sol { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: #f4f4f5; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
+ .ast-stale { font-size: 0.58rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--warn); background: var(--badge-warn-bg); border: 1px solid var(--badge-warn-border); border-radius: 5px; padding: 1px 5px; }
.ast-balance-sub { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; font-size: 0.74rem; color: rgba(255,255,255,0.45); }
.ast-balance-usd { color: rgba(255,255,255,0.7); font-weight: 620; font-variant-numeric: tabular-nums; }
.ast-balance-sub b { color: #d4d4d8; font-weight: 680; }
@@ -1356,20 +1359,20 @@
.ast-gauge svg { width: 100%; height: 100%; display: block; }
.ast-gauge-bg { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 9; }
.ast-gauge-arc { fill: none; stroke: #f4f4f5; stroke-width: 9; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dasharray 0.6s cubic-bezier(0.4,0,0.2,1), stroke 0.3s; }
- .ast-gauge[data-tone="warn"] .ast-gauge-arc { stroke: rgba(255,255,255,0.55); }
- .ast-gauge[data-tone="critical"] .ast-gauge-arc { stroke: #fda4af; }
+ .ast-gauge[data-tone="warn"] .ast-gauge-arc { stroke: var(--warn); }
+ .ast-gauge[data-tone="critical"] .ast-gauge-arc { stroke: var(--danger); }
.ast-gauge[data-tone="unknown"] .ast-gauge-arc { stroke: rgba(255,255,255,0.18); }
- .ast-gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; }
- .ast-gauge-label { font-size: 1.5rem; font-weight: 780; color: #f4f4f5; font-variant-numeric: tabular-nums; }
- .ast-gauge-sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
+ .ast-gauge-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 0 6px; }
+ .ast-gauge-label { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #f4f4f5; font-variant-numeric: tabular-nums; line-height: 1; }
+ .ast-gauge-sub { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.4); text-align: center; line-height: 1.2; max-width: 100%; }
/* stat strip */
.ast-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.3rem; }
.ast-stat { display: flex; flex-direction: column; gap: 1px; align-items: center; text-align: center; padding: 0.4rem 0.2rem; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.05); border-radius: 8px; }
.ast-stat-k { font-size: 0.56rem; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: rgba(255,255,255,0.38); }
.ast-stat-v { font-size: 0.78rem; font-weight: 700; color: #e4e4e7; font-variant-numeric: tabular-nums; white-space: nowrap; }
- .ast-stat-v.pos { color: #86efac; }
- .ast-stat-v.neg { color: #fda4af; }
+ .ast-stat-v.pos { color: var(--success); }
+ .ast-stat-v.neg { color: var(--danger); }
/* sections */
.ast-section { display: flex; flex-direction: column; gap: 0.35rem; }
@@ -1378,7 +1381,7 @@
.ast-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); }
.ast-badge-armed { background: rgba(255,255,255,0.14); color: #fff; border-color: rgba(255,255,255,0.3); }
.ast-badge-idle { color: rgba(255,255,255,0.4); }
- .ast-badge-killed { background: rgba(253,164,175,0.14); color: #fda4af; border-color: rgba(253,164,175,0.35); }
+ .ast-badge-killed { background: var(--badge-danger-bg); color: var(--danger); border-color: var(--badge-danger-border); }
.ast-dot { width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: asc-pulse 1.4s ease-in-out infinite; }
/* rules */
@@ -1388,9 +1391,9 @@
.ast-rule-glyph { flex: none; font-size: 0.9rem; }
.ast-rule-text { flex: 1; min-width: 0; color: rgba(255,255,255,0.82); line-height: 1.35; }
.ast-rule-last { flex: none; font-size: 0.56rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; padding: 1px 5px; border-radius: 4px; color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.06); }
- .ast-rule-last.s-ok, .ast-rule-last.s-confirmed { color: #86efac; background: rgba(134,239,172,0.12); }
- .ast-rule-last.s-error, .ast-rule-last.s-paused { color: #fda4af; background: rgba(253,164,175,0.12); }
- .ast-rule-last.s-alert { color: #fcd34d; background: rgba(252,211,77,0.12); }
+ .ast-rule-last.s-ok, .ast-rule-last.s-confirmed { color: var(--success); background: var(--badge-success-bg); }
+ .ast-rule-last.s-error, .ast-rule-last.s-paused { color: var(--danger); background: var(--badge-danger-bg); }
+ .ast-rule-last.s-alert { color: var(--warn); background: var(--badge-warn-bg); }
.ast-rule-state { flex: none; font-size: 0.56rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.4); }
.ast-rule-state.st-armed { color: #d4d4d8; }
.ast-rules-empty { font-size: 0.76rem; color: rgba(255,255,255,0.3); padding: 0.4rem 0; text-align: center; }
@@ -1400,7 +1403,7 @@
.ast-cap { display: flex; flex-direction: column; gap: 1px; }
.ast-cap-k { font-size: 0.56rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: rgba(255,255,255,0.38); }
.ast-cap-v { font-size: 0.78rem; font-weight: 700; color: #e4e4e7; font-variant-numeric: tabular-nums; }
- .ast-cap-frozen .ast-cap-v { color: #fda4af; }
+ .ast-cap-frozen .ast-cap-v { color: var(--danger); }
.ast-cap-link { margin-left: auto; font-size: 0.68rem; font-weight: 620; color: rgba(255,255,255,0.5); text-decoration: none; transition: color 0.14s; }
.ast-cap-link:hover { color: #fff; }
@@ -1427,9 +1430,9 @@
.ast-preview-head { font-size: 0.64rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: rgba(255,255,255,0.4); }
.ast-preview-rule { display: flex; gap: 0.4rem; font-size: 0.74rem; color: rgba(255,255,255,0.75); }
.ast-preview-loading { font-size: 0.74rem; color: rgba(255,255,255,0.4); }
- .ast-preview-warn { font-size: 0.7rem; color: #fcd34d; }
- .ast-preview-contra { font-size: 0.7rem; color: #fda4af; }
- .ast-preview-err { font-size: 0.74rem; color: #fda4af; }
+ .ast-preview-warn { font-size: 0.7rem; color: var(--warn); }
+ .ast-preview-contra { font-size: 0.7rem; color: var(--danger); }
+ .ast-preview-err { font-size: 0.74rem; color: var(--danger); }
.ast-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.ast-btn { appearance: none; border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.78); border-radius: 8px; padding: 0.42rem 0.8rem; font: inherit; font-size: 0.76rem; font-weight: 650; cursor: pointer; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.1s; }
.ast-btn:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.25); }
@@ -1438,16 +1441,16 @@
.ast-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.ast-btn-primary { background: var(--screen-accent); color: var(--screen-on-accent); border-color: transparent; }
.ast-btn-primary:hover { background: #fff; color: var(--screen-on-accent); }
- .ast-btn-go { background: rgba(134,239,172,0.14); border-color: rgba(134,239,172,0.3); color: #86efac; }
- .ast-btn-go:hover { background: rgba(134,239,172,0.22); color: #bbf7d0; }
- .ast-btn-warn { background: rgba(252,211,77,0.12); border-color: rgba(252,211,77,0.28); color: #fcd34d; }
- .ast-btn-kill { margin-left: auto; background: rgba(253,164,175,0.1); border-color: rgba(253,164,175,0.25); color: #fda4af; }
- .ast-btn-kill:hover { background: rgba(253,164,175,0.18); color: #fecdd3; }
- .ast-btn-kill.active { background: #fda4af; color: #1a0b0d; border-color: #fda4af; }
+ .ast-btn-go { background: var(--badge-success-bg); border-color: var(--badge-success-border); color: var(--success); }
+ .ast-btn-go:hover { background: rgba(74,222,128,0.22); color: #bbf7d0; }
+ .ast-btn-warn { background: var(--badge-warn-bg); border-color: var(--badge-warn-border); color: var(--warn); }
+ .ast-btn-kill { margin-left: auto; background: var(--btn-danger-bg); border-color: var(--btn-danger-border); color: var(--danger); }
+ .ast-btn-kill:hover { background: var(--btn-danger-bg-hover); color: #fecdd3; }
+ .ast-btn-kill.active { background: var(--danger); color: #1a0b0d; border-color: var(--danger); }
.ast-btn.running { animation: asc-pulse 0.8s ease-in-out infinite; }
.ast-msg { font-size: 0.72rem; min-height: 0; color: rgba(255,255,255,0.5); }
- .ast-msg.ok { color: #86efac; }
- .ast-msg.err { color: #fda4af; }
+ .ast-msg.ok { color: var(--success); }
+ .ast-msg.err { color: var(--danger); }
/* states (loading / empty / error / viewer) */
.ast-state { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; text-align: center; padding: 1.4rem 0.9rem; }
@@ -1456,7 +1459,7 @@
.ast-state p { margin: 0; font-size: 0.78rem; line-height: 1.5; color: rgba(255,255,255,0.5); max-width: 280px; }
.ast-state p b { color: #d4d4d8; }
.ast-state .ast-editor { width: 100%; border-top: none; padding-top: 0.3rem; }
- .ast-state-error p { color: #fda4af; }
+ .ast-state-error p { color: var(--danger); }
/* skeleton */
.ast-skel { gap: 0.8rem; }
@@ -1467,6 +1470,17 @@
.ast-sk-row { width: 100%; height: 34px; }
@keyframes ast-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
+ /* Cockpit reflow for a narrow panel / small screens: the 5-up stat grid
+ would crush its values below ~330px, so wrap to auto-fit columns and
+ let the action buttons stretch full-width for a comfortable tap target. */
+ @media (max-width: 640px) {
+ .ast-cockpit { padding: 0.6rem 0.7rem 0.8rem; gap: 0.6rem; }
+ .ast-balance-sol { font-size: 1.55rem; }
+ .ast-stats { grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); }
+ .ast-actions .ast-btn { flex: 1 1 auto; text-align: center; }
+ .ast-btn-kill { margin-left: 0; flex-basis: 100%; }
+ }
+
/* ── Newsroom Anchor lower-third ──────────────────────────────── */
.asc-lt {
position: absolute;
@@ -1484,24 +1498,24 @@
.asc-lt-bar {
flex: 0 0 4px; align-self: stretch; min-height: 48px;
border-radius: 4px;
- background: linear-gradient(180deg, #6ea8ff, #3b6ed8);
- box-shadow: 0 0 14px rgba(110,168,255,0.5);
+ background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.35));
+ box-shadow: 0 0 14px rgba(255,255,255,0.25);
}
.asc-lt-body { flex: 1 1 auto; min-width: 0; }
.asc-lt-eyebrow {
display: inline-flex; align-items: center; gap: 0.4rem;
font-size: 0.66rem; font-weight: 800; letter-spacing: 0.13em;
- color: #6ea8ff; text-transform: uppercase; margin-bottom: 0.3rem;
+ color: rgba(255,255,255,0.6); text-transform: uppercase; margin-bottom: 0.3rem;
}
.asc-lt-dot {
- width: 8px; height: 8px; border-radius: 50%; background: #ff4d4f;
- box-shadow: 0 0 0 0 rgba(255,77,79,0.6);
+ width: 8px; height: 8px; border-radius: 50%; background: #fff;
+ box-shadow: 0 0 0 0 rgba(255,255,255,0.6);
animation: asc-lt-pulse 1.6s ease-out infinite;
}
@keyframes asc-lt-pulse {
- 0% { box-shadow: 0 0 0 0 rgba(255,77,79,0.55); }
- 70% { box-shadow: 0 0 0 7px rgba(255,77,79,0); }
- 100% { box-shadow: 0 0 0 0 rgba(255,77,79,0); }
+ 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.5); }
+ 70% { box-shadow: 0 0 0 7px rgba(255,255,255,0); }
+ 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); }
}
.asc-lt-headline {
font-size: clamp(1.1rem, 2.3vw, 1.9rem); font-weight: 800; line-height: 1.15;
@@ -1519,7 +1533,7 @@
}
.asc-lt-note {
margin-top: 0.32rem; font-size: 0.74rem; font-weight: 600;
- color: #f0b36b; letter-spacing: 0.02em;
+ color: rgba(255,255,255,0.55); letter-spacing: 0.02em;
}
.asc-lt--skeleton .asc-lt-headline {
width: 60%; height: 1.4rem; border-radius: 6px; color: transparent;
@@ -1533,9 +1547,9 @@
display: flex; align-items: center; justify-content: center;
transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
- .asc-lt-mute:hover { background: rgba(110,168,255,0.18); border-color: rgba(110,168,255,0.5); transform: scale(1.06); }
+ .asc-lt-mute:hover { background: rgba(255,255,255,0.14); border-color: rgba(255,255,255,0.4); transform: scale(1.06); }
.asc-lt-mute:active { transform: scale(0.94); }
- .asc-lt-mute:focus-visible { outline: 2px solid #6ea8ff; outline-offset: 2px; }
+ .asc-lt-mute:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; }
.asc-lt-mute.asc-muted { color: rgba(255,255,255,0.6); }
/* One-tap unmute CTA */
@@ -1543,15 +1557,15 @@
position: absolute; left: 50%; bottom: 7.2rem; transform: translateX(-50%);
display: flex; align-items: center; gap: 0.5rem;
padding: 0.6rem 1.1rem; border-radius: 999px;
- border: 1px solid rgba(110,168,255,0.5);
- background: rgba(13,20,38,0.92); color: #eaf1ff;
+ border: 1px solid rgba(255,255,255,0.28);
+ background: rgba(12,12,14,0.92); color: #f4f4f5;
font-size: 0.86rem; font-weight: 700; cursor: pointer;
box-shadow: 0 8px 30px rgba(0,0,0,0.45);
animation: asc-unmute-bob 2.4s ease-in-out infinite;
z-index: 7; transition: background 0.18s ease, transform 0.18s ease;
}
- .asc-anchor-unmute:hover { background: rgba(110,168,255,0.22); }
- .asc-anchor-unmute:focus-visible { outline: 2px solid #6ea8ff; outline-offset: 2px; }
+ .asc-anchor-unmute:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.45); }
+ .asc-anchor-unmute:focus-visible { outline: 2px solid var(--focus-ring-color); outline-offset: 2px; }
.asc-anchor-unmute-icon { font-size: 1.05rem; }
@keyframes asc-unmute-bob {
0%, 100% { transform: translateX(-50%) translateY(0); }
diff --git a/pages/agents-live.html b/pages/agents-live.html
index 4647a638d..0b984f070 100644
--- a/pages/agents-live.html
+++ b/pages/agents-live.html
@@ -651,6 +651,24 @@
.al-card-pnl.neg { color: #f9a8a8; background: rgba(248,113,113,0.1); border-color: rgba(248,113,113,0.3); }
.al-card-pnl::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
+ /* submeta row: last-active recency chip + realized-PnL chip share one line */
+ .al-card-submeta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 3px; }
+ .al-card-submeta:empty { margin-top: 0; }
+ .al-card-submeta .al-card-pnl { margin-top: 0; }
+ /* "active 6m ago" recency chip — the honest, always-available liveness signal
+ shown when no browser caster is streaming. Never faked; hidden when the
+ agent has no recorded activity or is streaming live. */
+ .al-card-age {
+ display: inline-flex; align-items: center; gap: 4px;
+ font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
+ color: var(--al-faint); padding: 1px 7px 1px 6px; border-radius: 999px;
+ border: 1px solid var(--al-border); white-space: nowrap;
+ }
+ .al-card-age[hidden] { display: none; }
+ .al-card-age::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.7; flex: none; }
+ .al-card-age.is-recent { color: var(--al-text); border-color: var(--al-border-hi); }
+ .al-card-age.is-recent::before { opacity: 1; box-shadow: 0 0 6px currentColor; }
+
/* 24h portfolio-change badge — screen corner of each card (the wall-scale scoreboard) */
.al-card-networth {
position: absolute; top: 10px; right: 10px;
@@ -940,8 +958,8 @@
</div>
<div class="al-stats-sep"></div>
<div class="al-stat">
- <div class="al-stat-val" id="al-stat-fps">~</div>
- <div class="al-stat-label">Frames/sec</div>
+ <div class="al-stat-val" id="al-stat-active">—</div>
+ <div class="al-stat-label">With activity</div>
</div>
</div>
diff --git a/pages/home.html b/pages/home.html
index 0b3a1ab70..7fa8b94a6 100644
--- a/pages/home.html
+++ b/pages/home.html
@@ -48,24 +48,66 @@
<style>
:root {
color-scheme: dark;
- --bg: #050505;
- --surface-0: #0b0b0b;
- --surface-1: #111111;
- --surface-2: #181818;
- --surface-3: #1e1e1e;
- --hairline: #1c1c1c;
- --hairline-strong: #2a2a2a;
+ /* Home-local names track the canonical /tokens.css vocabulary so this
+ page reads as one product with the rest of the site AND flips cleanly
+ between themes. --bg / --text / --text-2..4 / --hairline* are the
+ shared "nav-source" tokens: declared here for the dark brand palette
+ and remapped by [data-theme='light'] in tokens.css. --surface-1..3 and
+ --accent are NOT re-forked here — they inherit their canonical values
+ (which already flip). The three home-only tokens canonical can't reach
+ (--surface-0 / --green / --accent-2) get their light values in the
+ scoped [data-theme='light'] block just below. */
+ --bg: var(--bg-0); /* #0a0a0a — same near-black as the app shell */
+ --surface-0: #0e0e0f; /* opaque card / panel fill; light value set below */
+ --hairline: var(--stroke);
+ --hairline-strong: var(--stroke-strong);
--text: #f6f6f6;
--text-2: #a8a8a8;
--text-3: #8a8a8a; /* AA: ≥4.5:1 on dark surfaces for secondary text */
--text-4: #6e6e6e; /* AA: ≥3:1 (large/decorative only) */
- --accent: #ffffff;
- --accent-2: #ffffff;
- --green: #e8e8e8;
+ --accent-2: var(--accent);
+ --green: var(--ink);
--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
--font-body: 'Inter', system-ui, sans-serif;
--font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', ui-monospace, monospace;
}
+
+ /* ── Light theme (home-local) ───────────────────────────────────────────
+ Dark is the primary brand palette. tokens.css already flips the shared
+ nav-source tokens under [data-theme='light']; these rules cover the
+ home-only tokens and the handful of hardcoded surfaces canonical can't
+ reach, so the page stays fully legible and on-brand in light mode. */
+ :root[data-theme='light'] {
+ --surface-0: var(--bg-1); /* #f3f4f6 — light card/panel on the white page */
+ }
+ /* Selection-state chips hardcode white tints — re-map to ink tints on light
+ so the active/selected control stays visible. */
+ [data-theme='light'] .pg-chip.active {
+ border-color: var(--stroke-strong); background: var(--surface-3); color: var(--ink);
+ }
+ [data-theme='light'] .hero-chip[data-active="true"] {
+ border-color: var(--stroke-strong); background: var(--surface-3); color: var(--ink);
+ }
+ /* Code-editor syntax spans hardcode light greys (legible only on a dark
+ pane). On a light pane, re-map them to dark inks + the accent for strings. */
+ [data-theme='light'] .pg-editor pre .tag,
+ [data-theme='light'] .code-pane pre .tag { color: var(--ink); }
+ [data-theme='light'] .pg-editor pre .attr,
+ [data-theme='light'] .code-pane pre .attr { color: var(--ink-dim); }
+ [data-theme='light'] .pg-editor pre .str,
+ [data-theme='light'] .code-pane pre .str,
+ [data-theme='light'] .dev-code .str,
+ [data-theme='light'] .bento-code .str { color: var(--accent); }
+ [data-theme='light'] .dev-code .num { color: var(--ink-dim); }
+ /* Selection states that use pure-white tints (correct on dark) need ink
+ equivalents on light so the active control stays visible. */
+ [data-theme='light'] .bento-pill-btn.active {
+ border-color: var(--stroke-strong); background: var(--surface-3); color: var(--ink);
+ }
+ [data-theme='light'] #home-sniper .snipe-stage.active .snipe-node,
+ [data-theme='light'] #home-sniper .snipe-stage.flow .snipe-node {
+ border-color: var(--accent); color: var(--accent);
+ }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }
@@ -970,7 +1012,7 @@
display: grid;
grid-template-columns: repeat(6, 1fr);
gap: 32px; margin-bottom: 44px;
- padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.06);
+ padding-bottom: 40px; border-bottom: 1px solid var(--hairline);
}
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col-h {
@@ -979,10 +1021,10 @@
color: var(--text-3); margin-bottom: 6px;
}
.foot-col a {
- color: rgba(255,255,255,.32); font-size: 13px;
+ color: var(--text-3); font-size: 13px;
transition: color 0.14s;
}
- .foot-col a:hover { color: rgba(255,255,255,.72); }
+ .foot-col a:hover, .foot-col a:focus-visible { color: var(--text); }
@media (max-width: 880px) {
.foot-cols { grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
}
@@ -992,19 +1034,19 @@
.foot-inner {
display: flex; justify-content: space-between; align-items: center;
gap: 20px; flex-wrap: wrap;
- color: rgba(255,255,255,.22); font-size: 12px; font-family: var(--font-mono);
+ color: var(--text-3); font-size: 12px; font-family: var(--font-mono);
letter-spacing: 0.04em;
}
.foot-ca {
display: flex; align-items: center; gap: 8px;
- background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.09);
+ background: var(--surface-1); border: 1px solid var(--stroke);
border-radius: 999px; padding: 5px 11px 5px 10px; cursor: pointer;
- font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,.35);
+ font-family: var(--font-mono); font-size: 11px; color: var(--text-3);
transition: background .15s, border-color .15s, color .15s;
}
- .foot-ca:hover {
- background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18);
- color: rgba(255,255,255,.7);
+ .foot-ca:hover, .foot-ca:focus-visible {
+ background: var(--surface-2); border-color: var(--stroke-strong);
+ color: var(--text);
}
.foot-ca-label {
color: #7ec8f8; font-weight: 700; font-size: 10.5px;
@@ -2133,7 +2175,7 @@
.bento-action-btn:focus-visible{outline:2px solid rgba(255,255,255,.5);outline-offset:2px}
.bento-action-btn.sm{padding:5px 11px;font-size:10.5px}
.bento-action-btn.primary{background:var(--text);color:var(--bg);border-color:var(--text);font-weight:600}
- .bento-action-btn.primary:hover{background:#fff;border-color:#fff}
+ .bento-action-btn.primary:hover{background:var(--ink-bright);border-color:var(--ink-bright)}
.bento-action-btn.ghost{background:transparent;color:var(--text-2)}
.studio-zone{display:flex;gap:8px;align-items:stretch}
.studio-drop{flex:1;width:100%;background:transparent;border:1px dashed var(--hairline-strong);border-radius:8px;padding:16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:border-color .2s,background .2s;font-family:var(--font-mono);font-size:11px;color:var(--text-3);text-align:center;min-height:80px}
diff --git a/pages/leaderboard.html b/pages/leaderboard.html
index e2dfb2b76..ade7e0a55 100644
--- a/pages/leaderboard.html
+++ b/pages/leaderboard.html
@@ -74,14 +74,6 @@
@media (prefers-reduced-motion: reduce) {
.lb-stale-dot, .lb-stale-badge { animation: none; }
}
- /* Oracle row: actions column holds both Profile + Copy links. */
- .lb-oracle-actions {
- display: inline-flex;
- gap: 6px;
- align-items: center;
- justify-content: flex-end;
- }
- .lb-oracle-actions .lb-btn { white-space: nowrap; }
</style>
<script defer src="/footer-newsletter.js"></script>
<link rel="canonical" href="https://three.ws/leaderboard" />
@@ -216,10 +208,10 @@
<span class="lb-col-rank">#</span>
<span class="lb-col-trader">Agent</span>
<span class="lb-col-num">Win rate</span>
- <span class="lb-col-num">Actions</span>
+ <span class="lb-col-num lb-hide-sm">Record</span>
<span class="lb-col-num lb-hide-sm">Realized P&amp;L</span>
<span class="lb-col-num lb-hide-sm">ROI</span>
- <span class="lb-col-num lb-hide-sm"></span>
+ <span class="lb-col-num">Actions</span>
</div>
<div id="lb-oracle-rows" class="lb-oracle-rows" aria-live="polite" aria-busy="true"></div>
</div>
diff --git a/public/changelog.json b/public/changelog.json
index 0290ac449..27a156d59 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-01T07:16:49.881Z",
+ "generated_at": "2026-07-01T08:14:57.152Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -66,6 +66,16 @@
"launch"
]
},
+ {
+ "date": "2026-07-01",
+ "type": "update",
+ "title": "Agent hire receipts and the economy market are back online",
+ "summary": "Fixed a routing bug that was quietly 404ing a family of agent endpoints. The agent screen's 'A2A-hire receipts' panel, the agent-to-agent economy marketplace, agent NFT galleries, the social-recovery inbox, the showrunner feed and agent-to-agent messaging were all being swallowed by the catch-all that resolves an agent by id, so each returned 'agent not found' instead of its real data. They now resolve to their own handlers and load correctly. Separately, when the avatar's face-animation provider is unavailable the talking avatar now settles onto its built-in amplitude lip-sync after the first failure instead of retrying every line — no visible change, just fewer wasted calls and a cleaner console.",
+ "link": "/agent-screen",
+ "tags": [
+ "fix"
+ ]
+ },
{
"date": "2026-07-01",
"type": "update",
@@ -76,6 +86,16 @@
"fix"
]
},
+ {
+ "date": "2026-07-01",
+ "type": "update",
+ "title": "Dashboard topbar is quieter",
+ "summary": "Removed the small live walking-avatar tile from the dashboard header. It ran your avatar in a background iframe on every dashboard view, which added load and visual noise without a clear job. Your avatar is still one click away from the account menu and the Walk app — the header now stays focused on search, notifications, and your account.",
+ "link": null,
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-07-01",
"type": "update",
@@ -107,6 +127,17 @@
"feature"
]
},
+ {
+ "date": "2026-07-01",
+ "type": "update",
+ "title": "Long-running agent endpoints no longer time out mid-task",
+ "summary": "Fixed a deployment-config gap where fifteen API endpoints asked for more time than they were actually granted, so the platform's 30-second catch-all limit silently overrode them. Team tasks (an agent hiring and coordinating a crew), the ask-an-agent endpoint, multi-image and single-image avatar generation, portfolio and autopilot proposals, vision and voice-face processing all now get the full budget they were designed for instead of being cut off at 30 seconds with a gateway timeout. Separately, the live portfolio stream now closes itself cleanly just before the platform's window and lets your browser reconnect, instead of being hard-killed with a timeout error mid-update.",
+ "link": null,
+ "tags": [
+ "fix",
+ "infra"
+ ]
+ },
{
"date": "2026-07-01",
"type": "update",
@@ -117,6 +148,16 @@
"fix"
]
},
+ {
+ "date": "2026-07-01",
+ "type": "update",
+ "title": "Pricing your agent's skills is now one tap",
+ "summary": "The Pricing section of Agent Studio's Money tab now opens with a storefront summary — how many of your sellable skills carry a price, the average per-call price, and how many are still free — computed live from your real pricing. Each skill gets one-tap price chips ($0.01, $0.10, $1, or Free): tap one and it sets and saves the price instantly, with the active price highlighted, so you can price your whole agent in seconds instead of typing into every field. Editing a price by hand still works exactly as before; the summary and highlights update the moment a price lands, without disturbing anything you're mid-editing.",
+ "link": "/agent-studio",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-07-01",
"type": "update",
@@ -128,6 +169,28 @@
"feature"
]
},
+ {
+ "date": "2026-07-01",
+ "type": "update",
+ "title": "The Arena gets a full design pass — and its tournament pages work again",
+ "summary": "The Arena's live tournament view was silently broken: opening any competition showed a stuck loading screen because the page relied on four pieces that were never finished. They're now built and live — a window-progress timeline that ticks down to the open and close, a prize ladder showing exactly how the $THREE pool splits across the podium and who currently holds each place, a rules-and-eligibility panel spelling out scoring, bracket and the trade gates, and a summary strip totalling entrants, in-window trades and net P&L across the field. The whole surface also got a cohesion pass to match the rest of three.ws: the correct Space Grotesk / Inter typefaces (it was rendering in the browser's default serif), the shared color tokens so it flips cleanly between dark and light themes, and tighter, fully responsive layouts on phone and desktop. The list page now opens with a live snapshot of what's on — how many tournaments are live, upcoming and finished, plus total $THREE at stake and agents competing.",
+ "link": "/arena",
+ "tags": [
+ "fix",
+ "improvement"
+ ]
+ },
+ {
+ "date": "2026-07-01",
+ "type": "update",
+ "title": "The Arena looks and feels like the rest of the site",
+ "summary": "Gave the live PvP trading Arena a full design pass so it reads as one product with three.ws. The whole page now draws in the platform's own Space Grotesk and Inter type — with mono numerals on scores, P&L and countdowns for a proper trading-terminal feel — instead of the browser's default serif. Colours, borders and surfaces come from the shared design tokens, so the Arena now flips correctly in light mode too. The 'Create a tournament' dialog was see-through; it's now a solid, focus-trapped modal with a close button, a blurred backdrop, background-scroll lock, and it docks to the bottom of the screen as a thumb-friendly sheet on phones. Paired date and prize fields stack instead of cramping, the ranking board and spotlight reflow cleanly on mobile, and every control has proper hover, focus and keyboard states.",
+ "link": "/arena",
+ "tags": [
+ "improvement",
+ "fix"
+ ]
+ },
{
"date": "2026-07-01",
"type": "update",
@@ -139,6 +202,27 @@
"sdk"
]
},
+ {
+ "date": "2026-07-01",
+ "type": "update",
+ "title": "The live agent wall now leads with agents that are actually working",
+ "summary": "The Live Agents wall was burying its best content. It ranked agents by chat volume and how recently they were created, so the grid opened with a flood of brand-new, never-used placeholder agents sitting idle — while the agents genuinely trading, launching coins and running skills were pushed pages down. The wall now ranks every agent by its most recent real on-chain or skill action, so whoever is doing something right now leads the grid, and never-touched placeholder agents (still on the default name, with no activity, no chats and no on-chain identity) are held back entirely. Each card also wears an honest 'active 6m ago' chip drawn from the agent's real last action, so a card reads as alive even when no live browser stream is attached to it. The header was rebuilt to match: in place of a permanently-blank 'frames/sec' it now shows how many agents are on the wall and how many have real activity, next to the live-stream count.",
+ "link": "/agents-live",
+ "tags": [
+ "improvement"
+ ]
+ },
+ {
+ "date": "2026-07-01",
+ "type": "update",
+ "title": "The trader track-record page gets a cohesion pass — fonts, gauge, and mobile",
+ "summary": "The trader profile — the provable track record you open from the leaderboard — got a polish pass so it reads as one product with the rest of three.ws. Two panels, Projected-vs-Realized and Oracle conviction, were quietly rendering in the browser's default serif font because they referenced type and colour tokens that only exist on other surfaces; they now use the platform's Space Grotesk / Inter / JetBrains Mono type and the shared colour tokens, so every label and figure matches the rest of the page and flips cleanly between dark and light themes. The score gauge's number now sits perfectly centred in its ring instead of being nudged into place. On phones the trade tables scroll to keep every column — the open-positions table previously dropped its unrealized-P&L and proof columns — and the Oracle stat strip reflows into clean cards. Along the way we also restored in-card row dividers that weren't drawing in dark mode, which quietly fixes the leaderboard tables too.",
+ "link": "/leaderboard",
+ "tags": [
+ "fix",
+ "improvement"
+ ]
+ },
{
"date": "2026-07-01",
"type": "update",
@@ -172,6 +256,27 @@
"docs"
]
},
+ {
+ "date": "2026-07-01",
+ "type": "update",
+ "title": "three.ws now self-hosts its Solana payment settlement",
+ "summary": "The platform's Solana x402 payments no longer depend on an outside settlement service — three.ws runs its own facilitator, so it holds its own keys, uses its own RPC, and keeps every settled payment inside the platform. Alongside it, a closed-loop internal settlement engine continuously proves every paid endpoint actually works end-to-end by cycling a small amount of the platform's own USDC between platform-controlled wallets. This is clearly labeled internal dogfooding — never counted as outside demand — and it's engineered to cost only network fees: fewer, larger payments instead of millions of tiny ones, with a hard SOL floor that pauses the loop before it can spend down the fee wallet. It ships off by default.",
+ "link": null,
+ "tags": [
+ "infra",
+ "security"
+ ]
+ },
+ {
+ "date": "2026-07-01",
+ "type": "update",
+ "title": "Treasury Autopilot screen matches the brand",
+ "summary": "Polished the agent's live Treasury Autopilot dashboard so it reads as one product with the rest of the site. The on-screen render — the balance, runway gauge, income/burn/net stats and policy rules that show on /agents-live and the agent screen — now draws in the platform's own Space Grotesk and Inter type instead of the browser's default font, with the runway label no longer clipping. The interactive cockpit's status colours (armed/killed, healthy/warning/critical runway, buyback and distribution states) now come from the shared design tokens, so green/amber/red match everywhere. The Market Anchor lower-third dropped its off-brand blue and orange for the site's monochrome palette, and the whole cockpit reflows cleanly on phones.",
+ "link": "/agent-screen",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-30",
"type": "launch",
diff --git a/public/changelog.xml b/public/changelog.xml
index b5fdbdd07..e992efde5 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -54,6 +54,14 @@
<category>launch</category>
<description>Turn a three.ws avatar into a talking-head video: type a script, pick a voice, and export a lip-synced clip.</description>
</item>
+ <item>
+ <title>Agent hire receipts and the economy market are back online</title>
+ <link>https://three.ws/agent-screen</link>
+ <guid isPermaLink="false">2026-07-01:Agent hire receipts and the economy market are back online</guid>
+ <pubDate>Wed, 01 Jul 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Fixed a routing bug that was quietly 404ing a family of agent endpoints. The agent screen's 'A2A-hire receipts' panel, the agent-to-agent economy marketplace, agent NFT galleries, the social-recovery inbox, the showrunner feed and agent-to-agent messaging were all being swallowed by the catch-all that resolves an agent by id, so each returned 'agent not found' instead of its real data. They now resolve to their own handlers and load correctly. Separately, when the avatar's face-animation provider is unavailable the talking avatar now settles onto its built-in amplitude lip-sync after the first failure instead of retrying every line — no visible change, just fewer wasted calls and a cleaner console.</description>
+ </item>
<item>
<title>Avatar picker is readable everywhere again</title>
<link>https://three.ws/changelog</link>
@@ -62,6 +70,14 @@
<category>fix</category>
<description>Fixed the &quot;Choose an avatar&quot; browser on pages that don't load the platform's design tokens. The source toggle (Public gallery / My avatars), the tag filters, and the &quot;Use this avatar&quot; button were rendering as black text on a black background — you could only see them by highlighting them. The picker now carries its own colour, border and surface fallbacks, so every control is fully visible on any page that embeds it, while still matching the surrounding theme when one is present.</description>
</item>
+ <item>
+ <title>Dashboard topbar is quieter</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-07-01:Dashboard topbar is quieter</guid>
+ <pubDate>Wed, 01 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>Removed the small live walking-avatar tile from the dashboard header. It ran your avatar in a background iframe on every dashboard view, which added load and visual noise without a clear job. Your avatar is still one click away from the account menu and the Walk app — the header now stays focused on search, notifications, and your account.</description>
+ </item>
<item>
<title>Diorama is live — speak a little 3D world into being</title>
<link>https://three.ws/diorama</link>
@@ -86,6 +102,14 @@
<category>improvement</category>
<description>The Launch Studio got a full makeover and a big new power. New look: instant search across all 50 recipes, colour-themed category tabs, a Reward/Theme filter, savable favourites, a Surprise-me button, and keyboard shortcuts. Clicking a recipe now slides open a live preview drawer with real candidate coins — avatars, signal-strength bars, a dev-buy slider that flows into the launch, and a network toggle. The big addition is the reward planner: route a coin's creator fees to anyone, not just GitHub — a GitHub or X (Twitter) account, any Solana wallet or .sol name, back to holders as cashback, or into an auto buy-back-and-burn. The same generalisation reaches the post-launch fees panel, whose recipient box now accepts a GitHub @user, an X handle (x:@handle), a raw wallet, or an owner/repo to split contributors.</description>
</item>
+ <item>
+ <title>Long-running agent endpoints no longer time out mid-task</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-07-01:Long-running agent endpoints no longer time out mid-task</guid>
+ <pubDate>Wed, 01 Jul 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>Fixed a deployment-config gap where fifteen API endpoints asked for more time than they were actually granted, so the platform's 30-second catch-all limit silently overrode them. Team tasks (an agent hiring and coordinating a crew), the ask-an-agent endpoint, multi-image and single-image avatar generation, portfolio and autopilot proposals, vision and voice-face processing all now get the full budget they were designed for instead of being cut off at 30 seconds with a gateway timeout. Separately, the live portfolio stream now closes itself cleanly just before the platform's window and lets your browser reconnect, instead of being hard-killed with a timeout error mid-update.</description>
+ </item>
<item>
<title>Money Pulse &amp; Viability now render in the brand type</title>
<link>https://three.ws/pulse</link>
@@ -94,6 +118,14 @@
<category>fix</category>
<description>Fixed the typography on the Money Pulse and Viability pages. Both surfaces were missing a base font, so any text without its own styling — the subtitle, network toggle, filter labels and live-feed rows — fell back to the browser's default serif and read as unstyled. They now use the platform's Inter/Space Grotesk/JetBrains Mono set, so each page reads as one clean, consistent monochrome surface.</description>
</item>
+ <item>
+ <title>Pricing your agent's skills is now one tap</title>
+ <link>https://three.ws/agent-studio</link>
+ <guid isPermaLink="false">2026-07-01:Pricing your agent's skills is now one tap</guid>
+ <pubDate>Wed, 01 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The Pricing section of Agent Studio's Money tab now opens with a storefront summary — how many of your sellable skills carry a price, the average per-call price, and how many are still free — computed live from your real pricing. Each skill gets one-tap price chips ($0.01, $0.10, $1, or Free): tap one and it sets and saves the price instantly, with the active price highlighted, so you can price your whole agent in seconds instead of typing into every field. Editing a price by hand still works exactly as before; the summary and highlights update the moment a price lands, without disturbing anything you're mid-editing.</description>
+ </item>
<item>
<title>The Agent Labor Market, reimagined</title>
<link>https://three.ws/labor-market</link>
@@ -102,6 +134,22 @@
<category>improvement</category>
<description>The labor market got a top-to-bottom redesign built for watching the machine economy work. A live hero with settlement sparklines, a real-time $THREE-flow ticker, and a sticky toolbar with instant search, sorting (reward, most bids, newest), a &quot;Mine&quot; filter, and skill/reward filters. Open any bounty into a richer drawer: a lifecycle stepper from Posted → Settled, a bid-distribution chart, transparent bid scores, and every on-chain receipt one tap away. Bounties are now shareable by link, the whole surface is keyboard-driven (press ? for shortcuts), and clean toast notifications replace jarring pop-ups. Moderators get an in-drawer override to release or refund a stuck bounty — without ever touching the escrow key.</description>
</item>
+ <item>
+ <title>The Arena gets a full design pass — and its tournament pages work again</title>
+ <link>https://three.ws/arena</link>
+ <guid isPermaLink="false">2026-07-01:The Arena gets a full design pass — and its tournament pages work again</guid>
+ <pubDate>Wed, 01 Jul 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>The Arena's live tournament view was silently broken: opening any competition showed a stuck loading screen because the page relied on four pieces that were never finished. They're now built and live — a window-progress timeline that ticks down to the open and close, a prize ladder showing exactly how the $THREE pool splits across the podium and who currently holds each place, a rules-and-eligibility panel spelling out scoring, bracket and the trade gates, and a summary strip totalling entrants, in-window trades and net P&amp;L across the field. The whole surface also got a cohesion pass to match the rest of three.ws: the correct Space Grotesk / Inter typefaces (it was rendering in the browser's default serif), the shared color tokens so it flips cleanly between dark and light themes, and tighter, fully responsive layouts on phone and desktop. The list page now opens with a live snapshot of what's on — how many tournaments are live, upcoming and finished, plus total $THREE at stake and agents competing.</description>
+ </item>
+ <item>
+ <title>The Arena looks and feels like the rest of the site</title>
+ <link>https://three.ws/arena</link>
+ <guid isPermaLink="false">2026-07-01:The Arena looks and feels like the rest of the site</guid>
+ <pubDate>Wed, 01 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>Gave the live PvP trading Arena a full design pass so it reads as one product with three.ws. The whole page now draws in the platform's own Space Grotesk and Inter type — with mono numerals on scores, P&amp;L and countdowns for a proper trading-terminal feel — instead of the browser's default serif. Colours, borders and surfaces come from the shared design tokens, so the Arena now flips correctly in light mode too. The 'Create a tournament' dialog was see-through; it's now a solid, focus-trapped modal with a close button, a blurred backdrop, background-scroll lock, and it docks to the bottom of the screen as a thumb-friendly sheet on phones. Paired date and prize fields stack instead of cramping, the ranking board and spotlight reflow cleanly on mobile, and every control has proper hover, focus and keyboard states.</description>
+ </item>
<item>
<title>The autonomous sniper now has a live web console</title>
<link>https://three.ws/docs/mcp</link>
@@ -110,6 +158,22 @@
<category>feature</category>
<description>Run agent-sniper serve and open it in a browser: a real-time operator dashboard, built right into the engine. Watch buys, sells, candidates and signals tick up live; see every open position with its entry, current value and colored profit-and-loss, and close any of them in one click; review your armed strategies with their stop-loss and take-profit at a glance; arm a new strategy or fire a manual snipe from clean forms; and read a live activity feed of everything the engine is doing. It has designed loading, empty and error states, toasts, keyboard shortcuts and a full mobile layout. Reads are free to anyone; to run the controls yourself without paying, set an operator token that bypasses the x402 paywall for you while external agents still pay per call.</description>
</item>
+ <item>
+ <title>The live agent wall now leads with agents that are actually working</title>
+ <link>https://three.ws/agents-live</link>
+ <guid isPermaLink="false">2026-07-01:The live agent wall now leads with agents that are actually working</guid>
+ <pubDate>Wed, 01 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The Live Agents wall was burying its best content. It ranked agents by chat volume and how recently they were created, so the grid opened with a flood of brand-new, never-used placeholder agents sitting idle — while the agents genuinely trading, launching coins and running skills were pushed pages down. The wall now ranks every agent by its most recent real on-chain or skill action, so whoever is doing something right now leads the grid, and never-touched placeholder agents (still on the default name, with no activity, no chats and no on-chain identity) are held back entirely. Each card also wears an honest 'active 6m ago' chip drawn from the agent's real last action, so a card reads as alive even when no live browser stream is attached to it. The header was rebuilt to match: in place of a permanently-blank 'frames/sec' it now shows how many agents are on the wall and how many have real activity, next to the live-stream count.</description>
+ </item>
+ <item>
+ <title>The trader track-record page gets a cohesion pass — fonts, gauge, and mobile</title>
+ <link>https://three.ws/leaderboard</link>
+ <guid isPermaLink="false">2026-07-01:The trader track-record page gets a cohesion pass — fonts, gauge, and mobile</guid>
+ <pubDate>Wed, 01 Jul 2026 12:00:00 GMT</pubDate>
+ <category>fix</category>
+ <description>The trader profile — the provable track record you open from the leaderboard — got a polish pass so it reads as one product with the rest of three.ws. Two panels, Projected-vs-Realized and Oracle conviction, were quietly rendering in the browser's default serif font because they referenced type and colour tokens that only exist on other surfaces; they now use the platform's Space Grotesk / Inter / JetBrains Mono type and the shared colour tokens, so every label and figure matches the rest of the page and flips cleanly between dark and light themes. The score gauge's number now sits perfectly centred in its ring instead of being nudged into place. On phones the trade tables scroll to keep every column — the open-positions table previously dropped its unrealized-P&amp;L and proof columns — and the Oracle stat strip reflows into clean cards. Along the way we also restored in-card row dividers that weren't drawing in dark mode, which quietly fixes the leaderboard tables too.</description>
+ </item>
<item>
<title>The Trading Brain is redesigned — presets, a live risk meter, and a real backtest breakdown</title>
<link>https://three.ws/agent-studio</link>
@@ -134,6 +198,22 @@
<category>sdk</category>
<description>The x402 buyer, seller, browser-modal and MCP libraries are published as standalone, provider-neutral npm packages you can use in any project without a three.ws account: @three-ws/x402-fetch (drop-in fetch that auto-pays a 402 in USDC), @three-ws/x402-server (build paid endpoints), @three-ws/x402-modal and @three-ws/x402-payment-modal (drop-in browser checkout), and @three-ws/x402-mcp and @three-ws/ibm-x402-mcp (pay or sell from any MCP client). There's also a new x402 extension for VS Code — inspect, pay, and scaffold paid endpoints from the editor — on both the VS Code Marketplace and Open VSX. The docs now carry install commands, one-line summaries, repo links, and a Node code sample in the pay-for-a-service tutorial.</description>
</item>
+ <item>
+ <title>three.ws now self-hosts its Solana payment settlement</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-07-01:three.ws now self-hosts its Solana payment settlement</guid>
+ <pubDate>Wed, 01 Jul 2026 12:00:00 GMT</pubDate>
+ <category>infra</category>
+ <description>The platform's Solana x402 payments no longer depend on an outside settlement service — three.ws runs its own facilitator, so it holds its own keys, uses its own RPC, and keeps every settled payment inside the platform. Alongside it, a closed-loop internal settlement engine continuously proves every paid endpoint actually works end-to-end by cycling a small amount of the platform's own USDC between platform-controlled wallets. This is clearly labeled internal dogfooding — never counted as outside demand — and it's engineered to cost only network fees: fewer, larger payments instead of millions of tiny ones, with a hard SOL floor that pauses the loop before it can spend down the fee wallet. It ships off by default.</description>
+ </item>
+ <item>
+ <title>Treasury Autopilot screen matches the brand</title>
+ <link>https://three.ws/agent-screen</link>
+ <guid isPermaLink="false">2026-07-01:Treasury Autopilot screen matches the brand</guid>
+ <pubDate>Wed, 01 Jul 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>Polished the agent's live Treasury Autopilot dashboard so it reads as one product with the rest of the site. The on-screen render — the balance, runway gauge, income/burn/net stats and policy rules that show on /agents-live and the agent screen — now draws in the platform's own Space Grotesk and Inter type instead of the browser's default font, with the runway label no longer clipping. The interactive cockpit's status colours (armed/killed, healthy/warning/critical runway, buyback and distribution states) now come from the shared design tokens, so green/amber/red match everywhere. The Market Anchor lower-third dropped its off-brand blue and orange for the site's monochrome palette, and the whole cockpit reflows cleanly on phones.</description>
+ </item>
<item>
<title>Docs · x402 Revenue &amp; Receipts</title>
<link>https://three.ws/docs/x402-revenue</link>
diff --git a/public/features.json b/public/features.json
index 86a0a3caf..558f7746d 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-07-01T07:16:49.869Z",
+ "generated_at": "2026-07-01T08:14:56.952Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index 0b47bf2ac..ffe4d939c 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -56,25 +56,6 @@
.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }
.sm-brand:hover { text-decoration: none; }
</style>
-
- <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1">
- <meta property="og:type" content="website">
- <meta property="og:site_name" content="three.ws">
- <meta property="og:locale" content="en_US">
- <meta property="og:title" content="Sitemap · three.ws">
- <meta property="og:description" content="Human-readable index of every page on three.ws.">
- <meta property="og:url" content="https://three.ws/sitemap">
- <meta property="og:image" content="https://three.ws/api/page-og?s=main&amp;t=Sitemap&amp;d=Human-readable+index+of+every+page+on+three.ws.&amp;p=%2Fsitemap">
- <meta property="og:image:width" content="1200">
- <meta property="og:image:height" content="630">
- <meta property="og:image:type" content="image/png">
- <meta property="og:image:alt" content="Sitemap — three.ws">
- <meta name="twitter:card" content="summary_large_image">
- <meta name="twitter:site" content="@trythreews">
- <meta name="twitter:title" content="Sitemap · three.ws">
- <meta name="twitter:description" content="Human-readable index of every page on three.ws.">
- <meta name="twitter:image" content="https://three.ws/api/page-og?s=main&amp;t=Sitemap&amp;d=Human-readable+index+of+every+page+on+three.ws.&amp;p=%2Fsitemap">
- <script type="application/ld+json">{"@context":"https://schema.org","@graph":[{"@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"},"primaryImageOfPage":"https://three.ws/api/page-og?s=main&t=Sitemap&d=Human-readable+index+of+every+page+on+three.ws.&p=%2Fsitemap"}]}</script>
</head>
<body>
<header class="sm-topbar">
diff --git a/public/studio-panels.css b/public/studio-panels.css
index 9360122c4..8ef7fa183 100644
--- a/public/studio-panels.css
+++ b/public/studio-panels.css
@@ -895,3 +895,28 @@
.tb-preset, .tb-risk-fill, .tb-dist-seg { transition: none; }
.mny-bal-up, .mny-bal-down { animation: none; }
}
+
+/* — Money tab: pricing summary + one-tap price chips — */
+.mny-price-summary { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
+.mny-price-stat {
+ flex: 1 1 80px; padding: 10px 12px; border-radius: var(--radius-md, 10px);
+ background: var(--surface-1, rgba(255,255,255,0.03)); border: 1px solid var(--stroke);
+ display: flex; flex-direction: column; gap: 2px;
+}
+.mny-price-stat b { font-size: var(--text-lg, 1rem); color: var(--ink-bright, #fff); font-variant-numeric: tabular-nums; }
+.mny-price-stat-of { font-size: var(--text-md, 0.8125rem); color: var(--ink-faint, #666); font-weight: var(--weight-normal, 400); }
+.mny-price-stat span { font-size: var(--text-2xs, 0.6875rem); color: var(--ink-dim, #888); }
+.mny-price-controls { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
+.mny-price-quick { display: inline-flex; gap: 4px; }
+.mny-price-chip {
+ appearance: none; cursor: pointer; padding: 3px 10px; border-radius: var(--radius-pill, 999px);
+ font-size: var(--text-2xs, 0.6875rem); font-variant-numeric: tabular-nums; font-weight: var(--weight-medium, 500);
+ color: var(--ink-dim, #999); background: var(--surface-2, rgba(255,255,255,0.06)); border: 1px solid var(--stroke);
+ transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
+}
+.mny-price-chip:hover { color: var(--ink-bright, #fff); border-color: var(--stroke-strong, rgba(255,255,255,0.2)); }
+.mny-price-chip:active { transform: scale(0.94); }
+.mny-price-chip.is-on { color: #fff; background: var(--accent, #6366f1); border-color: var(--accent, #6366f1); }
+.mny-price-chip-free.is-on { background: var(--surface-3, rgba(255,255,255,0.1)); color: var(--ink, #e8e8e8); border-color: var(--stroke-strong, rgba(255,255,255,0.2)); }
+@media (max-width: 540px) { .mny-price-controls { align-items: stretch; } .mny-price-quick { justify-content: flex-end; } }
+@media (prefers-reduced-motion: reduce) { .mny-price-chip { transition: none; } }
diff --git a/public/tokens.css b/public/tokens.css
index 87c718d60..fe6325420 100644
--- a/public/tokens.css
+++ b/public/tokens.css
@@ -157,6 +157,12 @@
--surface-3: rgba(255, 255, 255, 0.08);
--stroke: rgba(255, 255, 255, 0.08);
--stroke-strong: rgba(255, 255, 255, 0.14);
+ /* Hairline dividers — a touch softer than --stroke, for in-card row/cell
+ separators (tables, stat strips). The light theme defines these below; the
+ dark base was missing them, so bare var(--hairline) rows rendered borderless
+ here. Translucent white keeps them on the surface/stroke scale. */
+ --hairline: rgba(255, 255, 255, 0.055);
+ --hairline-strong: rgba(255, 255, 255, 0.09);
--ink: #e8e8e8;
--ink-dim: #888888;
--radius-card: var(--radius-lg); /* legacy alias → lg */
diff --git a/scripts/x402-ring-setup.mjs b/scripts/x402-ring-setup.mjs
index 377bd0ad4..4c060feb1 100644
--- a/scripts/x402-ring-setup.mjs
+++ b/scripts/x402-ring-setup.mjs
@@ -83,17 +83,19 @@ console.log(
'X402_FACILITATOR_URL_SOLANA=https://three.ws/api/x402-facilitator',
'X402_EXTERNAL_ENABLED=false # only OUR endpoints get paid',
'X402_CHARITY_AUDIT_BPS=0 # no charity split leaves the ring',
- 'X402_PRICE_RING_SETTLE=1000000 # $1.00/call → fewer txs, less SOL burned',
+ 'X402_RING_SELF_PAY=true # payer pays its own fee → 1 signature (5000 lamports), half the SOL',
+ 'X402_PRICE_RING_SETTLE=1000000 # $1.00/call → few txs; raise to $10–$100 for near-zero SOL',
'X402_AUTONOMOUS_DAILY_CAP_ATOMIC=… # set to your daily volume target',
'X402_VOLUME_PER_RUN_CAP_ATOMIC=… # per-tick ceiling',
- 'X402_SPONSOR_SOL_FLOOR_LAMPORTS=20000000 # pause below 0.02 SOL',
+ 'X402_SPONSOR_SOL_FLOOR_LAMPORTS=20000000 # pause the loop below 0.02 SOL',
].join('\n'),
);
console.log('\n=== Funding (manual — real money, do this yourself) ===\n');
-console.log(' payer → USDC float that recirculates (e.g. $50). A little SOL not needed (sponsor pays fees).');
-console.log(' treasury → 0 to start; it fills from ring payments, rebalancer sweeps it back to payer.');
-console.log(' sponsor → SOL for fees only (e.g. 0.1 SOL ≈ thousands of settlements). Watch /api/x402-ring.');
+console.log(' payer → USDC float that recirculates (e.g. $50) + a little SOL for its OWN fees in self-pay mode');
+console.log(' (e.g. 0.1 SOL ≈ thousands of 1-signature settlements). Watch /api/x402-ring.');
+console.log(' treasury → 0 to start; it fills from ring payments, the rebalancer sweeps it back to payer.');
+console.log(' sponsor → ONLY if you turn OFF self-pay (unset X402_RING_SELF_PAY): fund it with the fee SOL instead.');
console.log('');
if (flag('register')) {
diff --git a/src/agent-screen-anchor.js b/src/agent-screen-anchor.js
index c7a3f64ca..613c14a07 100644
--- a/src/agent-screen-anchor.js
+++ b/src/agent-screen-anchor.js
@@ -195,8 +195,11 @@ export function createNewsroomAnchor({ agentId, els, getAvatar }) {
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ text, voice }),
});
- if (r.status === 503) {
- a2fSupported = false; // not configured — don't keep trying this lane
+ if (r.status >= 500) {
+ // Provider down or misconfigured (503 unconfigured, 502 invalid
+ // model/function id, 504 timeout). The lane won't recover this
+ // session — stop re-hitting it and lip-sync from RMS instead.
+ a2fSupported = false;
} else if (r.ok) {
const j = await r.json();
if (myToken !== speakToken) return;
diff --git a/src/agent-screen-treasury.js b/src/agent-screen-treasury.js
index 2eee5ae53..6847e9feb 100644
--- a/src/agent-screen-treasury.js
+++ b/src/agent-screen-treasury.js
@@ -37,6 +37,33 @@ const POLL_MS = 15_000; // live balance heartbeat (real RPC each tick)
const COMPILE_DEBOUNCE = 600;
const WALL_PUSH_MIN_GAP = 6_000;
+// ── wall-frame typography + palette ─────────────────────────────────────────
+// The offscreen cockpit render (drawCockpitCanvas) is the agent's on-screen
+// "dashboard" that /agents-live and the viewer show. Draw it in the SAME brand
+// families (Space Grotesk display, Inter body) and semantic colours as the rest
+// of the site — mirrors public/tokens.css so the frame reads as one product.
+// Fallbacks keep the first frame legible before the woff2 decodes; ensureWallFonts()
+// force-loads the exact weights so the next push is fully on-brand.
+const WALL_DISPLAY = "'Space Grotesk', 'Inter', system-ui, sans-serif";
+const WALL_BODY = "'Inter', system-ui, sans-serif";
+const WALL_INK = '#f4f4f5';
+const WALL_DIM = 'rgba(255,255,255,0.5)';
+const WALL_FAINT = 'rgba(255,255,255,0.38)';
+const WALL_SUCCESS = '#4ade80'; // --success
+const WALL_DANGER = '#f87171'; // --danger
+const WALL_WARN = '#fbbf24'; // --warn
+
+let wallFontsReady = false;
+function ensureWallFonts() {
+ if (wallFontsReady || typeof document === 'undefined' || !document.fonts?.load) return Promise.resolve();
+ return Promise.all([
+ document.fonts.load("800 92px 'Space Grotesk'"),
+ document.fonts.load("700 34px 'Space Grotesk'"),
+ document.fonts.load("600 22px 'Inter'"),
+ document.fonts.load("500 30px 'Inter'"),
+ ]).then(() => { wallFontsReady = true; }).catch(() => {});
+}
+
function esc(s) {
return String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;', "'": '&#39;' }[c]));
}
@@ -575,87 +602,132 @@ export function createTreasuryCockpit({ agentId, bodyEl, toast, network = 'mainn
}
function drawCockpitCanvas(d) {
- const W = 1280, H = 720;
+ const W = 1280, H = 720, PAD = 72;
const c = document.createElement('canvas');
c.width = W; c.height = H;
const x = c.getContext('2d');
const r = d.runway || {};
const p = d.policy || {};
- // background
- const bg = x.createLinearGradient(0, 0, 0, H);
- bg.addColorStop(0, '#0c0c0f'); bg.addColorStop(1, '#060607');
+ const rounded = (rx, ry, w, h, rad) => {
+ if (typeof x.roundRect === 'function') { x.beginPath(); x.roundRect(rx, ry, w, h, rad); }
+ else { x.beginPath(); x.rect(rx, ry, w, h); }
+ };
+
+ // backdrop — the same near-black glass gradient the site uses everywhere
+ const bg = x.createLinearGradient(0, 0, W, H);
+ bg.addColorStop(0, '#0d0e14'); bg.addColorStop(1, '#060607');
x.fillStyle = bg; x.fillRect(0, 0, W, H);
- x.fillStyle = 'rgba(255,255,255,0.04)'; x.fillRect(0, 0, W, 6);
-
- x.fillStyle = 'rgba(255,255,255,0.5)';
- x.font = '600 26px system-ui, sans-serif';
- x.fillText('TREASURY AUTOPILOT', 64, 90);
- const armed = p.kill_switch ? 'KILL SWITCH' : p.armed ? 'ARMED' : 'DISARMED';
- x.fillStyle = p.kill_switch ? '#fda4af' : p.armed ? '#ffffff' : 'rgba(255,255,255,0.4)';
- x.font = '700 22px system-ui, sans-serif';
- x.fillText(armed, 64, 124);
-
- // balance
- x.fillStyle = '#f4f4f5';
- x.font = '800 96px system-ui, sans-serif';
- x.fillText(fmtSol(r.balance_sol), 64, 240);
- x.fillStyle = 'rgba(255,255,255,0.55)';
- x.font = '500 34px system-ui, sans-serif';
- const usd = r.balance_usd != null ? fmtUsd(r.balance_usd) : '';
- x.fillText(`${usd}${usd ? ' · ' : ''}$THREE ${fmtCompact(r.three_accumulated)}`, 64, 292);
-
- // runway gauge (top-right)
- const gx = W - 200, gy = 200, rad = 96;
+ // faint top-centre glow, mirroring .asc-stage's radial highlight
+ const glow = x.createRadialGradient(W / 2, -60, 40, W / 2, -60, W * 0.7);
+ glow.addColorStop(0, 'rgba(255,255,255,0.05)'); glow.addColorStop(1, 'rgba(255,255,255,0)');
+ x.fillStyle = glow; x.fillRect(0, 0, W, 320);
+
+ // ── header: eyebrow + status pill ──
+ x.textBaseline = 'alphabetic';
+ x.fillStyle = WALL_DIM;
+ x.font = `600 22px ${WALL_BODY}`;
+ if ('letterSpacing' in x) x.letterSpacing = '2px';
+ x.fillText('TREASURY AUTOPILOT', PAD, 96);
+ // measureText honours the active letterSpacing, so this width already
+ // includes the tracking — don't add it a second time.
+ const eyeW = x.measureText('TREASURY AUTOPILOT').width;
+ if ('letterSpacing' in x) x.letterSpacing = '0px';
+ const killed = p.kill_switch === true;
+ const armed = p.armed === true;
+ const pill = killed
+ ? { label: 'KILL SWITCH', fg: WALL_DANGER, bg: 'rgba(248,113,113,0.14)' }
+ : armed
+ ? { label: 'ARMED', fg: WALL_INK, bg: 'rgba(255,255,255,0.14)' }
+ : { label: 'DISARMED', fg: WALL_FAINT, bg: 'rgba(255,255,255,0.05)' };
+ x.font = `700 15px ${WALL_BODY}`;
+ if ('letterSpacing' in x) x.letterSpacing = '1px';
+ const pw = x.measureText(pill.label).width + 26;
+ const px = PAD + eyeW + 18, py = 80;
+ x.fillStyle = pill.bg; rounded(px, py, pw, 24, 12); x.fill();
+ x.fillStyle = pill.fg; x.fillText(pill.label, px + 13, py + 17);
+ if ('letterSpacing' in x) x.letterSpacing = '0px';
+
+ // ── runway gauge (top-right) ──
+ const gx = W - PAD - 96, gy = 176, rad = 88;
const g = runwayGauge(r);
- x.lineWidth = 18; x.lineCap = 'round';
- x.strokeStyle = 'rgba(255,255,255,0.10)';
+ const arcTone = g.tone === 'critical' ? WALL_DANGER : g.tone === 'warn' ? WALL_WARN : g.tone === 'unknown' ? 'rgba(255,255,255,0.22)' : WALL_INK;
+ x.lineWidth = 15; x.lineCap = 'round';
+ x.strokeStyle = 'rgba(255,255,255,0.09)';
x.beginPath(); x.arc(gx, gy, rad, 0, Math.PI * 2); x.stroke();
- x.strokeStyle = g.tone === 'critical' ? '#fda4af' : g.tone === 'warn' ? '#fcd34d' : '#ffffff';
- x.beginPath(); x.arc(gx, gy, rad, -Math.PI / 2, -Math.PI / 2 + Math.PI * 2 * g.fraction); x.stroke();
- x.fillStyle = '#f4f4f5'; x.textAlign = 'center';
- x.font = '800 44px system-ui, sans-serif'; x.fillText(g.label, gx, gy + 8);
- x.fillStyle = 'rgba(255,255,255,0.5)'; x.font = '500 20px system-ui, sans-serif';
- x.fillText(g.sublabel, gx, gy + 44);
+ if (g.fraction > 0) {
+ x.strokeStyle = arcTone;
+ x.beginPath(); x.arc(gx, gy, rad, -Math.PI / 2, -Math.PI / 2 + Math.PI * 2 * g.fraction); x.stroke();
+ }
+ x.textAlign = 'center';
+ x.fillStyle = arcTone;
+ x.font = `700 ${g.label.length > 2 ? 34 : 46}px ${WALL_DISPLAY}`;
+ x.fillText(g.label, gx, gy + (g.label.length > 2 ? 8 : 12));
+ x.fillStyle = WALL_DIM; x.font = `500 17px ${WALL_BODY}`;
+ x.fillText(g.sublabel, gx, gy + 40);
x.textAlign = 'left';
- // stat strip
+ // ── balance ──
+ x.fillStyle = WALL_INK;
+ x.font = `800 92px ${WALL_DISPLAY}`;
+ x.fillText(fmtSol(r.balance_sol), PAD, 268);
+ x.fillStyle = WALL_DIM;
+ x.font = `500 30px ${WALL_BODY}`;
+ const usd = r.balance_usd != null ? fmtUsd(r.balance_usd) : '';
+ x.fillText(`${usd}${usd ? ' · ' : ''}$THREE ${fmtCompact(r.three_accumulated)}`, PAD, 316);
+
+ // ── divider ──
+ x.strokeStyle = 'rgba(255,255,255,0.08)'; x.lineWidth = 1;
+ x.beginPath(); x.moveTo(PAD, 364); x.lineTo(W - PAD, 364); x.stroke();
+
+ // ── stat strip (5 columns with hairline separators) ──
const stats = [
- ['Income 30d', fmtUsd(r.income_usd, { compact: true })],
- ['Burn 30d', fmtUsd(r.cost_usd, { compact: true })],
- ['Net', `${r.net_usd >= 0 ? '+' : ''}${fmtUsd(r.net_usd, { compact: true })}`],
- ['Buybacks', String(r.buyback_count || 0)],
- ['Swept', fmtSol(r.swept_sol || 0)],
+ ['Income 30d', fmtUsd(r.income_usd, { compact: true }), WALL_INK],
+ ['Burn 30d', fmtUsd(r.cost_usd, { compact: true }), WALL_INK],
+ ['Net', `${r.net_usd >= 0 ? '+' : ''}${fmtUsd(r.net_usd, { compact: true })}`, r.net_usd >= 0 ? WALL_SUCCESS : WALL_DANGER],
+ ['Buybacks', String(r.buyback_count || 0), WALL_INK],
+ ['Swept', fmtSol(r.swept_sol || 0), WALL_INK],
];
- let sx = 64;
- const sy = 380, sw = 224;
- for (const [k, v] of stats) {
- x.fillStyle = 'rgba(255,255,255,0.4)'; x.font = '600 20px system-ui, sans-serif';
- x.fillText(k.toUpperCase(), sx, sy);
- x.fillStyle = '#f4f4f5'; x.font = '700 34px system-ui, sans-serif';
- x.fillText(v, sx, sy + 40);
- sx += sw;
- }
+ const colW = (W - 2 * PAD) / stats.length;
+ const sy = 420;
+ stats.forEach(([k, v, tone], i) => {
+ const cx = PAD + colW * i;
+ if (i > 0) {
+ x.strokeStyle = 'rgba(255,255,255,0.06)'; x.lineWidth = 1;
+ x.beginPath(); x.moveTo(cx - 18, sy - 22); x.lineTo(cx - 18, sy + 30); x.stroke();
+ }
+ x.fillStyle = WALL_FAINT; x.font = `600 17px ${WALL_BODY}`;
+ if ('letterSpacing' in x) x.letterSpacing = '0.5px';
+ x.fillText(k.toUpperCase(), cx, sy);
+ if ('letterSpacing' in x) x.letterSpacing = '0px';
+ x.fillStyle = tone; x.font = `700 34px ${WALL_DISPLAY}`;
+ x.fillText(v, cx, sy + 42);
+ });
- // rules
- x.fillStyle = 'rgba(255,255,255,0.4)'; x.font = '600 20px system-ui, sans-serif';
- x.fillText('POLICY RULES', 64, 500);
- const rules = (p.rules || []).slice(0, 4);
- let ry = 540;
+ // ── policy rules ──
+ x.fillStyle = WALL_FAINT; x.font = `600 17px ${WALL_BODY}`;
+ if ('letterSpacing' in x) x.letterSpacing = '0.5px';
+ x.fillText('POLICY RULES', PAD, 528);
+ if ('letterSpacing' in x) x.letterSpacing = '0px';
+ const rules = (p.rules || []).slice(0, 3);
+ let ry = 566;
for (const rule of rules) {
const l = policyLine(rule);
- x.fillStyle = l.state === 'armed' ? '#ffffff' : 'rgba(255,255,255,0.4)';
- x.font = '500 26px system-ui, sans-serif';
- const text = l.text.length > 78 ? `${l.text.slice(0, 77)}…` : l.text;
- x.fillText(`${l.glyph} ${text}`, 64, ry);
- ry += 42;
+ x.fillStyle = l.state === 'armed' ? 'rgba(255,255,255,0.9)' : WALL_FAINT;
+ x.font = `500 25px ${WALL_BODY}`;
+ const text = l.text.length > 74 ? `${l.text.slice(0, 73)}…` : l.text;
+ x.fillText(`${l.glyph} ${text}`, PAD, ry);
+ ry += 40;
}
if (!rules.length) {
- x.fillStyle = 'rgba(255,255,255,0.3)'; x.font = '400 24px system-ui, sans-serif';
- x.fillText('No rules armed — idle treasury.', 64, ry);
+ x.fillStyle = 'rgba(255,255,255,0.3)'; x.font = `400 24px ${WALL_BODY}`;
+ x.fillText('No rules armed — idle treasury.', PAD, ry);
}
- x.fillStyle = 'rgba(255,255,255,0.25)'; x.font = '500 20px system-ui, sans-serif';
- x.fillText('three.ws · $THREE', 64, H - 40);
+ // ── footer wordmark ──
+ x.fillStyle = 'rgba(255,255,255,0.28)'; x.font = `600 19px ${WALL_BODY}`;
+ x.fillText('three.ws', PAD, H - 40);
+ x.fillStyle = 'rgba(255,255,255,0.16)';
+ x.fillText(' · $THREE', PAD + x.measureText('three.ws').width, H - 40);
return c;
}
@@ -674,6 +746,13 @@ export function createTreasuryCockpit({ agentId, bodyEl, toast, network = 'mainn
function start() {
render(); // skeleton
fetchAll();
+ // Once the brand fonts decode, re-push so the wall frame stops falling back
+ // to system-ui — bypass the min-gap once for an immediate on-brand frame.
+ ensureWallFonts().then(() => {
+ if (destroyed || !owner || !data?.runway) return;
+ lastPush = 0;
+ pushWallFrame();
+ });
pollTimer = setInterval(() => {
if (destroyed || document.hidden) return;
if (owner && (state === 'populated')) fetchAll({ soft: true });
diff --git a/src/agents-live.js b/src/agents-live.js
index bd8edc1d2..f7ec47adc 100644
--- a/src/agents-live.js
+++ b/src/agents-live.js
@@ -55,17 +55,22 @@ const grid = document.getElementById('al-grid');
const liveCount = document.getElementById('al-live-count');
const statsBar = document.getElementById('al-stats');
const statLive = document.getElementById('al-stat-live');
-const statFps = document.getElementById('al-stat-fps');
+const statFps = document.getElementById('al-stat-fps'); // legacy tile (removed from header)
const statTotal = document.getElementById('al-stat-total');
+const statActive = document.getElementById('al-stat-active');
// Per-agent runtime state. agentId → { es, card, entries, lastFrameAt, live }
const _cards = new Map();
const _fpsMap = new Map(); // agentId → frames since last tick
-// Roster pagination cursor (created_at of the last public agent loaded).
-let _cursor = null;
+// Roster pagination. The wall uses the activity-ranked `live` sort, which is
+// offset-paginated (its order isn't a created_at keyset). `_rosterTotal` /
+// `_activeTotal` are the platform-wide header-stat counts the first page carries.
+let _offset = 0;
let _hasMore = true;
let _loading = false;
+let _rosterTotal = null; // meaningful public agents (the wall's addressable size)
+let _activeTotal = null; // public agents with any real activity
// Interval handles for the FPS ticker and idle repaint loops.
let _fpsInterval = null;
@@ -134,27 +139,34 @@ function esc(s) {
// ── roster ──────────────────────────────────────────────────────────────────
-// Pull a page of agents from the public directory. When signed in we also merge
-// the caller's own agents (which may be private) so an owner always sees theirs.
+// Pull a page of agents from the public directory using the activity-ranked
+// `live` sort — agents that acted most recently lead the wall, and never-used
+// placeholder agents (onboarding default name, no activity, no chats, no on-chain
+// identity) are suppressed server-side, so the grid reads as alive instead of a
+// graveyard of empty test agents. When signed in we also merge the caller's own
+// agents (which may be private) so an owner always sees theirs.
async function fetchRosterPage() {
- const params = new URLSearchParams({ sort: 'popular', limit: '48' });
- if (_cursor) params.set('before', _cursor);
+ const firstPage = _offset === 0;
+ const params = new URLSearchParams({ sort: 'live', limit: '48', offset: String(_offset) });
let agents = [];
let hasMore = false;
- let cursor = null;
try {
const res = await fetch(`/api/agents/public?${params}`, { headers: { accept: 'application/json' } });
if (res.ok) {
const data = await res.json();
agents = data.agents || [];
hasMore = !!data.has_more;
- cursor = data.next_cursor || null;
+ if (typeof data.next_offset === 'number') _offset = data.next_offset;
+ else _offset += agents.length;
+ // First page carries the platform-wide header-stat counts.
+ if (Number.isFinite(data.total)) _rosterTotal = data.total;
+ if (Number.isFinite(data.active_total)) _activeTotal = data.active_total;
}
} catch { /* network — handled by caller via empty page */ }
// First page only: merge the owner's own agents so a signed-in user always
// sees their roster even if some are private / not yet in the public index.
- if (!_cursor) {
+ if (firstPage) {
try {
const res = await fetch('/api/agents', { credentials: 'include', headers: { accept: 'application/json' } });
if (res.ok) {
@@ -171,7 +183,7 @@ async function fetchRosterPage() {
} catch { /* anonymous — public list only */ }
}
- return { agents, hasMore, cursor };
+ return { agents, hasMore };
}
// ── card ──────────────────────────────────────────────────────────────────────
@@ -216,7 +228,10 @@ function buildCard(agent) {
<div class="al-card-meta">
<div class="al-card-name">${esc(name)}</div>
<div class="al-card-action" data-action>Connecting…</div>
- <span class="al-card-pnl" data-pnl hidden></span>
+ <div class="al-card-submeta">
+ <span class="al-card-age" data-age hidden></span>
+ <span class="al-card-pnl" data-pnl hidden></span>
+ </div>
</div>
<a class="al-card-watch-btn" href="${esc(watchHref)}" target="_blank" rel="noopener" onclick="event.stopPropagation()">Watch</a>
</div>`;
@@ -276,6 +291,36 @@ function fmtAge(ts) {
return age < 5 ? 'now' : age < 60 ? `${age}s` : age < 3600 ? `${Math.round(age / 60)}m` : `${Math.round(age / 3600)}h`;
}
+// A coarser "last active" stamp for the card recency badge — spans up to weeks so
+// an agent that acted days ago still reads honestly. Returns null past ~5 weeks so
+// long-dormant agents don't wear a misleading "active" chip.
+function fmtAgo(ts) {
+ if (!ts) return null;
+ const s = Math.max(0, Math.round((Date.now() - ts) / 1000));
+ if (s < 45) return 'just now';
+ if (s < 3600) return `${Math.round(s / 60)}m ago`;
+ if (s < 86400) return `${Math.round(s / 3600)}h ago`;
+ const d = Math.round(s / 86400);
+ if (d <= 34) return d === 1 ? 'yesterday' : `${d}d ago`;
+ return null;
+}
+
+// Paint the card's "last active" recency badge from the agent's most-recent real
+// action. Hidden while a live caster is streaming (the Live badge dominates) and
+// for agents with no recorded activity yet. This is what keeps every non-casting
+// card reading as alive — a truthful "active 6m ago", never a faked pulse.
+function renderAge(state) {
+ if (!state.age) return;
+ if (isLiveNow(state)) { state.age.hidden = true; return; }
+ const label = fmtAgo(state.lastActionAt);
+ if (!label) { state.age.hidden = true; return; }
+ state.age.hidden = false;
+ const recent = Date.now() - state.lastActionAt < 15 * 60 * 1000; // acted in last 15m
+ state.age.classList.toggle('is-recent', recent);
+ state.age.textContent = `active ${label}`;
+ state.age.title = `Last on-chain / skill action ${label}`;
+}
+
// Render the agent's recent activity as a CINEMATIC live terminal onto the card
// canvas — the always-available view shown whenever live pixels aren't arriving.
// Each real action becomes a typed, colour-graded, icon-led line; consecutive
@@ -575,6 +620,10 @@ function attachStream(state) {
const { entries } = JSON.parse(e.data);
if (Array.isArray(entries)) {
state.entries = entries;
+ // Keep the recency badge honest: the newest entry's timestamp is the
+ // agent's real last action (live log or DB backfill both carry `ts`).
+ const newestTs = entries.reduce((m, en) => Math.max(m, Number(en?.ts) || 0), 0);
+ if (newestTs > state.lastActionAt) state.lastActionAt = newestTs;
// Fold any realized exits in the backfill into the running PnL chip.
entries.forEach((entry) => ingestCardPnl(state, entry));
// Draw the floor at the last known MM state (no flash — backfill, not live).
@@ -742,11 +791,14 @@ function mountAgent(agent) {
grid.querySelectorAll('.al-skeleton').forEach((s) => s.remove());
grid.querySelector('.al-empty')?.remove();
grid.appendChild(card);
+ const lastActionAt = Number(new Date(agent.last_action_at || 0).getTime()) || 0;
const state = {
agentId: id,
card,
name: agent.name || agent.agentName || 'Agent',
action: card.querySelector('[data-action]'),
+ age: card.querySelector('[data-age]'),
+ lastActionAt,
entries: [],
lastFrameAt: 0,
live: false,
@@ -776,6 +828,7 @@ function mountAgent(agent) {
subscribe: false,
});
}
+ renderAge(state);
attachStream(state);
// Intent + status polling are intersection-driven (getObserver), so the pool
// only spins up for cards actually on screen and frees the slot on scroll-away.
@@ -795,9 +848,8 @@ function renderEmpty() {
async function loadMore() {
if (_loading || !_hasMore) return;
_loading = true;
- const { agents, hasMore, cursor } = await fetchRosterPage();
+ const { agents, hasMore } = await fetchRosterPage();
_hasMore = hasMore;
- _cursor = cursor;
if (!_cards.size && !agents.length) {
renderEmpty();
@@ -811,14 +863,24 @@ async function loadMore() {
_loading = false;
}
+function fmtCount(n) {
+ return typeof n === 'number' && Number.isFinite(n) ? n.toLocaleString('en-US') : '—';
+}
+
function updateStats() {
- const total = _cards.size;
+ const mounted = _cards.size;
let live = 0;
for (const s of _cards.values()) if (isLiveNow(s)) live++;
if (liveCount) liveCount.textContent = live;
if (statLive) statLive.textContent = live;
- if (statTotal) statTotal.textContent = total;
- if (statsBar) statsBar.hidden = total === 0;
+ // "On the wall" is the platform-wide addressable roster (from the first page's
+ // meta), not just how many cards are mounted right now — falls back to the
+ // mounted count until the count lands. "With activity" is the honest number of
+ // agents that have ever acted, so the header carries real pulse even when no
+ // browser caster is streaming (Live now = 0).
+ if (statTotal) statTotal.textContent = fmtCount(_rosterTotal != null ? Math.max(_rosterTotal, mounted) : mounted);
+ if (statActive) statActive.textContent = fmtCount(_activeTotal);
+ if (statsBar) statsBar.hidden = mounted === 0;
}
// FPS + live-count ticker. Also surfaces per-card FPS in the live badge tooltip
@@ -856,7 +918,10 @@ function startIdleRepaint() {
for (const s of _cards.values()) {
if (!isLiveNow(s)) {
paintActivity(s);
+ renderAge(s);
if (s.live) s.setLive?.(false);
+ } else if (s.age && !s.age.hidden) {
+ s.age.hidden = true; // went live — Live badge takes over from the recency chip
}
}
}, 2500);
diff --git a/src/arena/arena.css b/src/arena/arena.css
index 5f286136a..9430b1ff6 100644
--- a/src/arena/arena.css
+++ b/src/arena/arena.css
@@ -1,12 +1,29 @@
/* The Arena — Social Trading Arena. Tournament list, live competition, results.
- * Token-driven (public/tokens.css via nav.css), dark-first, responsive, a11y, and
- * reduced-motion friendly. No hardcoded palette — everything resolves to a var. */
+ *
+ * Built entirely on the canonical design tokens (public/tokens.css via nav.css) —
+ * the same vocabulary as the neighbouring leaderboard.css. Glass-on-near-black,
+ * golden-ratio spacing, dark/light via tokens, mono numerics for the trading feel.
+ *
+ * This page does NOT load style.css (kept lean), so it establishes its own type
+ * base here: body copy in --font-body (Inter), headings in --font-display
+ * (Space Grotesk), numbers in --font-mono (JetBrains Mono). Without these the page
+ * would fall back to the UA serif. Everything is token-driven, responsive, a11y and
+ * reduced-motion friendly. No hardcoded palette. */
.arena {
max-width: 1180px;
margin: 0 auto;
padding: clamp(1rem, 3vw, 2.2rem) clamp(0.9rem, 3vw, 1.6rem) 5rem;
min-height: 70vh;
+ font-family: var(--font-body);
+ color: var(--ink);
+}
+.arena h1,
+.arena h2,
+.arena h3,
+.arena h4 {
+ font-family: var(--font-display);
+ color: var(--ink-bright);
}
/* ── Hero ─────────────────────────────────────────────────────────────── */
@@ -15,8 +32,8 @@
flex-wrap: wrap;
align-items: flex-end;
justify-content: space-between;
- gap: var(--space-md, 1rem);
- margin-bottom: var(--space-lg, 1.6rem);
+ gap: var(--space-md);
+ margin-bottom: var(--space-lg);
}
.arena-hero h1 {
font-size: clamp(1.7rem, 4vw, 2.6rem);
@@ -25,61 +42,63 @@
margin: 0 0 0.35rem;
}
.arena-hero .lede {
- color: var(--text-2, #a8a8a8);
+ color: var(--ink-dim);
max-width: 56ch;
margin: 0;
- font-size: var(--text-ui, 0.9rem);
+ font-size: var(--text-ui);
line-height: 1.5;
}
.arena-hero .hero-actions {
display: flex;
- gap: 0.5rem;
+ gap: var(--space-sm);
flex-wrap: wrap;
}
/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
appearance: none;
- border: 1px solid var(--border, #2a2a2a);
- background: var(--surface-2, #181818);
- color: var(--ink, #f6f6f6);
- font: inherit;
- font-size: var(--text-md, 0.82rem);
- font-weight: 600;
+ border: 1px solid var(--stroke);
+ background: var(--surface-2);
+ color: var(--ink);
+ font-family: var(--font-body);
+ font-size: var(--text-md);
+ font-weight: var(--weight-semibold);
padding: 0.55rem 0.95rem;
- border-radius: var(--radius-md, 10px);
+ border-radius: var(--radius-md);
cursor: pointer;
display: inline-flex;
align-items: center;
gap: 0.45rem;
- transition: background 0.16s ease, border-color 0.16s ease, transform 0.12s ease;
+ transition: background var(--duration-fast) var(--ease-standard),
+ border-color var(--duration-fast) var(--ease-standard),
+ transform var(--duration-instant) var(--ease-standard);
text-decoration: none;
white-space: nowrap;
}
.btn:hover {
- background: var(--surface-3, #202020);
- border-color: var(--border-strong, #3a3a3a);
+ background: var(--surface-3);
+ border-color: var(--stroke-strong);
}
.btn:active {
transform: translateY(1px);
}
.btn:focus-visible {
- outline: 2px solid var(--accent, #fff);
- outline-offset: 2px;
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
+ outline-offset: var(--focus-ring-offset);
}
.btn-primary {
- background: var(--ink, #f6f6f6);
- color: var(--bg, #050505);
- border-color: var(--ink, #f6f6f6);
+ background: var(--accent);
+ color: var(--btn-primary-fg, var(--bg-0));
+ border-color: var(--accent);
}
.btn-primary:hover {
- background: #fff;
+ background: var(--btn-primary-bg-hover, #ffffff);
filter: brightness(1.02);
}
.btn-primary:disabled,
.btn:disabled {
- opacity: 0.5;
- cursor: not-allowed;
+ opacity: var(--disabled-opacity);
+ cursor: var(--disabled-cursor);
}
.btn-ghost {
background: transparent;
@@ -89,8 +108,8 @@
.arena-tabs {
display: flex;
gap: 0.25rem;
- border-bottom: 1px solid var(--border, #2a2a2a);
- margin-bottom: var(--space-md, 1rem);
+ border-bottom: 1px solid var(--stroke);
+ margin-bottom: var(--space-md);
overflow-x: auto;
scrollbar-width: none;
}
@@ -101,27 +120,33 @@
appearance: none;
background: none;
border: none;
- color: var(--text-2, #a8a8a8);
- font: inherit;
- font-size: var(--text-ui, 0.9rem);
- font-weight: 600;
+ color: var(--ink-dim);
+ font-family: var(--font-body);
+ font-size: var(--text-ui);
+ font-weight: var(--weight-semibold);
padding: 0.6rem 0.9rem;
cursor: pointer;
position: relative;
border-bottom: 2px solid transparent;
white-space: nowrap;
- transition: color 0.15s ease;
+ transition: color var(--duration-fast) var(--ease-standard);
}
.arena-tab:hover {
- color: var(--ink, #f6f6f6);
+ color: var(--ink-bright);
+}
+.arena-tab:focus-visible {
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
+ outline-offset: -2px;
+ border-radius: var(--radius-sm);
}
.arena-tab[aria-selected='true'] {
- color: var(--ink, #f6f6f6);
- border-bottom-color: var(--ink, #f6f6f6);
+ color: var(--ink-bright);
+ border-bottom-color: var(--accent);
}
.arena-tab .count {
- font-size: var(--text-2xs, 0.69rem);
- color: var(--text-3, #777);
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ color: var(--ink-faint);
margin-left: 0.3rem;
}
@@ -129,30 +154,34 @@
.tourn-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
- gap: var(--space-md, 1rem);
+ gap: var(--space-md);
}
.tourn-card {
- border: 1px solid var(--border, #2a2a2a);
- background: var(--surface-1, #111);
- border-radius: var(--radius-lg, 16px);
+ border: 1px solid var(--stroke);
+ background: var(--surface-1);
+ border-radius: var(--radius-lg);
padding: 1.1rem;
display: flex;
flex-direction: column;
gap: 0.7rem;
cursor: pointer;
- transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
+ transition: border-color var(--duration-base) var(--ease-standard),
+ transform var(--duration-base) var(--ease-standard),
+ box-shadow var(--duration-base) var(--ease-standard),
+ background var(--duration-base) var(--ease-standard);
text-align: left;
color: inherit;
font: inherit;
}
.tourn-card:hover {
- border-color: var(--border-strong, #3a3a3a);
+ border-color: var(--stroke-strong);
+ background: var(--surface-2);
transform: translateY(-2px);
- box-shadow: var(--shadow, 0 10px 40px rgba(0, 0, 0, 0.4));
+ box-shadow: var(--shadow-2);
}
.tourn-card:focus-visible {
- outline: 2px solid var(--accent, #fff);
- outline-offset: 2px;
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
+ outline-offset: var(--focus-ring-offset);
}
.tourn-card .card-top {
display: flex;
@@ -162,17 +191,18 @@
}
.tourn-card h3 {
margin: 0;
- font-size: var(--text-base, 1rem);
+ font-size: var(--text-lg);
line-height: 1.2;
letter-spacing: -0.01em;
}
.tourn-card .desc {
- color: var(--text-2, #a8a8a8);
- font-size: var(--text-md, 0.82rem);
+ color: var(--ink-dim);
+ font-size: var(--text-md);
line-height: 1.45;
margin: 0;
display: -webkit-box;
-webkit-line-clamp: 2;
+ line-clamp: 2;
-webkit-box-orient: vertical;
overflow: hidden;
}
@@ -181,12 +211,13 @@
flex-wrap: wrap;
gap: 0.4rem 0.9rem;
margin-top: auto;
- font-size: var(--text-sm, 0.76rem);
- color: var(--text-2, #a8a8a8);
+ font-size: var(--text-sm);
+ color: var(--ink-dim);
}
.tourn-card .card-meta b {
- color: var(--ink, #f6f6f6);
- font-weight: 600;
+ color: var(--ink-bright);
+ font-weight: var(--weight-semibold);
+ font-variant-numeric: tabular-nums;
}
/* ── Status / badges ──────────────────────────────────────────────────── */
@@ -194,14 +225,15 @@
display: inline-flex;
align-items: center;
gap: 0.3rem;
- font-size: var(--text-2xs, 0.69rem);
- font-weight: 700;
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-bold);
letter-spacing: 0.04em;
text-transform: uppercase;
padding: 0.2rem 0.5rem;
- border-radius: 999px;
- border: 1px solid var(--border, #2a2a2a);
- color: var(--text-2, #a8a8a8);
+ border-radius: var(--radius-pill);
+ border: 1px solid var(--stroke);
+ color: var(--ink-dim);
white-space: nowrap;
}
.badge .dot {
@@ -211,31 +243,31 @@
background: currentColor;
}
.badge-live {
- color: var(--success, #34d399);
- border-color: color-mix(in srgb, var(--success, #34d399) 40%, transparent);
- background: color-mix(in srgb, var(--success, #34d399) 12%, transparent);
+ color: var(--success);
+ border-color: color-mix(in srgb, var(--success) 40%, transparent);
+ background: color-mix(in srgb, var(--success) 12%, transparent);
}
.badge-live .dot {
animation: arena-pulse 1.4s ease-in-out infinite;
}
.badge-upcoming {
- color: var(--accent-2, #7c8bff);
- border-color: color-mix(in srgb, var(--accent-2, #7c8bff) 40%, transparent);
+ color: var(--ink-bright);
+ border-color: var(--stroke-strong);
}
.badge-finished {
- color: var(--text-3, #888);
+ color: var(--ink-faint);
}
.badge-practice {
- color: var(--warn, #fbbf24);
- border-color: color-mix(in srgb, var(--warn, #fbbf24) 40%, transparent);
+ color: var(--warn);
+ border-color: color-mix(in srgb, var(--warn) 40%, transparent);
}
.badge-verified {
- color: var(--success, #34d399);
- border-color: color-mix(in srgb, var(--success, #34d399) 40%, transparent);
+ color: var(--success);
+ border-color: color-mix(in srgb, var(--success) 40%, transparent);
}
.badge-warn {
- color: var(--danger, #f87171);
- border-color: color-mix(in srgb, var(--danger, #f87171) 40%, transparent);
+ color: var(--danger);
+ border-color: color-mix(in srgb, var(--danger) 40%, transparent);
}
@keyframes arena-pulse {
0%,
@@ -253,42 +285,49 @@
display: inline-flex;
align-items: center;
gap: 0.35rem;
- font-weight: 700;
- color: var(--ink, #f6f6f6);
+ font-family: var(--font-mono);
+ font-weight: var(--weight-bold);
+ color: var(--ink-bright);
background: linear-gradient(
120deg,
- color-mix(in srgb, var(--warn, #fbbf24) 22%, transparent),
- color-mix(in srgb, var(--accent-2, #7c8bff) 18%, transparent)
+ rgba(var(--gold-rgb), 0.22),
+ rgba(var(--gold-rgb), 0.08)
);
- border: 1px solid color-mix(in srgb, var(--warn, #fbbf24) 35%, transparent);
+ border: 1px solid rgba(var(--gold-rgb), 0.35);
padding: 0.22rem 0.55rem;
- border-radius: 999px;
- font-size: var(--text-sm, 0.76rem);
+ border-radius: var(--radius-pill);
+ font-size: var(--text-sm);
}
/* ── Detail view ──────────────────────────────────────────────────────── */
.arena-back {
background: none;
border: none;
- color: var(--text-2, #a8a8a8);
- font: inherit;
- font-size: var(--text-md, 0.82rem);
+ color: var(--ink-dim);
+ font-family: var(--font-body);
+ font-size: var(--text-md);
cursor: pointer;
- padding: 0.3rem 0;
+ padding: 0.3rem 0.2rem;
margin-bottom: 0.8rem;
display: inline-flex;
align-items: center;
gap: 0.35rem;
+ border-radius: var(--radius-sm);
+ transition: color var(--duration-fast) var(--ease-standard);
}
.arena-back:hover {
- color: var(--ink, #f6f6f6);
+ color: var(--ink-bright);
+}
+.arena-back:focus-visible {
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
+ outline-offset: var(--focus-ring-offset);
}
.detail-head {
display: grid;
grid-template-columns: 1fr;
- gap: var(--space-md, 1rem);
- margin-bottom: var(--space-lg, 1.6rem);
+ gap: var(--space-md);
+ margin-bottom: var(--space-lg);
}
.detail-head .title-row {
display: flex;
@@ -302,7 +341,7 @@
letter-spacing: -0.02em;
}
.detail-head .desc {
- color: var(--text-2, #a8a8a8);
+ color: var(--ink-dim);
margin: 0;
max-width: 70ch;
line-height: 1.5;
@@ -318,17 +357,21 @@
gap: 0.15rem;
}
.stat .k {
- font-size: var(--text-2xs, 0.69rem);
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.06em;
- color: var(--text-3, #888);
+ color: var(--ink-faint);
}
.stat .v {
- font-size: var(--text-base, 1rem);
- font-weight: 700;
+ font-family: var(--font-mono);
+ font-size: var(--text-base);
+ font-weight: var(--weight-bold);
+ color: var(--ink-bright);
font-variant-numeric: tabular-nums;
}
.countdown {
+ font-family: var(--font-mono);
font-variant-numeric: tabular-nums;
}
@@ -336,47 +379,63 @@
.detail-body {
display: grid;
grid-template-columns: 320px 1fr;
- gap: var(--space-lg, 1.6rem);
+ gap: var(--space-lg);
align-items: start;
}
+.detail-aside {
+ display: flex;
+ flex-direction: column;
+ gap: var(--space-md);
+}
@media (max-width: 860px) {
.detail-body {
grid-template-columns: 1fr;
}
+ /* When the aside stacks above the board, drop the sticky pin and trim the
+ spotlight so the ranking board isn't pushed far down the page. */
+ .spotlight {
+ position: static;
+ }
+ .spotlight agent-3d,
+ .spotlight .spot-fallback {
+ height: 220px;
+ }
}
.spotlight {
- position: sticky;
- top: 1rem;
- border: 1px solid var(--border, #2a2a2a);
- border-radius: var(--radius-lg, 16px);
- background: radial-gradient(120% 80% at 50% 0%, var(--surface-2, #181818), var(--surface-1, #111));
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-lg);
+ background: radial-gradient(120% 80% at 50% 0%, var(--surface-2), var(--surface-1));
padding: 1rem;
display: flex;
flex-direction: column;
gap: 0.6rem;
}
.spotlight .crown {
- font-size: var(--text-2xs, 0.69rem);
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.08em;
- color: var(--warn, #fbbf24);
- font-weight: 700;
+ color: var(--warn);
+ font-weight: var(--weight-bold);
}
.spotlight agent-3d,
.spotlight .spot-fallback {
width: 100%;
height: 280px;
- border-radius: var(--radius-md, 10px);
+ border-radius: var(--radius-md);
overflow: hidden;
- background: var(--surface-0, #0a0a0a);
+ background: var(--bg-0);
display: block;
}
.spotlight .spot-fallback {
display: flex;
align-items: center;
justify-content: center;
- color: var(--text-3, #888);
+ color: var(--ink-faint);
+ font-family: var(--font-display);
+ font-size: var(--text-xl);
+ font-weight: var(--weight-bold);
}
.spotlight .spot-fallback img {
width: 100%;
@@ -384,15 +443,17 @@
object-fit: cover;
}
.spotlight .spot-name {
- font-weight: 700;
- font-size: var(--text-base, 1rem);
+ font-weight: var(--weight-bold);
+ font-size: var(--text-base);
+ color: var(--ink-bright);
display: flex;
align-items: center;
gap: 0.4rem;
}
.spotlight .spot-metric {
- color: var(--text-2, #a8a8a8);
- font-size: var(--text-md, 0.82rem);
+ color: var(--ink-dim);
+ font-family: var(--font-mono);
+ font-size: var(--text-md);
font-variant-numeric: tabular-nums;
}
@@ -412,10 +473,11 @@
}
.board-head {
padding: 0 0.8rem 0.4rem;
- font-size: var(--text-2xs, 0.69rem);
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.05em;
- color: var(--text-3, #888);
+ color: var(--ink-faint);
}
.board-head .num,
.row .num {
@@ -423,44 +485,47 @@
font-variant-numeric: tabular-nums;
}
.row {
- border: 1px solid var(--border, #2a2a2a);
- background: var(--surface-1, #111);
- border-radius: var(--radius-md, 10px);
+ border: 1px solid var(--stroke);
+ background: var(--surface-1);
+ border-radius: var(--radius-md);
padding: 0.6rem 0.8rem;
- transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1), border-color 0.2s ease, background 0.2s ease;
+ transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.25, 1),
+ border-color var(--duration-base) var(--ease-standard),
+ background var(--duration-base) var(--ease-standard);
cursor: pointer;
}
.row:hover {
- border-color: var(--border-strong, #3a3a3a);
- background: var(--surface-2, #181818);
+ border-color: var(--stroke-strong);
+ background: var(--surface-2);
}
.row:focus-visible {
- outline: 2px solid var(--accent, #fff);
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
outline-offset: 1px;
}
.row.rank-1 {
- border-color: color-mix(in srgb, var(--warn, #fbbf24) 45%, transparent);
- background: linear-gradient(90deg, color-mix(in srgb, var(--warn, #fbbf24) 8%, transparent), var(--surface-1, #111));
+ border-color: rgba(var(--gold-rgb), 0.45);
+ background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.08), var(--surface-1));
}
.row.flash {
animation: arena-flash 0.7s ease;
}
@keyframes arena-flash {
0% {
- background: color-mix(in srgb, var(--success, #34d399) 22%, var(--surface-1, #111));
+ background: color-mix(in srgb, var(--success) 22%, var(--surface-1));
}
100% {
- background: var(--surface-1, #111);
+ background: var(--surface-1);
}
}
.row .rank {
- font-weight: 800;
+ font-family: var(--font-mono);
+ font-weight: var(--weight-bold);
font-variant-numeric: tabular-nums;
- color: var(--text-2, #a8a8a8);
+ color: var(--ink-dim);
text-align: center;
}
.row.rank-1 .rank {
- color: var(--warn, #fbbf24);
+ color: var(--warn);
}
.row .who {
display: flex;
@@ -474,22 +539,24 @@
height: 34px;
border-radius: 50%;
object-fit: cover;
- background: var(--surface-3, #202020);
+ background: var(--surface-3);
flex-shrink: 0;
}
.row .who .ph {
display: flex;
align-items: center;
justify-content: center;
- font-weight: 700;
- color: var(--text-2, #a8a8a8);
- font-size: var(--text-md, 0.82rem);
+ font-family: var(--font-display);
+ font-weight: var(--weight-bold);
+ color: var(--ink-dim);
+ font-size: var(--text-md);
}
.row .who .nm {
min-width: 0;
}
.row .who .nm .name {
- font-weight: 600;
+ font-weight: var(--weight-semibold);
+ color: var(--ink-bright);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
@@ -498,28 +565,35 @@
gap: 0.35rem;
}
.row .who .nm .sub {
- font-size: var(--text-2xs, 0.69rem);
- color: var(--text-3, #888);
+ font-size: var(--text-2xs);
+ color: var(--ink-faint);
display: flex;
gap: 0.5rem;
flex-wrap: wrap;
+ font-variant-numeric: tabular-nums;
}
.row .score {
- font-weight: 700;
+ font-family: var(--font-mono);
+ font-weight: var(--weight-bold);
+ color: var(--ink-bright);
font-variant-numeric: tabular-nums;
text-align: right;
}
+.row .num {
+ font-family: var(--font-mono);
+}
.row .pnl-pos {
- color: var(--success, #34d399);
+ color: var(--success);
}
.row .pnl-neg {
- color: var(--danger, #f87171);
+ color: var(--danger);
}
.row .prize {
text-align: right;
- font-size: var(--text-sm, 0.76rem);
- color: var(--warn, #fbbf24);
- font-weight: 700;
+ font-family: var(--font-mono);
+ font-size: var(--text-sm);
+ color: var(--warn);
+ font-weight: var(--weight-bold);
font-variant-numeric: tabular-nums;
}
.row .mini-badge {
@@ -532,43 +606,47 @@
grid-column: 1 / -1;
margin-top: 0.5rem;
padding-top: 0.5rem;
- border-top: 1px dashed var(--border, #2a2a2a);
+ border-top: 1px dashed var(--stroke);
display: flex;
flex-wrap: wrap;
gap: 0.4rem;
}
.proof-pill {
- font-size: var(--text-2xs, 0.69rem);
- border: 1px solid var(--border, #2a2a2a);
- border-radius: 999px;
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-pill);
padding: 0.18rem 0.5rem;
- color: var(--text-2, #a8a8a8);
+ color: var(--ink-dim);
text-decoration: none;
display: inline-flex;
gap: 0.3rem;
font-variant-numeric: tabular-nums;
+ transition: border-color var(--duration-fast) var(--ease-standard),
+ color var(--duration-fast) var(--ease-standard);
}
.proof-pill:hover {
- border-color: var(--border-strong, #3a3a3a);
- color: var(--ink, #f6f6f6);
+ border-color: var(--stroke-strong);
+ color: var(--ink-bright);
}
/* ── Trades ticker ────────────────────────────────────────────────────── */
.ticker {
- margin-top: var(--space-lg, 1.6rem);
- border: 1px solid var(--border, #2a2a2a);
- border-radius: var(--radius-md, 10px);
- background: var(--surface-1, #111);
+ margin-top: var(--space-lg);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-md);
+ background: var(--surface-1);
overflow: hidden;
}
.ticker h4 {
margin: 0;
padding: 0.6rem 0.8rem;
- font-size: var(--text-2xs, 0.69rem);
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
text-transform: uppercase;
letter-spacing: 0.06em;
- color: var(--text-3, #888);
- border-bottom: 1px solid var(--border, #2a2a2a);
+ color: var(--ink-faint);
+ border-bottom: 1px solid var(--stroke);
}
.ticker-list {
display: flex;
@@ -581,65 +659,76 @@
align-items: center;
gap: 0.6rem;
padding: 0.45rem 0.8rem;
- font-size: var(--text-sm, 0.76rem);
- border-bottom: 1px solid var(--border, #2a2a2a);
+ font-size: var(--text-sm);
+ border-bottom: 1px solid var(--stroke);
font-variant-numeric: tabular-nums;
+ transition: background var(--duration-fast) var(--ease-standard);
+}
+.ticker-item:hover {
+ background: var(--surface-1);
}
.ticker-item:last-child {
border-bottom: none;
}
.ticker-item .tk-agent {
- font-weight: 600;
+ font-weight: var(--weight-semibold);
+ color: var(--ink);
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ticker-item .tk-mint {
- color: var(--text-3, #888);
+ color: var(--ink-faint);
+ font-family: var(--font-mono);
}
.ticker-item .tk-pnl {
margin-left: auto;
- font-weight: 700;
+ font-family: var(--font-mono);
+ font-weight: var(--weight-bold);
}
/* ── Results / settlement ─────────────────────────────────────────────── */
.results-banner {
- border: 1px solid var(--border, #2a2a2a);
- border-radius: var(--radius-md, 10px);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-md);
padding: 0.9rem 1rem;
- background: var(--surface-1, #111);
+ background: var(--surface-1);
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.6rem 1rem;
- margin-bottom: var(--space-md, 1rem);
+ margin-bottom: var(--space-md);
}
.results-banner .att-link {
- color: var(--accent-2, #7c8bff);
- font-weight: 600;
- text-decoration: none;
+ color: var(--ink-bright);
+ font-weight: var(--weight-semibold);
+ text-decoration: underline;
+ text-underline-offset: 3px;
+ text-decoration-color: var(--stroke-strong);
+ transition: text-decoration-color var(--duration-fast) var(--ease-standard);
}
.results-banner .att-link:hover {
- text-decoration: underline;
+ text-decoration-color: var(--accent);
}
.settle-note {
- font-size: var(--text-sm, 0.76rem);
- color: var(--text-2, #a8a8a8);
+ font-size: var(--text-sm);
+ color: var(--ink-dim);
}
.settle-note code {
- background: var(--surface-3, #202020);
+ font-family: var(--font-mono);
+ background: var(--surface-3);
padding: 0.05rem 0.3rem;
- border-radius: 4px;
+ border-radius: var(--radius-sm);
font-size: 0.92em;
}
/* ── States: loading / empty / error ──────────────────────────────────── */
.skeleton {
- background: linear-gradient(90deg, var(--surface-1, #111) 25%, var(--surface-2, #181818) 50%, var(--surface-1, #111) 75%);
+ background: linear-gradient(90deg, var(--surface-1) 25%, var(--surface-2) 50%, var(--surface-1) 75%);
background-size: 200% 100%;
animation: arena-shimmer 1.4s ease infinite;
- border-radius: var(--radius-md, 10px);
+ border-radius: var(--radius-md);
}
@keyframes arena-shimmer {
0% {
@@ -655,20 +744,20 @@
.state {
text-align: center;
padding: clamp(2rem, 8vw, 4.5rem) 1rem;
- border: 1px dashed var(--border, #2a2a2a);
- border-radius: var(--radius-lg, 16px);
- color: var(--text-2, #a8a8a8);
+ border: 1px dashed var(--stroke);
+ border-radius: var(--radius-lg);
+ color: var(--ink-dim);
}
.state h3 {
margin: 0 0 0.4rem;
- color: var(--ink, #f6f6f6);
- font-size: var(--text-base, 1rem);
+ color: var(--ink-bright);
+ font-size: var(--text-lg);
}
.state p {
margin: 0 auto 1rem;
max-width: 46ch;
line-height: 1.5;
- font-size: var(--text-md, 0.82rem);
+ font-size: var(--text-md);
}
.state-icon {
font-size: 2.4rem;
@@ -684,26 +773,301 @@
/* Not-found recovery: surfaced live/upcoming tournaments */
#nf-suggest {
- margin-top: var(--space-lg, 1.6rem);
+ margin-top: var(--space-lg);
}
.nf-h {
- font-size: var(--text-base, 1rem);
+ font-size: var(--text-lg);
letter-spacing: -0.01em;
- margin: 0 0 var(--space-md, 1rem);
- color: var(--text-2, #a8a8a8);
+ margin: 0 0 var(--space-md);
+ color: var(--ink-dim);
+}
+
+/* ── Hero context strip (list view) ───────────────────────────────────── */
+.arena-hero-stats {
+ margin-top: var(--space-md);
+ gap: 0.4rem 1.4rem;
+}
+.arena-hero-stats:empty {
+ display: none;
+ margin-top: 0;
+}
+
+/* ── Detail-aside panels (prize ladder / rules) ───────────────────────── */
+.panel {
+ border: 1px solid var(--stroke);
+ background: var(--surface-1);
+ border-radius: var(--radius-lg);
+ padding: 1rem;
+ display: flex;
+ flex-direction: column;
+ gap: 0.75rem;
+}
+.panel-h {
+ margin: 0;
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-bold);
+ text-transform: uppercase;
+ letter-spacing: 0.08em;
+ color: var(--ink-faint);
+}
+.panel-h-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 0.5rem;
+}
+.panel-note {
+ margin: 0;
+ font-size: var(--text-sm);
+ line-height: 1.5;
+ color: var(--ink-dim);
+}
+
+/* Prize ladder */
+.pl-rows {
+ display: flex;
+ flex-direction: column;
+ gap: 0.35rem;
+}
+.pl-row {
+ display: flex;
+ align-items: center;
+ gap: 0.5rem;
+ padding: 0.4rem 0.55rem;
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-sm);
+ background: var(--surface-1);
+}
+.pl-row.pl-filled {
+ border-color: rgba(var(--gold-rgb), 0.3);
+ background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.07), var(--surface-1));
+}
+.pl-place {
+ width: 1.4rem;
+ text-align: center;
+ font-size: var(--text-base);
+ line-height: 1;
+ flex-shrink: 0;
+}
+.pl-who {
+ flex: 1;
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+ color: var(--ink-dim);
+}
+.pl-filled .pl-who {
+ color: var(--ink-bright);
+}
+.pl-amt {
+ font-family: var(--font-mono);
+ font-size: var(--text-sm);
+ font-weight: var(--weight-bold);
+ color: var(--warn);
+ font-variant-numeric: tabular-nums;
+ white-space: nowrap;
+}
+.pl-pct {
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ color: var(--ink-faint);
+ min-width: 2.2rem;
+ text-align: right;
+ font-variant-numeric: tabular-nums;
+}
+
+/* Rules & scoring */
+.rules-rows {
+ display: flex;
+ flex-direction: column;
+}
+.rule-row {
+ display: flex;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 0.8rem;
+ padding: 0.32rem 0;
+ font-size: var(--text-sm);
+ border-bottom: 1px solid var(--stroke);
+}
+.rule-row:last-child {
+ border-bottom: none;
+}
+.rule-k {
+ color: var(--ink-faint);
+ flex-shrink: 0;
+}
+.rule-v {
+ color: var(--ink);
+ font-weight: var(--weight-semibold);
+ text-align: right;
+ font-variant-numeric: tabular-nums;
+}
+.rules-gates {
+ display: flex;
+ flex-direction: column;
+ gap: 0.4rem;
+}
+.rules-gates-h {
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+ color: var(--ink-faint);
+}
+.gate-pills {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.35rem;
+}
+.gate-pill {
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-pill);
+ padding: 0.15rem 0.5rem;
+ color: var(--ink-dim);
+}
+
+/* ── Aggregate strip (over the board) ─────────────────────────────────── */
+.agg-strip {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
+ gap: 0.6rem 0.9rem;
+ padding: 0.85rem 0.95rem;
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-md);
+ background: var(--surface-1);
+ margin-bottom: var(--space-md);
+}
+.agg-cell {
+ display: flex;
+ flex-direction: column;
+ gap: 0.15rem;
+ min-width: 0;
+}
+.agg-k {
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ color: var(--ink-faint);
+}
+.agg-v {
+ font-family: var(--font-mono);
+ font-size: var(--text-base);
+ font-weight: var(--weight-bold);
+ color: var(--ink-bright);
+ font-variant-numeric: tabular-nums;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+}
+.agg-v.pnl-pos {
+ color: var(--success);
+}
+.agg-v.pnl-neg {
+ color: var(--danger);
+}
+
+/* ── Window timeline ──────────────────────────────────────────────────── */
+.window-timeline {
+ display: flex;
+ flex-direction: column;
+ gap: 0.45rem;
+}
+.wt-label {
+ font-size: var(--text-sm);
+ color: var(--ink-dim);
+}
+.wt-label b {
+ color: var(--ink-bright);
+ font-family: var(--font-mono);
+ font-weight: var(--weight-bold);
+ font-variant-numeric: tabular-nums;
+}
+.wt-label .wt-live {
+ color: var(--success);
+ font-weight: var(--weight-bold);
+}
+.wt-track {
+ position: relative;
+ height: 6px;
+ border-radius: var(--radius-pill);
+ background: var(--surface-3);
+}
+.wt-fill {
+ position: absolute;
+ inset: 0 auto 0 0;
+ height: 100%;
+ border-radius: var(--radius-pill);
+ background: var(--ink-dim);
+ transition: width var(--duration-slow) var(--ease-out);
+}
+.window-timeline.wt-live .wt-fill {
+ background: var(--success);
+}
+.window-timeline.wt-finished .wt-fill {
+ background: var(--ink-dim);
+}
+.wt-node {
+ position: absolute;
+ top: 50%;
+ width: 9px;
+ height: 9px;
+ border-radius: 50%;
+ transform: translate(-50%, -50%);
+ background: var(--surface-3);
+ border: 2px solid var(--bg-0);
+}
+.wt-node-start {
+ left: 0;
+ background: var(--ink-dim);
+}
+.wt-node-end {
+ left: 100%;
+}
+.window-timeline.wt-live .wt-node-start {
+ background: var(--success);
+}
+.window-timeline.wt-finished .wt-node-end {
+ background: var(--ink-dim);
+}
+.wt-ends {
+ display: flex;
+ justify-content: space-between;
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ color: var(--ink-faint);
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .wt-fill {
+ transition: none !important;
+ }
}
/* ── Modal ────────────────────────────────────────────────────────────── */
.arena-modal {
position: fixed;
inset: 0;
- background: color-mix(in srgb, #000 62%, transparent);
+ background: var(--modal-backdrop, rgba(0, 0, 0, 0.7));
+ backdrop-filter: blur(var(--blur-sm));
+ -webkit-backdrop-filter: blur(var(--blur-sm));
display: flex;
align-items: center;
justify-content: center;
padding: 1rem;
- z-index: 1000;
- animation: arena-fade 0.18s ease;
+ /* Above the site's fixed corner widgets (getting-started pill 2147482500,
+ feature-discovery card 2147483600) so a modal is always the top layer and
+ its actions are never obscured — esp. the bottom sheet on mobile. */
+ z-index: 2147483640;
+ font-family: var(--font-body);
+ animation: arena-fade var(--duration-base) var(--ease-out);
}
@keyframes arena-fade {
from {
@@ -711,55 +1075,112 @@
}
}
.arena-modal .sheet {
- background: var(--surface-1, #111);
- border: 1px solid var(--border, #2a2a2a);
- border-radius: var(--radius-lg, 16px);
+ position: relative;
+ background: var(--bg-1);
+ border: 1px solid var(--stroke-strong);
+ border-radius: var(--radius-lg);
width: min(560px, 100%);
- max-height: 90vh;
+ max-height: min(90vh, 760px);
overflow-y: auto;
- padding: 1.3rem;
- box-shadow: var(--shadow, 0 10px 40px rgba(0, 0, 0, 0.5));
+ padding: 1.4rem;
+ box-shadow: var(--shadow-3);
+ animation: arena-sheet-in var(--duration-base) var(--ease-emphasized);
+}
+@keyframes arena-sheet-in {
+ from {
+ opacity: 0;
+ transform: translateY(12px) scale(0.98);
+ }
}
.arena-modal h2 {
margin: 0 0 0.3rem;
- font-size: var(--text-lg, 1.1rem);
+ padding-right: 2rem;
+ font-family: var(--font-display);
+ font-size: var(--text-lg);
+ color: var(--ink-bright);
}
.arena-modal .sub {
- color: var(--text-2, #a8a8a8);
- font-size: var(--text-md, 0.82rem);
- margin: 0 0 1rem;
+ color: var(--ink-dim);
+ font-size: var(--text-md);
+ line-height: 1.5;
+ margin: 0 0 1.1rem;
+}
+.modal-close {
+ position: absolute;
+ top: 0.85rem;
+ right: 0.85rem;
+ width: 2rem;
+ height: 2rem;
+ display: inline-flex;
+ align-items: center;
+ justify-content: center;
+ border: 1px solid transparent;
+ border-radius: var(--radius-sm);
+ background: transparent;
+ color: var(--ink-dim);
+ font-size: 1.15rem;
+ line-height: 1;
+ cursor: pointer;
+ transition: color var(--duration-fast) var(--ease-standard),
+ background var(--duration-fast) var(--ease-standard);
+}
+.modal-close:hover {
+ color: var(--ink-bright);
+ background: var(--surface-2);
+}
+.modal-close:focus-visible {
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
+ outline-offset: var(--focus-ring-offset);
}
.field {
display: flex;
flex-direction: column;
- gap: 0.3rem;
- margin-bottom: 0.85rem;
+ gap: 0.35rem;
+ margin-bottom: 0.9rem;
}
.field label {
- font-size: var(--text-sm, 0.76rem);
- font-weight: 600;
- color: var(--text-2, #a8a8a8);
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+ color: var(--ink-dim);
}
.field input,
.field select,
.field textarea {
- background: var(--surface-0, #0a0a0a);
- border: 1px solid var(--border, #2a2a2a);
- border-radius: var(--radius-sm, 6px);
- color: var(--ink, #f6f6f6);
- font: inherit;
- font-size: var(--text-md, 0.82rem);
- padding: 0.5rem 0.6rem;
+ background: var(--bg-0);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-sm);
+ color: var(--ink);
+ font-family: var(--font-body);
+ font-size: var(--text-md);
+ padding: 0.55rem 0.65rem;
+ width: 100%;
+ transition: border-color var(--duration-fast) var(--ease-standard),
+ box-shadow var(--duration-fast) var(--ease-standard);
+}
+.field textarea {
+ resize: vertical;
+ min-height: 3.2rem;
+}
+.field input[type='number'] {
+ font-family: var(--font-mono);
+ font-variant-numeric: tabular-nums;
+}
+.field input:hover,
+.field select:hover,
+.field textarea:hover {
+ border-color: var(--stroke-strong);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
outline: none;
- border-color: var(--accent, #fff);
+ border-color: var(--accent);
+ box-shadow: 0 0 0 3px var(--accent-soft);
}
.field .hint {
- font-size: var(--text-2xs, 0.69rem);
- color: var(--text-3, #888);
+ font-size: var(--text-2xs);
+ line-height: 1.45;
+ color: var(--ink-faint);
}
.field-row {
display: grid;
@@ -777,21 +1198,29 @@
display: flex;
align-items: center;
gap: 0.6rem;
- border: 1px solid var(--border, #2a2a2a);
- border-radius: var(--radius-md, 10px);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-md);
padding: 0.5rem 0.6rem;
cursor: pointer;
- background: var(--surface-0, #0a0a0a);
+ background: var(--bg-0);
text-align: left;
color: inherit;
font: inherit;
+ transition: border-color var(--duration-fast) var(--ease-standard),
+ background var(--duration-fast) var(--ease-standard);
}
.agent-opt:hover {
- border-color: var(--border-strong, #3a3a3a);
+ border-color: var(--stroke-strong);
+ background: var(--surface-1);
+}
+.agent-opt:focus-visible {
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
+ outline-offset: var(--focus-ring-offset);
}
.agent-opt[aria-pressed='true'] {
- border-color: var(--accent, #fff);
- background: var(--surface-2, #181818);
+ border-color: var(--accent);
+ background: var(--surface-2);
+ box-shadow: 0 0 0 3px var(--accent-soft);
}
.agent-opt img,
.agent-opt .ph {
@@ -799,18 +1228,30 @@
height: 32px;
border-radius: 50%;
object-fit: cover;
- background: var(--surface-3, #202020);
+ background: var(--surface-3);
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-family: var(--font-display);
+ font-weight: var(--weight-bold);
+ font-size: var(--text-sm);
+ color: var(--ink-dim);
+}
+.agent-opt .hint {
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ color: var(--ink-faint);
}
.modal-actions {
display: flex;
justify-content: flex-end;
gap: 0.5rem;
- margin-top: 1rem;
+ margin-top: 1.1rem;
}
.form-error {
- color: var(--danger, #f87171);
- font-size: var(--text-sm, 0.76rem);
- margin: 0.4rem 0 0;
+ color: var(--danger);
+ font-size: var(--text-sm);
+ margin: 0.5rem 0 0;
min-height: 1em;
}
@@ -820,18 +1261,19 @@
bottom: 1.2rem;
left: 50%;
transform: translateX(-50%);
- background: var(--surface-2, #181818);
- border: 1px solid var(--border-strong, #3a3a3a);
- color: var(--ink, #f6f6f6);
+ background: var(--bg-1);
+ border: 1px solid var(--stroke-strong);
+ color: var(--ink-bright);
+ font-family: var(--font-body);
padding: 0.65rem 1rem;
- border-radius: var(--radius-md, 10px);
- font-size: var(--text-md, 0.82rem);
- z-index: 1100;
- box-shadow: var(--shadow, 0 10px 40px rgba(0, 0, 0, 0.5));
- animation: arena-toast-in 0.2s ease;
+ border-radius: var(--radius-md);
+ font-size: var(--text-md);
+ z-index: 2147483645;
+ box-shadow: var(--shadow-3);
+ animation: arena-toast-in var(--duration-base) var(--ease-emphasized);
}
.arena-toast.err {
- border-color: var(--danger, #f87171);
+ border-color: var(--danger);
}
@keyframes arena-toast-in {
from {
@@ -848,12 +1290,27 @@
.skeleton,
.row.flash,
.arena-modal,
+ .arena-modal .sheet,
.arena-toast {
animation: none !important;
transition: none !important;
}
}
+/* ── Responsive ───────────────────────────────────────────────────────── */
+@media (max-width: 640px) {
+ .arena-hero {
+ align-items: flex-start;
+ }
+ .arena-hero .hero-actions {
+ width: 100%;
+ }
+ .arena-hero .hero-actions .btn {
+ flex: 1;
+ justify-content: center;
+ }
+}
+
@media (max-width: 560px) {
.board-head,
.row {
@@ -863,4 +1320,309 @@
.row .prize {
display: none;
}
+ /* Stack paired fields (scoring/bracket, starts/ends) so datetime inputs
+ have room and never overflow the sheet on a phone. */
+ .field-row {
+ grid-template-columns: 1fr;
+ }
+ /* Bottom-sheet on phones: dock to the bottom edge, full width, slide up. */
+ .arena-modal {
+ align-items: flex-end;
+ padding: 0;
+ }
+ .arena-modal .sheet {
+ width: 100%;
+ max-height: 92vh;
+ border-radius: var(--radius-lg) var(--radius-lg) 0 0;
+ border-bottom: none;
+ padding: 1.2rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
+ animation: arena-sheet-up var(--duration-base) var(--ease-emphasized);
+ }
+ @keyframes arena-sheet-up {
+ from {
+ opacity: 0.4;
+ transform: translateY(100%);
+ }
+ }
+ .modal-actions {
+ position: sticky;
+ bottom: 0;
+ background: var(--bg-1);
+ padding-top: 0.8rem;
+ margin-top: 1.2rem;
+ }
+ .modal-actions .btn {
+ flex: 1;
+ justify-content: center;
+ }
+}
+
+/* ── Detail: window timeline, aside panels, aggregate strip ─────────────────
+ * Rendered by windowTimeline() / prizeLadder() / rulesPanel() / aggregateStrip()
+ * in arena.js. Same glass-on-near-black token vocabulary as the board & cards,
+ * mono numerics for the trading feel, dark/light via tokens. */
+.detail-main {
+ min-width: 0; /* let the board/ticker shrink inside the grid track */
+}
+
+/* Hero context stats on the list view — reuses .detail-stats layout. */
+.arena-hero-stats {
+ margin-top: var(--space-sm);
+}
+.arena-hero-stats:empty {
+ display: none;
+}
+
+/* Window progress: open → close. The fill advances live via startCountdowns(). */
+.window-timeline {
+ display: flex;
+ flex-direction: column;
+ gap: 0.5rem;
+ border: 1px solid var(--stroke);
+ background: var(--surface-1);
+ border-radius: var(--radius-md);
+ padding: 0.7rem 0.85rem;
+}
+.wt-label {
+ font-size: var(--text-sm);
+ color: var(--ink-dim);
+ font-variant-numeric: tabular-nums;
+}
+.wt-label b {
+ font-family: var(--font-mono);
+ color: var(--ink-bright);
+ font-weight: var(--weight-bold);
+}
+.wt-live {
+ color: var(--success);
+ font-weight: var(--weight-bold);
+}
+.wt-track {
+ position: relative;
+ height: 6px;
+ border-radius: var(--radius-pill);
+ background: var(--surface-3);
+}
+.wt-fill {
+ height: 100%;
+ min-width: 6px;
+ border-radius: var(--radius-pill);
+ background: linear-gradient(90deg, rgba(var(--gold-rgb), 0.9), var(--success));
+ transition: width 1s linear;
+}
+.wt-upcoming .wt-fill {
+ min-width: 0;
+}
+.wt-finished .wt-fill {
+ background: var(--stroke-strong);
+}
+.wt-node {
+ position: absolute;
+ top: 50%;
+ width: 9px;
+ height: 9px;
+ border-radius: 50%;
+ transform: translate(-50%, -50%);
+ background: var(--bg-0);
+ border: 2px solid var(--stroke-strong);
+}
+.wt-node-start {
+ left: 0;
+}
+.wt-node-end {
+ left: 100%;
+}
+.wt-ends {
+ display: flex;
+ justify-content: space-between;
+ gap: 0.5rem;
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ color: var(--ink-faint);
+ font-variant-numeric: tabular-nums;
+}
+
+/* Aside panels — prize ladder + rules. */
+.panel {
+ border: 1px solid var(--stroke);
+ background: var(--surface-1);
+ border-radius: var(--radius-lg);
+ padding: 0.95rem 1rem;
+ display: flex;
+ flex-direction: column;
+ gap: 0.7rem;
+}
+.panel-h {
+ margin: 0;
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ text-transform: uppercase;
+ letter-spacing: 0.06em;
+ color: var(--ink-faint);
+ font-weight: var(--weight-bold);
+}
+.panel-h-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 0.5rem;
+}
+.panel-note {
+ margin: 0;
+ font-size: var(--text-2xs);
+ line-height: 1.5;
+ color: var(--ink-faint);
+}
+
+/* Prize ladder rows. */
+.pl-rows {
+ display: flex;
+ flex-direction: column;
+ gap: 0.3rem;
+}
+.pl-row {
+ display: grid;
+ grid-template-columns: 1.5rem 1fr auto 2.4rem;
+ align-items: center;
+ gap: 0.5rem;
+ padding: 0.4rem 0.45rem;
+ border-radius: var(--radius-md);
+ border: 1px solid transparent;
+ font-size: var(--text-md);
+}
+.pl-row.pl-filled {
+ background: var(--surface-2);
+ border-color: var(--stroke);
+}
+.pl-place {
+ font-size: var(--text-base);
+ line-height: 1;
+ text-align: center;
+}
+.pl-who {
+ min-width: 0;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ color: var(--ink-dim);
+}
+.pl-row.pl-filled .pl-who {
+ color: var(--ink-bright);
+ font-weight: var(--weight-semibold);
+}
+.pl-amt {
+ font-family: var(--font-mono);
+ font-size: var(--text-sm);
+ font-weight: var(--weight-bold);
+ color: var(--warn);
+ font-variant-numeric: tabular-nums;
+ white-space: nowrap;
+}
+.pl-pct {
+ text-align: right;
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ color: var(--ink-faint);
+ font-variant-numeric: tabular-nums;
+}
+
+/* Rules panel. */
+.rules-rows {
+ display: flex;
+ flex-direction: column;
+ gap: 0.4rem;
+}
+.rule-row {
+ display: flex;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 0.8rem;
+ font-size: var(--text-md);
+}
+.rule-k {
+ color: var(--ink-faint);
+ white-space: nowrap;
+}
+.rule-v {
+ color: var(--ink-bright);
+ font-weight: var(--weight-semibold);
+ text-align: right;
+}
+.rules-gates {
+ display: flex;
+ flex-direction: column;
+ gap: 0.4rem;
+ padding-top: 0.6rem;
+ border-top: 1px solid var(--stroke);
+}
+.rules-gates-h {
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ color: var(--ink-faint);
+}
+.gate-pills {
+ display: flex;
+ flex-wrap: wrap;
+ gap: 0.3rem;
+}
+.gate-pill {
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ border: 1px solid var(--stroke);
+ border-radius: var(--radius-pill);
+ padding: 0.18rem 0.5rem;
+ color: var(--ink-dim);
+ white-space: nowrap;
+}
+
+/* Aggregate strip over the board. */
+.agg-strip {
+ display: grid;
+ grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
+ gap: 0.5rem 0.9rem;
+ border: 1px solid var(--stroke);
+ background: var(--surface-1);
+ border-radius: var(--radius-md);
+ padding: 0.7rem 0.9rem;
+ margin-bottom: var(--space-md);
+}
+.agg-cell {
+ display: flex;
+ flex-direction: column;
+ gap: 0.15rem;
+ min-width: 0;
+}
+.agg-k {
+ font-family: var(--font-mono);
+ font-size: var(--text-2xs);
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ color: var(--ink-faint);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.agg-v {
+ font-family: var(--font-mono);
+ font-size: var(--text-base);
+ font-weight: var(--weight-bold);
+ color: var(--ink-bright);
+ font-variant-numeric: tabular-nums;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.agg-v.pnl-pos {
+ color: var(--success);
+}
+.agg-v.pnl-neg {
+ color: var(--danger);
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .wt-fill {
+ transition: none !important;
+ }
}
diff --git a/src/arena/arena.js b/src/arena/arena.js
index 6ee265295..21f06f8ef 100644
--- a/src/arena/arena.js
+++ b/src/arena/arena.js
@@ -101,6 +101,15 @@ function startCountdowns() {
const prefix = node.dataset.prefix || '';
node.textContent = future ? `${prefix}${label}` : node.dataset.doneLabel || 'ended';
});
+ // Advance any live window-progress bars in lockstep with the countdowns.
+ document.querySelectorAll('.wt-track[data-window-phase="live"]').forEach((track) => {
+ const start = Number(track.dataset.windowStart);
+ const end = Number(track.dataset.windowEnd);
+ const span = Math.max(1, end - start);
+ const frac = Math.min(1, Math.max(0, (Date.now() - start) / span));
+ const fill = track.querySelector('.wt-fill');
+ if (fill) fill.style.width = `${(frac * 100).toFixed(2)}%`;
+ });
};
tick();
countdownTimer = setInterval(tick, 1000);
@@ -149,6 +158,7 @@ async function renderList() {
'Time-boxed PvP trading tournaments where AI agents compete on real, verified pump.fun P&L. ',
'Ranked live, settled and attested on-chain, with $THREE prizes for the winners.',
),
+ h('div', { class: 'arena-hero-stats detail-stats', id: 'hero-stats', 'aria-hidden': 'true' }),
),
h(
'div',
@@ -195,6 +205,25 @@ async function renderList() {
upcoming: listCache.filter((t) => t.phase === 'upcoming'),
finished: listCache.filter((t) => t.phase === 'finished'),
};
+
+ // Hero context strip — real, live counts. Prize/competing only surface when > 0
+ // so an empty Arena never advertises a hollow "0 $THREE at stake".
+ const hs = document.getElementById('hero-stats');
+ if (hs) {
+ const open = listCache.filter((t) => t.phase !== 'finished');
+ const atStake = open.reduce((a, t) => a + Number(t.prize_pool_three || 0), 0);
+ const competing = open.reduce((a, t) => a + Number(t.entrant_count || 0), 0);
+ const cells = [
+ stat('Live', String(groups.live.length)),
+ stat('Upcoming', String(groups.upcoming.length)),
+ stat('Finished', String(groups.finished.length)),
+ ];
+ if (atStake > 0) cells.push(stat('At stake', `${fmtThree(atStake)} $THREE`));
+ if (competing > 0) cells.push(stat('Competing', String(competing)));
+ hs.replaceChildren(...cells);
+ hs.setAttribute('aria-hidden', 'false');
+ }
+
// If the preferred tab is empty, fall back to the first non-empty one.
if (!groups[listState.tab].length) {
listState.tab = ['live', 'upcoming', 'finished'].find((k) => groups[k].length) || 'live';
@@ -475,7 +504,7 @@ function paintDetail(data) {
'div',
{ class: 'detail-main' },
phase === 'finished' ? resultsBanner(data) : null,
- aggregateStrip(standings, t),
+ aggregateStrip(standings),
h(
'div',
{ class: 'board-head' },
@@ -516,7 +545,7 @@ function statCountdown(k, iso) {
'div',
{ class: 'stat' },
h('span', { class: 'k' }, k),
- h('span', { class: 'v countdown', dataset: { countdown: iso }, doneLabel: 'now' }, '…'),
+ h('span', { class: 'v countdown', dataset: { countdown: iso, doneLabel: 'now' } }, '…'),
);
}
@@ -717,6 +746,153 @@ function resultsBanner(data) {
return bits.length ? h('div', { class: 'results-banner' }, ...bits) : null;
}
+// ── detail panels ────────────────────────────────────────────────────────────
+const fmtWhen = (v) => {
+ if (v == null) return '—';
+ const d = new Date(v);
+ if (Number.isNaN(d.getTime())) return '—';
+ return d.toLocaleString(undefined, { month: 'short', day: 'numeric', hour: 'numeric', minute: '2-digit' });
+};
+
+/** A summary strip over the board: entrants, in-window trades, net P&L, verified, leader. */
+function aggregateStrip(standings) {
+ const ranked = standings.filter((s) => s.rank != null);
+ if (!ranked.length) return null;
+ const trades = ranked.reduce((a, s) => a + (s.metrics?.closed_count ?? s.in_window_trades ?? 0), 0);
+ const netPnl = ranked.reduce((a, s) => a + (Number(s.metrics?.realized_pnl_sol) || 0), 0);
+ const verified = ranked.filter((s) => s.metrics?.verified).length;
+ const leader = ranked.find((s) => s.rank === 1);
+ const cells = [
+ aggCell('Entrants', String(standings.length)),
+ aggCell('In-window trades', trades.toLocaleString()),
+ aggCell('Net P&L', fmtSol(netPnl), netPnl > 0 ? 'pnl-pos' : netPnl < 0 ? 'pnl-neg' : ''),
+ aggCell('Verified', `${verified}/${ranked.length}`),
+ ];
+ if (leader) cells.push(aggCell('Leading', leader.agent_name || 'Agent'));
+ return h('div', { class: 'agg-strip' }, ...cells);
+}
+function aggCell(k, v, cls) {
+ return h('div', { class: 'agg-cell' }, h('span', { class: 'agg-k' }, k), h('span', { class: `agg-v ${cls || ''}` }, v));
+}
+
+/** Progress bar from window open → close, with live countdown and a moving fill. */
+function windowTimeline(t, phase) {
+ const start = new Date(t.starts_at).getTime();
+ const end = new Date(t.ends_at).getTime();
+ const span = Math.max(1, end - start);
+ const frac = phase === 'upcoming' ? 0 : phase === 'finished' ? 1 : Math.min(1, Math.max(0, (Date.now() - start) / span));
+ const label =
+ phase === 'upcoming'
+ ? h('span', {}, 'Opens in ', h('b', { dataset: { countdown: t.starts_at, doneLabel: 'now' } }, '…'))
+ : phase === 'live'
+ ? h('span', {}, h('span', { class: 'wt-live' }, '● Live'), ' — closes in ', h('b', { dataset: { countdown: t.ends_at, doneLabel: 'now' } }, '…'))
+ : h('span', {}, 'Window closed — final standings frozen');
+ return h(
+ 'div',
+ { class: `window-timeline wt-${phase}` },
+ h('div', { class: 'wt-label' }, label),
+ h(
+ 'div',
+ {
+ class: 'wt-track',
+ dataset: { windowStart: String(start), windowEnd: String(end), windowPhase: phase },
+ role: 'progressbar',
+ 'aria-valuemin': '0',
+ 'aria-valuemax': '100',
+ 'aria-valuenow': String(Math.round(frac * 100)),
+ 'aria-label': 'Tournament window progress',
+ },
+ h('div', { class: 'wt-fill', style: `width:${(frac * 100).toFixed(1)}%` }),
+ h('span', { class: 'wt-node wt-node-start' }),
+ h('span', { class: 'wt-node wt-node-end' }),
+ ),
+ h('div', { class: 'wt-ends' }, h('span', {}, fmtWhen(t.starts_at)), h('span', {}, fmtWhen(t.ends_at))),
+ );
+}
+
+/** Prize pool split by place, showing who currently holds each payout. */
+function prizeLadder(data, phase) {
+ const t = data.tournament;
+ const pool = Number(data.prize_pool_three ?? t.prize_pool_three ?? 0);
+ if (!(pool > 0) || t.bracket === 'practice') {
+ return h(
+ 'aside',
+ { class: 'panel prize-ladder' },
+ h('h3', { class: 'panel-h' }, 'Stakes'),
+ h(
+ 'p',
+ { class: 'panel-note' },
+ t.bracket === 'practice'
+ ? 'Practice bracket — paper trades, no prizes. Pure bragging rights and a verified spot on the board.'
+ : 'No prize pool on this one. Top the board for bragging rights and a permanent, on-chain-attested record.',
+ ),
+ );
+ }
+ const splits = data.prize_splits && data.prize_splits.length ? data.prize_splits : [0.6, 0.3, 0.1];
+ const ranked = (data.standings || []).filter((s) => s.rank != null);
+ const medals = ['🥇', '🥈', '🥉'];
+ const rows = splits.map((frac, i) => {
+ const amount = pool * Number(frac);
+ const holder = ranked.find((s) => s.rank === i + 1);
+ return h(
+ 'div',
+ { class: `pl-row${holder ? ' pl-filled' : ''}` },
+ h('span', { class: 'pl-place' }, medals[i] || `#${i + 1}`),
+ h('span', { class: 'pl-who' }, holder ? holder.agent_name || 'Agent' : phase === 'finished' ? 'Unclaimed' : 'Up for grabs'),
+ h('span', { class: 'pl-amt' }, `${fmtThree(amount)} $THREE`),
+ h('span', { class: 'pl-pct' }, `${Math.round(Number(frac) * 100)}%`),
+ );
+ });
+ return h(
+ 'aside',
+ { class: 'panel prize-ladder' },
+ h('div', { class: 'panel-h-row' }, h('h3', { class: 'panel-h' }, 'Prize ladder'), h('span', { class: 'prize-chip' }, '🏆', `${fmtThree(pool)} $THREE`)),
+ h('div', { class: 'pl-rows' }, ...rows),
+ h(
+ 'p',
+ { class: 'panel-note' },
+ phase === 'finished'
+ ? 'Final split — paid in $THREE to the winners’ agent wallets.'
+ : 'Live projection — the split locks when the window closes and standings attest on-chain.',
+ ),
+ );
+}
+
+/** Scoring, bracket, window and the eligibility gates that decide who can win. */
+function rulesPanel(data) {
+ const t = data.tournament;
+ const g = data.gates || {};
+ const w = data.window || { start: t.starts_at, end: t.ends_at };
+ const rows = [
+ ruleRow('Scoring', scoringLabel[data.scoring || t.scoring] || esc(data.scoring || t.scoring)),
+ ruleRow('Bracket', t.bracket === 'practice' ? 'Practice · paper trades' : 'Prize · real trades only'),
+ ruleRow('Window', `${fmtWhen(w.start)} → ${fmtWhen(w.end)}`),
+ ruleRow('Network', esc(t.network || data.network || NETWORK)),
+ ];
+ const gateBits = [];
+ if (g.min_closed != null) gateBits.push(`${g.min_closed}+ closed trades`);
+ if (g.min_unique_coins != null) gateBits.push(`${g.min_unique_coins}+ unique coins`);
+ if (g.max_churn_pct != null) gateBits.push(`≤ ${g.max_churn_pct}% churn`);
+ return h(
+ 'aside',
+ { class: 'panel rules-panel' },
+ h('h3', { class: 'panel-h' }, 'Rules & scoring'),
+ h('div', { class: 'rules-rows' }, ...rows),
+ gateBits.length
+ ? h(
+ 'div',
+ { class: 'rules-gates' },
+ h('span', { class: 'rules-gates-h' }, 'Prize eligibility'),
+ h('div', { class: 'gate-pills' }, ...gateBits.map((b) => h('span', { class: 'gate-pill' }, b))),
+ )
+ : null,
+ h('p', { class: 'panel-note' }, 'Only trades opened inside the window count — existing history never carries in. Every ranked trade is verifiable on-chain.'),
+ );
+}
+function ruleRow(k, v) {
+ return h('div', { class: 'rule-row' }, h('span', { class: 'rule-k' }, k), h('span', { class: 'rule-v' }, v));
+}
+
// ── live stream ────────────────────────────────────────────────────────────
let currentStandings = null;
let currentTournament = null;
@@ -802,28 +978,91 @@ function applyLiveStandings(id, data) {
// ───────────────────────────────────────────────────────────────────────────
// MODALS
// ───────────────────────────────────────────────────────────────────────────
+/** Lock background scroll while a modal is open, compensating for the scrollbar
+ * gutter so the page doesn't shift under the overlay. Reference-counted. */
+let scrollLocks = 0;
+function lockScroll() {
+ if (scrollLocks++ > 0) return;
+ const gutter = window.innerWidth - document.documentElement.clientWidth;
+ document.body.dataset.arenaPrevOverflow = document.body.style.overflow || '';
+ document.body.style.overflow = 'hidden';
+ if (gutter > 0) document.body.style.paddingRight = `${gutter}px`;
+}
+function unlockScroll() {
+ if (scrollLocks > 0) scrollLocks--;
+ if (scrollLocks > 0) return;
+ document.body.style.overflow = document.body.dataset.arenaPrevOverflow || '';
+ document.body.style.paddingRight = '';
+ delete document.body.dataset.arenaPrevOverflow;
+}
+
+const FOCUSABLE_SELECTOR =
+ 'a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])';
+
+/**
+ * Open an accessible modal dialog. Adds a close (✕) control, traps Tab focus
+ * inside the sheet, closes on Escape / backdrop click, locks background scroll,
+ * and restores focus to the trigger on close. Returns the overlay with a
+ * `.close()` method callers use instead of removing it directly.
+ */
function openModal(node) {
+ const lastFocused = document.activeElement;
+ const heading = node.querySelector('h2');
+ if (heading && !heading.id) heading.id = `arena-modal-title-${Math.random().toString(36).slice(2, 8)}`;
+
+ let closed = false;
+ const close = () => {
+ if (closed) return;
+ closed = true;
+ document.removeEventListener('keydown', onKey);
+ overlay.remove();
+ unlockScroll();
+ if (lastFocused && typeof lastFocused.focus === 'function') lastFocused.focus();
+ };
+
+ const onKey = (e) => {
+ if (e.key === 'Escape') {
+ e.preventDefault();
+ close();
+ return;
+ }
+ if (e.key !== 'Tab') return;
+ const items = [...node.querySelectorAll(FOCUSABLE_SELECTOR)].filter(
+ (el) => el.offsetParent !== null || el === document.activeElement,
+ );
+ 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();
+ }
+ };
+
+ node.append(h('button', { class: 'modal-close', type: 'button', 'aria-label': 'Close', title: 'Close', onclick: close }, '✕'));
+
const overlay = h(
'div',
{
class: 'arena-modal',
role: 'dialog',
'aria-modal': 'true',
+ 'aria-labelledby': heading?.id,
onclick: (e) => {
- if (e.target === overlay) overlay.remove();
+ if (e.target === overlay) close();
},
},
node,
);
- const onKey = (e) => {
- if (e.key === 'Escape') {
- overlay.remove();
- document.removeEventListener('keydown', onKey);
- }
- };
+ overlay.close = close;
+
document.addEventListener('keydown', onKey);
+ lockScroll();
document.body.append(overlay);
- const focusable = node.querySelector('input, select, button, textarea');
+ const focusable = node.querySelector('input, select, textarea, button:not(.modal-close)');
focusable?.focus();
return overlay;
}
@@ -877,7 +1116,7 @@ function openCreateModal() {
headers: { 'content-type': 'application/json' },
body: JSON.stringify(payload),
});
- overlay.remove();
+ overlay.close();
toast('Tournament created');
location.hash = `#/t/${out.tournament.id}`;
} catch (ex) {
@@ -898,7 +1137,7 @@ function openCreateModal() {
h(
'div',
{ class: 'modal-actions' },
- h('button', { class: 'btn btn-ghost', type: 'button', onclick: () => overlay.remove() }, 'Cancel'),
+ h('button', { class: 'btn btn-ghost', type: 'button', onclick: () => overlay.close() }, 'Cancel'),
submit,
),
);
@@ -927,7 +1166,7 @@ async function openJoinModal(t) {
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ agent_id: selected }),
});
- overlay.remove();
+ overlay.close();
toast('Entered the arena — good luck');
renderDetail(t.id);
} catch (ex) {
@@ -948,7 +1187,7 @@ async function openJoinModal(t) {
h(
'div',
{ class: 'modal-actions' },
- h('button', { class: 'btn btn-ghost', type: 'button', onclick: () => overlay.remove() }, 'Cancel'),
+ h('button', { class: 'btn btn-ghost', type: 'button', onclick: () => overlay.close() }, 'Cancel'),
submit,
),
);
diff --git a/src/avatar-embed.js b/src/avatar-embed.js
index 22273a51a..0014cb5ad 100644
--- a/src/avatar-embed.js
+++ b/src/avatar-embed.js
@@ -214,6 +214,11 @@ async function main() {
// work on deployments where the A2F lane is unconfigured — there it stays pure
// amplitude lipsync with zero added cost.
let a2fProbe = null;
+ // The GET probe only reports whether the lane is env-configured; a POST can
+ // still fail hard (invalid model/function id → 502, provider outage → 5xx).
+ // Latch that so we stop re-POSTing a lane that won't recover this session and
+ // stay on amplitude lipsync instead.
+ let a2fLaneBroken = false;
const a2fAvailable = () => {
if (!a2fProbe) {
a2fProbe = fetch('/api/a2f', { method: 'GET' })
@@ -418,7 +423,10 @@ async function main() {
headers: { 'content-type': 'application/json' },
body: JSON.stringify({ audio: btoa(bin), format: 'pcm', sampleRate: 16000 }),
});
- if (!r.ok) return null;
+ if (!r.ok) {
+ if (r.status >= 500) a2fLaneBroken = true; // provider down/misconfigured — stop retrying
+ return null;
+ }
const data = await r.json();
return data?.animation?.frames?.length ? data.animation : null;
};
@@ -433,7 +441,7 @@ async function main() {
// starts immediately (zero latency); if a real blendshape track comes back
// before the clip ends and the rig can show it, we upgrade seamlessly.
let a2fUpgraded = false;
- const a2fPromise = a2fEnabled
+ const a2fPromise = (a2fEnabled && !a2fLaneBroken)
? a2fAvailable()
.then((ok) => (ok ? fetchA2FTrack(url) : null))
.then((track) => {
diff --git a/src/dashboard-next/components/topbar.js b/src/dashboard-next/components/topbar.js
index 4c04fc329..c39704139 100644
--- a/src/dashboard-next/components/topbar.js
+++ b/src/dashboard-next/components/topbar.js
@@ -40,13 +40,6 @@ export function renderTopbar(pathname) {
<button type="button" class="dn-topbar-btn" data-action="toggle-drawer" aria-label="Toggle activity drawer" aria-pressed="false">
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"><circle cx="8" cy="8" r="3"/><path d="M8 1v2M8 13v2M1 8h2M13 8h2M3.2 3.2l1.4 1.4M11.4 11.4l1.4 1.4M3.2 12.8l1.4-1.4M11.4 4.6l1.4-1.4"/></svg>
</button>
- <div class="dn-walk-avatar" data-component="walk-avatar" data-state="loading">
- <button type="button" class="dn-walk-avatar-btn" data-action="toggle-walk-menu" aria-haspopup="menu" aria-expanded="false" aria-label="Your walking avatar">
- <span class="dn-walk-avatar-stage" data-slot="walk-stage" aria-hidden="true">
- <span class="dn-walk-avatar-skel"></span>
- </span>
- </button>
- </div>
<button type="button" class="dn-topbar-user" data-action="toggle-user-menu" data-component="topbar-user" aria-haspopup="menu" aria-expanded="false" aria-label="Account menu">
<span class="dn-topbar-user-avatar" data-slot="initials" aria-hidden="true">··</span>
<span data-slot="label">Loading…</span>
@@ -85,11 +78,6 @@ export function mountTopbarBehavior(shellEl) {
toggleUserMenu(chip);
return;
}
- if (e.target.closest?.('[data-action="toggle-walk-menu"]')) {
- const btn = e.target.closest('[data-action="toggle-walk-menu"]');
- toggleWalkMenu(btn);
- return;
- }
});
window.addEventListener('keydown', (e) => {
@@ -99,8 +87,6 @@ export function mountTopbarBehavior(shellEl) {
}
});
- injectTopbarStyles();
-
// Fill the user chip and load notification count from /api/auth/me.
getMe().then((me) => {
const chip = shellEl.querySelector('[data-component="topbar-user"]');
@@ -113,9 +99,6 @@ export function mountTopbarBehavior(shellEl) {
const ret = encodeURIComponent(location.pathname + location.search);
location.href = `/login?return=${ret}`;
};
- // No session → hide the walking avatar entirely; it's account-bound.
- const walk = shellEl.querySelector('[data-component="walk-avatar"]');
- if (walk) walk.style.display = 'none';
return;
}
chip.querySelector('[data-slot="initials"]').textContent = initialsOf(me);
@@ -146,14 +129,8 @@ export function mountTopbarBehavior(shellEl) {
badge.textContent = '';
}
}
- // A fresh notification makes the topbar avatar wave so the user
- // notices without watching the bell.
- if (unread > 0) signalWalkAvatar(shellEl, 'wave');
})
.catch(() => { /* notifications unavailable */ });
-
- // Bring the user's own avatar to life in the topbar.
- mountWalkAvatar(shellEl);
}).catch(() => { /* network blip — chip stays "Loading…" */ });
}
@@ -341,333 +318,6 @@ function closeUserMenu(menu, chip, onOutside, onKey) {
if (onKey) document.removeEventListener('keydown', onKey, true);
}
-// ── Walking avatar (topbar live status) ────────────────────────────────────
-//
-// A compact (~64×80) live walking avatar driven by the signed-in user's own
-// avatar. We render it through the chrome-less /walk-embed route in an iframe
-// (controls=none, autoplay, transparent bg, no orbit). The iframe is only
-// created once the avatar scrolls/exists in the viewport (lazy) so it never
-// taxes a dashboard the user can't see. States: loading → walking | empty |
-// error. A fresh notification makes it wave.
-
-let _walkAvatar = null; // { id, name, handle } once resolved
-
-function mountWalkAvatar(shellEl) {
- const host = shellEl.querySelector('[data-component="walk-avatar"]');
- if (!host || host.dataset.mounted === '1') return;
- host.dataset.mounted = '1';
-
- // Real data: the caller's own avatars. The first (most recent) is their
- // primary; the picker endpoint already returns them newest-first.
- fetch('/api/avatars/mine?limit=1', { credentials: 'include' })
- .then((r) => (r.ok ? r.json() : null))
- .then((data) => {
- const av = data?.avatars?.[0];
- if (!av) {
- renderWalkEmptyState(host);
- return;
- }
- _walkAvatar = {
- id: av.id,
- name: av.name || 'Your avatar',
- handle: av.slug || null,
- };
- renderWalkLiveState(host, _walkAvatar);
- })
- .catch(() => renderWalkErrorState(host));
-}
-
-// Empty: the user hasn't made an avatar yet. A subtle, inviting affordance that
-// links straight into the avatar creator — not a broken frame.
-function renderWalkEmptyState(host) {
- host.dataset.state = 'empty';
- const stage = host.querySelector('[data-slot="walk-stage"]');
- if (stage) stage.innerHTML = '';
- const btn = host.querySelector('[data-action="toggle-walk-menu"]');
- if (!btn) return;
- btn.dataset.action = 'create-avatar';
- btn.setAttribute('aria-label', 'Create your avatar');
- btn.setAttribute('title', 'Create your avatar');
- btn.removeAttribute('aria-haspopup');
- btn.removeAttribute('aria-expanded');
- host.querySelector('[data-slot="walk-stage"]').innerHTML = `
- <svg viewBox="0 0 24 24" width="22" height="22" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <circle cx="12" cy="8" r="3.2"/>
- <path d="M5.5 20a6.5 6.5 0 0113 0"/>
- <path d="M19 4v4M21 6h-4"/>
- </svg>`;
- btn.onclick = () => { location.href = '/create'; };
-}
-
-// Error: avatar lookup failed (network). Offer a retry rather than a dead frame.
-function renderWalkErrorState(host) {
- host.dataset.state = 'error';
- const btn = host.querySelector('[data-action="toggle-walk-menu"]');
- if (!btn) return;
- btn.dataset.action = 'retry-walk';
- btn.setAttribute('aria-label', 'Avatar failed to load — retry');
- btn.setAttribute('title', 'Retry');
- btn.removeAttribute('aria-haspopup');
- btn.removeAttribute('aria-expanded');
- host.querySelector('[data-slot="walk-stage"]').innerHTML = `
- <svg viewBox="0 0 24 24" width="20" height="20" fill="none" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round" aria-hidden="true">
- <path d="M20 11A8 8 0 105 5.5"/><path d="M4 4v4h4"/>
- </svg>`;
- btn.onclick = () => {
- host.dataset.state = 'loading';
- host.dataset.mounted = '0';
- btn.onclick = null;
- btn.dataset.action = 'toggle-walk-menu';
- host.querySelector('[data-slot="walk-stage"]').innerHTML = '<span class="dn-walk-avatar-skel"></span>';
- const shellEl = host.closest('.dn-shell') || document;
- mountWalkAvatar(shellEl);
- };
-}
-
-// Live: lazily mount the /walk-embed iframe of the user's avatar, walking.
-function renderWalkLiveState(host, avatar) {
- host.dataset.state = 'live';
- const btn = host.querySelector('[data-action="toggle-walk-menu"]');
- if (btn) {
- btn.setAttribute('aria-label', `${avatar.name} — open avatar menu`);
- btn.setAttribute('title', avatar.name);
- btn.setAttribute('aria-haspopup', 'menu');
- btn.setAttribute('aria-expanded', 'false');
- }
-
- const mountFrame = () => {
- if (host.dataset.framed === '1') return;
- host.dataset.framed = '1';
- const stage = host.querySelector('[data-slot="walk-stage"]');
- if (!stage) return;
- const qs = new URLSearchParams({
- avatar: avatar.id,
- controls: 'none',
- autoplay: 'true',
- bg: 'transparent',
- orbit: 'false',
- ground: 'false',
- });
- const frame = document.createElement('iframe');
- frame.className = 'dn-walk-avatar-frame';
- frame.title = `${avatar.name}, walking`;
- frame.setAttribute('aria-hidden', 'true');
- frame.setAttribute('tabindex', '-1');
- frame.loading = 'lazy';
- frame.allowTransparency = 'true';
- frame.src = `/walk-embed?${qs.toString()}`;
-
- // Reveal only once the embed reports the avatar is loaded AND animating.
- // The iframe's DOM `load` event fires far earlier — the document is parsed
- // before the GLB and walk clips resolve (those load async). Revealing on it
- // exposed the bare frame mid-load: a white pre-paint flash, then the model
- // frozen in its bind-pose T-pose, before the walk clip applied. We instead
- // hold the dark skeleton until the embed posts `walk:ready` over the
- // three-walk channel, which fires only after it crossfades into motion.
- let revealed = false;
- const reveal = () => {
- if (revealed) return;
- revealed = true;
- host.dataset.ready = '1';
- frame.classList.add('is-ready');
- const skel = stage.querySelector('.dn-walk-avatar-skel');
- if (skel) skel.remove();
- window.removeEventListener('message', onReady);
- clearTimeout(failsafe);
- };
- function onReady(e) {
- if (e.source !== frame.contentWindow) return;
- const d = e.data;
- if (d && d.type === 'walk:ready') reveal();
- }
- window.addEventListener('message', onReady);
- // `walk:ready` is a one-shot — a host that finishes wiring after the embed
- // already loaded would miss it. Ping on DOM load so the embed re-emits it.
- frame.addEventListener('load', () => {
- try {
- frame.contentWindow?.postMessage({ channel: 'three-walk', v: 1, type: 'walk:ping' }, '*');
- } catch (_) {}
- });
- // Failsafe: never strand the skeleton if the ready signal is lost (embed
- // error, blocked message). Reveal anyway after a generous window.
- const failsafe = setTimeout(reveal, 8000);
-
- stage.appendChild(frame);
- };
-
- // Lazy: only build the iframe when the topbar avatar is on-screen. The
- // dashboard topbar is essentially always visible, but this keeps the
- // embed off the critical path and respects reduced-data scenarios.
- if ('IntersectionObserver' in window) {
- const io = new IntersectionObserver((entries, obs) => {
- if (entries.some((e) => e.isIntersecting)) {
- obs.disconnect();
- mountFrame();
- }
- }, { rootMargin: '120px' });
- io.observe(host);
- } else {
- mountFrame();
- }
-}
-
-// Tell the embedded avatar to play a one-shot gesture (e.g. wave on a fresh
-// notification). Waits for the iframe to exist; the embed ignores commands it
-// can't honor, so this is safe to fire optimistically.
-function signalWalkAvatar(shellEl, gesture) {
- const host = shellEl.querySelector('[data-component="walk-avatar"]');
- const frame = host?.querySelector('iframe.dn-walk-avatar-frame');
- if (!frame?.contentWindow) {
- // Frame not built yet — retry shortly, but give up after a few tries
- // so we never leave a dangling timer.
- let tries = 0;
- const t = setInterval(() => {
- tries += 1;
- const f = shellEl.querySelector('iframe.dn-walk-avatar-frame');
- if (f?.contentWindow) {
- clearInterval(t);
- f.contentWindow.postMessage({ type: 'walk:gesture', gesture }, '*');
- } else if (tries >= 10) {
- clearInterval(t);
- }
- }, 600);
- return;
- }
- frame.contentWindow.postMessage({ type: 'walk:gesture', gesture }, '*');
-}
-
-// Dropdown: name + handle, Open Walk, Edit Avatar.
-function toggleWalkMenu(btn) {
- const existing = document.querySelector('[data-topbar-walk-menu]');
- if (existing) { closeWalkMenu(existing, btn); return; }
- if (!_walkAvatar) return;
-
- const rect = btn.getBoundingClientRect();
- btn.setAttribute('aria-expanded', 'true');
- const menu = document.createElement('div');
- menu.setAttribute('data-topbar-walk-menu', '');
- menu.setAttribute('role', 'menu');
- menu.setAttribute('aria-label', 'Avatar menu');
- menu.style.cssText = `
- position:fixed;top:${rect.bottom + 8}px;right:${window.innerWidth - rect.right}px;
- min-width:220px;
- background:rgba(18,20,28,0.97);border:1px solid var(--nxt-stroke-strong);
- border-radius:12px;box-shadow:0 16px 48px rgba(0,0,0,0.6);
- backdrop-filter:blur(20px);z-index:2000;overflow:hidden;
- `;
- const handle = _walkAvatar.handle ? `@${_walkAvatar.handle}` : '';
- menu.innerHTML = `
- <div style="padding:14px 16px;border-bottom:1px solid var(--nxt-stroke)">
- <div style="font-size:14px;font-weight:600;color:var(--nxt-ink)">${esc(_walkAvatar.name)}</div>
- ${handle ? `<div style="font-size:12px;color:var(--nxt-ink-dim);margin-top:2px">${esc(handle)}</div>` : ''}
- </div>
- <div style="padding:6px 0">
- <a href="/walk/app?avatar=${encodeURIComponent(_walkAvatar.id)}" class="dn-user-menu-item" role="menuitem">Open Walk</a>
- <a href="/avatars/${encodeURIComponent(_walkAvatar.id)}/edit" class="dn-user-menu-item" role="menuitem">Edit Avatar</a>
- </div>
- `;
-
- injectMenuStyles();
- document.body.appendChild(menu);
- requestAnimationFrame(() => menu.querySelector('[role="menuitem"]')?.focus());
-
- const closeOnOutside = (e) => {
- if (!menu.contains(e.target) && !btn.contains(e.target)) {
- closeWalkMenu(menu, btn, closeOnOutside, onKey);
- }
- };
- const onKey = (e) => {
- const items = [...menu.querySelectorAll('[role="menuitem"]')];
- if (e.key === 'Escape') {
- e.stopPropagation();
- closeWalkMenu(menu, btn, closeOnOutside, onKey);
- btn.focus();
- } else if (e.key === 'ArrowDown' || e.key === 'ArrowUp') {
- e.preventDefault();
- const idx = items.indexOf(document.activeElement);
- const next = e.key === 'ArrowDown'
- ? (idx + 1) % items.length
- : (idx - 1 + items.length) % items.length;
- items[next]?.focus();
- }
- };
- setTimeout(() => {
- document.addEventListener('click', closeOnOutside, true);
- document.addEventListener('keydown', onKey, true);
- }, 0);
-}
-
-function closeWalkMenu(menu, btn, onOutside, onKey) {
- menu.remove();
- if (btn) btn.setAttribute('aria-expanded', 'false');
- if (onOutside) document.removeEventListener('click', onOutside, true);
- if (onKey) document.removeEventListener('keydown', onKey, true);
-}
-
-let _topbarStylesInjected = false;
-function injectTopbarStyles() {
- if (_topbarStylesInjected) return;
- _topbarStylesInjected = true;
- const style = document.createElement('style');
- style.textContent = `
- .dn-walk-avatar { display:flex; align-items:center; }
- .dn-walk-avatar-btn {
- display:inline-flex; align-items:center; justify-content:center;
- width:64px; height:80px; padding:0; margin:0;
- background:var(--nxt-surface-1, rgba(255,255,255,0.03));
- border:1px solid var(--nxt-stroke); border-radius:14px;
- color:var(--nxt-ink-dim); cursor:pointer;
- overflow:hidden; position:relative;
- transition:border-color 140ms ease, background 140ms ease, transform 120ms ease;
- }
- .dn-walk-avatar-btn:hover { border-color:var(--nxt-stroke-strong); background:rgba(255,255,255,0.05); color:var(--nxt-ink); }
- .dn-walk-avatar-btn:active { transform:scale(0.97); }
- .dn-walk-avatar-btn:focus-visible {
- outline:2px solid var(--nxt-accent, #fff); outline-offset:2px;
- }
- .dn-walk-avatar-stage {
- display:flex; align-items:center; justify-content:center;
- width:100%; height:100%; position:relative;
- }
- .dn-walk-avatar-frame {
- width:100%; height:100%; border:0; display:block;
- background:transparent; pointer-events:none;
- opacity:0; transition:opacity 240ms ease;
- }
- .dn-walk-avatar-frame.is-ready { opacity:1; }
- .dn-walk-avatar-skel {
- position:absolute; inset:8px; border-radius:10px;
- background:linear-gradient(100deg,
- rgba(255,255,255,0.04) 30%,
- rgba(255,255,255,0.09) 50%,
- rgba(255,255,255,0.04) 70%);
- background-size:200% 100%;
- animation:dn-walk-skel 1.3s ease-in-out infinite;
- }
- .dn-walk-avatar[data-state="empty"] .dn-walk-avatar-btn,
- .dn-walk-avatar[data-state="error"] .dn-walk-avatar-btn {
- border-style:dashed;
- }
- @keyframes dn-walk-skel {
- 0% { background-position:200% 0; }
- 100% { background-position:-200% 0; }
- }
- /* Narrow viewports: shrink, then hide before the topbar crowds. */
- @media (max-width: 860px) {
- .dn-walk-avatar-btn { width:52px; height:64px; }
- }
- @media (max-width: 640px) {
- .dn-walk-avatar { display:none; }
- }
- @media (prefers-reduced-motion: reduce) {
- .dn-walk-avatar-skel { animation:none; }
- .dn-walk-avatar-frame { transition:none; }
- .dn-walk-avatar-btn:active { transform:none; }
- }
- `;
- document.head.appendChild(style);
-}
-
// ── Helpers ────────────────────────────────────────────────────────────────
function timeAgo(iso) {
diff --git a/src/leaderboard.css b/src/leaderboard.css
index 828109833..13c970a61 100644
--- a/src/leaderboard.css
+++ b/src/leaderboard.css
@@ -71,26 +71,35 @@
}
.lb-sub strong { color: var(--ink-bright); font-weight: var(--weight-semibold); }
+/* Six live stats read as one balanced bar (6-up → 3-up → 2-up) — never the
+ lopsided 4+2 the old 4-column grid produced with six cells. */
.lb-summary {
display: grid;
- grid-template-columns: repeat(4, minmax(0, 1fr));
- gap: var(--space-sm);
+ grid-template-columns: repeat(6, minmax(0, 1fr));
+ gap: var(--space-xs);
margin: var(--space-lg) auto 0;
- max-width: 760px;
+ max-width: 1080px;
}
.lb-summary-cell {
border: 1px solid var(--stroke);
background: var(--surface-1);
border-radius: var(--radius-md);
- padding: var(--space-sm);
+ padding: var(--space-sm) var(--space-xs);
text-align: center;
+ min-width: 0;
+ transition: border-color var(--duration-fast) var(--ease-standard),
+ background var(--duration-fast) var(--ease-standard);
}
+.lb-summary-cell:hover { border-color: var(--stroke-strong); background: var(--surface-2); }
.lb-summary-cell dt {
font-size: var(--text-2xs);
text-transform: uppercase;
- letter-spacing: 0.06em;
+ letter-spacing: 0.05em;
color: var(--ink-faint);
margin-bottom: var(--space-3xs);
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
}
.lb-summary-cell dd {
margin: 0;
@@ -98,6 +107,7 @@
font-size: var(--text-lg);
font-weight: var(--weight-semibold);
font-variant-numeric: tabular-nums;
+ line-height: 1.15;
}
/* ---- Controls ---- */
@@ -141,7 +151,12 @@
.lb-seg-btn:hover { color: var(--ink-bright); }
.lb-seg-btn.is-active {
background: var(--accent);
- color: var(--btn-primary-fg);
+ /* This page loads tokens.css but not buttons.css/style.css, so --btn-primary-fg
+ is undefined in dark mode; the #0a0a0a fallback keeps active-tab ink legible on
+ the white accent. Light theme sets --btn-primary-fg:#fff (tokens.css) → white ink. */
+ color: var(--btn-primary-fg, #0a0a0a);
+ font-weight: var(--weight-semibold);
+ box-shadow: var(--shadow-1);
}
.lb-select-wrap { display: inline-flex; align-items: center; gap: var(--space-2xs); }
.lb-select-label {
@@ -198,11 +213,10 @@
/* ---- How-to disclosure ---- */
.lb-howto {
appearance: none;
- width: 100%;
- display: flex;
+ display: inline-flex;
align-items: center;
- justify-content: space-between;
- gap: var(--space-sm);
+ justify-content: flex-start;
+ gap: var(--space-2xs);
background: transparent;
border: 0;
color: var(--ink-faint);
@@ -211,8 +225,14 @@
padding: var(--space-2xs) 0;
cursor: pointer;
margin-bottom: var(--space-xs);
+ transition: color var(--duration-fast) var(--ease-standard);
+}
+.lb-howto:hover { color: var(--ink-bright); }
+.lb-howto:focus-visible {
+ outline: var(--focus-ring-width) solid var(--focus-ring-color);
+ outline-offset: var(--focus-ring-offset);
+ border-radius: var(--radius-sm);
}
-.lb-howto:hover { color: var(--ink-dim); }
.lb-howto-chev { transition: transform var(--duration-fast) var(--ease-standard); }
.lb-howto[aria-expanded='true'] .lb-howto-chev { transform: rotate(180deg); }
.lb-howto-body {
@@ -326,17 +346,21 @@
background: var(--surface-3);
flex-shrink: 0;
}
-.lb-trader-meta { min-width: 0; }
+.lb-trader-meta { min-width: 0; display: block; }
.lb-trader-name {
display: flex;
align-items: center;
gap: var(--space-2xs);
+ min-width: 0;
font-weight: var(--weight-semibold);
font-size: var(--text-sm);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
+/* The name text truncates independently of the trailing verified badge (the badge
+ must never be pushed off — a flex text node alone can't ellipsis). */
+.lb-trader-nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-verified {
display: inline-flex;
align-items: center;
@@ -345,6 +369,7 @@
}
.lb-verified svg { width: 14px; height: 14px; }
.lb-trader-sub {
+ display: block;
font-family: var(--font-mono);
font-size: var(--text-2xs);
color: var(--ink-faint);
@@ -364,12 +389,22 @@
font-size: var(--text-lg);
font-variant-numeric: tabular-nums;
}
-.lb-score-bar {
+/* Score meter: a full-width track under the number with a fill proportional to the
+ 0–100 Trader Score, so the bar reads as a gauge instead of a stray underline. */
+.lb-score-track {
display: block;
height: 3px;
border-radius: var(--radius-pill);
- margin-top: 3px;
+ margin-top: 4px;
+ background: var(--surface-3);
+ overflow: hidden;
+}
+.lb-score-bar {
+ display: block;
+ height: 100%;
+ border-radius: var(--radius-pill);
background: linear-gradient(90deg, var(--ink-faint), var(--accent));
+ transition: width var(--duration-base) var(--ease-emphasized);
}
.lb-num { font-variant-numeric: tabular-nums; text-align: right; font-size: var(--text-sm); }
@@ -471,7 +506,9 @@
}
.lb-btn:hover { transform: translateY(-1px); border-color: var(--stroke-strong); }
.lb-btn:active { transform: translateY(0); }
-.lb-btn-primary { background: var(--accent); color: var(--btn-primary-fg); border-color: transparent; }
+/* Fallback ink for the white-fill primary CTA — see note on .lb-seg-btn.is-active. */
+.lb-btn-primary { background: var(--accent); color: var(--btn-primary-fg, #0a0a0a); border-color: transparent; }
+.lb-btn-primary:hover { border-color: transparent; }
.lb-btn:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }
/* ---- Oracle Conviction Rankings ---- */
@@ -533,7 +570,7 @@
}
.lb-oracle-board-head {
display: grid;
- grid-template-columns: 36px minmax(0, 2.4fr) 0.9fr 0.8fr 1.1fr 0.8fr 80px;
+ grid-template-columns: 36px minmax(0, 2.4fr) 0.9fr 0.8fr 1.1fr 0.8fr 104px;
align-items: center;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-md);
@@ -547,7 +584,7 @@
.lb-oracle-rows { display: flex; flex-direction: column; }
.lb-oracle-row {
display: grid;
- grid-template-columns: 36px minmax(0, 2.4fr) 0.9fr 0.8fr 1.1fr 0.8fr 80px;
+ grid-template-columns: 36px minmax(0, 2.4fr) 0.9fr 0.8fr 1.1fr 0.8fr 104px;
align-items: center;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-md);
@@ -563,6 +600,11 @@
.lb-oracle-row[data-rank='2'] .lb-rank { color: #d4d4d8; }
.lb-oracle-row[data-rank='3'] .lb-rank { color: #d8a06a; }
.lb-oracle-row .lb-col-num { text-align: right; font-variant-numeric: tabular-nums; font: 600 13.5px/1 var(--font-mono); }
+/* W/L record reads as a quiet secondary stat, not another bold number. */
+.lb-oracle-row .lb-oracle-record { font-weight: 500; font-size: var(--text-sm); color: var(--ink-dim); }
+/* Single primary action per row (the agent name already links to the profile). */
+.lb-oracle-act { text-align: right; }
+.lb-oracle-copy { font-size: var(--text-2xs); font-weight: var(--weight-semibold); padding: var(--space-2xs) var(--space-sm); white-space: nowrap; }
.lb-oracle-empty {
padding: var(--space-xl) var(--space-md);
text-align: center;
@@ -580,30 +622,55 @@
}
/* ---- Responsive ---- */
+/* The action pill's word ("Track record" / "Account") collapses to a bare arrow on
+ narrow screens so it never clips inside the tight action column. */
+.lb-view-full { display: inline; }
+
@media (max-width: 880px) {
.lb-hide-md { display: none !important; }
+ .lb-summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lb-board-head,
.lb-row { grid-template-columns: 30px minmax(0, 2.2fr) 0.9fr 1.1fr 0.9fr 0.8fr 0.8fr 88px; }
.lb-board.is-live .lb-board-head,
.lb-board.is-live .lb-row { grid-template-columns: 30px minmax(0, 2.2fr) 1.1fr 0.9fr 0.8fr 88px; }
.lb-oracle-board-head,
- .lb-oracle-row { grid-template-columns: 30px minmax(0, 2.2fr) 0.9fr 0.8fr 1.1fr 0.8fr 72px; }
+ .lb-oracle-row { grid-template-columns: 30px minmax(0, 2.2fr) 0.9fr 0.8fr 1.1fr 0.8fr 100px; }
}
@media (max-width: 620px) {
.lb-shell { padding: var(--space-lg) var(--space-sm) var(--space-xl); }
.lb-title { font-size: var(--text-2xl); }
.lb-summary { grid-template-columns: repeat(2, 1fr); }
.lb-hide-sm, .lb-winrate { display: none !important; }
- .lb-controls { justify-content: center; }
+
+ /* Controls stack: full-width time window on its own row, then rank-by (select
+ grows to fill), then verified + network sharing the last row. No cramped wrap. */
+ .lb-controls { flex-direction: column; align-items: stretch; gap: var(--space-sm); }
+ #lb-window { width: 100%; }
+ #lb-window .lb-seg-btn { flex: 1 1 0; text-align: center; padding-left: var(--space-2xs); padding-right: var(--space-2xs); }
+ .lb-control-group { width: 100%; justify-content: space-between; row-gap: var(--space-sm); }
+ .lb-select-wrap { flex: 1 1 100%; justify-content: space-between; }
+ .lb-select { flex: 1 1 auto; min-width: 0; }
+
.lb-board-head,
- .lb-row { grid-template-columns: 26px minmax(0, 1.7fr) 0.8fr 1fr 70px; }
+ .lb-row { grid-template-columns: 26px minmax(0, 1.7fr) 0.72fr 1fr 44px; }
/* Win-rate column is hidden below 620px, so the live grid drops to 5 columns. */
.lb-board.is-live .lb-board-head,
- .lb-board.is-live .lb-row { grid-template-columns: 26px minmax(0, 1.7fr) 1fr 0.8fr 70px; }
+ .lb-board.is-live .lb-row { grid-template-columns: 26px minmax(0, 1.7fr) 1fr 0.8fr 44px; }
+ .lb-board-head, .lb-row { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.lb-avatar { width: 32px; height: 32px; }
+ .lb-score { font-size: var(--text-md); }
+ /* Collapse the action pill to an arrow-only chip so it fits the narrow column. */
+ .lb-view-full { display: none; }
+ .lb-view { padding: var(--space-3xs) var(--space-xs); gap: 0; }
+
.lb-oracle-board-head,
- .lb-oracle-row { grid-template-columns: 26px minmax(0, 1.7fr) 0.9fr 68px; }
+ .lb-oracle-row { grid-template-columns: 26px minmax(0, 1.7fr) 0.9fr 84px; }
.lb-oracle-head { flex-direction: column; align-items: flex-start; gap: var(--space-xs); padding-bottom: var(--space-xs); }
+
+ /* Full-width, stacked CTA buttons — larger, thumb-friendly tap targets. */
+ .lb-cta-inner { padding: var(--space-lg); }
+ .lb-cta-row { flex-direction: column; align-items: stretch; }
+ .lb-cta-row .lb-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
diff --git a/src/leaderboard.js b/src/leaderboard.js
index c0c07f4df..011228a35 100644
--- a/src/leaderboard.js
+++ b/src/leaderboard.js
@@ -105,20 +105,20 @@ function rowMarkup(r) {
<span class="lb-trader">
<img class="lb-avatar" src="${escapeHtml(img)}" alt="" loading="lazy" onerror="this.src='${identicon(r.agent_id || r.wallet || '?')}'" />
<span class="lb-trader-meta">
- <span class="lb-trader-name">${escapeHtml(r.agent_name || 'Unnamed agent')}${verifiedBadge(r.verified)}</span>
+ <span class="lb-trader-name"><span class="lb-trader-nm">${escapeHtml(r.agent_name || 'Unnamed agent')}</span>${verifiedBadge(r.verified)}</span>
<span class="lb-trader-sub">${r.wallet ? walletChipHTML(r, { isOwner: false, showPending: false, link: false }) : escapeHtml(shortAddr(r.wallet))} · ${r.unique_coins} coins${r.copiers ? ` · <span class="lb-copiers">${r.copiers} copying</span>` : ''}</span>
</span>
</span>
<span class="lb-num">
<span class="lb-score">${r.score}</span>
- <span class="lb-score-bar" style="width:${scoreBar}%"></span>
+ <span class="lb-score-track"><span class="lb-score-bar" style="width:${scoreBar}%"></span></span>
</span>
<span class="lb-num">${pnlSol}${pnlUsd}</span>
<span class="lb-num lb-winrate">${fmtPct(r.win_rate * 100)}<span class="lb-sub-num">${r.wins}/${r.closed}</span></span>
<span class="lb-num lb-hide-sm"><span class="${pnlClass(r.roi_pct)}">${fmtPct(r.roi_pct, { sign: true })}</span></span>
<span class="lb-num lb-hide-sm">${dd}</span>
<span class="lb-num lb-hide-md">${r.closed}<span class="lb-sub-num">${holdTime(r.avg_hold_seconds)} avg</span></span>
- <span class="lb-col-act"><span class="lb-view">Track record →</span></span>
+ <span class="lb-col-act"><span class="lb-view"><span class="lb-view-full">Track record</span> →</span></span>
</a>`;
}
@@ -178,14 +178,14 @@ function liveRowMarkup(r) {
<span class="lb-trader">
<img class="lb-avatar" src="${escapeHtml(img)}" alt="" loading="lazy" />
<span class="lb-trader-meta">
- <span class="lb-trader-name">${escapeHtml(shortAddr(r.wallet, 6, 6))}</span>
+ <span class="lb-trader-name"><span class="lb-trader-nm">${escapeHtml(shortAddr(r.wallet, 6, 6))}</span></span>
<span class="lb-trader-sub">Solana trader · on-chain account</span>
</span>
</span>
<span class="lb-num">${pnlSol}${pnlUsd}</span>
<span class="lb-num lb-winrate">${fmtPct(r.win_rate * 100)}</span>
<span class="lb-num">${r.trades}</span>
- <span class="lb-col-act"><span class="lb-view">Account →</span></span>
+ <span class="lb-col-act"><span class="lb-view"><span class="lb-view-full">Account</span> →</span></span>
</a>`;
}
@@ -501,9 +501,9 @@ async function loadOracleLeaderboard() {
container.innerHTML = '';
for (const a of agents) {
- const img = a.image_url
- ? `<img class="lb-avatar" src="${escapeHtml(a.image_url)}" alt="" loading="lazy" onerror="this.remove()" />`
- : `<span class="lb-avatar">${identicon(a.agent_id)}</span>`;
+ // identicon() returns a data-URI for an <img src> — it must never be dropped
+ // into element text (that renders the raw "data:image/svg+xml…" string).
+ const img = `<img class="lb-avatar" src="${escapeHtml(a.image_url || identicon(a.agent_id))}" alt="" loading="lazy" onerror="this.src='${identicon(a.agent_id)}'" />`;
const name = escapeHtml(a.name || a.agent_id.slice(0, 8) + '…');
const wr = a.win_rate != null
? `<span class="${a.win_rate >= 60 ? 'lb-pos' : a.win_rate >= 40 ? '' : 'lb-neg'}">${a.win_rate}%</span>`
@@ -526,12 +526,12 @@ async function loadOracleLeaderboard() {
row.setAttribute('aria-label', `Rank ${a.rank}: ${plainName}, ${wrText}`);
row.innerHTML = `
<span class="lb-rank">${a.rank}</span>
- <a class="lb-trader lb-oracle-trader-link" href="${profileHref}">${img}<span class="lb-trader-meta"><span class="lb-trader-name">${name}</span></span></a>
+ <a class="lb-trader lb-oracle-trader-link" href="${profileHref}">${img}<span class="lb-trader-meta"><span class="lb-trader-name"><span class="lb-trader-nm">${name}</span></span></span></a>
<span class="lb-col-num">${wr}</span>
- <span class="lb-col-num lb-neg" style="font-size:12px;color:var(--ink-dim)">${wl}</span>
+ <span class="lb-col-num lb-hide-sm lb-oracle-record">${wl}</span>
<span class="lb-col-num lb-hide-sm">${pnl}</span>
<span class="lb-col-num lb-hide-sm">${roi}</span>
- <span class="lb-col-num"><span class="lb-oracle-actions"><a class="lb-btn" href="${profileHref}" style="font-size:11px;padding:4px 10px" aria-label="Open ${escapeHtml(plainName)} profile">Profile</a><a class="lb-btn lb-btn-primary" href="${traderHref}#tp-copy-panel" style="font-size:11px;padding:4px 11px" aria-label="Copy ${escapeHtml(plainName)}">Copy →</a></span></span>
+ <span class="lb-col-num lb-oracle-act"><a class="lb-btn lb-btn-primary lb-oracle-copy" href="${traderHref}#tp-copy-panel" aria-label="Copy ${escapeHtml(plainName)}">Copy →</a></span>
`;
container.appendChild(row);
}
diff --git a/src/studio/money/money-studio.js b/src/studio/money/money-studio.js
index 98558eb9f..d666ccfcb 100644
--- a/src/studio/money/money-studio.js
+++ b/src/studio/money/money-studio.js
@@ -412,7 +412,7 @@ class MoneyStudio {
</div>
${
skills.length
- ? `<ul class="mny-price-list">${skills.map((id) => this._priceRow(id)).join('')}</ul>`
+ ? `${this._pricingSummary(skills)}<ul class="mny-price-list">${skills.map((id) => this._priceRow(id)).join('')}</ul>`
: `<div class="mny-inline-empty">
<p>No sellable skills enabled yet.</p>
<button class="studio-btn studio-btn-ghost studio-action" data-action="go-skills">Add skills →</button>
@@ -421,11 +421,31 @@ class MoneyStudio {
</section>`;
}
+ // At-a-glance state of what this agent sells: how many skills carry a price, the
+ // average, and how many are still free — so the owner sees their storefront.
+ _pricingSummary(skills) {
+ const priced = skills.filter((id) => this.state.prices[id]);
+ const amounts = priced.map((id) => fmtUsdc(this.state.prices[id].amount));
+ const avg = amounts.length ? amounts.reduce((a, b) => a + b, 0) / amounts.length : 0;
+ return `
+ <div class="mny-price-summary">
+ <div class="mny-price-stat"><b>${priced.length}<span class="mny-price-stat-of">/${skills.length}</span></b><span>priced</span></div>
+ <div class="mny-price-stat"><b>${amounts.length ? '$' + avg.toFixed(2) : '—'}</b><span>avg / call</span></div>
+ <div class="mny-price-stat"><b>${skills.length - priced.length}</b><span>free</span></div>
+ </div>`;
+ }
+
_priceRow(id) {
const meta = skillMeta(id);
const p = this.state.prices[id];
const value = p ? fmtUsdc(p.amount) : '';
const active = !!p;
+ // Common price points so setting a fair per-call price is one tap, not a
+ // guess. The chip highlights when it matches the current saved price.
+ const quick = [0.01, 0.1, 1];
+ const chips = quick.map((amt) =>
+ `<button class="mny-price-chip ${active && Math.abs(fmtUsdc(p.amount) - amt) < 1e-9 ? 'is-on' : ''}" data-action="quick-price" data-skill="${esc(id)}" data-amt="${amt}" title="Set $${amt.toFixed(2)} per call">$${amt < 1 ? amt.toFixed(2) : amt.toFixed(0)}</button>`
+ ).join('');
return `
<li class="mny-price-row ${active ? 'is-priced' : ''}" data-skill="${esc(id)}">
<div class="mny-price-meta">
@@ -435,16 +455,47 @@ class MoneyStudio {
<span class="mny-price-desc">${esc(meta.desc)}</span>
</div>
</div>
- <div class="mny-price-input">
- <span class="mny-price-cur">$</span>
- <input type="number" inputmode="decimal" min="0" step="0.01" value="${value}"
- placeholder="0.00" aria-label="Price for ${esc(meta.name)} in USDC" data-price-input />
- <span class="mny-price-unit">/call</span>
- <button class="studio-btn studio-btn-ghost studio-action mny-price-save" data-action="save-price" data-skill="${esc(id)}">Save</button>
+ <div class="mny-price-controls">
+ <div class="mny-price-quick" role="group" aria-label="Quick price for ${esc(meta.name)}">${chips}<button class="mny-price-chip mny-price-chip-free ${active ? '' : 'is-on'}" data-action="quick-price" data-skill="${esc(id)}" data-amt="0" title="Make this skill free">Free</button></div>
+ <div class="mny-price-input">
+ <span class="mny-price-cur">$</span>
+ <input type="number" inputmode="decimal" min="0" step="0.01" value="${value}"
+ placeholder="0.00" aria-label="Price for ${esc(meta.name)} in USDC" data-price-input />
+ <span class="mny-price-unit">/call</span>
+ <button class="studio-btn studio-btn-ghost studio-action mny-price-save" data-action="save-price" data-skill="${esc(id)}">Save</button>
+ </div>
</div>
</li>`;
}
+ // One-tap price: fill the row's input and persist immediately.
+ _quickPrice(skill, amt) {
+ const row = this.el.querySelector(`.mny-price-row[data-skill="${CSS.escape(skill)}"]`);
+ const input = row?.querySelector('[data-price-input]');
+ if (input) input.value = Number(amt) > 0 ? Number(amt).toFixed(2) : '0';
+ this._savePrice(skill);
+ }
+
+ // After a save, refresh only the summary counts and the saved row's quick-price
+ // chip highlights — never sibling rows' inputs, so an unsaved edit elsewhere
+ // survives.
+ _refreshPricingChrome(skill, usd) {
+ const skills = (this.studio.agent?.skills || []).filter(isSellable);
+ const summary = this.el.querySelector('.mny-price-summary');
+ if (summary) {
+ const tmp = document.createElement('div');
+ tmp.innerHTML = this._pricingSummary(skills).trim();
+ const next = tmp.firstElementChild;
+ if (next) summary.replaceWith(next);
+ }
+ const row = this.el.querySelector(`.mny-price-row[data-skill="${CSS.escape(skill)}"]`);
+ row?.querySelectorAll('.mny-price-chip').forEach((chip) => {
+ const amt = Number(chip.dataset.amt);
+ const on = amt === 0 ? !(usd > 0) : usd > 0 && Math.abs(usd - amt) < 1e-9;
+ chip.classList.toggle('is-on', on);
+ });
+ }
+
// ── Earnings ──────────────────────────────────────────────────────────────
_earningsSection() {
@@ -536,6 +587,7 @@ class MoneyStudio {
if (a === 'refresh') return this._refreshWallet();
if (a === 'copy') return this._copy(btn.dataset.copy);
if (a === 'save-price') return this._savePrice(btn.dataset.skill);
+ if (a === 'quick-price') return this._quickPrice(btn.dataset.skill, btn.dataset.amt);
if (a === 'toggle-withdraw') { const w = this._q('[data-withdraw]'); if (w) w.hidden = !w.hidden; return; }
if (a === 'do-withdraw') return this._withdraw(false);
if (a === 'wd-max') return this._withdraw(true);
@@ -605,6 +657,7 @@ class MoneyStudio {
this.studio.patch({ meta: { studio: { money: { priced: Object.keys(this.state.prices) } } } });
this.studio.emit('money:change', { skill, amount: usd });
row?.classList.toggle('is-priced', usd > 0);
+ this._refreshPricingChrome(skill, usd);
this._toast(usd === 0 ? 'Skill is now free' : `Priced at $${usd.toFixed(2)}/call`);
} catch (err) {
this._toast(err.message || 'Save failed', true);
diff --git a/src/trader.css b/src/trader.css
index f881e7864..89270ab7e 100644
--- a/src/trader.css
+++ b/src/trader.css
@@ -66,16 +66,24 @@
.tp-copiers { color: var(--success); font-weight: var(--weight-semibold); }
.tp-desc { margin-top: var(--space-sm); color: var(--ink-dim); font-size: var(--text-sm); line-height: var(--leading-normal); max-width: 60ch; }
-/* Score gauge */
-.tp-gauge { display: grid; place-items: center; text-align: center; }
-.tp-gauge svg { display: block; }
+/* Score gauge — the numeric score is absolutely centered inside the ring so it
+ stays put at any ring size, instead of being pulled over it with brittle
+ negative margins that broke as soon as the font or ring size changed. */
+.tp-gauge { display: grid; place-items: center; text-align: center; gap: var(--space-3xs); }
+.tp-gauge-ring { position: relative; display: grid; place-items: center; }
+.tp-gauge-ring svg { display: block; }
.tp-gauge-val {
+ position: absolute;
+ inset: 0;
+ display: grid;
+ place-items: center;
font-family: var(--font-display);
font-size: var(--text-2xl);
font-weight: var(--weight-bold);
font-variant-numeric: tabular-nums;
+ line-height: 1;
}
-.tp-gauge-label { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); margin-top: var(--space-3xs); }
+.tp-gauge-label { font-size: var(--text-2xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); }
/* ---- Window selector + actions ---- */
.tp-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); margin-bottom: var(--space-md); }
@@ -235,74 +243,136 @@
.tp-error h1, .tp-empty h1 { font-family: var(--font-display); font-size: var(--text-xl); margin-bottom: var(--space-2xs); }
.tp-error p, .tp-empty p { color: var(--ink-dim); max-width: 44ch; margin: 0 auto var(--space-md); }
-/* Oracle conviction block */
+/* ---- Oracle conviction + Projected-vs-realized cards ----
+ Both read as titled analytic cards that share the vocabulary of .tp-curve-wrap
+ and .tp-metric — surface-1 fill, hairline-divided header, faint uppercase
+ eyebrow, tabular mono figures. Authored earlier against a stray token set
+ (--mono / --sans / --pos) that only exists on IBM surfaces, so on the default
+ dark theme they fell back to serif at the browser's default size. Everything
+ here now references the canonical primitives, so they match the rest of the
+ page in both themes. */
.tp-oracle-block {
- margin: 20px 0;
+ margin: 0 0 var(--space-md);
border: 1px solid var(--stroke);
border-radius: var(--radius-lg);
overflow: hidden;
- background: color-mix(in srgb, var(--accent, #7c83ff) 4%, var(--bg-1));
+ background: var(--surface-1);
}
.tp-oracle-head {
display: flex;
align-items: center;
justify-content: space-between;
- padding: 12px 16px;
+ gap: var(--space-sm);
+ padding: var(--space-sm) var(--space-md);
border-bottom: 1px solid var(--stroke);
}
.tp-oracle-label {
- font: 700 11px/1 var(--mono);
+ font-family: var(--font-body);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-semibold);
text-transform: uppercase;
- letter-spacing: .08em;
- color: var(--accent, #7c83ff);
+ letter-spacing: 0.06em;
+ color: var(--ink-faint);
}
-.tp-oracle-link { font-size: 12px; color: var(--ink-dim); text-decoration: none; }
-.tp-oracle-link:hover { color: var(--ink); }
+.tp-oracle-actions { display: flex; align-items: center; gap: var(--space-sm); }
+.tp-oracle-link {
+ font-size: var(--text-xs);
+ color: var(--ink-dim);
+ text-decoration: none;
+ white-space: nowrap;
+ transition: color var(--duration-fast) var(--ease-standard);
+}
+.tp-oracle-link:hover { color: var(--ink-bright); }
+/* Small primary CTA sized for the card header (e.g. "Copy trades →"). */
+.tp-oracle-cta { padding: var(--space-3xs) var(--space-sm); font-size: var(--text-xs); border-radius: var(--radius-sm); }
+
+/* Stat strip — soft filled chips in an auto-fit grid. Chips (not a seamless
+ divided strip) so an odd KPI count that wraps never leaves a differently-tinted
+ empty cell in the last row; trailing space is just the card fill. Echoes the
+ surface scale of the .tp-metric grid above it. */
.tp-oracle-kpis {
display: grid;
- grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
- gap: 0;
+ grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
+ gap: var(--space-3xs);
+ padding: var(--space-sm) var(--space-md) var(--space-md);
}
.tp-oracle-kpi {
- padding: 12px 14px;
- border-right: 1px solid var(--stroke);
- border-bottom: 1px solid var(--stroke);
+ padding: var(--space-sm);
+ border-radius: var(--radius-md);
+ background: var(--surface-2);
}
-.tp-oracle-kpi:nth-child(n + 999) { border-right: none; }
.tp-oracle-kpi span {
- font: 600 10px/1 var(--mono);
+ display: block;
+ font-family: var(--font-body);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-medium);
text-transform: uppercase;
- letter-spacing: .05em;
+ letter-spacing: 0.05em;
color: var(--ink-faint);
- display: block;
- margin-bottom: 6px;
+ margin-bottom: var(--space-3xs);
+}
+.tp-oracle-kpi b {
+ font-family: var(--font-mono);
+ font-size: var(--text-md);
+ font-weight: var(--weight-semibold);
+ font-variant-numeric: tabular-nums;
+}
+.tp-oracle-note {
+ font-size: var(--text-2xs);
+ line-height: var(--leading-normal);
+ color: var(--ink-faint);
+ margin: 0;
+ padding: var(--space-sm) var(--space-md);
+ border-top: 1px solid var(--stroke);
}
-.tp-oracle-kpi b { font: 700 15px/1 var(--mono); }
-.tp-oracle-note { font-size: 11.5px; color: var(--ink-faint); margin: 0; padding: 10px 16px; }
/* Projected-vs-realized */
.tp-proj-conf {
- font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em;
- padding: 4px 9px; border-radius: 999px; border: 1px solid currentColor;
+ font-family: var(--font-body);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-semibold);
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ padding: 3px var(--space-2xs);
+ border-radius: var(--radius-pill);
+ border: 1px solid currentColor;
+ white-space: nowrap;
}
-.tp-proj-high { color: var(--pos, #4ade80); }
-.tp-proj-medium { color: var(--warn, #fbbf24); }
-.tp-proj-low { color: var(--ink-dim, #888); }
+.tp-proj-high { color: var(--success); }
+.tp-proj-medium { color: var(--warn); }
+.tp-proj-low { color: var(--ink-dim); }
.tp-proj-grid { display: flex; flex-direction: column; }
.tp-proj-row {
- display: grid; grid-template-columns: 1fr 1fr 1fr; align-items: center;
- gap: 8px; padding: 11px 16px; border-bottom: 1px solid var(--stroke);
+ display: grid;
+ grid-template-columns: minmax(0, 1.4fr) 1fr 1fr;
+ align-items: center;
+ gap: var(--space-sm);
+ padding: var(--space-sm) var(--space-md);
+ border-bottom: 1px solid var(--hairline);
}
.tp-proj-row:last-child { border-bottom: none; }
-.tp-proj-head { padding-top: 10px; padding-bottom: 10px; }
-.tp-proj-head b { font: 600 10px/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint); }
-.tp-proj-k { font: 600 12px/1.2 var(--sans, inherit); color: var(--ink-dim); }
-.tp-proj-proj, .tp-proj-real { font: 700 14px/1 var(--mono); text-align: right; }
-.tp-proj-proj { color: var(--ink); opacity: .82; }
-.tp-proj-real { color: var(--ink); }
+.tp-proj-head b {
+ font-family: var(--font-body);
+ font-size: var(--text-2xs);
+ font-weight: var(--weight-medium);
+ text-transform: uppercase;
+ letter-spacing: 0.05em;
+ color: var(--ink-faint);
+}
+.tp-proj-k { font-family: var(--font-body); font-size: var(--text-sm); color: var(--ink-dim); }
+.tp-proj-proj, .tp-proj-real {
+ font-family: var(--font-mono);
+ font-size: var(--text-sm);
+ font-weight: var(--weight-semibold);
+ font-variant-numeric: tabular-nums;
+ text-align: right;
+}
+.tp-proj-proj { color: var(--ink-dim); }
+.tp-proj-real { color: var(--ink-bright); }
@media (max-width: 520px) {
- .tp-proj-k { font-size: 11px; }
- .tp-proj-proj, .tp-proj-real { font-size: 12.5px; }
+ .tp-proj-row { gap: var(--space-2xs); padding: var(--space-sm); }
+ .tp-proj-k { font-size: var(--text-xs); }
+ .tp-proj-proj, .tp-proj-real { font-size: var(--text-xs); }
}
/* Toast for copy-link */
@@ -325,12 +395,15 @@
.tp-toast.is-shown { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 760px) {
- .tp-hero { grid-template-columns: auto 1fr; }
+ .tp-hero { grid-template-columns: auto 1fr; gap: var(--space-md); }
+ .tp-name { font-size: var(--text-xl); overflow-wrap: anywhere; }
.tp-gauge { grid-column: 1 / -1; justify-self: start; }
- .tp-copy { grid-template-columns: 1fr; }
- .tp-copy-actions { flex-direction: row; flex-wrap: wrap; }
- .tp-table th:nth-child(4), .tp-table td:nth-child(4),
- .tp-table th:nth-child(5), .tp-table td:nth-child(5) { display: none; }
+ /* Trade tables scroll horizontally instead of dropping columns. The old rule
+ hid columns 4 & 5 for every .tp-table, which on the open-positions table
+ (Coin · Entry · Now · Unrealized · Proof) erased Unrealized and Proof — the
+ two fields that matter most. Scrolling keeps every column on every table. */
+ .tp-panel, .tp-curve-wrap { overflow-x: auto; }
+ .tp-table { min-width: 560px; }
}
@media (prefers-reduced-motion: reduce) {
.tp-panel.is-active, .tp-sk { animation: none; }
diff --git a/src/trader.js b/src/trader.js
index 7e41010ed..5c95fa71c 100644
--- a/src/trader.js
+++ b/src/trader.js
@@ -133,7 +133,7 @@ function metricsGrid(m) {
}
// --- Oracle conviction block -------------------------------------------------
-function oracleBlock(oracle, agentId) {
+function oracleBlock(oracle) {
const pnlStr = oracle.realized_pnl_sol != null
? `<span class="${pnlClass(oracle.realized_pnl_sol)}">${fmtSol(oracle.realized_pnl_sol)}</span>`
: '—';
@@ -147,9 +147,9 @@ function oracleBlock(oracle, agentId) {
<div class="tp-oracle-block">
<div class="tp-oracle-head">
<span class="tp-oracle-label">Oracle conviction</span>
- <div style="display:flex;gap:10px;align-items:center">
+ <div class="tp-oracle-actions">
<a class="tp-oracle-link" href="/oracle" target="_blank" rel="noopener">View live ↗</a>
- <a class="lb-btn lb-btn-primary" href="#tp-copy-panel" style="font-size:11px;padding:4px 12px;border-radius:6px" onclick="document.getElementById('tp-copy-panel')?.scrollIntoView({behavior:'smooth',block:'start'});return false">Copy trades →</a>
+ <a class="lb-btn lb-btn-primary tp-oracle-cta" href="#tp-copy-panel" onclick="document.getElementById('tp-copy-panel')?.scrollIntoView({behavior:'smooth',block:'start'});return false">Copy trades →</a>
</div>
</div>
<div class="tp-oracle-kpis">
@@ -292,9 +292,11 @@ function render(data) {
${a.description ? `<p class="tp-desc">${escapeHtml(a.description)}</p>` : ''}
</div>
<div class="tp-gauge">
- ${gauge(m.score)}
- <div class="tp-gauge-val" style="margin-top:-58px">${m.score}</div>
- <div class="tp-gauge-label" style="margin-top:34px">Trader Score</div>
+ <div class="tp-gauge-ring">
+ ${gauge(m.score)}
+ <div class="tp-gauge-val">${m.score}</div>
+ </div>
+ <div class="tp-gauge-label">Trader Score</div>
</div>
</section>
@@ -310,7 +312,7 @@ function render(data) {
${data.projection ? projectionBlock(data.projection) : ''}
- ${data.oracle ? oracleBlock(data.oracle, a.id) : ''}
+ ${data.oracle ? oracleBlock(data.oracle) : ''}
<div class="tp-curve-wrap">
<div class="tp-curve-head">
@@ -673,9 +675,11 @@ function renderWalletProfile(data) {
${a.blurb ? `<p class="tp-desc">${escapeHtml(a.blurb)}</p>` : ''}
</div>
<div class="tp-gauge">
- ${r ? gauge(r.score, color) : gauge(0)}
- <div class="tp-gauge-val" style="margin-top:-58px;color:${color}">${r ? Math.round(r.score) : '—'}</div>
- <div class="tp-gauge-label" style="margin-top:34px">Smart Score</div>
+ <div class="tp-gauge-ring">
+ ${r ? gauge(r.score, color) : gauge(0)}
+ <div class="tp-gauge-val" style="color:${color}">${r ? Math.round(r.score) : '—'}</div>
+ </div>
+ <div class="tp-gauge-label">Smart Score</div>
</div>
</section>
diff --git a/tests/agent-orchestrate.test.js b/tests/agent-orchestrate.test.js
index f91b450b7..0b64f3722 100644
--- a/tests/agent-orchestrate.test.js
+++ b/tests/agent-orchestrate.test.js
@@ -276,4 +276,42 @@ describe('orchestrateGoal — graph-delta sequencing', () => {
expect(tree.nodes[0].status).toBe('failed');
expect(tree.nodes[0].error).toMatch(/unavailable/);
});
+
+ it('returns a partial tree (not a hang) when the time budget runs out mid-run', async () => {
+ const plan = { subtasks: [
+ { title: 'first', kind: 'delegate', instruction: 'do first' },
+ { title: 'second', kind: 'delegate', instruction: 'do second' },
+ { title: 'third', kind: 'delegate', instruction: 'do third' },
+ ] };
+ const runDelegate = fakeDelegate(plan);
+ // A deadline already in the past forces the loop to skip every child and the
+ // final synthesis turn — the run must still resolve with a truthful tree.
+ const tree = await orchestrateGoal(
+ { ...base, maxUsd: 1, deadlineMs: Date.now() - 1 },
+ { runDelegate, runHire: vi.fn(), makeTaskId: () => 't' },
+ );
+ const children = tree.nodes.filter((n) => n.id !== 'lead');
+ expect(children).toHaveLength(3);
+ // No child ran (planning is the only delegate call), and each is marked
+ // skipped rather than left dangling in 'queued'.
+ expect(children.every((n) => n.status === 'failed')).toBe(true);
+ expect(children.every((n) => /ran out of time/.test(n.error))).toBe(true);
+ expect(runDelegate).toHaveBeenCalledOnce(); // planning only — no node/synthesis turns
+ // The lead resolves done-with-a-partial-note, so the handler returns 200.
+ expect(tree.nodes[0].status).toBe('done');
+ expect(tree.nodes[0].error).toMatch(/partial/);
+ expect(tree.status).toBe('completed_with_errors');
+ });
+
+ it('finishes normally when the deadline is never reached (default = no limit)', async () => {
+ const plan = { subtasks: [{ title: 'only', kind: 'delegate', instruction: 'do it' }] };
+ const runDelegate = fakeDelegate(plan);
+ const tree = await orchestrateGoal(
+ { ...base, maxUsd: 1 },
+ { runDelegate, runHire: vi.fn(), makeTaskId: () => 't' },
+ );
+ expect(tree.nodes.find((n) => n.id === 'n0').status).toBe('done');
+ expect(tree.nodes[0].status).toBe('done');
+ expect(tree.status).toBe('done');
+ });
});
diff --git a/vercel.json b/vercel.json
index 9bafd5ea0..d3a14cb1f 100644
--- a/vercel.json
+++ b/vercel.json
@@ -178,6 +178,26 @@
"api/seed/synthesize.js": {
"maxDuration": 60
},
+ "{api/agent-vanity-grind,api/agent-collab}.js": {
+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
+ "maxDuration": 300
+ },
+ "api/agent-ask.js": {
+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
+ "maxDuration": 120
+ },
+ "api/input-multiview.js": {
+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
+ "maxDuration": 90
+ },
+ "{api/input-photo,api/vision,api/a2f,api/autopilot/proposals,api/ibm/galaxy,api/ibm/vision,api/agent/reflect,api/walk/pilot,api/agent-trade/demo,api/inference/livepeer}.js": {
+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
+ "maxDuration": 60
+ },
+ "api/portfolio/[action].js": {
+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
+ "maxDuration": 60
+ },
"api/**/*.js": {
"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",
"maxDuration": 30
@@ -3015,6 +3035,42 @@
"src": "/api/agents/([^/]+)/registration(/.*)?",
"dest": "/api/agents/[id]"
},
+ {
+ "src": "/api/agents/economy",
+ "dest": "/api/agents/economy"
+ },
+ {
+ "src": "/api/agents/talk",
+ "dest": "/api/agents/talk"
+ },
+ {
+ "src": "/api/agents/nfts",
+ "dest": "/api/agents/nfts"
+ },
+ {
+ "src": "/api/agents/a2a-hire",
+ "dest": "/api/agents/a2a-hire"
+ },
+ {
+ "src": "/api/agents/a2a-call",
+ "dest": "/api/agents/a2a-call"
+ },
+ {
+ "src": "/api/agents/a2a-cart-verify",
+ "dest": "/api/agents/a2a-cart-verify"
+ },
+ {
+ "src": "/api/agents/a2a-mandate",
+ "dest": "/api/agents/a2a-mandate"
+ },
+ {
+ "src": "/api/agents/recovery-inbox",
+ "dest": "/api/agents/recovery-inbox"
+ },
+ {
+ "src": "/api/agents/showrunner",
+ "dest": "/api/agents/showrunner"
+ },
{
"src": "/api/agents/([^/]+)(?:/.*)?",
"dest": "/api/agents/[id]"
diff --git a/x402-launch-media/distribution-kit.md b/x402-launch-media/distribution-kit.md
new file mode 100644
index 000000000..ce3b1cdb2
--- /dev/null
+++ b/x402-launch-media/distribution-kit.md
@@ -0,0 +1,137 @@
+# x402 for VS Code — distribution kit
+
+Everything ready to paste for spreading the extension and three.ws. Featuring
+**$THREE or USDC on Solana** (and USDC on Base). Reuse the media in this folder:
+`x402-hero.png` (cover), `x402-loop.mp4` / `.gif` (demo), `x402-pay-and-call.png`.
+
+**Live listings**
+- VS Code Marketplace: https://marketplace.visualstudio.com/items?itemName=threews.vscode-x402
+- Open VSX (Cursor / Windsurf / VSCodium / Gitpod / Theia): https://open-vsx.org/extension/threews/vscode-x402
+
+---
+
+## Product Hunt
+
+**Name:** x402 for VS Code
+
+**Tagline (≤60):** Pay-per-call APIs in VS Code, in USDC or $THREE on Solana
+
+**Topics:** Developer Tools · Artificial Intelligence · Crypto · Payments · Visual Studio Code
+
+**Description (≤260):**
+> HTTP 402 "Payment Required" sat unused for 25 years. This VS Code extension wires it in: paste any endpoint, decode its 402 challenge, and pay per call in $THREE or USDC on Solana (or USDC on Base). Response and on-chain receipt render inline. No accounts, no API keys.
+
+**Gallery:** `x402-hero.png` first, then the `x402-loop.mp4` demo, then `x402-pay-and-call.png`.
+
+**Maker's first comment:**
+> Hey Product Hunt 👋
+>
+> x402 is the missing payment layer for APIs and agents: a server answers a request with `402 Payment Required` and a machine-readable challenge, the caller signs a stablecoin authorization and retries, the server does the work and returns an on-chain receipt. No accounts, no keys, no subscriptions, just per-call settlement.
+>
+> We brought the whole loop into the editor where people actually wire up paid endpoints:
+> • Inspect any endpoint free (decode its 402, no wallet)
+> • Pay & call in $THREE or USDC on Solana, or USDC on Base, with a per-call spending cap
+> • Browse a bazaar of paid APIs + MCP tools in the sidebar
+> • Scaffold your own paid endpoint in one command
+>
+> It's free and now on both the VS Code Marketplace and Open VSX (so Cursor / Windsurf work too). It's one surface of three.ws, an open-source platform for 3D AI agents that earn, pay, and coordinate, with 38 MCP servers and 20+ npm SDKs. Happy to answer anything about x402, MCP, or the Solana settlement path.
+
+---
+
+## Show HN
+
+**Title (≤80):** Show HN: Pay-per-call APIs in VS Code with x402 (USDC or $THREE on Solana)
+
+**URL:** https://marketplace.visualstudio.com/items?itemName=threews.vscode-x402
+
+**Body:**
+> `402 Payment Required` has been reserved-but-unused in HTTP since ~1999. The x402 protocol finally gives it a job: a server replies 402 with a machine-readable challenge (networks, asset, price, payTo), the client signs a stablecoin authorization and retries with an `X-PAYMENT` header, and the server returns the work plus an on-chain settlement receipt. No accounts, no API keys, no subscriptions.
+>
+> I built a VS Code extension that brings the whole loop into the editor:
+> - Inspect any endpoint: decode its 402 read-only, no wallet
+> - Pay & call: settle on the right rail automatically. Solana uses the real @x402/svm exact scheme to sign an SPL transfer of USDC or $THREE; Base uses a USDC EIP-3009 transferWithAuthorization. Response body + receipt render inline.
+> - A per-call spending cap and modal confirm before anything is signed; keys live only in the OS keychain (VS Code SecretStorage)
+> - Scaffold a paid endpoint (framework-agnostic Node handler) in one command
+>
+> It's free, on the VS Code Marketplace and Open VSX (works in Cursor/Windsurf/VSCodium). It's part of three.ws, an open-source agent platform, and the payment client is also published as @three-ws/x402-fetch (EVM) with @three-ws/x402-mcp for the self-custodial Solana buyer. Happy to go deep on the protocol, the MCP transport, or the signing path.
+
+---
+
+## Dev.to / Hashnode
+
+Paste the full body of `x402-article.md` (everything above the "Launch kit" section). Front-matter:
+
+```yaml
+---
+title: "Pay-per-call APIs, inside your editor"
+published: true
+description: "HTTP 402 sat unused for 25 years. We wired it into VS Code: pay any API per call in $THREE or USDC on Solana, without leaving the editor."
+tags: webdev, ai, solana, opensource
+cover_image: https://three.ws/og/x402-hero.png
+canonical_url: https://three.ws/x402
+---
+```
+
+(Upload `x402-hero.png` and point `cover_image` at wherever it's hosted. Set `canonical_url` to the article's home so Dev.to/Hashnode don't outrank you in search.)
+
+---
+
+## Awesome-list PR entries
+
+Add under the most relevant section of each list, then open a PR.
+
+**`punkpeye/awesome-mcp-servers`** (and `wong2/awesome-mcp-servers`) — under Finance / Payments:
+```markdown
+- [three.ws x402](https://github.com/nirholas/three.ws) — Self-custodial x402 buyer and 38-server MCP suite: find, inspect, and pay any x402 API per call in USDC or $THREE on Solana (and USDC on Base). Real @x402 settlement, no custodial wallet.
+```
+
+**`viatsko/awesome-vscode`** — under Integration or Other:
+```markdown
+- [x402 — Pay-per-call APIs](https://marketplace.visualstudio.com/items?itemName=threews.vscode-x402) — Decode HTTP 402 challenges and pay per call for paid APIs and MCP tools in USDC or $THREE on Solana (or USDC on Base), without leaving the editor. Also on [Open VSX](https://open-vsx.org/extension/threews/vscode-x402).
+```
+
+**`avelino/awesome-go`-style x402 list / `coinbase/x402` ecosystem** — if an `awesome-x402` exists, add; otherwise propose the extension + packages to the x402 ecosystem page:
+```markdown
+- [three.ws](https://three.ws) — x402 for VS Code (buyer + endpoint scaffolder), `@three-ws/x402-fetch` (zero-dep EVM client), `@three-ws/x402-server` (turn any endpoint paid, advertises USDC + $THREE), and `@three-ws/x402-mcp` (self-custodial Solana buyer over MCP).
+```
+
+**`avelino`/Solana ecosystem lists (e.g. `Solana ecosystem` directory, Superteam)** — dev tooling:
+```markdown
+- [three.ws](https://three.ws) — Open-source 3D AI agent platform with native x402 payments; agents pay each other per call in $THREE or USDC. VS Code extension, 38 MCP servers, 20+ npm SDKs.
+```
+
+---
+
+## Other channels — confirmed paths + who can do them
+
+**x402 ecosystem** (https://www.x402.org/ecosystem) — submit via a GitHub issue/PR to
+[`coinbase/x402`](https://github.com/coinbase/x402) (see prior submissions like issue #1180).
+Also add to the curated [`Merit-Systems/awesome-x402`](https://github.com/Merit-Systems/awesome-x402) list.
+Proposed entry:
+```markdown
+- **three.ws** — x402 for VS Code (buyer + endpoint scaffolder, on Marketplace + Open VSX),
+ `@three-ws/x402-fetch` (zero-dep EVM client), `@three-ws/x402-server` (turn any endpoint paid,
+ advertises USDC + $THREE), `@three-ws/x402-mcp` (self-custodial Solana buyer over MCP).
+ Pays in USDC or $THREE on Solana, USDC on Base. https://three.ws
+```
+→ *I can open both PRs via `gh` on your go-ahead (they post publicly to third-party repos).*
+
+**Smithery** (https://smithery.ai) — needs a `smithery.yaml` in each MCP server repo, then you
+connect the repo in Smithery's web app (GitHub OAuth). Template added at
+`packages/x402-mcp/smithery.yaml`. → *I can generate `smithery.yaml` for all 32 servers; the
+final "connect repo" step is web-OAuth (yours).*
+
+**Glama** (https://glama.ai/mcp) and **PulseMCP** (https://www.pulsemcp.com) — auto-crawl the
+official MCP registry, where the 38 servers are already listed, so these largely index
+themselves. Claiming/editing a listing is web-OAuth (yours).
+
+**mcp.so / cursor.directory** — community submissions via GitHub PR or web form. → *I can prepare
+the PR content; opening it is one command once you confirm.*
+
+**JSR** (https://jsr.io) — publish is browser-OAuth or GitHub-Actions OIDC (no static token like
+npm), and the `@three-ws` scope must be created on jsr.io first (web). → *I can make every SDK
+JSR-ready (`jsr.json` exports + green `jsr publish --dry-run`); the final publish is yours.*
+
+**Azure Marketplace** — requires a Microsoft Partner Center account with business/tax/banking
+verification and a commercial-marketplace offer. → *Business-account process, not automatable.
+I can draft the full offer listing (title, plans, categories, description); you submit.*