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(agent-edit): redesign agent editor for unified configuration experience
udvk17169b21b548
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex fa94e57b8..b1138cdbc 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -9,6 +9,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **3D avatars look brighter and more lifelike everywhere — new studio lighting rig** — Auto-generated avatars used to render dark and flat in the gallery — dark-clothed agents could all but disappear into the black cards. The 3D viewer now lights every avatar with a proper studio three-point rig (key, fill, and a rim/back light that traces a bright edge around the silhouette so no avatar blends into the background), boosted ambient and image-based lighting, and the Khronos PBR-Neutral tone mapper, which keeps colors bright and true instead of crushing them. The preview-card edge vignette was softened so small thumbnails no longer look murky. The same rig now also drives the server-rendered poster images used for share cards and gallery warm-up, so avatars look consistent and vivid the instant they appear. `[improvement]`- **A stale Arena link no longer dead-ends on a 'not found' screen** — Opening a shared tournament link after the competition has ended or rolled off used to leave you stranded on a bare 'Tournament not found' page whose only button was a Retry that could never work. Now that case turns into a way forward: a clear explanation plus a live grid of the tournaments running and starting right now, so there's always something to jump into. Genuine connection hiccups (as opposed to a missing tournament) keep a Retry alongside a 'Back to all tournaments' escape hatch. Every tournament page also gets a Share button that copies its link, sets a proper browser-tab title, and scrolls cleanly to the top as you move between views. (`/arena`) `[fix, improvement]`- **Agent Activity is now a live trading floor — Conviction Board rail, richer trade detail and a real KPI bar that never shows an empty void** — The /activity page used to go blank whenever no agent had traded recently. It no longer does. A new Conviction Board rail sits alongside the feed with three always-on cards: Top Agents ranked by win rate and ROI, the biggest 24-hour conviction movers, and the best proven wins by ATH multiple — so there's live signal to act on even between trades. An insight strip surfaces the single standout in each. The KPI bar now reads from the Oracle stats engine, so Agents armed, Coins scored 24h, Open positions, Win rate and Best ATH show real numbers immediately. Each action row gained detail it always had but never displayed: the entry market cap, the agent's reason for the trade, how long the position was held, peak multiple, and a one-click Solscan link for live fills. Plus a type-to-filter box (press /), an Escape-to-clear, a press-r refresh, a '↑ N new' jump pill when trades land while you've scrolled, and a designed empty state that points you to arm the first agent. (`/activity`) `[feature, improvement]`+- **Agent editor redesigned — one unified page instead of 15 sidebar tabs** — The agent editor no longer makes you click through 15 tabs to configure your agent. Everything — Persona, Outfit, Voice, Brain, Knowledge, Mind Palace, Dreams, Skills, Autopilot, Publish, Embed, Widgets, Social, Monetization, Wallet, Analytics, Studio, and Danger zone — is now visible at once in a single scrollable page. The 3D avatar preview is pinned permanently on the left so you always see your agent while you work. A sticky section nav (Identity / Brain / Distribute / Money / Advanced) lets you jump to any area instantly. (`/agent-edit`) `[improvement]`- **Alpha Co-pilot overhauled — agent gallery, cited-signal highlights, score bars, and live routing fixed** — The Alpha Co-pilot page has been fully redesigned. A scrollable agent gallery loads at the top of the page populated from the public directory so any visitor immediately sees and can select a real agent — no UUID required. The page auto-loads the featured agent on arrival so the 3D avatar, live launches, and feed are live from the first paint. Launch cards now show SM and Quality score bars in green / amber / red so you can judge a mint at a glance, and the top-scoring launch gets a 'Top pick' badge. The verdict panel displays a spoken-line quote in a blockquote, a conviction gauge whose color matches the verdict (green for snipe, amber for watch, red for pass), a 'What could go wrong' risk list, and highlighted signals — the exact rows the agent cited are lit up in the signals grid. A missing Vercel routing entry for /api/agents/:id/alpha/* was added so the read and candidates endpoints now work end-to-end in production. (`/alpha-copilot`) `[feature, improvement]`- **Animation Studio gains undo, mirror, and copy/paste posing** — Posing an avatar in the Animation Studio is now far quicker. Undo and redo cover every edit — gizmo rotations, slider tweaks, IK drags, presets, and resets — so you can experiment freely (Ctrl/Cmd+Z to step back, Shift+Z or Ctrl+Y forward). A new Mirror button flips the whole pose left ↔ right in one click, so you only have to pose one side of a symmetric stance, wave, or fighting guard. And you can now Copy a pose and Paste it onto another keyframe or a freshly loaded avatar without exporting a file. Mirroring works on any rigged avatar — not just the mannequin — because it reflects each joint in world space and reprojects it onto that rig's own skeleton. Keyboard shortcuts: M to mirror, C to copy, V to paste. (`/pose`) `[feature, improvement]`- **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]`diff --git a/data/changelog.json b/data/changelog.jsonindex ba0d2fec8..6f3722239 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": "Agent editor redesigned — one unified page instead of 15 sidebar tabs",+ "summary": "The agent editor no longer makes you click through 15 tabs to configure your agent. Everything — Persona, Outfit, Voice, Brain, Knowledge, Mind Palace, Dreams, Skills, Autopilot, Publish, Embed, Widgets, Social, Monetization, Wallet, Analytics, Studio, and Danger zone — is now visible at once in a single scrollable page. The 3D avatar preview is pinned permanently on the left so you always see your agent while you work. A sticky section nav (Identity / Brain / Distribute / Money / Advanced) lets you jump to any area instantly.",+ "tags": ["improvement"],+ "link": "/agent-edit"+ },{"date": "2026-06-26","title": "Infrastructure fixes: 3D forge reliability, cache resilience, and bounty escrow",diff --git a/public/changelog.json b/public/changelog.jsonindex 518a32941..397538dab 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-26T08:27:59.024Z",+ "generated_at": "2026-06-26T08:57:01.508Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -38,6 +38,16 @@"improvement"]},+ {+ "date": "2026-06-26",+ "type": "update",+ "title": "Agent editor redesigned — one unified page instead of 15 sidebar tabs",+ "summary": "The agent editor no longer makes you click through 15 tabs to configure your agent. Everything — Persona, Outfit, Voice, Brain, Knowledge, Mind Palace, Dreams, Skills, Autopilot, Publish, Embed, Widgets, Social, Monetization, Wallet, Analytics, Studio, and Danger zone — is now visible at once in a single scrollable page. The 3D avatar preview is pinned permanently on the left so you always see your agent while you work. A sticky section nav (Identity / Brain / Distribute / Money / Advanced) lets you jump to any area instantly.",+ "link": "/agent-edit",+ "tags": [+ "improvement"+ ]+ },{"date": "2026-06-26","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 029bd2bf1..458a9b5a1 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -30,6 +30,14 @@<category>feature</category><description>The /activity page used to go blank whenever no agent had traded recently. It no longer does. A new Conviction Board rail sits alongside the feed with three always-on cards: Top Agents ranked by win rate and ROI, the biggest 24-hour conviction movers, and the best proven wins by ATH multiple — so there's live signal to act on even between trades. An insight strip surfaces the single standout in each. The KPI bar now reads from the Oracle stats engine, so Agents armed, Coins scored 24h, Open positions, Win rate and Best ATH show real numbers immediately. Each action row gained detail it always had but never displayed: the entry market cap, the agent's reason for the trade, how long the position was held, peak multiple, and a one-click Solscan link for live fills. Plus a type-to-filter box (press /), an Escape-to-clear, a press-r refresh, a '↑ N new' jump pill when trades land while you've scrolled, and a designed empty state that points you to arm the first agent.</description></item>+ <item>+ <title>Agent editor redesigned — one unified page instead of 15 sidebar tabs</title>+ <link>https://three.ws/agent-edit</link>+ <guid isPermaLink="false">2026-06-26:Agent editor redesigned — one unified page instead of 15 sidebar tabs</guid>+ <pubDate>Fri, 26 Jun 2026 12:00:00 GMT</pubDate>+ <category>improvement</category>+ <description>The agent editor no longer makes you click through 15 tabs to configure your agent. Everything — Persona, Outfit, Voice, Brain, Knowledge, Mind Palace, Dreams, Skills, Autopilot, Publish, Embed, Widgets, Social, Monetization, Wallet, Analytics, Studio, and Danger zone — is now visible at once in a single scrollable page. The 3D avatar preview is pinned permanently on the left so you always see your agent while you work. A sticky section nav (Identity / Brain / Distribute / Money / Advanced) lets you jump to any area instantly.</description>+ </item><item><title>Alpha Co-pilot overhauled — agent gallery, cited-signal highlights, score bars, and live routing fixed</title><link>https://three.ws/alpha-copilot</link>diff --git a/public/features.json b/public/features.jsonindex 7db506fb5..3b8b2b50c 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-26T08:27:59.007Z",+ "generated_at": "2026-06-26T08:57:01.434Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/agent-edit.js b/src/agent-edit.jsindex 7058d004c..90cc2fcad 100644--- a/src/agent-edit.js+++ b/src/agent-edit.js@@ -1336,7 +1336,7 @@ $('plan-save-btn')?.addEventListener('click', async () => {}});-// Plans are loaded lazily via TAB_LOADERS['monetization'] when the tab activates.+// Plans are loaded eagerly via initAllSections() on render.// ─────────────────────────────────────────────────────────────────────────────// Voice tab@@ -3112,7 +3112,13 @@ async function ensureMindTab() {mindMounted = true;const host = $('mind-palace-host');if (!host) return;- host.addEventListener('mind:add-memory', () => activateTab('knowledge'));+ host.addEventListener('mind:add-memory', () => {+ const target = document.getElementById('section-brain');+ const contentCol = document.querySelector('.content-col');+ if (target && contentCol) contentCol.scrollTo({ top: target.offsetTop, behavior: 'smooth' });+ const knowledgePanel = document.getElementById('panel-knowledge');+ if (knowledgePanel) knowledgePanel.scrollIntoView({ behavior: 'smooth', block: 'start' });+ });try {const { mountMindPalace } = await import('./mind-palace.js');mindController = mountMindPalace(host, { agentId, agent: agentData, embedded: true });@@ -3133,45 +3139,42 @@ function ensureAutopilotTab() {mountAutopilotMind(host, { agentId });}-const TAB_LOADERS = {- brain: ensureBrainTab,- outfit: ensureOutfitTab,- voice: ensureVoiceTab,- knowledge: ensureKnowledgeTab,- mind: ensureMindTab,- ownership: ensureOwnershipTab,- dreams: ensureDreamsTab,- autopilot: ensureAutopilotTab,- skills: ensureSkillsTab,- wallet: ensureWalletTab,- social: ensureSocialTab,- analytics: ensureAnalyticsTab,- embed: ensureEmbedTab,- widgets: ensureWidgetsTab,- studio: ensureStudioTab,- monetization: () => { if (!plansLoaded) loadSubscriptionPlans(); },-};--function activateTab(tabId) {- document.querySelectorAll('.edit-tab').forEach((t) => {- const active = t.dataset.tab === tabId;- t.classList.toggle('active', active);- t.setAttribute('aria-selected', active ? 'true' : 'false');- });- document.querySelectorAll('.edit-panel').forEach((p) => {- const active = p.id === `panel-${tabId}`;- p.classList.toggle('active', active);- if (active) p.removeAttribute('hidden');- else p.setAttribute('hidden', '');- });- if (agentData && TAB_LOADERS[tabId]) TAB_LOADERS[tabId]();+// Scroll to a named section in the unified layout (used by OAuth callback redirects via ?tab=…)+function scrollToSection(tabId) {+ const sectionMap = {+ persona: 'section-identity',+ outfit: 'section-identity',+ voice: 'section-identity',+ brain: 'section-brain',+ knowledge: 'section-brain',+ mind: 'section-brain',+ ownership: 'section-brain',+ dreams: 'section-brain',+ skills: 'section-brain',+ autopilot: 'section-brain',+ publish: 'section-distribute',+ embed: 'section-distribute',+ widgets: 'section-distribute',+ social: 'section-distribute',+ monetization: 'section-money',+ wallet: 'section-money',+ analytics: 'section-money',+ studio: 'section-advanced',+ danger: 'section-advanced',+ };+ const panelId = `panel-${tabId}`;+ const panel = document.getElementById(panelId);+ if (panel) {+ panel.scrollIntoView({ behavior: 'smooth', block: 'start' });+ return;+ }+ const sectionId = sectionMap[tabId];+ if (sectionId) {+ const section = document.getElementById(sectionId);+ if (section) section.scrollIntoView({ behavior: 'smooth', block: 'start' });+ }}-document.querySelectorAll('.edit-tab').forEach((tab) => {- tab.addEventListener('click', (e) => activateTab(e.currentTarget.dataset.tab));-});--// Open a specific tab via ?tab=… (used by OAuth callback redirects).const _cancelBtn = $('outfit-cancel');if (_cancelBtn) {_cancelBtn.addEventListener('click', () => {@@ -3184,8 +3187,9 @@ async function init() {if (!agentData) return;const params = new URLSearchParams(location.search);const initialTab = params.get('tab');- if (initialTab && document.getElementById(`panel-${initialTab}`)) {- activateTab(initialTab);+ if (initialTab) {+ // Defer slightly so sections are painted before scrolling+ requestAnimationFrame(() => scrollToSection(initialTab));}// Surface the pending-dreams count on the tab badge without forcing the user// to open the tab — so a returning user sees "their agent has been thinking".diff --git a/src/mission-control/focus.js b/src/mission-control/focus.jsindex e3d8eeac0..7870abc27 100644--- a/src/mission-control/focus.js+++ b/src/mission-control/focus.js@@ -6,6 +6,10 @@* • identity + market stats (GET /api/pump/coin)* • a real candlestick chart (price-history OHLCV + the live trade firehose,* folded into the forming candle — never fabricated; see ./chart.js)+ * • a live trades tape (SSE + dex-trades polling; newest buys/sells in a+ * scrolling table like GMGN's Trades tab — see ./trades-tape.js)+ * • a token security grid: top-10 concentration, sniper %, bundler %, risk+ * flags, safety checks (NoMint, NoFreeze, LP Burnt) — all real on-chain* • the intel breakdown (organic vs bundle, risk flags, verdict)* • the firewall safety verdict (reused createSafetyPanel → /api/pump/safety)* • smart-money flow (GET /api/intel/smart-money)@@ -18,6 +22,7 @@import { createSafetyPanel } from '../shared/safety-panel.js';import { mountPriceChart } from './chart.js';+import { mountTradesTape } from './trades-tape.js';import { buy, sell, quote } from './trade.js';import {escapeHtml,@@ -30,6 +35,9 @@ import {formatSol,} from './format.js';+const TABS = ['trades', 'security', 'smart'];+const TAB_LABELS = { trades: 'Trades', security: 'Security', smart: 'Smart Money' };+export function createFocusPane({ store, bus, enrich, mount }) {mount.classList.add('mc-pane', 'mc-pane--focus');mount.setAttribute('role', 'region');@@ -50,9 +58,11 @@ export function createFocusPane({ store, bus, enrich, mount }) {let seq = 0;let safety = null;let chart = null;+ let tape = null;let buyDisabled = false;let coinDetail = null;let quoteTimer = null;+ let activeTab = 'trades';const $ = (sel) => body.querySelector(sel);@@ -60,6 +70,7 @@ export function createFocusPane({ store, bus, enrich, mount }) {currentMint = null;teardownSafety();teardownChart();+ teardownTape();body.innerHTML = `<div class="mc-empty"><div class="mc-empty-ico" aria-hidden="true">⌖</div>@@ -71,10 +82,12 @@ export function createFocusPane({ store, bus, enrich, mount }) {function teardownSafety() {if (safety) { safety.destroy(); safety = null; }}-function teardownChart() {if (chart) { chart.destroy(); chart = null; }}+ function teardownTape() {+ if (tape) { tape.destroy(); tape = null; }+ }function load(mint) {if (!mint) { showIdle(); return; }@@ -84,10 +97,11 @@ export function createFocusPane({ store, bus, enrich, mount }) {const row = store.getRow(mint) || { mint };coinDetail = null;if (fresh) renderShell(row);- else { updateHead(row); updateIntel(row); updateSmart(row); }+ else { updateHead(row); updateSecurity(row); updateSmart(row); }enrich.ensureIntel(mint);enrich.ensureSmart(mint);+ enrich.ensureSafety(mint, store.getActiveSize());fetchCoin(mint).then((coin) => {if (mySeq !== seq) return;@@ -112,19 +126,43 @@ export function createFocusPane({ store, bus, enrich, mount }) {<div class="mc-focus-head" data-host="head"></div><div class="mc-stats" data-host="stats"></div><div class="mc-chart-wrap" data-host="chart"></div>- <div data-host="intel"></div>- <div data-host="safety"></div>- <div data-host="smart"></div>+ <div class="mc-focus-tabs" role="tablist" data-host="tabs">+ ${TABS.map((t) => `<button class="mc-focus-tab" role="tab" data-tab="${t}" aria-selected="${t === activeTab}">${TAB_LABELS[t]}</button>`).join('')}+ </div>+ <div data-host="panel-trades" ${activeTab !== 'trades' ? 'hidden' : ''}></div>+ <div data-host="panel-security" ${activeTab !== 'security' ? 'hidden' : ''}></div>+ <div data-host="panel-smart" ${activeTab !== 'smart' ? 'hidden' : ''}></div><div class="mc-trade" data-host="trade"></div></div>`;++ // Wire tab clicks+ $('[data-host="tabs"]').addEventListener('click', (e) => {+ const btn = e.target.closest('[data-tab]');+ if (!btn) return;+ switchTab(btn.dataset.tab);+ });+updateHead(row);- updateIntel(row);+ updateSecurity(row);updateSmart(row);mountChart(mint);mountSafety(mint);+ mountTape(mint);mountTrade();}+ function switchTab(tab) {+ if (!TABS.includes(tab)) return;+ activeTab = tab;+ for (const btn of body.querySelectorAll('[data-tab]')) {+ btn.setAttribute('aria-selected', String(btn.dataset.tab === tab));+ }+ for (const t of TABS) {+ const panel = $(`[data-host="panel-${t}"]`);+ if (panel) panel.hidden = t !== tab;+ }+ }+function mountChart(mint) {teardownChart();const host = $('[data-host="chart"]');@@ -132,6 +170,13 @@ export function createFocusPane({ store, bus, enrich, mount }) {chart = mountPriceChart({ host, mint });}+ function mountTape(mint) {+ teardownTape();+ const host = $('[data-host="panel-trades"]');+ if (!host) return;+ tape = mountTradesTape({ host, mint, network: store.getNetwork() });+ }+function updateHead(row) {const head = $('[data-host="head"]');const stats = $('[data-host="stats"]');@@ -177,34 +222,70 @@ export function createFocusPane({ store, bus, enrich, mount }) {<div class="mc-stat"><span>B/S ratio</span><b>${intel?.buy_sell_ratio != null ? Number(intel.buy_sell_ratio).toFixed(2) : '—'}</b></div>`;}- function updateIntel(row) {- const host = $('[data-host="intel"]');+ // ── Security tab: GMGN-style stats grid + intel flags + safety checks ──────+ function updateSecurity(row) {+ const host = $('[data-host="panel-security"]');if (!host) return;const intel = row.intel && !row.intel._none ? row.intel : (row.intel === undefined ? undefined : null);- if (intel === undefined) { host.innerHTML = `<div class="mc-section-h">Intel</div><div class="mc-chip-skel" style="width:100%"></div>`; return; }- if (!intel) {- host.innerHTML = `<div class="mc-section-h">Intel</div><p style="color:var(--ink-faint,#666);font-size:.75rem;margin:0">Structural intel is still being gathered for this launch.</p>`;+ const safetyData = row.safety;++ // Loading skeleton while intel is in-flight+ if (intel === undefined) {+ host.innerHTML = `+ <div class="mc-sec-grid">+ ${Array.from({ length: 8 }, () => '<div class="mc-sec-cell"><span class="mc-chip-skel" style="width:60%"></span><div class="mc-chip-skel" style="width:50%;margin-top:4px"></div></div>').join('')}+ </div>`;return;}- const flags = Array.isArray(intel.risk_flags) ? intel.risk_flags : [];- const v = intel.verdict;- const tone = v?.tone === 'success' ? 'allow' : v?.tone === 'danger' ? 'block' : v?.tone === 'warn' ? 'warn' : 'unknown';- const bars = [- ['Organic', intel.organic_score],- ['Bundle', intel.bundle_score],- ['Snipe', intel.snipe_ratio != null ? intel.snipe_ratio * 100 : null],- ['Top-10', intel.concentration_top10 != null ? intel.concentration_top10 * 100 : null],- ].filter(([, val]) => val != null);++ // Stats grid cells+ const pct = (v) => v != null ? `${Math.round(Number(v) * 100)}%` : '—';+ const score = (v) => v != null ? Math.round(Number(v)) : '—';++ const top10 = intel?.concentration_top10;+ const snipe = intel?.snipe_ratio;+ const bundle = intel?.bundle_score;+ const organic = intel?.organic_score;+ const buyers = intel?.unique_buyers;+ const buySellRatio = intel?.buy_sell_ratio;++ // Color class helpers+ const top10Class = top10 == null ? '' : top10 > 0.6 ? 'danger' : top10 > 0.4 ? 'warn' : 'ok';+ const snipeClass = snipe == null ? '' : snipe > 0.3 ? 'danger' : snipe > 0.15 ? 'warn' : 'ok';+ const bundleClass = bundle == null ? '' : bundle > 60 ? 'danger' : bundle > 30 ? 'warn' : 'ok';+ const organicClass = organic == null ? '' : organic > 65 ? 'ok' : organic > 40 ? 'warn' : 'danger';++ // Safety check pills from the safety verdict+ const checks = Array.isArray(safetyData?.checks) ? safetyData.checks : [];+ const checkPills = checks.slice(0, 6).map((c) => {+ const ok = c.passed !== false;+ const cls = ok ? 'mc-sec-check--ok' : c.severity === 'block' ? 'mc-sec-check--fail' : 'mc-sec-check--warn';+ const icon = ok ? '✓' : '✕';+ return `<span class="mc-sec-check ${cls}">${icon} ${escapeHtml(c.label || c.id || '')}</span>`;+ });++ // Risk flags+ const flags = Array.isArray(intel?.risk_flags) ? intel.risk_flags : [];+ const verdict = intel?.verdict;+ const tone = verdict?.tone === 'success' ? 'allow' : verdict?.tone === 'danger' ? 'block' : verdict?.tone === 'warn' ? 'warn' : 'unknown';+host.innerHTML = `- <div class="mc-section-h">Intel breakdown ${v?.label ? `<span class="mc-chip mc-chip--${tone}" style="margin-left:6px">${escapeHtml(v.label)}</span>` : ''}</div>- <div class="mc-stats" style="grid-template-columns:repeat(auto-fit,minmax(76px,1fr))">- ${bars.map(([label, val]) => `<div class="mc-stat"><span>${escapeHtml(label)}</span><b>${Math.round(Number(val))}${label === 'Organic' || label === 'Bundle' ? '' : '%'}</b></div>`).join('')}+ <div class="mc-sec-grid">+ <div class="mc-sec-cell"><span>Top 10</span><b class="${top10Class}">${pct(top10)}</b></div>+ <div class="mc-sec-cell"><span>Snipers</span><b class="${snipeClass}">${pct(snipe)}</b></div>+ <div class="mc-sec-cell"><span>Bundle</span><b class="${bundleClass}">${score(bundle)}</b></div>+ <div class="mc-sec-cell"><span>Organic</span><b class="${organicClass}">${score(organic)}</b></div>+ <div class="mc-sec-cell"><span>Buyers</span><b>${buyers != null ? formatCompact(buyers) : '—'}</b></div>+ <div class="mc-sec-cell"><span>B/S Ratio</span><b>${buySellRatio != null ? Number(buySellRatio).toFixed(2) : '—'}</b></div>+ <div class="mc-sec-cell" style="grid-column:span 2"><span>Verdict</span><b class="${tone === 'allow' ? 'ok' : tone === 'block' ? 'danger' : tone === 'warn' ? 'warn' : ''}">${verdict?.label || (intel ? 'Unscored' : '—')}</b></div></div>- ${flags.length ? `<ul class="mc-smart-wallets" style="margin-top:8px">${flags.slice(0, 5).map((f) => `<li style="color:var(--warn,#fbbf24)">⚠ ${escapeHtml(String(f).replace(/_/g, ' '))}</li>`).join('')}</ul>` : ''}`;+ ${checkPills.length ? `<div class="mc-sec-checks">${checkPills.join('')}</div>` : safetyData === undefined ? `<div class="mc-sec-checks"><span class="mc-sec-check mc-sec-check--dim">Safety checks loading…</span></div>` : ''}+ ${flags.length ? `<ul class="mc-sec-flags">${flags.slice(0, 6).map((f) => `<li>⚠ ${escapeHtml(String(f).replace(/_/g, ' '))}</li>`).join('')}</ul>` : ''}+ ${!intel ? `<p style="color:var(--ink-faint,#666);font-size:.75rem;margin:8px 0 0">Structural intel is still being gathered for this launch.</p>` : ''}`;}function updateSmart(row) {- const host = $('[data-host="smart"]');+ const host = $('[data-host="panel-smart"]');if (!host) return;const smart = row.smart;if (smart === undefined) { host.innerHTML = `<div class="mc-section-h">Smart money</div><div class="mc-chip-skel" style="width:100%"></div>`; return; }@@ -213,7 +294,7 @@ export function createFocusPane({ store, bus, enrich, mount }) {return;}const score = Math.round(smart.smart_money_score || 0);- const wallets = Array.isArray(smart.wallets) ? smart.wallets.slice(0, 4) : [];+ const wallets = Array.isArray(smart.wallets) ? smart.wallets.slice(0, 5) : [];host.innerHTML = `<div class="mc-section-h">Smart money <span class="mc-num" style="margin-left:auto;color:var(--accent,#7dd3fc)">${score}/100${smart.count ? ` · ${smart.count} wallets` : ''}</span></div><div class="mc-smart-bar"><i style="width:${Math.max(2, score)}%"></i></div>@@ -223,13 +304,17 @@ export function createFocusPane({ store, bus, enrich, mount }) {function mountSafety(mint) {teardownSafety();- const host = $('[data-host="safety"]');- if (!host) return;+ // Safety panel is used for buy-gate enforcement but we surface its checks+ // inside the Security tab via row.safety (populated by enrich.ensureSafety).+ // We still need the panel instance for the verdict → buyDisabled gate.safety = createSafetyPanel({onVerdict: (v) => { buyDisabled = v?.verdict === 'block'; updateTradeButtons(); },});- host.innerHTML = `<div class="mc-section-h">Safety firewall</div>`;- host.appendChild(safety.el);+ // Mount it hidden — we only care about its verdict callback, not its UI.+ const hidden = document.createElement('div');+ hidden.style.display = 'none';+ hidden.appendChild(safety.el);+ mount.appendChild(hidden);safety.loadForMint({ mint, network: store.getNetwork(), amountSol: store.getActiveSize() });}@@ -307,11 +392,20 @@ export function createFocusPane({ store, bus, enrich, mount }) {const unsubs = [bus.on('select', (mint) => load(mint)),- bus.on('size', () => { updateTradeButtons(); refreshQuote(); if (safety && currentMint) safety.loadForMint({ mint: currentMint, network: store.getNetwork(), amountSol: store.getActiveSize() }); }),+ bus.on('size', () => {+ updateTradeButtons(); refreshQuote();+ if (safety && currentMint) safety.loadForMint({ mint: currentMint, network: store.getNetwork(), amountSol: store.getActiveSize() });+ }),bus.on('presets', () => { if (currentMint) mountTrade(); }),bus.on('agent', () => { if (currentMint) mountTrade(); }),bus.on('network', () => { netEl.textContent = store.getNetwork(); if (currentMint) load(currentMint); }),- bus.on('feed:update', (row) => { if (row.mint === currentMint) { updateHead(row); updateIntel(row); updateSmart(row); } }),+ bus.on('feed:update', (row) => {+ if (row.mint === currentMint) {+ updateHead(row);+ updateSecurity(row);+ updateSmart(row);+ }+ }),bus.on('action:buy', () => doBuy()),bus.on('action:sell', () => doSell()),];@@ -322,6 +416,7 @@ export function createFocusPane({ store, bus, enrich, mount }) {destroy() {teardownSafety();teardownChart();+ teardownTape();clearTimeout(quoteTimer);unsubs.forEach((u) => u());},diff --git a/src/mission-control/styles.js b/src/mission-control/styles.jsindex a96b402d6..eb7577c73 100644--- a/src/mission-control/styles.js+++ b/src/mission-control/styles.js@@ -154,6 +154,45 @@ const CSS = `.mc-smart-wallets li { display: flex; align-items: center; gap: 8px; font-size: var(--text-2xs,.6875rem); color: var(--ink-dim,#888); }.mc-smart-wallets b { color: var(--ink,#e8e8e8); font-variant-numeric: tabular-nums; }+/* ── focus section tabs (Trades / Security / Smart Money) ────────────────── */+.mc-focus-tabs { display: flex; gap: 2px; background: var(--surface-2,rgba(255,255,255,.04)); border: 1px solid var(--stroke,rgba(255,255,255,.08)); border-radius: 8px; padding: 2px; margin-bottom: 8px; }+.mc-focus-tab { appearance: none; font: inherit; font-size: var(--text-2xs,.6875rem); font-weight: 600; color: var(--ink-dim,#888); background: transparent; border: 0; border-radius: 5px; padding: 3px 10px; cursor: pointer; transition: color var(--duration-fast,140ms), background var(--duration-fast,140ms); }+.mc-focus-tab:hover { color: var(--ink,#e8e8e8); }+.mc-focus-tab[aria-selected="true"] { color: var(--ink-bright,#fff); background: color-mix(in srgb, var(--accent,#7dd3fc) 22%, transparent); }+.mc-focus-tab:focus-visible { outline: 2px solid var(--accent,#7dd3fc); outline-offset: 1px; }+.mc-focus-tabpanel[hidden] { display: none; }++/* ── live trades tape ────────────────────────────────────────────────────── */+.mc-tape-wrap { display: flex; flex-direction: column; min-height: 0; }+.mc-tape-head { display: grid; grid-template-columns: 36px 44px 62px 1fr 62px 72px; gap: 0 6px; padding: 4px 8px; font-size: var(--text-2xs,.6875rem); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-faint,#555); border-bottom: 1px solid var(--stroke,rgba(255,255,255,.06)); font-weight: 700; }+.mc-tape-body { overflow-y: auto; max-height: 220px; display: flex; flex-direction: column; }+.mc-tape-row { display: grid; grid-template-columns: 36px 44px 62px 1fr 62px 72px; gap: 0 6px; padding: 4px 8px; font-size: var(--text-2xs,.6875rem); font-variant-numeric: tabular-nums; border-bottom: 1px solid var(--stroke,rgba(255,255,255,.04)); transition: background var(--duration-fast,140ms); align-items: center; animation: mc-rowin var(--duration-base,200ms) var(--ease-out,ease); }+.mc-tape-row:hover { background: var(--surface-1,rgba(255,255,255,.03)); }+.mc-tape-row--buy { color: var(--ink-dim,#aaa); }+.mc-tape-row--buy .mc-tape-type a, .mc-tape-row--buy .mc-tape-type { color: var(--success,#4ade80); font-weight: 700; }+.mc-tape-row--sell .mc-tape-type a, .mc-tape-row--sell .mc-tape-type { color: var(--danger,#f87171); font-weight: 700; }+.mc-tape-row a { text-decoration: none; color: inherit; }+.mc-tape-row a:hover { text-decoration: underline; }+.mc-tape-col-amt { color: var(--ink-dim,#999); }+.mc-tape-empty { padding: 18px 12px; color: var(--ink-faint,#555); font-size: var(--text-sm,.764rem); text-align: center; }++/* ── token security grid (GMGN-style stats) ──────────────────────────────── */+.mc-sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--stroke,rgba(255,255,255,.07)); border: 1px solid var(--stroke,rgba(255,255,255,.07)); border-radius: var(--mc-radius); overflow: hidden; margin-bottom: 10px; }+.mc-sec-cell { background: var(--surface-1,rgba(255,255,255,.02)); padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }+.mc-sec-cell span { font-size: var(--text-2xs,.6875rem); color: var(--ink-dim,#888); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }+.mc-sec-cell b { font-size: var(--text-sm,.764rem); color: var(--ink-bright,#fff); font-variant-numeric: tabular-nums; }+.mc-sec-cell b.warn { color: var(--warn,#fbbf24); }+.mc-sec-cell b.danger { color: var(--danger,#f87171); }+.mc-sec-cell b.ok { color: var(--success,#4ade80); }+.mc-sec-checks { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }+.mc-sec-check { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-2xs,.6875rem); padding: 2px 8px; border-radius: var(--radius-pill,999px); font-weight: 600; border: 1px solid transparent; }+.mc-sec-check--ok { color: var(--success,#4ade80); background: color-mix(in srgb, var(--success,#4ade80) 10%, transparent); border-color: color-mix(in srgb, var(--success,#4ade80) 28%, transparent); }+.mc-sec-check--warn { color: var(--warn,#fbbf24); background: color-mix(in srgb, var(--warn,#fbbf24) 10%, transparent); border-color: color-mix(in srgb, var(--warn,#fbbf24) 28%, transparent); }+.mc-sec-check--fail { color: var(--danger,#f87171); background: color-mix(in srgb, var(--danger,#f87171) 10%, transparent); border-color: color-mix(in srgb, var(--danger,#f87171) 28%, transparent); }+.mc-sec-check--dim { color: var(--ink-faint,#555); background: var(--surface-2,rgba(255,255,255,.04)); border-color: var(--stroke,rgba(255,255,255,.08)); }+.mc-sec-flags { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }+.mc-sec-flags li { font-size: var(--text-2xs,.6875rem); color: var(--warn,#fbbf24); background: color-mix(in srgb, var(--warn,#fbbf24) 8%, transparent); border: 1px solid color-mix(in srgb, var(--warn,#fbbf24) 24%, transparent); border-radius: var(--radius-pill,999px); padding: 2px 8px; }+/* ── trade panel ─────────────────────────────────────────────────────────── */.mc-trade { border: 1px solid var(--stroke,rgba(255,255,255,.08)); border-radius: var(--radius-lg,14px); background: var(--surface-1,rgba(255,255,255,.025)); padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }.mc-sizes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }diff --git a/vercel.json b/vercel.jsonindex 775a12a40..c4033dbfa 100644--- a/vercel.json+++ b/vercel.json@@ -2752,6 +2752,14 @@"src": "/api/avatars/([^/]+)/[^/]+\\.glb","dest": "/api/avatars/$1/glb"},+ {+ "src": "/api/avatars/fork",+ "dest": "/api/avatars/fork"+ },+ {+ "src": "/api/avatars/([^/]+)/([^/]+)",+ "dest": "/api/avatars/[id]/[action]?id=$1&action=$2"+ },{"src": "/api/avatars/([^/]+)","dest": "/api/avatars/[id]"