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
style: deploy register-ui + global style.css updates
nirholas83d75f05a241
diff --git a/public/style.css b/public/style.cssindex 67593b2a4..408cf6980 100644--- a/public/style.css+++ b/public/style.css@@ -3785,6 +3785,30 @@ body.deploy-page {word-break: break-word;}+.erc8004-img-summary {+ display: inline-flex;+ align-items: center;+ gap: var(--space-xs);+ min-width: 0;+}++.erc8004-img-summary .erc8004-muted,+.erc8004-img-summary a {+ overflow: hidden;+ text-overflow: ellipsis;+ white-space: nowrap;+}++.erc8004-img-thumb {+ width: 40px;+ height: 40px;+ flex: 0 0 auto;+ object-fit: cover;+ border-radius: var(--radius-sm);+ border: 1px solid rgba(255, 255, 255, 0.1);+ background: rgba(255, 255, 255, 0.04);+}+.erc8004-agent-card {padding: var(--space-sm);background: rgba(255, 255, 255, 0.03);diff --git a/src/erc8004/register-ui.js b/src/erc8004/register-ui.jsindex 43c3dd6e1..5b6376320 100644--- a/src/erc8004/register-ui.js+++ b/src/erc8004/register-ui.js@@ -1597,7 +1597,7 @@ export class RegisterUI {<dl class="erc8004-summary"><dt>Name</dt> <dd>${esc(this.form.name)}</dd><dt>Description</dt> <dd>${esc(this.form.description)}</dd>- ${this.form.imageUrl ? `<dt>Image</dt> <dd>${esc(this.form.imageUrl)}</dd>` : ''}+ ${this.form.imageUrl ? `<dt>Image</dt> <dd>${this._imageSummaryHtml()}</dd>` : ''}<dt>Avatar</dt> <dd>${this._avatarSummary()}</dd><dt>Services</dt> <dd>${this.form.services.length ? this.form.services.map((s) => `${esc(s.type)}: ${esc(s.endpoint || '—')}`).join('<br>') : '<span class="erc8004-muted">none</span>'}</dd><dt>Chain</dt> <dd>${esc(meta.name)} (chainId ${this.selectedChainId})</dd>@@ -1717,7 +1717,7 @@ export class RegisterUI {<dl class="erc8004-summary"><dt>Name</dt> <dd>${esc(this.form.name)}</dd><dt>Description</dt> <dd>${esc(this.form.description)}</dd>- ${this.form.imageUrl ? `<dt>Image</dt> <dd>${esc(this.form.imageUrl)}</dd>` : ''}+ ${this.form.imageUrl ? `<dt>Image</dt> <dd>${this._imageSummaryHtml()}</dd>` : ''}<dt>Avatar</dt> <dd>${this._avatarSummary()}</dd><dt>Chain</dt> <dd>${esc(chainLabel)} (${esc(network)})</dd><dt>Standard</dt> <dd>Metaplex Core (mpl-core)</dd>@@ -1893,6 +1893,25 @@ export class RegisterUI {return `<span class="erc8004-muted">Not selected</span>`;}+ /**+ * Compact, human-readable summary of the agent image for the Review step.+ * A 3D-capture ("📸 Use 3D view") can leave an inline base64 data: URL of+ * tens of thousands of characters — never dump that raw into the page.+ * Render the actual thumbnail plus a short label instead of the string.+ */+ _imageSummaryHtml() {+ const url = (this.form.imageUrl || '').trim();+ if (!url) return '';+ const thumb = `<img src="${esc(url)}" alt="Agent image" class="erc8004-img-thumb"+ onerror="this.style.display='none'" />`;+ if (url.startsWith('data:')) {+ const kb = Math.round((url.length * 0.75) / 1024);+ return `<span class="erc8004-img-summary">${thumb}<span class="erc8004-muted">Captured from 3D view · inline image (~${kb} KB)</span></span>`;+ }+ const label = url.length > 64 ? url.slice(0, 48) + '…' + url.slice(-12) : url;+ return `<span class="erc8004-img-summary">${thumb}<a href="${esc(url)}" target="_blank" rel="noopener"><code>${esc(label)}</code></a></span>`;+ }+/*** Drives the deploy-phase-track indicator in Step 4.* Returns (phaseName) => void to advance to a given phase.