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(audit-links): stop a concatenated URL head being recorded as a bare external target

nirholas648ca7f6664f
diff --git a/scripts/audit-links.mjs b/scripts/audit-links.mjs
index e8ffbdadd..be9ebf906 100644
--- a/scripts/audit-links.mjs
+++ b/scripts/audit-links.mjs
@@ -322,6 +322,13 @@ function record(target, file, line, isPrefix = false) {
return;
}
if (c.type === 'external') {
+ // `href = 'http://' + cap[0]` is an origin being assembled, not a link to
+ // the bare scheme. An internal prefix below stays worth resolving (its path
+ // head still catches a renamed route); a bare origin resolves to nothing.
+ if (isPrefix) {
+ findings.dynamic++;
+ return;
+ }
const list = findings.external.get(c.value) || [];
list.push({ file: rel, line });
findings.external.set(c.value, list);