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(guards): drop the banned dashes from the audit scanners and the graduation decoder

nirholas19bfa78aaac6
diff --git a/scripts/audit-console.mjs b/scripts/audit-console.mjs
index d6da155b9..7cb6cb6f4 100644
--- a/scripts/audit-console.mjs
+++ b/scripts/audit-console.mjs
@@ -175,8 +175,8 @@ const OPTIMIZER_RACE = [
// Transport-level failures that describe the machine, not the page: the sweep
// drives many WebGL-heavy routes at once, and on a loaded or shared box a large
// asset fetch (a GLB, a texture) or a whole navigation can be starved out. They
-// arrive with no attribution — a bare `net::ERR_FAILED` or an unattributed
-// `TypeError: Failed to fetch` from inside a third-party viewer — so no route or
+// arrive with no attribution, a bare `net::ERR_FAILED` or an unattributed
+// `TypeError: Failed to fetch` from inside a third-party viewer, so no route or
// module owns them, and they land on a different route each run. A page defect
// reproduces on a second visit; a starved socket does not.
const TRANSIENT_NETWORK = [
diff --git a/scripts/audit-links.mjs b/scripts/audit-links.mjs
index 99855fb9b..7ef54137c 100644
--- a/scripts/audit-links.mjs
+++ b/scripts/audit-links.mjs
@@ -192,14 +192,14 @@ function classifyTarget(value) {
// attribute — only a real navigable attribute (preceded by whitespace or tag-open).
const htmlAttrRe = /(?<![\w-])(?:href|formaction|action|data-href|data-route|data-link|data-target-href)\s*=\s*("([^"]*)"|'([^']*)')/gi;
// The `href:` alternative targets an object-literal property (`{ href: '/x' }`).
-// The lookbehind keeps it off a *property read* followed by a ternary colon —
+// The lookbehind keeps it off a *property read* followed by a ternary colon -
// `new URL(x, origin).href : ''` is a value expression, not a navigation.
const jsNavRe = /(\.href\s*=|location\.(?:assign|replace)\s*\(|window\.open\s*\(|(?<![.\w$])href\s*:|\bnavigateTo\s*\(|\brouteTo\s*\()\s*("([^"]*)"|'([^']*)'|`([^`$]*)`)/gi;
const fetchRe = /\bfetch\s*\(\s*("([^"]*)"|'([^']*)'|`([^`$]*)`)/gi;
// A string literal immediately followed by `+` is only the *head* of a computed
// URL (`dot.href = '#' + section.id`, `fetch('/login?next=' + to)`). Its path
-// prefix is still worth resolving — that catches a renamed route — but it can
+// prefix is still worth resolving, that catches a renamed route, but it can
// never be a stub: the part that makes the target real is the concatenated tail.
function concatenatedAfter(content, endIndex) {
let i = endIndex;
@@ -265,7 +265,7 @@ function scanFile(file) {
jsNavRe.lastIndex = 0;
while ((m = jsNavRe.exec(content))) {
const target = m[3] ?? m[4] ?? m[5] ?? '';
- // `window.open('')` opens a blank tab the caller then writes into — a real
+ // `window.open('')` opens a blank tab the caller then writes into, a real
// pattern, not a link to nowhere.
if (target === '' && /^window\.open/i.test(m[1])) continue;
record(target, file, lineOf(content, m.index), concatenatedAfter(content, m.index + m[0].length));
diff --git a/services/pump-graduations/graduation-event.js b/services/pump-graduations/graduation-event.js
index fd4f76f73..ac650c39e 100644
--- a/services/pump-graduations/graduation-event.js
+++ b/services/pump-graduations/graduation-event.js
@@ -4,7 +4,7 @@
* Pump emits an Anchor CPI event named `CompleteEvent` when a token finishes
* its bonding curve. It arrives on the program's log stream as a single
* `Program data: <base64>` line whose first 8 bytes are the Anchor event
- * discriminator, `sha256("event:CompleteEvent")[..8]` — the same fixed bytes
+ * discriminator, `sha256("event:CompleteEvent")[..8]`: the same fixed bytes
* `@pumpkit/core` matches on.
*
* Both index.js (legacy `conn.onLogs`) and carbon-source.js parse with these
@@ -18,7 +18,7 @@ export const PUMP_PROGRAM_ID = new PublicKey('6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14
export const COMPLETE_EVENT_DISCRIMINATOR = Buffer.from([95, 114, 97, 156, 212, 46, 152, 8]);
-// discriminator(8) user(32) mint(32) bondingCurve(32) timestamp(i64)
+// Layout: discriminator 8 bytes, then user 32, mint 32, bondingCurve 32, timestamp i64.
const COMPLETE_EVENT_LEN = 8 + 32 + 32 + 32 + 8;
/**