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.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(tests): repair two suites the merge exposed as broken against their own production code
nirholas15c7d0a84e27
diff --git a/tests/api/ops-mcp-clients.test.js b/tests/api/ops-mcp-clients.test.jsindex 656e46d34..47796fe7a 100644--- a/tests/api/ops-mcp-clients.test.js+++ b/tests/api/ops-mcp-clients.test.js@@ -22,7 +22,7 @@ vi.mock('../../api/_lib/db.js', () => ({sqlCalls.push(text);if (text.includes('from user_wallets')) return [];if (text.includes('from mcp_client_daily')) {- return [{ day: new Date().toISOString().slice(0, 10), surface: 'mcp-studio', client: 'probe', client_name: 'three-ws-connector-probe', client_version: '1.0.0', auth_kind: 'anonymous', sessions: 2, calls: 4, tools: { search_catalog: 4 } }];+ return [{ day: new Date().toISOString().slice(0, 10), surface: 'mcp-studio', client_name: 'three-ws-connector-probe', client_version: '1.0.0', auth_kind: 'anonymous', sessions: 2, calls: 4, tools: { search_catalog: 4 } }];}return [];}),@@ -72,7 +72,7 @@ describe('GET /api/ops/mcp-clients', () => {const r = await get('/api/ops/mcp-clients?days=7');expect(r.status).toBe(200);expect(r.body.window_days).toBe(7);- expect(r.body.clients[0]).toMatchObject({ client: 'probe', sessions: 2, calls: 4 });+ expect(r.body.clients[0]).toMatchObject({ client: 'three-ws-connector-probe', sessions: 2, calls: 4 });});it('refuses anything but GET', async () => {diff --git a/tests/api/v1-rest-router.test.js b/tests/api/v1-rest-router.test.jsindex b6972eee8..405230898 100644--- a/tests/api/v1-rest-router.test.js+++ b/tests/api/v1-rest-router.test.js@@ -28,6 +28,7 @@ vi.mock('../../api/_lib/rate-limit.js', () => ({const store = new Map();vi.mock('../../api/_lib/cache.js', () => ({cacheGet: async (k) => store.get(k) ?? null,+ cacheGetFresh: async (k) => store.get(k) ?? null,cacheSet: async (k, v) => void store.set(k, v),acquireLock: async (k) => (store.has(k) ? false : (store.set(k, 1), true)),releaseLock: async (k) => void store.delete(k),