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(x402): stop the demo-feed seeder from firing a doomed 503 every tick
nirholas7246135d441e
diff --git a/api/_lib/x402/pipelines/live-feed-seeder.js b/api/_lib/x402/pipelines/live-feed-seeder.jsindex 0e52b5a86..0a96501ea 100644--- a/api/_lib/x402/pipelines/live-feed-seeder.js+++ b/api/_lib/x402/pipelines/live-feed-seeder.js@@ -194,6 +194,24 @@ export async function run(ctx = {}) {const origin = ctx.origin || env.APP_ORIGIN || 'https://three.ws';const endpointUrl = `${origin}/api/x402-pay`;+ // The demo payment pays from the platform wallet (X402_AGENT_SOLANA_SECRET_BASE58,+ // via loadAgentKeypair in api/x402-pay.js). When that secret is unset the POST+ // below is guaranteed to return 503 config_missing (still handled gracefully+ // below), but firing it every tick logs a 5xx on /api/x402-pay and flags the+ // endpoint's health for nothing. Short-circuit before the request. The endpoint+ // only accepts this secret as the platform wallet in every real deployment (its+ // dev-keypair file exists on no server), so the secret's presence is the exact+ // signal; seeding resumes on its own the moment the wallet is set.+ if (!process.env.X402_AGENT_SOLANA_SECRET_BASE58) {+ return {+ success: false,+ skipped: true,+ amountAtomic: 0,+ errorMsg: 'wallet_unconfigured',+ note: 'platform_wallet_unconfigured (skipped before request)',+ };+ }+// Schema first — without the durable mirror there is no sink for the value,// so don't spend. A schema failure exits logged, never crashes the tick.try {