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: ensure agent-payments-sdk dist is rebuilt on Vercel when lockfile is unchanged
Claude (dry-run)795a417da60c
diff --git a/pages/home.html b/pages/home.htmlindex 20c75ec0e..f5fd65fab 100644--- a/pages/home.html+++ b/pages/home.html@@ -4814,7 +4814,7 @@})();</script><script src="/src/api-playground.js"></script>-<script src="/src/dragon-section.js"></script>+<script src="/dragon-section.js"></script><script type="module">import * as THREE from 'three';import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';diff --git a/src/dragon-section.js b/public/dragon-section.jssimilarity index 100%rename from src/dragon-section.jsrename to public/dragon-section.jsdiff --git a/scripts/build-vercel.mjs b/scripts/build-vercel.mjsindex 1c8d5aa6b..583d194a5 100644--- a/scripts/build-vercel.mjs+++ b/scripts/build-vercel.mjs@@ -73,6 +73,19 @@ async function buildChat() {writeStamp('chat', inputs);}+// Guard: agent-payments-sdk/dist/ is gitignored. Vercel caches node_modules/+// across deploys and skips npm install (and therefore postinstall) when+// package-lock.json is unchanged. If the dist is missing the Vite app build+// fails trying to resolve the package entry. Rebuild here if needed.+async function ensureSDKDist() {+ const distIndex = resolve(ROOT, 'agent-payments-sdk/dist/index.js');+ if (existsSync(distIndex)) return;+ console.log('[sdk-dist] agent-payments-sdk/dist/index.js missing — rebuilding');+ await run('sdk-dist', 'npm run build --prefix agent-payments-sdk', {+ env: { NODE_OPTIONS: '--no-deprecation' },+ });+}+async function prebuild() {await Promise.all([run('build:news', 'node scripts/build-news.mjs'),@@ -113,10 +126,11 @@ const phase = (n, label) => console.log(`\n=== build:vercel phase ${n}: ${label}try {// Phase 1a: light tasks only — no Vite processes yet- phase(1, 'prebuild + bundle-api (parallel, light)');+ phase(1, 'prebuild + bundle-api + sdk-dist (parallel, light)');await Promise.all([prebuild(),bundleApi(),+ ensureSDKDist(),]);// Phase 2: buildLib alone. avatar-sdk depends on dist-lib/agent-3d.js, and