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: sync working tree

nirholas771ad5216ee8
diff --git a/deploy-check.mjs b/deploy-check.mjs
new file mode 100644
index 000000000..a9d5ad1b0
--- /dev/null
+++ b/deploy-check.mjs
@@ -0,0 +1,27 @@
+import puppeteer from 'puppeteer';
+const b = await puppeteer.launch({headless:'new', args:['--no-sandbox','--disable-setuid-sandbox']});
+const p = await b.newPage();
+await p.setViewport({width:1440, height:900});
+await p.goto('https://three.ws/deploy', {waitUntil:'domcontentloaded', timeout:60000});
+await new Promise(r=>setTimeout(r,7000));
+const info = await p.evaluate(()=>{
+ const footer = document.querySelector('footer');
+ const cs = el => el?getComputedStyle(el):null;
+ const fcs = cs(footer);
+ const bodyCs = cs(document.body);
+ const wrap = document.querySelector('main.wrap');
+ const deployMain = document.querySelector('.deploy-main');
+ const r = el=>el?(x=>({y:x.y|0,bottom:x.bottom|0,h:x.height|0}))(el.getBoundingClientRect()):null;
+ return {
+ footerParent: footer?.parentElement?.tagName+'.'+footer?.parentElement?.className,
+ footerPrevSibling: footer?.previousElementSibling?.tagName+'.'+footer?.previousElementSibling?.className,
+ footerMarginTop: fcs.marginTop, footerMarginBottom: fcs.marginBottom, footerPos: fcs.position,
+ bodyDisplay: bodyCs.display, bodyFlexDir: bodyCs.flexDirection,
+ wrapDisplay: cs(wrap).display, wrapMinH: cs(wrap).minHeight, wrapFlex: cs(wrap).flex,
+ deployMain: r(deployMain), deployMainMb: cs(deployMain).marginBottom,
+ deployPagePos: cs(document.querySelector('.deploy-page')).position,
+ deployPageFlex: cs(document.querySelector('.deploy-page')).flex,
+ };
+});
+console.log(JSON.stringify(info,null,2));
+await b.close();
diff --git a/src/agent-detail.css b/src/agent-detail.css
index 17c944795..cce319bc9 100644
--- a/src/agent-detail.css
+++ b/src/agent-detail.css
@@ -948,6 +948,10 @@ a { color: inherit; text-decoration: none; }
backdrop-filter: blur(4px);
}
.creator-modal-overlay.show { opacity: 1; }
+/* Without this the unconditional `display:flex` above defeats the `hidden`
+ attribute, leaving an invisible (opacity:0) full-viewport layer that swallows
+ every click on the page. */
+.creator-modal-overlay[hidden] { display: none; }
.creator-modal {
position: relative;
width: min(720px, 100%);
@@ -1016,6 +1020,11 @@ a { color: inherit; text-decoration: none; }
-webkit-backdrop-filter: blur(4px);
backdrop-filter: blur(4px);
}
+/* The shared skill-purchase modal is injected with a `hidden` attribute and
+ toggled via overlay.hidden. Without this, the unconditional `display:flex`
+ above overrides the UA `[hidden]{display:none}` rule and the (blank) modal
+ shows on page load. */
+.market-modal-overlay[hidden] { display: none; }
.market-modal {
position: relative;
width: min(440px, 100%);
diff --git a/src/erc8004/register-ui.js b/src/erc8004/register-ui.js
index 5b6376320..6eb852c35 100644
--- a/src/erc8004/register-ui.js
+++ b/src/erc8004/register-ui.js
@@ -1297,12 +1297,11 @@ export class RegisterUI {
const { data } = await resp.json();
this.form.imageUrl = data.thumbnail_url;
} else {
- this.form.imageUrl = await new Promise((resolve, reject) => {
- const reader = new FileReader();
- reader.onload = () => resolve(reader.result);
- reader.onerror = reject;
- reader.readAsDataURL(blob);
- });
+ // No avatar row to attach to — pin the PNG to get a stable hosted
+ // URL. Embedding the raw base64 data: URL would bloat the minted
+ // metadata JSON (tens of KB) and render unusably in the Review UI.
+ const file = new File([blob], 'agent-3d-capture.png', { type: 'image/png' });
+ this.form.imageUrl = await pinFile(file, this.form.apiToken || undefined);
}
const input = stepBody?.querySelector('[name="imageUrl"]');