Skip to content

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.

build:gcp: build the avatar-studio SPA when it is missing

nirholas02d513f5525b
diff --git a/package.json b/package.json
index 186509f58..2fba99a92 100644
--- a/package.json
+++ b/package.json
@@ -220,7 +220,8 @@
"deploy": "npm run build:all && npm run check:dist && vercel --local-config vercel.json --prod",
"build:info": "node scripts/write-build-info.mjs",
"build:info:snapshot": "node scripts/write-build-info.mjs --snapshot",
- "build:gcp": "npm run build:info:snapshot && npm run build && npm run build:lib:full && npm run publish:lib && npm run build:info && npm run check:dist",
+ "build:gcp": "npm run ensure:avatar-studio && npm run build:info:snapshot && npm run build && npm run build:lib:full && npm run publish:lib && npm run build:info && npm run check:dist",
+ "ensure:avatar-studio": "test -f character-studio/build/index.html || npm run build:avatar-studio",
"deploy:gcp": "npm run check:dist && npm run db:check && gcloud builds submit --config server/cloudbuild.yaml --region us-central1 --project aerial-vehicle-466722-p5 && npm run deploy:gcp:purge-cdn",
"deploy:gcp:full": "npm run build:gcp && npm run deploy:gcp",
"deploy:gcp:purge-cdn": "gcloud compute url-maps invalidate-cdn-cache three-ws-lb --path '/*' --project aerial-vehicle-466722-p5 --async",