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.

style(docs,tests): drop banned dashes from the onboarding flow doc and the avatar SDK suite header

nirholas431a303de8d9
diff --git a/docs/ux-flows/01-onboarding-creation.md b/docs/ux-flows/01-onboarding-creation.md
index df9569862..1bad1c78e 100644
--- a/docs/ux-flows/01-onboarding-creation.md
+++ b/docs/ux-flows/01-onboarding-creation.md
@@ -98,10 +98,10 @@
2. **Step 0 (Basics).** Enter name (required, ≤60), description (≤280), and tags (≤8, Enter/comma to add). (optional) Use the **"Build it for me"** AI box: type a one-line brief (or a chip / "✦ Surprise me") → POST `/api/agents/suggest-spec` → the returned spec fills the whole wizard and jumps to Review. Guests can generate too; the guest rate limit maps a 429 to a sign-in nudge. Click "Next" → validates name present.
3. **Step 1 — Model.** Choose a body via one of four tabs: **Starter** (4 shipped GLBs: Vern/CZ/Saga/Boss with `model-viewer` previews), **Library** (your owned avatars, paginated via `GET /api/avatars`, filtered to avatar/creature categories), **Upload** (drag-drop `.glb` ≤16 MB, validated by GLB magic), or **Add later** (must tick the `#f-skip-ack` confirm box → default starter assigned at create). Selected model renders in the live preview. Click "Next" → requires a starter/upload/library pick or acknowledged skip.
4. **Step 2 — Skills.** Five core skills (greet/present-model/validate-model/remember/think) are locked on; toggle optional skills (wave/dance/pump-fun/explain-gltf/web-search). Click "Next".
- 5. **Step 3 — Personality.** Pick category (14 marketplace categories), greeting (≤200), and profile/system prompt (≤2000). (optional) Run the **onboarding interview** (`#interview-*`): answer any of the shared `INTERVIEW_QUESTIONS` in your own words → POST `/api/persona/interview` runs them through the platform LLM chain and writes the extracted paragraph into the profile field (editable), with tone tags rendered as chips; the structured result (traits, tone tags, vocabulary, answer provenance) rides in state until the agent exists. Click "Next" (soft tip if publishing without category+prompt).
- 6. **Step 4 — Voice.** Pick **Built-in voice** or **Clone your voice** (`data-voice` buttons). Choosing custom mounts `VoiceSetup` in `bind:'later'` mode: record or upload a short sample (validated in-browser, with inline BYOK ElevenLabs key entry via `PATCH /api/user/provider-keys`); the sample is held in memory and bound after create. Click "Next".
+ 5. **Step 3, Personality.** Pick category (14 marketplace categories), greeting (≤200), and profile/system prompt (≤2000). (optional) Run the **onboarding interview** (`#interview-*`): answer any of the shared `INTERVIEW_QUESTIONS` in your own words → POST `/api/persona/interview` runs them through the platform LLM chain and writes the extracted paragraph into the profile field (editable), with tone tags rendered as chips; the structured result (traits, tone tags, vocabulary, answer provenance) rides in state until the agent exists. Click "Next" (soft tip if publishing without category+prompt).
+ 6. **Step 4, Voice.** Pick **Built-in voice** or **Clone your voice** (`data-voice` buttons). Choosing custom mounts `VoiceSetup` in `bind:'later'` mode: record or upload a short sample (validated in-browser, with inline BYOK ElevenLabs key entry via `PATCH /api/user/provider-keys`); the sample is held in memory and bound after create. Click "Next".
7. **Step 5 (Review).** Editable summary grid (each row jumps back to its step). Toggle "Publish to marketplace" (`#f-publish`, default on). Click "Create" (or "Sign in to ship…" when signed out, which round-trips through `/login` and resumes here).
- 8. `submit()`: (a) resolves the body to a real owned avatar — `saveRemoteGlbToAccount` for starter URL or uploaded file (with upload % progress), library = connect directly, none = assign default starter; (b) POST `/api/agents` (name, description, skills, avatar_id, meta with greeting/voice/tags); (c) if a custom voice sample is held → `voiceSetup.bindTo(agent.id)` clones it onto the new agent (non-fatal: a failure becomes a soft warning); (d) if publish opted-in AND category+prompt present → POST `/api/marketplace/agents/:id/publish`; (e) if the interview produced a result → POST `/api/agents/:id/persona/save` persists the structured persona with interview provenance (also best-effort).
+ 8. `submit()`: (a) resolves the body to a real owned avatar (`saveRemoteGlbToAccount` for starter URL or uploaded file (with upload % progress), library = connect directly, none = assign default starter; (b) POST `/api/agents` (name, description, skills, avatar_id, meta with greeting/voice/tags); (c) if a custom voice sample is held → `voiceSetup.bindTo(agent.id)` clones it onto the new agent (non-fatal: a failure becomes a soft warning); (d) if publish opted-in AND category+prompt present → POST `/api/marketplace/agents/:id/publish`; (e) if the interview produced a result → POST `/api/agents/:id/persona/save` persists the structured persona with interview provenance (also best-effort).
9. Success panel: "<name> is ready", 3D preview if public, and buttons: **Go live** (`/agent/<id>/wallet#activate`, primary; claims the on-chain welcome grant), Fund wallet (`/agent/<id>/wallet#deposit`), Open (`/agent/<id>`), Edit (`/agent/<id>/edit`), Widget Studio (`/studio?model=<avatar_model_url>`), and Give it a voice (`/voice`).
- **Guest draft autosave:** every input change debounce-saves (600 ms) to `localStorage['threews:create-agent:draft']` once the form has real content, with a `beforeunload` flush; drafts expire after 7 days (`src/create-agent-draft.js`). A returning guest resumes on the exact saved step with "Resumed your saved draft. [Start fresh]". A picked upload `File` cannot survive navigation: the draft marks it lost, downgrades the model to "Add later", and asks the user to re-attach on the model step. Creation stops the autosave so a shipped agent never resurrects as a draft.
- **Decision points / branches:** signed-in ship vs signed-out login round-trip (draft preserved); AI-generated spec vs manual form; model tab (starter/library/upload/skip); interviewed persona vs hand-typed prompt (a fresh AI-spec fill resets the interview so a new concept never inherits the previous voice); built-in voice vs cloned sample; publish on/off and whether publish prerequisites are met (publishes vs creates private with a soft warning); name conflict (409 → bounce to Step 0 to rename); resume draft vs "Start fresh"; per-step jump-back via stepper pips and review "Edit" buttons.
diff --git a/tests/avatar-sdk-api.test.js b/tests/avatar-sdk-api.test.js
index 39f8c5036..54a80b388 100644
--- a/tests/avatar-sdk-api.test.js
+++ b/tests/avatar-sdk-api.test.js
@@ -1,6 +1,6 @@
// @vitest-environment jsdom
//
-// @three-ws/avatar public API — the surface the README promises to consumers.
+// @three-ws/avatar public API: the surface the README promises to consumers.
//
// The package ships four entry points and only one of them (`./viewer`'s
// rendering half) genuinely needs WebGL. Everything else is plain DOM and fetch