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: clear the remaining banned dash glyphs from the new wallet, admin economy, and MCP catalog surfaces
nirholas439cb0afd230
diff --git a/pages/admin/economy.html b/pages/admin/economy.htmlindex 6dab7da83..3ad5b6168 100644--- a/pages/admin/economy.html+++ b/pages/admin/economy.html@@ -2,7 +2,7 @@<html lang="en"><head><script>- /* three.ws theme boot — no-flash */ (function () {+ /* three.ws theme boot: no-flash */ (function () {document.documentElement.classList.add('js');try {var m = localStorage.getItem('twx_theme');diff --git a/pages/mcp-tools.html b/pages/mcp-tools.htmlindex c35ed2c23..c3a8dd9c5 100644--- a/pages/mcp-tools.html+++ b/pages/mcp-tools.html@@ -1,7 +1,7 @@<!DOCTYPE html><html lang="en"><head>- <script>/* three.ws theme boot — no-flash */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>+ <script>/* three.ws theme boot: no-flash */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script><meta charset="utf-8" /><meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" /><title>MCP Tool Catalog · three.ws</title>@@ -25,7 +25,7 @@<meta name="twitter:image" content="https://three.ws/api/page-og?s=build&t=MCP+Tool+Catalog&d=Every+MCP+tool+three.ws+publishes%3A+what+it+does%2C+what+it+costs%2C+and+whether+an+AI+client+can+run+it+unattended.&p=%2Fmcp-tools" /><meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" /><meta property="og:locale" content="en_US" />- <meta property="og:image:alt" content="MCP Tool Catalog — three.ws" />+ <meta property="og:image:alt" content="MCP Tool Catalog / three.ws" /><meta name="twitter:site" content="@trythreews" /><style>:root {diff --git a/pages/wallet.html b/pages/wallet.htmlindex d90b8ca63..4c24b0659 100644--- a/pages/wallet.html+++ b/pages/wallet.html@@ -1,9 +1,9 @@<!doctype html><html lang="en"><head>- <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>+ <script>/* three.ws theme boot: no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script><meta charset="utf-8" />- <title>Your master wallet — three.ws</title>+ <title>Your master wallet / three.ws</title><meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="theme-color" content="#000000" /><meta@@ -13,7 +13,7 @@<meta name="robots" content="noindex" /><meta property="og:type" content="website" />- <meta property="og:title" content="Your master wallet — three.ws" />+ <meta property="og:title" content="Your master wallet / three.ws" /><metaproperty="og:description"content="Fund it once, then top up your agents, send SOL or USDC, and read every transaction straight from Solana."@@ -38,7 +38,7 @@<div id="nav-container"></div><main class="wlt-wrap">- <p class="wlt-crumb"><a href="/">Home</a> / <a href="/account">Account</a> / Wallet</p>+ <p class="wlt-crumb"><a href="/">Home</a> / <a href="/dashboard/account">Account</a> / Wallet</p><div id="wlt-root"></div></main>diff --git a/public/animations/registry.json b/public/animations/registry.jsonindex 94f34e380..97b73bf97 100644--- a/public/animations/registry.json+++ b/public/animations/registry.json@@ -120,7 +120,7 @@{ "name": "xbot-walk", "label": "Walk (Xbot)", "icon": "🚶", "loop": true, "clip": "public/animations/clips/xbot-walk.json", "source_fbx": "animation-sources/xbot-walk.glb", "agent_slots": [] },{ "name": "torch-light", "label": "Light Torch", "icon": "🔥", "loop": false, "clip": "public/animations/clips/torch-light.json", "source_fbx": "animation-sources/Standing Torch Light Torch From Fire.fbx", "agent_slots": [] },{ "name": "torch-light-wall", "label": "Light Torch (Wall)", "icon": "🕯️", "loop": false, "clip": "public/animations/clips/torch-light-wall.json", "source_fbx": "animation-sources/Standing Torch Light Torch From Wall.fbx", "agent_slots": [] },- { "name": "sitidle", "label": "Sit Idle", "icon": "🪑", "loop": true, "clip": "public/animations/clips/sitidle.json", "source_fbx": null, "agent_slots": [], "note": "Hand-authored 2-key pose, no FBX source (commit 7a22e5993). Merged into manifest.json by build-animations.mjs from scripts/animations-extra-clips.json (previously orphaned — see known_issues history)." }+ { "name": "sitidle", "label": "Sit Idle", "icon": "🪑", "loop": true, "clip": "public/animations/clips/sitidle.json", "source_fbx": null, "agent_slots": [], "note": "Hand-authored 2-key pose, no FBX source (commit 7a22e5993). Merged into manifest.json by build-animations.mjs from scripts/animations-extra-clips.json (previously orphaned; see known_issues history)." }]},@@ -260,34 +260,49 @@"agent_slots": {"description": "The fixed slot vocabulary used by the agent avatar system (src/runtime/animation-slots.js). Slots are resolved to clip names from the 'clips' collection at runtime. Agents can override individual slots via meta.edits.animations.","slots": {- "idle": { "default_clip": "idle", "status": "active" },- "wave": { "default_clip": "reaction", "status": "active — note: maps to 'reaction', not 'wave' clip" },- "nod": { "default_clip": "reaction", "status": "active — note: maps to 'reaction'" },- "shake": { "default_clip": "angry", "status": "active" },- "think": { "default_clip": "pray", "status": "active" },- "celebrate": { "default_clip": "celebrate", "status": "active" },- "concern": { "default_clip": "defeated", "status": "active" },- "bow": { "default_clip": "sitclap", "status": "active" },- "point": { "default_clip": "reaction", "status": "active — note: maps to 'reaction'. Dedicated 'point' clip now exists in the clips collection but DEFAULT_ANIMATION_MAP keeps the existing binding (behavior-change gate — see roadmap prompt 03)." },- "shrug": { "default_clip": "defeated", "status": "active — note: maps to 'defeated'. Dedicated 'shrug' clip now exists in the clips collection but DEFAULT_ANIMATION_MAP keeps the existing binding." },- "fidget": { "default_clip": "av-waiting","status": "fixed 2026-07-08 — was 'Fidget' (no such clip, silent no-op); see resolved known_issues entry below" }+ "idle": { "default_clip": "idle", "status": "active" },+ "wave": { "default_clip": "wave", "status": "active" },+ "nod": { "default_clip": "nod", "status": "active" },+ "shake": { "default_clip": "xbot-head-shake", "status": "active" },+ "think": { "default_clip": "think", "status": "active" },+ "celebrate": { "default_clip": "celebrate", "status": "active" },+ "concern": { "default_clip": "defeated", "status": "active" },+ "bow": { "default_clip": "sitclap", "status": "active (approximation) — no bow clip is baked; 'sitclap' reads as gratitude/applause. See known_issues: bow-slot-approximation" },+ "point": { "default_clip": "point", "status": "active" },+ "shrug": { "default_clip": "shrug", "status": "active" },+ "fidget": { "default_clip": "av-waiting", "status": "fixed 2026-07-08 — was 'Fidget' (no such clip, silent no-op); see resolved known_issues entry below" },+ "dance": { "default_clip": "rumba", "status": "active" },+ "inspect": { "default_clip": "lookdown", "status": "active" },+ "present": { "default_clip": "av-brag-claps", "status": "active" },+ "sign": { "default_clip": "xbot-agree", "status": "active" },+ "curiosity": { "default_clip": "av-spy", "status": "active" },+ "patience": { "default_clip": "av-waiting", "status": "active" },+ "manipulate": { "default_clip": "av-push-block", "status": "active" },+ "conjure": { "default_clip": "av-conductor", "status": "active" }}},"known_issues": [+ {+ "id": "bow-slot-approximation",+ "description": "The 'bow' slot has no dedicated clip: it resolves to 'sitclap' (Sitting Clap), which reads as gratitude/applause rather than a bow. Every other slot now plays a clip that means what the slot means. Fix: add Mixamo 'Bowing' (In Place, Without Skin) to animation-sources/, register it in scripts/animations.config.json as 'bow', run npm run build:animations, then point DEFAULT_ANIMATION_MAP.bow at it. tests/animation-slots.test.js already asserts the target exists, so the swap is a one-line change once the clip is baked.",+ "affected_file": "src/runtime/animation-slots.js"+ }+ ],++ "resolved_issues": [{"id": "unused-agent-hint-targets",- "description": "Several animationHint values emitted by skills ('gesture', 'inspect', 'present', 'sign', 'curiosity', 'patience') have no matching clip or slot. They silently no-op on Avaturn models. Fix: either map them to existing clips in DEFAULT_ANIMATION_MAP or build dedicated clips.",+ "resolved": "2026-07-30",+ "description": "The skill hints 'gesture', 'inspect', 'present', 'sign', 'curiosity' and 'patience' are now slots (or aliases onto one) in src/runtime/animation-slots.js, and src/agent-avatar.js _onSkillStart routes animationHint through resolveHint() → _playSlot instead of passing the raw hint to _triggerOneShot, which only ever matched a clip embedded in the GLB. 'inspect' and 'gesture' alone account for 38 of the ~50 hint declarations in the skill catalog, so this was the most-hit dead path in the animation system. tests/animation-slots.test.js now scans every animationHint literal under src/ and fails if one resolves to no slot or to a clip missing from the manifest.","affected_file": "src/runtime/animation-slots.js"},{"id": "wave-slot-mismatch",- "description": "The 'wave' slot maps to 'reaction' clip, not the 'wave' clip. The 'wave' clip (from Standing Cover Turn.fbx) is in the manifest but unreachable by any agent slot or hint. Intentional or oversight?",+ "resolved": "2026-07-30",+ "description": "Oversight, now fixed: the 'wave', 'nod', 'point', 'think' and 'shrug' slots borrowed 'reaction'/'pray'/'defeated' from before their dedicated clips were baked, which left five real clips unreachable by any slot or hint. Each slot now plays its own clip, and the walk state machine's matching gestures (src/animation-state-machine.js) were re-pointed with them: 'shrug' also moved to the upper-body overlay layer, since a shoulder shrug does not need to suppress locomotion the way the borrowed full-body 'defeated' clip did.","affected_file": "src/runtime/animation-slots.js"- }- ],-- "resolved_issues": [+ },{"id": "orphaned-source-fbx","resolved": "2026-07 (before roadmap prompt 03)",diff --git a/scripts/sync-animation-registry.mjs b/scripts/sync-animation-registry.mjsindex b5a51f45c..300afd647 100644--- a/scripts/sync-animation-registry.mjs+++ b/scripts/sync-animation-registry.mjs@@ -157,7 +157,12 @@ function main() {const rows = buildRows();const rendered = renderRows(rows, indent);- const next = [...lines.slice(0, start + 1), ...rendered.map((l, i) => (i === rendered.length - 1 ? l : `${l},`)), ...lines.slice(end)].join('\n');+ const withClips = [+ ...lines.slice(0, start + 1),+ ...rendered.map((l, i) => (i === rendered.length - 1 ? l : `${l},`)),+ ...lines.slice(end),+ ];+ const next = replaceBlock(withClips, /^\s*"slots": \{\s*$/, renderSlots).join('\n');// Parse before writing: a malformed registry breaks every reader downstream.JSON.parse(next);@@ -167,7 +172,7 @@ function main() {return 0;}if (CHECK) {- console.error(`[registry] out of sync — run: node scripts/sync-animation-registry.mjs`);+ console.error(`[registry] out of sync, run: node scripts/sync-animation-registry.mjs`);return 1;}writeFileSync(REGISTRY, next);@@ -175,4 +180,10 @@ function main() {return 0;}-if (existsSync(REGISTRY)) process.exitCode = main();+// Only act when run as a command. tests/animation-registry.test.js imports+// buildRows() to compare against the committed file and must not rewrite it.+const invokedDirectly = process.argv[1] && resolve(process.argv[1]) === fileURLToPath(import.meta.url);+if (invokedDirectly) {+ if (!existsSync(REGISTRY)) throw new Error(`registry not found: ${REGISTRY}`);+ process.exitCode = main();+}diff --git a/src/admin-economy.js b/src/admin-economy.jsindex b3be79607..7e0a9dcc6 100644--- a/src/admin-economy.js+++ b/src/admin-economy.js@@ -1,4 +1,4 @@-// /admin/economy — autonomous economy health dashboard (DOM layer).+// /admin/economy: autonomous economy health dashboard (DOM layer).//// All judgement lives in admin-economy-core.js; this file only fetches and// renders. Three real reads, no mocks and no synthetic numbers:@@ -173,7 +173,7 @@ function renderLanes(health) {tr.append(cell);for (const v of [r.ok, r.skipped, r.error]) tr.append(el('td', 'ec-num', String(v ?? 0)));- tr.append(el('td', 'ec-reason', r.last_problem || '—'));+ tr.append(el('td', 'ec-reason', r.last_problem || '-'));tbody.append(tr);}table.append(tbody);@@ -227,7 +227,7 @@ function renderFuel(data) {const tbody = el('tbody');for (const s of recent.slice(0, 8)) {const tr = el('tr');- tr.append(el('td', null, s.at ? new Date(s.at).toLocaleString() : '—'));+ tr.append(el('td', null, s.at ? new Date(s.at).toLocaleString() : '-'));tr.append(el('td', 'ec-num', fmtUsd(s.usd)));tr.append(el('td', 'ec-num', `${fmtSol(s.sol)} SOL`));tr.append(el('td', 'ec-num', `${Number(s.price_impact_pct || 0).toFixed(2)}%`));@@ -238,7 +238,7 @@ function renderFuel(data) {a.target = '_blank';a.rel = 'noopener noreferrer';txCell.append(a);- } else txCell.textContent = '—';+ } else txCell.textContent = '-';tr.append(txCell);tbody.append(tr);}@@ -260,7 +260,7 @@ function renderEngine(health) {statCard('Agent pool', String(health.pool_size ?? 0), `target ${health.config?.pool_target ?? '?'}, ${health.quarantined_agents ?? 0} quarantined`),statCard('Actions / tick', String(health.config?.actions_per_tick ?? 0), 'Paid slots are cut when the treasury is thin'),statCard('Actions 24h', String(live.actions_24h ?? 0), `${live.actions_1h ?? 0} in the last hour`),- statCard('Last action', live.minutes_since == null ? '—' : `${live.minutes_since}m ago`, live.stale ? 'Stale: the tick may have stopped' : 'Ticking normally'),+ statCard('Last action', live.minutes_since == null ? '-' : `${live.minutes_since}m ago`, live.stale ? 'Stale: the tick may have stopped' : 'Ticking normally'),);}diff --git a/src/master-wallet.js b/src/master-wallet.jsindex 60c3268f1..d4d945e7e 100644--- a/src/master-wallet.js+++ b/src/master-wallet.js@@ -1,5 +1,5 @@/**- * Your master wallet (/wallet) — page controller.+ * Your master wallet (/wallet): page controller.** The per-user custodial hub described in docs/user-wallet.md. Until this page* existed the four /api/user/wallet endpoints were reachable only by curl, so