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 track-record table with KPI strip; in-world coin-buy flow; platform fee wiring; coin-status card improvements
nirholas97f8ff242be7
diff --git a/api/_lib/migrations/20260616140000_intel_weights_conditional.sql b/api/_lib/migrations/20260616140000_intel_weights_conditional.sqlnew file mode 100644index 000000000..135f84756--- /dev/null+++ b/api/_lib/migrations/20260616140000_intel_weights_conditional.sql@@ -0,0 +1,19 @@+-- Migration: add conditional_win_rates column to pump_intel_weights.+-- Apply: psql "$DATABASE_URL" -f api/_lib/migrations/20260616140000_intel_weights_conditional.sql+-- Idempotent (ADD COLUMN IF NOT EXISTS).+--+-- Stores per-signal bucket statistics: for each signal dimension (bundle_score,+-- smart_money_count, category, etc.) and each bucket (low/medium/high), records+-- the observed win-rate (% graduating or pumping) and sample count. Exposes the+-- "why" behind the Pearson weights so humans and agents can reason about it:+-- e.g. {"bundle_score": {"clean": {"win_rate": 0.23, "count": 312}, ...}}++begin;++alter table pump_intel_weights+ add column if not exists conditional_win_rates jsonb not null default '{}'::jsonb;++comment on column pump_intel_weights.conditional_win_rates is+ 'Per-signal bucket win-rates: {signal: {bucket: {win_rate, count, baseline_win_rate}}}';++commit;diff --git a/api/_lib/pump-platform-fee.js b/api/_lib/pump-platform-fee.jsindex 7e8938305..7011b10a4 100644--- a/api/_lib/pump-platform-fee.js+++ b/api/_lib/pump-platform-fee.js@@ -27,18 +27,32 @@ const WSOL_MINT = 'So11111111111111111111111111111111111111112';const MAX_FEE_BPS = 500; // 5%/**- * The platform trade-fee rate in basis points. Defaults to 100 (1%), matching- * pump.fun's trade fee. Override per-environment with PUMP_PLATFORM_FEE_BPS- * (e.g. set 0 to disable while testing). Clamped to [0, MAX_FEE_BPS].+ * The platform trade-fee rate in basis points. Defaults to 0 (OFF) so the fee+ * ships inert and never activates on deploy by surprise — set+ * PUMP_PLATFORM_FEE_BPS=100 to charge 1% (matching pump.fun's trade fee) once+ * trading has been verified. Clamped to [0, MAX_FEE_BPS]. The fee also requires+ * a configured recipient (pumpFeeRecipient), so both knobs must be set to bill.* @returns {number}*/export function pumpPlatformFeeBps() {const raw = process.env.PUMP_PLATFORM_FEE_BPS;- const n = raw == null || String(raw).trim() === '' ? 100 : parseInt(raw, 10);- if (!Number.isFinite(n) || n < 0) return 100;+ const n = raw == null || String(raw).trim() === '' ? 0 : parseInt(raw, 10);+ if (!Number.isFinite(n) || n < 0) return 0;return Math.min(n, MAX_FEE_BPS);}+/**+ * The fee rate that will ACTUALLY be charged right now: the configured bps when+ * a recipient wallet is set, otherwise 0. Quote/UI surfaces use this so the+ * displayed "Platform fee X%" never claims a fee the transaction won't take.+ * @returns {Promise<number>}+ */+export async function effectivePumpFeeBps() {+ const bps = pumpPlatformFeeBps();+ if (bps <= 0) return 0;+ return (await pumpFeeRecipient()) ? bps : 0;+}+let _recipientCache = null; // { at, pubkey }const RECIPIENT_TTL_MS = 60_000;diff --git a/api/cron/intel-learn.js b/api/cron/intel-learn.jsindex 57ed416b0..b2cf12fa4 100644--- a/api/cron/intel-learn.js+++ b/api/cron/intel-learn.js@@ -51,6 +51,7 @@ export default wrap(async (req, res) => {trained: train.trained,sample_size: train.sample_size,weights: train.weights || null,+ conditional_win_rates: train.conditional_win_rates || null,ms: Date.now() - started,});});diff --git a/api/pump/[action].js b/api/pump/[action].jsindex cf4f5d4b8..b4798c681 100644--- a/api/pump/[action].js+++ b/api/pump/[action].js@@ -65,7 +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 { buildPlatformFeeInstructions, effectivePumpFeeBps } 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';@@ -2724,7 +2724,7 @@ async function handleQuote(req, res) {virtual_token_reserves: curve.virtualTokenReserves?.toString?.() ?? null,complete: curve.complete ?? false,},- platform_fee_bps: pumpPlatformFeeBps(),+ platform_fee_bps: await effectivePumpFeeBps(),quote,});}@@ -2843,7 +2843,7 @@ async function handleQuote(req, res) {quote_reserve: quoteReserve.toString(),lp_supply: pool.lpSupply?.toString?.() ?? null,},- platform_fee_bps: pumpPlatformFeeBps(),+ platform_fee_bps: await effectivePumpFeeBps(),quote,});} catch (err) {diff --git a/pages/oracle.html b/pages/oracle.htmlindex 039e0efb9..1526f201d 100644--- a/pages/oracle.html+++ b/pages/oracle.html@@ -146,7 +146,7 @@.intro { color: var(--muted); font-size: 13.5px; max-width: 720px; margin: 0 0 16px; }/* agent panel */- .apanel { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }+ .apanel { display: grid; grid-template-columns: 1fr 1.8fr; gap: 16px; align-items: start; }.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }.card h3 { margin: 0 0 4px; font-size: 16px; letter-spacing: -0.01em; }.card .sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }@@ -232,6 +232,29 @@.tape-sol.sell { color: var(--down); }.tape-mc { color: var(--faint); font-size: 10px; white-space: nowrap; }+ /* agent action track record */+ .act-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; margin-bottom: 14px; }+ .act-kpi { background: var(--panel-solid); padding: 11px 14px; }+ .act-kpi span { display: block; font: 600 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }+ .act-kpi b { font: 800 18px/1 var(--mono); }+ .act-kpi b.up { color: var(--up); }+ .act-kpi b.dn { color: var(--down); }+ .act-wrap { overflow-x: auto; }+ .act-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }+ .act-table th { padding: 8px 10px; text-align: left; font: 600 10px/1 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); border-bottom: 1px solid var(--line); white-space: nowrap; }+ .act-row td { padding: 9px 10px; border-bottom: 1px solid rgba(255,255,255,0.04); vertical-align: middle; }+ .act-row:last-child td { border-bottom: none; }+ .act-row[data-outcome="win"] .act-coin { color: var(--up); }+ .act-row[data-outcome="loss"] .act-coin { color: var(--down); }+ .act-coin a { color: inherit; text-decoration: none; font-weight: 600; }+ .act-coin a:hover { text-decoration: underline; }+ .act-mono { font-family: var(--mono); }+ .act-mono.up { color: var(--up); }+ .act-mono.dn { color: var(--down); }+ .act-when { color: var(--faint); font-size: 11px; white-space: nowrap; }+ .act-live { font: 700 9.5px/1 var(--mono); letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; background: color-mix(in srgb, var(--amber) 18%, transparent); color: var(--amber); }+ .act-sim { font: 700 9.5px/1 var(--mono); letter-spacing: .04em; padding: 2px 6px; border-radius: 4px; background: rgba(255,255,255,0.06); color: var(--faint); }+.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); }@@ -336,7 +359,7 @@<div class="card"><h3>Recent actions</h3><p class="sub">Every move your agent makes — simulated or live — lands here, then gets graded against the outcome. This is your agent's win-rate ledger.</p>- <div id="actionsBody"><div class="state">Sign in and arm an agent to see its actions.</div></div>+ <div id="actionsBody" style="max-height:480px;overflow-y:auto"><div class="state">Sign in and arm an agent to see its actions.</div></div></div></div></section>diff --git a/pages/watchlist.html b/pages/watchlist.htmlindex fa3f988f3..cc517eac3 100644--- a/pages/watchlist.html+++ b/pages/watchlist.html@@ -27,7 +27,12 @@<link rel="stylesheet" href="/src/watchlist.css" /><link rel="stylesheet" href="/footer.css" /><link rel="canonical" href="https://three.ws/watchlist" />- </head>++ <meta name="twitter:title" content="Watchlist · three.ws">+ <meta name="twitter:description" content="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.">+ <meta name="twitter:image" content="https://three.ws/og-image.png">+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"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.","url":"https://three.ws/watchlist","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>+</head><body><header><div id="nav-container"></div></header><script src="/nav.js"></script>diff --git a/public/changelog.json b/public/changelog.jsonindex 365037fd5..bf73ca216 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,11 +1,21 @@{- "generated_at": "2026-06-16T03:33:09.828Z",+ "generated_at": "2026-06-16T04:22:34.717Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws","url": "https://three.ws"},"entries": [+ {+ "date": "2026-06-16",+ "type": "launch",+ "title": "Oracle — AI Conviction Engine",+ "summary": "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.",+ "link": "/oracle",+ "tags": [+ "launch"+ ]+ },{"date": "2026-06-16","type": "launch",@@ -16,6 +26,27 @@"launch"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "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.",+ "link": "/launches",+ "tags": [+ "feature",+ "improvement"+ ]+ },+ {+ "date": "2026-06-16",+ "type": "update",+ "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.",+ "link": "/dashboard/copy",+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-16","type": "update",@@ -26,6 +57,17 @@"feature"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "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.",+ "link": "/oracle",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-16","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 522218099..0801ad90c 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -6,6 +6,14 @@<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/><description>What's new on three.ws — features, improvements, and releases, newest first.</description><language>en</language>+ <item>+ <title>Oracle — AI Conviction Engine</title>+ <link>https://three.ws/oracle</link>+ <guid isPermaLink="false">2026-06-16:Oracle — AI Conviction Engine</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <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 — fused into a single 0–100 conviction score with transparent pillar reasoning.</description>+ </item><item><title>Watchlist</title><link>https://three.ws/watchlist</link>@@ -14,6 +22,22 @@<category>launch</category><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></item>+ <item>+ <title>Buy any coin directly on three.ws — Jupiter swap embedded in the coin page</title>+ <link>https://three.ws/launches</link>+ <guid isPermaLink="false">2026-06-16:Buy any coin directly on three.ws — Jupiter swap embedded in the coin page</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>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.</description>+ </item>+ <item>+ <title>Copy trading — mirror proven traders, non-custodially, on your own terms</title>+ <link>https://three.ws/dashboard/copy</link>+ <guid isPermaLink="false">2026-06-16:Copy trading — mirror proven traders, non-custodially, on your own terms</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>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.</description>+ </item><item><title>Every launch now has its own page — the full story of a coin in one place</title><link>https://three.ws/launches</link>@@ -22,6 +46,14 @@<category>feature</category><description>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.</description></item>+ <item>+ <title>Oracle — live trade tape and 3D conviction graph in the war room</title>+ <link>https://three.ws/oracle</link>+ <guid isPermaLink="false">2026-06-16:Oracle — live trade tape and 3D conviction graph in the war room</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>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.</description>+ </item><item><title>Oracle — one conviction score per launch, and an agent that acts on it</title><link>https://three.ws/oracle</link>diff --git a/public/features.json b/public/features.jsonindex be74688af..64a7cb9c8 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-16T03:33:09.816Z",+ "generated_at": "2026-06-16T04:22:34.699Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",@@ -506,6 +506,16 @@"title": "Crypto","description": "On-chain features: pay-per-call, token launches, vanity wallets.","pages": [+ {+ "path": "/oracle",+ "title": "Oracle — 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 — fused into a single 0–100 conviction score with transparent pillar reasoning.",+ "added": "2026-06-16",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },{"path": "/launch","title": "Launch a Coin",diff --git a/public/llms-full.txt b/public/llms-full.txtindex 4a7810170..21ba21b16 100644--- a/public/llms-full.txt+++ b/public/llms-full.txt@@ -308,6 +308,12 @@ A curated gallery of three.ws's most powerful — and most hidden — features.On-chain features: pay-per-call, token launches, vanity wallets.+### Oracle — AI Conviction Engine++URL: https://three.ws/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.+### Launch a CoinURL: https://three.ws/launchdiff --git a/public/llms.txt b/public/llms.txtindex 3ddf08f42..eb7df1f8b 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -72,6 +72,7 @@ Experimental features actively shipping. Expect fast iteration.On-chain features: pay-per-call, token launches, vanity wallets.+- [Oracle — AI Conviction Engine](https://three.ws/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.- [Launch a Coin](https://three.ws/launch): 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.- [Agent Launches](https://three.ws/launches): Live public feed of every coin launched by a three.ws agent — market caps, graduation status, and the agent behind each launch.- [Trader Leaderboard](https://three.ws/leaderboard): Pump.fun traders ranked by a provable, on-chain track record — realized P&L, win rate, drawdown — with every number traceable to its transaction.diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex 499e87ddc..36f20cffc 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -56,6 +56,20 @@.sm-brand img { width: 24px; height: 24px; border-radius: 5px; }.sm-brand:hover { text-decoration: none; }</style>++ <meta property="og:type" content="website">+ <meta property="og:site_name" content="three.ws">+ <meta property="og:title" content="Sitemap · three.ws">+ <meta property="og:description" content="Human-readable index of every page on three.ws.">+ <meta property="og:url" content="https://three.ws/sitemap">+ <meta property="og:image" content="https://three.ws/og-image.png">+ <meta property="og:image:width" content="1200">+ <meta property="og:image:height" content="630">+ <meta name="twitter:card" content="summary_large_image">+ <meta name="twitter:title" content="Sitemap · three.ws">+ <meta name="twitter:description" content="Human-readable index of every page on three.ws.">+ <meta name="twitter:image" content="https://three.ws/og-image.png">+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Sitemap","description":"Human-readable index of every page on three.ws.","url":"https://three.ws/sitemap","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script></head><body><header class="sm-topbar">@@ -65,7 +79,7 @@<main class="sm-wrap"><div class="sm-hero"><h1>Sitemap</h1>- <p>All 270 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>+ <p>All 271 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p><div class="sm-formats"><a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a><a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>@@ -77,7 +91,7 @@</div><div class="sm-filter"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>- <input id="sm-filter-input" type="search" placeholder="Filter 270 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />+ <input id="sm-filter-input" type="search" placeholder="Filter 271 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" /><kbd aria-hidden="true">/</kbd></div><p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>@@ -452,10 +466,17 @@<section class="sm-section" id="crypto"><header>- <h2>Crypto<span class="sm-count" data-count>39</span></h2>+ <h2>Crypto<span class="sm-count" data-count>40</span></h2><p class="sm-section-desc">On-chain features: pay-per-call, token launches, vanity wallets.</p></header><ul class="sm-list">+ <li>+ <a href="/oracle">+ <span class="sm-title">Oracle — AI Conviction Engine</span>+ <span class="sm-path">/oracle</span>+ <span class="sm-desc">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.</span>+ </a>+ </li><li><a href="/launch"><span class="sm-title">Launch a Coin</span>diff --git a/src/dashboard-next/nav.js b/src/dashboard-next/nav.jsindex 2fd59404c..2e8f36642 100644--- a/src/dashboard-next/nav.js+++ b/src/dashboard-next/nav.js@@ -36,6 +36,7 @@ export const NAV = [{ path: '/dashboard/analytics', label: 'Analytics', icon: 'chart', group: 'Monetize', tags: ['revenue', 'charts', 'metrics', 'funnel', 'performance', 'views', 'engagement'] },{ path: '/dashboard/monetize', label: 'Monetize', icon: 'coin', group: 'Monetize', tags: ['revenue', 'payments', 'subscriptions', 'withdrawals', 'earnings', 'plan', 'billing'] },{ path: '/dashboard/tokens', label: 'Tokens', icon: 'token', group: 'Monetize', tags: ['pump.fun', 'launch', 'bonding curve', 'royalties', 'trade'] },+ { path: '/dashboard/copy', label: 'Copy Trading', icon: 'live', group: 'Monetize', tags: ['copy', 'copy-trade', 'mirror', 'leader', 'follow', 'traders', 'intents', 'pump.fun', 'sniper'] },{ path: '/dashboard/portfolio', label: 'Portfolio', icon: 'portfolio', group: 'Monetize', tags: ['nft', 'holdings', 'balances', 'wallet', 'collection', 'crypto', 'tokens', 'chart', 'send'] },{ path: '/dashboard/landscape', label: 'Landscape', icon: 'landscape', group: 'Monetize', tags: ['competitors', 'market', 'competitive', 'intelligence', 'positioning', 'tam', 'investor'] },{ path: '/reputation', label: 'Reputation', icon: 'star', group: 'Monetize', tags: ['reviews', 'attestations', 'onchain', 'trust', 'score'], external: true },diff --git a/src/game/coin-buy.css b/src/game/coin-buy.cssindex 1bbcdfd55..1954c62b4 100644--- a/src/game/coin-buy.css+++ b/src/game/coin-buy.css@@ -129,6 +129,16 @@margin-top: 13px; min-height: 18px; font-size: 13px; color: var(--cc-text);font-variant-numeric: tabular-nums; line-height: 1.4;}+/* Fee disclosure — deliberately quiet (muted, small), but always present. */+.cc-buy-fee {+ margin-top: 7px; font-size: 11px; color: var(--cc-faint);+ font-variant-numeric: tabular-nums; cursor: help;+ display: flex; align-items: center; gap: 5px;+}+.cc-buy-fee[hidden] { display: none; }+.cc-buy-fee-label { color: var(--cc-dim); }+.cc-buy-fee-val { color: var(--cc-faint); }+.cc-buy-quote-out { font-weight: 700; }.cc-buy-quote-impact { color: var(--cc-dim); }.cc-buy-quote-warn { color: #d8c08a; }diff --git a/src/game/coin-buy.js b/src/game/coin-buy.jsindex 5ef5177bc..b5d6dcb3b 100644--- a/src/game/coin-buy.js+++ b/src/game/coin-buy.js@@ -146,6 +146,10 @@ class TradeModal {// AMM, false = still on the bonding curve. Drives the stage pill so a// graduated coin is visually unmistakable from a curve coin.this.graduated = null;+ // Platform trade fee (basis points), learned from the quote endpoint. null+ // until the first quote resolves; 0 disables the fee line. Disclosed in the+ // modal so a fee never lands as a surprise.+ this.platformFeeBps = null;this._build();this._detectP = this._detectDenom();this._refreshWallet();@@ -172,6 +176,9 @@ class TradeModal {this.presetRow = el('div', { class: 'cc-buy-presets' });this.balLine = el('div', { class: 'cc-buy-bal', role: 'status', 'aria-live': 'polite', hidden: true });this.quoteLine = el('div', { class: 'cc-buy-quote', role: 'status', 'aria-live': 'polite' }, 'Fetching price…');+ // Subtle, always-honest fee disclosure — rate + estimated amount, updated+ // live with the trade size. Hidden only when the platform fee is 0.+ this.feeLine = el('div', { class: 'cc-buy-fee', role: 'note', hidden: true });this.slipRow = el('div', { class: 'cc-buy-slip' }, [el('span', { class: 'cc-buy-slip-label', text: 'Max slippage' }),@@ -219,6 +226,7 @@ class TradeModal {this.presetRow,this.balLine,this.quoteLine,+ this.feeLine,this.slipRow,this.walletLine,this.cta,@@ -322,6 +330,7 @@ class TradeModal {const data = await r.json().catch(() => ({}));if (!r.ok || !data?.quote_mint) return;this.graduated = !!data.graduated;+ this._captureFee(data);this._renderStage();if (data.quote_mint !== WSOL && this.denom.kind !== 'usdc') {this.denom = usdcDenom(NETWORK);@@ -485,9 +494,44 @@ class TradeModal {}}+ // Learn the platform fee rate from any quote-endpoint payload, then refresh+ // the disclosure line. Honest by construction: the rate is whatever the+ // server will actually charge, never a client-side guess.+ _captureFee(data) {+ if (data && typeof data.platform_fee_bps === 'number') {+ this.platformFeeBps = data.platform_fee_bps;+ this._renderFee();+ }+ }++ // The fee disclosure line: "Platform fee 1% · ~0.0100 SOL" on a buy (the fee+ // is added on top of what you pay) and "Platform fee 1% of proceeds" on a+ // sell (taken from what you receive). Hidden when the fee is zero/unknown.+ _renderFee() {+ const line = this.feeLine;+ if (!line) return;+ const bps = this.platformFeeBps;+ if (!bps || bps <= 0) { line.hidden = true; line.textContent = ''; return; }+ const pct = bps / 100;+ const pctStr = (Number.isInteger(pct) ? pct : pct.toFixed(2)) + '%';+ line.hidden = false;+ line.textContent = '';+ line.append(el('span', { class: 'cc-buy-fee-label', text: 'Platform fee' }));+ if (this.mode === 'buy' && this.amount > 0) {+ const fee = this.amount * (bps / 10_000);+ line.append(el('span', { class: 'cc-buy-fee-val', text: ` ${pctStr} · ~${fmtQuote(fee, this.denom)} ${this.denom.label}` }));+ } else if (this.mode === 'sell') {+ line.append(el('span', { class: 'cc-buy-fee-val', text: ` ${pctStr} of proceeds` }));+ } else {+ line.append(el('span', { class: 'cc-buy-fee-val', text: ` ${pctStr}` }));+ }+ line.title = 'A platform fee at pump.fun’s trade-fee rate, included in this transaction alongside the standard Solana network fee.';+ }+// --------------------------------------------------------------- quoteasync _quote() {await this._detectP;+ this._renderFee();// SOL buys keep the original client-side AMM quote (price impact + honest// bonding-curve fallback). Everything else (USDC buys, all sells) prices// through the server quote endpoint, which handles USDC and both routes.@@ -542,6 +586,7 @@ class TradeModal {const data = await fetch(`/api/pump/quote?${u}`).then((r) => r.json());if (seq !== this._quoteSeq) return;if (typeof data?.graduated === 'boolean') { this.graduated = data.graduated; this._renderStage(); }+ this._captureFee(data);const out = data?.quote?.tokens_out;this.quoteLine.textContent = '';if (out) {@@ -569,6 +614,7 @@ class TradeModal {const data = await fetch(`/api/pump/quote?${u}`).then((r) => r.json());if (seq !== this._quoteSeq) return;if (typeof data?.graduated === 'boolean') { this.graduated = data.graduated; this._renderStage(); }+ this._captureFee(data);const q = data?.quote || {};const out = this.denom.kind === 'usdc' ? q.usdc_out : q.sol_out;this.quoteLine.textContent = '';@@ -652,7 +698,7 @@ class TradeModal {if (isUsdc) prepBody.usdc_amount = this.amount; else prepBody.sol = this.amount;const prep = await this._fetchJson('/api/pump/buy-prep', prepBody);- this._setStatus('Approve the purchase in your wallet…', '');+ this._setStatus(`Approve the purchase in your wallet…${this._feeNote(prep)}`, '');const { VersionedTransaction, Connection } = await import('@solana/web3.js');const tx = VersionedTransaction.deserialize(Uint8Array.from(atob(prep.tx_base64), (c) => c.charCodeAt(0)),@@ -702,7 +748,7 @@ class TradeModal {mint: this.coin.mint, network: NETWORK, tokens, slippage_bps: this.slippageBps, wallet_address: walletAddress,});- this._setStatus('Approve the sale in your wallet…', '');+ this._setStatus(`Approve the sale in your wallet…${this._feeNote(prep)}`, '');const { VersionedTransaction, Connection } = await import('@solana/web3.js');const tx = VersionedTransaction.deserialize(Uint8Array.from(atob(prep.tx_base64), (c) => c.charCodeAt(0)),@@ -763,6 +809,19 @@ class TradeModal {}}+ // The exact platform fee for a prepared trade, as a short suffix shown at the+ // approval step so the precise amount is visible before the wallet signs.+ // Empty when no fee applies. fee.amount_ui is the human amount in fee.asset.+ _feeNote(prep) {+ const fee = prep?.platform_fee;+ if (!fee || !fee.amount_ui) return '';+ const pct = fee.bps / 100;+ const pctStr = (Number.isInteger(pct) ? pct : pct.toFixed(2)) + '%';+ const amt = fee.asset === 'USDC' ? fee.amount_ui.toFixed(fee.amount_ui >= 1 ? 2 : 4)+ : Number(fee.amount_ui).toLocaleString(undefined, { maximumFractionDigits: 6 });+ return ` (incl. ${pctStr} platform fee ~${amt} ${fee.asset})`;+ }+// POST helper that surfaces the HTTP status on the thrown error so callers can// branch on 401 (needs sign-in) vs. other failures.async _fetchJson(path, body) {diff --git a/src/leaderboard.js b/src/leaderboard.jsindex 5dcbd7662..141cec522 100644--- a/src/leaderboard.js+++ b/src/leaderboard.js@@ -69,7 +69,7 @@ function rowMarkup(r) {<img class="lb-avatar" src="${escapeHtml(img)}" alt="" loading="lazy" onerror="this.src='${identicon(r.agent_id || r.wallet || '?')}'" /><span class="lb-trader-meta"><span class="lb-trader-name">${escapeHtml(r.agent_name || 'Unnamed agent')}${verifiedBadge(r.verified)}</span>- <span class="lb-trader-sub">${escapeHtml(shortAddr(r.wallet))} · ${r.unique_coins} coins</span>+ <span class="lb-trader-sub">${escapeHtml(shortAddr(r.wallet))} · ${r.unique_coins} coins${r.copiers ? ` · <span class="lb-copiers">${r.copiers} copying</span>` : ''}</span></span></span><span class="lb-num">diff --git a/src/oracle.js b/src/oracle.jsindex a8ffe7b86..09beed477 100644--- a/src/oracle.js+++ b/src/oracle.js@@ -586,31 +586,54 @@ async function loadActions(agentId) {const { ok, data } = await api(`/api/oracle/watch?agent_id=${encodeURIComponent(agentId)}&network=${NETWORK}`);const actions = ok && data ? (data.actions || []) : [];const s = (ok && data && data.summary) || null;- const header = s && s.total ? `- <div class="coin-meta" style="margin-bottom:12px">- <span class="chip">actions <b>${s.total}</b></span>- <span class="chip sm">wins <b>${s.wins}</b></span>- <span class="chip flag">losses <b>${s.losses}</b></span>- <span class="chip">win rate <b>${s.win_rate == null ? '—' : s.win_rate + '%'}</b></span>- <span class="chip ${s.realized_pnl_sol >= 0 ? 'sm' : 'flag'}">PnL <b>${s.realized_pnl_sol >= 0 ? '+' : ''}${fmtSol(s.realized_pnl_sol)}</b></span>- ${s.roi_pct != null ? `<span class="chip">ROI <b>${s.roi_pct >= 0 ? '+' : ''}${s.roi_pct}%</b></span>` : ''}++ const pnlSign = (v) => v >= 0 ? '+' : '';+ const statline = s && s.total ? `+ <div class="act-kpis">+ <div class="act-kpi"><span>Total</span><b>${s.total}</b></div>+ <div class="act-kpi"><span>Wins</span><b class="${s.wins > 0 ? 'up' : ''}">${s.wins}</b></div>+ <div class="act-kpi"><span>Losses</span><b class="${s.losses > 0 ? 'dn' : ''}">${s.losses}</b></div>+ <div class="act-kpi"><span>Win rate</span><b>${s.win_rate == null ? '—' : s.win_rate + '%'}</b></div>+ <div class="act-kpi"><span>Realized PnL</span><b class="${s.realized_pnl_sol >= 0 ? 'up' : 'dn'}">${pnlSign(s.realized_pnl_sol)}${fmtSol(s.realized_pnl_sol)}</b></div>+ ${s.roi_pct != null ? `<div class="act-kpi"><span>ROI</span><b class="${s.roi_pct >= 0 ? 'up' : 'dn'}">${pnlSign(s.roi_pct)}${s.roi_pct}%</b></div>` : ''}+ ${s.open > 0 ? `<div class="act-kpi"><span>Open</span><b>${s.open}</b></div>` : ''}</div>` : '';+if (!actions.length) {- body.innerHTML = `${header}<div class="state">No actions yet. Once armed, your agent's moves will appear here and get graded against outcomes.</div>`;+ body.innerHTML = `${statline}<div class="state">No actions yet — once armed, every buy lands here and gets graded against the outcome in real time.</div>`;return;}- body.innerHTML = `${header}<div class="lwrap">${actions.map(actionRow).join('')}</div>`;++ const rows = actions.map(actionRow).join('');+ body.innerHTML = `+ ${statline}+ <div class="act-wrap">+ <table class="act-table">+ <thead><tr>+ <th>Coin</th><th>Tier</th><th>Conv.</th>+ <th>Size</th><th>Outcome</th><th>PnL</th><th>When</th>+ </tr></thead>+ <tbody>${rows}</tbody>+ </table>+ </div>`;}function actionRow(a) {- const cls = a.outcome === 'win' ? 'sm' : a.outcome === 'loss' ? 'flag' : '';- return `<div class="nwallet" style="padding:11px 14px">- <div class="nw-left">- <span class="nw-addr">${esc(a.symbol || a.mint.slice(0, 6))} <span class="tierpill ${tierPill(a.tier)}">${esc(a.tier || '')}</span> <span class="chip" style="padding:3px 6px">${esc(a.mode)}</span></span>- <span class="nw-sub">conviction ${a.conviction ?? '—'} · ${esc(a.status)} · ${ago(a.acted_at)} ago${a.reason ? ' · ' + esc(a.reason) : ''}</span>- </div>- <span class="nw-buy ${cls ? 'chip ' + cls : ''}">${a.peak_multiple ? Number(a.peak_multiple).toFixed(1) + '×' : fmtSol(a.size_sol)}</span>- </div>`;+ const outcome = a.outcome || 'open';+ const outCls = outcome === 'win' ? 'up' : outcome === 'loss' ? 'dn' : '';+ const outLabel = outcome === 'win' ? `✓ Win${a.peak_multiple ? ` · ${Number(a.peak_multiple).toFixed(1)}×` : ''}` : outcome === 'loss' ? '✗ Loss' : 'Open';+ const pnl = a.realized_pnl_sol != null ? `${Number(a.realized_pnl_sol) >= 0 ? '+' : ''}${fmtSol(a.realized_pnl_sol)}` : '—';+ const pnlCls = a.realized_pnl_sol != null ? (Number(a.realized_pnl_sol) >= 0 ? 'up' : 'dn') : '';+ const modeBadge = a.mode === 'live' ? '<span class="act-live">live</span>' : '<span class="act-sim">sim</span>';+ return `<tr class="act-row" data-outcome="${esc(outcome)}">+ <td class="act-coin"><a href="https://pump.fun/coin/${esc(a.mint)}" target="_blank" rel="noopener">${esc(a.symbol || a.mint.slice(0, 6))}</a> ${modeBadge}</td>+ <td><span class="tierpill ${tierPill(a.tier)}">${esc(a.tier || '—')}</span></td>+ <td class="act-mono">${a.conviction ?? '—'}</td>+ <td class="act-mono">${fmtSol(a.size_sol)}</td>+ <td class="act-mono ${outCls}">${outLabel}</td>+ <td class="act-mono ${pnlCls}">${pnl}</td>+ <td class="act-when" title="${esc(a.acted_at || '')}">${ago(a.acted_at)} ago</td>+ </tr>`;}document.addEventListener('DOMContentLoaded', boot);diff --git a/src/pump/coin-status-card.js b/src/pump/coin-status-card.jsindex e11a86ed7..a3ec93879 100644--- a/src/pump/coin-status-card.js+++ b/src/pump/coin-status-card.js@@ -390,6 +390,18 @@ const STYLES = `.csc-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.csc-card-foot:empty { display: none; }+.csc-conviction { display: flex; align-items: center; gap: 8px; padding: 6px 0 2px; }+.csc-cv-pill { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;+ letter-spacing: .06em; padding: 3px 9px; border-radius: 999px; border: 1px solid;+ transition: opacity .2s; white-space: nowrap; }+.csc-cv-breakdown { font-size: 11px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;+ color: rgba(255,255,255,0.45); letter-spacing: .04em; }+.csc-cv-prime { background: rgba(147,51,234,.18); border-color: rgba(168,85,247,.45); color: #c084fc; }+.csc-cv-strong { background: rgba(59,130,246,.18); border-color: rgba(96,165,250,.45); color: #93c5fd; }+.csc-cv-lean { background: rgba(234,179,8,.15); border-color: rgba(250,204,21,.4); color: #fde047; }+.csc-cv-watch { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); color: rgba(255,255,255,.55); }+.csc-cv-avoid { background: rgba(239,68,68,.14); border-color: rgba(248,113,113,.35); color: #fca5a5; }+.csc-skeleton { gap: 8px; }.csc-skel-bar { display: inline-block; height: 12px; min-width: 48px; flex: 1 1 48px; border-radius: 6px;background: linear-gradient(90deg, rgba(255,255,255,0.06) 25%, rgba(255,255,255,0.12) 37%, rgba(255,255,255,0.06) 63%);@@ -443,6 +455,7 @@ export function mountCoinStatus(container, mint, opts = {}) {let abort = null;let destroyed = false;let lastCoin = null;+ let lastConviction = null;const paint = (node) => {if (destroyed || !container) return;@@ -453,15 +466,29 @@ export function mountCoinStatus(container, mint, opts = {}) {if (destroyed) return;if (abort) abort.abort();abort = new AbortController();+ const sig = abort.signal;container.setAttribute('aria-busy', 'true');if (!silent && !lastCoin) paint(skeleton(variant));try {- const r = await fetch(`${COIN_ENDPOINT}?mint=${encodeURIComponent(mint)}`, { signal: abort.signal });+ // Fire coin + oracle fetches in parallel; oracle is best-effort (card only).+ const oraclePromise = variant === 'card'+ ? fetch(`${ORACLE_ENDPOINT}?mint=${encodeURIComponent(mint)}`, { signal: sig })+ .then((r) => (r.ok ? r.json() : null))+ .catch(() => null)+ : null;++ const r = await fetch(`${COIN_ENDPOINT}?mint=${encodeURIComponent(mint)}`, { signal: sig });if (!r.ok) throw new Error(`coin api ${r.status}`);const raw = await r.json();lastCoin = mapCoin(raw, mint);- paint(render(lastCoin, { showBuy, placeholder }));++ if (oraclePromise) {+ const od = await oraclePromise;+ if (od?.conviction) lastConviction = od.conviction;+ }++ paint(render(lastCoin, { showBuy, placeholder, conviction: lastConviction }));} catch (err) {if (err?.name === 'AbortError' || destroyed) return;// A refresh blip keeps the last good render; only a cold failure withdiff --git a/vercel.json b/vercel.jsonindex 578571212..52374a3b5 100644--- a/vercel.json+++ b/vercel.json@@ -163,6 +163,10 @@"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}","maxDuration": 30},+ "api/oracle/trades.js": {+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",+ "maxDuration": 60+ },"api/copy/executions.js": {"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}","maxDuration": 30@@ -1777,6 +1781,10 @@"src": "/api/oracle/watch","dest": "/api/oracle/watch.js"},+ {+ "src": "/api/oracle/trades",+ "dest": "/api/oracle/trades.js"+ },{"src": "/api/copy/executions","dest": "/api/copy/executions.js"