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
feat(accessibility): enhance input accessibility with inputmode and tabindex attributes
fudjia59091040b1da
diff --git a/src/agent-wallet-hub/index.js b/src/agent-wallet-hub/index.jsindex f481549c4..ccc6deab3 100644--- a/src/agent-wallet-hub/index.js+++ b/src/agent-wallet-hub/index.js@@ -221,7 +221,7 @@ export function mountAgentWalletHub({ mount, agent, initialTab, onNetworkChange<div class="awh-tabs" role="tablist" aria-label="Wallet sections">${tabs.map(- (t, i) => `+ (t) => `<button class="awh-tab" role="tab" type="button"id="awh-tab-${escapeHtml(t.id)}"data-awh-tab="${escapeHtml(t.id)}"diff --git a/src/agent-wallet-hub/tabs/access.js b/src/agent-wallet-hub/tabs/access.jsindex 96a10828b..0f2a3b963 100644--- a/src/agent-wallet-hub/tabs/access.js+++ b/src/agent-wallet-hub/tabs/access.js@@ -281,11 +281,11 @@ registerWalletTab({<div class="awh-acc-row"><div class="awh-acc-field"><label for="awh-acc-peruse">Max per use (USD)</label>- <input type="number" id="awh-acc-peruse" data-f="per_use" min="0" step="0.01" placeholder="optional" />+ <input type="number" id="awh-acc-peruse" data-f="per_use" min="0" step="0.01" inputmode="decimal" placeholder="optional" /></div><div class="awh-acc-field"><label for="awh-acc-agg">Total budget (USD)</label>- <input type="number" id="awh-acc-agg" data-f="aggregate" min="0" step="0.01" placeholder="optional" />+ <input type="number" id="awh-acc-agg" data-f="aggregate" min="0" step="0.01" inputmode="decimal" placeholder="optional" /></div><div class="awh-acc-field"><label for="awh-acc-ttl">Expires in</label>diff --git a/src/agent-wallet-hub/tabs/give.js b/src/agent-wallet-hub/tabs/give.jsindex 2da137f72..fdf2108f7 100644--- a/src/agent-wallet-hub/tabs/give.js+++ b/src/agent-wallet-hub/tabs/give.js@@ -45,7 +45,7 @@ const GIVE_STYLE = `.awg-err .why { color: var(--ink-dim,#aaa); font-size: var(--text-2xs,.6875rem); margin-top:4px; text-transform:capitalize; }.awg-cause { display:flex; align-items:center; gap:10px; justify-content:space-between; flex-wrap:wrap; }.awg-cause-id { display:flex; flex-direction:column; gap:2px; min-width:0; }-.awg-cause-id strong { font-size: var(--text-md,.8125rem); color: var(--ink-bright,#fff); }+.awg-cause-id strong { font-size: var(--text-md,.8125rem); color: var(--ink-bright,#fff); overflow:hidden; text-overflow:ellipsis; white-space:nowrap; max-width:100%; }.awg-cause-id .addr { font-family: var(--font-mono,ui-monospace,monospace); font-size: var(--text-2xs,.6875rem); color: var(--ink-dim,#888); word-break:break-all; }.awg-heart { font-size:22px; line-height:1; flex:none; }.awg-chips { display:flex; gap:6px; flex-wrap:wrap; margin:10px 0 6px; }diff --git a/src/agent-wallet-hub/tabs/policy.js b/src/agent-wallet-hub/tabs/policy.jsindex 5daf745e1..6031fc242 100644--- a/src/agent-wallet-hub/tabs/policy.js+++ b/src/agent-wallet-hub/tabs/policy.js@@ -298,7 +298,7 @@ registerWalletTab({return `<div class="awh-card"><div class="awh-card-h">How it behaves</div><p class="awp-hint" style="margin-top:0;">No spend history on ${esc(ctx.getNetwork())} yet, so here’s how this policy would handle some common cases:</p>- ${probes.length ? `<ul class="awp-syn">${probes.map((p) => `<li><span>${esc(p.label)}</span><span class="v ${p.denied ? 'no' : 'ok'}">${p.denied ? (p.decision === 'freeze' ? 'Freeze' : p.decision === 'step_up' ? 'Ask me' : 'Blocked') : 'Allowed'}</span></li>`).join('')}</ul>` : '<p class="awp-empty">Once your agent starts spending, you’ll see a real backtest here.</p>'}+ ${probes.length ? `<ul class="awp-syn">${probes.map((p) => `<li><span>${esc(p.label)}</span><span class="v ${p.denied ? 'no' : 'ok'}">${p.denied ? (p.decision === 'freeze' ? 'Freeze' : p.decision === 'step_up' ? 'Ask me' : 'Blocked') : 'Allowed'}</span></li>`).join('')}</ul>` : '<p class="awh-empty">Once your agent starts spending, you’ll see a real backtest here.</p>'}</div>`;}diff --git a/src/agent-wallet-hub/tabs/pulse.js b/src/agent-wallet-hub/tabs/pulse.jsindex de73335cc..b4c39547a 100644--- a/src/agent-wallet-hub/tabs/pulse.js+++ b/src/agent-wallet-hub/tabs/pulse.js@@ -80,26 +80,35 @@ registerWalletTab({let detachNet = null;panel.innerHTML =- `<div class="awp-summary" id="awp-summary" aria-label="Wallet lifetime summary"></div>` ++ `<div class="awp-summary" id="awp-summary" role="group" aria-label="Wallet lifetime summary"></div>` +(ctx.isOwner ? `<div id="awp-toggle"></div>` : '') +`<div id="awp-feed"></div>`;const summaryHost = panel.querySelector('#awp-summary');const feedHost = panel.querySelector('#awp-feed');+ function skeletonSummary() {+ return Array.from({ length: 4 }, () =>+ `<dl class="awp-stat" aria-hidden="true"><span class="awp-skel-bar dt"></span><span class="awp-skel-bar dd"></span></dl>`,+ ).join('');+ }+function renderSummary(s) {+ summaryHost.removeAttribute('aria-busy');if (!s) { summaryHost.style.display = 'none'; return; }summaryHost.style.removeProperty('display');const tipMain = s.tips.usd > 0 ? fmtUsd(s.tips.usd) : fmtSol(s.tips.sol);const biggest = s.tips.biggest_usd > 0 ? fmtUsd(s.tips.biggest_usd) : (s.tips.biggest_sol > 0 ? fmtSol(s.tips.biggest_sol) : '—');summaryHost.innerHTML =- `<div class="awp-stat"><dt>Tips received</dt><dd>${esc(tipMain)}<small>${s.tips.count} tip${s.tips.count === 1 ? '' : 's'}</small></dd></div>` +- `<div class="awp-stat"><dt>Biggest tip</dt><dd>${esc(biggest)}</dd></div>` +- `<div class="awp-stat"><dt>Public outflow</dt><dd>${esc(s.outflow.usd > 0 ? fmtUsd(s.outflow.usd) : fmtSol(s.outflow.sol))}<small>${s.outflow.count} move${s.outflow.count === 1 ? '' : 's'}</small></dd></div>` +- `<div class="awp-stat"><dt>Launches</dt><dd>${s.launches}</dd></div>`;+ `<dl class="awp-stat"><dt>Tips received</dt><dd>${esc(tipMain)}<small>${s.tips.count} tip${s.tips.count === 1 ? '' : 's'}</small></dd></dl>` ++ `<dl class="awp-stat"><dt>Biggest tip</dt><dd>${esc(biggest)}</dd></dl>` ++ `<dl class="awp-stat"><dt>Public outflow</dt><dd>${esc(s.outflow.usd > 0 ? fmtUsd(s.outflow.usd) : fmtSol(s.outflow.sol))}<small>${s.outflow.count} move${s.outflow.count === 1 ? '' : 's'}</small></dd></dl>` ++ `<dl class="awp-stat"><dt>Launches</dt><dd>${s.launches}</dd></dl>`;}async function loadSummary() {+ summaryHost.setAttribute('aria-busy', 'true');+ summaryHost.innerHTML = skeletonSummary();const s = await fetchSummary(ctx.agentId, ctx.getNetwork());if (!destroyed) renderSummary(s);}diff --git a/src/agent-wallet-hub/tabs/signals.js b/src/agent-wallet-hub/tabs/signals.jsindex 9f80d6266..8b9047f5c 100644--- a/src/agent-wallet-hub/tabs/signals.js+++ b/src/agent-wallet-hub/tabs/signals.js@@ -51,6 +51,7 @@ const STYLE = `.asg-fill.met { background: #34d399; }.asg-feedlink { display:inline-flex; align-items:center; gap:6px; font-size: var(--text-sm,.78rem); color: var(--wallet-accent,#c4b5fd); text-decoration:none; }.asg-feedlink:hover { text-decoration:underline; }+.asg-feedlink:focus-visible, .asg-sub-name a:focus-visible, .asg-empty a:focus-visible { outline: var(--focus-ring-width,2px) solid var(--focus-ring-color,#fff); outline-offset: 2px; border-radius: 4px; }.asg-sub { border:1px solid var(--stroke,rgba(255,255,255,.08)); border-radius: var(--radius-md,11px); padding:13px; margin-bottom:10px; }.asg-sub.killed { border-color: color-mix(in srgb, var(--danger,#f87171) 35%, transparent); }.asg-sub-top { display:flex; justify-content:space-between; align-items:flex-start; gap:10px; }@@ -72,7 +73,8 @@ const STYLE = `.asg-note.ok { color: var(--success,#4ade80); }.asg-skel { height:90px; border-radius: var(--radius-md,11px); background: var(--surface-2,rgba(255,255,255,.05)); animation: asg-pulse 1.3s ease infinite; }@keyframes asg-pulse { 50% { opacity:.5; } }-@media (prefers-reduced-motion: reduce) { .asg-skel, .asg-fill { animation:none; transition:none; } }+@media (max-width: 380px) { .asg-row2 { grid-template-columns:1fr; } }+@media (prefers-reduced-motion: reduce) { .asg-skel, .asg-fill, .asg-btn { animation:none; transition:none; } }`;function injectStyle() {diff --git a/src/agent-wallet-hub/tabs/snipe.js b/src/agent-wallet-hub/tabs/snipe.jsindex fe7f5e7f5..bcb6c0e6e 100644--- a/src/agent-wallet-hub/tabs/snipe.js+++ b/src/agent-wallet-hub/tabs/snipe.js@@ -279,7 +279,7 @@ registerWalletTab({${toggles}<div class="sb-actions"><div class="sb-seg" role="group" aria-label="Backtest window">- ${[7, 30, 90].map((w) => `<button data-win="${w}" class="${w === state.window ? 'on' : ''}">${w}d</button>`).join('')}+ ${[7, 30, 90].map((w) => `<button type="button" data-win="${w}" class="${w === state.window ? 'on' : ''}" aria-pressed="${w === state.window}">${w}d</button>`).join('')}</div><button class="sb-btn primary" id="sb-bt" ${state.backtesting ? 'disabled' : ''}>${state.backtesting ? '<span class="sb-spin"></span>Backtesting…' : 'Run backtest'}</button>${state.backtestStale ? '<span class="sb-stale">edited — re-run the backtest</span>' : ''}diff --git a/src/dashboard-next/pages/library.js b/src/dashboard-next/pages/library.jsindex 89c575114..dde441587 100644--- a/src/dashboard-next/pages/library.js+++ b/src/dashboard-next/pages/library.js@@ -57,6 +57,7 @@ function writeTab(tab) {aria-controls="tab-body"id="tab-${t.key}"type="button"+ tabindex="-1">${esc(t.label)}</button>`).join('')}</div>diff --git a/src/dashboard-next/pages/transactions.js b/src/dashboard-next/pages/transactions.jsindex 0194ef078..8d39f91a2 100644--- a/src/dashboard-next/pages/transactions.js+++ b/src/dashboard-next/pages/transactions.js@@ -49,7 +49,7 @@ let visibleCount = PAGE_SIZE;aria-selected="${i === 0 ? 'true' : 'false'}" data-filter="${f.key}">${esc(f.label)}</button>`).join('')}</div>- <div class="tx-toolbar-meta" data-slot="meta"></div>+ <div class="tx-toolbar-meta" data-slot="meta" role="status" aria-live="polite"></div></div><div data-slot="body"></div></div>