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.

fix(page-audit): sweep the manifest's own auth-gated pages when a session exists

nirholas77f26ac6bdbc
diff --git a/scripts/page-audit.mjs b/scripts/page-audit.mjs
index b627b6025..c49364925 100644
--- a/scripts/page-audit.mjs
+++ b/scripts/page-audit.mjs
@@ -152,8 +152,16 @@ function buildRouteList(dynamic) {
for (const r of skipped) console.log(` skipping ${r} (non-HTML endpoint, nothing to audit)`);
return [...new Set(explicitRoutes.filter(isHtmlRoute))];
}
- const authed = existsSync(AUTH_STATE) ? AUTHED_ROUTES : [];
- return [...new Set([...manifestRoutes(), ...authed, ...dynamic])];
+ // With a session, the manifest's own auth-gated pages come in too. Asking
+ // for the public set alone dropped five of them (/conversions, /agent-screen,
+ // /agent-studio, /proof, /autopilot-activity): flagged `auth` in
+ // data/pages.json, so the public filter removed them, and absent from
+ // AUTHED_ROUTES, which only carries what the manifest deliberately omits.
+ // They fell between the two lists and no sweep had ever loaded them.
+ const signedIn = existsSync(AUTH_STATE);
+ const manifest = manifestRoutes(signedIn ? { access: 'all' } : undefined);
+ const authed = signedIn ? AUTHED_ROUTES : [];
+ return [...new Set([...manifest, ...authed, ...dynamic])];
}
// ── Login (storageState bootstrap) ────────────────────────────────────────────