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): resync launcher-engine and vertex-claude tests with real code
nirholasf6ac44d2adeb
diff --git a/tests/launcher-engine.test.js b/tests/launcher-engine.test.jsindex c9e5b088b..29fb337a1 100644--- a/tests/launcher-engine.test.js+++ b/tests/launcher-engine.test.js@@ -125,8 +125,8 @@ describe('runLauncherTick — dry run', () => {H.lastRun = [{ created_at: new Date(Date.now() - 5 * 60 * 1000).toISOString() }];const fetchMock = vi.fn(async (url) => {const u = String(url);- if (u.includes('action=build-metadata')) return { status: 200, json: async () => ({ metadata_url: 'ipfs://meta' }) };- if (u.includes('action=launch-agent')) return { status: 200, json: async () => ({ mint: 'MINTlive', signature: 'sig' }) };+ if (u.includes('/api/pump/build-metadata')) return { status: 200, json: async () => ({ metadata_url: 'ipfs://meta' }) };+ if (u.includes('/api/pump/launch-agent')) return { status: 200, json: async () => ({ mint: 'MINTlive', signature: 'sig' }) };return { status: 404, json: async () => ({}) };});vi.stubGlobal('fetch', fetchMock);@@ -144,10 +144,10 @@ describe('runLauncherTick — live', () => {// build-metadata then launch-agent over the internal authenticated fetch.const fetchMock = vi.fn(async (url) => {const u = String(url);- if (u.includes('action=build-metadata')) {+ if (u.includes('/api/pump/build-metadata')) {return { status: 200, json: async () => ({ metadata_url: 'ipfs://meta' }) };}- if (u.includes('action=launch-agent')) {+ if (u.includes('/api/pump/launch-agent')) {return { status: 200, json: async () => ({ mint: 'MINTxyz', signature: 'launch-sig' }) };}return { status: 404, json: async () => ({}) };@@ -172,11 +172,11 @@ describe('runLauncherTick — live', () => {const fetchMock = vi.fn(async (url, opts) => {const u = String(url);const body = opts?.body ? JSON.parse(opts.body) : {};- if (u.includes('action=build-metadata')) {+ if (u.includes('/api/pump/build-metadata')) {bodies.meta = body;return { status: 200, json: async () => ({ metadata_url: 'ipfs://meta' }) };}- if (u.includes('action=launch-agent')) {+ if (u.includes('/api/pump/launch-agent')) {bodies.launch = body;return { status: 200, json: async () => ({ mint: 'MINTxyz', signature: 'launch-sig' }) };}@@ -219,8 +219,8 @@ describe('runLauncherTick — live', () => {H.configs = [makeConfig({ dry_run: false, mode: 'random' })];const fetchMock = vi.fn(async (url) => {const u = String(url);- if (u.includes('action=build-metadata')) return { status: 200, json: async () => ({ metadata_url: 'ipfs://meta' }) };- if (u.includes('action=launch-agent')) return { status: 200, json: async () => ({ mint: 'MINTrand', signature: 'sig' }) };+ if (u.includes('/api/pump/build-metadata')) return { status: 200, json: async () => ({ metadata_url: 'ipfs://meta' }) };+ if (u.includes('/api/pump/launch-agent')) return { status: 200, json: async () => ({ mint: 'MINTrand', signature: 'sig' }) };return { status: 404, json: async () => ({}) };});vi.stubGlobal('fetch', fetchMock);@@ -244,10 +244,10 @@ describe('runLauncherTick — live user scope (self-funded)', () => {function stubLaunchFetch(overrides = {}) {const fetchMock = vi.fn(async (url) => {const u = String(url);- if (u.includes('action=build-metadata')) {+ if (u.includes('/api/pump/build-metadata')) {return { status: 200, json: async () => ({ metadata_url: 'ipfs://meta' }) };}- if (u.includes('action=launch-agent')) {+ if (u.includes('/api/pump/launch-agent')) {if (overrides.launch) return overrides.launch;return { status: 200, json: async () => ({ mint: 'MINTuser', signature: 'launch-sig' }) };}diff --git a/tests/vertex-claude.test.js b/tests/vertex-claude.test.jsindex f6f07a845..a64ada400 100644--- a/tests/vertex-claude.test.js+++ b/tests/vertex-claude.test.js@@ -168,13 +168,13 @@ describe('providerChain ordering under the four flag combinations', () => {// vertex-gemini reliability rung after the free lanes, plus groq#instant as// the free-tier capability step-down — both precede the paid backstops.it('off/off: no vertex-CLAUDE lane; free lanes → vertex-gemini → step-down → paid tail', () => {- expect(names()).toEqual(['groq', 'vertex-gemini', 'groq#instant', 'anthropic']);+ expect(names()).toEqual(['groq', 'ovh', 'vertex-gemini', 'pollinations', 'groq#instant', 'anthropic']);});it('enabled/off: vertex claude is a paid backstop AHEAD of first-party anthropic, behind free lanes', () => {process.env.VERTEX_CLAUDE_ENABLED = '1';const n = names();- expect(n).toEqual(['groq', 'vertex-gemini', 'groq#instant', 'vertex-anthropic', 'anthropic']);+ expect(n).toEqual(['groq', 'ovh', 'vertex-gemini', 'pollinations', 'groq#instant', 'vertex-anthropic', 'anthropic']);expect(n.indexOf('groq')).toBeLessThan(n.indexOf('vertex-anthropic'));expect(n.indexOf('vertex-anthropic')).toBeLessThan(n.indexOf('anthropic'));});@@ -191,7 +191,7 @@ describe('providerChain ordering under the four flag combinations', () => {it('primary flag alone (enabled unset) adds no vertex-claude lane', () => {process.env.VERTEX_CLAUDE_PRIMARY = '1';- expect(names()).toEqual(['groq', 'vertex-gemini', 'groq#instant', 'anthropic']);+ expect(names()).toEqual(['groq', 'ovh', 'vertex-gemini', 'pollinations', 'groq#instant', 'anthropic']);});it('a caller BYOK key still leads even when vertex is primary', () => {