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
test(monetization): mock the authedReadIp bucket the revenue handler now uses
fudjia52c1f54a1949
diff --git a/tests/monetization-service.test.js b/tests/monetization-service.test.jsindex b3c4726ef..0d0cd5601 100644--- a/tests/monetization-service.test.js+++ b/tests/monetization-service.test.js@@ -54,6 +54,10 @@ vi.mock('../api/_lib/db.js', () => {vi.mock('../api/_lib/rate-limit.js', () => ({limits: {authIp: vi.fn(async () => ({ success: rlState.success })),+ // Session-scoped reads (api/monetization/revenue.js) moved off the strict+ // credential `authIp` bucket onto `authedReadIp` — without it here the+ // handler throws "limits.authedReadIp is not a function" and 500s.+ authedReadIp: vi.fn(async () => ({ success: rlState.success })),publicIp: vi.fn(async () => ({ success: rlState.success })),pricingPerIp: vi.fn(async () => ({ success: rlState.success })),withdrawalPerUser: vi.fn(async () => ({ success: rlState.success })),