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
feat: walk NPC companions + section narration; remove batch-6 specs
miniaturizationc4579f3c8fd1
diff --git a/public/changelog.json b/public/changelog.jsonindex 5efeef971..fd4304ce4 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-21T07:43:25.312Z",+ "generated_at": "2026-06-21T07:50:59.849Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",diff --git a/public/features.json b/public/features.jsonindex 4bb25c227..c141b8de2 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-21T07:43:25.291Z",+ "generated_at": "2026-06-21T07:50:59.814Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/tasks/CLEANUP-MANIFEST.md b/tasks/CLEANUP-MANIFEST.mdindex 45efdf95c..078c15201 100644--- a/tasks/CLEANUP-MANIFEST.md+++ b/tasks/CLEANUP-MANIFEST.md@@ -186,3 +186,10 @@ Retired (feature verified shipped):| tasks/walk/38-walk-session-persistence.md | DELETE | Built: src/walk-session.js + api/walk/session.js (GET/PUT) + migration 20260621170000_walk_session.sql + src/walk.js capture/restore + Welcome-back toast. || tasks/walk/35-click-to-walk-navigation.md | DELETE | Built: src/walk-companion-click-to-walk.js (empty-space click / long-press, data-walk-block routing, persisted toggle) wired into src/walk-companion.js. || tasks/walk/25-features-page-walking-demo.md | DELETE | Built: walking-avatar-inline demoType + renderer + live /walk-embed demo in pages/features.html. |++## 2026-06-21 built-and-shipped (walk batch 6)++| spec file | decision | evidence |+|---|---|---|+| tasks/walk/19-walk-npc-companions.md | DELETE | Built: src/walk-npcs.js (greeter/wanderer/guide FSM, real GLBs michelle/xbot/realistic-female, AnimationManager clips, disposal, cap 4) + per-env public/environments/*/dialogue.json + src/walk.js spawn/update/toggle. |+| tasks/walk/34-section-narration-as-avatar-walks.md | DELETE | Built: src/walk-companion-narrator.js (data-walk-narrate + heading fallback, IntersectionObserver, caption aria-live + optional real /api/tts/speak voice, off/caption/voice toggle) wired into src/walk-companion.js. |diff --git a/tasks/walk/19-walk-npc-companions.md b/tasks/walk/19-walk-npc-companions.mddeleted file mode 100644index 4348a04b2..000000000--- a/tasks/walk/19-walk-npc-companions.md+++ /dev/null@@ -1,47 +0,0 @@-# Task 19 — Walk Page: NPC Companion Avatars--## Priority: MEDIUM--## Objective-Populate the walk environment with one or more NPC companion avatars that wander, react to the player, and can be talked to. Makes the walk experience feel alive even when alone.--## Scope-- New module: `src/walk-npcs.js`-- NPC types (each is a real three.ws avatar, fetched from the avatar API):- - `wanderer` — walks in random directions, idles, then walks again- - `greeter` — stays near spawn, waves when player approaches within 4m, speaks a greeting via TTS- - `guide` — walks ahead of the player, slows when player stops, points at things, narrates ("That's the gallery wing.")-- AI driver per NPC type:- - Simple finite state machine: `idle → wander → approach → speak → idle`- - Triggers: distance to player, time since last action, line-of-sight raycast-- Each NPC uses:- - The animation state machine (task 14) for gestures- - Speech bubbles (task 15) for dialogue- - TTS for voice (uses real `/api/tts/speak`)-- Dialogue lines are real and contextual to the environment (e.g., greeter on beach says "Welcome to the beach!" — write a small JSON dialogue table at `public/environments/<env>/dialogue.json` per environment)-- Spawn config in environment metadata: `npcs: [{ type: 'greeter', avatarId: '<id>', pos: [x,y,z] }]`-- HUD: optional toggle "NPCs: on/off" in settings overlay--## Definition of Done-- Load `?env=gallery&avatar=<id>` → at least one NPC is present and behaving correctly-- Walk near greeter → it waves and speaks a real TTS line-- Guide NPC actually leads you somewhere coherent (not random)-- NPCs do not collide with player (or do, configurably)-- No console errors--## Rules-Complete 100%. No stubs. No fake data. Real avatars for NPCs, real TTS, real dialogue. Wire end-to-end.--<!-- AUTO:self-delete-on-complete -->-------## ✅ On completion — delete this file--This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:--```bash-git rm "tasks/walk/19-walk-npc-companions.md"-```--Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.diff --git a/tasks/walk/34-section-narration-as-avatar-walks.md b/tasks/walk/34-section-narration-as-avatar-walks.mddeleted file mode 100644index f945a3769..000000000--- a/tasks/walk/34-section-narration-as-avatar-walks.md+++ /dev/null@@ -1,41 +0,0 @@-# Task 34 — Section Narration: Avatar Reads Sections of three.ws Pages--## Priority: MEDIUM--## Objective-Adapt the Chrome-extension narrator (task 09) for use inside three.ws itself: when walk mode is on, the companion avatar reads the section of the page currently in view, with the same speech-bubble + TTS treatment.--## Scope-- Module: `src/walk-companion-narrator.js`-- Use the same DOM section extraction as task 09 but tuned for three.ws marked-up content:- - Honor `data-walk-narrate="<id>"` attribute on three.ws sections — authors mark what should be read- - For unmarked pages, fall back to heading-based extraction-- Each marked section optionally carries `data-walk-script` with a custom script to be read (better copy than just innerText)-- IntersectionObserver triggers narration as sections come into view-- Avatar walks to the section's location on screen (companion canvas can move within bottom strip) before starting narration-- Skip narration on sections with `data-walk-narrate="skip"`-- Settings toggle in companion HUD: "Read sections aloud"--## Definition of Done-- Mark sections on `/features` with `data-walk-narrate` → avatar reads them as user scrolls-- Custom `data-walk-script` is used when provided-- Skip sections respected-- Toggle off mutes immediately-- No console errors--## Rules-Complete 100%. No stubs. No fake data. Real TTS, real DOM extraction. Wire end-to-end.--<!-- AUTO:self-delete-on-complete -->-------## ✅ On completion — delete this file--This file is a unit of work, not a permanent doc. The moment every item above is **built, wired, verified, and committed** to the "Definition of done" in the repo-root `CLAUDE.md`, remove it in the same change:--```bash-git rm "tasks/walk/34-section-narration-as-avatar-walks.md"-```--Stage the deletion alongside your implementation and include it in the completion commit. This directory is the backlog: a file that still exists is unfinished work; a file that is gone has shipped. Do not delete early, and never leave a completed prompt behind.