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
Add watchlist button to radar cards; update MCP tool count test
nirholas0f746046324a
diff --git a/src/radar.js b/src/radar.jsindex 2421da8c8..8df6f498d 100644--- a/src/radar.js+++ b/src/radar.js@@ -15,6 +15,21 @@const POLL_MS = 12000;const DEFAULT_LIMIT = 60;+// ── watchlist helpers (same key as launch-detail.js, watchlist.js, launches.js, oracle.js) ──+const WATCH_KEY = 'ld_watchlist';+function isWatched(mint) {+ try { return JSON.parse(localStorage.getItem(WATCH_KEY) || '[]').includes(mint); } catch { return false; }+}+function toggleRadarWatch(mint) {+ try {+ const list = JSON.parse(localStorage.getItem(WATCH_KEY) || '[]');+ const idx = list.indexOf(mint);+ if (idx >= 0) list.splice(idx, 1); else list.unshift(mint);+ localStorage.setItem(WATCH_KEY, JSON.stringify(list.slice(0, 200)));+ return idx < 0;+ } catch { return false; }+}+const CATEGORIES = ['meme', 'tech', 'ai', 'culture', 'community','political', 'news', 'animal', 'celebrity', 'utility', 'unknown',@@ -462,7 +477,24 @@ function renderCard(coin) {const detail = el('button', 'rc-detail', 'Full intel →');detail.type = 'button';detail.addEventListener('click', (e) => { e.stopPropagation(); open(); });- foot.append(scan, detail);++ const watched = isWatched(coin.mint);+ const watchBtn = el('button', `rc-watch${watched ? ' rc-watched' : ''}`, watched ? '★' : '☆');+ watchBtn.type = 'button';+ watchBtn.setAttribute('aria-label', watched ? 'Remove from watchlist' : 'Add to watchlist');+ watchBtn.setAttribute('aria-pressed', String(watched));+ watchBtn.title = watched ? 'Remove from watchlist' : 'Add to watchlist';+ watchBtn.addEventListener('click', (e) => {+ e.stopPropagation();+ const nowWatched = toggleRadarWatch(coin.mint);+ watchBtn.textContent = nowWatched ? '★' : '☆';+ watchBtn.classList.toggle('rc-watched', nowWatched);+ watchBtn.setAttribute('aria-pressed', String(nowWatched));+ watchBtn.setAttribute('aria-label', nowWatched ? 'Remove from watchlist' : 'Add to watchlist');+ watchBtn.title = nowWatched ? 'Remove from watchlist' : 'Add to watchlist';+ });++ foot.append(scan, detail, watchBtn);card.append(foot);if (isNew) requestAnimationFrame(() => card.classList.remove('is-enter'));diff --git a/tests/api/pump-fun-mcp.test.js b/tests/api/pump-fun-mcp.test.jsindex d63fed2be..df1bdd55c 100644--- a/tests/api/pump-fun-mcp.test.js+++ b/tests/api/pump-fun-mcp.test.js@@ -172,15 +172,15 @@ describe('tools/list', () => {for (const n of INDEXER_TOOL_NAMES) expect(names).not.toContain(n);// …but the always-on metadata tool is.expect(names).toContain('pumpfun_bot_status');- // 23 total declared − 6 indexer tools = 17 advertised.- expect(json.result.tools).toHaveLength(17);+ // 26 total declared − 6 indexer tools = 20 advertised.+ expect(json.result.tools).toHaveLength(20);for (const t of json.result.tools) expect(t.inputSchema.type).toBe('object');});- it('advertises all 23 tools (incl. indexer tools) when the bot is configured', async () => {+ it('advertises all 26 tools (incl. indexer tools) when the bot is configured', async () => {pumpfunBotEnabled.mockReturnValue(true);const { json } = await call({ jsonrpc: '2.0', id: 1, method: 'tools/list' });- expect(json.result.tools).toHaveLength(23);+ expect(json.result.tools).toHaveLength(26);const names = json.result.tools.map((t) => t.name);for (const n of INDEXER_TOOL_NAMES) expect(names).toContain(n);expect(names).toContain('pumpfun_bot_status');