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.

test(play): make the journey audit reliable on a busy box and add a lobby-only mode

nirholasc8bf43b21e97
diff --git a/scripts/play-journey-audit.mjs b/scripts/play-journey-audit.mjs
index bb15f5f6d..e76d573eb 100644
--- a/scripts/play-journey-audit.mjs
+++ b/scripts/play-journey-audit.mjs
@@ -314,6 +314,24 @@ await page.waitForTimeout(600);
// looks wrong with the tab order specifically.
if (process.env.TAB_CHECK === '1') await tabTrapCheck('lobby');
+// LOBBY_ONLY stops here. The lobby's layout and focus story is what a responsive
+// pass re-checks over and over, and it is reachable in a fraction of the time a
+// world entry costs, so it is worth being able to ask for on its own.
+if (process.env.LOBBY_ONLY === '1') {
+ findings.cls = await page.evaluate(() => ({ cls: Number((window.__cls || 0).toFixed(4)), shifts: (window.__shifts || []).slice(0, 8) }));
+ console.log(at(), '[cls]', JSON.stringify(findings.cls));
+ console.log(`\n=== lobby summary @${VIEWPORT} ===`);
+ console.log('console issues:', findings.console.length);
+ for (const c of [...new Set(findings.console)].slice(0, 10)) console.log(' ', c);
+ console.log('network issues:', findings.network.length);
+ for (const n of [...new Set(findings.network)].slice(0, 10)) console.log(' ', n);
+ console.log('overflow scans with hits:', findings.overflow.length);
+ console.log('touch-target scans with hits:', findings.touch.length);
+ console.log('focus problems:', findings.focus.reduce((a, f) => a + f.bad.length, 0));
+ await browser.close();
+ process.exit(findings.console.length || findings.network.length ? 1 : 0);
+}
+
// ── 2. search: a query with hits, then one with none ───────────────────────
//
// The value is set and an `input` event dispatched rather than typed through