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
refactor(api): rename /api/subscriptions to /api/agent-subscriptions
nirholasb580fb10a24f
diff --git a/api/subscriptions.js b/api/agent-subscriptions.jssimilarity index 90%rename from api/subscriptions.jsrename to api/agent-subscriptions.jsindex c9753165b..dc96fa5f8 100644--- a/api/subscriptions.js+++ b/api/agent-subscriptions.js@@ -1,9 +1,13 @@/**- * /api/subscriptions — manage recurring subscription records.+ * /api/agent-subscriptions: manage recurring agent-delegation subscription records.*- * POST — create a subscription (viewer has already granted a delegation)- * GET — list subscriptions for the authenticated user- * DELETE — soft-cancel a subscription (?id=<uuid>); does NOT revoke the delegation+ * Distinct from /api/subscriptions (creator plan subscriptions over+ * creator_subscriptions); this endpoint tracks delegation-backed recurring+ * charges in agent_subscriptions, created by the subscription skill.+ *+ * POST: create a subscription (viewer has already granted a delegation)+ * GET: list subscriptions for the authenticated user+ * DELETE: soft-cancel a subscription (?id=<uuid>); does NOT revoke the delegation*/import { sql } from './_lib/db.js';diff --git a/public/skills/subscription/skill.js b/public/skills/subscription/skill.jsindex 816e71351..60d936474 100644--- a/public/skills/subscription/skill.js+++ b/public/skills/subscription/skill.js@@ -56,7 +56,7 @@ export async function setup({ agent, host }) {* Viewer's initial subscription action — runs in the browser only.** 1. Opens the grant modal pre-filled with the weekly 5 USDC scope.- * 2. On successful grant, POSTs to /api/subscriptions.+ * 2. On successful grant, POSTs to /api/agent-subscriptions.* 3. Confirms in chat with the expiry date.** @param {{ agent: object, host: object, args: object }} opts@@ -97,7 +97,7 @@ export async function execute({ agent, host, args }) {.then((r) => (r.ok ? r.json() : null)).then((j) => j?.data?.token || '').catch(() => '');- const res = await fetch('/api/subscriptions', {+ const res = await fetch('/api/agent-subscriptions', {method: 'POST',headers: { 'Content-Type': 'application/json', 'x-csrf-token': csrf },credentials: 'include',diff --git a/vercel.json b/vercel.jsonindex 91f46801b..94caeb196 100644--- a/vercel.json+++ b/vercel.json@@ -2644,6 +2644,10 @@"src": "/api/agents/wallet-embed","dest": "/api/agents/wallet-embed"},+ {+ "src": "/api/agents/onchain-history",+ "dest": "/api/agents/onchain-history"+ },{"src": "/api/agents/by-address/([^/]+)","dest": "/api/agents/by-address/[addr]?addr=$1"@@ -4515,6 +4519,10 @@"src": "/api/erc8004/metadata","dest": "/api/erc8004/[action]?action=metadata"},+ {+ "src": "/api/agent-subscriptions",+ "dest": "/api/agent-subscriptions"+ },{"src": "/api/subscriptions/plans(/.*)?","dest": "/api/subscriptions/plans.js"@@ -5084,6 +5092,13 @@"src": "/content-policy/?","dest": "/legal/content-policy.html"},+ {+ "src": "/extension/?",+ "status": 308,+ "headers": {+ "Location": "/docs/walk/chrome-extension"+ }+ },{"src": "/extension/auth-callback/?","dest": "/extension-auth-callback.html"