Skip to content

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.

chore: updated accessory thumbs, remove debug scripts, agents dashboard + vercel tweaks

nirholasfa1bdf833b67
diff --git a/public/accessories/thumbs/earrings-hoops.png b/public/accessories/thumbs/earrings-hoops.png
index 8c0d27e4c..c6c6169d5 100644
Binary files a/public/accessories/thumbs/earrings-hoops.png and b/public/accessories/thumbs/earrings-hoops.png differ
diff --git a/public/accessories/thumbs/earrings-studs.png b/public/accessories/thumbs/earrings-studs.png
index 14bc320d9..8e4a2d56e 100644
Binary files a/public/accessories/thumbs/earrings-studs.png and b/public/accessories/thumbs/earrings-studs.png differ
diff --git a/public/accessories/thumbs/glasses-round.png b/public/accessories/thumbs/glasses-round.png
index f5dc6b46d..b6f0c5566 100644
Binary files a/public/accessories/thumbs/glasses-round.png and b/public/accessories/thumbs/glasses-round.png differ
diff --git a/public/accessories/thumbs/glasses-shades.png b/public/accessories/thumbs/glasses-shades.png
index 22063867c..27ef7a0d0 100644
Binary files a/public/accessories/thumbs/glasses-shades.png and b/public/accessories/thumbs/glasses-shades.png differ
diff --git a/public/accessories/thumbs/hat-baseball.png b/public/accessories/thumbs/hat-baseball.png
index b3fd02c4f..a9eb6ef18 100644
Binary files a/public/accessories/thumbs/hat-baseball.png and b/public/accessories/thumbs/hat-baseball.png differ
diff --git a/public/accessories/thumbs/hat-beanie.png b/public/accessories/thumbs/hat-beanie.png
index cb57ae7b6..42bfd1f58 100644
Binary files a/public/accessories/thumbs/hat-beanie.png and b/public/accessories/thumbs/hat-beanie.png differ
diff --git a/public/accessories/thumbs/hat-cowboy.png b/public/accessories/thumbs/hat-cowboy.png
index 389b46b84..b24510504 100644
Binary files a/public/accessories/thumbs/hat-cowboy.png and b/public/accessories/thumbs/hat-cowboy.png differ
diff --git a/scripts/_dbg.mjs b/scripts/_dbg.mjs
deleted file mode 100644
index 779387dbf..000000000
--- a/scripts/_dbg.mjs
+++ /dev/null
@@ -1,16 +0,0 @@
-import puppeteer from 'puppeteer';
-const BASE='http://localhost:3000';
-const b = await puppeteer.launch({headless:true,pipe:true,timeout:90000,args:['--no-sandbox','--disable-setuid-sandbox','--disable-dev-shm-usage','--disable-gpu','--disable-dbus']});
-const p = await b.newPage();
-const featErrors=[];
-p.on('console', m=>{ if(m.type()==='error' && !/xr|WebGL/i.test(m.text())) featErrors.push(m.text()); });
-// deep-link
-await p.goto(`${BASE}/marketplace/tools/650e9a5c-b35e-4f91-a4ec-4424d4fa6dca`, {waitUntil:'domcontentloaded'});
-await p.waitForSelector('#tool-detail-body:not([hidden])', {timeout:15000});
-console.log('DEEPLINK ok:', JSON.stringify(await p.$eval('#tool-detail-name',e=>e.textContent)), '| title:', JSON.stringify(await p.title()));
-// not found
-await p.goto(`${BASE}/marketplace/tools/00000000-0000-0000-0000-000000000000`, {waitUntil:'domcontentloaded'});
-await p.waitForSelector('#tool-detail-empty:not([hidden])', {timeout:15000});
-console.log('NOTFOUND ok:', JSON.stringify(await p.$eval('.tool-detail-empty-title',e=>e.textContent)), '| bodyHidden:', await p.$eval('#tool-detail-body',e=>e.hidden));
-console.log('FEATURE CONSOLE ERRORS:', featErrors.length?JSON.stringify(featErrors):'none');
-await b.close();
diff --git a/scripts/_verify-my-agents-tmp.mjs b/scripts/_verify-my-agents-tmp.mjs
deleted file mode 100644
index 38f0aa4af..000000000
--- a/scripts/_verify-my-agents-tmp.mjs
+++ /dev/null
@@ -1,51 +0,0 @@
-import { chromium } from 'playwright';
-const browser = await chromium.launch();
-const page = await browser.newPage({ viewport: { width: 1280, height: 1000 } });
-const errors = [];
-page.on('console', m => { if (m.type() === 'error') errors.push(m.text()); });
-page.on('pageerror', e => errors.push('PAGEERROR: ' + e.message));
-
-const now = Date.now();
-const agents = [
- { id:'11111111-1111-1111-1111-111111111111', name:'Ansem', description:'A sharp trading agent that lives on Base.', avatar_model_url:'/avatars/default.glb', avatar_thumbnail_url:null, chain_id:8453, is_registered:true, is_published:true, chat_count:1240, skills:['a','b','c'], created_at:new Date(now-3*86400000).toISOString() },
- { id:'22222222-2222-2222-2222-222222222222', name:'Default Starter Agent', description:null, avatar_model_url:'/avatars/default.glb', avatar_thumbnail_url:null, chain_id:null, is_registered:false, is_published:false, chat_count:0, skills:[], created_at:new Date(now-30*86400000).toISOString() },
- { id:'33333333-3333-3333-3333-333333333333', name:'Concierge', description:'Helps users navigate the platform with style and grace.', avatar_model_url:'/avatars/default.glb', avatar_thumbnail_url:null, chain_id:null, is_registered:false, is_published:true, chat_count:58, skills:['help'], created_at:new Date(now-86400000).toISOString() },
-];
-
-await page.route('**/api/auth/me', r => r.fulfill({ json:{ user:{ id:'u1', email:'[email protected]' } } }));
-await page.route('**/api/agents/me', r => r.fulfill({ json:{ agent: agents[0] } }));
-await page.route('**/api/agents', r => r.fulfill({ json:{ agents } }));
-await page.route('**/api/erc8004/hydrate', r => r.fulfill({ json:{ agents: [
- { chainId:84532, agentId:'42', name:'On-chain Scout', description:'Discovered in your linked wallet.', image:null, glbUrl:'/avatars/default.glb' },
-] } }));
-
-await page.goto('http://localhost:3000/my-agents/', { waitUntil:'networkidle' });
-await page.waitForTimeout(2000);
-
-const cards = await page.locator('.my-agents-card').count();
-const stats = await page.locator('.my-agents-stat__value').allTextContents();
-const toolbarVisible = await page.locator('#my-agents-toolbar').isVisible();
-const newTile = await page.locator('.my-agents-card--new').count();
-const importBtn = await page.locator('button:has-text("Import to library")').count();
-console.log('CARDS:', cards);
-console.log('STATS:', stats.join(' | '));
-console.log('TOOLBAR visible:', toolbarVisible);
-console.log('NEW tile:', newTile, '| IMPORT btn:', importBtn);
-await page.screenshot({ path:'/tmp/my-agents-populated.png', fullPage:true });
-
-// Test search
-await page.fill('#my-agents-search-input', 'concierge');
-await page.waitForTimeout(300);
-const afterSearch = await page.locator('.my-agents-card:not(.my-agents-card--new)').count();
-console.log('after search "concierge":', afterSearch, 'cards');
-
-// Test sort by chats
-await page.fill('#my-agents-search-input', '');
-await page.waitForTimeout(300);
-await page.selectOption('#my-agents-sort-select', 'chats');
-await page.waitForTimeout(300);
-const firstName = await page.locator('.my-agents-card__name').first().textContent();
-console.log('sort by chats, first card:', firstName);
-
-console.log('ERRORS:', errors.length ? errors.join('\n') : 'none');
-await browser.close();
diff --git a/src/dashboard-next/pages/agents.js b/src/dashboard-next/pages/agents.js
index dc9374864..b9fa2014b 100644
--- a/src/dashboard-next/pages/agents.js
+++ b/src/dashboard-next/pages/agents.js
@@ -254,9 +254,117 @@ function renderAgents(host, agents, avatars, root) {
});
});
+ host.querySelectorAll('[data-action="deploy-onchain"]').forEach((btn) => {
+ btn.addEventListener('click', () => {
+ const id = btn.dataset.id;
+ const agent = agents.find((a) => a.id === id);
+ if (agent) openDeployOnchainModal(host, agent, avatars, agents);
+ });
+ });
+
+ host.querySelectorAll('[data-action="deploy-pump"]').forEach((btn) => {
+ btn.addEventListener('click', () => {
+ const id = btn.dataset.id;
+ const agent = agents.find((a) => a.id === id);
+ if (agent) openDeployPumpModal(agent, avatars);
+ });
+ });
+
loadInlineReviewStats(host, agents);
}
+// ── Deploy on-chain (Metaplex Core / ERC-8004) ─────────────────────────────
+// Reuses the <onchain-deploy-button> custom element, which drives the full
+// prep → sign → confirm pipeline from src/onchain/deploy.js and persists the
+// result through /api/agents/onchain/confirm. On success we patch the in-memory
+// agent with the confirmed record and re-render so the card flips to on-chain.
+
+async function openDeployOnchainModal(host, agent, avatars, allAgents) {
+ await import('../../onchain/deploy-button.js');
+ const overlay = makeOverlay();
+ overlay.innerHTML = `
+ <div role="dialog" aria-modal="true" aria-label="Deploy agent on-chain" style="
+ width:min(440px,100%);
+ background:linear-gradient(180deg,rgba(22,24,32,0.97),rgba(16,17,24,0.97));
+ border:1px solid var(--nxt-stroke-strong);border-radius:14px;padding:24px;
+ box-shadow:0 20px 60px rgba(0,0,0,0.6);
+ ">
+ <div style="font-size:17px;font-weight:600;margin-bottom:6px">Deploy on-chain</div>
+ <div style="font-size:12.5px;color:var(--nxt-ink-dim);margin-bottom:18px">
+ Mint a Metaplex Core asset for <strong style="color:var(--nxt-ink)">${esc(agent.name || agent.display_name || 'this agent')}</strong>. That asset becomes the agent's permanent on-chain identity. You'll sign one transaction in your Solana wallet (~0.003 SOL rent + network fees).
+ </div>
+ <div data-slot="deploy-host" style="display:flex;justify-content:center;margin-bottom:18px"></div>
+ <div data-slot="error" style="font-size:12.5px;color:var(--nxt-danger);min-height:18px;margin-bottom:12px"></div>
+ <div style="display:flex;gap:8px;justify-content:flex-end">
+ <button class="dn-btn ghost" data-action="cancel">Close</button>
+ </div>
+ </div>
+ `;
+ document.body.appendChild(overlay);
+
+ const errorEl = overlay.querySelector('[data-slot="error"]');
+ const deployHost = overlay.querySelector('[data-slot="deploy-host"]');
+
+ const btnEl = document.createElement('onchain-deploy-button');
+ btnEl.setAttribute('agent-id', agent.id);
+ btnEl.setAttribute('chain', 'solana:mainnet');
+ btnEl.setAttribute('label', 'Deploy on Solana →');
+ btnEl.agent = {
+ id: agent.id,
+ name: agent.name || agent.display_name || 'Agent',
+ description: agent.description || agent.persona?.tagline || agent.tagline || '',
+ avatar_id: agent.avatar_id || null,
+ skills: Array.isArray(agent.skills) && agent.skills.length ? agent.skills : undefined,
+ };
+ deployHost.appendChild(btnEl);
+
+ btnEl.addEventListener('onchain:deployed', (e) => {
+ const updated = e.detail?.agent || {};
+ toast('Agent deployed on-chain');
+ const idx = allAgents.findIndex((a) => a.id === agent.id);
+ if (idx >= 0) allAgents[idx] = { ...allAgents[idx], ...updated };
+ close();
+ renderAgents(host, allAgents, avatars, null);
+ });
+ btnEl.addEventListener('onchain:error', (e) => {
+ errorEl.textContent = e.detail?.error?.message || 'Deploy failed. Please try again.';
+ });
+
+ const close = () => overlay.remove();
+ overlay.querySelector('[data-action="cancel"]').addEventListener('click', close);
+ overlay.addEventListener('click', (e) => { if (e.target === overlay) close(); });
+ document.addEventListener('keydown', function onKey(e) {
+ if (e.key === 'Escape') { close(); document.removeEventListener('keydown', onKey); }
+ });
+}
+
+// ── Deploy Pump.fun token ──────────────────────────────────────────────────
+// Reuses the existing launch-token-modal. If the agent isn't on Solana yet the
+// modal runs its deploy step first (needsDeploy), then launches the token. The
+// modal persists via /api/agents/tokens/launch-confirm and reloads on success.
+
+function openDeployPumpModal(agent, avatars) {
+ const avatar = avatars.find((av) => av.id === agent.avatar_id);
+ const imageUrl = avatar?.thumbnail_url || avatar?.url || agent.meta?.thumbnail_url || '';
+ const onchain = agent.onchain || agent.meta?.onchain || null;
+ const needsDeploy = !onchain || onchain.family !== 'solana';
+ openLaunchTokenModal({
+ agentId: agent.id,
+ agentName: agent.name || agent.display_name || 'Agent',
+ imageUrl,
+ needsDeploy,
+ agentForDeploy: needsDeploy
+ ? {
+ id: agent.id,
+ name: agent.name || agent.display_name || 'Agent',
+ description: agent.description || agent.persona?.tagline || agent.tagline || '',
+ avatar_id: agent.avatar_id || null,
+ skills: Array.isArray(agent.skills) && agent.skills.length ? agent.skills : undefined,
+ }
+ : null,
+ });
+}
+
const BRAIN_LABELS = {
'claude-sonnet-4-6': 'Claude Sonnet 4.6',
'claude-haiku-4-5-20251001': 'Claude Haiku 4.5',
@@ -326,6 +434,8 @@ function agentCard(a, avatars) {
<button class="dn-btn ghost" data-action="persona-agent" data-id="${esc(a.id)}" style="padding:5px 10px;font-size:12px">Persona</button>
<a class="dn-btn ghost" href="/dashboard/library#tab=brain" style="padding:5px 10px;font-size:12px;text-decoration:none">Brain</a>
<button class="dn-btn ghost" data-action="view-reputation" data-id="${esc(a.id)}" style="padding:5px 10px;font-size:12px">Reputation</button>
+ ${onchain ? '' : `<button class="dn-btn ghost" data-action="deploy-onchain" data-id="${esc(a.id)}" style="padding:5px 10px;font-size:12px">Deploy onchain</button>`}
+ ${pumpMint ? '' : `<button class="dn-btn ghost" data-action="deploy-pump" data-id="${esc(a.id)}" style="padding:5px 10px;font-size:12px">Deploy Pump.fun</button>`}
<button class="dn-btn ghost danger" data-action="delete-agent" data-id="${esc(a.id)}" style="padding:5px 10px;font-size:12px">Delete</button>
</div>
</div>
diff --git a/vercel.json b/vercel.json
index ca144548f..0202ea6cf 100644
--- a/vercel.json
+++ b/vercel.json
@@ -2412,7 +2412,7 @@
},
{
"src": "/a/me/?",
- "dest": "/pages/a-me.html"
+ "dest": "/a-me.html"
},
{
"src": "/a/(\\d+)/(\\d+)/embed",