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.

style(scripts): drop the banned dashes from the UI review and route helpers

nirholas38720ddee343
diff --git a/scripts/lib/audit-routes.mjs b/scripts/lib/audit-routes.mjs
index a4b017dee..c633eb84d 100644
--- a/scripts/lib/audit-routes.mjs
+++ b/scripts/lib/audit-routes.mjs
@@ -1,5 +1,5 @@
/**
- * audit-routes.mjs — the one route list every browser sweep works from.
+ * audit-routes.mjs: the one route list every browser sweep works from.
*
* page-audit (console/network/layout findings) and page-snapshot (the visual
* record) both have to answer the same question: what pages does this site
@@ -8,11 +8,11 @@
* dashboard page. This module is that answer, once.
*
* Sources, in order of authority:
- * 1. data/pages.json — the manifest that also drives /sitemap, llms.txt and
+ * 1. data/pages.json: the manifest that also drives /sitemap, llms.txt and
* the changelog. Every public, user-discoverable page.
- * 2. AUTHED_ROUTES — signed-in pages the manifest intentionally omits
+ * 2. AUTHED_ROUTES : signed-in pages the manifest intentionally omits
* (dashboard sub-pages that are not marketing surfaces).
- * 3. seedDynamicRoutes() — parameterised routes filled with REAL ids read
+ * 3. seedDynamicRoutes(): parameterised routes filled with REAL ids read
* from the live API at run time, never placeholders.
*/
import { readFileSync } from 'node:fs';
@@ -105,7 +105,7 @@ export async function seedDynamicRoutes(ctx, baseUrl) {
}
}
} catch {
- /* live API unreachable — dynamic routes simply skipped */
+ /* live API unreachable: dynamic routes simply skipped */
}
return routes;
}
diff --git a/scripts/ui-review.mjs b/scripts/ui-review.mjs
index 29119d680..c1a290756 100644
--- a/scripts/ui-review.mjs
+++ b/scripts/ui-review.mjs
@@ -1,6 +1,6 @@
#!/usr/bin/env node
/**
- * ui-review.mjs — the queue that hands a screenshot of every page to an agent,
+ * ui-review.mjs: the queue that hands a screenshot of every page to an agent,
* one batch at a time, and remembers what it already looked at.
*
* ── Why ───────────────────────────────────────────────────────────────────────
@@ -187,7 +187,7 @@ function printBatch(n) {
}
const total = q.pages.length;
const done = q.pages.filter((p) => p.status !== 'pending').length;
- console.log(`■ UI review batch — ${batch.length} page(s), ${done}/${total} reviewed, target ${q.baseUrl}\n`);
+ console.log(`■ UI review batch: ${batch.length} page(s), ${done}/${total} reviewed, target ${q.baseUrl}\n`);
console.log('Read each screenshot below with the Read tool, judge it as a user would,');
console.log('confirm anything suspicious against the live DOM, then fix it and record');
console.log('the verdict with --done. Screenshots are full-page.\n');
@@ -236,7 +236,7 @@ function recordDone() {
function printStatus() {
const q = loadQueue();
const by = (s) => q.pages.filter((p) => p.status === s);
- console.log(`■ UI review — ${q.baseUrl} — started ${q.startedAt}`);
+ console.log(`■ UI review: ${q.baseUrl} (started ${q.startedAt})`);
console.log(` pending ${by('pending').length} · clean ${by('clean').length} · with issues ${by('issues').length}`);
for (const p of by('issues')) {
console.log(`\n ${p.route}`);
@@ -261,7 +261,7 @@ function writeReport() {
lines.push('No visual defects recorded in this run.');
}
for (const p of withIssues) {
- lines.push(`## ${p.route}${p.title ? ` — ${p.title}` : ''}`, '');
+ lines.push(`## ${p.route}${p.title ? `: ${p.title}` : ''}`, '');
for (const i of p.issues) lines.push(`- **found:** ${i}`);
for (const f of p.fixes) lines.push(`- **fixed:** ${f}`);
for (const [vp, file] of Object.entries(p.shots)) lines.push(`- ${vp} shot: \`${file}\``);