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: conviction score history sparkline in coin drawer
nirholas478e5aabcc5e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex c381b43e7..e9671c754 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -23,6 +23,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Forge: fix 3D model generation on the free NVIDIA lane** — The free TRELLIS text-to-3D lane stopped producing models when NVIDIA changed their API to return a CDN URL instead of inline base64. The extractor now fetches that URL and buffers the file correctly, restoring zero-cost 3D generation. Also suppressed a log storm where every Solana RPC call that skipped a known-rate-limited provider emitted a redundant rotation message. (`/forge`) `[fix]`- **Home page now features Oracle — live conviction scores on the front page** — The three.ws home page now has an Oracle section between the Pump.fun token economy block and the pay-per-call block. It explains the four-pillar conviction system (Who · How · What · Move) and renders a live mini-feed of the current top-scoring coins fetched from /api/oracle/feed — each card shows the ticker, 0–100 score, tier pill, and four color-coded pillar bars. Clicking any card opens the Oracle drawer for that coin. The live dot pulses while data is streaming. (`/`) `[improvement]`- **IRL and XR: choose any of your 3D avatars from a bottom-sheet picker** — Both /irl and /xr now let you swap your 3D avatar without leaving the page. Tap Avatar (IRL) or Change (XR) to open a thumbnail grid of all your uploaded avatars. Selecting one hot-swaps the model in the scene instantly — camera, animations, half-body mode, and AR state all carry over. Signed-out users see a prompt to sign in; empty accounts link to the creation flow. (`/irl`) `[feature]`+- **Launches: Oracle conviction tier filter** — The Launches feed now has a conviction tier filter: All, Prime, Strong, or Lean. Selecting a tier server-filters the feed — only three.ws agent-launched coins that have reached that Oracle conviction floor appear, sorted by score descending. The Oracle badge on each card is injected synchronously from the API response (no extra batch fetch), so filtered views are faster than before. (`/launches`) `[feature, improvement]`- **Leaderboard: Oracle Conviction Rankings — agents ranked by conviction win rate** — The Trader Leaderboard now includes an Oracle Conviction Rankings section below the main board. Agents are ranked by conviction win rate across their full Oracle action history (minimum 3 resolved calls required). Each row shows wins/losses, realized PnL, and ROI. A new /api/oracle/leaderboard endpoint drives the data. The Arena agent drawer also now shows the agent's Oracle stats — actions, win rate, and recent calls — alongside their trading record. (`/leaderboard`) `[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]`@@ -37,6 +38,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Oracle social signal — X posts now feed into coin conviction scores** — The Oracle's Narrative pillar now receives real-time social signal from X. When a coin's $SYMBOL is mentioned in a tweet, the post's reach and engagement — views, likes, retweets — translate into a virality boost that raises the Oracle's conviction score. KOL accounts (verified smart-money voices on X) apply a 1.5× multiplier. The POST /api/oracle/social endpoint accepts raw tweet batches from any scraper, and the three.surf chart tool ships a --push-social flag that pipes its tweet analysis directly into the Oracle after each run. (`/oracle`) `[feature, improvement]`- **Oracle wallet drawer: trader profile and copy-trades links** — When you open a wallet from the Oracle's Top Wallets leaderboard, the drawer now shows 'Trader profile ↗' and 'Copy trades →' links below the track record — connecting the wallet reputation system directly to copy trading. The wallet list rows also gain a hover-reveal '→' button that opens the trader profile without needing to open the drawer first. (`/oracle`) `[improvement]`- **Oracle: Activity feed and Agent leaderboard** — Two new tabs on the Oracle page. Activity shows a live trading floor — every Oracle-armed agent action (buy/outcome/PnL) in real time, filterable by mode, tier, and outcome. Agents ranks every conviction agent by their real track record: win rate, realized PnL, and ROI across all graded calls. Subscribe to copy the top performers directly from the leaderboard. (`/oracle`) `[feature]`+- **Oracle: Conviction score history sparkline** — The coin conviction drawer now shows a 48-hour score history sparkline. As Oracle re-scores a coin, each meaningful change (≥3 points) is recorded. The drawer surfaces the trend — rising, stable, or falling — so you can see whether conviction is building or rolling over before making a move. (`/oracle`) `[feature, improvement]`- **Oracle: Conviction-weighted position sizing** — Oracle agents can now scale their position size by conviction strength. Enable 'Scale by conviction' in the Arm your agent panel to have the engine buy up to 1.5× the base size for the highest-scoring coins (score 100) and 1.0× at the minimum threshold. Positions are still capped by the daily SOL budget — this rewards the highest-conviction calls without increasing risk on lower-scoring entries. (`/oracle`) `[feature, improvement]`- **Oracle: New / Top sort toggle on conviction feed** — The live conviction feed now has a Top / New toggle. Top (default) ranks coins by conviction score so the highest-confidence plays surface first. New sorts by when the coin was scored — useful for catching fresh launches the moment Oracle processes them before the wider market. No extra network request: the sort switches client-side from the already-loaded feed. (`/oracle`) `[improvement]`- **Oracle: Personal Telegram conviction alerts** — Oracle agents now support personal Telegram alerts. Add your Telegram chat ID in the Arm your agent panel to receive a direct message every time a coin crosses your conviction threshold — no more checking the feed. Entry alerts fire when your agent takes an action (simulate or live mode). Chat @three_ws_bot on Telegram and send /start to get your chat ID. (`/oracle`) `[feature]`diff --git a/api/_lib/oracle/store.js b/api/_lib/oracle/store.jsindex 2fb6b258e..9cd679d3c 100644--- a/api/_lib/oracle/store.js+++ b/api/_lib/oracle/store.js@@ -299,6 +299,36 @@ export async function upsertWatch(agentId, userId, network, cfg) {return row[0];}+/** Conviction score history for a coin (newest first, up to 48 points). */+export async function readScoreHistory(mint, network = 'mainnet', hours = 72) {+ const rows = await sql`+ select score, tier, pedigree, structure, narrative, momentum, scored_at+ from oracle_conviction_history+ where mint = ${mint} and network = ${network}+ and scored_at > now() - (${hours} || ' hours')::interval+ order by scored_at asc+ limit 200+ `.catch(() => []);+ return rows.map((r) => ({+ score: r.score,+ tier: r.tier,+ pillars: {+ pedigree: r.pedigree, structure: r.structure,+ narrative: r.narrative, momentum: r.momentum,+ },+ scored_at: r.scored_at,+ }));+}++/** Purge conviction history older than 72 hours. Called by the score cron. */+export async function purgeOldHistory(network = 'mainnet') {+ await sql`+ delete from oracle_conviction_history+ where scored_at < now() - interval '72 hours'+ and network = ${network}+ `.catch(() => { /* non-fatal */ });+}+export async function recentActions(agentId, network = 'mainnet', limit = 50) {return sql`select mint, symbol, conviction, tier, mode, size_sol, status, reason,diff --git a/api/cron/oracle-score.js b/api/cron/oracle-score.jsindex 35d588081..4ad9c3f09 100644--- a/api/cron/oracle-score.js+++ b/api/cron/oracle-score.js@@ -27,6 +27,7 @@ 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';+import { purgeOldHistory } from '../_lib/oracle/store.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@@ -82,6 +83,10 @@ export default wrap(async (req, res) => {// are all present in oracle_conviction rows).const alerted = await alertNewHighConviction(coins, cfg.network);+ // 5) Prune conviction history older than 72 hours — fire-and-forget so a+ // slow delete never extends the cron response time.+ purgeOldHistory(cfg.network).catch(() => {});+return json(res, 200, {ok: true,network: cfg.network,diff --git a/api/oracle/history.js b/api/oracle/history.jsnew file mode 100644index 000000000..8e6f282e3--- /dev/null+++ b/api/oracle/history.js@@ -0,0 +1,51 @@+/**+ * Oracle — conviction score history for a single coin.+ *+ * GET /api/oracle/history?mint=<base58>&network=mainnet&hours=72+ *+ * Returns the time-series of conviction scores for a coin as recorded by the+ * oracle_conviction_history table. Points are written whenever the score changes+ * by ≥3 pts so the series captures real signal, not polling noise.+ *+ * Used by the coin drawer to render a sparkline showing whether conviction is+ * rising, peaking, or fading — a key signal for entry timing.+ *+ * Public, IP rate-limited, 60-second CDN cache.+ */++import { cors, json, method, wrap, error, rateLimited } from '../_lib/http.js';+import { limits, clientIp } from '../_lib/rate-limit.js';+import { readScoreHistory } from '../_lib/oracle/store.js';++const NETWORKS = new Set(['mainnet', 'devnet']);+const MINT_RE = /^[1-9A-HJ-NP-Za-km-z]{32,44}$/;++export default wrap(async (req, res) => {+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;+ if (!method(req, res, ['GET'])) return;++ const rl = await limits.publicIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);++ const params = new URL(req.url, `http://${req.headers.host || 'x'}`).searchParams;+ const mint = (params.get('mint') || '').trim();+ const network = NETWORKS.has(params.get('network')) ? params.get('network') : 'mainnet';+ const hours = Math.min(72, Math.max(1, Number(params.get('hours')) || 72));++ if (!MINT_RE.test(mint)) return error(res, 400, 'validation_error', 'invalid mint');++ const points = await readScoreHistory(mint, network, hours);++ // Compute simple trend: slope of score across the window.+ let trend = null;+ if (points.length >= 2) {+ const first = points[0].score;+ const last = points[points.length - 1].score;+ const delta = last - first;+ trend = delta > 3 ? 'rising' : delta < -3 ? 'falling' : 'stable';+ }++ return json(res, 200, { mint, network, hours, trend, points }, {+ 'cache-control': 'public, max-age=60, s-maxage=60, stale-while-revalidate=120',+ });+});diff --git a/data/changelog.json b/data/changelog.jsonindex cfe9aa009..d1245a8d5 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,13 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-16",+ "title": "Oracle: Conviction score history sparkline",+ "summary": "The coin conviction drawer now shows a 48-hour score history sparkline. As Oracle re-scores a coin, each meaningful change (≥3 points) is recorded. The drawer surfaces the trend — rising, stable, or falling — so you can see whether conviction is building or rolling over before making a move.",+ "tags": ["feature", "improvement"],+ "link": "/oracle"+ },{"date": "2026-06-16","title": "Launches: Oracle conviction tier filter",diff --git a/public/changelog.json b/public/changelog.jsonindex c4386fb97..4a6e28fa3 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-16T07:15:23.582Z",+ "generated_at": "2026-06-16T07:20:53.483Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -178,6 +178,17 @@"feature"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "title": "Launches: Oracle conviction tier filter",+ "summary": "The Launches feed now has a conviction tier filter: All, Prime, Strong, or Lean. Selecting a tier server-filters the feed — only three.ws agent-launched coins that have reached that Oracle conviction floor appear, sorted by score descending. The Oracle badge on each card is injected synchronously from the API response (no extra batch fetch), so filtered views are faster than before.",+ "link": "/launches",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-16","type": "update",@@ -321,6 +332,17 @@"feature"]},+ {+ "date": "2026-06-16",+ "type": "update",+ "title": "Oracle: Conviction score history sparkline",+ "summary": "The coin conviction drawer now shows a 48-hour score history sparkline. As Oracle re-scores a coin, each meaningful change (≥3 points) is recorded. The drawer surfaces the trend — rising, stable, or falling — so you can see whether conviction is building or rolling over before making a move.",+ "link": "/oracle",+ "tags": [+ "feature",+ "improvement"+ ]+ },{"date": "2026-06-16","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 28e1e527a..079237ad5 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -142,6 +142,14 @@<category>feature</category><description>Both /irl and /xr now let you swap your 3D avatar without leaving the page. Tap Avatar (IRL) or Change (XR) to open a thumbnail grid of all your uploaded avatars. Selecting one hot-swaps the model in the scene instantly — camera, animations, half-body mode, and AR state all carry over. Signed-out users see a prompt to sign in; empty accounts link to the creation flow.</description></item>+ <item>+ <title>Launches: Oracle conviction tier filter</title>+ <link>https://three.ws/launches</link>+ <guid isPermaLink="false">2026-06-16:Launches: Oracle conviction tier filter</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The Launches feed now has a conviction tier filter: All, Prime, Strong, or Lean. Selecting a tier server-filters the feed — only three.ws agent-launched coins that have reached that Oracle conviction floor appear, sorted by score descending. The Oracle badge on each card is injected synchronously from the API response (no extra batch fetch), so filtered views are faster than before.</description>+ </item><item><title>Leaderboard: Oracle Conviction Rankings — agents ranked by conviction win rate</title><link>https://three.ws/leaderboard</link>@@ -254,6 +262,14 @@<category>feature</category><description>Two new tabs on the Oracle page. Activity shows a live trading floor — every Oracle-armed agent action (buy/outcome/PnL) in real time, filterable by mode, tier, and outcome. Agents ranks every conviction agent by their real track record: win rate, realized PnL, and ROI across all graded calls. Subscribe to copy the top performers directly from the leaderboard.</description></item>+ <item>+ <title>Oracle: Conviction score history sparkline</title>+ <link>https://three.ws/oracle</link>+ <guid isPermaLink="false">2026-06-16:Oracle: Conviction score history sparkline</guid>+ <pubDate>Tue, 16 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>The coin conviction drawer now shows a 48-hour score history sparkline. As Oracle re-scores a coin, each meaningful change (≥3 points) is recorded. The drawer surfaces the trend — rising, stable, or falling — so you can see whether conviction is building or rolling over before making a move.</description>+ </item><item><title>Oracle: Conviction-weighted position sizing</title><link>https://three.ws/oracle</link>diff --git a/public/features.json b/public/features.jsonindex fb80e74f6..b01af4d06 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-16T07:15:23.571Z",+ "generated_at": "2026-06-16T07:20:53.461Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/src/oracle.js b/src/oracle.jsindex 184c27c04..50360ebc2 100644--- a/src/oracle.js+++ b/src/oracle.js@@ -808,6 +808,43 @@ function structurePanel(st) {}++const TIER_COLORS = { prime: '#c084fc', strong: '#34d399', lean: '#fbbf24', watch: '#94a3b8', avoid: '#f87171' };++function scoreSparkline(history) {+ if (!Array.isArray(history) || history.length < 2) return '';+ const W = 240; const H = 40; const PAD = 4;+ const scores = history.map((h) => Number(h.score));+ const times = history.map((h) => new Date(h.scored_at).getTime());+ const minT = times[0]; const maxT = times[times.length - 1];+ const rangeT = maxT - minT || 1;+ const minS = Math.max(0, Math.min(...scores) - 5);+ const maxS = Math.min(100, Math.max(...scores) + 5);+ const rangeS = maxS - minS || 1;+ const px = (i) => PAD + ((times[i] - minT) / rangeT) * (W - PAD * 2);+ const py = (i) => H - PAD - ((scores[i] - minS) / rangeS) * (H - PAD * 2);+ const pts = scores.map((_, i) => \`\${px(i).toFixed(1)},\${py(i).toFixed(1)}\`).join(' ');+ const lastColor = TIER_COLORS[history[history.length - 1]?.tier] || '#97a0c4';+ const firstLabel = history[0]?.scored_at+ ? new Date(history[0].scored_at).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })+ : '';+ const lastLabel = history[history.length - 1]?.scored_at+ ? new Date(history[history.length - 1].scored_at).toLocaleTimeString([], { hour: '2-digit', minute: '2-digit' })+ : '';+ return \`<div class="dr-sec">Score history <span style="color:var(--faint);font-weight:400;font-size:10px">last 72h · \${history.length} update\${history.length === 1 ? '' : 's'}</span></div>+ <div class="score-spark">+ <svg viewBox="0 0 \${W} \${H}" aria-hidden="true" preserveAspectRatio="none">+ <polyline points="\${pts}" fill="none" stroke="\${lastColor}" stroke-width="1.8" stroke-linejoin="round" stroke-linecap="round" opacity="0.9"/>+ <circle cx="\${px(scores.length - 1).toFixed(1)}" cy="\${py(scores.length - 1).toFixed(1)}" r="3" fill="\${lastColor}"/>+ </svg>+ <div class="score-spark-labels">+ <span>\${firstLabel}</span>+ <span style="color:\${lastColor};font-weight:700">\${scores[scores.length - 1]}</span>+ <span>\${lastLabel}</span>+ </div>+ </div>\`;+}+function renderDrawer(d) {const c = d.conviction; const p = c.pillars || {};$('#drTitle').innerHTML = `${esc(c.symbol || '—')} <span style="color:var(--muted);font:600 13px var(--mono)">${esc(c.name || '')}</span>`;@@ -835,6 +872,7 @@ function renderDrawer(d) {<a class="dr-act dr-share" href="${tweetConviction(c)}" target="_blank" rel="noopener" title="Share conviction on X">Share ↗</a>${c.structure_cap != null && c.structure_cap < 60 ? `<span class="note warn">structural cap ${c.structure_cap}</span>` : ''}</div>+ <div id="scoreHistoryWrap" style="margin-top:12px"></div>${narr ? `<div class="dr-sec">Narrative</div><div style="font-size:13.5px;color:var(--ink)">${esc(narr.narrative || '')}</div><div class="coin-meta" style="margin-top:8px"><span class="chip cat">${esc(narr.category)}</span><span class="chip">virality <b>${narr.virality ?? '—'}</b></span><span class="chip">${esc(narr.source || '')}</span></div>` : ''}<div class="dr-sec">Why this score</div>${reasons}@@ -843,10 +881,14 @@ 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>` : ''}+ ${scoreSparkline(d.score_history)}<div class="dr-sec">Live trades</div><div id="tradeTape" class="trade-tape"></div>`;+ // Fetch and render conviction score history sparkline.+ loadScoreHistory(c.mint);+// Tear down any previous tape, then mount fresh for this coin.state.tape?.destroy();state.tape = null;@@ -898,6 +940,42 @@ function whoRow(w) {</div>`;}+async function loadScoreHistory(mint) {+ const wrap = $('#scoreHistoryWrap');+ if (!wrap) return;+ const { ok, data } = await api(`/api/oracle/history?mint=${encodeURIComponent(mint)}&network=${NETWORK}&hours=48`);+ if (!ok || !data?.points?.length || data.points.length < 2) { wrap.innerHTML = ''; return; }+ wrap.innerHTML = renderSparkline(data.points, data.trend);+}++function renderSparkline(points, trend) {+ const W = 220; const H = 40; const PAD = 4;+ const scores = points.map((p) => Number(p.score));+ const min = Math.max(0, Math.min(...scores) - 5);+ const max = Math.min(100, Math.max(...scores) + 5);+ const range = max - min || 1;+ const n = scores.length;+ const xs = scores.map((_, i) => PAD + (i / (n - 1)) * (W - PAD * 2));+ const ys = scores.map((s) => PAD + (1 - (s - min) / range) * (H - PAD * 2));+ const d = xs.map((x, i) => `${i === 0 ? 'M' : 'L'}${x.toFixed(1)},${ys[i].toFixed(1)}`).join(' ');+ const trendColor = trend === 'rising' ? '#34d399' : trend === 'falling' ? '#f87171' : '#94a3b8';+ const trendArrow = trend === 'rising' ? '↑' : trend === 'falling' ? '↓' : '→';+ const lastScore = scores[n - 1];+ const firstScore = scores[0];+ const delta = lastScore - firstScore;+ const deltaStr = delta > 0 ? `+${delta}` : `${delta}`;+ return `<div style="display:flex;align-items:center;gap:8px;padding:8px 0 4px">+ <svg width="${W}" height="${H}" viewBox="0 0 ${W} ${H}" style="flex-shrink:0;overflow:visible" aria-label="Conviction history">+ <polyline points="${xs.map((x, i) => `${x.toFixed(1)},${ys[i].toFixed(1)}`).join(' ')}" fill="none" stroke="${trendColor}" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round" opacity="0.9"/>+ <circle cx="${xs[n-1].toFixed(1)}" cy="${ys[n-1].toFixed(1)}" r="2.5" fill="${trendColor}"/>+ </svg>+ <div style="font-size:11px;line-height:1.4;flex-shrink:0">+ <div style="color:${trendColor};font-weight:700;letter-spacing:.02em">${trendArrow} ${deltaStr} pts</div>+ <div style="color:var(--muted)">${points.length} readings · 48 h</div>+ </div>+ </div>`;+}+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.diff --git a/vercel.json b/vercel.jsonindex a2192c3d3..1daaf011a 100644--- a/vercel.json+++ b/vercel.json@@ -203,6 +203,10 @@"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}","maxDuration": 15},+ "api/oracle/history.js": {+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",+ "maxDuration": 15+ },"api/oracle/stats.js": {"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}","maxDuration": 15@@ -1896,6 +1900,10 @@"src": "/api/oracle/batch","dest": "/api/oracle/batch.js"},+ {+ "src": "/api/oracle/history",+ "dest": "/api/oracle/history.js"+ },{"src": "/api/oracle/stats","dest": "/api/oracle/stats.js"