Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
feat(wallet): add user wallet funding and transaction history features
udvk298e9cfa590c
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex b1138cdbc..195e17acb 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -15,6 +15,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **API endpoints answer HEAD checks instantly and shrug off cache hiccups** — Two reliability fixes for anything that talks to the three.ws API. Lightweight HEAD requests — the kind uptime monitors, link previews, and agent crawlers send to check an endpoint — used to hang on agent routes until the request timed out; they now return immediately, the same as a GET but without the body. And when our cache store has a rough moment, the platform now trips a fast circuit-breaker and serves from local memory instantly instead of making every request wait on a slow cache write. Live feeds and agent pages stay snappy through a cache blip. `[fix, infra]`- **Arm your agent now shows live qualifying coins, proof-of-edge and wallet runway** — The /oracle/arm setup page used to make you configure rules blind. Now it's a live cockpit. A new 'Clearing your bar' panel reads the real conviction stream and shows exactly which coins meet every rule you've set right this second — score, tier, narrative, smart-money count, age and the SOL your agent would commit to each (including conviction-scaled sizing). Tighten or loosen any rule and the list updates instantly, so the abstract config becomes concrete before you ever arm. Under the conviction floor there's now a 30-day proof-of-edge readout — win rate, average peak multiple, 3×+ count and resolved sample size for the exact bar you've chosen, recomputed as you change it. The control bar shows the agent's custodial wallet balance with trades-of-runway left, and the page warns you to fund it before going live if it can't cover your per-trade size. Skeleton loaders replace the old dead dashes while data streams in. (`/oracle/arm`) `[feature, improvement]`- **Avatar Studio avatars come alive — pick from 16 motions** — Your avatar no longer stands frozen in a stiff T-pose while you dress it. Avatar Studio now plays a natural looping idle the moment it loads — proof the avatar is fully rigged — and a new Animate tab lets you drive the rig live: 16 curated motions including Idle, Wave, Cheer, Celebrate, Flex, Dance, Shuffle, Rumba, Thriller, Capoeira and more. Looping motions become your avatar's resting idle, so when you Save, your avatar is captured in the relaxed stance you chose rather than a rigid pose. One-shot moves like Wave and Celebrate play once and settle back to idle automatically. (`/avatar-studio`) `[feature, improvement]`+- **Brain page simplified — pick a personality in one tap** — Building an agent personality no longer requires picking an archetype, clicking Generate, reviewing a six-field card, choosing an agent from a dropdown, and hitting Save. Now it's one tap: pick a vibe (Sharp Analyst, Crypto Native, Casual Builder, and five more), and it applies and saves to your agent instantly. For custom personalities, type a description and press Enter — no separate button. The agent auto-selects from your roster at the top of the page. A slim status bar confirms the active persona with options to test it in the Playground, customize it, or clear it. (`/brain`) `[improvement]`- **Claim Wallet is now a full Wallet Intelligence dashboard** — Paste any Solana address and /claim-wallet now reads its complete pump.fun record like a pro terminal: realized P&L in SOL and live USD, win rate, smart-money score with a gauge, total volume, and a real micro equity-curve sparkline. Below that, a trade-analysis panel (net flow, average buy/sold, hold time, transaction count), a reputation panel (early-entry win rate, dump rate, dumps, coins created), an ROI distribution bar that buckets every closed position from >5× down to rugs, and a category mix of what the wallet actually trades. The centerpiece is a full sortable trade ledger — realized P&L, ROI with an inline bar, bought/sold, buy/sell transaction counts, hold duration and last activity per coin — and every row opens that coin's complete launch page with its live chart, holders and bubblemap. 7D / 30D / All-time toggles, instant filters (hide dust, open positions only, created coins), copy address, share, and a one-click signature-verified claim are all wired. Every number traces to a real on-chain trade — no placeholders. (`/claim-wallet`) `[feature, improvement]`- **Coin Radar upgraded — a live market-pulse banner, smart-money signals, search, sort and a list view** — The Coin Radar now opens with a market-pulse banner that reads the whole room at a glance: launches observed in the last 24 hours (and the last hour), a health-mix bar splitting them into healthy / mixed / risky, the share carrying danger flags, how many a reputation-scored wallet touched, and the graduated-versus-rugged tally from labeled outcomes. Every coin card surfaces signals the engine always measured but never showed — a smart-money badge counting reputation-scored buyers, a news-driven badge when a launch matches a live headline, funding-cluster and graduated/rugged badges, plus market cap, top-10 concentration and net SOL flow. You can now search by name, ticker or mint, sort by newest, quality, smart money, buyers or volume, filter to only smart-money or news-driven coins, and switch between the card grid and a dense list view. The detail drawer gained a Smart money section listing the notable wallets with their win rates, a News-driven source link, and richer signals (coordination, top-5 concentration, funding clusters, buy/sell ratio, net flow, first-seen market cap). Power users get keyboard shortcuts: / to search, g and l for grid and list, r to refresh. Every filter, sort and view is saved in the URL so a radar view is shareable. (`/radar`) `[feature, improvement]`- **Default avatars render again everywhere** — Avatars stopped appearing across the site — the homepage hero, guest avatars, and any embed that falls back to the default character all showed an empty frame. The default avatar was being loaded from an asset host that had gone offline. It now loads from three.ws itself, so default avatars render again on every page and in every embed. `[fix]`diff --git a/api/agents/solana-wallet.js b/api/agents/solana-wallet.jsindex d1ec33534..1660344be 100644--- a/api/agents/solana-wallet.js+++ b/api/agents/solana-wallet.js@@ -417,9 +417,14 @@ async function handleWallet(req, res, id) {};await sql`UPDATE agent_identities SET meta = ${JSON.stringify(meta)}::jsonb WHERE id = ${id}`;} else if (!meta.solana_address) {- const sol = await generateSolanaAgentWallet();- meta = { ...meta, solana_address: sol.address, encrypted_solana_secret: sol.encrypted_secret, solana_wallet_source: 'generated' };- await sql`UPDATE agent_identities SET meta = ${JSON.stringify(meta)}::jsonb WHERE id = ${id}`;+ try {+ const sol = await generateSolanaAgentWallet();+ meta = { ...meta, solana_address: sol.address, encrypted_solana_secret: sol.encrypted_secret, solana_wallet_source: 'generated' };+ await sql`UPDATE agent_identities SET meta = ${JSON.stringify(meta)}::jsonb WHERE id = ${id}`;+ } catch (e) {+ console.error('[agents/solana] wallet generation failed', e);+ return serverError(res, 502, 'provision_failed', e);+ }}}diff --git a/api/user/wallet/fund-agent.js b/api/user/wallet/fund-agent.jsnew file mode 100644index 000000000..bcfa9b42a--- /dev/null+++ b/api/user/wallet/fund-agent.js@@ -0,0 +1,173 @@+// POST /api/user/wallet/fund-agent+// Transfer USDC or SOL from the user's master wallet into one of their agent wallets.+// Body: { agent_id: string, amount: number | "max", asset: "SOL" | "USDC" }++import { getSessionUser } from '../../_lib/auth.js';+import { sql } from '../../_lib/db.js';+import { cors, json, error, wrap, method, readJson } from '../../_lib/http.js';+import { requireCsrf } from '../../_lib/csrf.js';+import { limits, clientIp } from '../../_lib/rate-limit.js';+import { recoverSolanaAgentKeypair } from '../../_lib/agent-wallet.js';+import { solanaConnection } from '../../_lib/agent-pumpfun.js';+import { validateSolanaAddress, ensureAgentWallet } from '../../_lib/agent-trade-guards.js';+import { recordEvent } from '../../_lib/usage.js';+import {+ PublicKey, SystemProgram, TransactionMessage, VersionedTransaction,+} from '@solana/web3.js';+import {+ getAssociatedTokenAddressSync, createTransferCheckedInstruction,+ createAssociatedTokenAccountIdempotentInstruction,+ TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID,+} from '@solana/spl-token';++const USDC_MINT = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';+const USDC_DECIMALS = 6;+const SOL_FEE_RESERVE_LAMPORTS = 20_000n;+const RENT_EXEMPT_FALLBACK_LAMPORTS = 890_880n;+const TOKEN_ACCOUNT_RENT_FALLBACK_LAMPORTS = 2_039_280n;++export default wrap(async (req, res) => {+ if (cors(req, res, { methods: 'POST,OPTIONS', credentials: true })) return;+ if (!method(req, res, ['POST'])) return;++ const session = await getSessionUser(req);+ if (!session) return error(res, 401, 'unauthorized', 'sign in required');++ if (!(await requireCsrf(req, res, session.id))) return;++ const rl = await limits.withdrawalPerUser(session.id);+ if (!rl.success) return json(res, 429, { error: 'rate_limited' });++ // Load master wallet+ const [mw] = await sql`+ SELECT solana_address, encrypted_solana_secret+ FROM master_wallets WHERE user_id = ${session.id}+ `;+ if (!mw?.solana_address) return error(res, 404, 'not_found', 'master wallet not set up');++ let body;+ try { body = await readJson(req); }+ catch (e) { return error(res, 400, 'bad_request', e?.message || 'invalid body'); }++ const agentId = body.agent_id;+ if (!agentId || typeof agentId !== 'string') return error(res, 400, 'bad_request', 'agent_id required');++ // Verify the agent belongs to this user+ const [agent] = await sql`+ SELECT id, meta FROM agent_identities+ WHERE id = ${agentId} AND user_id = ${session.id} AND deleted_at IS NULL+ `;+ if (!agent) return error(res, 403, 'forbidden', 'agent not found or not yours');++ const agentSolAddr = agent.meta?.solana_address;+ if (!agentSolAddr) return error(res, 400, 'no_agent_wallet', 'agent has no Solana wallet — provision one first');++ const asset = body.asset === 'SOL' ? 'SOL' : 'USDC';+ const isMax = body.amount === 'max' || body.amount === 'MAX';+ const amountNum = isMax ? null : Number(body.amount);+ if (!isMax && (!Number.isFinite(amountNum) || amountNum <= 0)) {+ return error(res, 400, 'invalid_amount', 'amount must be a positive number or "max"');+ }++ const conn = solanaConnection('mainnet');+ const fromPk = new PublicKey(mw.solana_address);+ const destPk = new PublicKey(agentSolAddr);+ const mintPk = new PublicKey(USDC_MINT);++ let balanceLamports;+ try { balanceLamports = BigInt(await conn.getBalance(fromPk, 'confirmed')); }+ catch { return error(res, 502, 'rpc_error', 'could not read balance'); }++ let ixs = [];+ let humanAmount, usdValue;++ if (asset === 'SOL') {+ let rentReserve;+ try { rentReserve = BigInt(await conn.getMinimumBalanceForRentExemption(0)); }+ catch { rentReserve = RENT_EXEMPT_FALLBACK_LAMPORTS; }++ let lamports;+ if (isMax) {+ const spendable = balanceLamports - rentReserve - SOL_FEE_RESERVE_LAMPORTS;+ if (spendable <= 0n) return error(res, 400, 'insufficient_balance', 'not enough SOL to send');+ lamports = spendable;+ } else {+ lamports = BigInt(Math.round(amountNum * 1e9));+ if (lamports <= 0n) return error(res, 400, 'invalid_amount', 'amount rounds to zero');+ if (balanceLamports - lamports < rentReserve + SOL_FEE_RESERVE_LAMPORTS) {+ return error(res, 400, 'insufficient_balance', 'insufficient SOL balance');+ }+ }+ humanAmount = Number(lamports) / 1e9;+ usdValue = null;+ ixs.push(SystemProgram.transfer({ fromPubkey: fromPk, toPubkey: destPk, lamports }));+ } else {+ // USDC transfer+ const sourceAta = getAssociatedTokenAddressSync(mintPk, fromPk, false, TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID);+ const destAta = getAssociatedTokenAddressSync(mintPk, destPk, false, TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID);++ let tokenBal;+ try { const b = await conn.getTokenAccountBalance(sourceAta); tokenBal = BigInt(b.value.amount); }+ catch { return error(res, 400, 'insufficient_balance', 'your master wallet holds no USDC'); }+ if (tokenBal <= 0n) return error(res, 400, 'insufficient_balance', 'your master wallet holds no USDC');++ const amountRaw = isMax ? tokenBal : BigInt(Math.round(amountNum * 10 ** USDC_DECIMALS));+ if (amountRaw <= 0n) return error(res, 400, 'invalid_amount', 'amount rounds to zero');+ if (amountRaw > tokenBal) return error(res, 400, 'insufficient_balance', 'amount exceeds your USDC balance');+ humanAmount = Number(amountRaw) / 10 ** USDC_DECIMALS;+ usdValue = humanAmount;++ let destInfo;+ try { destInfo = await conn.getAccountInfo(destAta); } catch { destInfo = null; }+ if (!destInfo) {+ let ataRent;+ try { ataRent = BigInt(await conn.getMinimumBalanceForRentExemption(165)); }+ catch { ataRent = TOKEN_ACCOUNT_RENT_FALLBACK_LAMPORTS; }+ if (balanceLamports < SOL_FEE_RESERVE_LAMPORTS + ataRent) {+ return error(res, 400, 'insufficient_sol_for_fees', 'need more SOL in master wallet for fees');+ }+ ixs.push(createAssociatedTokenAccountIdempotentInstruction(+ fromPk, destAta, destPk, mintPk, TOKEN_PROGRAM_ID, ASSOCIATED_TOKEN_PROGRAM_ID,+ ));+ }+ ixs.push(createTransferCheckedInstruction(sourceAta, mintPk, destAta, fromPk, amountRaw, USDC_DECIMALS, [], TOKEN_PROGRAM_ID));+ }++ const keypair = await recoverSolanaAgentKeypair(mw.encrypted_solana_secret, {+ agentId: `master:${session.id}`,+ userId: session.id,+ reason: 'master_wallet_fund_agent',+ });++ let blockhash;+ try { const bh = await conn.getLatestBlockhash('confirmed'); blockhash = bh.blockhash; }+ catch { return error(res, 502, 'rpc_error', 'could not get blockhash'); }++ const msg = new TransactionMessage({+ payerKey: fromPk,+ recentBlockhash: blockhash,+ instructions: ixs,+ }).compileToV0Message();+ const tx = new VersionedTransaction(msg);+ tx.sign([keypair]);++ let signature;+ try { signature = await conn.sendTransaction(tx, { skipPreflight: false, maxRetries: 2 }); }+ catch (e) { return error(res, 502, 'send_failed', e?.message || 'transaction failed'); }++ recordEvent({+ userId: session.id,+ event: 'master_wallet_fund_agent',+ meta: { agent_id: agentId, asset, human_amount: humanAmount, signature },+ }).catch(() => {});++ return json(res, 200, {+ signature,+ explorer: `https://solscan.io/tx/${signature}`,+ asset,+ agent_id: agentId,+ agent_wallet: agentSolAddr,+ human_amount: humanAmount,+ usd_value: usdValue,+ });+});diff --git a/api/user/wallet/history.js b/api/user/wallet/history.jsnew file mode 100644index 000000000..88abad5c8--- /dev/null+++ b/api/user/wallet/history.js@@ -0,0 +1,103 @@+// GET /api/user/wallet/history+// On-chain transaction history for the master wallet's Solana address.+// Query params: ?limit=20&network=mainnet++import { getSessionUser } from '../../_lib/auth.js';+import { sql } from '../../_lib/db.js';+import { cors, json, error, wrap, method } from '../../_lib/http.js';+import { limits } from '../../_lib/rate-limit.js';+import { solanaConnection, solanaPublicConnection } from '../../_lib/agent-pumpfun.js';+import { cacheGet, cacheSet } from '../../_lib/cache.js';+import { PublicKey } from '@solana/web3.js';++const CACHE_TTL_S = 60;++async function withFallback(primaryConn, fallbackConn, fn) {+ try { return { ok: true, value: await fn(primaryConn) }; } catch {}+ await new Promise((r) => setTimeout(r, 500));+ try { return { ok: true, value: await fn(primaryConn) }; } catch {}+ await new Promise((r) => setTimeout(r, 1000));+ if (fallbackConn) {+ try { return { ok: true, value: await fn(fallbackConn) }; } catch (e) { return { ok: false, error: e }; }+ }+ return { ok: false, error: new Error('all RPC attempts failed') };+}++export default wrap(async (req, res) => {+ if (cors(req, res, { methods: 'GET,OPTIONS', credentials: true })) return;+ if (!method(req, res, ['GET'])) return;++ const session = await getSessionUser(req);+ if (!session) return error(res, 401, 'unauthorized', 'sign in required');++ const rl = await limits.walletRead(session.id);+ if (!rl.success) return json(res, 429, { error: 'rate_limited' });++ const [row] = await sql`+ SELECT solana_address FROM master_wallets WHERE user_id = ${session.id}+ `;+ if (!row?.solana_address) return json(res, 200, { history: [] });++ const url = new URL(req.url, 'http://x');+ const network = url.searchParams.get('network') === 'devnet' ? 'devnet' : 'mainnet';+ const limit = Math.min(parseInt(url.searchParams.get('limit') || '20', 10) || 20, 50);++ const address = row.solana_address;+ const cacheKey = `mw:sigs:${address}:${network}:${limit}`;+ let sigs = await cacheGet(cacheKey);++ if (sigs === null) {+ const primary = solanaConnection(network);+ const fallback = solanaPublicConnection(network);+ const pk = new PublicKey(address);++ const result = await withFallback(primary, fallback, (c) =>+ c.getSignaturesForAddress(pk, { limit }),+ );+ if (!result.ok) return error(res, 502, 'rpc_error', 'could not fetch transaction history');+ sigs = result.value;+ await cacheSet(cacheKey, sigs, CACHE_TTL_S);+ }++ // Enrich with parsed tx data when available+ let parsed = null;+ if (sigs.length) {+ const primary = solanaConnection(network);+ const fallback = solanaPublicConnection(network);+ const result = await withFallback(primary, fallback, (c) =>+ c.getParsedTransactions(sigs.map((s) => s.signature), {+ maxSupportedTransactionVersion: 0,+ commitment: 'confirmed',+ }),+ );+ if (result.ok) parsed = result.value;+ }++ const history = sigs.map((s, i) => {+ const tx = parsed?.[i] ?? null;+ let lamport_delta = null;+ let summary = null;+ if (tx?.meta && tx?.transaction) {+ const keys = tx.transaction.message.accountKeys.map((k) => k.pubkey?.toString());+ const idx = keys.indexOf(address);+ if (idx >= 0 && tx.meta.preBalances && tx.meta.postBalances) {+ lamport_delta = tx.meta.postBalances[idx] - tx.meta.preBalances[idx];+ }+ const ix = tx.transaction.message.instructions?.[0];+ if (ix?.parsed?.type) summary = ix.parsed.type;+ else if (ix?.programId) summary = `program ${ix.programId.toString().slice(0, 8)}…`;+ }+ return {+ signature: s.signature,+ slot: s.slot,+ block_time: s.blockTime ?? null,+ success: !s.err && !tx?.meta?.err,+ error: s.err || tx?.meta?.err || null,+ lamport_delta,+ summary,+ explorer: `https://solscan.io/tx/${s.signature}`,+ };+ });++ return json(res, 200, { history, address, network });+});diff --git a/data/changelog.json b/data/changelog.jsonindex 6f3722239..c3c2f4928 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,13 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-26",+ "title": "Brain page simplified — pick a personality in one tap",+ "summary": "Building an agent personality no longer requires picking an archetype, clicking Generate, reviewing a six-field card, choosing an agent from a dropdown, and hitting Save. Now it's one tap: pick a vibe (Sharp Analyst, Crypto Native, Casual Builder, and five more), and it applies and saves to your agent instantly. For custom personalities, type a description and press Enter — no separate button. The agent auto-selects from your roster at the top of the page. A slim status bar confirms the active persona with options to test it in the Playground, customize it, or clear it.",+ "tags": ["improvement"],+ "link": "/brain"+ },{"date": "2026-06-26","title": "Agent editor redesigned — one unified page instead of 15 sidebar tabs",diff --git a/pages/go.html b/pages/go.htmlindex 92c8741df..799517633 100644--- a/pages/go.html+++ b/pages/go.html@@ -48,15 +48,15 @@--text: #f0f0f8;--muted: rgba(240, 240, 248, 0.5);--muted-2: rgba(240, 240, 248, 0.32);- --accent: #7c5cff;- --accent-glow: rgba(124, 92, 255, 0.18);- --green: #22c55e;- --green-bg: rgba(34, 197, 94, 0.12);- --amber: #f59e0b;- --amber-bg: rgba(245, 158, 11, 0.12);- --blue: #3b82f6;- --blue-bg: rgba(59, 130, 246, 0.12);- --sol: #9945ff;+ --accent: #ffffff;+ --accent-glow: rgba(255, 255, 255, 0.06);+ --green: #e8e8e8;+ --green-bg: rgba(255, 255, 255, 0.07);+ --amber: #a8a8a8;+ --amber-bg: rgba(255, 255, 255, 0.05);+ --blue: #c0c0c0;+ --blue-bg: rgba(255, 255, 255, 0.05);+ --sol: #909090;--radius: 12px;}html,@@ -68,18 +68,7 @@body {font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;-webkit-font-smoothing: antialiased;- background:- radial-gradient(- 900px 500px at 70% -5%,- rgba(124, 92, 255, 0.12),- transparent 60%- ),- radial-gradient(- 700px 400px at 0% 30%,- rgba(34, 197, 94, 0.06),- transparent 55%- ),- var(--bg);+ background: var(--bg);}a {color: inherit;@@ -128,7 +117,7 @@font-weight: 700;letter-spacing: 0.08em;background: var(--accent);- color: #fff;+ color: var(--bg);padding: 2px 8px;border-radius: 5px;text-transform: uppercase;@@ -155,7 +144,7 @@}.btn-primary {background: var(--accent);- color: #fff;+ color: var(--bg);}.btn-primary:hover {opacity: 0.88;@@ -322,13 +311,13 @@width: 20px;height: 20px;border-radius: 50%;- background: linear-gradient(135deg, var(--accent), var(--green));+ background: linear-gradient(135deg, #ffffff, #505050);display: flex;align-items: center;justify-content: center;font-size: 9px;font-weight: 700;- color: #fff;+ color: var(--bg);flex-shrink: 0;}.reward {@@ -337,7 +326,7 @@gap: 4px;font-size: 13px;font-weight: 700;- color: var(--green);+ color: var(--text);}.reward-token {font-size: 11px;@@ -369,7 +358,7 @@/* Submission card specific */.sub-card {- background: rgba(59, 130, 246, 0.03);+ background: rgba(255, 255, 255, 0.02);}.sub-to {font-size: 11px;@@ -410,7 +399,7 @@padding: 5px 12px;border-radius: 6px;background: var(--accent);- color: #fff;+ color: var(--bg);transition: opacity 0.15s;}.submit-btn:hover {@@ -421,13 +410,13 @@font-weight: 600;padding: 5px 12px;border-radius: 6px;- background: var(--green-bg);- color: var(--green);- border: 1px solid rgba(34, 197, 94, 0.2);+ background: var(--panel);+ color: var(--text);+ border: 1px solid rgba(255, 255, 255, 0.1);transition: background 0.15s;}.resolve-btn:hover {- background: rgba(34, 197, 94, 0.2);+ background: rgba(255, 255, 255, 0.1);}/* Empty + Loading */@@ -562,7 +551,7 @@}.lb-amount {font-weight: 700;- color: var(--green);+ color: var(--text);font-size: 13px;flex-shrink: 0;}@@ -604,7 +593,7 @@}.tb-reward {font-weight: 700;- color: var(--green);+ color: var(--text);font-size: 13px;flex-shrink: 0;}@@ -774,8 +763,8 @@opacity: 1;}.toast.success {- border-color: rgba(34, 197, 94, 0.4);- color: var(--green);+ border-color: rgba(255, 255, 255, 0.3);+ color: var(--text);}.toast.fail {border-color: rgba(248, 113, 113, 0.4);@@ -813,12 +802,12 @@transition: transform 0.14s;}.like-btn.liked {- color: #ff6b81;- border-color: rgba(255, 107, 129, 0.42);- background: rgba(255, 107, 129, 0.1);+ color: var(--text);+ border-color: rgba(255, 255, 255, 0.3);+ background: rgba(255, 255, 255, 0.08);}.like-btn.liked svg {- fill: #ff6b81;+ fill: var(--text);transform: scale(1.08);}.like-btn:active svg {diff --git a/public/brain.css b/public/brain.cssindex 20097a2ed..c85c882f4 100644--- a/public/brain.css+++ b/public/brain.css@@ -230,42 +230,7 @@ body {flex-direction: column;gap: 24px;}-.br-persona-hero {- text-align: center;- padding: 20px 0 8px;-}-.br-persona-hero h1 {- font-size: 28px;- font-weight: 700;- letter-spacing: -0.02em;- margin: 0 0 8px;- background: linear-gradient(135deg, #ffffff 0%, #ffffff 50%, #cccccc 100%);- -webkit-background-clip: text;- -webkit-text-fill-color: transparent;- background-clip: text;-}-.br-persona-hero p {- color: #6b70a0;- font-size: 14.5px;- margin: 0;- max-width: 52ch;- margin: 0 auto;-}-/* Archetype quick-picks */-.br-archetype-section {- display: flex;- flex-direction: column;- gap: 14px;-}-.br-archetype-label {- font-size: 11.5px;- font-weight: 700;- text-transform: uppercase;- letter-spacing: 0.1em;- color: #4a4a6a;- text-align: center;-}.br-archetype-grid {display: grid;grid-template-columns: repeat(4, 1fr);@@ -274,42 +239,114 @@ body {.br-archetype-chip {background: #0c0c0c;border: 1.5px solid #1c1c2a;- border-radius: 12px;- padding: 14px 16px;+ border-radius: 14px;+ padding: 18px 18px;cursor: pointer;text-align: left;- transition: border-color 0.15s, background 0.15s, transform 0.1s;+ transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;display: flex;flex-direction: column;- gap: 4px;+ gap: 5px;+ position: relative;}.br-archetype-chip:hover {border-color: #3a3a5a;- background: #101018;- transform: translateY(-1px);+ background: #0e0e16;+ transform: translateY(-2px);+ box-shadow: 0 4px 20px rgba(0,0,0,0.4);}+.br-archetype-chip:active { transform: translateY(0); }.br-archetype-chip.selected {- border-color: #ffffff;- background: #0e0e1a;+ border-color: #3dbc8a;+ background: #060e0c;+ box-shadow: 0 0 0 1px rgba(61,188,138,0.2);+}+.br-archetype-chip.selected::after {+ content: '✓';+ position: absolute;+ top: 10px;+ right: 12px;+ font-size: 12px;+ color: #3dbc8a;+ font-weight: 700;}.br-archetype-chip-label {- font-size: 13px;+ font-size: 13.5px;font-weight: 600;color: #dde0f0;display: block;}.br-archetype-chip-desc {- font-size: 11.5px;+ font-size: 12px;color: #5a5a7a;display: block;line-height: 1.4;}-/* Describe input section */+/* ── Agent bar (top of persona panel) ───────────────────────────────────── */+.br-agent-bar {+ display: flex;+ align-items: center;+ gap: 10px;+ background: #0a0a0a;+ border: 1px solid #181824;+ border-radius: 12px;+ padding: 10px 16px;+}+.br-agent-bar-label {+ font-size: 12px;+ font-weight: 600;+ color: #4a4a6a;+ white-space: nowrap;+}+.br-agent-bar-sel {+ flex: 1;+ background: transparent;+ border: none;+ color: #dde0f0;+ font: inherit;+ font-size: 13.5px;+ font-weight: 600;+ cursor: pointer;+ outline: none;+ min-width: 0;+}+.br-agent-bar-sel option { background: #0e0e1a; color: #dde0f0; }+.br-agent-bar-manage {+ font-size: 11.5px;+ color: #4a4a6a;+ text-decoration: none;+ white-space: nowrap;+ transition: color 0.15s;+}+.br-agent-bar-manage:hover { color: #9090c0; }++/* ── Simplified persona hero ─────────────────────────────────────────────── */+.br-persona-hero {+ text-align: center;+ padding: 8px 0 4px;+}+.br-persona-hero h1 {+ font-size: 26px;+ font-weight: 700;+ letter-spacing: -0.02em;+ margin: 0 0 6px;+ background: linear-gradient(135deg, #ffffff 0%, #cccccc 100%);+ -webkit-background-clip: text;+ -webkit-text-fill-color: transparent;+ background-clip: text;+}+.br-persona-hero p {+ color: #5a5e80;+ font-size: 13.5px;+ margin: 0;+}++/* ── Describe input section ──────────────────────────────────────────────── */.br-describe-section {display: flex;flex-direction: column;- gap: 14px;+ gap: 12px;}.br-describe-divider {display: flex;@@ -325,6 +362,7 @@ body {height: 1px;background: #1c1c2a;}+.br-describe-wrap { display: flex; flex-direction: column; gap: 6px; }.br-describe-input {width: 100%;background: #0c0c0c;@@ -334,14 +372,73 @@ body {font: inherit;font-size: 14px;padding: 16px 18px;- resize: vertical;- min-height: 80px;+ resize: none;outline: none;transition: border-color 0.15s;line-height: 1.55;}.br-describe-input:focus { border-color: #3050a0; }.br-describe-input::placeholder { color: #3a3a4a; }+.br-describe-hint {+ font-size: 11.5px;+ color: #2e2e4a;+ padding-left: 4px;+}++/* ── Status bar (replaces full card for normal flow) ─────────────────────── */+.br-status-bar {+ display: none;+ align-items: center;+ gap: 10px;+ background: #06100e;+ border: 1.5px solid #0e2e24;+ border-radius: 12px;+ padding: 12px 16px;+ animation: br-fade-in 0.2s ease;+}+.br-status-bar.show { display: flex; }+.br-status-bar.saving { border-color: #1c2e50; background: #060a14; }+.br-status-bar.saved { border-color: #0e3028; background: #061410; }+.br-status-icon {+ font-size: 14px;+ color: #3dbc8a;+ flex-shrink: 0;+}+.br-status-text {+ font-size: 13.5px;+ font-weight: 600;+ color: #80e0b8;+ flex: 1;+ min-width: 0;+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}+.br-status-actions {+ display: flex;+ gap: 4px;+ align-items: center;+ flex-shrink: 0;+}+.br-status-btn {+ background: rgba(255,255,255,0.05);+ border: 1px solid rgba(255,255,255,0.1);+ border-radius: 7px;+ color: #8a8a9a;+ font: inherit;+ font-size: 12px;+ padding: 5px 11px;+ cursor: pointer;+ transition: all 0.15s;+ white-space: nowrap;+}+.br-status-btn:hover { background: rgba(255,255,255,0.1); color: #dde0f0; }+.br-status-btn-clear:hover { color: #ff7070; border-color: rgba(255,80,80,0.3); }++@keyframes br-fade-in {+ from { opacity: 0; transform: translateY(4px); }+ to { opacity: 1; transform: translateY(0); }+}/* Action row */.br-actions {diff --git a/public/changelog.json b/public/changelog.jsonindex 397538dab..cf24172fa 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-26T08:57:01.508Z",+ "generated_at": "2026-06-26T09:08:09.663Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -103,6 +103,16 @@"improvement"]},+ {+ "date": "2026-06-26",+ "type": "update",+ "title": "Brain page simplified — pick a personality in one tap",+ "summary": "Building an agent personality no longer requires picking an archetype, clicking Generate, reviewing a six-field card, choosing an agent from a dropdown, and hitting Save. Now it's one tap: pick a vibe (Sharp Analyst, Crypto Native, Casual Builder, and five more), and it applies and saves to your agent instantly. For custom personalities, type a description and press Enter — no separate button. The agent auto-selects from your roster at the top of the page. A slim status bar confirms the active persona with options to test it in the Playground, customize it, or clear it.",+ "link": "/brain",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-26","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 458a9b5a1..e31a75c2a 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -78,6 +78,14 @@<category>feature</category><description>Your avatar no longer stands frozen in a stiff T-pose while you dress it. Avatar Studio now plays a natural looping idle the moment it loads — proof the avatar is fully rigged — and a new Animate tab lets you drive the rig live: 16 curated motions including Idle, Wave, Cheer, Celebrate, Flex, Dance, Shuffle, Rumba, Thriller, Capoeira and more. Looping motions become your avatar's resting idle, so when you Save, your avatar is captured in the relaxed stance you chose rather than a rigid pose. One-shot moves like Wave and Celebrate play once and settle back to idle automatically.</description></item>+ <item>+ <title>Brain page simplified — pick a personality in one tap</title>+ <link>https://three.ws/brain</link>+ <guid isPermaLink="false">2026-06-26:Brain page simplified — pick a personality in one tap</guid>+ <pubDate>Fri, 26 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>Building an agent personality no longer requires picking an archetype, clicking Generate, reviewing a six-field card, choosing an agent from a dropdown, and hitting Save. Now it's one tap: pick a vibe (Sharp Analyst, Crypto Native, Casual Builder, and five more), and it applies and saves to your agent instantly. For custom personalities, type a description and press Enter — no separate button. The agent auto-selects from your roster at the top of the page. A slim status bar confirms the active persona with options to test it in the Playground, customize it, or clear it.</description>+ </item><item><title>Claim Wallet is now a full Wallet Intelligence dashboard</title><link>https://three.ws/claim-wallet</link>diff --git a/public/features.json b/public/features.jsonindex 3b8b2b50c..31febb5c8 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-26T08:57:01.434Z",+ "generated_at": "2026-06-26T09:08:09.609Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/wallet.html b/public/wallet.htmlnew file mode 100644index 000000000..15cd6d421--- /dev/null+++ b/public/wallet.html@@ -0,0 +1,196 @@+<!doctype html>+<html lang="en">+<head>+ <style>[hidden]{display:none!important}</style>+ <script>(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>+ <meta charset="utf-8" />+ <meta name="viewport" content="width=device-width,initial-scale=1" />+ <title>My Wallet — three.ws</title>+ <meta name="description" content="Your master wallet for all three.ws activity — fund agents, send, receive, and pay for skills." />+ <link rel="icon" href="/favicon.ico" />+ <link rel="stylesheet" href="/fonts/fonts.css" />+ <style>+ :root {+ color-scheme: dark;+ --bg: #050505;+ --surface-0: #0b0b0b;+ --surface-1: #111111;+ --surface-2: #181818;+ --surface-3: #1e1e1e;+ --hairline: #1c1c1c;+ --hairline-strong: #2a2a2a;+ --text: #f6f6f6;+ --text-2: #a8a8a8;+ --text-3: #6a6a6a;+ --text-4: #4a4a4a;+ --accent: #ffffff;+ --green: #4ade80;+ --red: #f87171;+ --yellow: #fbbf24;+ --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;+ --font-body: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;+ --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;+ }+ * { box-sizing: border-box; }+ html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); }+ body { font-size: 15px; line-height: 1.55; min-height: 100vh; -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; }+ a { color: inherit; text-decoration: none; }+ button { font-family: inherit; cursor: pointer; }++ .nav { border-bottom: 1px solid var(--hairline); background: rgba(5,5,5,0.92); backdrop-filter: blur(20px); position: sticky; top: 0; z-index: 100; }+ .nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; max-width: 900px; margin: 0 auto; }+ .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.025em; font-size: 16px; color: var(--text); text-decoration: none; }+ .brand-mark { width: 18px; height: 18px; border: 1.5px solid var(--text); border-radius: 3px; }+ .nav-back { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-3); padding: 6px 0; transition: color 0.15s; }+ .nav-back:hover { color: var(--text); }+ .nav-back svg { width: 14px; height: 14px; }++ .page { max-width: 740px; margin: 0 auto; padding: 40px 24px 80px; }++ /* ── Wallet hero ── */+ .wallet-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }+ .wallet-hero-left { display: flex; flex-direction: column; gap: 6px; }+ .wallet-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -0.03em; color: var(--text); margin: 0; }+ .wallet-subtitle { font-size: 13px; color: var(--text-3); margin: 0; }+ .wallet-total { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }+ .wallet-total-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-4); }+ .wallet-total-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: -0.04em; color: var(--text); }+ .wallet-total-value.skeleton { width: 120px; height: 36px; border-radius: 6px; background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }++ /* ── Setup banner ── */+ .setup-card { border: 1px solid var(--hairline-strong); border-radius: 16px; background: var(--surface-1); padding: 40px; text-align: center; }+ .setup-icon { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%); border: 1px solid var(--hairline-strong); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 20px; }+ .setup-icon svg { width: 28px; height: 28px; color: var(--text-2); }+ .setup-title { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin: 0 0 8px; color: var(--text); }+ .setup-desc { font-size: 14px; color: var(--text-2); margin: 0 0 28px; max-width: 400px; margin-left: auto; margin-right: auto; }+ .btn-primary { display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; background: var(--text); color: var(--bg); border: none; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: opacity 0.15s, transform 0.12s; }+ .btn-primary:hover { opacity: 0.88; }+ .btn-primary:active { transform: scale(0.98); }+ .btn-primary:disabled { opacity: 0.4; cursor: default; }+ .btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: transparent; color: var(--text); border: 1px solid var(--hairline-strong); border-radius: 10px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background 0.15s, border-color 0.15s; }+ .btn-secondary:hover { background: var(--surface-2); border-color: var(--text-4); }+ .btn-secondary:disabled { opacity: 0.4; cursor: default; }++ /* ── Tabs ── */+ .tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--hairline); margin-bottom: 28px; -webkit-overflow-scrolling: touch; }+ .tabs::-webkit-scrollbar { display: none; }+ .tab { appearance: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--text-3); background: transparent; border: none; border-bottom: 2px solid transparent; padding: 10px 14px; cursor: pointer; white-space: nowrap; transition: color 0.14s, border-color 0.14s; border-radius: 6px 6px 0 0; }+ .tab:hover { color: var(--text-2); background: rgba(255,255,255,0.03); }+ .tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--text); }+ .tab:focus-visible { outline: 2px solid rgba(255,255,255,0.3); outline-offset: -2px; }+ .tab-panel[hidden] { display: none; }++ /* ── Cards ── */+ .card { border: 1px solid var(--hairline-strong); border-radius: 14px; background: var(--surface-1); padding: 20px 22px; margin-bottom: 16px; }+ .card-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-4); margin: 0 0 16px; font-weight: 600; }++ /* ── Balance grid ── */+ .balance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin-bottom: 16px; }+ .balance-item { background: var(--surface-2); border-radius: 10px; padding: 14px 16px; }+ .balance-item-label { font-size: 11px; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; font-weight: 600; }+ .balance-item-value { font-family: var(--font-display); font-size: 20px; font-weight: 600; color: var(--text); }+ .balance-item-sub { font-size: 11px; color: var(--text-3); margin-top: 2px; font-family: var(--font-mono); }+ .balance-item-value.skeleton { width: 80px; height: 24px; border-radius: 4px; background: var(--surface-3); animation: pulse 1.4s ease-in-out infinite; }++ /* ── Address display ── */+ .addr-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }+ .addr-row + .addr-row { margin-top: 8px; }+ .addr-label { font-size: 11px; color: var(--text-4); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-bottom: 4px; }+ .addr-value { font-family: var(--font-mono); font-size: 12px; color: var(--text-2); word-break: break-all; }+ .copy-btn { flex-shrink: 0; padding: 6px 10px; background: transparent; border: 1px solid var(--hairline-strong); border-radius: 6px; color: var(--text-3); font-size: 11px; cursor: pointer; transition: color 0.15s, border-color 0.15s; display: flex; align-items: center; gap: 4px; white-space: nowrap; }+ .copy-btn:hover { color: var(--text); border-color: var(--text-3); }+ .copy-btn.copied { color: var(--green); border-color: var(--green); }++ /* ── QR code ── */+ .qr-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 0; }+ .qr-box { width: 160px; height: 160px; background: #fff; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; }+ .qr-box canvas { display: block; }+ .qr-hint { font-size: 12px; color: var(--text-3); text-align: center; max-width: 280px; }++ /* ── Forms ── */+ .form-group { margin-bottom: 16px; }+ .form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }+ .form-input { width: 100%; padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--hairline-strong); border-radius: 8px; color: var(--text); font: 14px/1.4 var(--font-body); outline: none; transition: border-color 0.15s; }+ .form-input:focus { border-color: rgba(255,255,255,0.25); }+ .form-input::placeholder { color: var(--text-4); }+ .form-hint { font-size: 11px; color: var(--text-4); margin-top: 5px; }+ .form-row { display: flex; gap: 10px; align-items: flex-end; }+ .form-row .form-group { flex: 1; }+ select.form-input { cursor: pointer; }+ .max-btn { padding: 10px 14px; background: var(--surface-2); border: 1px solid var(--hairline-strong); border-radius: 8px; color: var(--text-3); font-size: 12px; font-weight: 600; cursor: pointer; transition: color 0.15s; white-space: nowrap; }+ .max-btn:hover { color: var(--text); }++ /* ── Agent list ── */+ .agent-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; background: var(--surface-2); border-radius: 10px; }+ .agent-row + .agent-row { margin-top: 8px; }+ .agent-avatar { width: 36px; height: 36px; border-radius: 8px; background: var(--surface-3); border: 1px solid var(--hairline-strong); object-fit: cover; flex-shrink: 0; }+ .agent-info { flex: 1; min-width: 0; }+ .agent-name { font-size: 14px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+ .agent-addr { font-family: var(--font-mono); font-size: 10px; color: var(--text-4); margin-top: 2px; }+ .fund-btn { flex-shrink: 0; padding: 7px 14px; background: transparent; border: 1px solid var(--hairline-strong); border-radius: 8px; color: var(--text-3); font-size: 12px; font-weight: 600; cursor: pointer; transition: color 0.15s, border-color 0.15s; }+ .fund-btn:hover { color: var(--text); border-color: var(--text-3); }+ .fund-btn:disabled { opacity: 0.4; cursor: default; }++ /* ── History ── */+ .tx-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }+ .tx-row:last-child { border-bottom: none; }+ .tx-icon { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }+ .tx-icon.in { background: rgba(74,222,128,0.1); color: var(--green); }+ .tx-icon.out { background: rgba(248,113,113,0.1); color: var(--red); }+ .tx-icon.neutral { background: var(--surface-2); color: var(--text-3); }+ .tx-body { flex: 1; min-width: 0; }+ .tx-summary { font-size: 13px; font-weight: 500; color: var(--text-2); }+ .tx-time { font-size: 11px; color: var(--text-4); margin-top: 2px; font-family: var(--font-mono); }+ .tx-amount { font-family: var(--font-mono); font-size: 12px; text-align: right; }+ .tx-amount.in { color: var(--green); }+ .tx-amount.out { color: var(--red); }+ .tx-link { font-size: 10px; color: var(--text-4); }+ .tx-link:hover { color: var(--text-2); }++ /* ── Toast ── */+ .toast { position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(80px); background: var(--surface-3); border: 1px solid var(--hairline-strong); border-radius: 10px; padding: 12px 20px; font-size: 13px; color: var(--text); box-shadow: 0 8px 24px rgba(0,0,0,0.4); z-index: 9999; transition: transform 0.22s cubic-bezier(.22,1,.36,1), opacity 0.22s; opacity: 0; pointer-events: none; white-space: nowrap; }+ .toast.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }+ .toast.error { border-color: rgba(248,113,113,0.4); color: var(--red); }+ .toast.success { border-color: rgba(74,222,128,0.4); color: var(--green); }++ /* ── Status ── */+ .status-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; margin-right: 6px; background: var(--green); box-shadow: 0 0 6px rgba(74,222,128,0.5); }+ .status-dot.warn { background: var(--yellow); box-shadow: 0 0 6px rgba(251,191,36,0.5); }++ /* ── Auth gate ── */+ .auth-gate { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 80px 24px; gap: 16px; }+ .auth-gate-title { font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--text); margin: 0; }+ .auth-gate-desc { font-size: 14px; color: var(--text-3); margin: 0; max-width: 340px; }++ @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }++ @media (max-width: 500px) {+ .wallet-hero { flex-direction: column; }+ .wallet-total { align-items: flex-start; }+ .page { padding: 24px 16px 60px; }+ }+ </style>+</head>+<body>+<nav class="nav">+ <div class="nav-inner">+ <a class="brand" href="/">+ <div class="brand-mark"></div>+ three.ws+ </a>+ <a class="nav-back" href="/dashboard">+ <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M19 12H5M12 5l-7 7 7 7"/></svg>+ Dashboard+ </a>+ </div>+</nav>++<main class="page">+ <div id="mw-root"></div>+</main>++<div id="toast" class="toast" role="status" aria-live="polite"></div>++<script type="module" src="/src/user-wallet.js"></script>+</body>+</html>diff --git a/src/dashboard-next/pages/home.js b/src/dashboard-next/pages/home.jsindex 87c1b089a..5d3b264a6 100644--- a/src/dashboard-next/pages/home.js+++ b/src/dashboard-next/pages/home.js@@ -879,7 +879,6 @@ function renderOnboarding(host, { avatars, agents, widgets }) {return;}- const nextStep = steps.find((s) => !s.done);const pct = Math.round((doneCount / steps.length) * 100);injectCryptoOptionalStyles();@@ -898,7 +897,7 @@ function renderOnboarding(host, { avatars, agents, widgets }) {const pendingSteps = steps.filter((s) => !s.done);const [activeStep, ...futureSteps] = pendingSteps;- const futureHtml = futureSteps.map((s, i) => `+ const futureHtml = futureSteps.map((s) => `<li class="dnx-ob-future-row"><span class="dnx-ob-future-num" aria-hidden="true">${steps.indexOf(s) + 1}</span><span class="dnx-ob-future-label">${esc(s.label)}</span>@@ -1939,41 +1938,170 @@ function injectStyles() {}.dnx-ob-fill {height: 100%; border-radius: 4px;- background: var(--nxt-ink-dim);- transition: width 0.4s ease;+ background: linear-gradient(90deg, rgba(255,255,255,0.5), rgba(255,255,255,0.8));+ transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);}- .dnx-ob-steps {- list-style: none; padding: 0; margin: 0;- display: flex; flex-direction: column; gap: 2px;++ /* Completed steps — compact strip */+ .dnx-ob-done-list {+ list-style: none; padding: 0; margin: 0 0 14px;+ display: flex; flex-direction: column; gap: 4px;}- .dnx-ob-step {- display: flex; align-items: center; gap: 12px;- padding: 9px 8px; border-radius: 8px;- transition: background 0.12s ease;+ .dnx-ob-done-row {+ display: flex; align-items: center; gap: 8px;+ font-size: 12.5px; color: var(--nxt-ink-fade);}- .dnx-ob-step:hover { background: rgba(255,255,255,0.04); }- .dnx-ob-step.is-done { opacity: 0.5; }- .dnx-ob-num {- width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0;+ .dnx-ob-done-check {+ width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;display: grid; place-items: center;- font-size: 11px; font-weight: 600;- background: rgba(255,255,255,0.06);- color: var(--nxt-ink-dim);- border: 1px solid var(--nxt-stroke);+ background: rgba(52, 211, 153, 0.12);+ color: #34d399;+ }+ .dnx-ob-done-label { text-decoration: line-through; opacity: 0.7; }++ /* Active (next) step — full card, accent border */+ .dnx-ob-active {+ display: flex; gap: 16px; align-items: flex-start;+ padding: 16px;+ border-radius: 10px;+ border: 1px solid rgba(255,255,255,0.14);+ background: rgba(255,255,255,0.04);+ margin-bottom: 12px;+ position: relative;+ overflow: hidden;+ }+ .dnx-ob-active::before {+ content: '';+ position: absolute; left: 0; top: 0; bottom: 0; width: 3px;+ background: linear-gradient(180deg, rgba(255,255,255,0.6), rgba(255,255,255,0.2));+ border-radius: 3px 0 0 3px;}- .dnx-ob-step.is-done .dnx-ob-num {+ .dnx-ob-active-icon {+ width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;+ display: grid; place-items: center;background: rgba(255,255,255,0.08);color: var(--nxt-ink);- border-color: var(--nxt-stroke-strong);}- .dnx-ob-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }- .dnx-ob-label { font-size: 13.5px; font-weight: 500; color: var(--nxt-ink); display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }- .dnx-ob-sub { font-size: 12px; color: var(--nxt-ink-fade); }- .dnx-ob-btn { flex-shrink: 0; font-size: 12px; padding: 5px 10px; white-space: nowrap; }+ .dnx-ob-active-body { flex: 1; min-width: 0; }+ .dnx-ob-active-step-label {+ font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em;+ text-transform: uppercase; color: var(--nxt-ink-fade);+ margin-bottom: 4px;+ display: flex; align-items: center; gap: 6px;+ }+ .dnx-ob-active-opt {+ font-size: 10px; font-weight: 600; letter-spacing: 0.05em;+ padding: 1px 7px; border-radius: 99px;+ background: rgba(251,191,36,0.15); color: #fbbf24;+ text-transform: uppercase;+ }+ .dnx-ob-active-title {+ font-size: 15px; font-weight: 600; color: var(--nxt-ink);+ margin-bottom: 3px; line-height: 1.3;+ }+ .dnx-ob-active-outcome {+ font-size: 12.5px; font-weight: 500;+ color: rgba(255,255,255,0.65);+ margin-bottom: 8px;+ }+ .dnx-ob-active-detail {+ font-size: 12px; color: var(--nxt-ink-fade);+ line-height: 1.5; margin-bottom: 14px;+ }+ .dnx-ob-active-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }+ .dnx-ob-active-cta {+ background: var(--nxt-accent, rgba(255,255,255,0.9)); color: #000;+ font-weight: 600; font-size: 13px; padding: 8px 16px;+ border-radius: 8px; border: none;+ transition: transform 0.12s ease, box-shadow 0.15s ease;+ }+ .dnx-ob-active-cta:hover {+ transform: translateY(-1px);+ box-shadow: 0 4px 18px -6px rgba(255,255,255,0.4);+ }+ .dnx-ob-active-skip { font-size: 12px; color: var(--nxt-ink-fade); }+ .dnx-ob-active-skip a { color: var(--nxt-ink-fade); text-decoration: underline; }+ .dnx-ob-active-skip a:hover { color: var(--nxt-ink); }++ /* Future (upcoming) steps — minimal */+ .dnx-ob-future-list {+ list-style: none; padding: 0; margin: 0 0 12px;+ border-top: 1px solid var(--nxt-stroke);+ padding-top: 10px;+ display: flex; flex-direction: column; gap: 6px;+ }+ .dnx-ob-future-row {+ display: flex; align-items: center; gap: 10px;+ font-size: 12.5px; color: var(--nxt-ink-fade);+ padding: 2px 0;+ }+ .dnx-ob-future-num {+ width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;+ display: grid; place-items: center;+ font-size: 10px; font-weight: 600;+ background: rgba(255,255,255,0.05);+ border: 1px solid var(--nxt-stroke);+ color: var(--nxt-ink-fade);+ }+ .dnx-ob-future-label { flex: 1; }+ .dnx-ob-future-opt {+ font-size: 10px; font-weight: 600; letter-spacing: 0.04em;+ padding: 1px 7px; border-radius: 99px;+ background: rgba(251,191,36,0.1); color: #fbbf24;+ text-transform: uppercase;+ }+.dnx-ob-reassure { margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--nxt-line, rgba(255,255,255,0.08)); }- @media (max-width: 600px) {- .dnx-ob-step { flex-wrap: wrap; }- .dnx-ob-btn { margin-left: 36px; }++ /* ── Empty hero: platform flow ── */+ .dnx-empty-hero {+ display: flex; flex-direction: column; align-items: center;+ gap: 24px; padding: 40px 28px 36px;+ border-radius: var(--nxt-radius);+ border: 1px solid var(--nxt-stroke);+ background: linear-gradient(180deg, rgba(255,255,255,0.025), transparent);+ text-align: center;+ }+ .dnx-empty-hero-flow {+ display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center;+ }+ .dnx-flow-step {+ display: flex; flex-direction: column; align-items: center; gap: 6px;+ min-width: 80px;+ }+ .dnx-flow-icon {+ width: 58px; height: 58px; border-radius: 16px;+ display: grid; place-items: center;+ background: rgba(255,255,255,0.05);+ border: 1px solid var(--nxt-stroke);+ color: var(--nxt-ink-dim);+ transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;+ }+ .dnx-flow-step:hover .dnx-flow-icon {+ background: rgba(255,255,255,0.09); border-color: var(--nxt-stroke-strong); color: var(--nxt-ink);+ }+ .dnx-flow-label { font-size: 13px; font-weight: 600; color: var(--nxt-ink); }+ .dnx-flow-sub { font-size: 11.5px; color: var(--nxt-ink-fade); }+ .dnx-flow-arrow {+ font-size: 18px; color: var(--nxt-ink-fade); flex-shrink: 0;+ margin-top: -18px;+ }+ .dnx-empty-hero-cta { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }+ .dnx-empty-hero-main-cta {+ background: var(--nxt-accent, rgba(255,255,255,0.88)); color: #000;+ font-weight: 600; font-size: 14px; padding: 10px 22px;+ border-radius: 9px; border: none;+ transition: transform 0.12s ease, box-shadow 0.15s ease;+ }+ .dnx-empty-hero-main-cta:hover {+ transform: translateY(-2px);+ box-shadow: 0 6px 24px -8px rgba(255,255,255,0.35);+ }+ @media (max-width: 580px) {+ .dnx-flow-arrow { display: none; }+ .dnx-empty-hero-flow { gap: 8px; }+ .dnx-flow-step { min-width: 70px; }+ .dnx-flow-icon { width: 48px; height: 48px; border-radius: 13px; }}/* ── Feature directory ── */diff --git a/vercel.json b/vercel.jsonindex c4033dbfa..59bff40b9 100644--- a/vercel.json+++ b/vercel.json@@ -1903,6 +1903,10 @@"src": "/api/agents/x402/manifest","dest": "/api/agents/x402/[action]?action=manifest"},+ {+ "src": "/api/agents/([^/]+)/wallet/([^/]+)",+ "dest": "/api/agents/[id]"+ },{"src": "/api/agents/([^/]+)/wallet","dest": "/api/agents/[id]"