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: update import statement for ValidationDashboard and enhance route handling in test script
nirholasc02c12a61af0
diff --git a/public/validation/index.html b/public/validation/index.htmlindex 1b8784736..78a1dd66a 100644--- a/public/validation/index.html+++ b/public/validation/index.html@@ -488,7 +488,7 @@</div><script type="module">- import { ValidationDashboard } from '/validation/boot.js';+ const { ValidationDashboard } = await import(/* @vite-ignore */ '/validation/boot.js');const dashboard = new ValidationDashboard(document.getElementById('main'), {agentInput: document.getElementById('agent-input'),diff --git a/scripts/test-pages.mjs b/scripts/test-pages.mjsindex 3545330d9..959b10a8e 100644--- a/scripts/test-pages.mjs+++ b/scripts/test-pages.mjs@@ -6,6 +6,9 @@ import { setTimeout as wait } from 'timers/promises';const PORT = 3100;const BASE = `http://localhost:${PORT}`;+// Routes to visit. Some need params (template pages) — pass a placeholder+// agent id so they can boot.+const SAMPLE_AGENT = '0xdeadbeef';const ROUTES = ['/','/app',@@ -13,7 +16,9 @@ const ROUTES = ['/create','/profile','/login',- '/agent',+ `/agent/${SAMPLE_AGENT}`,+ `/agent/${SAMPLE_AGENT}/edit`,+ `/agent/${SAMPLE_AGENT}/embed`,'/agents','/dashboard','/studio',@@ -28,17 +33,30 @@ const ROUTES = ['/discover','/explore','/features',- '/embed.html',+ '/embed.html?model=/avatar/avatar.glb','/embed-test.html','/avatar-page.html','/avatar-artifact.html',- '/agent-home.html',- '/agent-edit.html','/agent-embed.html','/a-edit.html','/a-embed.html',];+// Dev-only failure patterns to ignore (CDN URLs, third-party CORS, etc).+// These work in production but not when running `vite dev` against localhost.+const IGNORE_PATTERNS = [+ /three\.ws\/.*agent-3d/, // hardcoded prod CDN URL+ /ajax\.googleapis\.com/, // CDN script+ /esm\.sh/, // CDN module+ /marketplace\.olas\.network/, // third-party API, no CORS for localhost+ /blocked by CORS policy/,+ /three\.ws\/dist-lib/,+];++function shouldIgnore(text) {+ return IGNORE_PATTERNS.some((re) => re.test(text));+}+function startServer() {const proc = spawn('npx', ['vite', '--port', String(PORT), '--strictPort'], {stdio: ['ignore', 'pipe', 'pipe'],@@ -64,18 +82,25 @@ async function checkRoute(browser, route) {const page = await ctx.newPage();const errors = [];const failures = [];- page.on('pageerror', (err) => errors.push(`pageerror: ${err.message}`));+ page.on('pageerror', (err) => {+ const msg = `pageerror: ${err.message}`;+ if (!shouldIgnore(msg)) errors.push(msg);+ });page.on('console', (msg) => {- if (msg.type() === 'error') errors.push(`console.error: ${msg.text()}`);+ if (msg.type() !== 'error') return;+ const text = `console.error: ${msg.text()}`;+ if (!shouldIgnore(text)) errors.push(text);});page.on('requestfailed', (req) => {const url = req.url();if (url.startsWith('chrome-extension://')) return;+ if (shouldIgnore(url)) return;failures.push(`requestfailed: ${url} — ${req.failure()?.errorText}`);});page.on('response', (res) => {- if (res.status() >= 400 && !res.url().includes('favicon')) {- failures.push(`http ${res.status()}: ${res.url()}`);+ const url = res.url();+ if (res.status() >= 400 && !url.includes('favicon') && !shouldIgnore(url)) {+ failures.push(`http ${res.status()}: ${url}`);}});let loadError = null;