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.

feat: update animation UUIDs and enhance build scripts for improved functionality

nirholas71f2b3bf3e8b
diff --git a/.github/workflows/validate-agent-cards.yml b/.github/workflows/validate-agent-cards.yml
index aeefc9199..c95b43c83 100644
--- a/.github/workflows/validate-agent-cards.yml
+++ b/.github/workflows/validate-agent-cards.yml
@@ -1,27 +1,27 @@
name: Validate agent cards
on:
- pull_request:
- paths:
- - 'public/.well-known/agent-registration.json'
- - 'public/.well-known/3d-agent-card.schema.json'
- - 'specs/3D_AGENT_CARD.md'
- - '**/*.agent-card.json'
- - 'scripts/validate-agent-cards.mjs'
- - '.github/workflows/validate-agent-cards.yml'
- - 'package.json'
- - 'package-lock.json'
- push:
- branches: [main]
+ pull_request:
+ paths:
+ - 'public/.well-known/agent-registration.json'
+ - 'public/.well-known/3d-agent-card.schema.json'
+ - 'specs/3D_AGENT_CARD.md'
+ - '**/*.agent-card.json'
+ - 'scripts/validate-agent-cards.mjs'
+ - '.github/workflows/validate-agent-cards.yml'
+ - 'package.json'
+ - 'package-lock.json'
+ push:
+ branches: [main]
jobs:
- validate:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - uses: actions/setup-node@v4
- with:
- node-version: '20'
- cache: 'npm'
- - run: npm ci --no-audit --no-fund
- - run: npm run validate:cards
+ validate:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - uses: actions/setup-node@v4
+ with:
+ node-version: '20'
+ cache: 'npm'
+ - run: npm ci --no-audit --no-fund
+ - run: npm run validate:cards
diff --git a/package.json b/package.json
index 1e05e2910..e66a11364 100644
--- a/package.json
+++ b/package.json
@@ -35,7 +35,8 @@
"scripts": {
"dev": "vite --port 3000",
"dev:lib": "TARGET=lib vite",
- "build": "vite build",
+ "build": "npm run build:animations && vite build",
+ "build:animations": "node scripts/build-animations.mjs",
"build:lib": "TARGET=lib vite build",
"build:artifact": "vite build --config vite.config.artifact.js",
"publish:lib": "node scripts/publish-lib.mjs",
diff --git a/public/animations/clips/angry.json b/public/animations/clips/angry.json
index 7e4908dd7..6d8da37e0 100644
--- a/public/animations/clips/angry.json
+++ b/public/animations/clips/angry.json
@@ -42295,6 +42295,6 @@
"type": "quaternion"
}
],
- "uuid": "73ba7f21-5ff8-4470-bcc2-1c0f159a1674",
+ "uuid": "005cec0d-c62e-4157-9c5b-c4d42acef496",
"blendMode": 2500
}
diff --git a/public/animations/clips/capoeira.json b/public/animations/clips/capoeira.json
index 1901e4779..b654a26a6 100644
--- a/public/animations/clips/capoeira.json
+++ b/public/animations/clips/capoeira.json
@@ -8056,6 +8056,6 @@
"type": "quaternion"
}
],
- "uuid": "ac5ae042-63bc-4067-ba79-61f80ed49a98",
+ "uuid": "68e52b9c-36de-4af5-8758-c94d84f3587a",
"blendMode": 2500
}
diff --git a/public/animations/clips/celebrate.json b/public/animations/clips/celebrate.json
index 3db7f6a82..811de5aa2 100644
--- a/public/animations/clips/celebrate.json
+++ b/public/animations/clips/celebrate.json
@@ -4516,6 +4516,6 @@
"type": "quaternion"
}
],
- "uuid": "0ff688f8-439d-4f97-a493-71fde6b8e419",
+ "uuid": "0d22c5e9-4cbd-4f08-bf57-911e51515bbf",
"blendMode": 2500
}
diff --git a/public/animations/clips/dance.json b/public/animations/clips/dance.json
index c051c2cb5..0d4be1000 100644
--- a/public/animations/clips/dance.json
+++ b/public/animations/clips/dance.json
@@ -4504,6 +4504,6 @@
"type": "quaternion"
}
],
- "uuid": "c55098e4-7321-4608-bee8-8cb3b509e461",
+ "uuid": "68a9d374-6efa-4c42-8b4f-5990d7294439",
"blendMode": 2500
}
diff --git a/public/animations/clips/defeated.json b/public/animations/clips/defeated.json
index 129031fb0..73995db31 100644
--- a/public/animations/clips/defeated.json
+++ b/public/animations/clips/defeated.json
@@ -15069,6 +15069,6 @@
"type": "quaternion"
}
],
- "uuid": "18dea750-443e-4157-9610-5a0cad4d158d",
+ "uuid": "55b7acb3-ac54-460b-8f84-ddbff09dd74c",
"blendMode": 2500
}
diff --git a/public/animations/clips/dying.json b/public/animations/clips/dying.json
index 6f4e723f0..53ef5b1b4 100644
--- a/public/animations/clips/dying.json
+++ b/public/animations/clips/dying.json
@@ -5398,6 +5398,6 @@
"type": "quaternion"
}
],
- "uuid": "ae6cafee-ffd9-455a-9dee-63bbe35b6110",
+ "uuid": "2186f5e6-7955-45a5-adf0-8315d220b0d9",
"blendMode": 2500
}
diff --git a/public/animations/clips/falling.json b/public/animations/clips/falling.json
index 1d8b95219..ff7994741 100644
--- a/public/animations/clips/falling.json
+++ b/public/animations/clips/falling.json
@@ -20683,6 +20683,6 @@
"type": "quaternion"
}
],
- "uuid": "a1876cc6-fd8d-40f5-949c-9319227e97fd",
+ "uuid": "2550acd8-4b90-4b6e-ab86-3da0dbd6b8a0",
"blendMode": 2500
}
diff --git a/public/animations/clips/idle.json b/public/animations/clips/idle.json
index e5978e95f..d852f2635 100644
--- a/public/animations/clips/idle.json
+++ b/public/animations/clips/idle.json
@@ -11139,6 +11139,6 @@
"type": "quaternion"
}
],
- "uuid": "1bc536a9-5e06-4c48-b6bf-067ae9907546",
+ "uuid": "0ddcef0d-2cbe-4820-b6e1-d6d65d271859",
"blendMode": 2500
}
diff --git a/public/animations/clips/jump.json b/public/animations/clips/jump.json
index 30ec5810f..3df0127a7 100644
--- a/public/animations/clips/jump.json
+++ b/public/animations/clips/jump.json
@@ -4516,6 +4516,6 @@
"type": "quaternion"
}
],
- "uuid": "109de300-5e2a-443f-b381-14a516fbcd11",
+ "uuid": "49ad1801-6314-4870-bd13-ad8f7acaa0c2",
"blendMode": 2500
}
diff --git a/public/animations/clips/kiss.json b/public/animations/clips/kiss.json
index 5c110a400..55f6f5cd7 100644
--- a/public/animations/clips/kiss.json
+++ b/public/animations/clips/kiss.json
@@ -15976,6 +15976,6 @@
"type": "quaternion"
}
],
- "uuid": "1fd84f4b-1eb8-4f41-bf0b-b7aa8df44bac",
+ "uuid": "d6c07185-4905-4e27-9ef3-222d12635883",
"blendMode": 2500
}
diff --git a/public/animations/clips/pray.json b/public/animations/clips/pray.json
index 9bd4a5d3c..b7227dd49 100644
--- a/public/animations/clips/pray.json
+++ b/public/animations/clips/pray.json
@@ -14872,6 +14872,6 @@
"type": "quaternion"
}
],
- "uuid": "d3ee3bfc-f026-4688-97cc-ee1fed20f5e0",
+ "uuid": "71ef4846-2d5f-4c4b-a9f6-be199c21ae9c",
"blendMode": 2500
}
diff --git a/public/animations/clips/reaction.json b/public/animations/clips/reaction.json
index c4be7b19d..29551a5e0 100644
--- a/public/animations/clips/reaction.json
+++ b/public/animations/clips/reaction.json
@@ -2150,6 +2150,6 @@
"type": "quaternion"
}
],
- "uuid": "27e4242e-a3e6-4ba9-b1c7-8d3f847f4e54",
+ "uuid": "9ff5cb40-3c8b-4d42-98cf-f5ce1d5ebc83",
"blendMode": 2500
}
diff --git a/public/animations/clips/rumba.json b/public/animations/clips/rumba.json
index 4085d2bd6..371f6a24d 100644
--- a/public/animations/clips/rumba.json
+++ b/public/animations/clips/rumba.json
@@ -4305,6 +4305,6 @@
"type": "quaternion"
}
],
- "uuid": "1dd0c353-a0fa-4b05-856c-4a14ed2794e7",
+ "uuid": "c5a96c46-8435-4922-aaeb-78d1d398cf99",
"blendMode": 2500
}
diff --git a/public/animations/clips/silly.json b/public/animations/clips/silly.json
index 80cfddab9..4aea44d6b 100644
--- a/public/animations/clips/silly.json
+++ b/public/animations/clips/silly.json
@@ -3986,6 +3986,6 @@
"type": "quaternion"
}
],
- "uuid": "ce0cfd3d-367a-4867-87a7-20d9aef67ee9",
+ "uuid": "21a732fe-4d7b-4ec8-bc0d-01e87bdbac9e",
"blendMode": 2500
}
diff --git a/public/animations/clips/sitclap.json b/public/animations/clips/sitclap.json
index 06053fdf1..8b44d57c5 100644
--- a/public/animations/clips/sitclap.json
+++ b/public/animations/clips/sitclap.json
@@ -12602,6 +12602,6 @@
"type": "quaternion"
}
],
- "uuid": "38906513-9752-4c32-810a-6d217096cd2b",
+ "uuid": "d832339a-0ef7-429c-a365-39d47e46f977",
"blendMode": 2500
}
diff --git a/public/animations/clips/sitlaugh.json b/public/animations/clips/sitlaugh.json
index 4bc4b84b5..100e494b3 100644
--- a/public/animations/clips/sitlaugh.json
+++ b/public/animations/clips/sitlaugh.json
@@ -17654,6 +17654,6 @@
"type": "quaternion"
}
],
- "uuid": "09bfd711-be9c-4cd0-a8f3-fa15452016e6",
+ "uuid": "531fa92e-0ad3-4f65-b1f2-525399e6427b",
"blendMode": 2500
}
diff --git a/public/animations/clips/taunt.json b/public/animations/clips/taunt.json
index 64c625e80..0f48e6feb 100644
--- a/public/animations/clips/taunt.json
+++ b/public/animations/clips/taunt.json
@@ -6562,6 +6562,6 @@
"type": "quaternion"
}
],
- "uuid": "c20ab9a1-5e8e-4585-b545-7cdf4134167a",
+ "uuid": "3710b4ef-716e-479a-929f-18dc284761d2",
"blendMode": 2500
}
diff --git a/public/animations/clips/thriller.json b/public/animations/clips/thriller.json
index 3e44a1ac8..001985a9d 100644
--- a/public/animations/clips/thriller.json
+++ b/public/animations/clips/thriller.json
@@ -54325,6 +54325,6 @@
"type": "quaternion"
}
],
- "uuid": "f64f3098-b114-4a0c-8355-e115a65eb04a",
+ "uuid": "3eef00e8-bcda-4a88-ad9c-17574d0d3378",
"blendMode": 2500
}
diff --git a/public/animations/clips/wave.json b/public/animations/clips/wave.json
index 4da17753f..db15d450c 100644
--- a/public/animations/clips/wave.json
+++ b/public/animations/clips/wave.json
@@ -2248,6 +2248,6 @@
"type": "quaternion"
}
],
- "uuid": "24d75706-3eca-446d-8dc1-a4ad9a70fd8d",
+ "uuid": "e472ca5d-5a57-4870-bd57-e2d27125d91b",
"blendMode": 2500
}
diff --git a/public/discover/index.html b/public/discover/index.html
index 2da0ab150..bffc44cb2 100644
--- a/public/discover/index.html
+++ b/public/discover/index.html
@@ -103,7 +103,9 @@
data-role="search-clear"
aria-label="Clear search"
hidden
- >×</button>
+ >
+ ×
+ </button>
</div>
<div class="explore-chips" data-role="filters">
<button class="explore-chip active" data-filter="all">All agents</button>
diff --git a/public/features/features.js b/public/features/features.js
index 5c8a8f139..605e76666 100644
--- a/public/features/features.js
+++ b/public/features/features.js
@@ -77,9 +77,7 @@ function onAgentReady(agentEl, fn) {
// ── Lazy-boot Acts 2 & 3 when their stage scrolls into view ──────────────
function setupLazyBoot() {
- const lazyEls = ROOT.querySelectorAll(
- 'agent-3d:not([eager])[data-role^="act"]',
- );
+ const lazyEls = ROOT.querySelectorAll('agent-3d:not([eager])[data-role^="act"]');
if (!lazyEls.length) return;
const io = new IntersectionObserver(
diff --git a/public/features/index.html b/public/features/index.html
index 6ffb11fa5..7038de830 100644
--- a/public/features/index.html
+++ b/public/features/index.html
@@ -317,5 +317,14 @@
</main>
<script type="module" src="/features/features.js"></script>
+ <script>
+ try {
+ const raw = localStorage.getItem('3dagent:auth-hint');
+ if (raw && JSON.parse(raw).authed) {
+ const el = document.getElementById('nav-my-agents');
+ if (el) el.hidden = false;
+ }
+ } catch (_) {}
+ </script>
</body>
</html>
diff --git a/scripts/_probe-skeletons.mjs b/scripts/_probe-skeletons.mjs
deleted file mode 100644
index a751bfc03..000000000
--- a/scripts/_probe-skeletons.mjs
+++ /dev/null
@@ -1,54 +0,0 @@
-// Throwaway diagnostic. Logs bone names of the Avaturn reference GLB
-// and one Mixamo FBX so we can author the canonical bone map.
-import { readFileSync } from 'node:fs';
-import { fileURLToPath } from 'node:url';
-import { dirname, resolve } from 'node:path';
-import { Blob } from 'node:buffer';
-
-// Polyfill globals three's loaders expect.
-globalThis.self = globalThis;
-globalThis.window = globalThis;
-globalThis.document = { createElementNS: () => ({}) };
-globalThis.Blob = Blob;
-globalThis.URL = URL;
-
-const __dirname = dirname(fileURLToPath(import.meta.url));
-const ROOT = resolve(__dirname, '..');
-
-async function loadGLB(path) {
- const { GLTFLoader } = await import('three/examples/jsm/loaders/GLTFLoader.js');
- const buf = readFileSync(path);
- const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
- const loader = new GLTFLoader();
- return new Promise((res, rej) => loader.parse(ab, '', res, rej));
-}
-
-async function loadFBX(path) {
- const { FBXLoader } = await import('three/examples/jsm/loaders/FBXLoader.js');
- const buf = readFileSync(path);
- const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength);
- const loader = new FBXLoader();
- return loader.parse(ab, '');
-}
-
-function listBones(root) {
- const bones = [];
- root.traverse((n) => {
- if (n.isBone) bones.push(n.name);
- });
- return bones;
-}
-
-const gltf = await loadGLB(resolve(ROOT, 'public/avatars/cz.glb'));
-console.log('--- Avaturn (cz.glb) bones ---');
-console.log(listBones(gltf.scene).join('\n'));
-
-const fbx = await loadFBX(resolve(ROOT, 'public/animations/Old Man Idle.fbx'));
-console.log('\n--- Mixamo (Old Man Idle) bones ---');
-console.log(listBones(fbx).join('\n'));
-
-console.log('\n--- Mixamo clip tracks (first 8) ---');
-for (const clip of fbx.animations || []) {
- console.log('clip:', clip.name, 'duration:', clip.duration, 'tracks:', clip.tracks.length);
- for (const t of clip.tracks.slice(0, 8)) console.log(' ', t.name);
-}
diff --git a/src/erc8004/reputation-panel.js b/src/erc8004/reputation-panel.js
index fdea7df56..0f0574b5e 100644
--- a/src/erc8004/reputation-panel.js
+++ b/src/erc8004/reputation-panel.js
@@ -18,11 +18,7 @@
import { JsonRpcProvider, BrowserProvider } from 'ethers';
import { CHAIN_META, switchChain, txExplorerUrl } from './chain-meta.js';
import { REGISTRY_DEPLOYMENTS } from './abi.js';
-import {
- submitReputation,
- getReputation,
- getRecentReviews,
-} from './reputation.js';
+import { submitReputation, getReputation, getRecentReviews } from './reputation.js';
// Look back ~50k blocks (~7 days on most L2s, ~7 days on Ethereum mainnet).
// Some RPCs reject huge ranges; this is a conservative default that still
@@ -111,13 +107,14 @@ export class ReputationPanel {
const meta = CHAIN_META[this._agent.chainId];
const chainName = meta?.name || `Chain ${this._agent.chainId}`;
- const summary = stats.count > 0
- ? `<span class="agent-reputation__avg">${_fmtAvg(stats.average)}</span>
+ const summary =
+ stats.count > 0
+ ? `<span class="agent-reputation__avg">${_fmtAvg(stats.average)}</span>
<span class="agent-reputation__sep">·</span>
<span class="agent-reputation__count">${stats.count} ${
- stats.count === 1 ? 'vouch' : 'vouches'
- }</span>`
- : `<span class="agent-reputation__empty">No reputation submitted yet.</span>`;
+ stats.count === 1 ? 'vouch' : 'vouches'
+ }</span>`
+ : `<span class="agent-reputation__empty">No reputation submitted yet.</span>`;
const canVouch = this._canVouch();
const vouchHtml = canVouch
diff --git a/tests/billing.test.js b/tests/billing.test.js
index 58914c34b..a8dfbedff 100644
--- a/tests/billing.test.js
+++ b/tests/billing.test.js
@@ -21,19 +21,15 @@ describe('billing — vercel.json routing', () => {
describe('billing — dashboard tab', () => {
const dashjs = readFileSync(p('public/dashboard/dashboard.js'), 'utf8');
- it('dashboard.js exports a billingSummary api method', () => {
- expect(dashjs).toContain('billingSummary');
- });
-
it('renderBilling is async and fetches billing data', () => {
expect(dashjs).toContain('async function renderBilling');
expect(dashjs).toContain('/api/billing/summary');
});
- it('billing tab renders quota meters', () => {
- expect(dashjs).toContain('mcp_calls_24h');
- expect(dashjs).toContain('total_bytes');
- expect(dashjs).toContain('avatar_count');
+ it('billing tab renders quota meters for avatars, storage, MCP', () => {
+ expect(dashjs).toContain('usage.mcp_calls_24h');
+ expect(dashjs).toContain('usage.total_bytes');
+ expect(dashjs).toContain('usage.avatar_count');
});
});
diff --git a/tests/build-asset-paths.test.js b/tests/build-asset-paths.test.js
index f26be2ff6..2be410c63 100644
--- a/tests/build-asset-paths.test.js
+++ b/tests/build-asset-paths.test.js
@@ -14,9 +14,7 @@ const dist = resolve(repoRoot, 'dist');
describe('build asset paths', () => {
beforeAll(() => {
if (!existsSync(dist)) {
- throw new Error(
- `dist/ not found — run \`npm run build\` before running this test.`,
- );
+ throw new Error(`dist/ not found — run \`npm run build\` before running this test.`);
}
});
diff --git a/tests/discover-rename.test.js b/tests/discover-rename.test.js
index ba9ad520e..b58f0da4e 100644
--- a/tests/discover-rename.test.js
+++ b/tests/discover-rename.test.js
@@ -26,7 +26,7 @@ describe('discover page — cross-links and new features', () => {
it('/discover JS reveals chip on successful auth probe', () => {
expect(discoverJs).toContain('/api/auth/me');
- expect(discoverJs).toContain("els.myAgentsChip.hidden = false");
+ expect(discoverJs).toContain('els.myAgentsChip.hidden = false');
});
it('/discover JS syncs filters to URL params', () => {
diff --git a/tests/features-page.test.js b/tests/features-page.test.js
index c845604d1..a7ca52eb8 100644
--- a/tests/features-page.test.js
+++ b/tests/features-page.test.js
@@ -44,15 +44,9 @@ describe('/features page — structure', () => {
it('Act 1 boots eagerly; Acts 2 and 3 lazy-boot', () => {
// Act 1 carries the eager attr; the others do not.
- const act1 = html.match(
- /<agent-3d\b[^>]*data-role="act1-agent"[^>]*>/,
- )?.[0];
- const act2 = html.match(
- /<agent-3d\b[^>]*data-role="act2-agent"[^>]*>/,
- )?.[0];
- const act3 = html.match(
- /<agent-3d\b[^>]*data-role="act3-agent"[^>]*>/,
- )?.[0];
+ const act1 = html.match(/<agent-3d\b[^>]*data-role="act1-agent"[^>]*>/)?.[0];
+ const act2 = html.match(/<agent-3d\b[^>]*data-role="act2-agent"[^>]*>/)?.[0];
+ const act3 = html.match(/<agent-3d\b[^>]*data-role="act3-agent"[^>]*>/)?.[0];
expect(act1).toBeTruthy();
expect(act2).toBeTruthy();
expect(act3).toBeTruthy();
diff --git a/tests/share-panel.test.js b/tests/share-panel.test.js
index 00e3018ab..2a37f6be0 100644
--- a/tests/share-panel.test.js
+++ b/tests/share-panel.test.js
@@ -188,7 +188,7 @@ describe('agent-3d web component — attribute surface', () => {
});
it('paints the scene background for dark/light modes and clears alpha for transparent', () => {
- expect(elementSrc).toContain("v.renderer?.setClearAlpha?.(0)");
+ expect(elementSrc).toContain('v.renderer?.setClearAlpha?.(0)');
expect(elementSrc).toContain("v.scene.background.set('#0b0d10')");
expect(elementSrc).toContain("v.scene.background.set('#f5f5f5')");
});