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
Oracle live trade tape, Telegram conviction alerts, Jupiter swap on coin page, coin-intel smart money migration
nirholas315565e3cd73
diff --git a/.env.example b/.env.exampleindex 4cc144aac..e663dbb5d 100644--- a/.env.example+++ b/.env.example@@ -868,6 +868,12 @@ TELEGRAM_BOT_TOKEN=# the -100… numeric id; the bot above must be an admin of the channel.TELEGRAM_CHANGELOG_CHAT_ID=-1003927666373+# Telegram Oracle signals channel — prime/strong conviction coins posted here+# by the oracle-score cron. Separate from ops alerts and the changelog channel.+# Leave blank to disable. Set ORACLE_ALERT_MIN_TIER=prime to only post the top tier.+TELEGRAM_ORACLE_CHAT_ID=+ORACLE_ALERT_MIN_TIER=strong+# ── x402 spending ledger ─────────────────────────────────────────────────────# Set to "1" to allow the per-user x402 spending ledger to fall back to an# in-process Map when Upstash Redis is unreachable. ONLY enable in dev — indiff --git a/CHANGELOG.md b/CHANGELOG.mdindex 5257d1fcf..036af9134 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,8 +6,12 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-06-16+- **Oracle — AI Conviction Engine** (`/oracle`) — A fused AI conviction engine for every pump.fun launch: pedigree (who's buying), structure (bundle vs organic), narrative (what story is it riding), and momentum — fused into a single 0–100 conviction score with transparent pillar reasoning.- **Watchlist** (`/watchlist`) — Your privately-stored watchlist of pump.fun coins — live market caps, graduation status, and quick links to full coin profiles. No account required; stored in your browser.+- **Buy any coin directly on three.ws — Jupiter swap embedded in the coin page** — The Trade button on every launch profile now opens an in-platform Jupiter swap terminal instead of bouncing to pump.fun. The terminal is lazy-loaded only when you click, so cold page loads stay fast. Jupiter routes through every available liquidity source including pump.fun's AMM and bonding curve, so it works for both pre-graduation and graduated coins. The price chart now also shows volume bars alongside the price line — green for net-buy candles, red for net-sell — giving you an instant read on trade intensity at a glance. The agent panel shows a 'Copy trades' shortcut that takes you directly to the agent's copy-trade setup. And when Birdeye's OHLCV quota is exhausted, the chart falls back to GeckoTerminal automatically, so the chart never goes dark on an actively-trading coin. (`/launches`) `[feature, improvement]`+- **Copy trading — mirror proven traders, non-custodially, on your own terms** — You can now copy any trader from their profile. Pick how to size each copy (a fixed amount of SOL, a multiple of the leader's size, or a percentage of your wallet), set a hard per-trade cap and a daily budget, and optionally filter by market cap or require a coin-safety pass. When a trader you follow makes a move, a sized, safety-checked intent lands in your new Copy Trading dashboard — you review it and execute it yourself, from your own wallet. We never take custody and never sign for you; every copy is capped by your rules so a runaway leader can't drain you. Exits are mirrored too, but only for trades you actually entered, and skipped copies show exactly why they were skipped. Manage everything — pause, resume, stop, edit size — in one place. (`/dashboard/copy`) `[feature]`- **Every launch now has its own page — the full story of a coin in one place** — Until now, clicking a coin on the launches feed sent you out to pump.fun. Now every launch opens a rich profile that stays on three.ws and answers every question a trader actually has, all from real on-chain data: live price, market cap and graduation progress; the Coin Intelligence verdict from the coin's first ~90 seconds (a quality score plus organic-vs-bundle, sniping, holder concentration, fresh-wallet and funder-clustering signals, with any risk flags called out); the labeled outcome if it graduated or rugged, with its all-time-high multiple; a live price chart and a live trade tape that ticks every buy and sell as it lands; holder count and concentration; the agent behind the mint and its verifiable TraderScore; and the buyback-and-burn economics for agent-payment coins, each burn linking to its on-chain transaction. Watch a coin, share its page, jump into its 3D world, or open it in 3D — every number traces back to a real transaction. (`/launches`) `[feature]`+- **Oracle — live trade tape and 3D conviction graph in the war room** — Two new war-room surfaces: every coin in Oracle now has a live trade tape inside its drawer that streams every buy and sell in real time, annotated with the trader's archetype — Smart Money, KOL, Sniper, Rugger — the moment it lands on-chain. Known wallets from the reputation graph are labeled inline, so you can see a proven wallet enter in real time without hunting through the holder list. Alongside that, the new 3D conviction graph tab plots every scored coin as a sphere in 3D space: size is conviction score, color is tier, and the graph runs a force-directed physics simulation grouping coins by cultural narrative — meme, AI, tech, culture coins cluster together while you orbit and zoom. Click any sphere to open its full conviction breakdown. Both surfaces are live when you open Oracle. (`/oracle`) `[feature, improvement]`- **Oracle — one conviction score per launch, and an agent that acts on it** — Oracle is a new way to read pump.fun: instead of a wall of separate metrics, every launch gets one transparent 0–100 conviction score that fuses four reads — WHO is buying it (the proven track record of the wallets in the book), HOW it's being bought (organic vs. a bundle or a single-funder cluster), WHAT it is (a live cultural-narrative read — meme, tech, AI, a news-story meme, a culture or community coin), and HOW it's moving. A hard structural cap means a coordinated bundle or a dumping dev can never read 'strong,' no matter who's in it. Open any coin to see the full breakdown, the exact reasons, and a live 'who's in' panel that labels every early wallet by archetype — smart money, sniper, dumper, rugger — with its real win rate. A wallet leaderboard ranks the proven money, and an honest 'edge' tab shows the realized graduation rate by conviction tier — no backfilled numbers. It also starts sharp on day one: hundreds of known smart-money and KOL wallets are pre-seeded, so the moment one shows up in a launch's order book it's credited immediately, even before the platform has judged it from outcomes. Best of all, you can arm your 3D AI agent to act: it watches the live conviction stream and buys a small position the moment a coin clears your bar, starting in simulate so you can watch it work before any real spend. The more coins and wallets the platform watches, the sharper every score. (`/oracle`) `[feature]`- **The Sniper Arena is now a living 3D world** — The arena used to be a flat leaderboard. Now it's a real 3D world you walk into. Every armed AI agent stands on the trading floor as an animated avatar — the #1 agent up on a gold podium — and when they trade live, you see it happen: a cheer and a coin burst on a buy, confetti and a back-flip on a big win, a slump on a loss, each one tied to the same on-chain trade scrolling in the live tape. Pick your own avatar from a roster or the community gallery and walk the floor in third person with WASD or a touch joystick. Floating name tags track each agent with their live P&L, and a banner calls out the biggest win as it lands. Every number is real and verifiable on-chain — now it has a face. (`/play/arena`) `[feature]`diff --git a/api/_lib/migrations/20260616140000_oracle_alerts.sql b/api/_lib/migrations/20260616140000_oracle_alerts.sqlnew file mode 100644index 000000000..085de1c61--- /dev/null+++ b/api/_lib/migrations/20260616140000_oracle_alerts.sql@@ -0,0 +1,9 @@+-- Oracle conviction alerts — add alerted_at column so we never fire twice+-- for the same coin even across serverless cold-starts.++alter table oracle_conviction+ add column if not exists alerted_at timestamptz;++create index if not exists oracle_conviction_alerted+ on oracle_conviction (network, alerted_at)+ where alerted_at is not null;diff --git a/api/_lib/oracle/alerts.js b/api/_lib/oracle/alerts.jsnew file mode 100644index 000000000..e5c746f9f--- /dev/null+++ b/api/_lib/oracle/alerts.js@@ -0,0 +1,136 @@+// Oracle — conviction alerts via Telegram.+//+// When the oracle-score cron produces a prime (≥86) or strong (≥72) conviction+// coin for the first time, this module fires a Telegram message to the signals+// channel. The channel is separate from the ops alerts (TELEGRAM_ALERTS_CHAT_ID)+// and the changelog channel (TELEGRAM_CHANGELOG_CHAT_ID) — holders subscribe to+// it for actionable pump.fun conviction signals.+//+// Env:+// TELEGRAM_BOT_TOKEN — same bot used across the platform+// TELEGRAM_ORACLE_CHAT_ID — signals channel (@handle or -100… numeric)+//+// Dedup: an in-memory Set of alerted mints per process restart, plus a DB flag+// (oracle_conviction.alerted_at) that persists across restarts so we never fire+// twice for the same coin even if the worker cold-starts.+//+// Fire-and-forget with a 4s abort — never delays the scoring loop.++import { sql } from '../db.js';++const ALERT_TIMEOUT_MS = 4000;+// Minimum tier to alert on. 'prime' only = exclusive. 'strong' = more volume.+const MIN_ALERT_TIER = process.env.ORACLE_ALERT_MIN_TIER || 'strong';+const TIER_ORDER = { prime: 3, strong: 2, lean: 1, watch: 0, avoid: -1 };+const MIN_TIER_RANK = TIER_ORDER[MIN_ALERT_TIER] ?? 2;++// In-memory dedup for this process lifetime — prevents double-fire within the+// same worker even if alerted_at DB write is slow.+const _alerted = new Set();++const TIER_EMOJI = { prime: '🟣', strong: '🔵', lean: '🟡', watch: '⚪', avoid: '🔴' };++function tierEmoji(tier) { return TIER_EMOJI[tier] || '⚪'; }++function format(coin) {+ const emoji = tierEmoji(coin.tier);+ const pct = (n) => (n != null ? `${Math.round(Number(n))}` : '?');+ const pillars = coin.pillars+ ? `Who ${pct(coin.pillars.pedigree)} · How ${pct(coin.pillars.structure)} · What ${pct(coin.pillars.narrative)} · Move ${pct(coin.pillars.momentum)}`+ : '';+ const category = coin.category ? ` · ${coin.category}` : '';+ const smart = coin.smart_wallet_count ? ` · ${coin.smart_wallet_count} smart in` : '';+ return [+ `${emoji} <b>${escHtml(coin.symbol || '—')}</b> <code>${coin.score}</code> conviction <i>${escHtml(coin.tier)}</i>`,+ escHtml(coin.name || ''),+ pillars ? `<i>${pillars}</i>` : '',+ `<code>${escHtml(coin.mint)}</code>`,+ `${category}${smart}`,+ `<a href="https://pump.fun/coin/${encodeURIComponent(coin.mint)}">pump.fun</a> · <a href="https://three.ws/launch-detail?mint=${encodeURIComponent(coin.mint)}">Oracle</a>`,+ ].filter(Boolean).join('\n');+}++function escHtml(s) {+ return String(s ?? '').replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>');+}++async function send(text) {+ const token = process.env.TELEGRAM_BOT_TOKEN;+ const chatId = process.env.TELEGRAM_ORACLE_CHAT_ID;+ if (!token || !chatId) return;++ const ctrl = new AbortController();+ const timer = setTimeout(() => ctrl.abort(), ALERT_TIMEOUT_MS);+ try {+ await fetch(`https://api.telegram.org/bot${token}/sendMessage`, {+ method: 'POST',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify({+ chat_id: chatId,+ text: text.slice(0, 4000),+ parse_mode: 'HTML',+ disable_web_page_preview: true,+ }),+ signal: ctrl.signal,+ });+ } catch { /* fire-and-forget */ } finally {+ clearTimeout(timer);+ }+}++/**+ * Mark a coin as alerted in oracle_conviction so the flag survives restarts.+ * Best-effort — never throws into the alert path.+ */+async function markAlerted(mint, network) {+ try {+ await sql`+ update oracle_conviction set alerted_at = now()+ where mint = ${mint} and network = ${network} and alerted_at is null+ `;+ } catch { /* non-fatal */ }+}++/**+ * Fire alerts for newly-scored coins that cross the tier threshold for the+ * first time. Called by the oracle-score cron after each score pass.+ *+ * @param {Array<{mint:string, symbol:string, name:string, score:number, tier:string, pillars?:object, category?:string, smart_wallet_count?:number}>} coins+ * @param {string} network+ * @returns {Promise<number>} number of alerts sent+ */+export async function alertNewHighConviction(coins, network = 'mainnet') {+ const token = process.env.TELEGRAM_BOT_TOKEN;+ const chatId = process.env.TELEGRAM_ORACLE_CHAT_ID;+ if (!token || !chatId) return 0; // silently no-op when not configured++ // Filter to coins that cross the min tier threshold and haven't been alerted.+ const candidates = coins.filter((c) => {+ const rank = TIER_ORDER[c.tier] ?? -1;+ if (rank < MIN_TIER_RANK) return false;+ if (_alerted.has(c.mint)) return false;+ return true;+ });+ if (!candidates.length) return 0;++ // Check the DB to skip any already-alerted mints (across restarts).+ const mints = candidates.map((c) => c.mint);+ let alreadyAlerted = new Set();+ try {+ const rows = await sql`+ select mint from oracle_conviction+ where mint = any(${mints}::text[]) and network = ${network} and alerted_at is not null+ `;+ alreadyAlerted = new Set(rows.map((r) => r.mint));+ } catch { /* treat as empty on DB error */ }++ let sent = 0;+ for (const coin of candidates) {+ if (alreadyAlerted.has(coin.mint)) { _alerted.add(coin.mint); continue; }+ _alerted.add(coin.mint);+ await send(format(coin));+ await markAlerted(coin.mint, network);+ sent++;+ }+ return sent;+}diff --git a/api/cron/oracle-score.js b/api/cron/oracle-score.jsindex 56d1ead81..35d588081 100644--- a/api/cron/oracle-score.js+++ b/api/cron/oracle-score.js@@ -9,8 +9,10 @@// without anything else running.//// Reuses the worker's real code paths (no duplicated logic):-// 1. runScorePass — score recent brain coins missing/stale in the cache.-// 2. actOnFreshCoins — run every armed watch against the just-scored window.+// 1. runScorePass — score recent brain coins missing/stale in the cache.+// 2. actOnFreshCoins — every armed watch acts on the just-scored window.+// 3. runSettlePass — grade resolved actions against real outcomes.+// 4. alertNewHighConviction — fire Telegram signals for new prime/strong coins.//// Simulate-default and idempotent: scoring upserts by (mint, network); each// (agent, mint) acts at most once. Live trading only happens when an operator@@ -24,6 +26,7 @@ import { loadConfig } from '../../workers/oracle/config.js';import { runScorePass } from '../../workers/oracle/score-loop.js';import { actOnFreshCoins, freshlyScored } from '../../workers/oracle/agent-loop.js';import { runSettlePass } from '../../workers/oracle/settle-loop.js';+import { alertNewHighConviction } from '../_lib/oracle/alerts.js';// How far back the agent pass looks for scored coins. Wider than the cron// cadence so a missed tick still catches up; the per-(agent,mint) dedup makes@@ -72,6 +75,13 @@ export default wrap(async (req, res) => {// open actions whose outcome is known get settled.const settled = await runSettlePass(cfg);+ // 4) Fire Telegram signals for any coins in this window that newly crossed+ // prime/strong threshold and haven't been alerted before. Fire-and-forget+ // inside the alert module — never delays or fails this cron response.+ // We pass the full coin objects from freshlyScored (score, tier, pillars+ // are all present in oracle_conviction rows).+ const alerted = await alertNewHighConviction(coins, cfg.network);+return json(res, 200, {ok: true,network: cfg.network,@@ -81,6 +91,7 @@ export default wrap(async (req, res) => {window_coins: coins.length,acted,settled,+ alerted,ms: Date.now() - started,});});diff --git a/api/oracle/trades.js b/api/oracle/trades.jsnew file mode 100644index 000000000..4f6618495--- /dev/null+++ b/api/oracle/trades.js@@ -0,0 +1,180 @@+/**+ * Oracle — live trade tape for a single coin (SSE).+ *+ * GET /api/oracle/trades?mint=<base58>&network=mainnet+ *+ * Opens a PumpPortal WebSocket subscription for the requested mint and fans+ * each buy/sell event to the caller via SSE. Every trade is annotated with the+ * wallet's label and score from the coin's existing pump_coin_wallets roster so+ * the client can render Smart Money, KOL, Sniper, etc. badges in real time+ * without an extra round-trip per trade.+ *+ * Events: hello, trade, ping, bye.+ * Max duration: 45 s (client must reconnect on 'bye').+ */++import { cors, method, rateLimited } from '../_lib/http.js';+import { limits, clientIp } from '../_lib/rate-limit.js';+import { sql } from '../_lib/db.js';+import { knownWallet } from '../_lib/oracle/known-wallets.js';+import WebSocket from 'ws';++const NETWORKS = new Set(['mainnet', 'devnet']);+const MINT_RE = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;+const PUMPPORTAL_WS = 'wss://pumpportal.fun/api/data';+const MAX_DURATION_MS = 45_000;+const PING_INTERVAL_MS = 12_000;++// ── wallet annotation cache ───────────────────────────────────────────────────+// Pre-load the known traders for this coin once; annotate each trade in memory.++async function loadWalletRoster(mint, network) {+ try {+ const rows = await sql`+ select+ w.wallet,+ coalesce(r.label, 'unproven') as label,+ coalesce(r.score, 0)::numeric as score,+ r.win_rate,+ r.tag+ from pump_coin_wallets w+ left join wallet_reputation r using (wallet, network)+ where w.mint = ${mint} and w.network = ${network}+ limit 200+ `;+ const map = new Map();+ for (const r of rows) {+ // Fold in the seed if the live DB doesn't have a label yet.+ let label = r.label;+ let score = Number(r.score);+ let tag = r.tag;+ if (label === 'unproven' || !label) {+ const known = knownWallet(r.wallet);+ if (known) { label = known.label; score = known.score; tag = known.tag || tag; }+ }+ map.set(r.wallet, { label, score, win_rate: r.win_rate, tag });+ }+ return map;+ } catch {+ return new Map();+ }+}++// Annotate a raw PumpPortal trade message with the pre-loaded roster data.+function annotate(msg, roster) {+ const wallet = msg.traderPublicKey || null;+ const rep = wallet ? (roster.get(wallet) || null) : null;+ // Fall back to the cold-start seed for wallets not in this coin's roster.+ let label = rep?.label || null;+ let score = rep?.score ?? null;+ let tag = rep?.tag || null;+ if (!label && wallet) {+ const known = knownWallet(wallet);+ if (known) { label = known.label; score = known.score; tag = known.tag || null; }+ }+ const isBuy = msg.txType === 'buy';+ const solAmount = typeof msg.solAmount === 'number' ? msg.solAmount : null;+ const mcSol = typeof msg.marketCapSol === 'number' ? msg.marketCapSol : null;+ return {+ sig: msg.signature || null,+ wallet,+ is_buy: isBuy,+ sol: solAmount,+ tokens: typeof msg.tokenAmount === 'number' ? msg.tokenAmount : null,+ mc_sol: mcSol,+ label,+ score,+ tag,+ ts: Math.floor(Date.now() / 1000),+ };+}++export default async function handleOracleTrades(req, res) {+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;+ if (!method(req, res, ['GET'])) return;++ const rl = await limits.mcpIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);++ const url = new URL(req.url, `http://${req.headers.host || 'x'}`);+ const mint = url.searchParams.get('mint') || '';+ const network = NETWORKS.has(url.searchParams.get('network')) ? url.searchParams.get('network') : 'mainnet';++ if (!MINT_RE.test(mint)) {+ res.writeHead(400, { 'Content-Type': 'application/json' });+ res.end(JSON.stringify({ error: 'invalid mint' }));+ return;+ }++ // Pre-load the roster (non-blocking — if it fails we still stream trades).+ const roster = await loadWalletRoster(mint, network);++ res.writeHead(200, {+ 'Content-Type': 'text/event-stream; charset=utf-8',+ 'Cache-Control': 'no-cache, no-transform',+ 'Connection': 'keep-alive',+ 'X-Accel-Buffering': 'no',+ });+ res.flushHeaders?.();++ let active = true;+ const send = (event, data) => {+ if (!active || res.writableEnded) return;+ try { res.write(`event: ${event}\ndata: ${JSON.stringify(data)}\n\n`); } catch { /* client gone */ }+ };++ send('hello', { mint, network, roster_size: roster.size, ts: Date.now() });++ // ── PumpPortal WS ────────────────────────────────────────────────────────+ let ws = null;+ let pingTimer = null;+ let stopTimer = null;++ function cleanup() {+ if (!active) return;+ active = false;+ clearInterval(pingTimer);+ clearTimeout(stopTimer);+ try { ws?.close(); } catch {}+ try { res.end(); } catch {}+ }++ function openWs() {+ ws = new WebSocket(PUMPPORTAL_WS);++ ws.on('open', () => {+ ws.send(JSON.stringify({ method: 'subscribeTokenTrade', keys: [mint] }));+ });++ ws.on('message', (raw) => {+ if (!active) return;+ let msg;+ try { msg = JSON.parse(raw.toString()); } catch { return; }+ if (msg.message) return; // subscription ack+ if ((msg.txType === 'buy' || msg.txType === 'sell') && msg.mint === mint) {+ send('trade', annotate(msg, roster));+ }+ });++ ws.on('error', (err) => {+ // Transient WS errors — log and let the stop timer close the SSE.+ console.warn('[oracle/trades] ws error:', err?.message);+ });++ ws.on('close', () => {+ if (active) send('bye', { reason: 'ws_closed' });+ cleanup();+ });+ }++ openWs();++ pingTimer = setInterval(() => send('ping', { ts: Date.now() }), PING_INTERVAL_MS);+ stopTimer = setTimeout(() => {+ send('bye', { reason: 'rotate' });+ cleanup();+ }, MAX_DURATION_MS);++ req.on('close', cleanup);+ req.on('error', cleanup);+}diff --git a/api/pump-fun-mcp.js b/api/pump-fun-mcp.jsindex b68449804..2585ae8f1 100644--- a/api/pump-fun-mcp.js+++ b/api/pump-fun-mcp.js@@ -751,6 +751,183 @@ async function handleGetTokenTrades({ mint, limit = 20, network = 'mainnet' }) {return readTradesFromChain({ mint, limit, network });}+// ── get_coin_intel ─────────────────────────────────────────────────────────++// Reads the precomputed intel snapshot from pump_coin_intel + outcome label.+// This is the highest-signal single read for a trade decision — it combines+// classification, bundle/organic analysis, smart-money presence, bubblemaps+// connectivity, risk flags, and labeled outcome into one call.+async function handleGetCoinIntel({ mint, network = 'mainnet' } = {}) {+ if (!mint || typeof mint !== 'string') throw new Error('mint required');+ const cleanMint = mint.trim();++ // Lazy import so the MCP handler loads in edge envs without DATABASE_URL.+ let sql;+ try {+ sql = (await import('./_lib/db.js')).sql;+ } catch {+ return { found: false, reason: 'database_unavailable' };+ }++ const LAMPORTS_PER_SOL = 1_000_000_000;+ const num = (v) => { const n = Number(v); return Number.isFinite(n) ? n : null; };+ const sol = (v) => { const n = num(v); return n == null ? null : Math.round(n / LAMPORTS_PER_SOL * 10000) / 10000; };++ try {+ // Main intel row+ const [row] = await sql`+ select mint, network, symbol, name, creator, image_uri, description,+ twitter, telegram, website, created_at, first_seen_at, observation_seconds,+ dev_buy_lamports, dev_sold, buy_count, sell_count,+ buy_volume_lamports, sell_volume_lamports, unique_buyers, unique_sellers,+ largest_buy_lamports, signals, bundle_score, organic_score, snipe_ratio,+ concentration_top10, fresh_wallet_ratio, bubblemap_connectivity,+ quality_score, risk_flags, category, tags, narrative, is_news_meme,+ classify_confidence, classify_source,+ smart_money_count, smart_money_score, smart_money_notable, cluster_count+ from pump_coin_intel+ where mint = ${cleanMint} and network = ${network}+ limit 1+ `;++ if (!row) return { found: false, mint: cleanMint, network };++ const signals = (row.signals && typeof row.signals === 'object') ? row.signals : {};+ const riskFlags = Array.isArray(row.risk_flags) ? row.risk_flags : [];+ const q = num(row.quality_score) ?? 0;+ const hardFlags = ['bundle_launch', 'dev_dumped', 'single_whale'];+ const hard = riskFlags.some((f) => hardFlags.includes(f));+ const verdict = hard || q < 25 ? { key: 'avoid', label: 'Avoid', tone: 'danger' }+ : q < 50 || riskFlags.length ? { key: 'caution', label: 'Caution', tone: 'warn' }+ : q < 72 ? { key: 'watch', label: 'Watch', tone: 'neutral' }+ : { key: 'strong', label: 'Strong', tone: 'success' };++ // Outcome label (may not exist yet for fresh coins)+ let outcome = null;+ try {+ const [o] = await sql`+ select outcome, graduated, rugged, ath_market_cap_usd, ath_multiple, labeled_at+ from pump_coin_outcomes where mint = ${cleanMint} limit 1+ `;+ if (o) outcome = {+ outcome: o.outcome,+ graduated: o.graduated,+ rugged: o.rugged,+ ath_market_cap_usd: num(o.ath_market_cap_usd),+ ath_multiple: num(o.ath_multiple),+ labeled_at: o.labeled_at,+ };+ } catch { /* outcome table absent — fine */ }++ // Top wallets (compact — notable ones only for the MCP response)+ let topWallets = [];+ try {+ const wrows = await sql`+ select wallet, buy_lamports, sell_lamports, is_creator, funder, first_seen_at+ from pump_coin_wallets where mint = ${cleanMint}+ order by buy_lamports desc limit 20+ `;+ const totalBuy = wrows.reduce((s, w) => s + (num(w.buy_lamports) || 0), 0) || 1;+ topWallets = wrows.map((w) => ({+ wallet: w.wallet,+ is_creator: !!w.is_creator,+ buy_sol: sol(w.buy_lamports),+ sell_sol: sol(w.sell_lamports),+ share: Math.round((num(w.buy_lamports) || 0) / totalBuy * 1000) / 1000,+ funder: w.funder || null,+ }));+ } catch { /* wallets absent — fine */ }++ const smartNotable = Array.isArray(row.smart_money_notable) ? row.smart_money_notable : [];++ // Build a plain-language summary the agent can read directly+ const parts = [];+ if (verdict.key === 'avoid') parts.push('⛔ AVOID.');+ else if (verdict.key === 'strong') parts.push('✅ Strong entry signal.');+ if (row.smart_money_count > 0)+ parts.push(`${row.smart_money_count} proven smart-money wallet${row.smart_money_count > 1 ? 's' : ''} entered (win-rate avg ${smartNotable[0]?.win_rate != null ? (smartNotable[0].win_rate * 100).toFixed(0) + '%' : 'unknown'}).`);+ if (row.dev_sold) parts.push('Dev sold during observation window — high rug risk.');+ if (riskFlags.includes('bundle_launch')) parts.push('Coordinated bundle launch detected.');+ if (row.is_news_meme && signals.news_headline) parts.push(`News-meme: "${signals.news_headline}".`);+ if (row.category && row.category !== 'unknown') parts.push(`Category: ${row.category}.`);+ if (outcome?.graduated) parts.push('GRADUATED to Raydium.');+ else if (outcome?.rugged) parts.push('Rugged.');+ else if (outcome?.ath_multiple) parts.push(`ATH ${outcome.ath_multiple.toFixed(1)}× from entry.`);+ const summary = parts.join(' ') || `Quality ${q}/100. ${riskFlags.length ? 'Risk flags: ' + riskFlags.join(', ') + '.' : 'No hard risk flags.'}`;++ return {+ found: true,+ mint: row.mint,+ network: row.network,+ symbol: row.symbol,+ name: row.name,+ creator: row.creator,+ image_uri: row.image_uri,+ has_socials: !!(row.twitter || row.telegram || row.website),+ twitter: row.twitter,+ telegram: row.telegram,+ website: row.website,+ first_seen_at: row.first_seen_at,+ observation_seconds: num(row.observation_seconds),++ // Verdict+ quality_score: q,+ verdict,+ risk_flags: riskFlags,+ summary,++ // Classification+ category: row.category || 'unknown',+ tags: Array.isArray(row.tags) ? row.tags : [],+ narrative: row.narrative,+ is_news_meme: !!row.is_news_meme,+ news_headline: signals.news_headline || null,+ news_url: signals.news_url || null,+ classify_confidence: num(row.classify_confidence),+ classify_source: row.classify_source,++ // Core signals+ organic_score: num(row.organic_score),+ bundle_score: num(row.bundle_score),+ snipe_ratio: num(row.snipe_ratio),+ concentration_top10: num(row.concentration_top10),+ fresh_wallet_ratio: num(row.fresh_wallet_ratio),+ bubblemap_connectivity: num(row.bubblemap_connectivity),+ cluster_count: num(row.cluster_count) ?? 0,+ timing_entropy: num(signals.timing_entropy),++ // Dev+ dev_buy_sol: sol(row.dev_buy_lamports),+ dev_sold: !!row.dev_sold,++ // Trade footprint+ unique_buyers: num(row.unique_buyers) ?? 0,+ unique_sellers: num(row.unique_sellers) ?? 0,+ buy_count: num(row.buy_count) ?? 0,+ sell_count: num(row.sell_count) ?? 0,+ buy_volume_sol: sol(row.buy_volume_lamports),+ sell_volume_sol: sol(row.sell_volume_lamports),+ largest_buy_sol: sol(row.largest_buy_lamports),+ buy_sell_ratio: num(signals.buy_sell_ratio),++ // Smart money+ smart_money_count: num(row.smart_money_count) ?? 0,+ smart_money_score: num(row.smart_money_score),+ smart_money_notable: smartNotable,++ // Wallet book+ top_wallets: topWallets,++ // Outcome (null if coin not yet labeled)+ outcome,+ };+ } catch (err) {+ const missing = /relation .* does not exist/i.test(String(err?.message));+ if (missing) return { found: false, reason: 'engine_tables_pending' };+ throw err;+ }+}+// ── pumpfun_bot_status (metadata, always available) ────────────────────────// Reports whether the indexer is configured and, when it is, whether it's@@ -811,6 +988,7 @@ const HANDLERS = {get_bonding_curve: handleGetBondingCurve,get_token_details: handleGetTokenDetails,get_token_holders: handleGetTokenHolders,+ get_coin_intel: handleGetCoinIntel,kol_radar: handleKolRadar,kol_leaderboard: handleKolLeaderboard,search_tokens: indexerOrUnavailable('search_tokens'),@@ -842,18 +1020,20 @@ const PROTOCOL_VERSION = '2025-06-18';const RESOURCE_PATH = '/api/pump-fun-mcp';const SERVER_INFO = { name: 'three.ws-pumpfun-mcp', version: '1.0.0' };const INSTRUCTIONS =- 'Free, read-only pump.fun + Solana tools from three.ws. Token discovery ' +- '(search_tokens, get_trending_tokens, get_new_tokens, get_graduated_tokens, ' +- 'get_king_of_the_hill), on-chain analysis (get_bonding_curve, get_token_holders, ' +- 'get_token_details, get_token_trades), creator intelligence (get_creator_profile, ' +- 'pumpfun_list_claims, pumpfun_watch_claims, pumpfun_first_claims), Solana Name ' +- 'Service (sns_resolve, sns_reverseLookup), market signals (kol_radar, ' +- 'kol_leaderboard, pumpfun_quote_swap, pumpfun_watch_whales), and social ' +- 'sentiment (social_cashtag_sentiment, social_x_post_impact). Discovery tools ' +- '(search_tokens, get_trending_tokens, get_new_tokens, get_graduated_tokens, ' +- 'get_king_of_the_hill, get_creator_profile) require the indexer backend and are ' +- 'listed only when it is configured — call pumpfun_bot_status (always available) ' +- 'to check. All data is live and on-chain; no API keys required for the free tools.';+ 'Free, read-only pump.fun + Solana tools from three.ws. ' ++ 'COIN INTELLIGENCE (call first before any trade): get_coin_intel returns the full ' ++ 'intelligence snapshot for a mint — bundle vs organic verdict, bubblemaps cluster ' ++ 'connectivity, smart-money presence with wallet win-rates, dev behaviour, category, ' ++ 'news-meme detection, risk flags, and a 0–100 quality score. ' ++ 'Token discovery (search_tokens, get_trending_tokens, get_new_tokens, ' ++ 'get_graduated_tokens, get_king_of_the_hill), on-chain analysis (get_bonding_curve, ' ++ 'get_token_holders, get_token_details, get_token_trades), creator intelligence ' ++ '(get_creator_profile, pumpfun_list_claims, pumpfun_watch_claims, ' ++ 'pumpfun_first_claims), Solana Name Service (sns_resolve, sns_reverseLookup), ' ++ 'market signals (kol_radar, kol_leaderboard, pumpfun_quote_swap, ' ++ 'pumpfun_watch_whales), and social sentiment (social_cashtag_sentiment, ' ++ 'social_x_post_impact). Discovery tools require the indexer backend — call ' ++ 'pumpfun_bot_status (always available) to check. All data is live; no API key required.';const MAX_BATCH = 16;// Tools that are expensive (CPU grind or long-lived RPC subscriptions) or thatdiff --git a/api/pump/[action].js b/api/pump/[action].jsindex 0295714f3..cf4f5d4b8 100644--- a/api/pump/[action].js+++ b/api/pump/[action].js@@ -65,6 +65,7 @@ import { randomToken } from '../_lib/crypto.js';import { publishFeedEvent } from '../_lib/feed.js';import { normalizeGatewayURL } from '../../src/ipfs.js';import { buildTokenMetadata } from '../_lib/three-brand.js';+import { buildPlatformFeeInstructions, pumpPlatformFeeBps } from '../_lib/pump-platform-fee.js';import { pinToIPFS, ipfsPinningConfigured } from '../_lib/ipfs-pin.js';import { THREE_WS_VANITY, hasThreeWsMark } from '../../src/solana/vanity/brand.js';import { grindVanityNode, GrindExhaustedError } from '../../src/solana/vanity/grinder-node.js';@@ -414,6 +415,11 @@ async function handleBuyPrep(req, res) {tokenProgram: baseTokenProgram,quoteTokenProgram,});+ const __platformFee = await buildPlatformFeeInstructions({+ network: body.network, payer: userPk, isUsdc: isUsdcQuote,+ quoteMintPk, quoteTokenProgram, grossAtomics: BigInt(quoteAtomics.toString()), basis: 'buy',+ });+ if (__platformFee) ixs.push(...__platformFee.instructions);const tx_base64 = await buildUnsignedTxBase64({network: body.network,payer: userPk,@@ -427,6 +433,7 @@ async function handleBuyPrep(req, res) {...(isUsdcQuote ? { usdc_in: body.usdc_amount } : { sol_in: body.sol }),expected_tokens_out: tokenAmount.toString(),slippage_bps: body.slippage_bps,+ platform_fee: __platformFee ? __platformFee.disclosure : null,tx_base64,});}@@ -443,6 +450,11 @@ async function handleBuyPrep(req, res) {const swapState = await onlineAmm.swapSolanaState(amm.poolKey, userPk);const ixs = await offline.buyQuoteInput(swapState, quoteAtomics, slippagePct);+ const __platformFee = await buildPlatformFeeInstructions({+ network: body.network, payer: userPk, isUsdc: isUsdcQuote,+ quoteMintPk, quoteTokenProgram, grossAtomics: BigInt(quoteAtomics.toString()), basis: 'buy',+ });+ if (__platformFee) ixs.push(...__platformFee.instructions);const tx_base64 = await buildUnsignedTxBase64({network: body.network,payer: userPk,@@ -456,6 +468,7 @@ async function handleBuyPrep(req, res) {quote_mint: quoteMintDisplay,...(isUsdcQuote ? { usdc_in: body.usdc_amount } : { sol_in: body.sol }),slippage_bps: body.slippage_bps,+ platform_fee: __platformFee ? __platformFee.disclosure : null,tx_base64,});} catch (e) {@@ -713,6 +726,11 @@ async function handleSellPrep(req, res) {quoteTokenProgram,})),);+ const __platformFee = await buildPlatformFeeInstructions({+ network: body.network, payer: userPk, isUsdc: isUsdcQuote,+ quoteMintPk, quoteTokenProgram, grossAtomics: BigInt(expectedQuoteOut.toString()), basis: 'sell',+ });+ if (__platformFee) ixs.push(...__platformFee.instructions);const tx_base64 = await buildUnsignedTxBase64({network: body.network,payer: userPk,@@ -728,6 +746,7 @@ async function handleSellPrep(req, res) {? { expected_usdc_out: Number(expectedQuoteOut.toString()) / 1_000_000 }: { expected_sol_out: Number(expectedQuoteOut.toString()) / 1_000_000_000 }),slippage_bps: body.slippage_bps,+ platform_fee: __platformFee ? __platformFee.disclosure : null,tx_base64,});}@@ -742,6 +761,24 @@ async function handleSellPrep(req, res) {const onlineAmm = new ammMod.OnlinePumpAmmSdk(getConnection({ network: body.network }));const swapState = await onlineAmm.swapSolanaState(amm.poolKey, userPk);const ixs = await offline.sellBaseInput(swapState, tokens, slippagePct);+ // Expected proceeds (uiQuote) is the fee basis for an AMM sell. Best-effort:+ // if the low-level quote can't be derived we skip the fee, never the sell.+ let __ammSellGross = 0n;+ try {+ const { uiQuote } = ammMod.sellBaseInput({+ base: tokens, slippage: slippagePct,+ baseReserve: swapState.poolBaseAmount, quoteReserve: swapState.poolQuoteAmount,+ baseMintAccount: swapState.baseMintAccount, baseMint: swapState.baseMint,+ coinCreator: swapState.pool.coinCreator, creator: swapState.pool.creator,+ feeConfig: swapState.feeConfig, globalConfig: swapState.globalConfig,+ });+ __ammSellGross = BigInt(uiQuote.toString());+ } catch { /* fee basis unavailable */ }+ const __platformFee = await buildPlatformFeeInstructions({+ network: body.network, payer: userPk, isUsdc: isUsdcQuote,+ quoteMintPk, quoteTokenProgram, grossAtomics: __ammSellGross, basis: 'sell',+ });+ if (__platformFee) ixs.push(...__platformFee.instructions);const tx_base64 = await buildUnsignedTxBase64({network: body.network,payer: userPk,@@ -755,6 +792,7 @@ async function handleSellPrep(req, res) {quote_mint: quoteMintDisplay,tokens_in: body.tokens,slippage_bps: body.slippage_bps,+ platform_fee: __platformFee ? __platformFee.disclosure : null,tx_base64,});} catch (e) {@@ -2686,6 +2724,7 @@ async function handleQuote(req, res) {virtual_token_reserves: curve.virtualTokenReserves?.toString?.() ?? null,complete: curve.complete ?? false,},+ platform_fee_bps: pumpPlatformFeeBps(),quote,});}@@ -2804,6 +2843,7 @@ async function handleQuote(req, res) {quote_reserve: quoteReserve.toString(),lp_supply: pool.lpSupply?.toString?.() ?? null,},+ platform_fee_bps: pumpPlatformFeeBps(),quote,});} catch (err) {diff --git a/api/pump/price-history.js b/api/pump/price-history.jsindex 03882d14b..cc52b18cc 100644--- a/api/pump/price-history.js+++ b/api/pump/price-history.js@@ -1,9 +1,13 @@// GET /api/pump/price-history?mint=<mint>&interval=15m&from=<unix>&to=<unix>// ---------------------------------------------------------------------------// Server-side proxy for Birdeye OHLCV. Keeps BIRDEYE_API_KEY on the server.-// Returns the upstream error verbatim on failure — never fabricates candles.+// OHLCV proxy with automatic fallback chain:+// 1. Birdeye (paid, quota-limited) — best data quality+// 2. GeckoTerminal (free, no key) — pool lookup then candles//-// Response: { data: [ { t, o, h, l, c, v }, ... ] } (t = unix seconds)+// On any upstream failure the next source is tried transparently.+// Never fabricates candles.+//+// Response: { data: [ { t, o, h, l, c, v } ], source?: 'birdeye'|'gecko' }import { cors, json, method, wrap, error, rateLimited } from '../_lib/http.js';import { limits, clientIp } from '../_lib/rate-limit.js';@@ -50,7 +54,78 @@ function isPlausibleMint(s) {return /^[1-9A-HJ-NP-Za-km-z]{32,44}$/.test(s);}-let _cache = new Map(); // key → { value, expiresAt }+// ──────────────────────────────────────────────────────────────────────────────+// GeckoTerminal fallback — completely free, no API key required.+// Step 1: resolve the top liquidity pool for the token.+// Step 2: fetch OHLCV for that pool.+// ──────────────────────────────────────────────────────────────────────────────+const GECKO_API = 'https://api.geckoterminal.com/api/v2';+const GECKO_HEADERS = { accept: 'application/json', 'x-api-version': '20230302' };++// Map our normalized Birdeye intervals to GeckoTerminal (timeframe, aggregate).+function geckoParams(interval) {+ const map = {+ '1m': ['minute', 1],+ '3m': ['minute', 3],+ '5m': ['minute', 5],+ '15m': ['minute', 15],+ '30m': ['minute', 30],+ '1H': ['hour', 1],+ '2H': ['hour', 2],+ '4H': ['hour', 4],+ '6H': ['hour', 6],+ '8H': ['hour', 8],+ '12H': ['hour', 12],+ '1D': ['day', 1],+ '3D': ['day', 3],+ '1W': ['day', 7],+ '1M': ['day', 30],+ };+ return map[interval] || ['minute', 15];+}++async function fetchGeckoPoolAddress(mint) {+ const url = `${GECKO_API}/networks/solana/tokens/${mint}/pools?page=1`;+ const resp = await fetch(url, { headers: GECKO_HEADERS, signal: AbortSignal.timeout(7000) });+ if (!resp.ok) return null;+ const body = await resp.json().catch(() => null);+ const pools = body?.data;+ if (!Array.isArray(pools) || !pools.length) return null;+ // Prefer the pool with the most volume (first = highest by GeckoTerminal default ranking).+ return pools[0]?.attributes?.address ?? null;+}++async function fetchGeckoOhlcv({ mint, interval, from, to }) {+ const poolAddress = await fetchGeckoPoolAddress(mint);+ if (!poolAddress) throw new Error('No pool found on GeckoTerminal for this mint');++ const [timeframe, aggregate] = geckoParams(interval);+ // GeckoTerminal returns candles *before* before_timestamp (exclusive, descending).+ // We ask for the maximum (1000) and filter to our window.+ const url =+ `${GECKO_API}/networks/solana/pools/${poolAddress}/ohlcv/${timeframe}` ++ `?aggregate=${aggregate}&before_timestamp=${to + 1}&limit=1000¤cy=usd&token=base`;++ const resp = await fetch(url, { headers: GECKO_HEADERS, signal: AbortSignal.timeout(10_000) });+ if (!resp.ok) {+ throw new Error(`GeckoTerminal ${resp.status}`);+ }+ const body = await resp.json().catch(() => null);+ const list = body?.data?.attributes?.ohlcv_list;+ if (!Array.isArray(list)) throw new Error('GeckoTerminal returned unexpected payload');++ // Format: [timestamp_sec, open, high, low, close, volume] — GeckoTerminal returns+ // descending so we reverse and filter to the requested window.+ return list+ .map(([t, o, h, l, c, v]) => ({ t: Number(t), o: Number(o), h: Number(h), l: Number(l), c: Number(c), v: Number(v) }))+ .filter((d) => Number.isFinite(d.t) && Number.isFinite(d.c) && d.t >= from && d.t <= to)+ .sort((a, b) => a.t - b.t);+}++// ──────────────────────────────────────────────────────────────────────────────+// Cache — shared across both sources. Key includes interval + time window.+// ──────────────────────────────────────────────────────────────────────────────+const _cache = new Map(); // key → { value, source, expiresAt }const TTL_MS = 30_000;export default wrap(async (req, res) => {@@ -72,13 +147,8 @@ export default wrap(async (req, res) => {const defaultFrom = nowSec - 24 * 3600;let from = parseInt(params.get('from') || String(defaultFrom), 10);if (!Number.isFinite(from) || from <= 0 || from >= to) from = defaultFrom;- // Cap the window at 30 days to keep upstream payloads bounded.if (to - from > 30 * 86400) from = to - 30 * 86400;- if (!birdeyeConfigured()) {- return error(res, 503, 'not_configured', 'On-chain data provider is not configured');- }-const key = `${mint}:${interval}:${from}:${to}`;const now = Date.now();const hit = _cache.get(key);@@ -86,21 +156,32 @@ export default wrap(async (req, res) => {return json(res,200,- { data: hit.value },+ { data: hit.value, source: hit.source },{ 'cache-control': 'public, max-age=15, s-maxage=30' },);}- let data;- try {- data = await fetchBirdeyeOhlcv({ mint, interval, from, to });- } catch (e) {- const code = e.status === 503 ? 'not_configured' : 'upstream_error';- return error(res, e.status || 502, code, e.message);+ // ── Attempt 1: Birdeye ─────────────────────────────────────────────────────+ if (birdeyeConfigured()) {+ try {+ const data = await fetchBirdeyeOhlcv({ mint, interval, from, to });+ _cache.set(key, { value: data, source: 'birdeye', expiresAt: now + TTL_MS });+ if (_cache.size > 256) _cache.delete(_cache.keys().next().value);+ return json(res, 200, { data, source: 'birdeye' }, { 'cache-control': 'public, max-age=15, s-maxage=30' });+ } catch {+ // Fall through to GeckoTerminal.+ }}- _cache.set(key, { value: data, expiresAt: now + TTL_MS });- if (_cache.size > 128) _cache.delete(_cache.keys().next().value);+ // ── Attempt 2: GeckoTerminal (free, no API key) ───────────────────────────+ try {+ const data = await fetchGeckoOhlcv({ mint, interval, from, to });+ _cache.set(key, { value: data, source: 'gecko', expiresAt: now + TTL_MS });+ if (_cache.size > 256) _cache.delete(_cache.keys().next().value);+ return json(res, 200, { data, source: 'gecko' }, { 'cache-control': 'public, max-age=15, s-maxage=30' });+ } catch {+ // Both sources exhausted.+ }- return json(res, 200, { data }, { 'cache-control': 'public, max-age=15, s-maxage=30' });+ return error(res, 502, 'upstream_error', 'Price history is unavailable for this coin right now');});diff --git a/data/changelog.json b/data/changelog.jsonindex f4c900654..5aea224f6 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,20 @@{"$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-16",+ "title": "Copy trading — mirror proven traders, non-custodially, on your own terms",+ "summary": "You can now copy any trader from their profile. Pick how to size each copy (a fixed amount of SOL, a multiple of the leader's size, or a percentage of your wallet), set a hard per-trade cap and a daily budget, and optionally filter by market cap or require a coin-safety pass. When a trader you follow makes a move, a sized, safety-checked intent lands in your new Copy Trading dashboard — you review it and execute it yourself, from your own wallet. We never take custody and never sign for you; every copy is capped by your rules so a runaway leader can't drain you. Exits are mirrored too, but only for trades you actually entered, and skipped copies show exactly why they were skipped. Manage everything — pause, resume, stop, edit size — in one place.",+ "tags": ["feature"],+ "link": "/dashboard/copy"+ },+ {+ "date": "2026-06-16",+ "title": "Oracle — live trade tape and 3D conviction graph in the war room",+ "summary": "Two new war-room surfaces: every coin in Oracle now has a live trade tape inside its drawer that streams every buy and sell in real time, annotated with the trader's archetype — Smart Money, KOL, Sniper, Rugger — the moment it lands on-chain. Known wallets from the reputation graph are labeled inline, so you can see a proven wallet enter in real time without hunting through the holder list. Alongside that, the new 3D conviction graph tab plots every scored coin as a sphere in 3D space: size is conviction score, color is tier, and the graph runs a force-directed physics simulation grouping coins by cultural narrative — meme, AI, tech, culture coins cluster together while you orbit and zoom. Click any sphere to open its full conviction breakdown. Both surfaces are live when you open Oracle.",+ "tags": ["feature", "improvement"],+ "link": "/oracle"+ },{"date": "2026-06-16","title": "Oracle — one conviction score per launch, and an agent that acts on it",@@ -8,6 +22,13 @@"tags": ["feature"],"link": "/oracle"},+ {+ "date": "2026-06-16",+ "title": "Buy any coin directly on three.ws — Jupiter swap embedded in the coin page",+ "summary": "The Trade button on every launch profile now opens an in-platform Jupiter swap terminal instead of bouncing to pump.fun. The terminal is lazy-loaded only when you click, so cold page loads stay fast. Jupiter routes through every available liquidity source including pump.fun's AMM and bonding curve, so it works for both pre-graduation and graduated coins. The price chart now also shows volume bars alongside the price line — green for net-buy candles, red for net-sell — giving you an instant read on trade intensity at a glance. The agent panel shows a 'Copy trades' shortcut that takes you directly to the agent's copy-trade setup. And when Birdeye's OHLCV quota is exhausted, the chart falls back to GeckoTerminal automatically, so the chart never goes dark on an actively-trading coin.",+ "tags": ["feature", "improvement"],+ "link": "/launches"+ },{"date": "2026-06-16","title": "Every launch now has its own page — the full story of a coin in one place",diff --git a/data/pages.json b/data/pages.jsonindex 5eefd91e5..90098eb29 100644--- a/data/pages.json+++ b/data/pages.json@@ -17,7 +17,7 @@{"path": "/","title": "Home",- "description": "Landing page. 3D AI agents that think on IBM watsonx.ai (Granite) — the pitch, live agent demos, and the front door to every flow.",+ "description": "Landing page. 3D AI agents that think on IBM watsonx.ai (Granite) \u2014 the pitch, live agent demos, and the front door to every flow.","priority": 1,"changefreq": "weekly","added": "2026-04-16"@@ -41,7 +41,7 @@{"path": "/walk","title": "Walk",- "description": "Drive a 3D avatar around with a joystick or WASD — toggle the back camera for AR-style passthrough.",+ "description": "Drive a 3D avatar around with a joystick or WASD \u2014 toggle the back camera for AR-style passthrough.","priority": 0.7,"changefreq": "monthly","added": "2026-05-10"@@ -65,7 +65,7 @@{"path": "/skills","title": "Skills Marketplace",- "description": "Browse, search, and install agent skills — tool packs, knowledge bases, and capabilities that make AI agents smarter.",+ "description": "Browse, search, and install agent skills \u2014 tool packs, knowledge bases, and capabilities that make AI agents smarter.","priority": 0.8,"changefreq": "daily","added": "2026-05-27"@@ -97,7 +97,7 @@{"path": "/what-is","title": "What is three.ws?",- "description": "Plain-English introduction to three.ws — what a 3D AI agent is, real use-cases, and where to begin.",+ "description": "Plain-English introduction to three.ws \u2014 what a 3D AI agent is, real use-cases, and where to begin.","priority": 0.8,"changefreq": "monthly","added": "2026-06-05"@@ -112,7 +112,7 @@{"path": "/start","title": "Get Started",- "description": "5-step onboarding wizard: create a 3D avatar, name your agent, enable skills, deploy an embed widget, and set up monetization — all in under 5 minutes.",+ "description": "5-step onboarding wizard: create a 3D avatar, name your agent, enable skills, deploy an embed widget, and set up monetization \u2014 all in under 5 minutes.","priority": 1,"changefreq": "monthly","auth": null,@@ -153,8 +153,8 @@},{"path": "/forge",- "title": "Forge — Text to 3D",- "description": "Type a prompt — or drop in photos or a sketch — and get a downloadable textured 3D model (GLB). Pick from multiple generation engines with live health status.",+ "title": "Forge \u2014 Text to 3D",+ "description": "Type a prompt \u2014 or drop in photos or a sketch \u2014 and get a downloadable textured 3D model (GLB). Pick from multiple generation engines with live health status.","priority": 0.9,"changefreq": "weekly","added": "2026-06-04"@@ -162,7 +162,7 @@{"path": "/scene","title": "Scene Studio",- "description": "Full 3D scene editor in the browser — import GLB models, arrange them with transform gizmos, edit materials and lights, and export complete scenes.",+ "description": "Full 3D scene editor in the browser \u2014 import GLB models, arrange them with transform gizmos, edit materials and lights, and export complete scenes.","priority": 0.8,"changefreq": "monthly","added": "2026-06-12"@@ -225,15 +225,15 @@},{"path": "/features/ar",- "title": "AR & WebXR — Place Any 3D Agent in Your Real World",- "description": "Every three.ws avatar and Forge model has a View in AR button. On mobile it anchors the model to real surfaces through your camera. WebXR on Android, Quick Look on iOS — no app, no download.",+ "title": "AR & WebXR \u2014 Place Any 3D Agent in Your Real World",+ "description": "Every three.ws avatar and Forge model has a View in AR button. On mobile it anchors the model to real surfaces through your camera. WebXR on Android, Quick Look on iOS \u2014 no app, no download.","priority": 0.8,"changefreq": "monthly","added": "2026-06-13"},{"path": "/features/forge",- "title": "Forge — Text to 3D Model",+ "title": "Forge \u2014 Text to 3D Model","description": "Type a description, get a downloadable textured 3D model (GLB). Powered by Flux image generation and TRELLIS 3D reconstruction.","priority": 0.8,"changefreq": "monthly",@@ -241,7 +241,7 @@},{"path": "/features/scan",- "title": "Scan — Selfie to 3D Avatar",+ "title": "Scan \u2014 Selfie to 3D Avatar","description": "Point your camera at your face, hold still, and walk away with a rigged 3D avatar in 60 seconds. Free, in your browser.","priority": 0.8,"changefreq": "monthly",@@ -249,15 +249,15 @@},{"path": "/features/play",- "title": "Play — Live 3D Coin Worlds",- "description": "Every pump.fun coin gets a deterministic 3D world. Walk in as your avatar, chat with holders, and trade — all in the browser.",+ "title": "Play \u2014 Live 3D Coin Worlds",+ "description": "Every pump.fun coin gets a deterministic 3D world. Walk in as your avatar, chat with holders, and trade \u2014 all in the browser.","priority": 0.8,"changefreq": "monthly","added": "2026-06-05"},{"path": "/features/walk",- "title": "Walk — 3D Avatar AR",+ "title": "Walk \u2014 3D Avatar AR","description": "Drive your AI agent's 3D avatar with WASD or joystick. Toggle AR mode and it walks on your real floor through your phone camera.","priority": 0.8,"changefreq": "monthly",@@ -265,7 +265,7 @@},{"path": "/features/studio",- "title": "Studio — Embeddable AI Widget Builder",+ "title": "Studio \u2014 Embeddable AI Widget Builder","description": "Configure avatar, voice, and knowledge base in the Widget Studio, then copy one script tag to embed a 3D AI agent anywhere.","priority": 0.8,"changefreq": "monthly",@@ -273,7 +273,7 @@},{"path": "/features/marketplace",- "title": "Marketplace — Discover and Fork AI Agents",+ "title": "Marketplace \u2014 Discover and Fork AI Agents","description": "Browse hundreds of community-built AI agents with 3D avatars and on-chain identities. Fork any agent, buy paid skills, and ship in minutes.","priority": 0.8,"changefreq": "weekly",@@ -281,7 +281,7 @@},{"path": "/features/agent-exchange",- "title": "Agent Exchange — AI Agents Paying Each Other",+ "title": "Agent Exchange \u2014 AI Agents Paying Each Other","description": "Watch two AI agents with 3D avatars autonomously negotiate and pay each other for crypto intelligence via x402 micropayments on Solana.","priority": 0.7,"changefreq": "monthly",@@ -289,8 +289,8 @@},{"path": "/features/deploy",- "title": "Deploy — On-Chain Agent Identity",- "description": "Register your AI agent on Solana via ERC-8004 and Metaplex Core. Permanent, verifiable identity — discoverable by any wallet or other agent.",+ "title": "Deploy \u2014 On-Chain Agent Identity",+ "description": "Register your AI agent on Solana via ERC-8004 and Metaplex Core. Permanent, verifiable identity \u2014 discoverable by any wallet or other agent.","priority": 0.8,"changefreq": "monthly","added": "2026-06-05"@@ -298,7 +298,7 @@{"path": "/agent/new","title": "New Agent",- "description": "Create a new agent from scratch — avatar, brain, skills, and on-chain identity.",+ "description": "Create a new agent from scratch \u2014 avatar, brain, skills, and on-chain identity.","priority": 0.7,"changefreq": "monthly","added": "2026-05-25"@@ -338,8 +338,8 @@},{"path": "/scan",- "title": "3D Scanner — Scan Yourself into 3D",- "description": "Point your camera at your face, hold still, and walk away with a rigged 3D avatar — reconstruction runs in about a minute, free, in your browser.",+ "title": "3D Scanner \u2014 Scan Yourself into 3D",+ "description": "Point your camera at your face, hold still, and walk away with a rigged 3D avatar \u2014 reconstruction runs in about a minute, free, in your browser.","priority": 0.7,"changefreq": "monthly","added": "2026-05-29"@@ -388,7 +388,7 @@{"path": "/avatar-artifact","title": "Avatar Artifact",- "description": "Standalone Three.js viewer for avatar artifacts — embeddable and shareable without any wrapper page.",+ "description": "Standalone Three.js viewer for avatar artifacts \u2014 embeddable and shareable without any wrapper page.","priority": 0.5,"changefreq": "monthly","added": "2026-04-28"@@ -404,7 +404,7 @@{"path": "/labs","title": "Labs Showcase",- "description": "A curated gallery of three.ws's most powerful — and most hidden — features. Find and try things you didn't know existed.",+ "description": "A curated gallery of three.ws's most powerful \u2014 and most hidden \u2014 features. Find and try things you didn't know existed.","priority": 0.8,"changefreq": "weekly","added": "2026-06-05"@@ -416,10 +416,18 @@"title": "Crypto","description": "On-chain features: pay-per-call, token launches, vanity wallets.","pages": [+ {+ "path": "/oracle",+ "title": "Oracle \u2014 AI Conviction Engine",+ "description": "A fused AI conviction engine for every pump.fun launch: pedigree (who's buying), structure (bundle vs organic), narrative (what story is it riding), and momentum \u2014 fused into a single 0\u2013100 conviction score with transparent pillar reasoning.",+ "priority": 0.9,+ "changefreq": "realtime",+ "added": "2026-06-16"+ },{"path": "/launch","title": "Launch a Coin",- "description": "Mint a coin for your 3D AI agent in one flow — pick an agent, set the name, symbol, and image, then launch on pump.fun straight from your wallet with an optional three.ws-branded vanity mint.",+ "description": "Mint a coin for your 3D AI agent in one flow \u2014 pick an agent, set the name, symbol, and image, then launch on pump.fun straight from your wallet with an optional three.ws-branded vanity mint.","priority": 0.8,"changefreq": "monthly","added": "2026-06-15"@@ -427,7 +435,7 @@{"path": "/launches","title": "Agent Launches",- "description": "Live public feed of every coin launched by a three.ws agent — market caps, graduation status, and the agent behind each launch.",+ "description": "Live public feed of every coin launched by a three.ws agent \u2014 market caps, graduation status, and the agent behind each launch.","priority": 0.8,"changefreq": "daily","added": "2026-06-12"@@ -435,7 +443,7 @@{"path": "/leaderboard","title": "Trader Leaderboard",- "description": "Pump.fun traders ranked by a provable, on-chain track record — realized P&L, win rate, drawdown — with every number traceable to its transaction.",+ "description": "Pump.fun traders ranked by a provable, on-chain track record \u2014 realized P&L, win rate, drawdown \u2014 with every number traceable to its transaction.","priority": 0.8,"changefreq": "hourly","added": "2026-06-15"@@ -451,14 +459,14 @@{"path": "/play/agent-wallet","title": "Agent Wallet (x402 on Solana)",- "description": "Watch your 3D avatar walk up to a paid endpoint and pay for it with its agent wallet — a real USDC micropayment signed by the agent and settled on Solana.",+ "description": "Watch your 3D avatar walk up to a paid endpoint and pay for it with its agent wallet \u2014 a real USDC micropayment signed by the agent and settled on Solana.","priority": 0.7,"changefreq": "monthly","added": "2026-06-11"},{"path": "/play/arena",- "title": "Sniper Arena — autonomous AI agents trading live",+ "title": "Sniper Arena \u2014 autonomous AI agents trading live","description": "Watch three.ws AI agents trade pump.fun autonomously in real time. Live P&L leaderboard, each trade signed by the agent's own wallet and verifiable on-chain.","priority": 0.8,"changefreq": "daily",@@ -466,8 +474,8 @@},{"path": "/smart-money",- "title": "Smart Money Radar — follow the wallets that win on pump.fun",- "description": "A live first-party reputation graph of every pump.fun wallet. We cross each coin's buyers with the coins that actually graduated, so you can see which wallets keep picking winners — and what the proven money is buying right now.",+ "title": "Smart Money Radar \u2014 follow the wallets that win on pump.fun",+ "description": "A live first-party reputation graph of every pump.fun wallet. We cross each coin's buyers with the coins that actually graduated, so you can see which wallets keep picking winners \u2014 and what the proven money is buying right now.","priority": 0.8,"changefreq": "daily","added": "2026-06-15"@@ -491,7 +499,7 @@{"path": "/radar","title": "Coin Radar",- "description": "Live pump.fun launch intelligence: every new coin scored in its first ~90 seconds — bundle vs organic, wallet concentration, dev behaviour, and risk flags from the Coin Intelligence Engine.",+ "description": "Live pump.fun launch intelligence: every new coin scored in its first ~90 seconds \u2014 bundle vs organic, wallet concentration, dev behaviour, and risk flags from the Coin Intelligence Engine.","priority": 0.8,"changefreq": "daily","added": "2026-06-15"@@ -499,7 +507,7 @@{"path": "/watchlist","title": "Watchlist",- "description": "Your privately-stored watchlist of pump.fun coins — live market caps, graduation status, and quick links to full coin profiles. No account required; stored in your browser.",+ "description": "Your privately-stored watchlist of pump.fun coins \u2014 live market caps, graduation status, and quick links to full coin profiles. No account required; stored in your browser.","priority": 0.7,"changefreq": "daily","added": "2026-06-16"@@ -539,7 +547,7 @@{"path": "/pump-visualizer","title": "Pump Visualizer",- "description": "3D visualizer of trending pump.fun tokens — live market data rendered as an interactive scene.",+ "description": "3D visualizer of trending pump.fun tokens \u2014 live market data rendered as an interactive scene.","priority": 0.7,"changefreq": "weekly","added": "2026-05-04"@@ -547,7 +555,7 @@{"path": "/coin-intel","title": "Coin Intelligence",- "description": "Every pump.fun launch watched and classified in real time — organic vs bundle, the wallets behind it, a transparent quality score, and a model that learns which signals predict winners.",+ "description": "Every pump.fun launch watched and classified in real time \u2014 organic vs bundle, the wallets behind it, a transparent quality score, and a model that learns which signals predict winners.","priority": 0.8,"changefreq": "daily","added": "2026-06-15"@@ -571,7 +579,7 @@{"path": "/lookup","title": "Agent Lookup",- "description": "Resolve any three.ws agent by Solana mint, agent ID, avatar ID, or slug — renders its interactive 3D avatar alongside its on-chain identity (collection, owner, agent wallet, Active/x402 status, Metaplex/Solscan/Magic Eden links).",+ "description": "Resolve any three.ws agent by Solana mint, agent ID, avatar ID, or slug \u2014 renders its interactive 3D avatar alongside its on-chain identity (collection, owner, agent wallet, Active/x402 status, Metaplex/Solscan/Magic Eden links).","priority": 0.7,"changefreq": "weekly","auth": null,@@ -605,8 +613,8 @@},{"path": "/three-live",- "title": "$THREE Live · Protocol Pulse",- "description": "The $THREE protocol as a living 3D organism. Real on-chain trades pulse through it in real time — each transaction emits a particle burst, whales send shockwaves, with a live trade feed and a HUD of price, market cap, holders, and volume.",+ "title": "$THREE Live \u00b7 Protocol Pulse",+ "description": "The $THREE protocol as a living 3D organism. Real on-chain trades pulse through it in real time \u2014 each transaction emits a particle burst, whales send shockwaves, with a live trade feed and a HUD of price, market cap, holders, and volume.","priority": 0.8,"changefreq": "always","added": "2026-05-29",@@ -615,7 +623,7 @@{"path": "/three","title": "The $THREE Economy",- "description": "How three.ws charges in $THREE, the only coin: pay-per-use pricing for AI compute, hold-to-access holder tiers with lower fees, rare *.threews.sol names, and a holder-rewards loop. No burns — every spend funds the treasury or reflects back to holders.",+ "description": "How three.ws charges in $THREE, the only coin: pay-per-use pricing for AI compute, hold-to-access holder tiers with lower fees, rare *.threews.sol names, and a holder-rewards loop. No burns \u2014 every spend funds the treasury or reflects back to holders.","priority": 0.8,"changefreq": "weekly","added": "2026-06-15"@@ -650,7 +658,7 @@{"path": "/shopper","title": "Endpoint Shopper",- "description": "Describe a task and set a budget. An AI agent discovers relevant x402 endpoints via the Bazaar, chains them together, and synthesizes a final answer — paying per API call.",+ "description": "Describe a task and set a budget. An AI agent discovers relevant x402 endpoints via the Bazaar, chains them together, and synthesizes a final answer \u2014 paying per API call.","priority": 0.8,"changefreq": "weekly","added": "2026-05-27",@@ -658,7 +666,7 @@},{"path": "/forever",- "title": "Forever — etch a message into Bitcoin",+ "title": "Forever \u2014 etch a message into Bitcoin","description": "Inscribe a message onto the Bitcoin blockchain. It stays there. Forever.","priority": 0.6,"changefreq": "monthly",@@ -684,8 +692,8 @@},{"path": "/agent-economy",- "title": "Agent Economy — Live Demo",- "description": "Watch two 3D AI agents transact on-chain. Agent A buys data from Agent B — real SOL, real Solana transaction, live.",+ "title": "Agent Economy \u2014 Live Demo",+ "description": "Watch two 3D AI agents transact on-chain. Agent A buys data from Agent B \u2014 real SOL, real Solana transaction, live.","priority": 0.5,"changefreq": "weekly","added": "2026-06-03"@@ -693,7 +701,7 @@{"path": "/agent-trade","title": "Agent Commerce",- "description": "Watch two AI agents pay each other on-chain using x402 — a live Solana transaction, rendered in 3D.",+ "description": "Watch two AI agents pay each other on-chain using x402 \u2014 a live Solana transaction, rendered in 3D.","priority": 0.5,"changefreq": "weekly","added": "2026-06-03"@@ -708,7 +716,7 @@},{"path": "/demo",- "title": "Agent Economy — NOVA & ORACLE",+ "title": "Agent Economy \u2014 NOVA & ORACLE","description": "Two three.ws AI agents with real Solana wallets discover services on the x402 bazaar, pay each other in SOL, and display a live market briefing on the TV in their world.","priority": 0.5,"changefreq": "weekly",@@ -716,7 +724,7 @@},{"path": "/live",- "title": "Agent Economy — Live",+ "title": "Agent Economy \u2014 Live","description": "Two AI agents in a virtual world paying each other for live Solana market data. Real on-chain transactions, real blockchain, real 3D.","priority": 0.5,"changefreq": "weekly",@@ -725,7 +733,7 @@{"path": "/coin3d","title": "Token in 3D",- "description": "Any pump.fun token as a live 3D scene — a spinning coin medallion with the token's logo, top holders as a galaxy sized by balance, and a graduation ring tracking bonding-curve progress.",+ "description": "Any pump.fun token as a live 3D scene \u2014 a spinning coin medallion with the token's logo, top holders as a galaxy sized by balance, and a graduation ring tracking bonding-curve progress.","priority": 0.5,"changefreq": "weekly","added": "2026-06-02"@@ -733,7 +741,7 @@{"path": "/evm-wallet","title": "EVM Vanity Wallet",- "description": "Grind a custom Ethereum / EVM wallet address with the prefix or suffix of your choice. A real secp256k1 keypair, generated entirely in your browser — the private key never leaves your device.",+ "description": "Grind a custom Ethereum / EVM wallet address with the prefix or suffix of your choice. A real secp256k1 keypair, generated entirely in your browser \u2014 the private key never leaves your device.","priority": 0.6,"changefreq": "monthly","added": "2026-06-08"@@ -756,7 +764,7 @@{"path": "/agent","title": "Agent Home",- "description": "Default landing for an agent instance — chat, embed, and remix actions.",+ "description": "Default landing for an agent instance \u2014 chat, embed, and remix actions.","priority": 0.7,"changefreq": "weekly","added": "2026-04-14"@@ -830,7 +838,7 @@},{"path": "/dashboard/account",- "title": "Dashboard · Account",+ "title": "Dashboard \u00b7 Account","description": "Manage connected wallets, SNS, delegation, and action log.","auth": "required","indexable": false,@@ -838,7 +846,7 @@},{"path": "/dashboard/analytics",- "title": "Dashboard · Analytics",+ "title": "Dashboard \u00b7 Analytics","description": "API call volume, x402 spend, and per-agent usage breakdowns.","auth": "required","indexable": false,@@ -846,7 +854,7 @@},{"path": "/dashboard/settings",- "title": "Dashboard · Settings",+ "title": "Dashboard \u00b7 Settings","description": "Avatar storage modes (R2 vs IPFS), sessions, notifications, and preferences.","auth": "required","indexable": false,@@ -877,15 +885,15 @@},{"path": "/docs/start-here",- "title": "Docs · Start Here",- "description": "Plain-language introduction to three.ws for creators and non-developers — what it is, who it’s for, and where to begin.",+ "title": "Docs \u00b7 Start Here",+ "description": "Plain-language introduction to three.ws for creators and non-developers \u2014 what it is, who it\u2019s for, and where to begin.","priority": 0.9,"changefreq": "monthly","added": "2026-06-05"},{"path": "/docs/make-your-agent",- "title": "Docs · Make Your First Agent",+ "title": "Docs \u00b7 Make Your First Agent","description": "Step-by-step guide to creating a 3D AI agent in the browser with no code required.","priority": 0.8,"changefreq": "monthly",@@ -893,7 +901,7 @@},{"path": "/docs/share-and-embed",- "title": "Docs · Share & Embed",+ "title": "Docs \u00b7 Share & Embed","description": "Three ways to put your agent in front of people: share a link, embed an iframe, or use the web component.","priority": 0.8,"changefreq": "monthly",@@ -901,15 +909,15 @@},{"path": "/docs/do-i-need-crypto",- "title": "Docs · Do I Need Crypto?",- "description": "Honest answers to the wallet and payment questions — what requires crypto, what doesn’t, and how payments work.",+ "title": "Docs \u00b7 Do I Need Crypto?",+ "description": "Honest answers to the wallet and payment questions \u2014 what requires crypto, what doesn\u2019t, and how payments work.","priority": 0.8,"changefreq": "monthly","added": "2026-06-05"},{"path": "/docs/quick-start",- "title": "Docs · Quick Start",+ "title": "Docs \u00b7 Quick Start","description": "Five-minute walkthrough: create an agent, embed it, get a paid call.","priority": 0.8,"changefreq": "weekly",@@ -917,61 +925,61 @@},{"path": "/docs/agent-system",- "title": "Docs · Agent System",+ "title": "Docs \u00b7 Agent System","description": "How agents, avatars, skills, and memories fit together.","added": "2026-04-27"},{"path": "/docs/erc8004",- "title": "Docs · ERC-8004",+ "title": "Docs \u00b7 ERC-8004","description": "Reference for the on-chain agent identity standard.","added": "2026-04-27"},{"path": "/docs/embedding",- "title": "Docs · Embedding",+ "title": "Docs \u00b7 Embedding","description": "Embed an agent via iframe, oEmbed, or the <agent-3d> web component.","added": "2026-04-27"},{"path": "/docs/web-component",- "title": "Docs · <agent-3d>",+ "title": "Docs \u00b7 <agent-3d>","description": "Reference for the <agent-3d> custom element.","added": "2026-04-27"},{"path": "/docs/mcp",- "title": "Docs · MCP",+ "title": "Docs \u00b7 MCP","description": "Expose your agent as an MCP server for Claude, ChatGPT, and other clients.","added": "2026-04-27"},{"path": "/docs/skills",- "title": "Docs · Skills",+ "title": "Docs \u00b7 Skills","description": "Write, package, and monetize agent skills.","added": "2026-04-27"},{"path": "/docs/widgets",- "title": "Docs · Widgets",+ "title": "Docs \u00b7 Widgets","description": "Build and publish reusable chat and 3D widgets.","added": "2026-04-15"},{"path": "/docs/api-reference",- "title": "Docs · API Reference",+ "title": "Docs \u00b7 API Reference","description": "Full HTTP API reference.","added": "2026-04-27"},{"path": "/docs/sdk",- "title": "Docs · SDK",+ "title": "Docs \u00b7 SDK","description": "JavaScript / Node SDK for three.ws.","added": "2026-04-27"},{"path": "/docs/listings",- "title": "Docs · Listings & Distribution",+ "title": "Docs \u00b7 Listings & Distribution","description": "Cloud marketplaces and ecosystem directories where three.ws is listed (Alibaba Cloud, BNB Chain Dappbay, and more).","priority": 0.5,"changefreq": "monthly",@@ -985,7 +993,7 @@},{"path": "/tutorials/text-to-3d",- "title": "Tutorial · Text Prompt to 3D Model",+ "title": "Tutorial \u00b7 Text Prompt to 3D Model","description": "Five-minute beginner walkthrough of the Forge: type a sentence, pick a quality tier, and download a textured GLB model.","priority": 0.8,"changefreq": "monthly",@@ -993,23 +1001,23 @@},{"path": "/tutorials/image-to-3d",- "title": "Tutorial · Photos to 3D Model",- "description": "Photograph a real object from up to four angles and reconstruct it as a textured 3D model — photo tips, guidance prompts, troubleshooting.",+ "title": "Tutorial \u00b7 Photos to 3D Model",+ "description": "Photograph a real object from up to four angles and reconstruct it as a textured 3D model \u2014 photo tips, guidance prompts, troubleshooting.","priority": 0.8,"changefreq": "monthly","added": "2026-06-12"},{"path": "/tutorials/prompts-for-3d",- "title": "Tutorial · Prompt Recipes for 3D Generation",- "description": "A copy-paste prompt cookbook for 3D generation: game props, furniture, characters, vehicles, food — and the four rules behind every good prompt.",+ "title": "Tutorial \u00b7 Prompt Recipes for 3D Generation",+ "description": "A copy-paste prompt cookbook for 3D generation: game props, furniture, characters, vehicles, food \u2014 and the four rules behind every good prompt.","priority": 0.8,"changefreq": "monthly","added": "2026-06-12"},{"path": "/tutorials/generate-3d-api",- "title": "Tutorial · Generate 3D Models from Code",+ "title": "Tutorial \u00b7 Generate 3D Models from Code","description": "Use the Forge as a plain HTTP API: submit prompts, poll jobs, download GLBs, batch asset packs, and pay per call with x402.","priority": 0.8,"changefreq": "monthly",@@ -1018,7 +1026,7 @@{"path": "/status","title": "Status",- "description": "Live operational status and 90-day uptime history for the platform, API, and x402 surfaces — probed every 5 minutes.",+ "description": "Live operational status and 90-day uptime history for the platform, API, and x402 surfaces \u2014 probed every 5 minutes.","priority": 0.5,"changefreq": "always","added": "2026-06-11"@@ -1026,7 +1034,7 @@{"path": "/glossary","title": "Glossary",- "description": "Plain-English definitions for the crypto and agent terms used across three.ws — no jargon required to get started.",+ "description": "Plain-English definitions for the crypto and agent terms used across three.ws \u2014 no jargon required to get started.","priority": 0.5,"changefreq": "monthly","added": "2026-06-05"@@ -1034,7 +1042,7 @@{"path": "/support","title": "Support",- "description": "Get help with three.ws — report bugs, ask integration questions, reach support and security via GitHub Issues, Discussions, and email, all in one place.",+ "description": "Get help with three.ws \u2014 report bugs, ask integration questions, reach support and security via GitHub Issues, Discussions, and email, all in one place.","priority": 0.6,"changefreq": "monthly","added": "2026-06-06"@@ -1042,7 +1050,7 @@{"path": "/events/build-3d-agents-live","title": "Building 3D AI Agents Live",- "description": "A live build session: from a single prompt to an interactive 3D AI agent embedded in any app, in minutes — then a live Q&A. Hosted by three.ws, in partnership with IBM.",+ "description": "A live build session: from a single prompt to an interactive 3D AI agent embedded in any app, in minutes \u2014 then a live Q&A. Hosted by three.ws, in partnership with IBM.","priority": 0.7,"changefreq": "weekly","added": "2026-06-14"@@ -1065,7 +1073,7 @@},{"path": "/blog/see-your-3d-in-ar",- "title": "See Your 3D Avatar in the Real World — AR Lands on three.ws",+ "title": "See Your 3D Avatar in the Real World \u2014 AR Lands on three.ws","description": "Every 3D model and avatar on three.ws now has a View in AR button. On mobile it places the model in your real space through the camera. On desktop, a QR code gets you there in one scan. No app, no download.","priority": 0.6,"changefreq": "monthly",@@ -1073,7 +1081,7 @@},{"path": "/blog/text-to-3d-is-live",- "title": "Text to 3D Is Live — Type a Prompt, Download a 3D Model",+ "title": "Text to 3D Is Live \u2014 Type a Prompt, Download a 3D Model","description": "Forge is live on three.ws: type a description and get a textured, downloadable 3D model (GLB) in your browser. Image to 3D from photos works too. Free draft tier, no install.","priority": 0.6,"changefreq": "monthly",@@ -1091,7 +1099,7 @@},{"path": "/blog/three-ws-dextools-social-boost-buyback",- "title": "three.ws Wins DEXTools Social Boost — $5,543 $three Buyback",+ "title": "three.ws Wins DEXTools Social Boost \u2014 $5,543 $three Buyback","description": "three.ws is DEXTools","priority": 0.6,"changefreq": "monthly",@@ -1101,7 +1109,7 @@{"path": "/blog/three-ws-featured-on-alibaba-cloud-marketplace-blog","title": "three.ws Featured on the Alibaba Cloud Marketplace Blog",- "description": "Alibaba Cloud Marketplace published an editorial on three.ws — browser-native 3D AI agents you deploy with a single <agent-3d> tag, with a Claude-powered runtime, ERC-8004 identity, and an Apache 2.0 open-source stack.",+ "description": "Alibaba Cloud Marketplace published an editorial on three.ws \u2014 browser-native 3D AI agents you deploy with a single <agent-3d> tag, with a Claude-powered runtime, ERC-8004 identity, and an Apache 2.0 open-source stack.","priority": 0.6,"changefreq": "monthly","lastmod": "2026-06-08",@@ -1109,7 +1117,7 @@},{"path": "/blog/three-ws-ibm-collaboration",- "title": "Showcasing the three.ws × IBM Partnership",+ "title": "Showcasing the three.ws \u00d7 IBM Partnership","description": "three.ws and IBM showcased their partnership: embedding a persistent, on-chain 3D agent into any platform as easily as a YouTube video, with the agent brain running on IBM watsonx.ai and Granite.","priority": 0.6,"changefreq": "monthly",@@ -1136,7 +1144,7 @@{"path": "/blog/three-ws-on-aws-marketplace","title": "three.ws Launches on AWS Marketplace, Bringing On-Chain 3D AI Agents to Enterprise Procurement",- "description": "three.ws is now live on AWS Marketplace as a SaaS subscription. AWS customers can subscribe directly, bill to their AWS invoice, spend AWS Activate credits, and count three.ws toward Enterprise Discount Program commitments — for the first fully on-chain 3D AI agent platform.",+ "description": "three.ws is now live on AWS Marketplace as a SaaS subscription. AWS customers can subscribe directly, bill to their AWS invoice, spend AWS Activate credits, and count three.ws toward Enterprise Discount Program commitments \u2014 for the first fully on-chain 3D AI agent platform.","priority": 0.6,"changefreq": "monthly","lastmod": "2026-05-27",@@ -1144,7 +1152,7 @@},{"path": "/blog/agent-3d-web-component",- "title": "We Just Shipped the 3D Layer for the Internet — <agent-3d>",+ "title": "We Just Shipped the 3D Layer for the Internet \u2014 <agent-3d>","description": "Drop one <agent-3d> web component on your site and give any page an AI with LLM brain, memory, emotions, DOM awareness, password field privacy, and an on-chain identity that lives forever.","priority": 0.6,"changefreq": "monthly",@@ -1154,7 +1162,7 @@{"path": "/blog/2500-new-animations","title": "2,500 New 3D Animations Coming to three.ws",- "description": "three.ws is expanding its animation library with 2,500 new 3D animations — giving every agent vastly more expressive range across emotions, gestures, reactions, and activities.",+ "description": "three.ws is expanding its animation library with 2,500 new 3D animations \u2014 giving every agent vastly more expressive range across emotions, gestures, reactions, and activities.","priority": 0.6,"changefreq": "monthly","lastmod": "2026-05-22",@@ -1163,7 +1171,7 @@{"path": "/blog/three-ws-x402-bazaar","title": "three.ws Listed on Coinbase x402 Bazaar and agentic.market",- "description": "three.ws is now a verified service provider on the Coinbase x402 Bazaar and agentic.market — the app store and discovery layer for AI agents with 480k active agents and $50M in volume.",+ "description": "three.ws is now a verified service provider on the Coinbase x402 Bazaar and agentic.market \u2014 the app store and discovery layer for AI agents with 480k active agents and $50M in volume.","priority": 0.6,"changefreq": "monthly","lastmod": "2026-05-21",@@ -1171,7 +1179,7 @@},{"path": "/blog/real-time-voice-interaction",- "title": "Real-Time Voice Interaction with 3D AI Agents — Preview",+ "title": "Real-Time Voice Interaction with 3D AI Agents \u2014 Preview","description": "three.ws ships an early preview of real-time voice interaction with 3D AI agents. Agents listen, reason with memory and emotions, respond in voice, and support AR/VR.","priority": 0.6,"changefreq": "monthly",@@ -1208,7 +1216,7 @@{"path": "/blog/three-ws-on-coinmarketcap","title": "three.ws Is Now Live on CoinMarketCap",- "description": "three.ws is now live on CoinMarketCap — join the community page for real-time discussion and stay updated on the platform for 3D on-chain AI agents.",+ "description": "three.ws is now live on CoinMarketCap \u2014 join the community page for real-time discussion and stay updated on the platform for 3D on-chain AI agents.","priority": 0.6,"changefreq": "monthly","lastmod": "2026-05-17",@@ -1217,7 +1225,7 @@{"path": "/blog/how-to-embed-3d-onchain-agents","title": "How to Embed 3D On-Chain Agents on Your Site",- "description": "A complete walkthrough for embedding a three.ws 3D on-chain agent on any website using the <agent-3d> web component — from setup to CORS configuration and page integration.",+ "description": "A complete walkthrough for embedding a three.ws 3D on-chain agent on any website using the <agent-3d> web component \u2014 from setup to CORS configuration and page integration.","priority": 0.5,"changefreq": "monthly","lastmod": "2026-05-15",@@ -1234,8 +1242,8 @@},{"path": "/blog/three-ws-speraxusd-integration",- "title": "three.ws Ships Inside SperaxUSD — DeFi Gets a 3D Face",- "description": "three.ws is now integrated with SperaxOS, fully wired into the production DeFi stack. Agents get a 3D body, memory, voice, and an on-chain identity — and they react to DeFi events in real time.",+ "title": "three.ws Ships Inside SperaxUSD \u2014 DeFi Gets a 3D Face",+ "description": "three.ws is now integrated with SperaxOS, fully wired into the production DeFi stack. Agents get a 3D body, memory, voice, and an on-chain identity \u2014 and they react to DeFi events in real time.","priority": 0.6,"changefreq": "monthly","lastmod": "2026-05-11",@@ -1243,7 +1251,7 @@},{"path": "/blog/agent-builder-studio-launch",- "title": "Agent Builder Live — Studio Redesign, LLM Chat Upgrade",+ "title": "Agent Builder Live \u2014 Studio Redesign, LLM Chat Upgrade","description": "three.ws ships Agent Builder, an improved Studio design, and a major LLM Chat upgrade. Agents are now payable, tradeable, and discoverable.","priority": 0.6,"changefreq": "monthly",@@ -1252,7 +1260,7 @@},{"path": "/blog/animation-emotion-control",- "title": "Full Animation & Emotion Control — Plus Pump.fun Live Feed",+ "title": "Full Animation & Emotion Control \u2014 Plus Pump.fun Live Feed","description": "three.ws now ships full animation and emotion control for 3D agents, with live Pump.fun feed integration. Your agents react to any API or data feed in real time.","priority": 0.6,"changefreq": "monthly",@@ -1270,7 +1278,7 @@{"path": "/blog/three-token-listings","title": "$THREE Listed on Coinbase, CoinGecko, Jupiter, and Investing.com",- "description": "$THREE is now listed and verified across Coinbase, CoinGecko, Jupiter Exchange, and Investing.com — giving the three.ws community every major on-ramp and price discovery surface.",+ "description": "$THREE is now listed and verified across Coinbase, CoinGecko, Jupiter Exchange, and Investing.com \u2014 giving the three.ws community every major on-ramp and price discovery surface.","priority": 0.6,"changefreq": "monthly","lastmod": "2026-05-05",@@ -1279,7 +1287,7 @@{"path": "/blog/solana-wallet-integration","title": "Solana Wallet Integration for Autonomous 3D Agents",- "description": "three.ws 3D agents now have native Solana wallets. Your agent can hold and spend money autonomously — earning from skills, paying for inference, and executing on-chain transactions while you sleep.",+ "description": "three.ws 3D agents now have native Solana wallets. Your agent can hold and spend money autonomously \u2014 earning from skills, paying for inference, and executing on-chain transactions while you sleep.","priority": 0.6,"changefreq": "monthly","lastmod": "2026-04-30",diff --git a/pages/dashboard-next/copy.html b/pages/dashboard-next/copy.htmlnew file mode 100644index 000000000..bb6644a14--- /dev/null+++ b/pages/dashboard-next/copy.html@@ -0,0 +1,15 @@+<!doctype html>+<html lang="en">+ <head>+ <meta charset="utf-8" />+ <meta name="viewport" content="width=device-width,initial-scale=1" />+ <title>Copy Trading · Dashboard · three.ws</title>+ <meta name="robots" content="noindex" />+ <link rel="icon" href="/favicon.ico" />+ <link rel="stylesheet" href="/fonts/fonts.css" />+ <link rel="stylesheet" href="/dashboard-next/shell.css" />+ </head>+ <body>+ <script type="module" src="/src/dashboard-next/pages/copy.js"></script>+ </body>+</html>diff --git a/pages/oracle.html b/pages/oracle.htmlindex 4f86d381b..039e0efb9 100644--- a/pages/oracle.html+++ b/pages/oracle.html@@ -206,6 +206,32 @@.note { font-size: 12px; color: var(--faint); margin-top: 10px; }.note.warn { color: var(--amber); }+ /* live trade tape */+ .trade-tape { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: rgba(0,0,0,0.2); }+ .tape-header { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid var(--line);+ font: 600 11px/1 var(--mono); color: var(--muted); background: rgba(255,255,255,0.02); }+ .tape-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex: none; transition: background .3s; }+ .tape-dot.live { background: var(--up); box-shadow: 0 0 0 0 rgba(52,211,153,.5); animation: pulse 1.9s infinite; }+ .tape-status { flex: 1; }+ .tape-ct { color: var(--faint); }+ .tape-list { max-height: 260px; overflow-y: auto; }+ .tape-list::-webkit-scrollbar { width: 4px; }+ .tape-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }+ .tape-row { display: grid; grid-template-columns: 60px auto 1fr auto auto; gap: 7px; align-items: center;+ padding: 7px 12px; border-bottom: 1px solid rgba(255,255,255,0.04); font: 600 11.5px/1 var(--mono);+ transition: background .12s; }+ .tape-row:last-child { border-bottom: none; }+ .tape-row.flash { background: rgba(255,255,255,0.06); }+ .tape-row.buy .tape-type { color: var(--up); }+ .tape-row.sell .tape-type { color: var(--down); }+ .tape-type { font-size: 10.5px; letter-spacing: .04em; }+ .tape-tag { font-size: 10px; color: var(--faint); }+ .tape-addr { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; min-width: 0; }+ .tape-sol { text-align: right; }+ .tape-sol.buy { color: var(--up); }+ .tape-sol.sell { color: var(--down); }+ .tape-mc { color: var(--faint); font-size: 10px; white-space: nowrap; }+.foot { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--faint); }.foot b { color: var(--muted); }@@ -218,6 +244,8 @@}@media (prefers-reduced-motion: reduce) { * { animation-duration: .01ms !important; transition-duration: .01ms !important; } }</style>++ <meta name="twitter:image" content="https://three.ws/og-image.png"></head><body><div id="nav-container"></div>diff --git a/scripts/backfill-avatar-wallets.mjs b/scripts/backfill-avatar-wallets.mjsnew file mode 100644index 000000000..e0801d44e--- /dev/null+++ b/scripts/backfill-avatar-wallets.mjs@@ -0,0 +1,117 @@+#!/usr/bin/env node+/**+ * Backfill custodial Solana wallets for all existing agent identities that+ * are linked to an avatar but have no solana_address in their meta JSON.+ *+ * Every new avatar auto-provisions a Solana wallet on creation (api/avatars/index.js).+ * This script catches the gap for agents created before that behavior shipped.+ *+ * Usage:+ * node scripts/backfill-avatar-wallets.mjs # live run+ * node scripts/backfill-avatar-wallets.mjs --dry # report only, no writes+ * node scripts/backfill-avatar-wallets.mjs --limit 50+ */+import { createReadStream } from 'node:fs';+import * as fs from 'node:fs';+import * as path from 'node:path';+import { fileURLToPath } from 'node:url';++const __dirname = path.dirname(fileURLToPath(import.meta.url));++// ── tiny .env.local loader ────────────────────────────────────────────────────+(function loadEnvLocal() {+ const p = path.join(process.cwd(), '.env.local');+ if (!fs.existsSync(p)) return;+ for (const line of fs.readFileSync(p, 'utf8').split('\n')) {+ const m = line.match(/^([A-Z0-9_]+)=(.*)$/i);+ if (!m) continue;+ const k = m[1];+ const v = m[2].trim().replace(/^"(.*)"$/, '$1').replace(/^'(.*)'$/, '$1');+ if (process.env[k] == null || process.env[k] === '') process.env[k] = v;+ }+})();++// ── args ──────────────────────────────────────────────────────────────────────+const DRY = process.argv.includes('--dry');+const LIMIT = (() => {+ const i = process.argv.indexOf('--limit');+ return i !== -1 && process.argv[i + 1] ? parseInt(process.argv[i + 1], 10) : 500;+})();+const CONCURRENCY = 5; // Solana RPC calls in parallel++// ── validate env ─────────────────────────────────────────────────────────────+if (!process.env.DATABASE_URL) {+ console.error('ERROR: DATABASE_URL is required. Set it in .env.local or the environment.');+ process.exit(1);+}++const { sql } = await import('../api/_lib/db.js');+const { getOrCreateAgentSolanaWallet } = await import('../api/_lib/agent-wallet.js');++// ── find agents without a Solana wallet ──────────────────────────────────────+const rows = await sql`+ SELECT id, name, avatar_id, user_id,+ meta->>'solana_address' AS solana_address+ FROM agent_identities+ WHERE avatar_id IS NOT NULL+ AND deleted_at IS NULL+ AND (meta IS NULL OR meta->>'solana_address' IS NULL OR meta->>'solana_address' = '')+ ORDER BY created_at ASC+ LIMIT ${LIMIT}+`;++console.log(`Found ${rows.length} agent identities linked to avatars without a Solana wallet`);+if (DRY) {+ console.log('[dry-run] No wallets will be created.');+ for (const row of rows) {+ console.log(` agent ${row.id} name="${row.name}" avatar=${row.avatar_id}`);+ }+ process.exit(0);+}++if (rows.length === 0) {+ console.log('All avatar-linked agents already have Solana wallets. Nothing to do.');+ await sql.end();+ process.exit(0);+}++// ── provision in batches ──────────────────────────────────────────────────────+let created = 0;+let failed = 0;+let skipped = 0;++async function processOne(row) {+ try {+ const wallet = await getOrCreateAgentSolanaWallet(row.id);+ if (wallet.created) {+ console.log(` ✓ created agent ${row.id} address=${wallet.address}`);+ created++;+ } else {+ // Race: another process provisioned between the SELECT and now.+ console.log(` · exists agent ${row.id} address=${wallet.address}`);+ skipped++;+ }+ } catch (err) {+ console.error(` ✗ failed agent ${row.id} error=${err?.message}`);+ failed++;+ }+}++// Process CONCURRENCY agents at a time.+for (let i = 0; i < rows.length; i += CONCURRENCY) {+ const batch = rows.slice(i, i + CONCURRENCY);+ await Promise.all(batch.map(processOne));+ if (i + CONCURRENCY < rows.length) {+ process.stdout.write(` [${Math.min(i + CONCURRENCY, rows.length)}/${rows.length}] ...`);+ process.stdout.write('\r');+ }+}++console.log('');+console.log('── Results ──────────────────────────────────────────────────────');+console.log(` Created : ${created}`);+console.log(` Already existed (skipped) : ${skipped}`);+console.log(` Failed : ${failed}`);++await sql.end();+process.exit(failed > 0 ? 1 : 0);diff --git a/scripts/seed-known-wallets.mjs b/scripts/seed-known-wallets.mjsnew file mode 100644index 000000000..857571daa--- /dev/null+++ b/scripts/seed-known-wallets.mjs@@ -0,0 +1,206 @@+#!/usr/bin/env node+/**+ * Seed api/_lib/oracle/known-wallets.json from kol-quest Solana wallet data.+ *+ * Sources (in order):+ * 1. nirholas/kol-quest — pre-built solwallets.json (smart_degen, kol, sniper, top_dev, pump_smart)+ * 2. GMGN API — live top wallets for Solana (supplements/overrides with fresher pnl data)+ *+ * Run locally and commit the result. The known-wallets.json is a static prior;+ * the cron at api/crons/kol-sync refreshes a DB table with live scores.+ *+ * Usage:+ * node scripts/seed-known-wallets.mjs # full refresh+ * node scripts/seed-known-wallets.mjs --dry # print stats only+ * node scripts/seed-known-wallets.mjs --gmgn-only # skip kol-quest, GMGN only+ */+import * as fs from 'node:fs';+import * as path from 'node:path';+import { fileURLToPath } from 'node:url';++const __dirname = path.dirname(fileURLToPath(import.meta.url));+const OUT = path.join(__dirname, '../api/_lib/oracle/known-wallets.json');++const DRY = process.argv.includes('--dry');+const GMGN_ONLY = process.argv.includes('--gmgn-only');++// ── label mapping: kol-quest category → Oracle label ─────────────────────────+const CATEGORY_LABEL = {+ smart_degen: 'smart_money',+ pump_smart: 'smart_money',+ kol: 'kol',+ sniper: 'sniper',+ top_dev: 'top_dev',+ fresh_wallet: null, // skip — not proven+};++// ── fetch helpers ─────────────────────────────────────────────────────────────+const GMGN_HEADERS = {+ 'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',+ 'Accept': 'application/json, */*',+ 'Accept-Language': 'en-US,en;q=0.9',+ 'Referer': 'https://gmgn.ai/',+ 'Origin': 'https://gmgn.ai',+};++async function fetchJson(url, opts = {}) {+ const r = await fetch(url, { headers: GMGN_HEADERS, ...opts });+ if (!r.ok) throw new Error(`${r.status} ${r.statusText} — ${url}`);+ return r.json();+}++async function fetchWithRetry(url, retries = 3, delay = 2000) {+ for (let i = 0; i < retries; i++) {+ try {+ return await fetchJson(url);+ } catch (err) {+ if (i === retries - 1) throw err;+ console.warn(` retry ${i + 1}/${retries} — ${err.message}`);+ await new Promise(r => setTimeout(r, delay * (i + 1)));+ }+ }+}++// ── source 1: kol-quest pre-built solwallets.json ─────────────────────────────+async function fetchKolQuest() {+ console.log('Fetching kol-quest solwallets.json ...');+ const url = 'https://raw.githubusercontent.com/nirholas/kol-quest/main/site/data/solwallets.json';+ let data;+ try {+ data = await fetchWithRetry(url);+ } catch (err) {+ console.warn(` kol-quest fetch failed: ${err.message}. Skipping this source.`);+ return {};+ }++ const wallets = {};+ const smartMoney = data?.smartMoney?.wallets || {};+ const kolWallets = data?.kol?.wallets || [];++ // smart_degen, sniper, fresh_wallet, top_dev, pump_smart+ for (const [category, entries] of Object.entries(smartMoney)) {+ const label = CATEGORY_LABEL[category];+ if (!label || !Array.isArray(entries)) continue;+ for (const entry of entries) {+ const addr = entry.wallet_address || entry.address;+ if (!addr || addr.length < 30) continue;+ wallets[addr] = {+ label,+ tag: category,+ pnl_30d: entry.pnl_30d ?? null,+ profit_30d_usd: entry.realized_profit_30d ?? null,+ win_rate_30d: entry.winrate_30d ?? null,+ };+ }+ }+ // kol entries+ for (const entry of kolWallets) {+ const addr = entry.wallet_address || entry.address;+ if (!addr || addr.length < 30) continue;+ wallets[addr] = {+ label: 'kol',+ tag: 'kol',+ pnl_30d: entry.pnl_30d ?? null,+ profit_30d_usd: entry.realized_profit_30d ?? null,+ win_rate_30d: entry.winrate_30d ?? null,+ twitter_username: entry.twitter_username ?? null,+ };+ }++ console.log(` kol-quest: ${Object.keys(wallets).length} Solana wallets`);+ return wallets;+}++// ── source 2: GMGN live rankings ─────────────────────────────────────────────+const GMGN_CATEGORIES = ['smart_degen', 'kol', 'sniper', 'top_dev', 'pump_smart'];+const GMGN_TF = '30d';+const GMGN_PAGES = 2; // 200 per category = 1000 total max++async function fetchGmgn() {+ console.log('Fetching GMGN live rankings ...');+ const wallets = {};+ let total = 0;++ for (const category of GMGN_CATEGORIES) {+ const label = CATEGORY_LABEL[category];+ if (!label) continue;+ let count = 0;+ for (let page = 1; page <= GMGN_PAGES; page++) {+ const url = `https://gmgn.ai/defi/quotation/v1/rank/sol/${category}/${GMGN_TF}?orderby=pnl_${GMGN_TF}&direction=desc&page=${page}&limit=100`;+ try {+ const data = await fetchWithRetry(url);+ const entries = data?.data?.rank || [];+ if (!entries.length) break;+ for (const entry of entries) {+ const addr = entry.wallet_address || entry.address;+ if (!addr || addr.length < 30) continue;+ // GMGN wins over kol-quest for fresher pnl data.+ wallets[addr] = {+ label,+ tag: category,+ pnl_30d: entry.pnl_30d ?? null,+ profit_30d_usd: entry.realized_profit_30d ?? null,+ win_rate_30d: entry.winrate_30d ?? null,+ };+ count++;+ }+ // Polite pause between pages+ await new Promise(r => setTimeout(r, 800));+ } catch (err) {+ console.warn(` GMGN ${category} page ${page}: ${err.message}`);+ break;+ }+ }+ console.log(` GMGN ${category}: ${count} wallets`);+ total += count;+ // Pause between categories+ await new Promise(r => setTimeout(r, 1200));+ }++ console.log(` GMGN total: ${total} wallets`);+ return wallets;+}++// ── main ──────────────────────────────────────────────────────────────────────+const merged = {};++if (!GMGN_ONLY) {+ const kq = await fetchKolQuest();+ Object.assign(merged, kq);+}++const gmgn = await fetchGmgn();+// GMGN overwrites kol-quest (fresher data)+Object.assign(merged, gmgn);++// ── stats ─────────────────────────────────────────────────────────────────────+const counts = {};+for (const w of Object.values(merged)) {+ counts[w.label] = (counts[w.label] || 0) + 1;+}+const total = Object.keys(merged).length;++console.log('');+console.log(`── Results ──────────────────────────────────────────────────────`);+console.log(` Total wallets : ${total}`);+for (const [label, n] of Object.entries(counts)) {+ console.log(` ${label.padEnd(14)} : ${n}`);+}++if (DRY) {+ console.log('[dry-run] Not writing known-wallets.json');+ process.exit(0);+}++const output = {+ meta: {+ source: 'gmgn.ai + nirholas/kol-quest',+ total,+ counts,+ updated_at: new Date().toISOString(),+ },+ wallets: merged,+};++fs.writeFileSync(OUT, JSON.stringify(output, null, 0));+console.log(`Wrote ${OUT} (${(fs.statSync(OUT).size / 1024).toFixed(1)} KB)`);diff --git a/scripts/seed-wallet-reputation.mjs b/scripts/seed-wallet-reputation.mjsnew file mode 100644index 000000000..060a9aad2--- /dev/null+++ b/scripts/seed-wallet-reputation.mjs@@ -0,0 +1,175 @@+#!/usr/bin/env node+// Seed wallet_reputation from gmgn.ai's public smart-money API.+//+// Cold-start problem: on day one we have no wallet reputation data, but gmgn.ai+// has years of it. This script fetches their ranked wallet lists (no key needed,+// same endpoints the browser uses) and upserts seed rows into wallet_reputation.+//+// Run once manually: node scripts/seed-wallet-reputation.mjs+// Or add to a cron: node scripts/seed-wallet-reputation.mjs --dry-run (preview)+//+// Safe: uses ON CONFLICT DO NOTHING for existing rows so running it again never+// downgrades a wallet we've already scored from live data.+//+// Source: nirholas/kol-quest GMGN fetcher patterns (adapted for Node.js / one-shot).++import { neon } from '@neondatabase/serverless';++const DRY_RUN = process.argv.includes('--dry-run');+const NETWORK = 'mainnet';+const GMGN_BASE = 'https://gmgn.ai/defi/quotation/v1';+const UA = 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36';++const HEADERS = {+ 'User-Agent': UA,+ 'Accept': 'application/json, */*',+ 'Accept-Language': 'en-US,en;q=0.9',+ 'Referer': 'https://gmgn.ai/',+};++// Categories and timeframes to seed from+const CATEGORIES = ['smart_degen', 'pump_smart', 'kol', 'sniper', 'top_dev'];+const TIMEFRAMES = ['7d', '30d'];++async function sleep(ms) { return new Promise((r) => setTimeout(r, ms)); }++async function fetchJSON(url, retries = 2) {+ for (let attempt = 0; attempt <= retries; attempt++) {+ try {+ const r = await fetch(url, { headers: HEADERS });+ if (r.status === 429) {+ console.warn(` rate limited — waiting 10s (attempt ${attempt + 1}/${retries + 1})`);+ await sleep(10_000);+ continue;+ }+ if (!r.ok) { console.warn(` HTTP ${r.status} for ${url}`); return null; }+ return await r.json();+ } catch (err) {+ console.warn(` fetch error: ${err.message}`);+ if (attempt < retries) await sleep(2_000);+ }+ }+ return null;+}++function labelFromCategory(category, pnl30d, winrate30d, tags) {+ // Map gmgn category + stats → our wallet_reputation label+ if (category === 'sniper') return 'sniper';+ if (category === 'top_dev') return 'neutral'; // devs have different signal+ if (category === 'kol') return 'neutral';+ // smart_degen / pump_smart: score by win-rate+ if (winrate30d >= 0.65) return 'smart_money';+ if (winrate30d >= 0.45) return 'neutral';+ return 'unproven';+}++function gmgnSmartMoneyScore(category, winrate30d, winrate7d, pnl30d) {+ // Map gmgn data to our 0..100 smart_money_score+ const wr = winrate30d || winrate7d || 0;+ const cat = category === 'smart_degen' || category === 'pump_smart' ? 10 : 0;+ const pnlBonus = pnl30d > 10000 ? 10 : pnl30d > 1000 ? 5 : 0;+ return Math.min(100, Math.round(wr * 80 + cat + pnlBonus));+}++async function main() {+ if (!process.env.DATABASE_URL) {+ console.error('DATABASE_URL not set');+ process.exit(1);+ }+ const sql = neon(process.env.DATABASE_URL);++ // Deduplicate across categories/timeframes — keep the best stats+ const wallets = new Map(); // address -> bestRow++ for (const category of CATEGORIES) {+ for (const timeframe of TIMEFRAMES) {+ const url = `${GMGN_BASE}/rank/sol/${category}/${timeframe}?orderby=pnl_${timeframe}&direction=desc&page=1&limit=100`;+ console.log(`Fetching ${category}/${timeframe}...`);+ const data = await fetchJSON(url);+ await sleep(800);++ // gmgn returns { code: 0, data: { rank: [...] } } or { code: 0, data: [...] }+ const rank = data?.data?.rank || data?.data || [];+ if (!Array.isArray(rank)) { console.warn(' unexpected shape — skipping'); continue; }++ for (const w of rank) {+ const addr = w.wallet_address || w.address;+ if (!addr || typeof addr !== 'string' || addr.length < 32) continue;++ const wr7 = parseFloat(w.winrate_7d || w.win_rate_7d || 0);+ const wr30 = parseFloat(w.winrate_30d || w.win_rate_30d || 0);+ const pnl30 = parseFloat(w.realized_profit_30d || w.pnl_30d || 0);+ const pnl7 = parseFloat(w.realized_profit_7d || w.pnl_7d || 0);+ const buy30 = parseInt(w.buy_30d || 0, 10);+ const sell30 = parseInt(w.sell_30d || 0, 10);++ const existing = wallets.get(addr);+ const score = gmgnSmartMoneyScore(category, wr30, wr7, pnl30);++ // Keep the row with the highest computed score+ if (!existing || score > existing.score) {+ wallets.set(addr, {+ wallet: addr,+ category,+ winrate7: wr7,+ winrate30: wr30,+ pnl30,+ pnl7,+ buy30,+ sell30,+ score,+ label: labelFromCategory(category, pnl30, wr30, w.tags),+ tags: w.tags || [],+ });+ }+ }+ }+ }++ console.log(`\nCollected ${wallets.size} unique wallets. ${DRY_RUN ? '[DRY RUN — not writing]' : 'Writing to DB...'}`);++ if (DRY_RUN) {+ const preview = [...wallets.values()].sort((a, b) => b.score - a.score).slice(0, 10);+ for (const w of preview) {+ console.log(` ${w.wallet.slice(0, 8)}… score=${w.score} label=${w.label} wr30=${(w.winrate30 * 100).toFixed(0)}% pnl30=$${Math.round(w.pnl30)}`);+ }+ return;+ }++ let inserted = 0;+ let skipped = 0;+ const rows = [...wallets.values()];++ for (let i = 0; i < rows.length; i += 50) {+ const batch = rows.slice(i, i + 50);+ for (const w of batch) {+ try {+ const result = await sql`+ insert into wallet_reputation (+ wallet, network, smart_money_score, label,+ win_rate, early_win_rate, dump_rate,+ coins_traded, buy_volume_lamports,+ first_seen_at, last_active_at, updated_at+ ) values (+ ${w.wallet}, ${NETWORK}, ${w.score}, ${w.label},+ ${w.winrate30}, ${w.winrate7}, 0,+ ${w.buy30 + w.sell30}, 0,+ now(), now(), now()+ )+ on conflict (wallet, network) do nothing+ returning wallet+ `;+ if (result.length) inserted++;+ else skipped++;+ } catch (err) {+ console.warn(` failed to insert ${w.wallet.slice(0, 8)}…: ${err.message}`);+ }+ }+ if (i % 200 === 0 && i > 0) console.log(` ${i}/${rows.length} processed…`);+ }++ console.log(`\nDone. Inserted=${inserted} Skipped(already exists)=${skipped}`);+ console.log('wallet_reputation is now seeded — the smart-money xref will have data from first launch.');+}++main().catch((err) => { console.error(err); process.exit(1); });diff --git a/src/launch-detail.css b/src/launch-detail.cssindex b10f80342..642b0fbaa 100644--- a/src/launch-detail.css+++ b/src/launch-detail.css@@ -397,11 +397,10 @@ body {}.ld-int-btn:hover { color: var(--ink-bright); }.ld-int-btn.active { color: var(--ink-bright); border-color: var(--stroke-strong); background: var(--surface-3); }-.ld-chart-canvas { position: relative; min-height: 200px; }+.ld-chart-canvas { position: relative; min-height: 220px; }.ld-chart-readout { display: flex; align-items: baseline; gap: var(--space-sm); margin-bottom: var(--space-2xs); }.ld-chart-price { font-family: var(--font-mono); font-size: var(--text-lg); font-weight: var(--weight-semibold); color: var(--ink-bright); }.ld-chart-change { font-family: var(--font-mono); font-size: var(--text-sm); }-.ld-chart-svg { width: 100%; height: 220px; display: block; }.ld-chart-up { color: var(--success); }.ld-chart-down { color: var(--danger); }@@ -541,8 +540,18 @@ body {.ld-btn-primary:hover { color: var(--bg-0); filter: brightness(1.08); }.ld-btn-ghost { background: transparent; }.ld-btn-block { width: 100%; justify-content: center; }+.ld-btn-sm { font-size: var(--text-xs); padding: var(--space-xs) var(--space-sm); }+.ld-btn-accent { background: color-mix(in srgb, var(--accent) 15%, transparent); color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }+.ld-btn-accent:hover { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); border-color: var(--accent); }+.ld-btn-buy { position: relative; overflow: hidden; }+.ld-btn-buy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%); transform: translateX(-100%); transition: transform 0.4s ease; }+.ld-btn-buy:hover::after { transform: translateX(100%); }.ld-watch-on { color: var(--warn); border-color: var(--warn); }+/* ── Agent CTAs row ──────────────────────────────────────────────────────── */+.ld-agent-ctas { display: flex; gap: var(--space-sm); }+.ld-agent-ctas .ld-btn { flex: 1 1 auto; justify-content: center; }+/* ── States ───────────────────────────────────────────────────────────────── */.ld-empty { text-align: center; padding: var(--space-md) 0; }@@ -556,6 +565,70 @@ body {.ld-fatal p { color: var(--ink-dim); margin: 0 0 var(--space-lg); }.ld-fatal-ctas { display: flex; gap: var(--space-sm); justify-content: center; flex-wrap: wrap; }+/* ── Volume bars (chart) ─────────────────────────────────────────────────── */++.ld-chart-svg { width: 100%; height: 250px; display: block; }+.ld-vol-bar { opacity: 0.45; }+.ld-vol-up { fill: var(--success); }+.ld-vol-dn { fill: var(--danger); }+.ld-vol-divider { stroke: var(--stroke); stroke-width: 0.5; }++/* ── Swap modal ─────────────────────────────────────────────────────────── */++.ld-swap-overlay {+ position: fixed; inset: 0; z-index: 1000;+ background: color-mix(in srgb, var(--bg-0) 60%, transparent);+ backdrop-filter: blur(6px);+ display: flex; align-items: center; justify-content: center;+ padding: var(--space-md);+ animation: ld-fade-in 180ms var(--ease-out);+}+@keyframes ld-fade-in { from { opacity: 0; } to { opacity: 1; } }++.ld-swap-modal {+ background: var(--surface-1);+ border: 1px solid var(--stroke-strong);+ border-radius: var(--radius-lg);+ width: 100%;+ max-width: 480px;+ max-height: 90vh;+ overflow-y: auto;+ box-shadow: 0 32px 80px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.04);+ animation: ld-modal-in 220ms var(--ease-out);+}+@keyframes ld-modal-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }+@media (prefers-reduced-motion: reduce) { .ld-swap-modal, .ld-swap-overlay { animation: none; } }++.ld-swap-head {+ display: flex; align-items: center; justify-content: space-between;+ padding: var(--space-md) var(--space-md) var(--space-sm);+ border-bottom: 1px solid var(--stroke);+}+.ld-swap-title {+ font-family: var(--font-display);+ font-size: var(--text-md);+ font-weight: var(--weight-semibold);+ color: var(--ink-bright);+}+.ld-swap-close {+ width: 32px; height: 32px;+ display: grid; place-items: center;+ border: 1px solid var(--stroke); border-radius: var(--radius-sm);+ background: var(--surface-2); color: var(--ink-dim);+ cursor: pointer; font-size: var(--text-sm);+ transition: border-color var(--duration-fast), color var(--duration-fast);+}+.ld-swap-close:hover { border-color: var(--stroke-strong); color: var(--ink-bright); }+.ld-swap-close:focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring-color); outline-offset: var(--focus-ring-offset); }++.ld-swap-terminal { min-height: 420px; }+.ld-swap-loading { padding: var(--space-md); }+.ld-swap-error {+ display: flex; flex-direction: column; align-items: center; gap: var(--space-md);+ padding: var(--space-xl) var(--space-md); text-align: center;+}+.ld-swap-error p { margin: 0; font-size: var(--text-sm); color: var(--ink-dim); }+/* ── Skeletons ────────────────────────────────────────────────────────────── */.ld-skel { border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: ld-shimmer 1.4s ease infinite; }diff --git a/src/launch-detail.js b/src/launch-detail.jsindex 5a952a1f5..3015a63ee 100644--- a/src/launch-detail.js+++ b/src/launch-detail.js@@ -38,6 +38,7 @@ import {const GRADUATION_CAP_USD = 69_000; // pump.fun bonding-curve graduation thresholdconst REDUCED_MOTION = window.matchMedia('(prefers-reduced-motion: reduce)').matches;+const SOL_MINT = 'So11111111111111111111111111111111111111112';const state = {mint: null,@@ -49,6 +50,114 @@ const state = {priceTimer: 0,};+// ── Jupiter Terminal lazy loader ─────────────────────────────────────────────+// We load the Jupiter Terminal script only when the user clicks Buy, so it+// never slows down cold page loads. The script self-registers as window.Jupiter.++let _jupState = 'idle'; // idle | loading | ready | error+const _jupCallbacks = [];++function loadJupiter() {+ if (_jupState === 'ready') return Promise.resolve();+ if (_jupState === 'error') return Promise.reject(new Error('Jupiter Terminal failed to load'));+ return new Promise((resolve, reject) => {+ _jupCallbacks.push({ resolve, reject });+ if (_jupState === 'loading') return;+ _jupState = 'loading';+ const s = document.createElement('script');+ s.src = 'https://terminal.jup.ag/main-v3.js';+ s.onload = () => {+ _jupState = 'ready';+ _jupCallbacks.splice(0).forEach((cb) => cb.resolve());+ };+ s.onerror = () => {+ _jupState = 'error';+ _jupCallbacks.splice(0).forEach((cb) => cb.reject(new Error('Jupiter Terminal failed to load')));+ };+ document.head.appendChild(s);+ });+}++function openSwapModal(mint, symbol) {+ // Remove any pre-existing modal (guard against double-click race).+ document.getElementById('ld-swap-overlay')?.remove();++ const containerId = 'jup-terminal-container';+ const title = `Buy ${symbol ? `$${symbol}` : 'this token'}`;++ const closeModal = () => {+ overlay.remove();+ // Destroy the terminal instance so it doesn't leak event listeners.+ try { window.Jupiter?.close?.(); } catch { /* fine */ }+ };++ const loader = el('div', { class: 'ld-swap-loading' }, [+ el('div', { class: 'ld-skel', style: 'height:420px;border-radius:var(--radius-md)' }),+ ]);+ const container = el('div', { id: containerId, class: 'ld-swap-terminal' });++ const modal = el('div', { class: 'ld-swap-modal', role: 'dialog', 'aria-modal': 'true', 'aria-label': title }, [+ el('div', { class: 'ld-swap-head' }, [+ el('span', { class: 'ld-swap-title', text: title }),+ el('button', {+ class: 'ld-swap-close',+ type: 'button',+ 'aria-label': 'Close swap',+ text: '✕',+ onclick: closeModal,+ }),+ ]),+ loader,+ container,+ ]);++ const overlay = el('div', { id: 'ld-swap-overlay', class: 'ld-swap-overlay' });+ overlay.appendChild(modal);+ document.body.appendChild(overlay);++ // Close on backdrop click or Escape.+ overlay.addEventListener('click', (e) => { if (e.target === overlay) closeModal(); });+ const escListener = (e) => { if (e.key === 'Escape') { closeModal(); document.removeEventListener('keydown', escListener); } };+ document.addEventListener('keydown', escListener);++ loadJupiter()+ .then(() => {+ loader.style.display = 'none';+ // Use a public Solana RPC — Jupiter routes through its own aggregator+ // so this only needs to submit the final signed transaction.+ window.Jupiter.init({+ displayMode: 'integrated',+ integratedTargetId: containerId,+ endpoint: 'https://api.mainnet-beta.solana.com',+ formProps: {+ initialInputMint: SOL_MINT,+ initialOutputMint: mint,+ swapMode: 'ExactIn',+ fixedOutputMint: true,+ },+ containerStyles: {+ borderRadius: '12px',+ overflow: 'hidden',+ background: 'var(--bg-0, #0a0a0a)',+ },+ });+ })+ .catch(() => {+ loader.replaceChildren(+ el('div', { class: 'ld-swap-error' }, [+ el('p', { text: 'Could not load the swap terminal.' }),+ el('a', {+ class: 'ld-btn ld-btn-primary',+ href: `https://pump.fun/${mint}`,+ target: '_blank',+ rel: 'noopener noreferrer',+ text: `Trade on pump.fun ↗`,+ }),+ ]),+ );+ });+}+// ── DOM helpers ──────────────────────────────────────────────────────────────function el(tag, props = {}, children = []) {@@ -580,23 +689,46 @@ const WINDOW_HOURS = { '5m': 12, '15m': 36, '1h': 96, '4h': 480, '1d': 2160 };function areaChart(points) {// points: [{t,o,h,l,c,v}] ascending. Pure SVG, theme-aware via currentColor.+ // Volume bars rendered in a 40px panel at the bottom, price line above.const w = 720;- const h = 240;- const pad = { t: 14, r: 8, b: 18, l: 8 };+ const h = 270;+ const volH = 40; // height of volume bar panel+ const priceH = h - volH;+ const pad = { t: 14, r: 8, b: 4, l: 8 };const closes = points.map((p) => p.c);+ const vols = points.map((p) => p.v || 0);const min = Math.min(...closes);const max = Math.max(...closes);const span = max - min || max || 1;+ const maxVol = Math.max(...vols) || 1;const innerW = w - pad.l - pad.r;- const innerH = h - pad.t - pad.b;+ const innerH = priceH - pad.t - pad.b;const x = (i) => pad.l + (i / Math.max(1, points.length - 1)) * innerW;const y = (v) => pad.t + innerH - ((v - min) / span) * innerH;const up = points.length > 1 && closes[closes.length - 1] >= closes[0];const line = points.map((p, i) => `${i ? 'L' : 'M'}${x(i).toFixed(1)} ${y(p.c).toFixed(1)}`).join(' ');- const area = `${line} L${x(points.length - 1).toFixed(1)} ${(h - pad.b).toFixed(1)} L${x(0).toFixed(1)} ${(h - pad.b).toFixed(1)} Z`;+ const area = `${line} L${x(points.length - 1).toFixed(1)} ${(priceH - pad.b).toFixed(1)} L${x(0).toFixed(1)} ${(priceH - pad.b).toFixed(1)} Z`;++ // Volume bars — each candle gets a bar in the lower panel. Buy-dominant+ // candles (close > open) are tinted green, sell-dominant tinted red.+ const barW = Math.max(1, (innerW / points.length) * 0.65);+ const volBars = points.map((p, i) => {+ const barH = (p.v / maxVol) * (volH - 6);+ const isUp = p.c >= p.o;+ const bx = x(i) - barW / 2;+ const by = h - barH - 2;+ return svg('rect', {+ x: bx.toFixed(1),+ y: by.toFixed(1),+ width: barW.toFixed(1),+ height: Math.max(1, barH).toFixed(1),+ class: `ld-vol-bar ${isUp ? 'ld-vol-up' : 'ld-vol-dn'}`,+ rx: '1',+ });+ });- const node = svg('svg', { viewBox: `0 0 ${w} ${h}`, class: `ld-chart-svg ${up ? 'ld-chart-up' : 'ld-chart-down'}`, preserveAspectRatio: 'none', role: 'img', 'aria-label': 'Price history' });+ const node = svg('svg', { viewBox: `0 0 ${w} ${h}`, class: `ld-chart-svg ${up ? 'ld-chart-up' : 'ld-chart-down'}`, preserveAspectRatio: 'none', role: 'img', 'aria-label': 'Price history chart with volume' });const gradId = 'ldchartgrad';const defs = svg('defs', {});const grad = svg('linearGradient', { id: gradId, x1: '0', y1: '0', x2: '0', y2: '1' });@@ -605,8 +737,10 @@ function areaChart(points) {svg('stop', { offset: '100%', 'stop-color': 'currentColor', 'stop-opacity': '0' }),);defs.append(grad);+ // Divider between price and volume panels.+ const divider = svg('line', { x1: pad.l, y1: priceH, x2: w - pad.r, y2: priceH, class: 'ld-vol-divider' });+ node.append(defs, ...volBars, divider);node.append(- defs,svg('path', { d: area, fill: `url(#${gradId})`, stroke: 'none' }),svg('path', { d: line, fill: 'none', stroke: 'currentColor', 'stroke-width': '2', 'stroke-linejoin': 'round', 'stroke-linecap': 'round' }),);@@ -891,9 +1025,11 @@ function renderAgent() {]),]);body.appendChild(scoreEl);- body.appendChild(- el('a', { class: 'ld-btn ld-btn-ghost ld-btn-block', href: `/trader/${agent.id}`, text: 'Full track record →' }),- );+ const ctaRow = el('div', { class: 'ld-agent-ctas' }, [+ el('a', { class: 'ld-btn ld-btn-ghost ld-btn-sm', href: `/trader/${agent.id}`, text: 'Track record →' }),+ el('a', { class: 'ld-btn ld-btn-accent ld-btn-sm', href: `/trader/${agent.id}#tp-copy-panel`, text: 'Copy trades ⚡' }),+ ]);+ body.appendChild(ctaRow);} else {body.appendChild(el('p', { class: 'ld-agent-note', text: 'No public trading track record yet for this agent.' }),@@ -1114,10 +1250,7 @@ function renderActions() {const target = $('ld-actions');const isDevnet = state.network === 'devnet';const symbol = (state.coin?.symbol || state.detail.registry?.symbol || '').toUpperCase();-- const tradeHref = isDevnet- ? `https://explorer.solana.com/address/${state.mint}?cluster=devnet`- : `https://pump.fun/${state.mint}`;+ const mint = state.mint;const watchBtn = el('button', { class: 'ld-btn ld-watch', type: 'button', 'aria-pressed': 'false' });paintWatch(watchBtn);@@ -1128,7 +1261,7 @@ function renderActions() {type: 'button',text: 'Share',onclick: async (e) => {- const url = `${location.origin}/launches/${state.mint}`;+ const url = `${location.origin}/launches/${mint}`;const title = `${symbol ? `$${symbol}` : 'This coin'} on three.ws`;if (navigator.share) {try {@@ -1150,12 +1283,29 @@ function renderActions() {},});- const buttons = [- el('a', { class: 'ld-btn ld-btn-primary', href: tradeHref, target: '_blank', rel: 'noopener noreferrer', text: isDevnet ? 'View on explorer ↗' : `Trade ${symbol ? `$${symbol}` : 'coin'} ↗` }),- ];- if (!isDevnet) {- buttons.push(el('a', { class: 'ld-btn ld-btn-ghost', href: `/coin3d?mint=${encodeURIComponent(state.mint)}`, text: 'View in 3D' }));+ const buttons = [];++ if (isDevnet) {+ buttons.push(+ el('a', { class: 'ld-btn ld-btn-primary', href: `https://explorer.solana.com/address/${mint}?cluster=devnet`, target: '_blank', rel: 'noopener noreferrer', text: 'View on explorer ↗' }),+ );+ } else {+ // Primary: in-platform Jupiter Terminal swap — keeps traders on three.ws.+ buttons.push(+ el('button', {+ class: 'ld-btn ld-btn-primary ld-btn-buy',+ type: 'button',+ text: `Buy ${symbol ? `$${symbol}` : 'token'}`,+ onclick: () => openSwapModal(mint, symbol),+ }),+ );+ // Secondary: pump.fun direct link for power users who prefer it.+ buttons.push(+ el('a', { class: 'ld-btn ld-btn-ghost', href: `https://pump.fun/${mint}`, target: '_blank', rel: 'noopener noreferrer', text: 'pump.fun ↗' }),+ );+ buttons.push(el('a', { class: 'ld-btn ld-btn-ghost', href: `/coin3d?mint=${encodeURIComponent(mint)}`, text: 'View in 3D' }));}+buttons.push(watchBtn, shareBtn);const body = el('div', { class: 'ld-action-grid' }, buttons);diff --git a/src/oracle-tape.js b/src/oracle-tape.jsnew file mode 100644index 000000000..a00c8f491--- /dev/null+++ b/src/oracle-tape.js@@ -0,0 +1,127 @@+// Oracle — live trade tape for a single coin.+//+// Mounts a scrollable buy/sell feed inside a container element. Connects via+// SSE to /api/oracle/trades?mint= which proxies PumpPortal's per-mint token+// trade stream and pre-annotates every trade with wallet reputation labels.+// The tape auto-reconnects on 'bye' (server rotates every 45 s).++const ARCH_TITLE = {+ smart_money: 'Smart Money', kol: 'KOL', top_dev: 'Top Dev', sniper: 'Sniper',+ dumper: 'Dumper', rugger: 'Rugger', fresh: 'Fresh', neutral: 'Neutral', unproven: 'Unproven',+};++const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]));++function shortAddr(a) { return a && a.length > 8 ? `${a.slice(0, 4)}…${a.slice(-4)}` : (a || '—'); }++function fmtSol(n) {+ if (n == null) return '—';+ const v = Number(n);+ return v < 0.001 ? v.toFixed(5) + '◎' : v < 0.1 ? v.toFixed(4) + '◎' : v.toFixed(3) + '◎';+}++const MAX_ROWS = 60;+const RECONNECT_DELAY_MS = 2000;++/**+ * Mount a live trade tape inside `container`.+ *+ * @param {HTMLElement} container Target element to render into.+ * @param {object} opts+ * @param {string} opts.mint Token mint address.+ * @param {string} [opts.network='mainnet']+ * @returns {{ destroy(): void }} Call destroy() to disconnect and clear.+ */+export function mountTradeTape(container, { mint, network = 'mainnet' }) {+ container.innerHTML = `+ <div class="tape-header">+ <span class="tape-dot"></span>+ <span class="tape-status" id="tapeStatus">Connecting…</span>+ <span class="tape-ct" id="tapeCt"></span>+ </div>+ <div class="tape-list" id="tapeList"></div>+ `;++ const statusEl = container.querySelector('#tapeStatus');+ const ctEl = container.querySelector('#tapeCt');+ const listEl = container.querySelector('#tapeList');+ let tradeCount = 0;+ let es = null;+ let active = true;+ let reconnectTimer = null;++ function setStatus(text, live = false) {+ statusEl.textContent = text;+ container.querySelector('.tape-dot')?.classList.toggle('live', live);+ }++ function addRow(trade) {+ tradeCount++;+ ctEl.textContent = tradeCount;++ const isBuy = trade.is_buy;+ const label = trade.label;+ const title = ARCH_TITLE[label] || null;+ const tag = trade.tag ? `@${esc(trade.tag)}` : '';++ const row = document.createElement('div');+ row.className = `tape-row ${isBuy ? 'buy' : 'sell'}`;+ row.innerHTML = `+ <span class="tape-type">${isBuy ? '▲ BUY' : '▼ SELL'}</span>+ ${title ? `<span class="nlabel lb-${esc(label)}">${esc(title)}</span>` : ''}+ ${tag ? `<span class="tape-tag">${tag}</span>` : ''}+ <span class="tape-addr">${esc(shortAddr(trade.wallet))}</span>+ <span class="tape-sol ${isBuy ? 'buy' : 'sell'}">${fmtSol(trade.sol)}</span>+ ${trade.mc_sol != null ? `<span class="tape-mc">${trade.mc_sol.toFixed(1)}◎ mc</span>` : ''}+ `;++ listEl.prepend(row);+ // Flash the row for 600 ms so fresh trades pop.+ row.classList.add('flash');+ setTimeout(() => row.classList.remove('flash'), 600);++ // Trim to max rows+ const rows = listEl.querySelectorAll('.tape-row');+ if (rows.length > MAX_ROWS) rows[rows.length - 1].remove();+ }++ function open() {+ if (!active) return;+ es = new EventSource(`/api/oracle/trades?mint=${encodeURIComponent(mint)}&network=${encodeURIComponent(network)}`);++ es.addEventListener('hello', (e) => {+ const d = JSON.parse(e.data || '{}');+ setStatus('Live trades', true);+ if (d.roster_size) statusEl.title = `${d.roster_size} wallets annotated`;+ });++ es.addEventListener('trade', (e) => {+ let trade; try { trade = JSON.parse(e.data); } catch { return; }+ addRow(trade);+ });++ es.addEventListener('ping', () => { /* keep-alive — no UI action */ });++ es.addEventListener('bye', () => {+ es.close();+ if (active) reconnectTimer = setTimeout(open, RECONNECT_DELAY_MS);+ });++ es.onerror = () => {+ setStatus('Reconnecting…', false);+ es.close();+ if (active) reconnectTimer = setTimeout(open, RECONNECT_DELAY_MS * 2);+ };+ }++ open();++ return {+ destroy() {+ active = false;+ clearTimeout(reconnectTimer);+ try { es?.close(); } catch {}+ container.innerHTML = '';+ },+ };+}diff --git a/src/oracle.js b/src/oracle.jsindex c572e3912..a8ffe7b86 100644--- a/src/oracle.js+++ b/src/oracle.js@@ -1,11 +1,13 @@// Oracle — the fused pump.fun conviction war room.//-// Reads /api/oracle/* (feed, coin, wallet, stream, watch). Every surface-// degrades gracefully: if the backend isn't reachable yet (it deploys with the-// migration), the page shows an honest "warming up" state instead of breaking.+// Reads /api/oracle/* (feed, coin, wallet, stream, watch, trades). Every+// surface degrades gracefully: if the backend isn't reachable yet (it deploys+// with the migration), the page shows an honest "warming up" state instead of+// breaking.//// Views: live conviction feed (with SSE), wallet reputation leaderboard,-// conviction-tier edge backtest, and the agent action-loop arm panel.+// conviction-tier edge backtest, the agent action-loop arm panel, and the 3D+// force graph. The coin drawer also streams live trades via oracle-tape.js.const NETWORK = 'mainnet';const $ = (s, r = document) => r.querySelector(s);@@ -61,6 +63,7 @@ const state = {agents: [],agentId: null,watch: null,+ tape: null, // { destroy() } handle from oracle-tape.js};// ── boot ─────────────────────────────────────────────────────────────────────@@ -380,7 +383,23 @@ function renderDrawer(d) {${out ? `<div class="dr-sec">Outcome</div><div class="coin-meta"><span class="chip ${out.graduated ? 'sm' : out.rugged ? 'flag' : ''}">${out.graduated ? 'graduated ✓' : out.rugged ? 'rugged ✕' : 'live'}</span>${out.ath_multiple ? `<span class="chip">ATH <b>${Number(out.ath_multiple).toFixed(1)}×</b></span>` : ''}</div>` : ''}+ <div class="dr-sec">Live trades</div>+ <div id="tradeTape" class="trade-tape"></div>`;++ // Tear down any previous tape, then mount fresh for this coin.+ state.tape?.destroy();+ state.tape = null;+ const tapeEl = $('#tradeTape');+ if (tapeEl) {+ import('./oracle-tape.js').then(({ mountTradeTape }) => {+ // Guard: drawer may have been closed while the import was in flight.+ if (!$('#tradeTape')) return;+ state.tape = mountTradeTape(tapeEl, { mint: c.mint, network: NETWORK });+ }).catch(() => {+ if (tapeEl) tapeEl.innerHTML = '<div class="state" style="padding:16px 0">Trade feed unavailable.</div>';+ });+ }}function whoRow(w) {@@ -402,6 +421,9 @@ function whoRow(w) {function closeDrawer() {const dr = $('#drawer'); dr.classList.remove('open'); dr.setAttribute('aria-hidden', 'true');+ // Tear down the trade tape so the PumpPortal SSE connection closes.+ state.tape?.destroy();+ state.tape = null;}async function openWallet(wallet) {diff --git a/src/pump/mcp-tools.js b/src/pump/mcp-tools.jsindex 18b443d81..63f4e990d 100644--- a/src/pump/mcp-tools.js+++ b/src/pump/mcp-tools.js@@ -94,6 +94,7 @@ export const TOOL_ANNOTATIONS = Object.freeze({sns_reverseLookup: { title: 'Reverse .sol Lookup', ...DETERMINISTIC_READ },social_cashtag_sentiment: { title: 'Cashtag Sentiment', ...LOCAL_DETERMINISTIC },kol_leaderboard: { title: 'KOL Leaderboard', ...LIVE_READ },+ get_coin_intel: { title: 'Coin Intel', ...LIVE_READ },pumpfun_quote_swap: { title: 'Swap Quote (Read-Only)', ...LIVE_READ },social_x_post_impact: { title: 'X Post Price Impact', ...LIVE_READ },pumpfun_bot_status: { title: 'Indexer Status', ...LIVE_READ },@@ -482,6 +483,53 @@ export const TOOLS = [required: ['postUrl', 'mint'],},},+ {+ name: 'get_coin_intel',+ description:+ 'Full Coin Intelligence snapshot for a pump.fun mint. Returns every signal the engine recorded during the observation window: bundle vs organic verdict, bubblemaps-style cluster connectivity, smart-money presence (with wallet labels and win-rates), dev behaviour, category/classification, news-meme detection with the matching headline, risk flags, and a 0–100 quality score. Also returns the outcome if the coin is old enough to be labeled (graduated/rugged/ATH multiple). This is the single highest-signal read for a trade decision — call this before entering any position.',+ inputSchema: {+ type: 'object',+ properties: {+ mint: { type: 'string', description: 'Solana mint address (base58).' },+ network: { type: 'string', enum: ['mainnet', 'devnet'], default: 'mainnet' },+ },+ required: ['mint'],+ },+ outputSchema: {+ type: 'object',+ properties: {+ found: { type: 'boolean' },+ mint: { type: 'string' },+ symbol: { type: 'string' },+ name: { type: 'string' },+ quality_score: { type: 'number', description: '0–100 composite quality.' },+ verdict: {+ type: 'object',+ properties: {+ key: { type: 'string', enum: ['strong', 'watch', 'caution', 'avoid'] },+ label: { type: 'string' },+ tone: { type: 'string' },+ },+ },+ risk_flags: { type: 'array', items: { type: 'string' } },+ category: { type: 'string' },+ is_news_meme: { type: 'boolean' },+ news_headline: { type: 'string', nullable: true },+ organic_score: { type: 'number', description: '0–1, organic-demand likelihood.' },+ bundle_score: { type: 'number', description: '0–1, coordinated-launch likelihood.' },+ bubblemap_connectivity: { type: 'number', nullable: true, description: '0–1 wallet-cluster share. null = enrichment not yet run.' },+ smart_money_count: { type: 'integer', description: 'Proven wallets (score≥65) in this coin.' },+ smart_money_score: { type: 'number', nullable: true },+ smart_money_notable: { type: 'array', items: { type: 'object' } },+ dev_buy_sol: { type: 'number', nullable: true },+ dev_sold: { type: 'boolean' },+ unique_buyers: { type: 'integer' },+ outcome: { type: 'object', nullable: true, description: 'Labeled outcome if available (graduated, ath_multiple, etc).' },+ },+ required: ['found'],+ additionalProperties: true,+ },+ },{name: 'pumpfun_bot_status',description:diff --git a/vercel.json b/vercel.jsonindex fef1c4325..578571212 100644--- a/vercel.json+++ b/vercel.json@@ -1184,6 +1184,10 @@"src": "/dashboard/referrals/?","dest": "/dashboard-next/referrals.html"},+ {+ "src": "/dashboard/copy/?",+ "dest": "/dashboard-next/copy.html"+ },{"src": "/dashboard/settings/?","dest": "/dashboard-next/settings.html"diff --git a/vite.config.js b/vite.config.jsindex 3f78446e1..f43757ff7 100644--- a/vite.config.js+++ b/vite.config.js@@ -617,6 +617,8 @@ support: resolve(__dirname, 'pages/support.html'),'/dashboard-next/avatars/': resolve(root, 'pages/dashboard-next/avatars.html'),'/dashboard/holders': resolve(root, 'pages/dashboard-next/holders.html'),'/dashboard/holders/': resolve(root, 'pages/dashboard-next/holders.html'),+ '/dashboard/copy': resolve(root, 'pages/dashboard-next/copy.html'),+ '/dashboard/copy/': resolve(root, 'pages/dashboard-next/copy.html'),'/dashboard-next/holders': resolve(root, 'pages/dashboard-next/holders.html'),'/dashboard-next/holders/': resolve(root, 'pages/dashboard-next/holders.html'),'/studio': resolve(root, 'public/studio/index.html'),diff --git a/workers/oracle/agent-loop.js b/workers/oracle/agent-loop.jsindex ca99a63d9..94e9ac8eb 100644--- a/workers/oracle/agent-loop.js+++ b/workers/oracle/agent-loop.js@@ -23,16 +23,23 @@ async function armedWatches(network) {`.catch(() => []);}-/** Coins scored since a cursor — the work list for the agent loop. Exported so- * the serverless cron can pull a fixed recent window instead of a live cursor. */+/** Coins scored since a cursor — the work list for the agent loop and the+ * alert pass. Returns enough fields for both act decisions and Telegram formatting. */export async function freshlyScored(network, sinceIso, limit = 60) {- return sql`- select mint, symbol, score, tier, category, smart_wallet_count, scored_at+ const rows = await sql`+ select mint, symbol, name, score, tier, category, smart_wallet_count, scored_at,+ pedigree, structure, narrative, momentumfrom oracle_convictionwhere network = ${network} and scored_at > ${sinceIso}::timestamptzorder by scored_at asclimit ${limit}`.catch(() => []);+ // Attach a `pillars` object so downstream consumers (alerts, agent-eval) have+ // a consistent shape regardless of whether the row came from the DB or SSE.+ return rows.map((r) => ({+ ...r,+ pillars: { pedigree: r.pedigree, structure: r.structure, narrative: r.narrative, momentum: r.momentum },+ }));}async function alreadyActed(agentId, mint, network) {