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.

test(rate-limit): stop reading out.limits.enabled as a missing limiter export

nirholas441f4b4f12ad
diff --git a/tests/api-rate-limit-wiring.test.js b/tests/api-rate-limit-wiring.test.js
index eccea8e65..b994d20bf 100644
--- a/tests/api-rate-limit-wiring.test.js
+++ b/tests/api-rate-limit-wiring.test.js
@@ -54,7 +54,8 @@ describe('rate-limit wiring across api/**', () => {
const unknown = [];
for (const [name, src] of FILES) {
if (!/import\s*\{[^}]*\blimits\b(?!\s+as)[^}]*\}\s*from\s*'[^']*rate-limit\.js'/.test(src)) continue;
- for (const m of src.matchAll(/\blimits\.([A-Za-z0-9_]+)/g)) {
+ // A property read like `out.limits.enabled` is some other object's field, not the module.
+ for (const m of src.matchAll(/(?<![.\w$])limits\.([A-Za-z0-9_]+)/g)) {
if (!known.has(m[1])) unknown.push(`${name}: limits.${m[1]}`);
}
}