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
fix(x-content): wait for client-rendered pages to finish before verifying post claims
nirholasdb1cae725352
diff --git a/api/_lib/x-content/verify.js b/api/_lib/x-content/verify.jsindex b54465e7e..6f2b60ddf 100644--- a/api/_lib/x-content/verify.js+++ b/api/_lib/x-content/verify.js@@ -74,7 +74,22 @@ function createPageReader() {try {const response = await page.goto(url, { waitUntil: 'networkidle', timeout: 60_000 }).catch(() => null);const status = response?.status() ?? 0;- const text = await page.evaluate(() => (document.querySelector('main') || document.body).innerText);+ // Client-rendered pages (AWS Builder Center, most SPAs) can still be+ // empty at network idle. Wait until the text stops growing, so a+ // claim is never failed by a page that had not finished rendering.+ await page+ .waitForFunction(+ () => {+ const length = document.body.innerText.length;+ const previous = window.__verifyLength || 0;+ window.__verifyLength = length;+ return length > 200 && length === previous;+ },+ null,+ { polling: 1000, timeout: 30_000 },+ )+ .catch(() => {});+ const text = await page.evaluate(() => document.body.innerText);const result = { status, text: normalize(text) };cache.set(url, result);return result;