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(tests): point four fixtures at the CDN route that still exists

nirholasbbb05b65eeb3
diff --git a/specs/GLANCE_CARD.md b/specs/GLANCE_CARD.md
index 543387333..e3c868357 100644
--- a/specs/GLANCE_CARD.md
+++ b/specs/GLANCE_CARD.md
@@ -23,7 +23,7 @@ v1 pins one model, computed once on the server, that every surface renders. Addi
"description": "Watches the launch feed and reports what matters.",
"url": "https://three.ws/agents/0f3a1c22-9b7e-4d51-8a10-2c6f5d90ab34",
"createUrl": "https://three.ws/create",
- "image": "https://cdn.three.ws/u/…/thumb.png",
+ "image": "https://three.ws/cdn/u/…/thumb.png",
"monogram": "AS",
"accent": { "from": "hsl(235 82% 58%)", "to": "hsl(283 84% 46%)", "hue": 235 },
"status": "active",
diff --git a/tests/api/print-gate-wiring.test.js b/tests/api/print-gate-wiring.test.js
index 3ebafa5c0..175f3e26d 100644
--- a/tests/api/print-gate-wiring.test.js
+++ b/tests/api/print-gate-wiring.test.js
@@ -36,7 +36,7 @@ vi.mock('../../api/_lib/print/mesh-io.js', () => ({
}));
vi.mock('../../api/_lib/print/analyze.js', () => ({ analyzeMesh: async () => REPORT }));
vi.mock('../../api/_lib/forge-store.js', () => ({
- getPublicCreation: async () => ({ id: 'c-1', glb_url: 'https://cdn.three.ws/m.glb', prompt: lineageText }),
+ getPublicCreation: async () => ({ id: 'c-1', glb_url: 'https://three.ws/cdn/m.glb', prompt: lineageText }),
}));
vi.mock('../../api/_lib/auth.js', () => ({ getSessionUser: async () => null }));
vi.mock('../../api/_lib/three-tier.js', () => ({ holderDiscountBps: async () => 0 }));
@@ -119,7 +119,7 @@ describe('run point 2: no order reaches a printer unscreened', () => {
id: 'o-1',
status: 'screening',
quantity: 1,
- prepared_asset_urls: { stl: 'https://cdn.three.ws/o-1.stl' },
+ prepared_asset_urls: { stl: 'https://three.ws/cdn/o-1.stl' },
analysis: screening ? { screening } : {},
});
diff --git a/tests/api/print-mcp-tools.test.js b/tests/api/print-mcp-tools.test.js
index a681c4c31..9e0fe44ee 100644
--- a/tests/api/print-mcp-tools.test.js
+++ b/tests/api/print-mcp-tools.test.js
@@ -10,6 +10,10 @@
import { describe, it, expect, vi, beforeEach } from 'vitest';
+// signQuote signs with the platform secret; a suite must not depend on the
+// developer's .env carrying one.
+process.env.JWT_SECRET ||= 'vitest-ephemeral-jwt-secret-00000000000000';
+
const REPORT = {
version: 1,
manifold: true,
@@ -39,7 +43,7 @@ vi.mock('../../api/_lib/print/mesh-io.js', () => ({
}));
vi.mock('../../api/_lib/print/analyze.js', () => ({ analyzeMesh: async () => REPORT }));
vi.mock('../../api/_lib/forge-store.js', () => ({
- getPublicCreation: async () => ({ id: 'c-9', glb_url: 'https://cdn.three.ws/m.glb', prompt: creationPrompt }),
+ getPublicCreation: async () => ({ id: 'c-9', glb_url: 'https://three.ws/cdn/m.glb', prompt: creationPrompt }),
}));
// Only the gate's lineage read touches the database; the rules and layers under
// test are the shipped ones.
diff --git a/tests/api/render-animate.test.js b/tests/api/render-animate.test.js
index 7673a755b..2dc55574a 100644
--- a/tests/api/render-animate.test.js
+++ b/tests/api/render-animate.test.js
@@ -124,10 +124,10 @@ describe('rendering', () => {
});
it('renders a public avatar by id', async () => {
- getAvatar.mockResolvedValue({ id: 'abc', name: 'Vern', model_url: 'https://cdn.three.ws/a.glb' });
+ getAvatar.mockResolvedValue({ id: 'abc', name: 'Vern', model_url: 'https://three.ws/cdn/a.glb' });
const res = await call('/api/render/animate?avatar=abc&clip=idle');
expect(res.statusCode).toBe(200);
- expect(renderGlbToApngCpu.mock.calls[0][0].glbUrl).toBe('https://cdn.three.ws/a.glb');
+ expect(renderGlbToApngCpu.mock.calls[0][0].glbUrl).toBe('https://three.ws/cdn/a.glb');
});
it('will not render a private avatar', async () => {