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.

Dashboard brain/home polish, onboarding docs, test updates, changelog regen

nirholas8f0b67df82b7
diff --git a/CHANGELOG.md b/CHANGELOG.md
index d206ab3a8..56d99d95b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -10,6 +10,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **AR & half-body avatar export fixed for compressed models** — View-in-AR (USDZ for iOS Quick Look) and the half-body VR-seat export now work for avatars that ship with meshopt or Draco geometry compression. Previously these exports silently failed on compressed GLBs because the loader had no decoder registered; the pipeline now loads the meshopt and Draco decoders before parsing, so every avatar — including the compressed ones produced by the server-side bake — converts cleanly. (`/gallery`) `[fix]`
- **Fixed broken links and added retry on failed loads across the app** — Several navigation links pointed at pages that no longer exist — "View plans" on the agent deploy flow, the Classic viewer menu item, and the API-key links on the AWS welcome and selfie pages — and now go to the right place. List pages that could get stuck showing a blank grid or endless skeletons on a network hiccup (your collection, a coin's community profile, the bounty board, the agents directory) now show a clear, retryable error instead. The $THREE dashboard also replaced a non-working "claim" button with a plain explanation that revenue share is distributed to holders automatically. `[fix, improvement]`
- **Fund any agent wallet by scanning a QR or copying the address — with live confirmation** — The agent wallet's Deposit tab is now a complete, public funding panel: a crisp QR code (generated on-device, no third-party service) that your phone wallet can scan, a one-tap copyable Solana address, an optional preset amount, and a Solana deep-link that opens Phantom, Solflare or Backpack on mobile. The panel watches the agent's real on-chain balance and confirms the moment your SOL lands — "◎0.5 SOL received" — instead of leaving you guessing. Anyone can fund an agent, not just its owner, and the new "Fund agent wallet" button on the create-agent success screen leads new users straight into it. `[feature]`
+- **Getting-started progress now follows you across the whole platform** — Your setup checklist no longer forgets what you've done. The floating "Getting started" guide and the dashboard's onboarding panel now share one source of truth: the moment you create an avatar, give an agent a personality, or embed a widget, every checklist on the site ticks that step — no more seeing "2 of 4 done" in one place and "0 of 3" in another on the same visit. Visiting your dashboard reconciles your real progress automatically, and saving a persona to an agent now completes the "give it a brain" step the instant it happens. `[improvement]`
- **Hardened the widget custom-brain proxy against internal-network abuse** — Chat widgets configured with a custom AI "brain" endpoint now route that request through our SSRF guard, so a widget owner can no longer point it at a private/internal address to probe our network. No change for legitimate public endpoints. We also tightened a few backend read paths so a temporary database or price-feed hiccup surfaces as "temporarily unavailable" instead of silently looking like empty data. `[security, improvement]`
- **IBM sites can now embed three.ws pages** — We extended the sitewide clickjacking protection to allow IBM properties to frame three.ws. Any page on ibm.com (and its subdomains) may now load three.ws pages inside an iframe — useful for the IBM x402 demo and other IBM-hosted integrations — while every other external site is still refused by default. Sign-in, wallet, dashboard and OAuth consent pages remain hard-locked and cannot be framed by anyone, including IBM. The avatar, widget and walk embeds continue to work on any site as before. `[security, improvement]`
- **Premium avatar cosmetics are now buyable right in the character creator** — Locked premium headwear, eyewear, dyes and auras in the character creator no longer dead-end on a placeholder — clicking one now opens the real wallet checkout and unlocks it the moment the USDC payment settles, then equips it on your live preview. Anything you already own loads pre-unlocked, and the price you see is the true checkout amount pulled from the catalog. (`/create`) `[feature, fix]`
diff --git a/data/changelog.json b/data/changelog.json
index e00a4ed24..aae4cd3a2 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1,6 +1,14 @@
{
"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.",
"entries": [
+ {
+ "date": "2026-06-19",
+ "title": "Getting-started progress now follows you across the whole platform",
+ "summary": "Your setup checklist no longer forgets what you've done. The floating \"Getting started\" guide and the dashboard's onboarding panel now share one source of truth: the moment you create an avatar, give an agent a personality, or embed a widget, every checklist on the site ticks that step — no more seeing \"2 of 4 done\" in one place and \"0 of 3\" in another on the same visit. Visiting your dashboard reconciles your real progress automatically, and saving a persona to an agent now completes the \"give it a brain\" step the instant it happens.",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-19",
"title": "Agent wallet's full money loop is now verified end-to-end on devnet",
diff --git a/docs/onboarding/ONBOARDING-PLAN-2026-06-19.md b/docs/onboarding/ONBOARDING-PLAN-2026-06-19.md
new file mode 100644
index 000000000..8181fb55c
--- /dev/null
+++ b/docs/onboarding/ONBOARDING-PLAN-2026-06-19.md
@@ -0,0 +1,90 @@
+# three.ws Onboarding Plan
+
+_Date: 2026-06-19 · Owner: platform · Status: Phase 1 in progress_
+
+## Goal
+
+Turn the existing, scattered onboarding pieces into one coherent first-run journey
+with a single source of truth for progress. Optimize the **consumer creator** path
+(Create → Brain → Embed) as the default, with the **agent-economy** path
+(wallet · fund · x402 · monetize) as an opt-in branch that unlocks only when the
+user reaches for it. No upfront crypto friction.
+
+## What already exists (do not rebuild)
+
+- **Floating guide** — [public/getting-started.js](../../public/getting-started.js):
+ welcome modal + resumable checklist (create/brain/embed core, onchain/monetize
+ optional). Public API: `window.__twsGuide.complete(id)` and the
+ `three-ws:guide` CustomEvent. Progress in `localStorage['tws-guide:progress']`.
+- **Dashboard onboarding panel** — [renderOnboarding()](../../src/dashboard-next/pages/home.js):
+ derives step completion from real server data (`avatars`, `agents`, `widgets`).
+- **Setup wizard** — [pages/start.html](../../pages/start.html).
+- **Post-creation banner** — [pages/app.html](../../pages/app.html) (`#agent-onboarding`).
+- **IRL permission onboarding** — [src/irl/onboarding.js](../../src/irl/onboarding.js) (self-contained).
+- **Shared state primitives** — [src/shared/state-kit.js](../../src/shared/state-kit.js).
+
+## The three real gaps
+
+1. **Two disconnected progress systems.** The dashboard panel knows the truth from
+ the server; the floating guide only guesses from the current route. They drift —
+ a user with an avatar + agent can see "2 of 4" on the dashboard and "0/3" in the
+ floating pill on the same session.
+2. **No funding onboarding.** Users are told "pay with a Base/Solana wallet" but are
+ never shown how to get USDC.
+3. **No x402 first-run context.** The payment modal appears with zero explanation.
+
+## Plan
+
+### Phase 1 — Unify the spine _(in progress)_
+
+Make the dashboard (which holds authoritative server state) the reconciler that
+keeps the floating guide honest, and replace fragile route-detection with precise
+completion signals.
+
+- **Reconcile guide from server truth.** On dashboard boot, after fetching
+ avatars/agents/widgets, emit `window.__twsGuide.complete()` for each genuinely
+ completed step (avatar→`create`, agent→`brain`, widget→`embed`). Runs even when
+ the panel is dismissed — reconciliation is data sync, not UI.
+ → [src/dashboard-next/pages/home.js](../../src/dashboard-next/pages/home.js)
+- **Precise brain completion.** Fire `three-ws:guide` step `brain` when a persona is
+ actually saved to an agent, not merely when `/brain` is visited.
+ → [src/dashboard-next/pages/brain.js](../../src/dashboard-next/pages/brain.js)
+- **Bidirectional panel sync.** The dashboard panel reflects guide progress for the
+ optional `monetize` step so completion reached on another surface ticks here too.
+ → [src/dashboard-next/pages/home.js](../../src/dashboard-next/pages/home.js)
+
+**Acceptance:** create an avatar + agent, never open the floating pill, visit the
+dashboard → the pill reads the correct core count. Save a persona to an agent → the
+`brain` step ticks without visiting any detection route. No console errors.
+
+### Phase 2 — Close the funding gap (consumer + economy)
+
+- Surface the `fund` skill as a designed step (how to get USDC on Base/Solana, what
+ it costs, why) instead of a bare payment prompt.
+- Activate it as an opt-in checklist branch only when the user triggers a
+ monetize/x402 action — progressive disclosure, never upfront.
+- Touchpoints: [src/dashboard-next/pages/monetize.js](../../src/dashboard-next/pages/monetize.js),
+ [pages/agent-wallet.html](../../pages/agent-wallet.html).
+
+### Phase 3 — x402 first-run explainer (economy track)
+
+- One-time, dismissible intro on the first x402 payment: what a micropayment is,
+ what's being paid, that it settles in USDC. Match the IRL onboarding card pattern.
+- Touchpoints: [pages/club.html](../../pages/club.html), [pages/shopper.html](../../pages/shopper.html).
+
+### Phase 4 — Polish + empty states
+
+- Replace minimal empty states (monetize/agents/widgets) with "here's your next
+ action" disclosure via [src/shared/state-kit.js](../../src/shared/state-kit.js).
+- Quality wins: keyboard nav through the checklist, hover/active/focus states,
+ transitions on step completion.
+
+## Step-id mapping (canonical)
+
+| Guide step (`getting-started.js`) | Dashboard panel | Server-truth source |
+| --------------------------------- | --------------- | -------------------------- |
+| `create` | avatar | `avatars.length > 0` |
+| `brain` | agent | persona saved / `agents` |
+| `embed` | widget | `widgets.length > 0` |
+| `onchain` (optional) | — | deploy/onchain surface |
+| `monetize` (optional) | monetize | guide progress / monetize |
diff --git a/public/changelog.json b/public/changelog.json
index 5449c16bf..ac357a612 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-19T00:39:58.999Z",
+ "generated_at": "2026-06-19T00:48:29.587Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -47,6 +47,16 @@
"feature"
]
},
+ {
+ "date": "2026-06-19",
+ "type": "update",
+ "title": "Getting-started progress now follows you across the whole platform",
+ "summary": "Your setup checklist no longer forgets what you've done. The floating \"Getting started\" guide and the dashboard's onboarding panel now share one source of truth: the moment you create an avatar, give an agent a personality, or embed a widget, every checklist on the site ticks that step — no more seeing \"2 of 4 done\" in one place and \"0 of 3\" in another on the same visit. Visiting your dashboard reconciles your real progress automatically, and saving a persona to an agent now completes the \"give it a brain\" step the instant it happens.",
+ "link": null,
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-19",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 85de99416..60142659c 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -38,6 +38,14 @@
<category>feature</category>
<description>The agent wallet's Deposit tab is now a complete, public funding panel: a crisp QR code (generated on-device, no third-party service) that your phone wallet can scan, a one-tap copyable Solana address, an optional preset amount, and a Solana deep-link that opens Phantom, Solflare or Backpack on mobile. The panel watches the agent's real on-chain balance and confirms the moment your SOL lands — &quot;◎0.5 SOL received&quot; — instead of leaving you guessing. Anyone can fund an agent, not just its owner, and the new &quot;Fund agent wallet&quot; button on the create-agent success screen leads new users straight into it.</description>
</item>
+ <item>
+ <title>Getting-started progress now follows you across the whole platform</title>
+ <link>https://three.ws/changelog</link>
+ <guid isPermaLink="false">2026-06-19:Getting-started progress now follows you across the whole platform</guid>
+ <pubDate>Fri, 19 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>Your setup checklist no longer forgets what you've done. The floating &quot;Getting started&quot; guide and the dashboard's onboarding panel now share one source of truth: the moment you create an avatar, give an agent a personality, or embed a widget, every checklist on the site ticks that step — no more seeing &quot;2 of 4 done&quot; in one place and &quot;0 of 3&quot; in another on the same visit. Visiting your dashboard reconciles your real progress automatically, and saving a persona to an agent now completes the &quot;give it a brain&quot; step the instant it happens.</description>
+ </item>
<item>
<title>Hardened the widget custom-brain proxy against internal-network abuse</title>
<link>https://three.ws/changelog</link>
diff --git a/public/features.json b/public/features.json
index 9271adb24..45d2d4048 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-19T00:39:58.962Z",
+ "generated_at": "2026-06-19T00:48:29.530Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/dashboard-next/pages/brain.js b/src/dashboard-next/pages/brain.js
index 8e2ca2508..f8de676ca 100644
--- a/src/dashboard-next/pages/brain.js
+++ b/src/dashboard-next/pages/brain.js
@@ -682,6 +682,9 @@ async function saveToAgent() {
await put(`/api/agents/${encodeURIComponent(agentId)}`, { persona });
const name = S.agents.find(a => a.id === agentId)?.name || 'agent';
toast(`Persona saved to ${name}`);
+ // Giving an agent a persona *is* the "give it a brain" milestone — report it
+ // precisely so the getting-started guide ticks without a route round-trip.
+ try { document.dispatchEvent(new CustomEvent('three-ws:guide', { detail: { step: 'brain' } })); } catch (_) {}
} catch (err) {
toast(`Save failed: ${err.message}`);
} finally {
diff --git a/src/dashboard-next/pages/home.js b/src/dashboard-next/pages/home.js
index 76e0fce4b..c53f79ada 100644
--- a/src/dashboard-next/pages/home.js
+++ b/src/dashboard-next/pages/home.js
@@ -83,6 +83,12 @@ const STATE = {
const widgets = widgetsRes.status === 'fulfilled' ? (widgetsRes.value?.widgets ?? []) : [];
const agents = agentsRes.status === 'fulfilled' ? (agentsRes.value?.agents ?? []) : [];
+ // The dashboard holds authoritative server state; the floating guide
+ // (getting-started.js) otherwise only infers progress from the current route
+ // and drifts. Reconcile it here on every dashboard visit — this is data sync,
+ // so it runs even when the onboarding panel is dismissed.
+ reconcileGuide({ avatars, agents, widgets });
+
renderHero(slots.hero, avatars, avatarsRes.status === 'rejected' ? avatarsRes.reason : null);
loadTradingOverview(slots.trading);
renderAgentHealth(slots.health, agents, widgets);
@@ -791,6 +797,25 @@ function renderForgeAnnounce(host) {
// ── Onboarding checklist ──────────────────────────────────────────────────
+// Sync the floating getting-started guide to authoritative server state. The
+// guide exposes window.__twsGuide.complete(id) and is idempotent — completing an
+// already-done step is a no-op, so this is safe to call on every dashboard load.
+function reconcileGuide({ avatars = [], agents = [], widgets = [] }) {
+ const guide = window.__twsGuide;
+ if (!guide || typeof guide.complete !== 'function') return;
+ try {
+ if (avatars.length > 0) guide.complete('create', { silent: true });
+ if (agents.length > 0) guide.complete('brain', { silent: true });
+ if (widgets.length > 0) guide.complete('embed', { silent: true });
+ } catch (_) {}
+}
+
+// Has the user completed the optional monetize step on any surface? The guide is
+// the cross-page record of record for it.
+function guideStepDone(id) {
+ try { return !!window.__twsGuide?.progress?.()[id]; } catch (_) { return false; }
+}
+
function renderOnboarding(host, { avatars, agents, widgets }) {
const steps = [
{
@@ -823,7 +848,7 @@ function renderOnboarding(host, { avatars, agents, widgets }) {
sub: 'Charge per message, set a subscription, or let fans tip — paid out in USDC.',
href: '/dashboard/monetize',
cta: 'Set up monetization',
- done: false,
+ done: guideStepDone('monetize'),
optional: true,
optionalTip: 'Earning and payouts settle in USDC and need a wallet. It is entirely opt-in — skip it and the rest of your agent works exactly the same.',
},
diff --git a/tests/api/avatar-og.test.js b/tests/api/avatar-og.test.js
index 4a0bac46d..9d3185fa8 100644
--- a/tests/api/avatar-og.test.js
+++ b/tests/api/avatar-og.test.js
@@ -28,11 +28,6 @@ vi.mock('../../api/_lib/env.js', () => ({
vi.mock('../../api/_lib/zauth.js', () => ({ instrument: () => {}, drain: async () => {} }));
vi.mock('../../api/_lib/sentry.js', () => ({ captureException: () => {} }));
-vi.mock('../../api/_lib/demo-avatars.js', () => ({
- DEMO_AVATARS: [
- { avatarId: 'avatar_demo_alice', name: 'Alice', description: 'A demo', tags: ['demo'] },
- ],
-}));
const { default: handler, __testInternals } = await import('../../api/avatar-og.js');
@@ -68,16 +63,7 @@ beforeEach(() => {
// ── Tests ──────────────────────────────────────────────────────────────────
-describe('GET /api/avatar/:id/og — demo + 404 paths', () => {
- it('returns SVG card for known demo avatar', async () => {
- const req = mkReq({ url: '/api/avatar/avatar_demo_alice/og' });
- const res = mkRes();
- await handler(req, res);
- expect(res.statusCode).toBe(200);
- expect(res._h['content-type']).toMatch(/image\/svg/);
- expect(String(res._body)).toContain('Alice');
- });
-
+describe('GET /api/avatar/:id/og — 404 paths', () => {
it('returns SVG 404 for unknown demo id', async () => {
const req = mkReq({ url: '/api/avatar/avatar_demo_nope/og' });
const res = mkRes();
diff --git a/tests/api/oauth-introspect.test.js b/tests/api/oauth-introspect.test.js
index 5435f8407..f20fa7280 100644
--- a/tests/api/oauth-introspect.test.js
+++ b/tests/api/oauth-introspect.test.js
@@ -24,6 +24,7 @@ vi.mock('../../api/_lib/db.js', () => ({
vi.mock('../../api/_lib/rate-limit.js', () => ({
limits: {
oauthToken: vi.fn(async () => ({ success: true })),
+ authIp: vi.fn(async () => ({ success: true })),
},
clientIp: () => '127.0.0.1',
}));