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(evm-leg): define the EvmLegError the spend guards throw so the module loads
nirholasf2081d946b8e
diff --git a/api/_lib/evm-leg/chains.js b/api/_lib/evm-leg/chains.jsindex 54fd2d88a..cb4a82888 100644--- a/api/_lib/evm-leg/chains.js+++ b/api/_lib/evm-leg/chains.js@@ -79,6 +79,17 @@ export function evmLegChain(ref) {return Object.values(EVM_LEG_CHAINS).find((c) => String(c.chainId) === s || c.caip2 === s) || null;}+/** A refused EVM-leg operation, carrying the HTTP status and a stable code. */+export class EvmLegError extends Error {+ constructor(code, message, status = 400, detail = null) {+ super(message);+ this.name = 'EvmLegError';+ this.code = code;+ this.status = status;+ this.detail = detail;+ }+}+/** A chain entry or a ToolInputError-shaped throw naming the supported slugs. */export function requireEvmLegChain(ref) {const c = evmLegChain(ref);