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.

mobile: viewport tags, studio breakpoints, responsive fixes

nirholas3869e03dcac5
diff --git a/api/x402/permit2-paid-demo.js b/api/x402/permit2-paid-demo.js
index 186ceeef8..1b7c0c588 100644
--- a/api/x402/permit2-paid-demo.js
+++ b/api/x402/permit2-paid-demo.js
@@ -36,12 +36,14 @@ import {
import { env } from '../_lib/env.js';
import { installAccessControl } from '../_lib/x402/access-control.js';
import { withService } from '../_lib/x402/bazaar-helpers.js';
+import { priceFor } from '../_lib/x402-prices.js';
const ROUTE = '/api/x402/permit2-paid-demo';
const REQUIRED_SCOPE = 'x402:bypass';
const accessControl = installAccessControl({ requiredScope: REQUIRED_SCOPE });
const routeConfig = { path: ROUTE, method: 'GET', requiredScope: REQUIRED_SCOPE };
-const PRICE_ATOMICS = '1000'; // $0.001 USDC (6 decimals)
+// Env override: X402_PRICE_PERMIT2_PAID_DEMO=<atomics>. Default = $0.001 USDC.
+const PRICE_ATOMICS = priceFor('permit2-paid-demo', '1000');
const ROUTE_DESCRIPTION =
'Permit2 + EIP-2612 Gas Sponsoring Demo — forces the gasless Permit2 path so ' +
diff --git a/tests/branding.test.js b/tests/branding.test.js
index f15223672..1782a2e25 100644
--- a/tests/branding.test.js
+++ b/tests/branding.test.js
@@ -355,6 +355,12 @@ function scanForPattern(forbidden, files, extraGate) {
describe('three.ws branding lock', () => {
const files = collectScopedFiles();
+ // The scanner walks every user-facing file end-to-end for each brand. On a
+ // large monorepo (hundreds of HTML/JS/MD files in scope) that comfortably
+ // exceeds the default 20s vitest timeout — bump per-test to 5 minutes so
+ // CI doesn't false-fail on perfectly clean trees.
+ const SCAN_TIMEOUT_MS = 5 * 60 * 1000;
+
for (const forbidden of FORBIDDEN) {
test(`no "${forbidden.label}" in user-facing files`, () => {
const hits = scanForPattern(forbidden, files);
@@ -370,7 +376,7 @@ describe('three.ws branding lock', () => {
);
}
expect(hits).toEqual([]);
- });
+ }, SCAN_TIMEOUT_MS);
}
test('no "RPM" referring to Ready Player Me (heuristic: near avatar/selfie)', () => {
@@ -412,5 +418,5 @@ describe('three.ws branding lock', () => {
);
}
expect(hits).toEqual([]);
- });
+ }, SCAN_TIMEOUT_MS);
});