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
refactor: rename manuscript components to three-ui for consistency
nirholas623f1f09b706
diff --git a/chat/src/app.pcss b/chat/src/app.pcssindex efcf140a5..b45fb5042 100644--- a/chat/src/app.pcss+++ b/chat/src/app.pcss@@ -15,31 +15,31 @@}@layer components {- .manus-card {+ .three-ui-card {@apply bg-white border border-rule rounded-2xl;}- .manus-chip {+ .three-ui-chip {@apply inline-flex items-center gap-2 h-9 px-4 rounded-fullborder border-rule bg-white text-ink text-sm font-mediumhover:bg-paper-deep transition-colors;}- .manus-chip-selected {- @apply bg-manus-blue-soft border-manus-blue-border text-manus-blue;+ .three-ui-chip-selected {+ @apply bg-three-ui-blue-soft border-three-ui-blue-border text-three-ui-blue;}- .manus-btn-primary {+ .three-ui-btn-primary {@apply inline-flex items-center justify-center h-9 px-4rounded-full bg-black text-white text-sm font-mediumhover:bg-ink transition-colors;}- .manus-btn-ghost {+ .three-ui-btn-ghost {@apply inline-flex items-center justify-center h-9 px-4rounded-full bg-transparent text-ink text-sm font-mediumhover:bg-paper-deep transition-colors;}- .manus-hero {+ .three-ui-hero {@apply font-serif text-ink text-[44px] md:text-[56px] leading-[1.05] tracking-tight font-medium;}- .manus-display {+ .three-ui-display {@apply font-serif text-ink text-[56px] md:text-[80px] leading-[1.02] tracking-tight font-semibold;}}diff --git a/chat/tailwind.config.cjs b/chat/tailwind.config.cjsindex 9004f80e6..ed58a41ff 100644--- a/chat/tailwind.config.cjs+++ b/chat/tailwind.config.cjs@@ -96,7 +96,7 @@ const config = {ink: '#1A1A1A','ink-soft': '#6B6B6B',rule: '#E5E3DC',- manus: {+ 'three-ui': {blue: '#3B82F6','blue-soft': '#EFF6FF','blue-border': '#BFDBFE',diff --git a/docs/animations.md b/docs/animations.mdnew file mode 100644index 000000000..6547c6099--- /dev/null+++ b/docs/animations.md@@ -0,0 +1,58 @@+# Animations++The full machine-readable registry is at [`public/animations/registry.json`](../public/animations/registry.json). Read it first before touching anything animation-related — it catalogues every animation asset in the project, which pipeline owns it, and its current status.++## Collections++There are 5 animation collections across the codebase. They are separate and use different rigs:++| Collection | Location | Status |+|---|---|---|+| **clips** | `public/animations/clips/*.json` | Active in main runtime |+| **orphaned_fbx** | `public/animations/*.fbx` (6 files) | On disk, never built — absent from manifest |+| **presets_robotexpressive** | `public/animations/robotexpressive.glb` | Legacy, not loaded at runtime |+| **lora_pipeline** | `character-studio/public/lora-assets/animations/` | character-studio LoRA pipeline only |+| **sprite_atlas_pipeline** | `character-studio/public/sprite-atlas-assets/animations/` | character-studio sprite atlas only |+| **sims_demo** | `sims-demo/public/AnimationLibrary.glb` | sims-demo character controller only |++## How the runtime loads animations++1. `src/app.js` fetches `/animations/manifest.json` on startup+2. `src/animation-manager.js` (`AnimationManager`) loads each clip from `public/animations/clips/`+3. `src/agent-avatar.js` plays clips by resolving **slots** → clip names via `src/runtime/animation-slots.js`+4. The UI widget `src/widgets/animation-gallery.js` lists all loaded clips++## Adding a new animation to the runtime++1. Drop the FBX into `public/animations/`+2. Add an entry to `scripts/animations.config.json`+3. Run `node scripts/build-animations.mjs` — retargets to the Avaturn rig, writes a JSON clip to `public/animations/clips/`, and updates `manifest.json`+4. Update `public/animations/registry.json` — move the entry from `orphaned_fbx` into `clips`+5. Optionally wire a slot in `src/runtime/animation-slots.js` so the agent plays it automatically++## Agent slots++Slots are the fixed vocabulary the agent avatar uses to express emotion/gesture. They resolve to clip names at runtime. Defined in `src/runtime/animation-slots.js`.++| Slot | Default clip | Notes |+|---|---|---|+| `idle` | `idle` | Always playing |+| `wave` | `reaction` | Maps to `reaction`, not the `wave` clip |+| `nod` | `reaction` | |+| `shake` | `angry` | |+| `think` | `pray` | |+| `celebrate` | `celebrate` | |+| `concern` | `defeated` | |+| `bow` | `sitclap` | |+| `point` | `reaction` | |+| `shrug` | `defeated` | |+| `fidget` | `Fidget` | **Broken** — no clip named `Fidget` exists |++Agents can override individual slots via `meta.edits.animations`.++## Known issues++- **`fidget` slot is broken** — maps to `"Fidget"` but no such clip exists in the manifest. Silent no-op at runtime. Fix: add a Fidget FBX to `animations.config.json` and rebuild, or remap the slot. (`src/runtime/animation-slots.js:30`)+- **6 orphaned FBX files** — `Cover To Stand.fbx`, `Goalkeeper Scoop.fbx`, `Jumping Down.fbx` (×3), `Removing Driver.fbx` exist in `public/animations/` but are never built. Fix: add entries to `scripts/animations.config.json`.+- **`wave` clip unreachable** — the `wave` clip is in the manifest but no agent slot or hint points to it. The `wave` slot maps to `reaction` instead.+- **Dead animation hints** — skill-emitted hints `gesture`, `inspect`, `present`, `sign`, `curiosity`, `patience` have no matching clip or slot; they silently no-op on Avaturn models. (`src/agent-avatar.js`)diff --git a/docs/internal/PAGES.md b/docs/internal/PAGES.mdindex a6e6e445b..e62d4199e 100644--- a/docs/internal/PAGES.md+++ b/docs/internal/PAGES.md@@ -138,7 +138,7 @@ The `/chat` path serves a full Svelte-based AI chat application. Navigation with| `/chat#resources/use-cases` | Use cases index || `/chat#dashboard/revenue` | Revenue dashboard (authenticated) |-Route definitions are in [chat/src/App.svelte](../../chat/src/App.svelte). Marketing page content is defined in [chat/src/manus/pages/marketingPages.js](../../chat/src/manus/pages/marketingPages.js) and [chat/src/manus/pages/featurePages.js](../../chat/src/manus/pages/featurePages.js).+Route definitions are in [chat/src/App.svelte](../../chat/src/App.svelte). Marketing page content is defined in [chat/src/three-ui/pages/marketingPages.js](../../chat/src/three-ui/pages/marketingPages.js) and [chat/src/three-ui/pages/featurePages.js](../../chat/src/three-ui/pages/featurePages.js).## Solana / Pump.fundiff --git a/prompts/chat-wallet-auth/04-wire-topnav.md b/prompts/chat-wallet-auth/04-wire-topnav.mdindex 0b46fcb7a..ed6c66e7a 100644--- a/prompts/chat-wallet-auth/04-wire-topnav.md+++ b/prompts/chat-wallet-auth/04-wire-topnav.md@@ -1,7 +1,7 @@# Task: Wire WalletConnect into TopNav and initialize session on app mount## Goal-1. Replace the static "Sign in" / "Sign up" buttons in `chat/src/manus/TopNav.svelte`+1. Replace the static "Sign in" / "Sign up" buttons in `chat/src/three-ui/TopNav.svelte`with the `WalletConnect` component (which handles both states: signed-in and signed-out).2. Call `loadCurrentUser()` in `chat/src/App.svelte`'s `onMount` so the auth store ispopulated when the app boots.@@ -11,7 +11,7 @@## Context### TopNav.svelte — current "Sign in / Sign up" buttons-File: `/workspaces/3D-Agent/chat/src/manus/TopNav.svelte`+File: `/workspaces/3D-Agent/chat/src/three-ui/TopNav.svelte`The right side of the desktop nav (around line 154–165) currently renders:```sveltediff --git a/prompts/chat-wallet-auth/05-wire-auth-page.md b/prompts/chat-wallet-auth/05-wire-auth-page.mdindex 8c441d8c8..a355ad1d9 100644--- a/prompts/chat-wallet-auth/05-wire-auth-page.md+++ b/prompts/chat-wallet-auth/05-wire-auth-page.md@@ -1,7 +1,7 @@# Task: Add wallet sign-in buttons to AuthPage.svelte## Goal-Update `/workspaces/3D-Agent/chat/src/manus/pages/AuthPage.svelte` to include+Update `/workspaces/3D-Agent/chat/src/three-ui/pages/AuthPage.svelte` to includereal EVM and Solana wallet sign-in options. Currently the page is a stub that`console.log`s and routes to `'chat'` without calling any auth backend.@@ -10,7 +10,7 @@ real EVM and Solana wallet sign-in options. Currently the page is a stub that## Context### Current AuthPage.svelte-File: `/workspaces/3D-Agent/chat/src/manus/pages/AuthPage.svelte`+File: `/workspaces/3D-Agent/chat/src/three-ui/pages/AuthPage.svelte`The component currently:- Accepts `export let kind = 'signin'` prop (`'signin'` | `'signup'`)diff --git a/prompts/tasks/chat-export.md b/prompts/tasks/chat-export.mdindex f1ae1adfc..9047cc3bb 100644--- a/prompts/tasks/chat-export.md+++ b/prompts/tasks/chat-export.md@@ -73,7 +73,7 @@ Match the existing button styling in whatever dropdown you find.## Files to edit- `/workspaces/3D-Agent/chat/src/App.svelte`-- Possibly `/workspaces/3D-Agent/chat/src/manus/MoreDropdown.svelte` if that's where the menu lives+- Possibly `/workspaces/3D-Agent/chat/src/three-ui/MoreDropdown.svelte` if that's where the menu lives## Verification- Open a conversation with several messagesdiff --git a/prompts/tasks/voice-input-chat.md b/prompts/tasks/voice-input-chat.mdindex de93f2b31..13a11ec75 100644--- a/prompts/tasks/voice-input-chat.md+++ b/prompts/tasks/voice-input-chat.md@@ -4,7 +4,7 @@`/workspaces/3D-Agent/chat/src` is a Svelte chat app. The chat already has TTS output (speaking responses aloud) but no voice input — users can only type messages.-The composer/input area is in `/workspaces/3D-Agent/chat/src/manus/Composer.svelte` or within `App.svelte` (search for the textarea where user messages are typed).+The composer/input area is in `/workspaces/3D-Agent/chat/src/three-ui/Composer.svelte` or within `App.svelte` (search for the textarea where user messages are typed).The browser has a native `SpeechRecognition` API (Chrome/Edge) that requires no API key. This is the simplest path.@@ -90,7 +90,7 @@ onResult = (t) => {Only add auto-submit if you find a `submitMessage` or equivalent function that's safe to call directly.## Files to edit-- `/workspaces/3D-Agent/chat/src/manus/Composer.svelte` or `App.svelte` — wherever the composer textarea lives+- `/workspaces/3D-Agent/chat/src/three-ui/Composer.svelte` or `App.svelte` — wherever the composer textarea lives## Verification- Open the chat in Chrome or Edge