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
chore: rebuild chat assets and update zauth/AgentPicker/vercel config
nirholasf78092486045
diff --git a/api/_lib/zauth.js b/api/_lib/zauth.jsindex 1c060ef5b..129c37b1d 100644--- a/api/_lib/zauth.js+++ b/api/_lib/zauth.js@@ -9,11 +9,13 @@// Disabled cleanly when ZAUTH_API_KEY is unset — `instrument()` becomes a// no-op so unrelated environments don't pay any cost.//-// Use the documented `/middleware` subpath. The middleware files are-// force-included in the deploy via vercel.json `functions.includeFiles`-// because @vercel/nft mis-resolves the conditional exports map otherwise.+// Import from the main entry — `zauthProvider` is re-exported there. The+// docs use `@zauthx402/sdk/middleware`, but Vercel's @vercel/nft fails to+// bundle that subpath (conditional exports import/require split), so the+// dist/middleware/index.js is missing in /var/task at runtime. The main+// entry traces correctly.-import { zauthProvider } from '@zauthx402/sdk/middleware';+import { zauthProvider } from '@zauthx402/sdk';import { env } from './env.js';let cached;diff --git a/chat/src/AgentPicker.svelte b/chat/src/AgentPicker.svelteindex 01757eb36..16fdd317f 100644--- a/chat/src/AgentPicker.svelte+++ b/chat/src/AgentPicker.svelte@@ -93,12 +93,32 @@): myAgents;+ $: filteredLibrary = (query+ ? libraryAgents.filter((a) => {+ const q = query.toLowerCase();+ return (+ (a.name || '').toLowerCase().includes(q) ||+ (a.description || '').toLowerCase().includes(q) ||+ (a.tags || []).some((t) => String(t).toLowerCase().includes(q)) ||+ (a.category || '').toLowerCase().includes(q)+ );+ })+ : libraryAgents+ ).slice(0, 60);+function onInput() {clearTimeout(debounceTimer);debounceTimer = setTimeout(() => searchMarket(query), 300);}async function pick(agent) {+ if (agent.source === 'library') {+ const detail = await loadLibraryAgentDetail(agent);+ localAgentId.set(detail.id);+ activeAgent.set(detail);+ dispatch('pick', detail);+ return;+ }try {const res = await fetch(`/api/agents/${agent.id}`, { credentials: 'include' });if (res.ok) {@@ -145,6 +165,7 @@loadMine();searchMarket('');+ loadLibrary();</script><div class="flex flex-col gap-3 p-1">@@ -248,5 +269,46 @@</div>{/if}</div>++ <!-- Public Library (LobeHub-compatible JSON index) -->+ <div>+ <p class="text-[11px] font-semibold uppercase tracking-wide text-slate-500 mb-1.5">Public Library</p>+ {#if loadingLibrary}+ <p class="text-center text-[12px] text-slate-400 py-3">Loading…</p>+ {:else if filteredLibrary.length === 0}+ <p class="text-[12px] text-slate-400 py-2">{query ? 'No matches in library' : 'Library unavailable'}</p>+ {:else}+ <div class="grid grid-cols-3 gap-2">+ {#each filteredLibrary as agent}+ <button+ class="flex flex-col items-center gap-1.5 rounded-xl p-2 text-center transition hover:bg-gray-50+ {$localAgentId === agent.id ? 'bg-indigo-50 ring-2 ring-indigo-300' : 'ring-1 ring-gray-100'}"+ on:click={() => pick(agent)}+ title={agent.description || agent.name}+ >+ {#if agent.thumbnail_url}+ <img+ src={agent.thumbnail_url}+ alt={agent.name}+ class="h-14 w-14 rounded-lg object-cover"+ loading="lazy"+ />+ {:else if agent.avatar_emoji}+ <div class="flex h-14 w-14 items-center justify-center rounded-lg bg-slate-50 text-[28px]">{agent.avatar_emoji}</div>+ {:else}+ <div+ class="flex h-14 w-14 items-center justify-center rounded-lg text-[14px] font-bold text-white"+ style="background:{color(agent.id)}"+ >{initials(agent.name)}</div>+ {/if}+ <p class="w-full truncate text-[11px] font-medium text-slate-700 leading-tight">{agent.name}</p>+ </button>+ {/each}+ </div>+ {#if !query && libraryAgents.length > filteredLibrary.length}+ <p class="text-[11px] text-slate-400 py-1.5 text-center">Showing 60 of {libraryAgents.length} — search to filter</p>+ {/if}+ {/if}+ </div></div></div>diff --git a/public/chat/index.html b/public/chat/index.htmlindex 09c2a9839..687705133 100644--- a/public/chat/index.html+++ b/public/chat/index.html@@ -43,8 +43,8 @@}}</script>- <script type="module" crossorigin src="/chat/assets/index-B0vZProP.js"></script>- <link rel="stylesheet" crossorigin href="/chat/assets/index-DL-SfaRh.css">+ <script type="module" crossorigin src="/chat/assets/index-C29D8-j5.js"></script>+ <link rel="stylesheet" crossorigin href="/chat/assets/index-BzI8RNw_.css"></head><body><div id="app"></div>diff --git a/vercel.json b/vercel.jsonindex 2ccd15c98..767003178 100644--- a/vercel.json+++ b/vercel.json@@ -1,11 +1,6 @@{"public": true,"installCommand": "npm ci --prefer-offline --no-audit --no-fund",- "functions": {- "api/**/*.js": {- "includeFiles": "node_modules/@zauthx402/sdk/dist/middleware/**"- }- },"routes": [{"src": "/openapi\\.json",