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: drop throwaway sweep harnesses from the repo

nirholas602d77621e5f
diff --git a/scripts/.sweep/a11y.mjs b/scripts/.sweep/a11y.mjs
deleted file mode 100644
index f2366cf98..000000000
--- a/scripts/.sweep/a11y.mjs
+++ /dev/null
@@ -1,24 +0,0 @@
-import { chromium } from 'playwright';
-import { readFileSync } from 'node:fs';
-const axe = readFileSync('node_modules/axe-core/axe.min.js', 'utf8');
-const pages = JSON.parse(readFileSync('data/pages.json', 'utf8'))
- .sections.flatMap((s) => s.pages)
- .sort((a, b) => (b.priority ?? 0.5) - (a.priority ?? 0.5))
- .slice(0, 16);
-const b = await chromium.launch();
-const ctx = await b.newContext({ viewport: { width: 1280, height: 900 } });
-for (const { path } of pages) {
- const p = await ctx.newPage();
- try {
- await p.goto('http://localhost:3021' + path, { waitUntil: 'domcontentloaded', timeout: 30000 });
- await p.waitForTimeout(3500);
- await p.evaluate(axe);
- const res = await p.evaluate(async () => window.axe.run(document, { runOnly: ['wcag2a', 'wcag2aa', 'wcag21a', 'wcag21aa'] }));
- const v = res.violations;
- console.log(`${v.length ? 'FAIL' : ' ok '} ${path} ${v.map((x) => `${x.id}(${x.impact},${x.nodes.length})`).join(' ')}`);
- } catch (e) {
- console.log(`ERR ${path} ${e.message.slice(0, 60)}`);
- }
- await p.close();
-}
-await b.close();
diff --git a/scripts/.sweep/mobile.mjs b/scripts/.sweep/mobile.mjs
deleted file mode 100644
index 0b470711a..000000000
--- a/scripts/.sweep/mobile.mjs
+++ /dev/null
@@ -1,33 +0,0 @@
-// Sweep the highest-priority pages at phone width for horizontal overflow,
-// the defect class that just shipped on a brand-new page.
-import { chromium } from 'playwright';
-import { readFileSync } from 'node:fs';
-const pages = JSON.parse(readFileSync('data/pages.json', 'utf8'))
- .sections.flatMap((s) => s.pages)
- .sort((a, b) => (b.priority ?? 0.5) - (a.priority ?? 0.5))
- .slice(0, 24);
-const b = await chromium.launch();
-const ctx = await b.newContext({ viewport: { width: 390, height: 844 }, isMobile: true, hasTouch: true });
-const rows = [];
-for (const { path } of pages) {
- const p = await ctx.newPage();
- try {
- await p.goto('http://localhost:3021' + path, { waitUntil: 'domcontentloaded', timeout: 30000 });
- await p.waitForTimeout(3000);
- const over = await p.evaluate(() => document.documentElement.scrollWidth - document.documentElement.clientWidth);
- const worst = over > 1 ? await p.evaluate(() => {
- const w = document.documentElement.clientWidth;
- const el = [...document.querySelectorAll('body *')].map((e) => ({ e, r: e.getBoundingClientRect() }))
- .filter(({ r }) => r.right > w + 1 && r.width > 0)
- .sort((a, c) => c.r.right - a.r.right)[0];
- return el ? `${el.e.tagName.toLowerCase()}.${(el.e.className || '').toString().split(' ')[0]}` : '';
- }) : '';
- rows.push({ path, over, worst });
- } catch (e) {
- rows.push({ path, over: -1, worst: e.message.slice(0, 40) });
- }
- await p.close();
-}
-rows.filter((r) => r.over !== 0).forEach((r) => console.log(`${String(r.over).padStart(5)}px ${r.path} ${r.worst}`));
-console.log(`\nclean: ${rows.filter((r) => r.over === 0).length}/${rows.length}`);
-await b.close();