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.

feat: walk tasks 31-42, vercel routes overhaul, agent-edit, app, nav, sitemap cleanup

nirholas0a706e9fe6d0
diff --git a/README.md b/README.md
index 325ba9e94..df049c52a 100644
--- a/README.md
+++ b/README.md
@@ -1507,7 +1507,6 @@ Commands live in [`.claude/commands/`](.claude/commands/) and are picked up auto
| **Audio-driven lipsync (mic)** | `/lipsync/mic` | Live microphone → ARKit-52 lip-sync |
| **Audio-driven lipsync (TTS)** | `/lipsync` | ElevenLabs TTS → ARKit-52 lip-sync |
| **Multi-LLM brain** | `/brain` | Side-by-side comparison of Claude / GPT / Groq / Gemini |
-| **3D walkaround** | `/walkaround` | Single-player walking + camera controls |
| **ERC-8004 registry browser** | `/demos/erc8004.html` | Browse all registered agents across chains |
| **Button jump** | `/demos/button-jump.html` | Avatar reacts to a 2D button press |
| **Tactile button (Gemini concept)** | `/demos/gemini-jump.html` | Tactile button demo with avatar |
diff --git a/data/pages.json b/data/pages.json
index 8aacca80a..68a4f7d3a 100644
--- a/data/pages.json
+++ b/data/pages.json
@@ -184,13 +184,6 @@
"changefreq": "weekly",
"added": "2026-05-18"
},
- {
- "path": "/walkaround",
- "title": "3D Walkaround",
- "description": "WASD + mobile joystick navigation with Rapier physics and Recast navmesh. Click the ground to autopilot.",
- "priority": 0.7,
- "changefreq": "weekly"
- },
{
"path": "/brain",
"title": "Multi-LLM Brain",
diff --git a/docs/demo-routes.md b/docs/demo-routes.md
index ebc70f650..3fe9b070e 100644
--- a/docs/demo-routes.md
+++ b/docs/demo-routes.md
@@ -49,9 +49,8 @@ Both must be kept in sync.
| `/demos/skill-royalty` | `public/demos/skill-royalty.html` | Skill royalty distribution demo. |
| `/demos/usdz-ar` | `public/demos/usdz-ar.html` | USDZ + AR Quick Look (iOS). |
| `/demos/voice-clone` | `public/demos/voice-clone.html` | Voice cloning demo. |
-| `/demos/walkaround` | `public/demos/walkaround.html` | 3D walkaround scene. |
-The legacy `/walkaround`, `/brain`, `/lipsync`, `/lipsync/mic`
+The legacy `/brain`, `/lipsync`, `/lipsync/mic`
shortcuts in `vercel.json` still resolve to the `/demos/*.html` files
above. They predate the `/demos/` namespace and are kept for backward
compatibility — prefer the `/demos/<slug>` form for new links.
diff --git a/pages/create-review.html b/pages/create-review.html
index 6edcf9865..644bc4f0a 100644
--- a/pages/create-review.html
+++ b/pages/create-review.html
@@ -1051,59 +1051,6 @@
}
.guest-note strong { color: var(--text); font-weight: 600; }
- .empty {
- text-align: center;
- background: var(--panel);
- border: 1.5px solid var(--border);
- border-radius: 14px;
- padding: 56px 32px 48px;
- color: var(--muted);
- max-width: 520px;
- margin: 32px auto 0;
- display: flex;
- flex-direction: column;
- align-items: center;
- gap: 12px;
- }
- .empty-icon {
- font-size: 48px;
- line-height: 1;
- opacity: 0.55;
- margin-bottom: 4px;
- }
- .empty-title {
- font-size: 17px;
- font-weight: 600;
- color: var(--text);
- margin: 0;
- letter-spacing: -0.01em;
- }
- .empty-sub {
- font-size: 13px;
- color: var(--muted);
- margin: 0;
- max-width: 36ch;
- line-height: 1.5;
- }
- .empty-cta {
- display: inline-flex;
- align-items: center;
- gap: 6px;
- margin-top: 8px;
- background: var(--accent);
- color: var(--accent-ink);
- border: none;
- border-radius: 10px;
- padding: 11px 20px;
- font: inherit;
- font-weight: 600;
- font-size: 14px;
- text-decoration: none;
- cursor: pointer;
- transition: filter 0.15s;
- }
- .empty-cta:hover { filter: brightness(1.05); }
-
#save-loading {
position: fixed;
inset: 0;
@@ -1257,13 +1204,6 @@
take it offline — see what your new agent can do, then claim it.
</p>
- <div id="empty-card" class="empty" hidden>
- <div class="empty-icon" aria-hidden="true">🧍</div>
- <p class="empty-title">No avatar in progress</p>
- <p class="empty-sub">Generate a 3D avatar — then come back here to try voice, embed it anywhere, and claim it on-chain.</p>
- <a href="/create" class="empty-cta">Create an avatar →</a>
- </div>
-
<div id="content" class="grid" hidden>
<div class="viewer">
<div class="viewer-loading" id="viewer-loading">
diff --git a/pages/walk.html b/pages/walk.html
index 08221a422..95a26c3ea 100644
--- a/pages/walk.html
+++ b/pages/walk.html
@@ -250,13 +250,14 @@
color: var(--text);
}
- /* Hide help text on small/touch screens — joystick is enough */
+ /* Hide help text on small/touch screens — joystick is enough.
+ Joystick stays visible on all devices: mouse-drag works on
+ desktop the same way touch does on mobile, and keeping the
+ element laid out from page load ensures nipplejs measures
+ its 140×140 zone correctly. */
@media (hover: none), (max-width: 640px) {
#walk-help { display: none; }
}
- @media (hover: hover) and (min-width: 641px) {
- #walk-joystick { display: none; }
- }
/* ── Multiplayer HUD ────────────────────────────────────────────── */
#walk-online {
diff --git a/pages/widget-studio.html b/pages/widget-studio.html
deleted file mode 100644
index 3d2b65001..000000000
--- a/pages/widget-studio.html
+++ /dev/null
@@ -1,619 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="utf-8" />
- <title>Widget Studio · three.ws</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <link rel="stylesheet" href="/style.css" />
- <link rel="stylesheet" href="/marketplace.css" />
- <script type="module" src="https://ajax.googleapis.com/ajax/libs/model-viewer/4.0.0/model-viewer.min.js"></script>
- <style>
- .studio-container {
- display: flex;
- height: 100vh;
- }
- .studio-sidebar {
- width: 320px;
- padding: 20px;
- background: #111;
- color: #eee;
- overflow-y: auto;
- flex-shrink: 0;
- }
- .studio-preview {
- flex-grow: 1;
- padding: 20px;
- display: flex;
- flex-direction: column;
- gap: 16px;
- }
- .studio-preview iframe {
- flex: 1;
- border: 1px solid #333;
- border-radius: 6px;
- }
- .form-group {
- margin-bottom: 18px;
- }
- .form-group label {
- display: block;
- margin-bottom: 6px;
- font-size: 11px;
- text-transform: uppercase;
- letter-spacing: 0.04em;
- color: #888;
- }
- .form-group input[type="text"],
- .form-group input[type="color"],
- .form-group select {
- width: 100%;
- padding: 8px;
- background: #1a1a1a;
- border: 1px solid #333;
- color: #eee;
- border-radius: 4px;
- box-sizing: border-box;
- font-size: 13px;
- }
- .form-group input[type="color"] {
- height: 36px;
- padding: 2px 4px;
- cursor: pointer;
- }
-
- /* avatar gallery */
- .avatar-gallery {
- display: grid;
- grid-template-columns: repeat(2, 1fr);
- gap: 8px;
- margin-bottom: 10px;
- }
- .av-card {
- border: 2px solid #2a2a2a;
- border-radius: 6px;
- cursor: pointer;
- background: #0d0d0d;
- overflow: hidden;
- position: relative;
- height: 110px;
- display: flex;
- align-items: flex-end;
- justify-content: center;
- padding-bottom: 7px;
- transition: border-color 0.15s;
- }
- .av-card:hover { border-color: #444; }
- .av-card.selected { border-color: #4a9eff; }
- .av-card model-viewer {
- position: absolute;
- inset: 0;
- width: 100%;
- height: 100%;
- --poster-color: transparent;
- }
- .av-card-label {
- position: relative;
- z-index: 1;
- font-size: 11px;
- color: #ddd;
- background: rgba(0,0,0,0.6);
- padding: 2px 7px;
- border-radius: 3px;
- }
- .av-card-custom {
- background: #0d0d0d;
- border: 2px dashed #2a2a2a;
- color: #555;
- font-size: 12px;
- text-align: center;
- flex-direction: column;
- gap: 4px;
- justify-content: center;
- align-items: center;
- padding-bottom: 0;
- }
- .av-card-custom .plus { font-size: 22px; color: #333; line-height: 1; }
-
- #embed-code {
- width: 100%;
- background: #0a0a0a;
- color: #00ff41;
- padding: 10px;
- border: 1px solid #2a2a2a;
- border-radius: 4px;
- min-height: 80px;
- white-space: pre-wrap;
- word-wrap: break-word;
- font-family: monospace;
- font-size: 11px;
- }
- #copy-btn {
- background: #1e1e1e;
- border: 1px solid #333;
- color: #ccc;
- padding: 8px 16px;
- font-size: 12px;
- cursor: pointer;
- border-radius: 4px;
- width: 100%;
- margin-top: 8px;
- }
- #copy-btn:hover { background: #252525; color: #fff; }
-
- /* motion path section */
- .section-divider { border: none; border-top: 1px solid #1e1e1e; margin: 18px 0 14px; }
- .section-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: #555; margin: 0 0 12px; }
- #path-canvas-wrap {
- position: relative; border: 1px solid #2a2a2a; border-radius: 4px;
- overflow: hidden; height: 150px; background: #070707; cursor: crosshair;
- }
- #path-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
- #path-hint {
- position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
- color: #333; font-size: 11px; pointer-events: none; white-space: nowrap;
- }
- #clear-path-btn {
- background: #111; border: 1px solid #2a2a2a; color: #666;
- padding: 5px 10px; font-size: 11px; cursor: pointer;
- border-radius: 3px; width: 100%; margin-top: 6px;
- }
- #clear-path-btn:hover { color: #ccc; border-color: #444; }
- .range-row { display: flex; align-items: center; gap: 8px; }
- .range-row input[type="range"] { flex: 1; accent-color: #4a9eff; }
- .range-val { font-size: 12px; color: #aaa; min-width: 28px; text-align: right; }
- #preview-motion-btn {
- background: #0e2340; border: 1px solid #1a4a80; color: #4a9eff;
- padding: 8px; font-size: 12px; cursor: pointer;
- border-radius: 4px; width: 100%; margin-top: 10px;
- }
- #preview-motion-btn:hover { background: #132d55; }
- #preview-motion-btn:disabled { opacity: 0.4; cursor: default; }
-
- /* preview pane overlay for motion demo */
- .studio-preview { position: relative; }
- #motion-preview-overlay {
- position: absolute; inset: 20px; pointer-events: none;
- z-index: 10; overflow: hidden; border-radius: 6px;
- }
- </style>
- <link rel="stylesheet" href="/nav.css" />
- <link rel="stylesheet" href="/footer.css" />
- <script defer src="/footer-newsletter.js"></script>
- </head>
- <body class="market-page">
- <header class="site-header">
- <h1 class="site-header-brand">
- <a href="/" aria-label="three.ws home"><img class="wordmark-logo" src="/three.svg" alt="" aria-hidden="true" /><span class="wordmark-dot" aria-hidden="true"></span>three.ws</a>
- </h1>
- <div id="nav-container"></div>
- </header>
- <script src="/nav.js"></script>
-
- <div class="studio-container">
- <aside class="studio-sidebar">
- <h2 style="margin-top:0">Widget Studio</h2>
-
- <div class="form-group">
- <label>Avatar</label>
- <div class="avatar-gallery" id="avatar-gallery">
- <!-- built by JS -->
- </div>
- <input type="text" id="custom-avatar-url" placeholder="Paste custom GLB/GLTF URL…" />
- </div>
-
- <div class="form-group">
- <label>Starting Animation</label>
- <select id="anim-select">
- <option value="">None (idle)</option>
- </select>
- </div>
-
- <div class="form-group">
- <label style="display:flex;align-items:center;gap:8px;cursor:pointer;">
- <input type="checkbox" id="anim-picker-toggle" checked style="width:auto;margin:0;" />
- Show animation picker in embed
- </label>
- </div>
-
- <div class="form-group">
- <label>Background</label>
- <select id="bg-select">
- <option value="transparent">Transparent</option>
- <option value="dark">Dark</option>
- <option value="light">Light</option>
- </select>
- </div>
-
- <div class="form-group">
- <label>Brand Color</label>
- <input type="color" id="brand-color" value="#4a9eff" />
- </div>
-
- <div class="form-group">
- <label>Theme</label>
- <select id="theme-select">
- <option value="dark">Dark</option>
- <option value="light">Light</option>
- </select>
- </div>
-
- <hr class="section-divider" />
- <p class="section-title">Motion Path</p>
-
- <div class="form-group">
- <label>Preset</label>
- <select id="motion-preset">
- <option value="">None (Static)</option>
- <option value="patrol">Patrol — left &harr; right</option>
- <option value="slide-in">Slide In</option>
- <option value="bounce-across">Bounce Across</option>
- <option value="orbit">Orbit</option>
- <option value="figure-eight">Figure Eight</option>
- <option value="float">Float</option>
- <option value="custom">Custom (Draw Path)</option>
- </select>
- </div>
-
- <div class="form-group" id="draw-group" style="display:none">
- <label>Draw Path <span style="color:#555;font-weight:normal">(click to place points)</span></label>
- <div id="path-canvas-wrap">
- <canvas id="path-canvas"></canvas>
- <span id="path-hint">Click to add control points</span>
- </div>
- <button id="clear-path-btn">Clear Path</button>
- </div>
-
- <div id="motion-options-group" style="display:none">
- <div class="form-group">
- <label>Duration</label>
- <div class="range-row">
- <input type="range" id="motion-duration" min="1" max="15" step="0.5" value="4" />
- <span class="range-val" id="motion-duration-val">4s</span>
- </div>
- </div>
- <div class="form-group">
- <label>Repeat</label>
- <select id="motion-loop">
- <option value="true">Loop</option>
- <option value="false">Play Once</option>
- </select>
- </div>
- <div class="form-group">
- <label>Walk Animation</label>
- <select id="motion-walk-anim">
- <option value="Walking">Walking</option>
- <option value="dance_shuffle">Dancing</option>
- <option value="Energic_conductor">Energetic</option>
- </select>
- </div>
- <button id="preview-motion-btn" disabled>&#9654; Preview Motion</button>
- </div>
-
- <h3 style="font-size:13px;color:#888;margin-bottom:6px;margin-top:18px;">Embed Code</h3>
- <pre id="embed-code"><code></code></pre>
- <button id="copy-btn">Copy Code</button>
- </aside>
- <main class="studio-preview">
- <div id="motion-preview-overlay"></div>
- <iframe id="widget-preview" style="width:100%;height:100%;border:1px solid #333;border-radius:6px;"></iframe>
- </main>
- </div>
-
- <script>
- const AVATARS = [
- { id: 'default', label: 'Default', url: '/avatars/default.glb' },
- { id: 'cz', label: 'CZ', url: '/avatars/cz.glb' },
- ];
-
- const gallery = document.getElementById('avatar-gallery');
- const customUrlInput = document.getElementById('custom-avatar-url');
- const animSelect = document.getElementById('anim-select');
- const animPickerToggle = document.getElementById('anim-picker-toggle');
- const bgSelect = document.getElementById('bg-select');
- const brandColorInput = document.getElementById('brand-color');
- const themeSelect = document.getElementById('theme-select');
- const embedCodeEl = document.getElementById('embed-code').querySelector('code');
- const previewFrame = document.getElementById('widget-preview');
- const copyBtn = document.getElementById('copy-btn');
-
- // ── Motion controls ───────────────────────────────────────────────
- const motionPresetSel = document.getElementById('motion-preset');
- const drawGroup = document.getElementById('draw-group');
- const motionOptionsGrp = document.getElementById('motion-options-group');
- const pathCanvas = document.getElementById('path-canvas');
- const pathHint = document.getElementById('path-hint');
- const clearPathBtn = document.getElementById('clear-path-btn');
- const motionDurationEl = document.getElementById('motion-duration');
- const motionDurationVal = document.getElementById('motion-duration-val');
- const motionLoopSel = document.getElementById('motion-loop');
- const motionWalkSel = document.getElementById('motion-walk-anim');
- const previewMotionBtn = document.getElementById('preview-motion-btn');
- const motionOverlay = document.getElementById('motion-preview-overlay');
-
- let selectedAvatarUrl = AVATARS[0].url;
- let customPathPoints = [];
- let activeMotionPath = null;
- let motionPathLoaded = false;
-
- // ── Populate animation dropdown from real manifest ────────────────
- fetch('/animations/manifest.json')
- .then(r => r.ok ? r.json() : [])
- .then(defs => {
- for (const def of defs) {
- const opt = document.createElement('option');
- opt.value = def.name;
- opt.textContent = (def.icon ? def.icon + ' ' : '') + (def.label || def.name);
- animSelect.appendChild(opt);
- }
- })
- .catch(() => {});
-
- // ── Avatar gallery ────────────────────────────────────────────────
- AVATARS.forEach(av => {
- const card = document.createElement('div');
- card.className = 'av-card' + (av.url === selectedAvatarUrl ? ' selected' : '');
- card.dataset.url = av.url;
-
- const mv = document.createElement('model-viewer');
- mv.setAttribute('src', av.url);
- mv.setAttribute('auto-rotate', '');
- mv.setAttribute('camera-controls', '');
- mv.setAttribute('shadow-intensity', '0.5');
- mv.style.cssText = 'position:absolute;inset:0;width:100%;height:100%;--poster-color:transparent';
-
- const lbl = document.createElement('span');
- lbl.className = 'av-card-label';
- lbl.textContent = av.label;
-
- card.appendChild(mv);
- card.appendChild(lbl);
-
- card.addEventListener('click', () => {
- gallery.querySelectorAll('.av-card').forEach(c => c.classList.remove('selected'));
- card.classList.add('selected');
- selectedAvatarUrl = av.url;
- customUrlInput.value = '';
- updatePreviewAndCode();
- });
-
- gallery.appendChild(card);
- });
-
- const customCard = document.createElement('div');
- customCard.className = 'av-card av-card-custom';
- customCard.innerHTML = '<span class="plus">+</span>Custom URL';
- customCard.addEventListener('click', () => { customUrlInput.focus(); });
- gallery.appendChild(customCard);
-
- customUrlInput.addEventListener('input', () => {
- const val = customUrlInput.value.trim();
- if (val) {
- gallery.querySelectorAll('.av-card').forEach(c => c.classList.remove('selected'));
- customCard.classList.add('selected');
- selectedAvatarUrl = val;
- } else {
- customCard.classList.remove('selected');
- const first = gallery.querySelector('.av-card:not(.av-card-custom)');
- if (first) {
- first.classList.add('selected');
- selectedAvatarUrl = first.dataset.url;
- }
- }
- updatePreviewAndCode();
- });
-
- // ── Motion preset change ──────────────────────────────────────────
- motionPresetSel.addEventListener('change', () => {
- const val = motionPresetSel.value;
- drawGroup.style.display = val === 'custom' ? 'block' : 'none';
- motionOptionsGrp.style.display = val ? 'block' : 'none';
- previewMotionBtn.disabled = !val || (val === 'custom' && customPathPoints.length < 2);
- updatePreviewAndCode();
- });
-
- motionDurationEl.addEventListener('input', () => {
- motionDurationVal.textContent = motionDurationEl.value + 's';
- updatePreviewAndCode();
- });
- motionLoopSel.addEventListener('change', updatePreviewAndCode);
- motionWalkSel.addEventListener('change', updatePreviewAndCode);
-
- // ── Canvas draw mode ──────────────────────────────────────────────
- function resizeCanvas() {
- const wrap = pathCanvas.parentElement;
- pathCanvas.width = wrap.clientWidth;
- pathCanvas.height = wrap.clientHeight;
- drawPathCanvas();
- }
-
- function evalSplinePreview(pts, t) {
- const n = pts.length;
- if (n === 1) return pts[0];
- if (n === 2) return [pts[0][0] + (pts[1][0] - pts[0][0]) * t, pts[0][1] + (pts[1][1] - pts[0][1]) * t];
- const segments = n - 1;
- const seg = Math.min(Math.floor(t * segments), segments - 1);
- const lt = t * segments - seg;
- const p0 = pts[Math.max(seg - 1, 0)];
- const p1 = pts[seg];
- const p2 = pts[Math.min(seg + 1, n - 1)];
- const p3 = pts[Math.min(seg + 2, n - 1)];
- const t2 = lt * lt, t3 = t2 * lt;
- return [
- 0.5 * ((2*p1[0]) + (-p0[0]+p2[0])*lt + (2*p0[0]-5*p1[0]+4*p2[0]-p3[0])*t2 + (-p0[0]+3*p1[0]-3*p2[0]+p3[0])*t3),
- 0.5 * ((2*p1[1]) + (-p0[1]+p2[1])*lt + (2*p0[1]-5*p1[1]+4*p2[1]-p3[1])*t2 + (-p0[1]+3*p1[1]-3*p2[1]+p3[1])*t3)
- ];
- }
-
- function drawPathCanvas() {
- const ctx = pathCanvas.getContext('2d');
- const w = pathCanvas.width, h = pathCanvas.height;
- ctx.clearRect(0, 0, w, h);
-
- if (customPathPoints.length === 0) return;
-
- const toCanvas = ([fx, fy]) => [fx * w, fy * h];
-
- if (customPathPoints.length >= 2) {
- ctx.beginPath();
- ctx.strokeStyle = '#4a9eff';
- ctx.lineWidth = 2;
- const start = toCanvas(evalSplinePreview(customPathPoints, 0));
- ctx.moveTo(start[0], start[1]);
- for (let i = 1; i <= 80; i++) {
- const pt = toCanvas(evalSplinePreview(customPathPoints, i / 80));
- ctx.lineTo(pt[0], pt[1]);
- }
- ctx.stroke();
- }
-
- customPathPoints.forEach((p, i) => {
- const [cx, cy] = toCanvas(p);
- ctx.beginPath();
- ctx.arc(cx, cy, 5, 0, Math.PI * 2);
- ctx.fillStyle = i === 0 ? '#00ff88' : i === customPathPoints.length - 1 ? '#ff4444' : '#4a9eff';
- ctx.fill();
- });
- }
-
- pathCanvas.addEventListener('pointerdown', e => {
- const rect = pathCanvas.getBoundingClientRect();
- const fx = (e.clientX - rect.left) / rect.width;
- const fy = (e.clientY - rect.top) / rect.height;
- customPathPoints.push([fx, fy]);
- pathHint.style.display = 'none';
- drawPathCanvas();
- previewMotionBtn.disabled = customPathPoints.length < 2;
- updatePreviewAndCode();
- });
-
- clearPathBtn.addEventListener('click', () => {
- customPathPoints = [];
- pathHint.style.display = '';
- drawPathCanvas();
- previewMotionBtn.disabled = true;
- updatePreviewAndCode();
- });
-
- new ResizeObserver(resizeCanvas).observe(pathCanvas.parentElement);
- setTimeout(resizeCanvas, 50);
-
- // ── Motion path lazy loader ───────────────────────────────────────
- function loadMotionPath(cb) {
- if (motionPathLoaded) { cb(); return; }
- const s = document.createElement('script');
- s.src = '/motion-path.js';
- s.onload = () => { motionPathLoaded = true; cb(); };
- document.head.appendChild(s);
- }
-
- function stopMotionPreview() {
- if (activeMotionPath) {
- activeMotionPath.stop();
- activeMotionPath = null;
- }
- // Return iframe to its normal position in the preview pane
- const previewPane = document.querySelector('.studio-preview');
- if (previewFrame.parentElement !== previewPane) {
- previewPane.appendChild(previewFrame);
- }
- previewFrame.style.position = '';
- previewFrame.style.left = '';
- previewFrame.style.top = '';
- previewFrame.style.width = '';
- previewFrame.style.height = '';
- motionOverlay.innerHTML = '';
- }
-
- previewMotionBtn.addEventListener('click', () => {
- stopMotionPreview();
- loadMotionPath(() => {
- const cfg = buildMotionConfig();
- if (!cfg) return;
-
- // Move iframe into overlay for isolated motion demo
- motionOverlay.style.pointerEvents = 'none';
- const overlayRect = motionOverlay.getBoundingClientRect();
-
- previewFrame.style.position = 'absolute';
- previewFrame.style.width = '200px';
- previewFrame.style.height = '320px';
- previewFrame.style.border = 'none';
- motionOverlay.appendChild(previewFrame);
-
- // Scale points to overlay-relative fractions
- const scaledCfg = Object.assign({}, cfg, { duration: cfg.duration });
-
- activeMotionPath = new window.MotionPath(previewFrame, scaledCfg, previewFrame);
- activeMotionPath.preview();
-
- // Restore after duration
- setTimeout(stopMotionPreview, (cfg.duration || 4000) + 500);
- });
- });
-
- // ── Build motion config from current UI state ─────────────────────
- function buildMotionConfig() {
- const preset = motionPresetSel.value;
- if (!preset) return null;
- const duration = parseFloat(motionDurationEl.value) * 1000;
- const loop = motionLoopSel.value === 'true';
- const walkAnim = motionWalkSel.value;
- if (preset === 'custom') {
- if (customPathPoints.length < 2) return null;
- return { type: 'custom', points: customPathPoints, duration, loop, walkAnim };
- }
- return { type: 'preset', preset, duration, loop, walkAnim };
- }
-
- // ── Preview + embed code ──────────────────────────────────────────
- function updatePreviewAndCode() {
- const animation = animSelect.value;
- const showPicker = animPickerToggle.checked;
- const bg = bgSelect.value;
-
- const previewParams = new URLSearchParams({ model: selectedAvatarUrl, bg });
- if (animation) previewParams.set('animation', animation);
- if (!showPicker) previewParams.set('animPicker', '0');
-
- const motionCfg = buildMotionConfig();
-
- if (!motionCfg) {
- previewFrame.src = `/pages/avatar-embed.html?${previewParams}`;
- }
-
- const embedParams = new URLSearchParams({ model: selectedAvatarUrl, bg });
- if (animation) embedParams.set('animation', animation);
- if (!showPicker) embedParams.set('animPicker', '0');
-
- const widgetUrl = `/pages/avatar-embed.html?${embedParams}`;
- const origin = location.origin;
-
- if (motionCfg) {
- embedCodeEl.textContent =
- `<script async src="${origin}/embed.js"\n data-widget-url="${origin}${widgetUrl}"\n data-type="talking-agent"\n data-motion='${JSON.stringify(motionCfg)}'><\/script>`;
- } else {
- const embedUrl = `${origin}${widgetUrl}`;
- embedCodeEl.textContent =
- `<iframe\n src="${embedUrl}"\n width="400"\n height="600"\n style="border:none;"\n allow="autoplay; clipboard-write"\n></iframe>`;
- }
- }
-
- animSelect.addEventListener('change', updatePreviewAndCode);
- animPickerToggle.addEventListener('change', updatePreviewAndCode);
- bgSelect.addEventListener('change', updatePreviewAndCode);
- brandColorInput.addEventListener('input', updatePreviewAndCode);
- themeSelect.addEventListener('change', updatePreviewAndCode);
-
- copyBtn.addEventListener('click', () => {
- navigator.clipboard.writeText(embedCodeEl.textContent);
- copyBtn.textContent = 'Copied!';
- setTimeout(() => { copyBtn.textContent = 'Copy Code'; }, 2000);
- });
-
- updatePreviewAndCode();
- </script>
-
- <div id="footer-container"></div>
- <script src="/footer.js"></script>
-</body>
-</html>
diff --git a/public/demos/index.html b/public/demos/index.html
index 2ed1aa813..3f1cd88c6 100644
--- a/public/demos/index.html
+++ b/public/demos/index.html
@@ -136,11 +136,6 @@
<p>Type any text, stream it through OpenAI TTS, and the avatar's mouth animates in real time via <code>wawa-lipsync</code> viseme detection.</p>
<span class="demo-status prod">In prod</span>
</a>
- <a class="demo-card" href="/walkaround">
- <h2>3D walkaround → <code>/walkaround</code></h2>
- <p>WASD + mobile joystick navigation with real <strong>Rapier</strong> physics and <strong>Recast</strong> navmesh. Click the ground to autopilot your agent there.</p>
- <span class="demo-status prod">In prod</span>
- </a>
<a class="demo-card" href="/demos/erc8004.html">
<h2>ERC-8004 registry browser</h2>
<p>Live read of on-chain agent identities across Base, Ethereum, Polygon, and testnets via <code>agent0-sdk</code>. No keys, no signer.</p>
@@ -241,11 +236,6 @@
<p>Stripped-down version of the button-jump demo — just the avatar, the button, and the squish. Useful for tuning physics in isolation.</p>
<span class="demo-status beta">Beta</span>
</a>
- <a class="demo-card" href="/demos/walkaround.html">
- <h2>Walkaround (static snapshot)</h2>
- <p>Standalone <code>/demos/walkaround.html</code> snapshot of the production walkaround — same WASD + Rapier + Recast stack, isolated from the main app.</p>
- <span class="demo-status beta">Beta</span>
- </a>
<a class="demo-card" href="/demos/brain.html">
<h2>Brain (static snapshot)</h2>
<p>Standalone copy of the multi-LLM brain demo — Claude / GPT / Qwen / Llama side-by-side, isolated from the production route.</p>
diff --git a/public/demos/walkaround.html b/public/demos/walkaround.html
deleted file mode 100644
index 8573456c9..000000000
--- a/public/demos/walkaround.html
+++ /dev/null
@@ -1,432 +0,0 @@
-<!doctype html>
-<html lang="en">
- <head>
- <meta charset="utf-8" />
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
- <title>3D walkaround · three.ws</title>
- <meta name="description" content="A WASD + mobile-joystick walkaround scene with real physics (Rapier) and navmesh pathfinding (Recast). Click anywhere on the ground to autopilot your agent there." />
- <link rel="canonical" href="https://three.ws/walkaround" />
- <meta property="og:title" content="3D walkaround · three.ws" />
- <meta property="og:description" content="WASD + joystick walkaround scene with real Rapier physics and Recast navmesh pathfinding. Click ground to autopilot." />
- <meta property="og:url" content="https://three.ws/walkaround" />
- <meta name="twitter:card" content="summary_large_image" />
- <link rel="stylesheet" href="/style.css" />
- <link rel="stylesheet" href="/nav.css" />
- <style>
- :root { color-scheme: dark; }
- html, body { height: 100%; }
- body { background: #05060a; color: #eee; font: 15px/1.5 -apple-system, system-ui, sans-serif; margin: 0; overflow: hidden; }
- .stage { position: fixed; inset: 0; display: flex; flex-direction: column; }
- .head { padding: 14px 22px; display: flex; align-items: center; gap: 14px; background: rgba(8,9,15,0.8); border-bottom: 1px solid #1e1f2b; backdrop-filter: blur(8px); z-index: 5; }
- .head a { color: #8a8d98; text-decoration: none; font-size: 13px; }
- .head a:hover { color: #3dc1ff; }
- .head h1 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -0.005em; }
- .head .spacer { flex: 1; }
- .head button { background: rgba(255,255,255,0.06); color: #eee; border: 1px solid #1e1f2b; border-radius: 9px; padding: 6px 10px; font: inherit; font-size: 12px; cursor: pointer; }
- .head button.active { background: #3dc1ff; color: #0a0a0a; border-color: #3dc1ff; }
- .canvas-host { flex: 1; position: relative; }
- canvas.world { display: block; width: 100%; height: 100%; touch-action: none; }
- .hud { position: absolute; top: 12px; left: 12px; padding: 8px 12px; background: rgba(8,9,15,0.7); border: 1px solid #1e1f2b; border-radius: 9px; font-family: ui-monospace, monospace; font-size: 11.5px; color: #8a8d98; line-height: 1.5; pointer-events: none; }
- .hud b { color: #3dc1ff; }
- .controls-help { position: absolute; bottom: 12px; right: 12px; padding: 8px 12px; background: rgba(8,9,15,0.7); border: 1px solid #1e1f2b; border-radius: 9px; font-size: 12px; color: #8a8d98; line-height: 1.5; pointer-events: none; max-width: 240px; }
- .controls-help kbd { display: inline-block; padding: 1px 6px; background: #1e1f2b; border-radius: 4px; color: #3dc1ff; font-family: ui-monospace, monospace; font-size: 11px; margin-right: 2px; }
- .joystick-host { position: absolute; bottom: 24px; left: 24px; width: 130px; height: 130px; touch-action: none; }
- .boot { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(5,6,10,0.92); z-index: 4; font-size: 14px; color: #8a8d98; }
- .boot .spinner { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #3dc1ff; animation: pulse 0.9s ease-in-out infinite; margin-right: 10px; vertical-align: middle; }
- @keyframes pulse { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
- @media (max-width: 720px) {
- .controls-help { display: none; }
- }
- </style>
- </head>
- <body>
- <div class="stage">
- <header class="head">
- <a href="/">three.ws</a>
- <h1>3D walkaround</h1>
- <div class="spacer"></div>
- <button id="toggleNavmesh">Show navmesh</button>
- <button id="toggleAutopilot" class="active">Click-to-walk: on</button>
- </header>
- <div class="canvas-host" id="canvas-host">
- <canvas class="world" id="world"></canvas>
- <div class="hud" id="hud">
- <div>physics · <b id="hud-rapier">loading</b></div>
- <div>navmesh · <b id="hud-recast">loading</b></div>
- <div>pos · <b id="hud-pos">—</b></div>
- <div>FPS · <b id="hud-fps">—</b></div>
- </div>
- <div class="controls-help">
- <div><kbd>W</kbd><kbd>A</kbd><kbd>S</kbd><kbd>D</kbd> walk</div>
- <div><kbd>Shift</kbd> run</div>
- <div>Click ground to autopilot</div>
- <div>Drag to orbit camera</div>
- </div>
- <div class="joystick-host" id="joystick-host"></div>
- <div class="boot" id="boot"><span class="spinner"></span>Loading physics + navmesh…</div>
- </div>
- </div>
-
- <script type="module">
- import * as THREE from 'three';
- import { GLTFLoader } from 'three/addons/loaders/GLTFLoader.js';
- import { OrbitControls } from 'three/addons/controls/OrbitControls.js';
- import RAPIER from '@dimforge/rapier3d-compat';
- import { init as initRecast, NavMesh, NavMeshQuery } from '@recast-navigation/core';
- // Pull NavMeshHelper here too so the second dynamic import below
- // goes through the same chunk — without this, rollup warns about the
- // module being both static and dynamic.
- import { threeToSoloNavMesh, NavMeshHelper } from '@recast-navigation/three';
- import nipplejs from 'nipplejs';
-
- const $ = (id) => document.getElementById(id);
- const canvas = $('world');
- const host = $('canvas-host');
- const hud = { rapier: $('hud-rapier'), recast: $('hud-recast'), pos: $('hud-pos'), fps: $('hud-fps') };
-
- const renderer = new THREE.WebGLRenderer({ canvas, antialias: true });
- renderer.setPixelRatio(Math.min(devicePixelRatio, 2));
- renderer.outputColorSpace = THREE.SRGBColorSpace;
- renderer.shadowMap.enabled = true;
- renderer.shadowMap.type = THREE.PCFSoftShadowMap;
-
- const scene = new THREE.Scene();
- scene.background = new THREE.Color(0x0b0d14);
- scene.fog = new THREE.Fog(0x0b0d14, 25, 90);
-
- const camera = new THREE.PerspectiveCamera(55, 1, 0.1, 200);
- camera.position.set(8, 8, 10);
-
- const controls = new OrbitControls(camera, canvas);
- controls.target.set(0, 1, 0);
- controls.enableDamping = true;
- controls.minDistance = 3;
- controls.maxDistance = 30;
- controls.maxPolarAngle = Math.PI / 2.05;
-
- scene.add(new THREE.HemisphereLight(0xaab5ff, 0x0a0c15, 0.6));
- const sun = new THREE.DirectionalLight(0xffe8c2, 1.8);
- sun.position.set(15, 22, 10);
- sun.castShadow = true;
- sun.shadow.mapSize.set(2048, 2048);
- sun.shadow.camera.left = -20;
- sun.shadow.camera.right = 20;
- sun.shadow.camera.top = 20;
- sun.shadow.camera.bottom = -20;
- sun.shadow.camera.near = 1;
- sun.shadow.camera.far = 60;
- sun.shadow.bias = -0.0008;
- scene.add(sun);
-
- function resize() {
- const w = host.clientWidth, h = host.clientHeight;
- renderer.setSize(w, h, false);
- camera.aspect = w / h;
- camera.updateProjectionMatrix();
- }
- resize();
- window.addEventListener('resize', resize);
-
- const FLOOR_HALF = 18;
- const floorGeom = new THREE.PlaneGeometry(FLOOR_HALF * 2, FLOOR_HALF * 2);
- const floorMat = new THREE.MeshStandardMaterial({ color: 0x1a1f2b, roughness: 0.92, metalness: 0 });
- const floor = new THREE.Mesh(floorGeom, floorMat);
- floor.rotation.x = -Math.PI / 2;
- floor.receiveShadow = true;
- floor.name = 'floor';
- scene.add(floor);
-
- const grid = new THREE.GridHelper(FLOOR_HALF * 2, 36, 0x2a3045, 0x161a26);
- grid.position.y = 0.001;
- scene.add(grid);
-
- const obstacles = [];
- function addBox(x, y, z, w, h, d, color = 0x2a304a) {
- const mesh = new THREE.Mesh(
- new THREE.BoxGeometry(w, h, d),
- new THREE.MeshStandardMaterial({ color, roughness: 0.7, metalness: 0.1 }),
- );
- mesh.position.set(x, y, z);
- mesh.castShadow = true;
- mesh.receiveShadow = true;
- mesh.name = 'obstacle';
- scene.add(mesh);
- obstacles.push({ mesh, size: { w, h, d } });
- return mesh;
- }
- // A small enclosed plaza with a few obstacles.
- addBox(0, 1, -6, 14, 2, 0.5);
- addBox(0, 1, 6, 14, 2, 0.5);
- addBox(-7, 1, 0, 0.5, 2, 12);
- addBox(7, 1, 0, 0.5, 2, 12);
- addBox(-2.5, 0.5, -1.5, 2, 1, 2, 0x33405f);
- addBox(2, 0.5, 2, 1.5, 1, 1.5, 0x33405f);
- addBox(-3, 1.5, 3, 1, 3, 1, 0x4a3045);
- addBox(3.5, 1.5, -3, 1, 3, 1, 0x4a3045);
-
- const avatarRoot = new THREE.Group();
- scene.add(avatarRoot);
- let avatarMixer = null;
- let avatarReady = false;
- let walkAction = null;
-
- new GLTFLoader().load('/avatars/default.glb', (gltf) => {
- const model = gltf.scene;
- model.traverse((n) => { if (n.isMesh) { n.castShadow = true; n.receiveShadow = true; } });
- avatarRoot.add(model);
- if (gltf.animations?.length) {
- avatarMixer = new THREE.AnimationMixer(model);
- const walkClip = gltf.animations.find((a) => /walk|run|loco/i.test(a.name)) || gltf.animations[0];
- walkAction = avatarMixer.clipAction(walkClip);
- walkAction.play();
- walkAction.setEffectiveWeight(0);
- }
- avatarReady = true;
- });
-
- let physics = null;
- let kcc = null;
- let avatarBody = null;
- let avatarCollider = null;
- const avatarHeight = 1.7;
- const avatarRadius = 0.35;
-
- async function initPhysics() {
- await RAPIER.init();
- const world = new RAPIER.World({ x: 0, y: -20, z: 0 });
-
- const floorBody = world.createRigidBody(RAPIER.RigidBodyDesc.fixed().setTranslation(0, -0.05, 0));
- world.createCollider(RAPIER.ColliderDesc.cuboid(FLOOR_HALF, 0.05, FLOOR_HALF), floorBody);
-
- for (const o of obstacles) {
- const body = world.createRigidBody(
- RAPIER.RigidBodyDesc.fixed().setTranslation(o.mesh.position.x, o.mesh.position.y, o.mesh.position.z),
- );
- world.createCollider(RAPIER.ColliderDesc.cuboid(o.size.w / 2, o.size.h / 2, o.size.d / 2), body);
- }
-
- avatarBody = world.createRigidBody(
- RAPIER.RigidBodyDesc.kinematicPositionBased().setTranslation(0, avatarHeight / 2, 4),
- );
- avatarCollider = world.createCollider(
- RAPIER.ColliderDesc.capsule(avatarHeight / 2 - avatarRadius, avatarRadius),
- avatarBody,
- );
-
- kcc = world.createCharacterController(0.05);
- kcc.setApplyImpulsesToDynamicBodies(false);
- kcc.enableAutostep(0.4, 0.2, true);
- kcc.enableSnapToGround(0.4);
- kcc.setSlideEnabled(true);
- kcc.setMaxSlopeClimbAngle(50 * Math.PI / 180);
-
- physics = { world, gravity: { x: 0, y: -20, z: 0 } };
- hud.rapier.textContent = `Rapier ${RAPIER.version()} · ready`;
- }
-
- let navMesh = null;
- let navQuery = null;
- let navmeshHelper = null;
- let navmeshVisible = false;
-
- async function initNavmesh() {
- await initRecast();
- const collisionMeshes = [floor, ...obstacles.map((o) => o.mesh)];
- const { success, navMesh: nm } = threeToSoloNavMesh(collisionMeshes, {
- cs: 0.25,
- ch: 0.2,
- walkableRadius: 2,
- walkableClimb: 2,
- walkableHeight: 8,
- walkableSlopeAngle: 50,
- });
- if (!success || !nm) {
- hud.recast.textContent = 'failed';
- return;
- }
- navMesh = nm;
- navQuery = new NavMeshQuery(navMesh);
-
- navmeshHelper = new NavMeshHelper(navMesh, {
- navMeshMaterial: new THREE.MeshBasicMaterial({
- color: 0x3dc1ff, transparent: true, opacity: 0.18, depthWrite: false,
- }),
- });
- navmeshHelper.visible = false;
- navmeshHelper.position.y = 0.02;
- scene.add(navmeshHelper);
- hud.recast.textContent = 'Recast · ready';
- }
-
- let pendingPath = null;
- let pathIndex = 0;
-
- function autopilotTo(target) {
- if (!navQuery) return;
- const startPos = avatarRoot.position;
- const start = navQuery.findClosestPoint({ x: startPos.x, y: startPos.y, z: startPos.z });
- const end = navQuery.findClosestPoint({ x: target.x, y: target.y, z: target.z });
- if (!start.success || !end.success) return;
- const result = navQuery.computePath(start.point, end.point);
- if (!result.success || !result.path?.length) return;
- pendingPath = result.path.map((p) => new THREE.Vector3(p.x, p.y, p.z));
- pathIndex = 0;
- }
-
- $('toggleNavmesh').addEventListener('click', (e) => {
- navmeshVisible = !navmeshVisible;
- if (navmeshHelper) navmeshHelper.visible = navmeshVisible;
- e.currentTarget.classList.toggle('active', navmeshVisible);
- e.currentTarget.textContent = navmeshVisible ? 'Hide navmesh' : 'Show navmesh';
- });
-
- let autopilotEnabled = true;
- $('toggleAutopilot').addEventListener('click', (e) => {
- autopilotEnabled = !autopilotEnabled;
- e.currentTarget.classList.toggle('active', autopilotEnabled);
- e.currentTarget.textContent = `Click-to-walk: ${autopilotEnabled ? 'on' : 'off'}`;
- if (!autopilotEnabled) pendingPath = null;
- });
-
- const raycaster = new THREE.Raycaster();
- canvas.addEventListener('click', (e) => {
- if (!autopilotEnabled) return;
- const rect = canvas.getBoundingClientRect();
- const ndc = new THREE.Vector2(
- ((e.clientX - rect.left) / rect.width) * 2 - 1,
- -((e.clientY - rect.top) / rect.height) * 2 + 1,
- );
- raycaster.setFromCamera(ndc, camera);
- const hits = raycaster.intersectObject(floor, false);
- if (hits.length) autopilotTo(hits[0].point);
- });
-
- const keys = new Set();
- const KEYMAP = { KeyW: 'fwd', ArrowUp: 'fwd', KeyS: 'back', ArrowDown: 'back', KeyA: 'left', ArrowLeft: 'left', KeyD: 'right', ArrowRight: 'right', ShiftLeft: 'run', ShiftRight: 'run' };
- window.addEventListener('keydown', (e) => {
- const m = KEYMAP[e.code];
- if (m) { keys.add(m); pendingPath = null; }
- });
- window.addEventListener('keyup', (e) => { const m = KEYMAP[e.code]; if (m) keys.delete(m); });
-
- const joystick = nipplejs.create({
- zone: $('joystick-host'),
- mode: 'static',
- position: { left: '50%', top: '50%' },
- color: '#3dc1ff',
- size: 110,
- restOpacity: 0.45,
- });
- let joyVec = { x: 0, y: 0, active: false };
- joystick.on('move', (_e, data) => {
- const ang = data.angle.radian;
- const f = Math.min(1, data.force);
- joyVec = { x: Math.cos(ang) * f, y: Math.sin(ang) * f, active: true };
- pendingPath = null;
- });
- joystick.on('end', () => { joyVec = { x: 0, y: 0, active: false }; });
-
- const tmpDir = new THREE.Vector3();
- const tmpRight = new THREE.Vector3();
- const tmpMove = new THREE.Vector3();
- let yaw = 0;
-
- let lastTime = performance.now();
- let frames = 0;
- let fpsAcc = 0;
-
- function tick() {
- requestAnimationFrame(tick);
- const now = performance.now();
- const dt = Math.min((now - lastTime) / 1000, 0.05);
- lastTime = now;
- frames++;
- fpsAcc += dt;
- if (fpsAcc >= 0.5) { hud.fps.textContent = Math.round(frames / fpsAcc); frames = 0; fpsAcc = 0; }
-
- controls.update();
-
- camera.getWorldDirection(tmpDir);
- tmpDir.y = 0; tmpDir.normalize();
- tmpRight.crossVectors(tmpDir, new THREE.Vector3(0, 1, 0)).normalize();
-
- let inX = 0, inZ = 0;
- if (keys.has('fwd')) inZ += 1;
- if (keys.has('back')) inZ -= 1;
- if (keys.has('right')) inX += 1;
- if (keys.has('left')) inX -= 1;
- if (joyVec.active) { inX = joyVec.x; inZ = joyVec.y; }
-
- const speed = (keys.has('run') ? 7.5 : 4.0);
- tmpMove.set(0, 0, 0);
- if (inX || inZ) {
- tmpMove.copy(tmpDir).multiplyScalar(inZ).add(tmpRight.clone().multiplyScalar(inX));
- if (tmpMove.lengthSq() > 1) tmpMove.normalize();
- tmpMove.multiplyScalar(speed * dt);
- pendingPath = null;
- }
-
- if (pendingPath && pendingPath[pathIndex]) {
- const target = pendingPath[pathIndex];
- const here = avatarRoot.position;
- const dx = target.x - here.x;
- const dz = target.z - here.z;
- const dist = Math.hypot(dx, dz);
- if (dist < 0.3) {
- pathIndex++;
- if (pathIndex >= pendingPath.length) pendingPath = null;
- } else {
- const inv = 1 / dist;
- tmpMove.set(dx * inv, 0, dz * inv).multiplyScalar(speed * dt);
- }
- }
-
- if (physics && kcc && avatarBody && avatarCollider) {
- tmpMove.y -= 20 * dt;
- kcc.computeColliderMovement(avatarCollider, tmpMove);
- const corrected = kcc.computedMovement();
- const pos = avatarBody.translation();
- const next = { x: pos.x + corrected.x, y: pos.y + corrected.y, z: pos.z + corrected.z };
- avatarBody.setNextKinematicTranslation(next);
- physics.world.step();
-
- const newPos = avatarBody.translation();
- avatarRoot.position.set(newPos.x, newPos.y - avatarHeight / 2, newPos.z);
-
- const horizSpeed = Math.hypot(corrected.x, corrected.z);
- if (horizSpeed > 0.005) {
- const targetYaw = Math.atan2(corrected.x, corrected.z);
- const diff = ((targetYaw - yaw + Math.PI * 3) % (Math.PI * 2)) - Math.PI;
- yaw += diff * Math.min(1, dt * 12);
- avatarRoot.rotation.y = yaw;
- }
-
- if (avatarMixer) {
- avatarMixer.update(dt);
- if (walkAction) {
- const targetW = horizSpeed > 0.005 ? 1 : 0;
- const w = walkAction.getEffectiveWeight();
- walkAction.setEffectiveWeight(w + (targetW - w) * 0.2);
- walkAction.setEffectiveTimeScale(Math.max(0.5, horizSpeed * 80));
- }
- }
-
- hud.pos.textContent = `${newPos.x.toFixed(1)}, ${newPos.z.toFixed(1)}`;
- }
-
- renderer.render(scene, camera);
- }
-
- (async () => {
- try {
- await Promise.all([initPhysics(), initNavmesh()]);
- $('boot').style.display = 'none';
- tick();
- } catch (err) {
- $('boot').textContent = 'Boot failed: ' + (err?.message || err);
- console.error(err);
- }
- })();
- </script>
- </body>
-</html>
diff --git a/public/discover/discover.js b/public/discover/discover.js
index 6d511b236..1dbb7a63d 100644
--- a/public/discover/discover.js
+++ b/public/discover/discover.js
@@ -416,7 +416,7 @@ function renderAvatarCard(item) {
.join('');
const viewerUrl = item.viewerUrl || '#';
- const detailUrl = `/discover/avatar/${item.avatarId}`;
+ const detailUrl = `/avatars/${item.avatarId}`;
card.innerHTML = `
<a class="explore-card-thumb" href="${escapeAttr(detailUrl)}">
diff --git a/public/features.json b/public/features.json
index 29d8c2d5b..7afc37b04 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-05-25T15:10:15.004Z",
+ "generated_at": "2026-05-25T15:40:08.065Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
@@ -218,15 +218,6 @@
"indexable": true,
"tags": []
},
- {
- "path": "/walkaround",
- "title": "3D Walkaround",
- "description": "WASD + mobile joystick navigation with Rapier physics and Recast navmesh. Click the ground to autopilot.",
- "added": null,
- "auth": null,
- "indexable": true,
- "tags": []
- },
{
"path": "/brain",
"title": "Multi-LLM Brain",
diff --git a/public/gallery/gallery.js b/public/gallery/gallery.js
index ddfadfb4c..73352de19 100644
--- a/public/gallery/gallery.js
+++ b/public/gallery/gallery.js
@@ -8,7 +8,7 @@
* Card actions:
* • Preview → /app#model=<glb-url> (opens in the main viewer)
* • Studio → /studio?avatar=<id> (preselect in widget studio)
- * • Details → /discover/avatar/<id> (existing avatar detail page)
+ * • Details → /avatars/<id> (avatar studio page)
* • Embed → /api/avatars/view tracker fires when the link is followed
*/
@@ -270,7 +270,7 @@ function renderCard(a) {
const glbUrl = a.model_url || '';
const viewerUrl = glbUrl ? `/app#model=${encodeURIComponent(glbUrl)}` : '#';
- const detailUrl = `/discover/avatar/${a.id}`;
+ const detailUrl = `/avatars/${a.id}`;
const studioUrl = `/studio?avatar=${encodeURIComponent(a.id)}`;
const thumbSrc = a.thumbnail_url || `/api/avatars/${encodeURIComponent(a.id)}/og`;
diff --git a/public/llms-full.txt b/public/llms-full.txt
index 2e793d084..fbdf45b97 100644
--- a/public/llms-full.txt
+++ b/public/llms-full.txt
@@ -147,12 +147,6 @@ URL: https://three.ws/launchpad
Build a hosted 3D launchpad, token page, concierge, or showroom on a three.ws subdomain.
-### 3D Walkaround
-
-URL: https://three.ws/walkaround
-
-WASD + mobile joystick navigation with Rapier physics and Recast navmesh. Click the ground to autopilot.
-
### Multi-LLM Brain
URL: https://three.ws/brain
diff --git a/public/llms.txt b/public/llms.txt
index b2ae8e063..749ef6e0f 100644
--- a/public/llms.txt
+++ b/public/llms.txt
@@ -42,7 +42,6 @@ Create and customize an agent.
Experimental features actively shipping. Expect fast iteration.
- [Launchpad Studio](https://three.ws/launchpad): Build a hosted 3D launchpad, token page, concierge, or showroom on a three.ws subdomain.
-- [3D Walkaround](https://three.ws/walkaround): WASD + mobile joystick navigation with Rapier physics and Recast navmesh. Click the ground to autopilot.
- [Multi-LLM Brain](https://three.ws/brain): Send one prompt to Claude, GPT, Qwen, ModelScope, and Groq simultaneously. Side-by-side streaming with latency and token stats.
- [Lipsync (TTS)](https://three.ws/lipsync): Type text, stream it through OpenAI TTS, and the avatar's mouth animates in real time via wawa-lipsync viseme detection.
- [Lipsync (Mic)](https://three.ws/lipsync/mic): Feed live mic audio through the viseme analyser and watch the avatar's mouth track your voice in real time.
diff --git a/public/nav.html b/public/nav.html
index 5aec0c768..9b4465c09 100644
--- a/public/nav.html
+++ b/public/nav.html
@@ -171,12 +171,6 @@
><span class="nav-mi-sub">Build a 3D launchpad · token · concierge · showroom</span></a
>
</li>
- <li role="none">
- <a href="/walkaround" role="menuitem"
- ><span class="nav-mi-title">3D Walkaround<span class="nav-pill" aria-hidden="true">NEW</span></span
- ><span class="nav-mi-sub">WASD + joystick · Rapier physics · Recast navmesh</span></a
- >
- </li>
<li role="none">
<a href="/brain" role="menuitem"
><span class="nav-mi-title">Multi-LLM brain<span class="nav-pill" aria-hidden="true">NEW</span></span
diff --git a/public/sitemap/index.html b/public/sitemap/index.html
index 5ea099bf1..0f72aeaf9 100644
--- a/public/sitemap/index.html
+++ b/public/sitemap/index.html
@@ -238,13 +238,6 @@
<span class="sm-desc">Build a hosted 3D launchpad, token page, concierge, or showroom on a three.ws subdomain.</span>
</a>
</li>
- <li>
- <a href="/walkaround">
- <span class="sm-title">3D Walkaround</span>
- <span class="sm-path">/walkaround</span>
- <span class="sm-desc">WASD + mobile joystick navigation with Rapier physics and Recast navmesh. Click the ground to autopilot.</span>
- </a>
- </li>
<li>
<a href="/brain">
<span class="sm-title">Multi-LLM Brain</span>
diff --git a/src/agent-edit.js b/src/agent-edit.js
index f418f1c90..11cd3f7eb 100644
--- a/src/agent-edit.js
+++ b/src/agent-edit.js
@@ -4,6 +4,33 @@ import { saveRemoteGlbToAccount } from './account.js';
const API_BASE = '/api';
const params = new URLSearchParams(location.search);
+// CSRF — server enforces a single-use double-submit token on every session-
+// cookie mutation (PUT/POST/PATCH/DELETE). Fetch a fresh token per request;
+// the server burns it after one use, so caching breaks the next mutation.
+async function _csrfToken() {
+ try {
+ const r = await fetch(`${API_BASE}/csrf-token`, { credentials: 'include' });
+ if (!r.ok) return null;
+ const j = await r.json();
+ return j?.data?.token || null;
+ } catch {
+ return null;
+ }
+}
+
+// Drop-in replacement for fetch() that auto-attaches the CSRF header on any
+// non-safe method. Every fetch in this module that targets ${API_BASE} should
+// use this helper; raw fetch() bypasses CSRF and the server returns 403.
+async function apiFetch(url, init = {}) {
+ const method = (init.method || 'GET').toUpperCase();
+ const headers = new Headers(init.headers || {});
+ if (method !== 'GET' && method !== 'HEAD') {
+ const token = await _csrfToken();
+ if (token) headers.set('x-csrf-token', token);
+ }
+ return fetch(url, { credentials: 'include', ...init, headers });
+}
+
// Resolve agent id from the canonical clean URL /agent/<uuid>(/edit)?, falling
// back to the legacy /agent-edit.html?id=<uuid> querystring form. Kept as a
// `let` so it can be reassigned after the create-from-avatar flow mints a real
@@ -40,7 +67,7 @@ async function loadAgent() {
return;
}
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}`, { credentials: 'include' });
if (r.status === 401) {
sessionStorage.setItem('login_redirect', location.href);
location.replace('/login');
@@ -63,7 +90,7 @@ async function createAgentFromAvatar() {
showLoading('Creating agent…');
try {
const name = initAvatarName ? `${initAvatarName} Agent` : 'My Agent';
- const createRes = await fetch(`${API_BASE}/agents`, {
+ const createRes = await apiFetch(`${API_BASE}/agents`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -81,7 +108,7 @@ async function createAgentFromAvatar() {
const { agent } = await createRes.json();
if (initAvatarId) {
- const patchRes = await fetch(`${API_BASE}/agents/${agent.id}`, {
+ const patchRes = await apiFetch(`${API_BASE}/agents/${agent.id}`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -311,7 +338,7 @@ async function renderAvatarList() {
const container = $('avatar-picker-list');
container.textContent = 'Loading avatars…';
try {
- const r = await fetch(`${API_BASE}/avatars?limit=50`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/avatars?limit=50`, { credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
const j = await r.json();
availableAvatars = j.avatars || [];
@@ -651,7 +678,7 @@ async function saveAnimationGraph() {
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/animations`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/animations`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -706,7 +733,7 @@ async function saveAnimations() {
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/animations`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/animations`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -740,7 +767,7 @@ async function selectAvatar(avatarId) {
status.textContent = 'Saving…';
status.className = 'outfit-status saving';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -802,7 +829,7 @@ $('persona-save').addEventListener('click', async () => {
status.textContent = 'Saving…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -848,7 +875,7 @@ $('publish-save').addEventListener('click', async () => {
status.textContent = 'Publishing…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/marketplace/agents/${agentId}/publish`, {
+ const r = await apiFetch(`${API_BASE}/marketplace/agents/${agentId}/publish`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -897,7 +924,7 @@ $('monetization-save').addEventListener('click', async () => {
const status = $('monetization-status');
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/skills-pricing`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/skills-pricing`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -922,7 +949,7 @@ $('autopilot-save').addEventListener('click', async () => {
status.className = 'form-status';
try {
const strategy = parseStrategy(text);
- const r = await fetch(`${API_BASE}/agent-strategy?id=${encodeURIComponent(agentId)}`, {
+ const r = await apiFetch(`${API_BASE}/agent-strategy?id=${encodeURIComponent(agentId)}`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -960,7 +987,7 @@ async function ensureVoiceTab() {
async function loadVoiceStatus() {
const el = $('voice-current');
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/voice`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/voice`, { credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
voiceStatus = await r.json();
renderVoiceStatus();
@@ -990,7 +1017,7 @@ async function loadVoiceList(filter = '') {
const container = $('voice-list');
if (!voicesCache) {
try {
- const r = await fetch(`${API_BASE}/tts/eleven/voices`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/tts/eleven/voices`, { credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
const j = await r.json();
voicesCache = j.voices || [];
@@ -1044,7 +1071,7 @@ async function selectVoice(voiceId) {
status.textContent = 'Saving…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -1078,7 +1105,7 @@ $('voice-remove-btn').addEventListener('click', async () => {
status.textContent = 'Removing…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/voice`, { method: 'DELETE', credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/voice`, { method: 'DELETE', credentials: 'include' });
if (!r.ok) {
const j = await r.json().catch(() => ({}));
throw new Error(j.error_description || j.error || `HTTP ${r.status}`);
@@ -1106,7 +1133,7 @@ $('voice-clone-file').addEventListener('change', async (e) => {
const cloneName = $('voice-clone-name').value.trim() || `${agentData.name || 'Agent'} voice`;
const qs = new URLSearchParams({ name: cloneName });
const audio = await blobToArrayBuffer(file);
- const r = await fetch(`${API_BASE}/agents/${agentId}/voice/clone?${qs}`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/voice/clone?${qs}`, {
method: 'POST',
credentials: 'include',
headers: { 'Content-Type': file.type || 'audio/mpeg' },
@@ -1153,7 +1180,7 @@ async function ensureKnowledgeTab() {
async function loadMemories() {
const container = $('mem-list');
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/memories`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/memories`, { credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
const j = await r.json();
renderMemories(j.data || []);
@@ -1185,7 +1212,7 @@ function renderMemories(rows) {
async function deleteMemory(id) {
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/memories/${id}`, { method: 'DELETE', credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/memories/${id}`, { method: 'DELETE', credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
await loadMemories();
} catch (err) {
@@ -1207,7 +1234,7 @@ $('mem-add-btn').addEventListener('click', async () => {
status.textContent = 'Saving…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/memories`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/memories`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -1239,7 +1266,7 @@ $('mem-seed-btn').addEventListener('click', async () => {
status.textContent = 'Seeding…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/memory-seed`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/memory-seed`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -1297,7 +1324,7 @@ function renderSkillsChips() {
async function loadMarketplaceSkillSuggestions() {
const datalist = $('skills-marketplace');
try {
- const r = await fetch(`${API_BASE}/skills?limit=50`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/skills?limit=50`, { credentials: 'include' });
if (!r.ok) return;
const j = await r.json();
const items = j.skills || j.data || [];
@@ -1327,7 +1354,7 @@ $('skills-save').addEventListener('click', async () => {
status.textContent = 'Saving…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -1406,7 +1433,7 @@ async function loadWallet() {
async function refreshBalances() {
try {
- const r = await fetch(`${API_BASE}/portfolio/summary`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/portfolio/summary`, { credentials: 'include' });
if (!r.ok) return;
const j = await r.json();
const mine = (j.wallets || []).filter((w) => w.agent_id === agentId);
@@ -1435,7 +1462,7 @@ async function loadWalletActivity() {
return;
}
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/solana/activity?limit=5`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/solana/activity?limit=5`, { credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
const j = await r.json();
const items = j.activity || [];
@@ -1481,7 +1508,7 @@ $('send-confirm').addEventListener('click', async () => {
status.textContent = 'Sending…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/portfolio/send`, {
+ const r = await apiFetch(`${API_BASE}/portfolio/send`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -1538,7 +1565,7 @@ async function ensureSocialTab() {
async function loadXStatus() {
const el = $('x-status');
try {
- const r = await fetch(`${API_BASE}/x/status`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/x/status`, { credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
xConnection = await r.json();
renderXStatus();
@@ -1569,7 +1596,7 @@ $('x-connect-btn').addEventListener('click', () => {
$('x-disconnect-btn').addEventListener('click', async () => {
if (!confirm('Disconnect X account?')) return;
try {
- const r = await fetch(`${API_BASE}/x/status`, { method: 'DELETE', credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/x/status`, { method: 'DELETE', credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
await loadXStatus();
} catch (err) {
@@ -1580,7 +1607,7 @@ $('x-disconnect-btn').addEventListener('click', async () => {
$('x-username-save').addEventListener('click', async () => {
const val = $('x-username').value.trim().replace(/^@/, '') || null;
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -1602,7 +1629,7 @@ $('x-username-save').addEventListener('click', async () => {
async function loadXTriggers() {
const container = $('x-triggers-list');
try {
- const r = await fetch(`${API_BASE}/x/triggers`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/x/triggers`, { credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
const j = await r.json();
const mine = (j.triggers || []).filter((t) => !t.agent_id || t.agent_id === agentId);
@@ -1696,7 +1723,7 @@ function readTriggerConfig(item) {
async function saveTrigger(item, id) {
const cfg = readTriggerConfig(item);
try {
- const r = await fetch(`${API_BASE}/x/triggers?id=${encodeURIComponent(id)}`, {
+ const r = await apiFetch(`${API_BASE}/x/triggers?id=${encodeURIComponent(id)}`, {
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -1712,7 +1739,7 @@ async function saveTrigger(item, id) {
}
async function patchTrigger(id, body) {
- await fetch(`${API_BASE}/x/triggers?id=${encodeURIComponent(id)}`, {
+ await apiFetch(`${API_BASE}/x/triggers?id=${encodeURIComponent(id)}`, {
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -1722,7 +1749,7 @@ async function patchTrigger(id, body) {
async function deleteTrigger(id) {
if (!confirm('Delete this trigger?')) return;
- await fetch(`${API_BASE}/x/triggers?id=${encodeURIComponent(id)}`, { method: 'DELETE', credentials: 'include' });
+ await apiFetch(`${API_BASE}/x/triggers?id=${encodeURIComponent(id)}`, { method: 'DELETE', credentials: 'include' });
await loadXTriggers();
}
@@ -1730,7 +1757,7 @@ $('x-trigger-add').addEventListener('click', async () => {
const kind = $('x-trigger-kind').value;
const config = defaultTriggerConfig(kind);
try {
- const r = await fetch(`${API_BASE}/x/triggers`, {
+ const r = await apiFetch(`${API_BASE}/x/triggers`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -1757,7 +1784,7 @@ $('x-post-btn').addEventListener('click', async () => {
status.textContent = 'Posting…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/x/post`, {
+ const r = await apiFetch(`${API_BASE}/x/post`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -1789,7 +1816,7 @@ async function ensureAnalyticsTab() {
async function loadUsage() {
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/usage`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/usage`, { credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
const j = await r.json();
$('m-llm-month').textContent = String(j.currentMonthCalls ?? 0);
@@ -1825,7 +1852,7 @@ async function loadPayments(direction) {
const el = direction === 'received' ? $('m-pay-in') : $('m-pay-out');
const totalEl = direction === 'received' ? $('m-earn-in') : $('m-earn-out');
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/payments?direction=${direction}&limit=10`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/payments?direction=${direction}&limit=10`, { credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
const j = await r.json();
const rows = j.payments || j.data || [];
@@ -1885,7 +1912,7 @@ function updateEmbedPreview() {
async function loadEmbedPolicy() {
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/embed-policy`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/embed-policy`, { credentials: 'include' });
if (!r.ok) return;
const j = await r.json();
const origins = j.policy?.allowed_origins || [];
@@ -1914,7 +1941,7 @@ $('embed-policy-save').addEventListener('click', async () => {
status.textContent = 'Saving…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/embed-policy`, {
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/embed-policy`, {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -1938,7 +1965,7 @@ $('embed-policy-clear').addEventListener('click', async () => {
status.textContent = 'Clearing…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}/embed-policy`, { method: 'DELETE', credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}/embed-policy`, { method: 'DELETE', credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
$('embed-allowed-origins').value = '';
status.textContent = 'Cleared.';
@@ -1964,7 +1991,7 @@ async function ensureWidgetsTab() {
async function loadWidgets() {
const container = $('widgets-list');
try {
- const r = await fetch(`${API_BASE}/widgets`, { credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/widgets`, { credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
const j = await r.json();
const items = j.widgets || [];
@@ -2015,7 +2042,7 @@ $('widget-new-btn').addEventListener('click', async () => {
status.textContent = 'Creating…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/widgets`, {
+ const r = await apiFetch(`${API_BASE}/widgets`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
@@ -2038,7 +2065,7 @@ $('widget-new-btn').addEventListener('click', async () => {
async function deleteWidget(id) {
if (!confirm('Delete this widget?')) return;
try {
- const r = await fetch(`${API_BASE}/widgets/${id}`, { method: 'DELETE', credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/widgets/${id}`, { method: 'DELETE', credentials: 'include' });
if (!r.ok) throw new Error(`HTTP ${r.status}`);
await loadWidgets();
} catch (err) {
@@ -2088,7 +2115,7 @@ $('danger-delete-btn').addEventListener('click', async () => {
status.textContent = 'Deleting…';
status.className = 'form-status';
try {
- const r = await fetch(`${API_BASE}/agents/${agentId}`, { method: 'DELETE', credentials: 'include' });
+ const r = await apiFetch(`${API_BASE}/agents/${agentId}`, { method: 'DELETE', credentials: 'include' });
if (!r.ok) {
const j = await r.json().catch(() => ({}));
throw new Error(j.error_description || j.error || `HTTP ${r.status}`);
diff --git a/src/app.js b/src/app.js
index e44cd6d2a..6ce54214e 100644
--- a/src/app.js
+++ b/src/app.js
@@ -259,8 +259,11 @@ class App {
// Check for deploy (ERC-8004 mint) page. We still load the default
// avatar in the background so `_currentModelUrl` is populated for the
// RegisterUI pre-fill — it reflects the viewer's current model.
+ // Honor `?model=<url>` passed from the /app deploy button so an
+ // unsaved viewer model still flows through instead of falling to CZ.
if (options.deploy) {
- const model = options.model || '/avatars/cz.glb';
+ const qpModel = new URLSearchParams(location.search).get('model') || '';
+ const model = options.model || qpModel || '/avatars/cz.glb';
this.view(isDecentralizedURI(model) ? resolveURI(model) : model, '', new Map())
.catch(() => {})
.finally(() => this._showDeployPage());
@@ -687,6 +690,16 @@ class App {
btn.hidden = !hasModel;
}
+ // Build a `&model=<url>` suffix for the deploy button when the viewer is
+ // currently showing a hosted GLB. blob:/data: URLs aren't carryable across
+ // a navigation, so we drop them and let /deploy fall back to its defaults.
+ _deployModelParam() {
+ const url = this._currentModelUrl || '';
+ if (!url) return '';
+ if (url.startsWith('blob:') || url.startsWith('data:')) return '';
+ return `&model=${encodeURIComponent(url)}`;
+ }
+
// Surface the right deploy CTA next to the public-profile link in /app:
// • "Deploy on-chain" → /deploy?avatar=<id> (un-registered agent)
// • "Deployed ✓" → block-explorer URL (already on-chain)
@@ -704,7 +717,11 @@ class App {
if (label) label.textContent = 'Deploy on-chain';
btn.setAttribute('aria-label', 'Publish this agent on-chain');
btn.setAttribute('title', 'Publish this agent on-chain (ERC-8004)');
- btn.href = `/deploy?agent=${encodeURIComponent(agentId)}`;
+ // Carry the viewer's current model URL across so /deploy doesn't fall
+ // back to the CZ avatar when the agent hasn't been saved yet. Skip
+ // blob:/data: URLs — they don't survive a navigation.
+ const modelParam = this._deployModelParam();
+ btn.href = `/deploy?agent=${encodeURIComponent(agentId)}${modelParam}`;
btn.hidden = false;
try {
@@ -2288,7 +2305,8 @@ class App {
const qpDesc = qp.get('description') || '';
const qpImage = qp.get('image') || '';
const qpNetwork = qp.get('network') || '';
- const base = { glbUrl: this._currentModelUrl || '' };
+ const qpModel = qp.get('model') || '';
+ const base = { glbUrl: qpModel || this._currentModelUrl || '' };
let resolved = base;
if (avatarId) {
try {
diff --git a/src/create-review.js b/src/create-review.js
index 939512014..e93902537 100644
--- a/src/create-review.js
+++ b/src/create-review.js
@@ -32,7 +32,6 @@ const RESUME_KEY = '3dagent:guest-avatar-resume';
const $ = (sel) => document.querySelector(sel);
function setPageState(state) {
- document.getElementById('empty-card').hidden = state !== 'empty';
document.getElementById('content').hidden = state !== 'content';
}
@@ -45,7 +44,7 @@ let viewerIdleDispose = /** @type {(() => void) | null} */ (null);
async function boot() {
staged = await loadGuest();
if (!staged) {
- setPageState('empty');
+ location.replace('/create');
return;
}
diff --git a/src/erc8004/register-ui.js b/src/erc8004/register-ui.js
index c8ccf4460..dd89b0a65 100644
--- a/src/erc8004/register-ui.js
+++ b/src/erc8004/register-ui.js
@@ -603,18 +603,43 @@ export class RegisterUI {
// Silent reconnect on mount — uses `eth_accounts` (no popup). If the wallet
// has previously authorized this origin and is unlocked, we restore the
// connection transparently so the user doesn't see "Connect MetaMask" twice.
+ // Also tries a silent Phantom reconnect so users signed in with Solana
+ // land on the Solana chain by default instead of the EVM fallback.
async _eagerConnectWallet() {
const result = await eagerConnectWallet();
- if (!result) return;
- this.wallet = { address: result.address, chainId: Number(result.chainId) };
- if (
- !_isSolana(this.selectedChainId) &&
- REGISTRY_DEPLOYMENTS[this.wallet.chainId]
- ) {
- this.selectedChainId = this.wallet.chainId;
- const sel = this.el.querySelector('.erc8004-chain-select');
- if (sel) sel.value = String(this.selectedChainId);
+ if (result) {
+ this.wallet = { address: result.address, chainId: Number(result.chainId) };
+ if (
+ !_isSolana(this.selectedChainId) &&
+ REGISTRY_DEPLOYMENTS[this.wallet.chainId]
+ ) {
+ this.selectedChainId = this.wallet.chainId;
+ const sel = this.el.querySelector('.erc8004-chain-select');
+ if (sel) sel.value = String(this.selectedChainId);
+ }
}
+
+ // If no EVM wallet adopted the selection and a Solana wallet is
+ // already trusted by this origin, prefer Solana. `onlyIfTrusted` is
+ // silent — no popup if the user hasn't previously connected.
+ if (!_isSolana(this.selectedChainId) && !result) {
+ const solProvider = detectSolanaWallet();
+ if (solProvider) {
+ try {
+ if (!solProvider.publicKey && typeof solProvider.connect === 'function') {
+ await solProvider.connect({ onlyIfTrusted: true });
+ }
+ if (solProvider.publicKey) {
+ this.selectedChainId = SOLANA_MAINNET;
+ const sel = this.el.querySelector('.erc8004-chain-select');
+ if (sel) sel.value = String(this.selectedChainId);
+ }
+ } catch {
+ // Silent — user hasn't trusted this origin yet.
+ }
+ }
+ }
+
this._refreshWalletButton();
this._renderActiveTab();
this._refreshMainnetBanner();
diff --git a/tasks/walk/31-site-wide-walk-mode-toggle.md b/tasks/walk/31-site-wide-walk-mode-toggle.md
new file mode 100644
index 000000000..7c93e2d3d
--- /dev/null
+++ b/tasks/walk/31-site-wide-walk-mode-toggle.md
@@ -0,0 +1,34 @@
+# Task 31 — Site-Wide Walk Mode: Persistent Companion Across three.ws Pages
+
+## Priority: URGENT
+
+## Objective
+Build a "Walk Mode" toggle that, when enabled, makes the user's avatar walk along with them as they navigate `three.ws` itself — across every page on the site. The avatar persists across SPA-style navigations, follows the user's mouse/scroll, and serves as a tour guide.
+
+## Scope
+- New module: `src/walk-companion.js` — loaded globally on every three.ws page (add to the base layout / global JS bundle entry)
+- Toggle: `?walk=1` URL param, plus a persistent button in the global nav (`public/nav.html` + `public/nav.js`) — state persisted in `localStorage` as `walk:companion:enabled`
+- When enabled:
+ - Inject a fixed-position 200×280 canvas in bottom-right (same z-index strategy as Chrome extension content script, task 06)
+ - Loads the user's primary avatar (or `?avatar=` override)
+ - Avatar idles by default; walks toward the user's cursor when the cursor moves
+ - On page navigation (link click): avatar plays `wave` gesture briefly, then the companion canvas survives navigation by being attached to a persistent host outside the page's main content (a root-level container injected once on `DOMContentLoaded`)
+- Cross-page persistence approach: since three.ws is multi-page (not SPA), use one of:
+ - Option A (preferred): use a Service Worker to serve a persistent shell; avatar lives in the shell
+ - Option B (fallback): use `localStorage` to record avatar state (position, rotation, anim) on `beforeunload` and restore on next page load — avatar appears to teleport but resumes seamlessly
+- Avatar reacts to page context:
+ - On `/pricing` → walks to and points at the recommended tier
+ - On `/features` → walks to the most-viewed feature card
+ - On agent detail page → walks to and waves at the agent's name
+- Disable button on the companion: clicking removes companion for the session
+
+## Definition of Done
+- Toggle walk mode → avatar appears on every page navigation
+- State (position/animation) persists across page loads
+- Page-context behaviors fire on pricing, features, agent detail
+- Disable button removes companion and respects choice for the rest of the session
+- No console errors
+- No layout breakage on any page
+
+## Rules
+Complete 100%. No stubs. No fake data. Real persistence (SW or localStorage), real avatar, real context-awareness. Wire end-to-end across the whole site.
diff --git a/tasks/walk/32-walk-navigation-between-pages.md b/tasks/walk/32-walk-navigation-between-pages.md
new file mode 100644
index 000000000..c25b9537b
--- /dev/null
+++ b/tasks/walk/32-walk-navigation-between-pages.md
@@ -0,0 +1,32 @@
+# Task 32 — Walk Navigation: Avatar "Walks" Between Pages
+
+## Priority: HIGH
+
+## Objective
+When walk mode is on (task 31) and the user clicks a link, the avatar visibly walks off the current page and walks onto the next one — creating the illusion of a single continuous environment that spans the whole site.
+
+## Scope
+- Module: `src/walk-companion.js` (extend from task 31)
+- Click interception:
+ - Intercept clicks on internal links (`<a href="/...">`) via document-level delegate
+ - Compute direction from avatar's current screen position to link element
+ - Avatar walks toward link, plays `wave` 200 ms before navigation triggers
+ - Smoothly fade the companion canvas to a transparent overlay during transition
+- Transition implementation (View Transitions API where supported):
+ - Use `document.startViewTransition()` on supported browsers
+ - Avatar canvas is part of the persistent shell so it doesn't unmount
+ - Old page slides out left, new page slides in right
+ - Avatar walks across the transition (animated x position from off-screen left → in-screen)
+- Fallback for unsupported browsers: standard navigation but with avatar's position saved (task 31) so it resumes seamlessly
+- Direction-aware: link in the nav (top) → avatar walks up the screen before navigating; link in the footer → walks down
+- Speed: 600 ms total transition (avatar covers screen width in that time, eased)
+
+## Definition of Done
+- Walk mode on, click any internal link → avatar walks toward it, screen transitions smoothly
+- View Transitions used where browser supports them (verify in Chrome)
+- Fallback works in Firefox/Safari
+- No flicker, no double-render of avatar during transition
+- No console errors
+
+## Rules
+Complete 100%. No stubs. No fake data. Real View Transitions API where available, real fallback elsewhere. Wire end-to-end.
diff --git a/tasks/walk/33-walk-aware-page-transitions.md b/tasks/walk/33-walk-aware-page-transitions.md
new file mode 100644
index 000000000..0ed4af8f6
--- /dev/null
+++ b/tasks/walk/33-walk-aware-page-transitions.md
@@ -0,0 +1,30 @@
+# Task 33 — Walk-Aware Page Transitions: Themed Per Destination
+
+## Priority: MEDIUM
+
+## Objective
+Make the transition between pages thematically match the destination — e.g., walking to `/walk` triggers a "stepping into the world" zoom, walking to `/pricing` triggers a brief "store opening" effect. Subtle but memorable.
+
+## Scope
+- Module: `src/walk-companion-transitions.js` — registered by `src/walk-companion.js`
+- Per-route transition presets (config table):
+ - `/walk` → camera-zoom-into-avatar effect: avatar grows to fill viewport, then crossfades to walk page canvas
+ - `/pricing` → curtain-pull from top
+ - `/agent/*` → spotlight expand from where the link was clicked
+ - `/marketplace` → corridor depth zoom
+ - `/dashboard` → softer fade with subtle glow
+ - default → simple fade + slide from task 32
+- Each preset is a function: `(fromEl, toEl, avatarEl) => Promise<void>` that runs the animation
+- Use Web Animations API (`element.animate`) — no jQuery, no framer-motion
+- Respect `prefers-reduced-motion`: all presets degrade to simple fade
+- Settings UI in nav toggle area: "Themed transitions on/off"
+
+## Definition of Done
+- Click `/walk` link → camera-zoom transition plays
+- Click `/pricing` link → curtain-pull plays
+- `prefers-reduced-motion: reduce` → all degrade to fade
+- No console errors
+- No layout shift after transitions complete
+
+## Rules
+Complete 100%. No stubs. No fake data. Real animations, real preference detection. Wire end-to-end.
diff --git a/tasks/walk/34-section-narration-as-avatar-walks.md b/tasks/walk/34-section-narration-as-avatar-walks.md
new file mode 100644
index 000000000..457bebae5
--- /dev/null
+++ b/tasks/walk/34-section-narration-as-avatar-walks.md
@@ -0,0 +1,27 @@
+# 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.
diff --git a/tasks/walk/35-click-to-walk-navigation.md b/tasks/walk/35-click-to-walk-navigation.md
new file mode 100644
index 000000000..3580228ca
--- /dev/null
+++ b/tasks/walk/35-click-to-walk-navigation.md
@@ -0,0 +1,32 @@
+# Task 35 — Click-to-Walk: Navigate by Pointing Where Avatar Should Go
+
+## Priority: MEDIUM
+
+## Objective
+Add a navigation mode where the user clicks anywhere on a page and the avatar physically walks to that spot before any further action. Clicking a link makes the avatar walk to the link first, then triggers the navigation.
+
+## Scope
+- Module: `src/walk-companion-click-to-walk.js`
+- Mode toggle: held key `Alt` (desktop) or long-press (mobile) puts the avatar into "directable" mode
+- In directable mode:
+ - Cursor changes to a footstep icon
+ - Click anywhere → avatar walks to that screen position (translated to canvas coords)
+ - During walk: a faint dotted path renders showing the route (using canvas overlay or SVG)
+- Smart link interaction:
+ - Click on a link while directable → avatar walks there, plays `point` gesture, opens link 200ms later
+ - Click on a button → avatar walks there, plays `tap` gesture, fires real click event 200ms later
+- Obstacle avoidance:
+ - Avatar avoids walking over images and major UI cards — use a simple grid pathfinder around blocking elements (treat elements with `data-walk-block` as walls)
+- Visual feedback:
+ - Brief ripple on click point
+ - Footprint trail fades after 2 seconds
+
+## Definition of Done
+- Hold Alt, click anywhere on a page → avatar walks to that point
+- Click on a link in directable mode → avatar walks to it, then link opens
+- Obstacle avoidance works (avatar routes around `data-walk-block` elements)
+- Footprint trail renders and fades
+- No console errors
+
+## Rules
+Complete 100%. No stubs. No fake data. Real pathfinding, real click delegation. Wire end-to-end.
diff --git a/tasks/walk/36-walk-path-visualization.md b/tasks/walk/36-walk-path-visualization.md
new file mode 100644
index 000000000..b5cdaa1a5
--- /dev/null
+++ b/tasks/walk/36-walk-path-visualization.md
@@ -0,0 +1,28 @@
+# Task 36 — Walk Path Visualization: Footstep Trails & Routes
+
+## Priority: LOW
+
+## Objective
+Render aesthetic visual trails behind the walking avatar — footprints, glow particles, or a faint line — so users see where they've been on the page or in the 3D walk scene. Pure delight feature.
+
+## Scope
+- Module: `src/walk-trails.js`
+- Three trail styles, user-selectable in settings:
+ - `footprints` — alternating left/right footprint icons fade in/out (DOM overlay for 2D, decals for 3D scene)
+ - `glow` — soft particle trail (Three.js Points or 2D canvas particles)
+ - `line` — single continuous polyline that fades over time
+- Trails fade over 5 seconds, then are removed from the scene
+- In 3D walk scene: decals on the ground using Three.js DecalGeometry, properly oriented to ground normal
+- In 2D companion mode (across site): SVG path/circles overlaid behind the avatar canvas
+- Performance budget: cap at 60 trail elements at once; oldest removed first
+- Trail color: derived from avatar's accent color (read from `avatar.meta.accent` or fallback to brand accent)
+
+## Definition of Done
+- Each trail style works in both 2D companion and 3D walk modes
+- Trails fade smoothly with no visible "pop" on removal
+- 60-element cap enforced (verify by walking continuously for 30s)
+- No FPS drop with trails on
+- No console errors
+
+## Rules
+Complete 100%. No stubs. No fake data. Real decals / real SVG / real particles. Wire end-to-end.
diff --git a/tasks/walk/37-walk-minimap.md b/tasks/walk/37-walk-minimap.md
new file mode 100644
index 000000000..fdde21d52
--- /dev/null
+++ b/tasks/walk/37-walk-minimap.md
@@ -0,0 +1,29 @@
+# Task 37 — Walk Mini-Map: Top-Down View of the Environment
+
+## Priority: LOW
+
+## Objective
+Add a small mini-map overlay to the walk page showing a top-down view of the environment, the player's position/heading, and any NPCs or other players (multiplayer, task 17).
+
+## Scope
+- Module: `src/walk-minimap.js`
+- 160×160 px square in top-right HUD corner; rounded, semi-transparent dark background
+- Renders via a second Three.js scene/camera (orthographic, top-down, framed on a 40×40m area centered on player)
+- Same scene meshes, just rendered from above with simplified shading (basic material, flat color per object class)
+- Player: green arrow pointing in heading direction, always centered
+- NPCs: blue dots
+- Other multiplayer players: orange dots with name label on hover
+- Environment landmarks (loaded from env metadata `landmarks: [{ name, pos }]`): white dots with label on hover
+- Click on mini-map → trigger click-to-walk (task 35) to that world position
+- Zoom: scroll over minimap → adjusts ortho frustum (10m–80m radius range)
+
+## Definition of Done
+- Walk page shows minimap in top-right
+- Player dot rotates with avatar heading
+- NPCs and multiplayer players appear and update in real time
+- Click on minimap walks avatar to that location
+- Scroll zoom works
+- No console errors, no significant FPS impact
+
+## Rules
+Complete 100%. No stubs. No fake data. Real second-camera render, real interactions. Wire end-to-end.
diff --git a/tasks/walk/38-walk-session-persistence.md b/tasks/walk/38-walk-session-persistence.md
new file mode 100644
index 000000000..b66cab0f5
--- /dev/null
+++ b/tasks/walk/38-walk-session-persistence.md
@@ -0,0 +1,35 @@
+# Task 38 — Walk Session Persistence: Resume Where You Left Off
+
+## Priority: MEDIUM
+
+## Objective
+Persist walk session state — avatar position, rotation, environment, camera mode, gestures recently used — so that returning to `/walk` resumes from the last known state instead of starting over.
+
+## Scope
+- Module: `src/walk-session.js`
+- State persisted:
+ - Avatar ID, environment, camera mode
+ - Position (x, y, z), rotation (yaw)
+ - Last 5 gestures used (most recent first; surfaces them in the gesture wheel for quick re-use)
+ - Companion preferences (size, walk speed)
+ - Multiplayer room code if in multiplayer
+- Storage:
+ - `localStorage` for unauthenticated sessions
+ - `/api/walk/session` PUT/GET endpoint for authenticated users (real, persisted to the existing user database)
+- Save triggers:
+ - On `beforeunload`: snapshot current state
+ - Every 30s while active (throttled): snapshot
+- Restore on page load:
+ - If state exists and is < 7 days old, restore avatar to last position/rotation, load same environment, restore camera mode
+ - Show a small "Welcome back" toast with "Start fresh" button (clears state)
+- Cross-device sync: for authed users, latest state syncs across browsers
+
+## Definition of Done
+- Walk for 30s, close tab, reopen `/walk` → avatar resumes at last position
+- Auth users: walk on laptop, open `/walk` on phone → same state restored
+- "Start fresh" toast button wipes state
+- No console errors
+- State endpoint returns 200 with correct payload (verify with real curl)
+
+## Rules
+Complete 100%. No stubs. No fake data. Real DB persistence for authed users. Wire end-to-end.
diff --git a/tasks/walk/39-walk-leaderboard.md b/tasks/walk/39-walk-leaderboard.md
new file mode 100644
index 000000000..d98551835
--- /dev/null
+++ b/tasks/walk/39-walk-leaderboard.md
@@ -0,0 +1,32 @@
+# Task 39 — Walk Leaderboard: Distance Walked, Sites Visited, Sessions
+
+## Priority: LOW
+
+## Objective
+Track per-user walk metrics (distance walked, time spent walking, environments visited, sites visited via extension) and surface a public leaderboard. Adds a gamification layer that drives daily return visits.
+
+## Scope
+- Backend:
+ - New endpoint `POST /api/walk/metrics` — accepts batched metric increments: `{ distanceMeters, durationSec, envId, siteHostname }`
+ - New endpoint `GET /api/walk/leaderboard?period=daily|weekly|all-time&metric=distance|sites|time`
+ - Backed by the existing user DB; new tables/columns as needed (real migration in `migrations/`)
+- Client:
+ - In `src/walk.js`, accumulate distance per frame (delta position magnitude) and total session duration
+ - Flush metrics every 60s via `navigator.sendBeacon` to `/api/walk/metrics`
+ - Chrome extension (`content.js`) also flushes site visit + walk duration when avatar is active on a host
+- Leaderboard page: `pages/walk-leaderboard.html`
+ - Tabs: Today | This Week | All Time
+ - Metric switcher: Distance | Sites | Time
+ - Table: rank, avatar (clickable to profile), handle, value, change-from-yesterday delta
+ - User's own rank is sticky-pinned even if outside top 50
+- Achievements (simple): "1 km walked", "10 sites visited", "Walked in all 6 environments" — surfaced as toast on unlock; stored on user
+
+## Definition of Done
+- Walk for 1 minute → metrics appear in DB
+- Leaderboard page renders real data, sorted correctly
+- Achievement toast fires when threshold crossed
+- No console errors
+- Endpoints return correct shape and pagination
+
+## Rules
+Complete 100%. No stubs. No fake data. Real DB schema, real metrics, real leaderboard. Wire end-to-end.
diff --git a/tasks/walk/40-walk-analytics-dashboard.md b/tasks/walk/40-walk-analytics-dashboard.md
new file mode 100644
index 000000000..4508e90b6
--- /dev/null
+++ b/tasks/walk/40-walk-analytics-dashboard.md
@@ -0,0 +1,31 @@
+# Task 40 — Walk Analytics: Per-Creator Dashboard for Embedded Avatars
+
+## Priority: MEDIUM
+
+## Objective
+Give creators who embed walking avatars on their sites a real analytics dashboard: how many sessions, time spent, distance walked, conversion events, top embed locations. Mirrors what Stripe Dashboard or Plausible offers, scoped to a creator's avatars.
+
+## Scope
+- Backend:
+ - Extend `POST /api/walk/metrics` (task 39) to also accept `{ avatarId, embedOrigin, eventName?, value? }`
+ - `embedOrigin` is the `referrer` header of the embed iframe — recorded server-side, not trusted from client
+ - `eventName` is creator-defined ("subscribe", "buy", "play") — fired via the embed SDK API: `window.ThreeWalkAvatar.track('subscribe', { plan: 'pro' })`
+ - New endpoint `GET /api/walk/analytics?avatarId=<id>&from=<iso>&to=<iso>` — aggregated metrics
+- Frontend dashboard page: `pages/walk-analytics.html`
+ - Avatar selector (creator's avatars)
+ - Date range picker
+ - Cards: Total sessions, Avg session duration, Total distance walked, Unique sites embedded on
+ - Time-series chart (use Apache ECharts or D3 — vendored)
+ - Top-10 origins table
+ - Events table (eventName, count, conversion-rate vs sessions)
+- Auth-gated: only the creator who owns the avatar can view its analytics
+
+## Definition of Done
+- Embed an avatar on a test site → sessions show up in dashboard within 60s
+- Fire `track('subscribe')` from the test site → event appears in dashboard
+- Date range picker correctly filters
+- Auth check: another user cannot view your analytics (verify with real second account)
+- No console errors
+
+## Rules
+Complete 100%. No stubs. No fake data. Real metrics pipeline, real auth check, real charts. Wire end-to-end.
diff --git a/tasks/walk/41-walk-performance-optimization.md b/tasks/walk/41-walk-performance-optimization.md
new file mode 100644
index 000000000..f7e99c86f
--- /dev/null
+++ b/tasks/walk/41-walk-performance-optimization.md
@@ -0,0 +1,38 @@
+# Task 41 — Walk Performance: LOD, Frustum Culling, Asset Compression
+
+## Priority: HIGH
+
+## Objective
+Bring the walk page to a sustained 60 FPS on a mid-tier mobile (iPhone 12, Pixel 6) with one avatar + a populated environment + one NPC. Today's baseline is unverified — measure first, then optimize the worst offenders.
+
+## Scope
+- Profile first (real device or Chrome remote debugging):
+ - Record performance trace on mobile of `/walk?env=gallery`
+ - Identify worst frame-time contributors (script vs render vs GPU)
+ - Document findings in `tasks/walk/_perf-baseline.md`
+- LOD (Level of Detail):
+ - Avatars: generate two simplified meshes at 50% and 20% triangle counts (use `meshoptimizer` via `@mesh-optimizer/simplifier` package)
+ - Pre-generate at upload time if practical; otherwise generate client-side on first load and cache in IndexedDB
+ - Switch LOD based on screen-space size
+- Frustum culling: ensure `Frustum.intersectsObject` is called on every NPC and decorative scene mesh per frame (Three.js does this by default for `Mesh.frustumCulled`, but verify nothing has it disabled)
+- Texture compression:
+ - Run a build step `scripts/compress-environment-textures.mjs` that converts environment textures to KTX2 / Basis Universal
+ - Three.js loads with `KTX2Loader` (real, not skipped)
+- GLB compression:
+ - Run `gltf-transform` on environment GLBs (Draco for geometry, WebP for textures where KTX2 isn't supported)
+- Render scaling:
+ - On mobile: `renderer.setPixelRatio(Math.min(devicePixelRatio, 1.5))`
+ - On desktop: dynamic pixel ratio that drops when frame time exceeds 18ms (adaptive)
+- Animation cost:
+ - Limit `SkinnedMesh` bone count where avoidable; throttle NPC animation updates to 30 Hz
+- Lights: cap at 2 dynamic + IBL; disable shadows on mobile
+
+## Definition of Done
+- Real measurement on real mobile shows ≥60 FPS sustained in default environment with one NPC
+- `tasks/walk/_perf-baseline.md` documents before/after frame times
+- Environment GLB total transfer < 4 MB compressed
+- No visible LOD popping at default camera distance
+- No console errors
+
+## Rules
+Complete 100%. No stubs. No fake data. Real measurements, real compression, real LOD. Wire end-to-end.
diff --git a/tasks/walk/42-walk-pwa-install.md b/tasks/walk/42-walk-pwa-install.md
new file mode 100644
index 000000000..65cfcedb1
--- /dev/null
+++ b/tasks/walk/42-walk-pwa-install.md
@@ -0,0 +1,40 @@
+# Task 42 — Walk PWA: Installable Native-Feel App
+
+## Priority: MEDIUM
+
+## Objective
+Make `/walk` installable as a Progressive Web App, so users can launch it from their home screen, run it fullscreen, and use it offline with their last avatar/environment cached.
+
+## Scope
+- `public/walk.webmanifest`:
+ - `name: "three.ws Walk"`
+ - `short_name: "Walk"`
+ - `start_url: "/walk"`
+ - `display: "fullscreen"`
+ - `orientation: "any"`
+ - `icons: [...]` — 192, 256, 384, 512 PNGs (real, generated from `public/pwa-icon.svg`)
+ - `background_color: "#000000"`
+ - `theme_color: "#000000"`
+ - `screenshots: [...]` — real screenshots taken via Playwright for the install prompt
+- Link from `pages/walk.html`: `<link rel="manifest" href="/walk.webmanifest">`
+- Service worker: `public/walk-sw.js`
+ - Precaches the walk page shell, walk JS bundle, default avatar GLB, default environment GLB
+ - Cache strategy: cache-first for static assets, network-first for API calls, fallback to last-cached avatar on offline
+- Install prompt:
+ - Listen for `beforeinstallprompt`, save event
+ - Show a small "Install" button in the HUD after 30 seconds of active session (don't be annoying about it)
+ - Track install acceptance to `/api/walk/metrics` as `eventName: 'pwa_installed'`
+- iOS standalone mode:
+ - `<meta name="apple-mobile-web-app-capable" content="yes">`
+ - `<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">`
+ - Apple touch icon
+
+## Definition of Done
+- Open `/walk` in Chrome on Android → "Add to Home screen" prompt appears
+- Install → launches fullscreen, looks like a native app
+- Offline (airplane mode) → walk still loads with cached avatar
+- iOS: "Add to Home Screen" via Safari also works and launches in standalone mode
+- No console errors, no SW registration errors
+
+## Rules
+Complete 100%. No stubs. No fake data. Real service worker, real manifest, real screenshots. Wire end-to-end.
diff --git a/vercel.json b/vercel.json
index b7967d764..6bb3b79bf 100644
--- a/vercel.json
+++ b/vercel.json
@@ -1,2143 +1,2148 @@
{
- "buildCommand": "npm run build:vercel",
- "outputDirectory": "dist",
- "public": true,
- "installCommand": "npm ci --prefer-offline --no-audit --no-fund",
- "env": {
- "NODE_OPTIONS": "--no-deprecation"
- },
- "functions": {
- "api/club/tips-stream.js": {
- "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
- "maxDuration": 300
- },
- "api/avatars/[id].js": {
- "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
- "maxDuration": 300
- },
- "api/tts/speak.js": {
- "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
- "maxDuration": 60
- },
- "api/widgets/[id]/knowledge-process.js": {
- "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
- "maxDuration": 300
- },
- "api/agents/pumpfun.js": {
- "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
- "maxDuration": 120
- },
- "api/cron/[name].js": {
- "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
- "maxDuration": 300
- },
- "api/agents/gmgn.js": {
- "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
- "maxDuration": 120
- },
- "api/**/*.js": {
- "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
- "maxDuration": 30
- }
- },
- "routes": [
- {
- "src": "/rss/announcements\\.xml",
- "dest": "/api/rss/announcements"
- },
- {
- "src": "/rss\\.xml",
- "dest": "/api/rss/announcements"
- },
- {
- "src": "/openapi\\.json",
- "dest": "/api/openapi-json"
- },
- {
- "src": "/api/features\\.json",
- "dest": "/api/features"
- },
- {
- "src": "/changelog",
- "dest": "/changelog/index.html"
- },
- {
- "src": "/changelog/",
- "dest": "/changelog/index.html"
- },
- {
- "src": "/\\.well-known/chat-plugin\\.json",
- "dest": "/api/wk?name=chat-plugin"
- },
- {
- "src": "/\\.well-known/x402\\.json",
- "dest": "/api/wk?name=x402-discovery"
- },
- {
- "src": "/\\.well-known/x402",
- "dest": "/api/wk?name=x402"
- },
- {
- "src": "/\\.well-known/agent-attestation-schemas",
- "dest": "/api/wk?name=agent-attestation-schemas"
- },
- {
- "src": "/\\.well-known/jwks\\.json",
- "dest": "/api/auth/persona/[action]?action=jwks"
- },
- {
- "src": "/\\.well-known/did\\.json",
- "dest": "/api/x402/did"
- },
- {
- "src": "/\\.well-known/oauth-authorization-server",
- "dest": "/api/wk?name=oauth-authorization-server"
- },
- {
- "src": "/\\.well-known/oauth-protected-resource",
- "dest": "/api/wk?name=oauth-protected-resource"
- },
- {
- "src": "/api/mcp/\\.well-known/oauth-protected-resource",
- "dest": "/api/wk?name=oauth-protected-resource"
- },
- {
- "src": "/a/sol/([^/]+)/\\.well-known/agent-card\\.json",
- "dest": "/api/agents/solana/[action]?action=card&asset=$1"
- },
- {
- "src": "/api/agents/solana-metadata",
- "dest": "/api/agents/solana/[action]?action=metadata"
- },
- {
- "src": "/api/agents/solana-attestations",
- "dest": "/api/agents/solana/[action]?action=attestations"
- },
- {
- "src": "/api/agents/solana-attest-event",
- "dest": "/api/agents/solana/[action]?action=attest-event"
- },
- {
- "src": "/api/agents/solana-card",
- "dest": "/api/agents/solana/[action]?action=card"
- },
- {
- "src": "/api/agents/solana-price-history",
- "dest": "/api/agents/solana/[action]?action=price-history"
- },
- {
- "src": "/api/agents/solana-register-prep",
- "dest": "/api/agents/solana/[action]?action=register-prep"
- },
- {
- "src": "/api/agents/solana-register-confirm",
- "dest": "/api/agents/solana/[action]?action=register-confirm"
- },
- {
- "src": "/api/agents/solana-reputation",
- "dest": "/api/agents/solana/[action]?action=reputation"
- },
- {
- "src": "/api/agents/solana-reputation-history",
- "dest": "/api/agents/solana/[action]?action=reputation-history"
- },
- {
- "src": "/api/agents/([^/]+)/skills-pricing",
- "dest": "/api/agents/[id]/skills-pricing?id=$1"
- },
- {
- "src": "/api/agents/([^/]+)/skills/price",
- "dest": "/api/agent-skill-price.js?agentId=$1"
- },
- {
- "src": "/api/agents/([^/]+)/unlocked-skills",
- "dest": "/api/agents/[id]/unlocked-skills?id=$1"
- },
- {
- "src": "/api/billing/receipts",
- "dest": "/api/billing/receipts"
- },
- {
- "src": "/api/newsletter/subscribe",
- "dest": "/api/newsletter-subscribe"
- },
- {
- "src": "/oauth/authorize",
- "dest": "/api/oauth/[action]?action=authorize"
- },
- {
- "src": "/oauth/consent",
- "dest": "/api/oauth/[action]?action=consent"
- },
- {
- "src": "/api/payments/intent",
- "dest": "/api/payments/intent"
- },
- {
- "src": "/oauth/token",
- "dest": "/api/oauth/[action]?action=token"
- },
- {
- "src": "/oauth/register",
- "dest": "/api/oauth/[action]?action=register"
- },
- {
- "src": "/oauth/revoke",
- "dest": "/api/oauth/[action]?action=revoke"
- },
- {
- "src": "/oauth/introspect",
- "dest": "/api/oauth/[action]?action=introspect"
- },
- {
- "src": "/login",
- "dest": "/login.html"
- },
- {
- "src": "/register",
- "dest": "/register.html"
- },
- {
- "src": "/forgot-password",
- "dest": "/forgot-password.html"
- },
- {
- "src": "/reset-password",
- "dest": "/reset-password.html"
- },
- {
- "src": "/wallet-login.js",
- "dest": "/wallet-login.js"
- },
- {
- "src": "/wallet/(.*)",
- "dest": "/wallet/$1"
- },
- {
- "src": "/pumpfun",
- "dest": "/pumpfun.html"
- },
- {
- "src": "/pumpfun/",
- "dest": "/pumpfun.html"
- },
- {
- "src": "/gmgn",
- "dest": "/gmgn.html"
- },
- {
- "src": "/gmgn/",
- "dest": "/gmgn.html"
- },
- {
- "src": "/vanity-wallet",
- "dest": "/vanity-wallet.html"
- },
- {
- "src": "/vanity-wallet/",
- "dest": "/vanity-wallet.html"
- },
- {
- "src": "/eth-vanity",
- "dest": "/eth-vanity.html"
- },
- {
- "src": "/eth-vanity/",
- "dest": "/eth-vanity.html"
- },
- {
- "src": "/strategy-lab",
- "dest": "/strategy-lab.html"
- },
- {
- "src": "/strategy-lab/",
- "dest": "/strategy-lab.html"
- },
- {
- "src": "/pump-visualizer/?",
- "dest": "/pump-visualizer.html"
- },
- {
- "src": "/pump-live/?",
- "dest": "/pump-live.html"
- },
- {
- "src": "/pump-dashboard/?",
- "dest": "/pump-dashboard.html"
- },
- {
- "src": "/avatar-artifact/?",
- "dest": "/avatar-artifact.html"
- },
- {
- "src": "/walk/?",
- "dest": "/walk.html"
- },
- {
- "src": "/pose/?",
- "dest": "/pose.html"
- },
- {
- "src": "/club/?",
- "dest": "/club.html"
- },
- {
- "src": "/agenc/embodied/?",
- "dest": "/agenc/embodied.html"
- },
- {
- "src": "/agenc/room/?",
- "dest": "/agenc/room.html"
- },
- {
- "src": "/api/agenc/list-tasks",
- "dest": "/api/agenc/[action]?action=list-tasks"
- },
- {
- "src": "/api/agenc/get-task",
- "dest": "/api/agenc/[action]?action=get-task"
- },
- {
- "src": "/api/agenc/get-agent",
- "dest": "/api/agenc/[action]?action=get-agent"
- },
- {
- "src": "/api/agenc/x402-services",
- "dest": "/api/agenc/[action]?action=x402-services"
- },
- {
- "src": "/api/agenc/link",
- "dest": "/api/agenc/[action]?action=link"
- },
- {
- "src": "/walkaround/?",
- "dest": "/demos/walkaround.html"
- },
- {
- "src": "/brain/?",
- "dest": "/demos/brain.html"
- },
- {
- "src": "/lipsync/mic/?",
- "dest": "/demos/lipsync-mic.html"
- },
- {
- "src": "/lipsync/?",
- "dest": "/demos/lipsync-tts.html"
- },
- {
- "src": "/launch-week/?",
- "dest": "/three-ws-launch-week.html"
- },
- {
- "src": "/launchpad/?",
- "dest": "/launchpad.html"
- },
- {
- "src": "/next/?",
- "dest": "/next/index.html"
- },
- {
- "src": "/next/index.html",
- "dest": "/next/index.html"
- },
- {
- "src": "/embed/v1.js",
- "headers": {
- "content-type": "application/javascript; charset=utf-8",
- "cache-control": "public, max-age=300, s-maxage=86400, stale-while-revalidate=604800",
- "access-control-allow-origin": "*",
- "cross-origin-resource-policy": "cross-origin",
- "x-content-type-options": "nosniff"
- },
- "dest": "/embed/v1.js"
- },
- {
- "src": "/embed/v1/preview/?",
- "dest": "/embed/v1/preview.html"
- },
- {
- "src": "/embed/v1/preview.html",
- "dest": "/embed/v1/preview.html"
- },
- {
- "src": "/api/embed/resolve",
- "headers": {
- "access-control-allow-origin": "*",
- "cross-origin-resource-policy": "cross-origin"
- },
- "dest": "/api/embed/resolve"
- },
- {
- "src": "/embed",
- "dest": "/embed.html"
- },
- {
- "src": "/embed/",
- "dest": "/embed.html"
- },
- {
- "src": "/embed/avatar",
- "headers": {
- "content-security-policy": "frame-ancestors *",
- "x-content-type-options": "nosniff",
- "referrer-policy": "strict-origin-when-cross-origin",
- "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*",
- "cross-origin-resource-policy": "cross-origin"
- },
- "dest": "/avatar-embed.html"
- },
- {
- "src": "/embed/avatar/([a-z0-9_-]{3,30})",
- "headers": {
- "content-security-policy": "frame-ancestors *",
- "x-content-type-options": "nosniff",
- "referrer-policy": "strict-origin-when-cross-origin",
- "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*",
- "cross-origin-resource-policy": "cross-origin"
- },
- "dest": "/avatar-embed.html?handle=$1"
- },
- {
- "src": "/@([a-z0-9_-]{3,30})/?",
- "dest": "/handle.html"
- },
- {
- "src": "/overlay-control/?",
- "dest": "/overlay-control.html"
- },
- {
- "src": "/mocap-studio/?",
- "dest": "/mocap-studio.html"
- },
- {
- "src": "/api/mocap/clips",
- "dest": "/api/mocap/clips"
- },
- {
- "src": "/api/mocap/clips/([0-9a-f-]+)",
- "dest": "/api/mocap/[id]?id=$1"
- },
- {
- "src": "/widget",
- "headers": {
- "content-security-policy": "frame-ancestors *",
- "x-content-type-options": "nosniff",
- "referrer-policy": "strict-origin-when-cross-origin",
- "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*, autoplay=*",
- "cross-origin-resource-policy": "cross-origin"
- },
- "dest": "/widget.html"
- },
- {
- "src": "/widget/",
- "headers": {
- "content-security-policy": "frame-ancestors *",
- "x-content-type-options": "nosniff",
- "referrer-policy": "strict-origin-when-cross-origin",
- "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*, autoplay=*",
- "cross-origin-resource-policy": "cross-origin"
- },
- "dest": "/widget.html"
- },
- {
- "src": "/widget\\.html$",
- "headers": {
- "content-security-policy": "frame-ancestors *",
- "x-content-type-options": "nosniff",
- "referrer-policy": "strict-origin-when-cross-origin",
- "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*, autoplay=*",
- "cross-origin-resource-policy": "cross-origin"
- },
- "dest": "/widget.html"
- },
- {
- "src": "/widget-client\\.js$",
- "headers": {
- "cross-origin-resource-policy": "cross-origin",
- "cache-control": "public, max-age=86400, s-maxage=86400, immutable",
- "x-content-type-options": "nosniff"
- },
- "dest": "/widget-client.js"
- },
- {
- "src": "/playground",
- "dest": "/playground.html"
- },
- {
- "src": "/playground/",
- "dest": "/playground.html"
- },
- {
- "src": "/p/([a-z0-9-]+)/?",
- "dest": "/p/index.html"
- },
- {
- "src": "/pricing/?",
- "dest": "/pricing.html"
- },
- {
- "src": "/x-pricing/?",
- "dest": "/x-pricing.html"
- },
- {
- "src": "/home-next/?",
- "dest": "/home-next.html"
- },
- {
- "src": "/agent-next/?",
- "dest": "/agent-next.html"
- },
- {
- "src": "/deploy",
- "dest": "/app.html"
- },
- {
- "src": "/dashboard",
- "dest": "/dashboard/index.html"
- },
- {
- "src": "/dashboard/",
- "dest": "/dashboard/index.html"
- },
- {
- "src": "/dashboard-next/?",
- "dest": "/dashboard-next/index.html"
- },
- {
- "src": "/dashboard-next/avatars/?",
- "dest": "/dashboard-next/avatars.html"
- },
- {
- "src": "/dashboard-next/library/?",
- "dest": "/dashboard-next/library.html"
- },
- {
- "src": "/dashboard-next/widgets/?",
- "dest": "/dashboard-next/widgets.html"
- },
- {
- "src": "/dashboard-next/api/?",
- "dest": "/dashboard-next/api.html"
- },
- {
- "src": "/dashboard-next/monetize/?",
- "dest": "/dashboard-next/monetize.html"
- },
- {
- "src": "/dashboard-next/account/?",
- "dest": "/dashboard-next/account.html"
- },
- {
- "src": "/dashboard-next/([^./]+)/?",
- "dest": "/dashboard-next/$1.html"
- },
- {
- "src": "/dashboard/agent-pumpfun",
- "dest": "/dashboard/agent-pumpfun.html"
- },
- {
- "src": "/dashboard/wallets",
- "dest": "/dashboard/wallets.html"
- },
- {
- "src": "/dashboard/portfolio/asset",
- "dest": "/dashboard/portfolio-asset.html"
- },
- {
- "src": "/dashboard/portfolio",
- "dest": "/dashboard/portfolio.html"
- },
- {
- "src": "/dashboard/sessions",
- "dest": "/dashboard/sessions.html"
- },
- {
- "src": "/dashboard/actions",
- "dest": "/dashboard/actions.html"
- },
- {
- "src": "/dashboard/embed-policy",
- "dest": "/dashboard/embed-policy.html"
- },
- {
- "src": "/dashboard/memory",
- "dest": "/dashboard/memory.html"
- },
- {
- "src": "/dashboard/strategy",
- "dest": "/dashboard/strategy.html"
- },
- {
- "src": "/dashboard/voice",
- "dest": "/dashboard/voice.html"
- },
- {
- "src": "/dashboard/sns",
- "dest": "/dashboard/sns.html"
- },
- {
- "src": "/dashboard/delegation",
- "dest": "/dashboard/delegation.html"
- },
- {
- "src": "/dashboard/tokens",
- "dest": "/dashboard/tokens.html"
- },
- {
- "src": "/dashboard/x402",
- "dest": "/dashboard/x402.html"
- },
- {
- "src": "/dashboard/(agents|avatars|create|upload|animations|widgets|embed|keys|mcp|monetization|payments|subscriptions|billing|revenue|withdrawals|earnings|account)/?",
- "dest": "/dashboard/index.html"
- },
- {
- "src": "/dashboard/edit/[^/]+/?",
- "dest": "/dashboard/index.html"
- },
- {
- "src": "/dashboard/(.*)",
- "dest": "/dashboard/$1"
- },
- {
- "src": "/hydrate",
- "dest": "/hydrate/index.html"
- },
- {
- "src": "/hydrate/",
- "dest": "/hydrate/index.html"
- },
- {
- "src": "/studio",
- "dest": "/studio/index.html"
- },
- {
- "src": "/studio/",
- "dest": "/studio/index.html"
- },
- {
- "src": "/studio/(.*)",
- "dest": "/studio/$1"
- },
- {
- "src": "/avatar-studio",
- "dest": "/avatar-studio/index.html"
- },
- {
- "src": "/avatar-studio/",
- "dest": "/avatar-studio/index.html"
- },
- {
- "src": "/avatar-studio/(.*)",
- "dest": "/avatar-studio/$1"
- },
- {
- "src": "/demos",
- "dest": "/demos/index.html"
- },
- {
- "src": "/demos/",
- "dest": "/demos/index.html"
- },
- {
- "src": "/demos/(.*)\\.html",
- "dest": "/demos/$1.html"
- },
- {
- "src": "/demos/([^/.]+)",
- "dest": "/demos/$1.html"
- },
- {
- "src": "/demo/avatar-os",
- "dest": "/demo/avatar-os/index.html"
- },
- {
- "src": "/demo/avatar-os/",
- "dest": "/demo/avatar-os/index.html"
- },
- {
- "src": "/demo/avatar-os/(.*)",
- "dest": "/demo/avatar-os/$1"
- },
- {
- "src": "/api/dashboard/prefs",
- "dest": "/api/dashboard/prefs"
- },
- {
- "src": "/api/marketplace/theme",
- "dest": "/api/marketplace/[action]?action=theme"
- },
- {
- "src": "/api/marketplace/categories",
- "dest": "/api/marketplace/[action]?action=categories"
- },
- {
- "src": "/api/marketplace/agents",
- "dest": "/api/marketplace/[action]?action=agents"
- },
- {
- "src": "/api/agents/([^/]+)/skills/set-price",
- "dest": "/api/agent-skills?agentId=$1&action=set-price"
- },
- {
- "src": "/api/marketplace/agents/([^/]+)",
- "dest": "/api/marketplace/[action]?action=agents&id=$1"
- },
- {
- "src": "/api/marketplace/agents/([^/]+)/([^/]+)",
- "dest": "/api/marketplace/[action]?action=agents&id=$1&sub=$2"
- },
- {
- "src": "/api/marketplace/start-trial",
- "dest": "/api/marketplace/start-trial"
- },
- {
- "src": "/api/marketplace/purchase/([^/]+)/confirm",
- "dest": "/api/marketplace/purchase?reference=$1&op=confirm"
- },
- {
- "src": "/api/marketplace/purchase/([^/]+)",
- "dest": "/api/marketplace/purchase?reference=$1"
- },
- {
- "src": "/api/marketplace/buy-asset/([^/]+)/confirm",
- "dest": "/api/marketplace/buy-asset?reference=$1&op=confirm"
- },
- {
- "src": "/api/marketplace/buy-asset/([^/]+)",
- "dest": "/api/marketplace/buy-asset?reference=$1"
- },
- {
- "src": "/marketplace",
- "dest": "/marketplace.html"
- },
- {
- "src": "/marketplace/",
- "dest": "/marketplace.html"
- },
- {
- "src": "/marketplace/agents/([^/]+)",
- "dest": "/marketplace.html"
- },
- {
- "src": "/marketplace/avatars/([^/]+)",
- "dest": "/marketplace.html"
- },
- {
- "src": "/api/agents/me",
- "dest": "/api/agents"
- },
- {
- "src": "/api/agents/suggest",
- "dest": "/api/agents/suggest"
- },
- {
- "src": "/api/agents/by-wallet",
- "dest": "/api/agents/by-wallet"
- },
- {
- "src": "/api/agents/by-address/([^/]+)",
- "dest": "/api/agents/by-address/[addr]?addr=$1"
- },
- {
- "src": "/api/agents/x402/invoke",
- "dest": "/api/agents/x402/[action]?action=invoke"
- },
- {
- "src": "/api/agents/x402/manifest",
- "dest": "/api/agents/x402/[action]?action=manifest"
- },
- {
- "src": "/api/agents/([^/]+)/wallet",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/solana",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/solana/([^/]+)",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/pumpfun/([^/]+)",
- "dest": "/api/agents/pumpfun/[action]?id=$1&action=$2"
- },
- {
- "src": "/api/avatars/([^/]+)/agents",
- "dest": "/api/avatars/[id]/agents?id=$1"
- },
- {
- "src": "/api/avatars/([^/]+)/coins",
- "dest": "/api/avatars/[id]/coins?id=$1"
- },
- {
- "src": "/api/avatars/([^/]+)/storage-mode",
- "dest": "/api/avatars/[id]/storage-mode?id=$1"
- },
- {
- "src": "/api/avatars/([^/]+)/pin-ipfs",
- "dest": "/api/avatars/[id]/pin-ipfs?id=$1"
- },
- {
- "src": "/api/avatars/([^/]+)/thumbnail",
- "dest": "/api/avatars/[id]/thumbnail?id=$1"
- },
- {
- "src": "/dashboard/storage",
- "dest": "/dashboard/storage.html"
- },
- {
- "src": "/api/agents/([^/]+)/embed-policy",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/sign",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/animations",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/manifest",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/actions",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/usage",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/memories/([^/]+)",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/memories",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/memory/pin",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/memory/seed/x",
- "dest": "/api/agents/[id]/memory-seed-x?id=$1"
- },
- {
- "src": "/api/agents/([^/]+)/memory/seed/farcaster",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/memory/([^/]+)",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/payments",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/pricing",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/pricing/([^/]+)",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/reputation",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/livekit-token",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/embed",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/persona(/.*)?",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/eth-vanity/([^/]+)",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/eth-vanity",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/sns/([^/]+)",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/sns",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/voice/([^/]+)",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/voice",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/pumpfun-feed",
- "dest": "/api/agents/pumpfun?_handler=feed"
- },
- {
- "src": "/api/agents/pumpfun-metadata",
- "dest": "/api/agents/pumpfun?_handler=metadata"
- },
- {
- "src": "/api/agents/pumpfun",
- "dest": "/api/agents/pumpfun"
- },
- {
- "src": "/api/agents/gmgn-feed",
- "dest": "/api/agents/gmgn?_handler=feed"
- },
- {
- "src": "/api/agents/gmgn",
- "dest": "/api/agents/gmgn"
- },
- {
- "src": "/api/agents/register-prep",
- "dest": "/api/agents/register/[action]?action=prep"
- },
- {
- "src": "/api/agents/register-confirm",
- "dest": "/api/agents/register/[action]?action=confirm"
- },
- {
- "src": "/api/agents/sas-credentials",
- "dest": "/api/agents/sas/[action]?action=credentials"
- },
- {
- "src": "/api/agents/sas-issue-credential",
- "dest": "/api/agents/sas/[action]?action=issue-credential"
- },
- {
- "src": "/api/agents/check-name",
- "dest": "/api/agents/check-name"
- },
- {
- "src": "/api/agents/a2a-paid",
- "dest": "/api/agents/a2a-paid"
- },
- {
- "src": "/api/auth/github/connect",
- "dest": "/api/auth/github/[action]?action=connect"
- },
- {
- "src": "/api/auth/github/callback",
- "dest": "/api/auth/github/[action]?action=callback"
- },
- {
- "src": "/api/auth/github/status",
- "dest": "/api/auth/github/[action]?action=status"
- },
- {
- "src": "/api/auth/x/connect",
- "dest": "/api/auth/x/[action]?action=connect"
- },
- {
- "src": "/api/auth/x/callback",
- "dest": "/api/auth/x/[action]?action=callback"
- },
- {
- "src": "/api/auth/wallets",
- "dest": "/api/auth/wallets/[action]"
- },
- {
- "src": "/api/auth/wallets/([^/]+)",
- "dest": "/api/auth/wallets/[action]?action=$1"
- },
- {
- "src": "/api/auth/sessions",
- "dest": "/api/auth/sessions/[action]"
- },
- {
- "src": "/api/auth/sessions/([^/]+)",
- "dest": "/api/auth/sessions/[action]?action=$1"
- },
- {
- "src": "/api/auth/wallet/link",
- "dest": "/api/auth/wallet/[action]?action=link"
- },
- {
- "src": "/api/auth/wallet/unlink",
- "dest": "/api/auth/wallet/[action]?action=unlink"
- },
- {
- "src": "/api/onboarding/avaturn-session",
- "dest": "/api/onboarding/[action]?action=avaturn-session"
- },
- {
- "src": "/api/onboarding/link-avatar",
- "dest": "/api/onboarding/[action]?action=link-avatar"
- },
- {
- "src": "/api/pump/build-metadata",
- "dest": "/api/pump/[action]?action=build-metadata"
- },
- {
- "src": "/api/pump/channel-feed",
- "dest": "/api/pump/[action]?action=channel-feed"
- },
- {
- "src": "/api/pump/deliver-telegram",
- "dest": "/api/pump/[action]?action=deliver-telegram"
- },
- {
- "src": "/api/pump/first-claims",
- "dest": "/api/pump/[action]?action=first-claims"
- },
- {
- "src": "/api/pump/vanity-keygen",
- "dest": "/api/pump/[action]?action=vanity-keygen"
- },
- {
- "src": "/api/pump/helius-webhook",
- "dest": "/api/pump/helius-webhook"
- },
- {
- "src": "/api/pump/balances",
- "dest": "/api/pump/[action]?action=balances"
- },
- {
- "src": "/api/pump/buy-prep",
- "dest": "/api/pump/[action]?action=buy-prep"
- },
- {
- "src": "/api/pump/buy-confirm",
- "dest": "/api/pump/[action]?action=buy-confirm"
- },
- {
- "src": "/api/pump/sell-prep",
- "dest": "/api/pump/[action]?action=sell-prep"
- },
- {
- "src": "/api/pump/sell-confirm",
- "dest": "/api/pump/[action]?action=sell-confirm"
- },
- {
- "src": "/api/pump/launch-prep",
- "dest": "/api/pump/[action]?action=launch-prep"
- },
- {
- "src": "/api/pump/launch-confirm",
- "dest": "/api/pump/[action]?action=launch-confirm"
- },
- {
- "src": "/api/pump/launch-agent",
- "dest": "/api/pump/[action]?action=launch-agent"
- },
- {
- "src": "/api/pump/agent-wallet",
- "dest": "/api/pump/[action]?action=agent-wallet"
- },
- {
- "src": "/api/pump/accept-payment-prep",
- "dest": "/api/pump/[action]?action=accept-payment-prep"
- },
- {
- "src": "/api/pump/accept-payment-confirm",
- "dest": "/api/pump/[action]?action=accept-payment-confirm"
- },
- {
- "src": "/api/pump/payments-list",
- "dest": "/api/pump/[action]?action=payments-list"
- },
- {
- "src": "/api/pump/portfolio",
- "dest": "/api/pump/[action]?action=portfolio"
- },
- {
- "src": "/api/pump/by-agent",
- "dest": "/api/pump/[action]?action=by-agent"
- },
- {
- "src": "/api/pump/quote",
- "dest": "/api/pump/[action]?action=quote"
- },
- {
- "src": "/api/pump/governance-prep",
- "dest": "/api/pump/[action]?action=governance-prep"
- },
- {
- "src": "/api/pump/withdraw-prep",
- "dest": "/api/pump/[action]?action=withdraw-prep"
- },
- {
- "src": "/api/pump/withdraw-confirm",
- "dest": "/api/pump/[action]?action=withdraw-confirm"
- },
- {
- "src": "/api/pump/strategy-backtest",
- "dest": "/api/pump/[action]?action=strategy-backtest"
- },
- {
- "src": "/api/pump/strategy-close-all",
- "dest": "/api/pump/[action]?action=strategy-close-all"
- },
- {
- "src": "/api/pump/strategy-run",
- "dest": "/api/pump/[action]?action=strategy-run"
- },
- {
- "src": "/api/pump/strategy-validate",
- "dest": "/api/pump/[action]?action=strategy-validate"
- },
- {
- "src": "/api/pump/live-stream",
- "dest": "/api/pump/[action]?action=live-stream"
- },
- {
- "src": "/api/pump/recent-graduations",
- "dest": "/api/pump/[action]?action=recent-graduations"
- },
- {
- "src": "/api/demo/coin/state",
- "dest": "/api/demo/coin/[action]?action=state"
- },
- {
- "src": "/api/demo/coin/holder",
- "dest": "/api/demo/coin/[action]?action=holder"
- },
- {
- "src": "/api/demo/coin/history",
- "dest": "/api/demo/coin/[action]?action=history"
- },
- {
- "src": "/api/demo/coin/events",
- "dest": "/api/demo/coin/[action]?action=events"
- },
- {
- "src": "/api/demo/coin/winners",
- "dest": "/api/demo/coin/[action]?action=winners"
- },
- {
- "src": "/api/demo/coin/holders",
- "dest": "/api/demo/coin/[action]?action=holders"
- },
- {
- "src": "/coin",
- "status": 301,
- "headers": {
- "Location": "/demo/coin"
- }
- },
- {
- "src": "/coin/",
- "status": 301,
- "headers": {
- "Location": "/demo/coin"
- }
- },
- {
- "src": "/demo/coin",
- "dest": "/demo/coin/index.html"
- },
- {
- "src": "/demo/coin/",
- "dest": "/demo/coin/index.html"
- },
- {
- "src": "/demo/coin/([1-9A-HJ-NP-Za-km-z]{32,44})/?",
- "dest": "/demo/coin/index.html"
- },
- {
- "src": "/api/avatars/presign",
- "dest": "/api/avatars/[id]"
- },
- {
- "src": "/api/avatars/upload",
- "dest": "/api/avatars/[id]"
- },
- {
- "src": "/api/avatars/view",
- "dest": "/api/avatars/view"
- },
- {
- "src": "/api/avatars/presign-thumbnail",
- "dest": "/api/avatars/[id]"
- },
- {
- "src": "/api/avatars/presign-usdz",
- "dest": "/api/avatars/[id]"
- },
- {
- "src": "/api/avatars/presign-halfbody",
- "dest": "/api/avatars/[id]"
- },
- {
- "src": "/api/avatars/auto-tag",
- "dest": "/api/avatars/[id]"
- },
- {
- "src": "/api/avatars/public",
- "dest": "/api/avatars/[id]"
- },
- {
- "src": "/api/avatars/regenerate-status",
- "dest": "/api/avatars/[id]"
- },
- {
- "src": "/api/avatars/regenerate",
- "dest": "/api/avatars/[id]"
- },
- {
- "src": "/api/avatars/reconstruct",
- "dest": "/api/avatars/[id]"
- },
- {
- "src": "/api/agents/([^/]+)/memory-seed",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents/([^/]+)",
- "dest": "/api/agents/[id]"
- },
- {
- "src": "/api/agents",
- "dest": "/api/agents"
- },
- {
- "src": "/api/agent-actions",
- "dest": "/api/agent-actions"
- },
- {
- "src": "/api/agent-memory/([^/]+)",
- "dest": "/api/agent-memory"
- },
- {
- "src": "/api/agent-memory",
- "dest": "/api/agent-memory"
- },
- {
- "src": "/api/agent/([^/]+)/og",
- "dest": "/api/agent-og?id=$1"
- },
- {
- "src": "/api/avatar/([^/]+)/og",
- "dest": "/api/avatar-og?id=$1"
- },
- {
- "src": "/api/avatar/video-generate",
- "dest": "/api/avatar/video-generate"
- },
- {
- "src": "/api/avatar/video-status",
- "dest": "/api/avatar/video-status"
- },
- {
- "src": "/api/avatar/presign-audio",
- "dest": "/api/avatar/presign-audio"
- },
- {
- "src": "/api/avatars/([^/]+)/og",
- "dest": "/api/avatar-og?id=$1"
- },
- {
- "src": "/api/a/(\\d+)/(\\d+)/og",
- "dest": "/api/a-og?chain=$1&id=$2"
- },
- {
- "src": "/api/oembed",
- "dest": "/api/agent-oembed"
- },
- {
- "src": "/u/([^/]+)",
- "dest": "/profile.html"
- },
- {
- "src": "/avatars/([^/]+\\.glb)",
- "dest": "/avatars/$1"
- },
- {
- "src": "/avatars/([^/]+)",
- "dest": "/avatar-page.html"
- },
- {
- "src": "/api/characters",
- "dest": "/api/characters.js"
- },
- {
- "src": "/characters",
- "dest": "/characters.html"
- },
- {
- "src": "/characters/",
- "dest": "/characters.html"
- },
- {
- "src": "/character/([^/]+)",
- "dest": "/character.html"
- },
- {
- "src": "/api/user/provider-keys",
- "dest": "/api/user/provider-keys.js"
- },
- {
- "src": "/api/users/me/earnings",
- "dest": "/api/users/earnings.js"
- },
- {
- "src": "/api/users/by-subdomain",
- "dest": "/api/users/by-subdomain.js"
- },
- {
- "src": "/api/threews/subdomain",
- "dest": "/api/threews/subdomain.js"
- },
- {
- "src": "/api/threews/me",
- "dest": "/api/threews/me.js"
- },
- {
- "src": "/api/u-og",
- "dest": "/api/u-og.js"
- },
- {
- "src": "/api/x402/pay-by-name",
- "dest": "/api/x402/pay-by-name.js"
- },
- {
- "src": "/threews/claim",
- "dest": "/threews-claim.html"
- },
- {
- "src": "/api/users/([^/]+)/avatar",
- "dest": "/api/users/[username]/avatar?username=$1"
- },
- {
- "src": "/api/users/([^/]+)",
- "dest": "/api/users/[username]?username=$1"
- },
- {
- "src": "/api/auth/profile",
- "dest": "/api/auth/[action]?action=profile"
- },
- {
- "src": "/a/(\\d+)/(\\d+)/edit",
- "dest": "/a-edit.html"
- },
- {
- "src": "/agent/new",
- "dest": "/agent-edit.html"
- },
- {
- "src": "/agent/([^/]+)/edit",
- "dest": "/agent-edit.html"
- },
- {
- "src": "/avatars/([^/]+)/edit",
- "dest": "/avatar-edit.html?id=$1"
- },
- {
- "src": "/agent/([^/]+)/embed",
- "headers": {
- "content-security-policy": "frame-ancestors *",
- "x-content-type-options": "nosniff",
- "referrer-policy": "strict-origin-when-cross-origin",
- "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*",
- "cross-origin-resource-policy": "cross-origin"
- },
- "dest": "/agent-embed.html"
- },
- {
- "src": "/agent/index.html",
- "dest": "/agent/index.html"
- },
- {
- "src": "/agent/([^/]+)",
- "has": [
- {
- "type": "query",
- "key": "_spa",
- "value": "1"
- }
- ],
- "dest": "/agent-home.html"
- },
- {
- "src": "/agent/([^/]+)",
- "dest": "/api/agent-page?id=$1"
- },
- {
- "src": "/agent",
- "dest": "/agent-home.html"
- },
- {
- "src": "/api/widgets/oembed",
- "dest": "/api/widgets/oembed"
- },
- {
- "src": "/api/widgets/page",
- "dest": "/api/widgets/page"
- },
- {
- "src": "/api/widgets/([A-Za-z0-9_-]+)/og",
- "dest": "/api/widgets/og?id=$1"
- },
- {
- "src": "/api/widgets/([A-Za-z0-9_-]+)/view",
- "dest": "/api/widgets/view?id=$1"
- },
- {
- "src": "/api/widgets/([A-Za-z0-9_-]+)/duplicate",
- "dest": "/api/widgets/[id]/duplicate?id=$1"
- },
- {
- "src": "/api/widgets/([A-Za-z0-9_-]+)/stats",
- "dest": "/api/widgets/[id]/stats?id=$1"
- },
- {
- "src": "/api/widgets/([A-Za-z0-9_-]+)/chat",
- "dest": "/api/widgets/[id]/chat?id=$1"
- },
- {
- "src": "/api/widgets/([A-Za-z0-9_-]+)/transcripts",
- "dest": "/api/widgets/[id]/transcripts?id=$1"
- },
- {
- "src": "/api/widgets/([A-Za-z0-9_-]+)/knowledge",
- "dest": "/api/widgets/[id]/knowledge?id=$1"
- },
- {
- "src": "/api/widgets/([A-Za-z0-9_-]+)/knowledge-process",
- "dest": "/api/widgets/[id]/knowledge-process?id=$1"
- },
- {
- "src": "/api/agent-strategy",
- "dest": "/api/agent-strategy"
- },
- {
- "src": "/api/widgets",
- "dest": "/api/widgets"
- },
- {
- "src": "/api/widgets/index",
- "dest": "/api/widgets"
- },
- {
- "src": "/api/widgets/([A-Za-z0-9_-]+)",
- "dest": "/api/widgets/[id]?id=$1"
- },
- {
- "src": "/w/([A-Za-z0-9_-]+)",
- "dest": "/api/widgets/page?id=$1"
- },
- {
- "src": "/widgets",
- "dest": "/widgets-gallery/index.html"
- },
- {
- "src": "/widgets/",
- "dest": "/widgets-gallery/index.html"
- },
- {
- "src": "/widgets/(.*)",
- "dest": "/widgets-gallery/$1"
- },
- {
- "src": "/gallery",
- "dest": "/gallery/index.html"
- },
- {
- "src": "/gallery/",
- "dest": "/gallery/index.html"
- },
- {
- "src": "/gallery/(.*)",
- "dest": "/gallery/$1"
- },
- {
- "src": "/docs",
- "dest": "/docs/index.html"
- },
- {
- "src": "/docs/",
- "dest": "/docs/index.html"
- },
- {
- "src": "/docs/widgets",
- "dest": "/docs-widgets.html"
- },
- {
- "src": "/docs/([^./]+)",
- "dest": "/docs/index.html"
- },
- {
- "src": "/docs/(.*)",
- "dest": "/docs/$1"
- },
- {
- "src": "/tutorials",
- "dest": "/tutorials.html"
- },
- {
- "src": "/tutorials/",
- "dest": "/tutorials.html"
- },
- {
- "src": "/tutorials/([a-z0-9-]+)",
- "dest": "/tutorial.html"
- },
- {
- "src": "/tutorials/([a-z0-9-]+)/",
- "dest": "/tutorial.html"
- },
- {
- "src": "/artifact",
- "dest": "/artifact/index.html"
- },
- {
- "src": "/artifact/",
- "dest": "/artifact/index.html"
- },
- {
- "src": "/artifact/(.*)",
- "dest": "/artifact/$1"
- },
- {
- "src": "/cz",
- "dest": "/cz/index.html"
- },
- {
- "src": "/cz/",
- "dest": "/cz/index.html"
- },
- {
- "src": "/cz/(.*)",
- "dest": "/cz/$1"
- },
- {
- "src": "/validation",
- "dest": "/validation/index.html"
- },
- {
- "src": "/validation/",
- "dest": "/validation/index.html"
- },
- {
- "src": "/validation/(.*)",
- "dest": "/validation/$1"
- },
- {
- "src": "/lobehub/iframe",
- "dest": "/lobehub/iframe/index.html"
- },
- {
- "src": "/lobehub/iframe/",
- "dest": "/lobehub/iframe/index.html"
- },
- {
- "src": "/lobehub/iframe/(.*)",
- "dest": "/lobehub/iframe/$1"
- },
- {
- "src": "/reputation",
- "dest": "/reputation/index.html"
- },
- {
- "src": "/reputation/",
- "dest": "/reputation/index.html"
- },
- {
- "src": "/reputation/(.*)",
- "dest": "/reputation/$1"
- },
- {
- "src": "/pay",
- "dest": "/pay/index.html"
- },
- {
- "src": "/pay/",
- "dest": "/pay/index.html"
- },
- {
- "src": "/pay/calls/[1-9A-HJ-NP-Za-km-z]+",
- "dest": "/pay/calls/index.html"
- },
- {
- "src": "/pay/c/[a-z0-9][a-z0-9-]+/?",
- "dest": "/pay/c/index.html"
- },
- {
- "src": "/pay/(.*)",
- "dest": "/pay/$1"
- },
- {
- "src": "/x402",
- "dest": "/x402-stripe.html"
- },
- {
- "src": "/x402/",
- "dest": "/x402-stripe.html"
- },
- {
- "src": "/bazaar",
- "dest": "/bazaar.html"
- },
- {
- "src": "/bazaar/",
- "dest": "/bazaar.html"
- },
- {
- "src": "/api/bazaar/list",
- "dest": "/api/bazaar/list.js"
- },
- {
- "src": "/api/bazaar/search",
- "dest": "/api/bazaar/search.js"
- },
- {
- "src": "/settings",
- "dest": "/settings/index.html"
- },
- {
- "src": "/settings/",
- "dest": "/settings/index.html"
- },
- {
- "src": "/settings/(.*)",
- "dest": "/settings/$1"
- },
- {
- "src": "/api/llm/anthropic",
- "dest": "/api/llm/anthropic.js"
- },
- {
- "src": "/dashboard/usage",
- "dest": "/dashboard/usage.html"
- },
- {
- "src": "/api/erc8004/register-confirm",
- "dest": "/api/erc8004/register-confirm"
- },
- {
- "src": "/api/erc8004/hydrate",
- "dest": "/api/erc8004/[action]?action=hydrate"
- },
- {
- "src": "/api/erc8004/import",
- "dest": "/api/erc8004/[action]?action=import"
- },
- {
- "src": "/api/erc8004/pin",
- "dest": "/api/erc8004/[action]?action=pin"
- },
- {
- "src": "/api/subscriptions/plans(/.*)?",
- "dest": "/api/subscriptions/plans.js"
- },
- {
- "src": "/api/subscriptions(/.*)?",
- "dest": "/api/subscriptions/index.js"
- },
- {
- "src": "/api/dca-strategies/([^/]+)",
- "dest": "/api/dca-strategies?id=$1"
- },
- {
- "src": "/api/dca-strategies",
- "dest": "/api/dca-strategies"
- },
- {
- "src": "/api/billing/summary",
- "dest": "/api/billing/summary"
- },
- {
- "src": "/api/billing/revenue",
- "dest": "/api/billing/revenue"
- },
- {
- "src": "/agents",
- "dest": "/agents/index.html"
- },
- {
- "src": "/agents/",
- "dest": "/agents/index.html"
- },
- {
- "src": "/agents/([^/]+)",
- "dest": "/agent-detail.html"
- },
- {
- "src": "/my-agents",
- "dest": "/my-agents/index.html"
- },
- {
- "src": "/my-agents/",
- "dest": "/my-agents/index.html"
- },
- {
- "src": "/my-agents/(.*)",
- "dest": "/my-agents/$1"
- },
- {
- "src": "/discover",
- "dest": "/discover/index.html"
- },
- {
- "src": "/discover/",
- "dest": "/discover/index.html"
- },
- {
- "src": "/discover/a/(\\d+)/(\\d+)",
- "dest": "/api/discover-detail?kind=onchain&chain=$1&id=$2"
- },
- {
- "src": "/discover/avatar/([^/]+)",
- "status": 301,
- "headers": { "Location": "/marketplace/agents/$1" }
- },
- {
- "src": "/discover/(.*)",
- "dest": "/discover/$1"
- },
- {
- "src": "/api/plugins/([^/]+)/install",
- "dest": "/api/plugins/[action]?id=$1&sub=install"
- },
- {
- "src": "/api/plugins/(categories|list|import|publish)",
- "dest": "/api/plugins/[action]?action=$1"
- },
- {
- "src": "/api/plugins/([^/]+)",
- "dest": "/api/plugins/[action]?id=$1"
- },
- {
- "src": "/api/skills/categories",
- "dest": "/api/skills/categories"
- },
- {
- "src": "/api/skills/([^/]+)/install",
- "dest": "/api/skills/[id]/install?id=$1"
- },
- {
- "src": "/api/skills/([^/]+)/rate",
- "dest": "/api/skills/[id]/rate?id=$1"
- },
- {
- "src": "/api/skills/([^/]+)",
- "dest": "/api/skills/[id]?id=$1"
- },
- {
- "src": "/api/skills",
- "dest": "/api/skills/index"
- },
- {
- "src": "/tool_schema",
- "dest": "/api/tool_schema"
- },
- {
- "src": "/api/club/tips/stream",
- "dest": "/api/club/tips-stream"
- },
- {
- "src": "/api/(.*)",
- "dest": "/api/$1"
- },
- {
- "src": "/agent-3d/([0-9]+\\.[0-9]+\\.[0-9]+(?:-[A-Za-z0-9.-]+)?)/(.*)",
- "headers": {
- "cache-control": "public, max-age=31536000, immutable",
- "access-control-allow-origin": "*",
- "access-control-allow-methods": "GET, HEAD, OPTIONS",
- "cross-origin-resource-policy": "cross-origin",
- "timing-allow-origin": "*"
- },
- "dest": "/agent-3d/$1/$2"
- },
- {
- "src": "/agent-3d/(latest|[0-9]+|[0-9]+\\.[0-9]+)/(.*)",
- "headers": {
- "cache-control": "public, max-age=300, s-maxage=300, stale-while-revalidate=86400",
- "access-control-allow-origin": "*",
- "access-control-allow-methods": "GET, HEAD, OPTIONS",
- "cross-origin-resource-policy": "cross-origin",
- "timing-allow-origin": "*"
- },
- "dest": "/agent-3d/$1/$2"
- },
- {
- "src": "/api/agent-3d/versions",
- "dest": "/api/agent-3d/versions"
- },
- {
- "src": "/agent-3d/versions\\.json",
- "headers": {
- "cache-control": "public, max-age=60, s-maxage=60",
- "access-control-allow-origin": "*"
- },
- "dest": "/agent-3d/versions.json"
- },
- {
- "src": "/assets/(.*)",
- "headers": {
- "cache-control": "max-age=604800, public",
- "cross-origin-resource-policy": "cross-origin"
- },
- "dest": "/assets/$1"
- },
- {
- "src": "/\\.well-known/solana/actions\\.json",
- "headers": {
- "cache-control": "public, max-age=300",
- "content-type": "application/json",
- "access-control-allow-origin": "*"
- },
- "dest": "/.well-known/solana/actions.json"
- },
- {
- "src": "/\\.well-known/(.*)",
- "headers": {
- "cache-control": "max-age=86400, public"
- },
- "dest": "/.well-known/$1"
- },
- {
- "src": "/robots.txt",
- "dest": "/robots.txt"
- },
- {
- "src": "/sitemap.xml",
- "dest": "/api/sitemap"
- },
- {
- "src": "/sitemap/(core|agents|avatars|widgets|profiles)\\.xml",
- "dest": "/api/sitemap/[type]?type=$1"
- },
- {
- "src": "/sitemap",
- "dest": "/sitemap/index.html"
- },
- {
- "src": "/sitemap/",
- "dest": "/sitemap/index.html"
- },
- {
- "src": "/news",
- "dest": "/news/index.html"
- },
- {
- "src": "/news/",
- "dest": "/news/index.html"
- },
- {
- "src": "/news/([a-z0-9_-]+)/?",
- "dest": "/news/$1.html"
- },
- {
- "src": "/blog",
- "dest": "/blog/index.html"
- },
- {
- "src": "/blog/",
- "dest": "/blog/index.html"
- },
- {
- "src": "/blog/([a-z0-9-]+)/?",
- "dest": "/blog/$1.html"
- },
- {
- "src": "/llms.txt",
- "headers": {
- "content-type": "text/plain; charset=utf-8",
- "cache-control": "public, max-age=3600"
- },
- "dest": "/llms.txt"
- },
- {
- "src": "/llms-full.txt",
- "headers": {
- "content-type": "text/plain; charset=utf-8",
- "cache-control": "public, max-age=3600"
- },
- "dest": "/llms-full.txt"
- },
- {
- "src": "/app",
- "dest": "/app.html"
- },
- {
- "src": "/app-demo",
- "dest": "/app-demo.html"
- },
- {
- "src": "/app-next",
- "dest": "/app-next.html"
- },
- {
- "src": "/embed-demo",
- "dest": "/embed-demo.html"
- },
- {
- "src": "/embed-demo/",
- "dest": "/embed-demo.html"
- },
- {
- "src": "/chat",
- "dest": "/chat/index.html"
- },
- {
- "src": "/chat/",
- "dest": "/chat/index.html"
- },
- {
- "src": "/chat/(.*)",
- "dest": "/chat/$1"
- },
- {
- "src": "/import/rpm",
- "dest": "/import-rpm.html"
- },
- {
- "src": "/import/rpm/",
- "dest": "/import-rpm.html"
- },
- {
- "src": "/create/video/?",
- "dest": "/create/video.html"
- },
- {
- "src": "/create/selfie",
- "dest": "/create-selfie.html"
- },
- {
- "src": "/create/selfie/",
- "dest": "/create-selfie.html"
- },
- {
- "src": "/create-review",
- "dest": "/create-review.html"
- },
- {
- "src": "/create-review/",
- "dest": "/create-review.html"
- },
- {
- "src": "/create",
- "dest": "/create.html"
- },
- {
- "src": "/create/",
- "dest": "/create.html"
- },
- {
- "src": "/creating",
- "dest": "/creating.html"
- },
- {
- "src": "/creating/",
- "dest": "/creating.html"
- },
- {
- "src": "/legal/privacy/?",
- "dest": "/legal/privacy.html"
- },
- {
- "src": "/legal/tos/?",
- "dest": "/legal/tos.html"
- },
- {
- "src": "/features",
- "dest": "/features.html"
- },
- {
- "src": "/features/",
- "dest": "/features.html"
- },
- {
- "src": "/",
- "dest": "/home.html"
- },
- {
- "src": "/home-v2",
- "dest": "/home-v2.html"
- },
- {
- "src": "/home-v2/",
- "dest": "/home-v2.html"
- },
- {
- "src": "/home",
- "status": 301,
- "headers": {
- "Location": "/"
- }
- },
- {
- "src": "/explore",
- "status": 301,
- "headers": {
- "Location": "/discover"
- }
- },
- {
- "src": "/explore/",
- "status": 301,
- "headers": {
- "Location": "/discover"
- }
- },
- {
- "src": "/dappbay",
- "status": 302,
- "headers": {
- "Location": "https://dappbay.bnbchain.org/detail/three"
- }
- },
- {
- "src": "/dappbay/",
- "status": 302,
- "headers": {
- "Location": "https://dappbay.bnbchain.org/detail/three"
- }
- },
- {
- "src": "/a/(\\d+)/(\\d+)/embed",
- "headers": {
- "content-security-policy": "frame-ancestors *",
- "x-content-type-options": "nosniff",
- "referrer-policy": "strict-origin-when-cross-origin",
- "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*"
- },
- "dest": "/a-embed.html"
- },
- {
- "src": "/a/(\\d+)/(\\d+)",
- "dest": "/api/a-page?chain=$1&id=$2"
- },
- {
- "src": "/a/(.*)",
- "dest": "/app.html"
- },
- {
- "src": "/dist-lib/(.*)",
- "headers": {
- "cache-control": "public, max-age=300, s-maxage=300, stale-while-revalidate=86400",
- "access-control-allow-origin": "*",
- "cross-origin-resource-policy": "cross-origin"
- },
- "dest": "/dist-lib/$1"
- },
- {
- "src": "/rider",
- "dest": "/rider/index.html"
- },
- {
- "src": "/rider/",
- "dest": "/rider/index.html"
- },
- {
- "src": "/rider/(.*)",
- "dest": "/rider/$1"
- },
- {
- "src": "/(.*)",
- "dest": "/$1"
- }
- ],
- "crons": [
- {
- "path": "/api/cron/audit-log-cleanup",
- "schedule": "0 4 * * *"
- },
- {
- "path": "/api/cron/expire-pending-purchases",
- "schedule": "*/5 * * * *"
- },
- {
- "path": "/api/cron/cleanup-csrf-tokens",
- "schedule": "17 * * * *"
- },
- {
- "path": "/api/cron/process-withdrawals",
- "schedule": "0 * * * *"
- },
- {
- "path": "/api/cron/erc8004-crawl",
- "schedule": "*/15 * * * *"
- },
- {
- "path": "/api/cron/solana-attestations-crawl",
- "schedule": "*/5 * * * *"
- },
- {
- "path": "/api/cron/index-delegations",
- "schedule": "*/5 * * * *"
- },
- {
- "path": "/api/cron/run-dca",
- "schedule": "0 * * * *"
- },
- {
- "path": "/api/cron/run-subscriptions",
- "schedule": "0 * * * *"
- },
- {
- "path": "/api/cron/run-x-scheduled-posts",
- "schedule": "* * * * *"
- },
- {
- "path": "/api/cron/run-x-triggers",
- "schedule": "*/5 * * * *"
- },
- {
- "path": "/api/cron/fetch-x-metrics",
- "schedule": "0 */6 * * *"
- },
- {
- "path": "/api/cron/pumpfun-signals",
- "schedule": "*/15 * * * *"
- },
- {
- "path": "/api/cron/pump-agent-stats",
- "schedule": "*/10 * * * *"
- },
- {
- "path": "/api/cron/pumpfun-monitor",
- "schedule": "*/3 * * * *"
- },
- {
- "path": "/api/cron/solana-attest-event-cleanup",
- "schedule": "*/10 * * * *"
- },
- {
- "path": "/api/cron/settle-royalties",
- "schedule": "0 3 * * *"
- },
- {
- "path": "/api/cron/process-subscriptions",
- "schedule": "0 */6 * * *"
- },
- {
- "path": "/api/cron/run-coin-cycle",
- "schedule": "*/5 * * * *"
- },
- {
- "path": "/api/cron/run-coin-payouts",
- "schedule": "1-59/5 * * * *"
- },
- {
- "path": "/api/cron/club-payouts",
- "schedule": "2-59/5 * * * *"
- },
- {
- "path": "/api/cron/siwx-gc",
- "schedule": "23 * * * *"
- }
- ]
+ "buildCommand": "npm run build:vercel",
+ "outputDirectory": "dist",
+ "public": true,
+ "installCommand": "npm ci --prefer-offline --no-audit --no-fund",
+ "env": {
+ "NODE_OPTIONS": "--no-deprecation"
+ },
+ "functions": {
+ "api/club/tips-stream.js": {
+ "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
+ "maxDuration": 300
+ },
+ "api/avatars/[id].js": {
+ "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
+ "maxDuration": 300
+ },
+ "api/tts/speak.js": {
+ "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
+ "maxDuration": 60
+ },
+ "api/widgets/[id]/knowledge-process.js": {
+ "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
+ "maxDuration": 300
+ },
+ "api/agents/pumpfun.js": {
+ "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
+ "maxDuration": 120
+ },
+ "api/cron/[name].js": {
+ "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
+ "maxDuration": 300
+ },
+ "api/agents/gmgn.js": {
+ "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
+ "maxDuration": 120
+ },
+ "api/**/*.js": {
+ "includeFiles": "node_modules/@zauthx402/sdk/dist/**,node_modules/@bonfida/*/dist/cjs/node_modules/**,node_modules/@bonfida/*/dist/esm/node_modules/**,examples/skills/pump-fun-strategy/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**",
+ "maxDuration": 30
+ }
+ },
+ "routes": [
+ {
+ "src": "/rss/announcements\\.xml",
+ "dest": "/api/rss/announcements"
+ },
+ {
+ "src": "/rss\\.xml",
+ "dest": "/api/rss/announcements"
+ },
+ {
+ "src": "/openapi\\.json",
+ "dest": "/api/openapi-json"
+ },
+ {
+ "src": "/api/features\\.json",
+ "dest": "/api/features"
+ },
+ {
+ "src": "/changelog",
+ "dest": "/changelog/index.html"
+ },
+ {
+ "src": "/changelog/",
+ "dest": "/changelog/index.html"
+ },
+ {
+ "src": "/\\.well-known/chat-plugin\\.json",
+ "dest": "/api/wk?name=chat-plugin"
+ },
+ {
+ "src": "/\\.well-known/x402\\.json",
+ "dest": "/api/wk?name=x402-discovery"
+ },
+ {
+ "src": "/\\.well-known/x402",
+ "dest": "/api/wk?name=x402"
+ },
+ {
+ "src": "/\\.well-known/agent-attestation-schemas",
+ "dest": "/api/wk?name=agent-attestation-schemas"
+ },
+ {
+ "src": "/\\.well-known/jwks\\.json",
+ "dest": "/api/auth/persona/[action]?action=jwks"
+ },
+ {
+ "src": "/\\.well-known/did\\.json",
+ "dest": "/api/x402/did"
+ },
+ {
+ "src": "/\\.well-known/oauth-authorization-server",
+ "dest": "/api/wk?name=oauth-authorization-server"
+ },
+ {
+ "src": "/\\.well-known/oauth-protected-resource",
+ "dest": "/api/wk?name=oauth-protected-resource"
+ },
+ {
+ "src": "/api/mcp/\\.well-known/oauth-protected-resource",
+ "dest": "/api/wk?name=oauth-protected-resource"
+ },
+ {
+ "src": "/a/sol/([^/]+)/\\.well-known/agent-card\\.json",
+ "dest": "/api/agents/solana/[action]?action=card&asset=$1"
+ },
+ {
+ "src": "/api/agents/solana-metadata",
+ "dest": "/api/agents/solana/[action]?action=metadata"
+ },
+ {
+ "src": "/api/agents/solana-attestations",
+ "dest": "/api/agents/solana/[action]?action=attestations"
+ },
+ {
+ "src": "/api/agents/solana-attest-event",
+ "dest": "/api/agents/solana/[action]?action=attest-event"
+ },
+ {
+ "src": "/api/agents/solana-card",
+ "dest": "/api/agents/solana/[action]?action=card"
+ },
+ {
+ "src": "/api/agents/solana-price-history",
+ "dest": "/api/agents/solana/[action]?action=price-history"
+ },
+ {
+ "src": "/api/agents/solana-register-prep",
+ "dest": "/api/agents/solana/[action]?action=register-prep"
+ },
+ {
+ "src": "/api/agents/solana-register-confirm",
+ "dest": "/api/agents/solana/[action]?action=register-confirm"
+ },
+ {
+ "src": "/api/agents/solana-reputation",
+ "dest": "/api/agents/solana/[action]?action=reputation"
+ },
+ {
+ "src": "/api/agents/solana-reputation-history",
+ "dest": "/api/agents/solana/[action]?action=reputation-history"
+ },
+ {
+ "src": "/api/agents/([^/]+)/skills-pricing",
+ "dest": "/api/agents/[id]/skills-pricing?id=$1"
+ },
+ {
+ "src": "/api/agents/([^/]+)/skills/price",
+ "dest": "/api/agent-skill-price.js?agentId=$1"
+ },
+ {
+ "src": "/api/agents/([^/]+)/unlocked-skills",
+ "dest": "/api/agents/[id]/unlocked-skills?id=$1"
+ },
+ {
+ "src": "/api/billing/receipts",
+ "dest": "/api/billing/receipts"
+ },
+ {
+ "src": "/api/newsletter/subscribe",
+ "dest": "/api/newsletter-subscribe"
+ },
+ {
+ "src": "/oauth/authorize",
+ "dest": "/api/oauth/[action]?action=authorize"
+ },
+ {
+ "src": "/oauth/consent",
+ "dest": "/api/oauth/[action]?action=consent"
+ },
+ {
+ "src": "/api/payments/intent",
+ "dest": "/api/payments/intent"
+ },
+ {
+ "src": "/oauth/token",
+ "dest": "/api/oauth/[action]?action=token"
+ },
+ {
+ "src": "/oauth/register",
+ "dest": "/api/oauth/[action]?action=register"
+ },
+ {
+ "src": "/oauth/revoke",
+ "dest": "/api/oauth/[action]?action=revoke"
+ },
+ {
+ "src": "/oauth/introspect",
+ "dest": "/api/oauth/[action]?action=introspect"
+ },
+ {
+ "src": "/login",
+ "dest": "/login.html"
+ },
+ {
+ "src": "/register",
+ "dest": "/register.html"
+ },
+ {
+ "src": "/forgot-password",
+ "dest": "/forgot-password.html"
+ },
+ {
+ "src": "/reset-password",
+ "dest": "/reset-password.html"
+ },
+ {
+ "src": "/wallet-login.js",
+ "dest": "/wallet-login.js"
+ },
+ {
+ "src": "/wallet/(.*)",
+ "dest": "/wallet/$1"
+ },
+ {
+ "src": "/pumpfun",
+ "dest": "/pumpfun.html"
+ },
+ {
+ "src": "/pumpfun/",
+ "dest": "/pumpfun.html"
+ },
+ {
+ "src": "/gmgn",
+ "dest": "/gmgn.html"
+ },
+ {
+ "src": "/gmgn/",
+ "dest": "/gmgn.html"
+ },
+ {
+ "src": "/vanity-wallet",
+ "dest": "/vanity-wallet.html"
+ },
+ {
+ "src": "/vanity-wallet/",
+ "dest": "/vanity-wallet.html"
+ },
+ {
+ "src": "/eth-vanity",
+ "dest": "/eth-vanity.html"
+ },
+ {
+ "src": "/eth-vanity/",
+ "dest": "/eth-vanity.html"
+ },
+ {
+ "src": "/strategy-lab",
+ "dest": "/strategy-lab.html"
+ },
+ {
+ "src": "/strategy-lab/",
+ "dest": "/strategy-lab.html"
+ },
+ {
+ "src": "/pump-visualizer/?",
+ "dest": "/pump-visualizer.html"
+ },
+ {
+ "src": "/pump-live/?",
+ "dest": "/pump-live.html"
+ },
+ {
+ "src": "/pump-dashboard/?",
+ "dest": "/pump-dashboard.html"
+ },
+ {
+ "src": "/avatar-artifact/?",
+ "dest": "/avatar-artifact.html"
+ },
+ {
+ "src": "/walk/?",
+ "dest": "/walk.html"
+ },
+ {
+ "src": "/pose/?",
+ "dest": "/pose.html"
+ },
+ {
+ "src": "/club/?",
+ "dest": "/club.html"
+ },
+ {
+ "src": "/agenc/embodied/?",
+ "dest": "/agenc/embodied.html"
+ },
+ {
+ "src": "/agenc/room/?",
+ "dest": "/agenc/room.html"
+ },
+ {
+ "src": "/api/agenc/list-tasks",
+ "dest": "/api/agenc/[action]?action=list-tasks"
+ },
+ {
+ "src": "/api/agenc/get-task",
+ "dest": "/api/agenc/[action]?action=get-task"
+ },
+ {
+ "src": "/api/agenc/get-agent",
+ "dest": "/api/agenc/[action]?action=get-agent"
+ },
+ {
+ "src": "/api/agenc/x402-services",
+ "dest": "/api/agenc/[action]?action=x402-services"
+ },
+ {
+ "src": "/api/agenc/link",
+ "dest": "/api/agenc/[action]?action=link"
+ },
+ {
+ "src": "/brain/?",
+ "dest": "/demos/brain.html"
+ },
+ {
+ "src": "/lipsync/mic/?",
+ "dest": "/demos/lipsync-mic.html"
+ },
+ {
+ "src": "/lipsync/?",
+ "dest": "/demos/lipsync-tts.html"
+ },
+ {
+ "src": "/launch-week/?",
+ "dest": "/three-ws-launch-week.html"
+ },
+ {
+ "src": "/launchpad/?",
+ "dest": "/launchpad.html"
+ },
+ {
+ "src": "/next/?",
+ "dest": "/next/index.html"
+ },
+ {
+ "src": "/next/index.html",
+ "dest": "/next/index.html"
+ },
+ {
+ "src": "/embed/v1.js",
+ "headers": {
+ "content-type": "application/javascript; charset=utf-8",
+ "cache-control": "public, max-age=300, s-maxage=86400, stale-while-revalidate=604800",
+ "access-control-allow-origin": "*",
+ "cross-origin-resource-policy": "cross-origin",
+ "x-content-type-options": "nosniff"
+ },
+ "dest": "/embed/v1.js"
+ },
+ {
+ "src": "/embed/v1/preview/?",
+ "dest": "/embed/v1/preview.html"
+ },
+ {
+ "src": "/embed/v1/preview.html",
+ "dest": "/embed/v1/preview.html"
+ },
+ {
+ "src": "/api/embed/resolve",
+ "headers": {
+ "access-control-allow-origin": "*",
+ "cross-origin-resource-policy": "cross-origin"
+ },
+ "dest": "/api/embed/resolve"
+ },
+ {
+ "src": "/embed",
+ "dest": "/embed.html"
+ },
+ {
+ "src": "/embed/",
+ "dest": "/embed.html"
+ },
+ {
+ "src": "/embed/avatar",
+ "headers": {
+ "content-security-policy": "frame-ancestors *",
+ "x-content-type-options": "nosniff",
+ "referrer-policy": "strict-origin-when-cross-origin",
+ "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*",
+ "cross-origin-resource-policy": "cross-origin"
+ },
+ "dest": "/avatar-embed.html"
+ },
+ {
+ "src": "/embed/avatar/([a-z0-9_-]{3,30})",
+ "headers": {
+ "content-security-policy": "frame-ancestors *",
+ "x-content-type-options": "nosniff",
+ "referrer-policy": "strict-origin-when-cross-origin",
+ "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*",
+ "cross-origin-resource-policy": "cross-origin"
+ },
+ "dest": "/avatar-embed.html?handle=$1"
+ },
+ {
+ "src": "/@([a-z0-9_-]{3,30})/?",
+ "dest": "/handle.html"
+ },
+ {
+ "src": "/overlay-control/?",
+ "dest": "/overlay-control.html"
+ },
+ {
+ "src": "/mocap-studio/?",
+ "dest": "/mocap-studio.html"
+ },
+ {
+ "src": "/api/mocap/clips",
+ "dest": "/api/mocap/clips"
+ },
+ {
+ "src": "/api/mocap/clips/([0-9a-f-]+)",
+ "dest": "/api/mocap/[id]?id=$1"
+ },
+ {
+ "src": "/widget",
+ "headers": {
+ "content-security-policy": "frame-ancestors *",
+ "x-content-type-options": "nosniff",
+ "referrer-policy": "strict-origin-when-cross-origin",
+ "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*, autoplay=*",
+ "cross-origin-resource-policy": "cross-origin"
+ },
+ "dest": "/widget.html"
+ },
+ {
+ "src": "/widget/",
+ "headers": {
+ "content-security-policy": "frame-ancestors *",
+ "x-content-type-options": "nosniff",
+ "referrer-policy": "strict-origin-when-cross-origin",
+ "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*, autoplay=*",
+ "cross-origin-resource-policy": "cross-origin"
+ },
+ "dest": "/widget.html"
+ },
+ {
+ "src": "/widget\\.html$",
+ "headers": {
+ "content-security-policy": "frame-ancestors *",
+ "x-content-type-options": "nosniff",
+ "referrer-policy": "strict-origin-when-cross-origin",
+ "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*, autoplay=*",
+ "cross-origin-resource-policy": "cross-origin"
+ },
+ "dest": "/widget.html"
+ },
+ {
+ "src": "/widget-client\\.js$",
+ "headers": {
+ "cross-origin-resource-policy": "cross-origin",
+ "cache-control": "public, max-age=86400, s-maxage=86400, immutable",
+ "x-content-type-options": "nosniff"
+ },
+ "dest": "/widget-client.js"
+ },
+ {
+ "src": "/playground",
+ "dest": "/playground.html"
+ },
+ {
+ "src": "/playground/",
+ "dest": "/playground.html"
+ },
+ {
+ "src": "/p/([a-z0-9-]+)/?",
+ "dest": "/p/index.html"
+ },
+ {
+ "src": "/pricing/?",
+ "dest": "/pricing.html"
+ },
+ {
+ "src": "/x-pricing/?",
+ "dest": "/x-pricing.html"
+ },
+ {
+ "src": "/home-next/?",
+ "dest": "/home-next.html"
+ },
+ {
+ "src": "/agent-next/?",
+ "dest": "/agent-next.html"
+ },
+ {
+ "src": "/deploy",
+ "dest": "/app.html"
+ },
+ {
+ "src": "/dashboard",
+ "dest": "/dashboard/index.html"
+ },
+ {
+ "src": "/dashboard/",
+ "dest": "/dashboard/index.html"
+ },
+ {
+ "src": "/dashboard-next/?",
+ "dest": "/dashboard-next/index.html"
+ },
+ {
+ "src": "/dashboard-next/avatars/?",
+ "dest": "/dashboard-next/avatars.html"
+ },
+ {
+ "src": "/dashboard-next/library/?",
+ "dest": "/dashboard-next/library.html"
+ },
+ {
+ "src": "/dashboard-next/widgets/?",
+ "dest": "/dashboard-next/widgets.html"
+ },
+ {
+ "src": "/dashboard-next/api/?",
+ "dest": "/dashboard-next/api.html"
+ },
+ {
+ "src": "/dashboard-next/monetize/?",
+ "dest": "/dashboard-next/monetize.html"
+ },
+ {
+ "src": "/dashboard-next/account/?",
+ "dest": "/dashboard-next/account.html"
+ },
+ {
+ "src": "/dashboard-next/([^./]+)/?",
+ "dest": "/dashboard-next/$1.html"
+ },
+ {
+ "src": "/dashboard/agent-pumpfun",
+ "dest": "/dashboard/agent-pumpfun.html"
+ },
+ {
+ "src": "/dashboard/wallets",
+ "dest": "/dashboard/wallets.html"
+ },
+ {
+ "src": "/dashboard/portfolio/asset",
+ "dest": "/dashboard/portfolio-asset.html"
+ },
+ {
+ "src": "/dashboard/portfolio",
+ "dest": "/dashboard/portfolio.html"
+ },
+ {
+ "src": "/dashboard/sessions",
+ "dest": "/dashboard/sessions.html"
+ },
+ {
+ "src": "/dashboard/actions",
+ "dest": "/dashboard/actions.html"
+ },
+ {
+ "src": "/dashboard/embed-policy",
+ "dest": "/dashboard/embed-policy.html"
+ },
+ {
+ "src": "/dashboard/memory",
+ "dest": "/dashboard/memory.html"
+ },
+ {
+ "src": "/dashboard/strategy",
+ "dest": "/dashboard/strategy.html"
+ },
+ {
+ "src": "/dashboard/voice",
+ "dest": "/dashboard/voice.html"
+ },
+ {
+ "src": "/dashboard/sns",
+ "dest": "/dashboard/sns.html"
+ },
+ {
+ "src": "/dashboard/delegation",
+ "dest": "/dashboard/delegation.html"
+ },
+ {
+ "src": "/dashboard/tokens",
+ "dest": "/dashboard/tokens.html"
+ },
+ {
+ "src": "/dashboard/x402",
+ "dest": "/dashboard/x402.html"
+ },
+ {
+ "src": "/dashboard/(agents|avatars|create|upload|animations|widgets|embed|keys|mcp|monetization|payments|subscriptions|billing|revenue|withdrawals|earnings|account)/?",
+ "dest": "/dashboard/index.html"
+ },
+ {
+ "src": "/dashboard/edit/[^/]+/?",
+ "dest": "/dashboard/index.html"
+ },
+ {
+ "src": "/dashboard/(.*)",
+ "dest": "/dashboard/$1"
+ },
+ {
+ "src": "/hydrate",
+ "dest": "/hydrate/index.html"
+ },
+ {
+ "src": "/hydrate/",
+ "dest": "/hydrate/index.html"
+ },
+ {
+ "src": "/widget-studio/?",
+ "headers": {
+ "Location": "/studio"
+ },
+ "status": 301
+ },
+ {
+ "src": "/studio",
+ "dest": "/studio/index.html"
+ },
+ {
+ "src": "/studio/",
+ "dest": "/studio/index.html"
+ },
+ {
+ "src": "/studio/(.*)",
+ "dest": "/studio/$1"
+ },
+ {
+ "src": "/avatar-studio",
+ "dest": "/avatar-studio/index.html"
+ },
+ {
+ "src": "/avatar-studio/",
+ "dest": "/avatar-studio/index.html"
+ },
+ {
+ "src": "/avatar-studio/(.*)",
+ "dest": "/avatar-studio/$1"
+ },
+ {
+ "src": "/demos",
+ "dest": "/demos/index.html"
+ },
+ {
+ "src": "/demos/",
+ "dest": "/demos/index.html"
+ },
+ {
+ "src": "/demos/(.*)\\.html",
+ "dest": "/demos/$1.html"
+ },
+ {
+ "src": "/demos/([^/.]+)",
+ "dest": "/demos/$1.html"
+ },
+ {
+ "src": "/demo/avatar-os",
+ "dest": "/demo/avatar-os/index.html"
+ },
+ {
+ "src": "/demo/avatar-os/",
+ "dest": "/demo/avatar-os/index.html"
+ },
+ {
+ "src": "/demo/avatar-os/(.*)",
+ "dest": "/demo/avatar-os/$1"
+ },
+ {
+ "src": "/api/dashboard/prefs",
+ "dest": "/api/dashboard/prefs"
+ },
+ {
+ "src": "/api/marketplace/theme",
+ "dest": "/api/marketplace/[action]?action=theme"
+ },
+ {
+ "src": "/api/marketplace/categories",
+ "dest": "/api/marketplace/[action]?action=categories"
+ },
+ {
+ "src": "/api/marketplace/agents",
+ "dest": "/api/marketplace/[action]?action=agents"
+ },
+ {
+ "src": "/api/agents/([^/]+)/skills/set-price",
+ "dest": "/api/agent-skills?agentId=$1&action=set-price"
+ },
+ {
+ "src": "/api/marketplace/agents/([^/]+)",
+ "dest": "/api/marketplace/[action]?action=agents&id=$1"
+ },
+ {
+ "src": "/api/marketplace/agents/([^/]+)/([^/]+)",
+ "dest": "/api/marketplace/[action]?action=agents&id=$1&sub=$2"
+ },
+ {
+ "src": "/api/marketplace/start-trial",
+ "dest": "/api/marketplace/start-trial"
+ },
+ {
+ "src": "/api/marketplace/purchase/([^/]+)/confirm",
+ "dest": "/api/marketplace/purchase?reference=$1&op=confirm"
+ },
+ {
+ "src": "/api/marketplace/purchase/([^/]+)",
+ "dest": "/api/marketplace/purchase?reference=$1"
+ },
+ {
+ "src": "/api/marketplace/buy-asset/([^/]+)/confirm",
+ "dest": "/api/marketplace/buy-asset?reference=$1&op=confirm"
+ },
+ {
+ "src": "/api/marketplace/buy-asset/([^/]+)",
+ "dest": "/api/marketplace/buy-asset?reference=$1"
+ },
+ {
+ "src": "/marketplace",
+ "dest": "/marketplace.html"
+ },
+ {
+ "src": "/marketplace/",
+ "dest": "/marketplace.html"
+ },
+ {
+ "src": "/marketplace/agents/([^/]+)",
+ "dest": "/marketplace.html"
+ },
+ {
+ "src": "/marketplace/avatars/([^/]+)",
+ "dest": "/marketplace.html"
+ },
+ {
+ "src": "/api/agents/me",
+ "dest": "/api/agents"
+ },
+ {
+ "src": "/api/agents/suggest",
+ "dest": "/api/agents/suggest"
+ },
+ {
+ "src": "/api/agents/by-wallet",
+ "dest": "/api/agents/by-wallet"
+ },
+ {
+ "src": "/api/agents/by-address/([^/]+)",
+ "dest": "/api/agents/by-address/[addr]?addr=$1"
+ },
+ {
+ "src": "/api/agents/x402/invoke",
+ "dest": "/api/agents/x402/[action]?action=invoke"
+ },
+ {
+ "src": "/api/agents/x402/manifest",
+ "dest": "/api/agents/x402/[action]?action=manifest"
+ },
+ {
+ "src": "/api/agents/([^/]+)/wallet",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/solana",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/solana/([^/]+)",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/pumpfun/([^/]+)",
+ "dest": "/api/agents/pumpfun/[action]?id=$1&action=$2"
+ },
+ {
+ "src": "/api/avatars/([^/]+)/agents",
+ "dest": "/api/avatars/[id]/agents?id=$1"
+ },
+ {
+ "src": "/api/avatars/([^/]+)/coins",
+ "dest": "/api/avatars/[id]/coins?id=$1"
+ },
+ {
+ "src": "/api/avatars/([^/]+)/storage-mode",
+ "dest": "/api/avatars/[id]/storage-mode?id=$1"
+ },
+ {
+ "src": "/api/avatars/([^/]+)/pin-ipfs",
+ "dest": "/api/avatars/[id]/pin-ipfs?id=$1"
+ },
+ {
+ "src": "/api/avatars/([^/]+)/thumbnail",
+ "dest": "/api/avatars/[id]/thumbnail?id=$1"
+ },
+ {
+ "src": "/dashboard/storage",
+ "dest": "/dashboard/storage.html"
+ },
+ {
+ "src": "/api/agents/([^/]+)/embed-policy",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/sign",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/animations",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/manifest",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/actions",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/usage",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/memories/([^/]+)",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/memories",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/memory/pin",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/memory/seed/x",
+ "dest": "/api/agents/[id]/memory-seed-x?id=$1"
+ },
+ {
+ "src": "/api/agents/([^/]+)/memory/seed/farcaster",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/memory/([^/]+)",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/payments",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/pricing",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/pricing/([^/]+)",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/reputation",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/livekit-token",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/embed",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/persona(/.*)?",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/eth-vanity/([^/]+)",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/eth-vanity",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/sns/([^/]+)",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/sns",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/voice/([^/]+)",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/voice",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/pumpfun-feed",
+ "dest": "/api/agents/pumpfun?_handler=feed"
+ },
+ {
+ "src": "/api/agents/pumpfun-metadata",
+ "dest": "/api/agents/pumpfun?_handler=metadata"
+ },
+ {
+ "src": "/api/agents/pumpfun",
+ "dest": "/api/agents/pumpfun"
+ },
+ {
+ "src": "/api/agents/gmgn-feed",
+ "dest": "/api/agents/gmgn?_handler=feed"
+ },
+ {
+ "src": "/api/agents/gmgn",
+ "dest": "/api/agents/gmgn"
+ },
+ {
+ "src": "/api/agents/register-prep",
+ "dest": "/api/agents/register/[action]?action=prep"
+ },
+ {
+ "src": "/api/agents/register-confirm",
+ "dest": "/api/agents/register/[action]?action=confirm"
+ },
+ {
+ "src": "/api/agents/sas-credentials",
+ "dest": "/api/agents/sas/[action]?action=credentials"
+ },
+ {
+ "src": "/api/agents/sas-issue-credential",
+ "dest": "/api/agents/sas/[action]?action=issue-credential"
+ },
+ {
+ "src": "/api/agents/check-name",
+ "dest": "/api/agents/check-name"
+ },
+ {
+ "src": "/api/agents/a2a-paid",
+ "dest": "/api/agents/a2a-paid"
+ },
+ {
+ "src": "/api/auth/github/connect",
+ "dest": "/api/auth/github/[action]?action=connect"
+ },
+ {
+ "src": "/api/auth/github/callback",
+ "dest": "/api/auth/github/[action]?action=callback"
+ },
+ {
+ "src": "/api/auth/github/status",
+ "dest": "/api/auth/github/[action]?action=status"
+ },
+ {
+ "src": "/api/auth/x/connect",
+ "dest": "/api/auth/x/[action]?action=connect"
+ },
+ {
+ "src": "/api/auth/x/callback",
+ "dest": "/api/auth/x/[action]?action=callback"
+ },
+ {
+ "src": "/api/auth/wallets",
+ "dest": "/api/auth/wallets/[action]"
+ },
+ {
+ "src": "/api/auth/wallets/([^/]+)",
+ "dest": "/api/auth/wallets/[action]?action=$1"
+ },
+ {
+ "src": "/api/auth/sessions",
+ "dest": "/api/auth/sessions/[action]"
+ },
+ {
+ "src": "/api/auth/sessions/([^/]+)",
+ "dest": "/api/auth/sessions/[action]?action=$1"
+ },
+ {
+ "src": "/api/auth/wallet/link",
+ "dest": "/api/auth/wallet/[action]?action=link"
+ },
+ {
+ "src": "/api/auth/wallet/unlink",
+ "dest": "/api/auth/wallet/[action]?action=unlink"
+ },
+ {
+ "src": "/api/onboarding/avaturn-session",
+ "dest": "/api/onboarding/[action]?action=avaturn-session"
+ },
+ {
+ "src": "/api/onboarding/link-avatar",
+ "dest": "/api/onboarding/[action]?action=link-avatar"
+ },
+ {
+ "src": "/api/pump/build-metadata",
+ "dest": "/api/pump/[action]?action=build-metadata"
+ },
+ {
+ "src": "/api/pump/channel-feed",
+ "dest": "/api/pump/[action]?action=channel-feed"
+ },
+ {
+ "src": "/api/pump/deliver-telegram",
+ "dest": "/api/pump/[action]?action=deliver-telegram"
+ },
+ {
+ "src": "/api/pump/first-claims",
+ "dest": "/api/pump/[action]?action=first-claims"
+ },
+ {
+ "src": "/api/pump/vanity-keygen",
+ "dest": "/api/pump/[action]?action=vanity-keygen"
+ },
+ {
+ "src": "/api/pump/helius-webhook",
+ "dest": "/api/pump/helius-webhook"
+ },
+ {
+ "src": "/api/pump/balances",
+ "dest": "/api/pump/[action]?action=balances"
+ },
+ {
+ "src": "/api/pump/buy-prep",
+ "dest": "/api/pump/[action]?action=buy-prep"
+ },
+ {
+ "src": "/api/pump/buy-confirm",
+ "dest": "/api/pump/[action]?action=buy-confirm"
+ },
+ {
+ "src": "/api/pump/sell-prep",
+ "dest": "/api/pump/[action]?action=sell-prep"
+ },
+ {
+ "src": "/api/pump/sell-confirm",
+ "dest": "/api/pump/[action]?action=sell-confirm"
+ },
+ {
+ "src": "/api/pump/launch-prep",
+ "dest": "/api/pump/[action]?action=launch-prep"
+ },
+ {
+ "src": "/api/pump/launch-confirm",
+ "dest": "/api/pump/[action]?action=launch-confirm"
+ },
+ {
+ "src": "/api/pump/launch-agent",
+ "dest": "/api/pump/[action]?action=launch-agent"
+ },
+ {
+ "src": "/api/pump/agent-wallet",
+ "dest": "/api/pump/[action]?action=agent-wallet"
+ },
+ {
+ "src": "/api/pump/accept-payment-prep",
+ "dest": "/api/pump/[action]?action=accept-payment-prep"
+ },
+ {
+ "src": "/api/pump/accept-payment-confirm",
+ "dest": "/api/pump/[action]?action=accept-payment-confirm"
+ },
+ {
+ "src": "/api/pump/payments-list",
+ "dest": "/api/pump/[action]?action=payments-list"
+ },
+ {
+ "src": "/api/pump/portfolio",
+ "dest": "/api/pump/[action]?action=portfolio"
+ },
+ {
+ "src": "/api/pump/by-agent",
+ "dest": "/api/pump/[action]?action=by-agent"
+ },
+ {
+ "src": "/api/pump/quote",
+ "dest": "/api/pump/[action]?action=quote"
+ },
+ {
+ "src": "/api/pump/governance-prep",
+ "dest": "/api/pump/[action]?action=governance-prep"
+ },
+ {
+ "src": "/api/pump/withdraw-prep",
+ "dest": "/api/pump/[action]?action=withdraw-prep"
+ },
+ {
+ "src": "/api/pump/withdraw-confirm",
+ "dest": "/api/pump/[action]?action=withdraw-confirm"
+ },
+ {
+ "src": "/api/pump/strategy-backtest",
+ "dest": "/api/pump/[action]?action=strategy-backtest"
+ },
+ {
+ "src": "/api/pump/strategy-close-all",
+ "dest": "/api/pump/[action]?action=strategy-close-all"
+ },
+ {
+ "src": "/api/pump/strategy-run",
+ "dest": "/api/pump/[action]?action=strategy-run"
+ },
+ {
+ "src": "/api/pump/strategy-validate",
+ "dest": "/api/pump/[action]?action=strategy-validate"
+ },
+ {
+ "src": "/api/pump/live-stream",
+ "dest": "/api/pump/[action]?action=live-stream"
+ },
+ {
+ "src": "/api/pump/recent-graduations",
+ "dest": "/api/pump/[action]?action=recent-graduations"
+ },
+ {
+ "src": "/api/demo/coin/state",
+ "dest": "/api/demo/coin/[action]?action=state"
+ },
+ {
+ "src": "/api/demo/coin/holder",
+ "dest": "/api/demo/coin/[action]?action=holder"
+ },
+ {
+ "src": "/api/demo/coin/history",
+ "dest": "/api/demo/coin/[action]?action=history"
+ },
+ {
+ "src": "/api/demo/coin/events",
+ "dest": "/api/demo/coin/[action]?action=events"
+ },
+ {
+ "src": "/api/demo/coin/winners",
+ "dest": "/api/demo/coin/[action]?action=winners"
+ },
+ {
+ "src": "/api/demo/coin/holders",
+ "dest": "/api/demo/coin/[action]?action=holders"
+ },
+ {
+ "src": "/coin",
+ "status": 301,
+ "headers": {
+ "Location": "/demo/coin"
+ }
+ },
+ {
+ "src": "/coin/",
+ "status": 301,
+ "headers": {
+ "Location": "/demo/coin"
+ }
+ },
+ {
+ "src": "/demo/coin",
+ "dest": "/demo/coin/index.html"
+ },
+ {
+ "src": "/demo/coin/",
+ "dest": "/demo/coin/index.html"
+ },
+ {
+ "src": "/demo/coin/([1-9A-HJ-NP-Za-km-z]{32,44})/?",
+ "dest": "/demo/coin/index.html"
+ },
+ {
+ "src": "/api/avatars/presign",
+ "dest": "/api/avatars/[id]"
+ },
+ {
+ "src": "/api/avatars/upload",
+ "dest": "/api/avatars/[id]"
+ },
+ {
+ "src": "/api/avatars/view",
+ "dest": "/api/avatars/view"
+ },
+ {
+ "src": "/api/avatars/presign-thumbnail",
+ "dest": "/api/avatars/[id]"
+ },
+ {
+ "src": "/api/avatars/presign-usdz",
+ "dest": "/api/avatars/[id]"
+ },
+ {
+ "src": "/api/avatars/presign-halfbody",
+ "dest": "/api/avatars/[id]"
+ },
+ {
+ "src": "/api/avatars/auto-tag",
+ "dest": "/api/avatars/[id]"
+ },
+ {
+ "src": "/api/avatars/public",
+ "dest": "/api/avatars/[id]"
+ },
+ {
+ "src": "/api/avatars/regenerate-status",
+ "dest": "/api/avatars/[id]"
+ },
+ {
+ "src": "/api/avatars/regenerate",
+ "dest": "/api/avatars/[id]"
+ },
+ {
+ "src": "/api/avatars/reconstruct",
+ "dest": "/api/avatars/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)/memory-seed",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents/([^/]+)",
+ "dest": "/api/agents/[id]"
+ },
+ {
+ "src": "/api/agents",
+ "dest": "/api/agents"
+ },
+ {
+ "src": "/api/agent-actions",
+ "dest": "/api/agent-actions"
+ },
+ {
+ "src": "/api/agent-memory/([^/]+)",
+ "dest": "/api/agent-memory"
+ },
+ {
+ "src": "/api/agent-memory",
+ "dest": "/api/agent-memory"
+ },
+ {
+ "src": "/api/agent/([^/]+)/og",
+ "dest": "/api/agent-og?id=$1"
+ },
+ {
+ "src": "/api/avatar/([^/]+)/og",
+ "dest": "/api/avatar-og?id=$1"
+ },
+ {
+ "src": "/api/avatar/video-generate",
+ "dest": "/api/avatar/video-generate"
+ },
+ {
+ "src": "/api/avatar/video-status",
+ "dest": "/api/avatar/video-status"
+ },
+ {
+ "src": "/api/avatar/presign-audio",
+ "dest": "/api/avatar/presign-audio"
+ },
+ {
+ "src": "/api/avatars/([^/]+)/og",
+ "dest": "/api/avatar-og?id=$1"
+ },
+ {
+ "src": "/api/a/(\\d+)/(\\d+)/og",
+ "dest": "/api/a-og?chain=$1&id=$2"
+ },
+ {
+ "src": "/api/oembed",
+ "dest": "/api/agent-oembed"
+ },
+ {
+ "src": "/u/([^/]+)",
+ "dest": "/profile.html"
+ },
+ {
+ "src": "/avatars/([^/]+\\.glb)",
+ "dest": "/avatars/$1"
+ },
+ {
+ "src": "/avatars/([^/]+)",
+ "dest": "/avatar-page.html"
+ },
+ {
+ "src": "/api/characters",
+ "dest": "/api/characters.js"
+ },
+ {
+ "src": "/characters",
+ "dest": "/characters.html"
+ },
+ {
+ "src": "/characters/",
+ "dest": "/characters.html"
+ },
+ {
+ "src": "/character/([^/]+)",
+ "dest": "/character.html"
+ },
+ {
+ "src": "/api/user/provider-keys",
+ "dest": "/api/user/provider-keys.js"
+ },
+ {
+ "src": "/api/users/me/earnings",
+ "dest": "/api/users/earnings.js"
+ },
+ {
+ "src": "/api/users/by-subdomain",
+ "dest": "/api/users/by-subdomain.js"
+ },
+ {
+ "src": "/api/threews/subdomain",
+ "dest": "/api/threews/subdomain.js"
+ },
+ {
+ "src": "/api/threews/me",
+ "dest": "/api/threews/me.js"
+ },
+ {
+ "src": "/api/u-og",
+ "dest": "/api/u-og.js"
+ },
+ {
+ "src": "/api/x402/pay-by-name",
+ "dest": "/api/x402/pay-by-name.js"
+ },
+ {
+ "src": "/threews/claim",
+ "dest": "/threews-claim.html"
+ },
+ {
+ "src": "/api/users/([^/]+)/avatar",
+ "dest": "/api/users/[username]/avatar?username=$1"
+ },
+ {
+ "src": "/api/users/([^/]+)",
+ "dest": "/api/users/[username]?username=$1"
+ },
+ {
+ "src": "/api/auth/profile",
+ "dest": "/api/auth/[action]?action=profile"
+ },
+ {
+ "src": "/a/(\\d+)/(\\d+)/edit",
+ "dest": "/a-edit.html"
+ },
+ {
+ "src": "/agent/new",
+ "dest": "/agent-edit.html"
+ },
+ {
+ "src": "/agent/([^/]+)/edit",
+ "dest": "/agent-edit.html"
+ },
+ {
+ "src": "/avatars/([^/]+)/edit",
+ "dest": "/avatar-edit.html?id=$1"
+ },
+ {
+ "src": "/agent/([^/]+)/embed",
+ "headers": {
+ "content-security-policy": "frame-ancestors *",
+ "x-content-type-options": "nosniff",
+ "referrer-policy": "strict-origin-when-cross-origin",
+ "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*",
+ "cross-origin-resource-policy": "cross-origin"
+ },
+ "dest": "/agent-embed.html"
+ },
+ {
+ "src": "/agent/index.html",
+ "dest": "/agent/index.html"
+ },
+ {
+ "src": "/agent/([^/]+)",
+ "has": [
+ {
+ "type": "query",
+ "key": "_spa",
+ "value": "1"
+ }
+ ],
+ "dest": "/agent-home.html"
+ },
+ {
+ "src": "/agent/([^/]+)",
+ "dest": "/api/agent-page?id=$1"
+ },
+ {
+ "src": "/agent",
+ "dest": "/agent-home.html"
+ },
+ {
+ "src": "/api/widgets/oembed",
+ "dest": "/api/widgets/oembed"
+ },
+ {
+ "src": "/api/widgets/page",
+ "dest": "/api/widgets/page"
+ },
+ {
+ "src": "/api/widgets/([A-Za-z0-9_-]+)/og",
+ "dest": "/api/widgets/og?id=$1"
+ },
+ {
+ "src": "/api/widgets/([A-Za-z0-9_-]+)/view",
+ "dest": "/api/widgets/view?id=$1"
+ },
+ {
+ "src": "/api/widgets/([A-Za-z0-9_-]+)/duplicate",
+ "dest": "/api/widgets/[id]/duplicate?id=$1"
+ },
+ {
+ "src": "/api/widgets/([A-Za-z0-9_-]+)/stats",
+ "dest": "/api/widgets/[id]/stats?id=$1"
+ },
+ {
+ "src": "/api/widgets/([A-Za-z0-9_-]+)/chat",
+ "dest": "/api/widgets/[id]/chat?id=$1"
+ },
+ {
+ "src": "/api/widgets/([A-Za-z0-9_-]+)/transcripts",
+ "dest": "/api/widgets/[id]/transcripts?id=$1"
+ },
+ {
+ "src": "/api/widgets/([A-Za-z0-9_-]+)/knowledge",
+ "dest": "/api/widgets/[id]/knowledge?id=$1"
+ },
+ {
+ "src": "/api/widgets/([A-Za-z0-9_-]+)/knowledge-process",
+ "dest": "/api/widgets/[id]/knowledge-process?id=$1"
+ },
+ {
+ "src": "/api/agent-strategy",
+ "dest": "/api/agent-strategy"
+ },
+ {
+ "src": "/api/widgets",
+ "dest": "/api/widgets"
+ },
+ {
+ "src": "/api/widgets/index",
+ "dest": "/api/widgets"
+ },
+ {
+ "src": "/api/widgets/([A-Za-z0-9_-]+)",
+ "dest": "/api/widgets/[id]?id=$1"
+ },
+ {
+ "src": "/w/([A-Za-z0-9_-]+)",
+ "dest": "/api/widgets/page?id=$1"
+ },
+ {
+ "src": "/widgets",
+ "dest": "/widgets-gallery/index.html"
+ },
+ {
+ "src": "/widgets/",
+ "dest": "/widgets-gallery/index.html"
+ },
+ {
+ "src": "/widgets/(.*)",
+ "dest": "/widgets-gallery/$1"
+ },
+ {
+ "src": "/gallery",
+ "dest": "/gallery/index.html"
+ },
+ {
+ "src": "/gallery/",
+ "dest": "/gallery/index.html"
+ },
+ {
+ "src": "/gallery/(.*)",
+ "dest": "/gallery/$1"
+ },
+ {
+ "src": "/docs",
+ "dest": "/docs/index.html"
+ },
+ {
+ "src": "/docs/",
+ "dest": "/docs/index.html"
+ },
+ {
+ "src": "/docs/widgets",
+ "dest": "/docs-widgets.html"
+ },
+ {
+ "src": "/docs/([^./]+)",
+ "dest": "/docs/index.html"
+ },
+ {
+ "src": "/docs/(.*)",
+ "dest": "/docs/$1"
+ },
+ {
+ "src": "/tutorials",
+ "dest": "/tutorials.html"
+ },
+ {
+ "src": "/tutorials/",
+ "dest": "/tutorials.html"
+ },
+ {
+ "src": "/tutorials/([a-z0-9-]+)",
+ "dest": "/tutorial.html"
+ },
+ {
+ "src": "/tutorials/([a-z0-9-]+)/",
+ "dest": "/tutorial.html"
+ },
+ {
+ "src": "/artifact",
+ "dest": "/artifact/index.html"
+ },
+ {
+ "src": "/artifact/",
+ "dest": "/artifact/index.html"
+ },
+ {
+ "src": "/artifact/(.*)",
+ "dest": "/artifact/$1"
+ },
+ {
+ "src": "/cz",
+ "dest": "/cz/index.html"
+ },
+ {
+ "src": "/cz/",
+ "dest": "/cz/index.html"
+ },
+ {
+ "src": "/cz/(.*)",
+ "dest": "/cz/$1"
+ },
+ {
+ "src": "/validation",
+ "dest": "/validation/index.html"
+ },
+ {
+ "src": "/validation/",
+ "dest": "/validation/index.html"
+ },
+ {
+ "src": "/validation/(.*)",
+ "dest": "/validation/$1"
+ },
+ {
+ "src": "/lobehub/iframe",
+ "dest": "/lobehub/iframe/index.html"
+ },
+ {
+ "src": "/lobehub/iframe/",
+ "dest": "/lobehub/iframe/index.html"
+ },
+ {
+ "src": "/lobehub/iframe/(.*)",
+ "dest": "/lobehub/iframe/$1"
+ },
+ {
+ "src": "/reputation",
+ "dest": "/reputation/index.html"
+ },
+ {
+ "src": "/reputation/",
+ "dest": "/reputation/index.html"
+ },
+ {
+ "src": "/reputation/(.*)",
+ "dest": "/reputation/$1"
+ },
+ {
+ "src": "/pay",
+ "dest": "/pay/index.html"
+ },
+ {
+ "src": "/pay/",
+ "dest": "/pay/index.html"
+ },
+ {
+ "src": "/pay/calls/[1-9A-HJ-NP-Za-km-z]+",
+ "dest": "/pay/calls/index.html"
+ },
+ {
+ "src": "/pay/c/[a-z0-9][a-z0-9-]+/?",
+ "dest": "/pay/c/index.html"
+ },
+ {
+ "src": "/pay/(.*)",
+ "dest": "/pay/$1"
+ },
+ {
+ "src": "/x402",
+ "dest": "/x402-stripe.html"
+ },
+ {
+ "src": "/x402/",
+ "dest": "/x402-stripe.html"
+ },
+ {
+ "src": "/bazaar",
+ "dest": "/bazaar.html"
+ },
+ {
+ "src": "/bazaar/",
+ "dest": "/bazaar.html"
+ },
+ {
+ "src": "/api/bazaar/list",
+ "dest": "/api/bazaar/list.js"
+ },
+ {
+ "src": "/api/bazaar/search",
+ "dest": "/api/bazaar/search.js"
+ },
+ {
+ "src": "/settings",
+ "dest": "/settings/index.html"
+ },
+ {
+ "src": "/settings/",
+ "dest": "/settings/index.html"
+ },
+ {
+ "src": "/settings/(.*)",
+ "dest": "/settings/$1"
+ },
+ {
+ "src": "/api/llm/anthropic",
+ "dest": "/api/llm/anthropic.js"
+ },
+ {
+ "src": "/dashboard/usage",
+ "dest": "/dashboard/usage.html"
+ },
+ {
+ "src": "/api/erc8004/register-confirm",
+ "dest": "/api/erc8004/register-confirm"
+ },
+ {
+ "src": "/api/erc8004/hydrate",
+ "dest": "/api/erc8004/[action]?action=hydrate"
+ },
+ {
+ "src": "/api/erc8004/import",
+ "dest": "/api/erc8004/[action]?action=import"
+ },
+ {
+ "src": "/api/erc8004/pin",
+ "dest": "/api/erc8004/[action]?action=pin"
+ },
+ {
+ "src": "/api/subscriptions/plans(/.*)?",
+ "dest": "/api/subscriptions/plans.js"
+ },
+ {
+ "src": "/api/subscriptions(/.*)?",
+ "dest": "/api/subscriptions/index.js"
+ },
+ {
+ "src": "/api/dca-strategies/([^/]+)",
+ "dest": "/api/dca-strategies?id=$1"
+ },
+ {
+ "src": "/api/dca-strategies",
+ "dest": "/api/dca-strategies"
+ },
+ {
+ "src": "/api/billing/summary",
+ "dest": "/api/billing/summary"
+ },
+ {
+ "src": "/api/billing/revenue",
+ "dest": "/api/billing/revenue"
+ },
+ {
+ "src": "/agents",
+ "dest": "/agents/index.html"
+ },
+ {
+ "src": "/agents/",
+ "dest": "/agents/index.html"
+ },
+ {
+ "src": "/agents/([^/]+)",
+ "dest": "/agent-detail.html"
+ },
+ {
+ "src": "/my-agents",
+ "dest": "/my-agents/index.html"
+ },
+ {
+ "src": "/my-agents/",
+ "dest": "/my-agents/index.html"
+ },
+ {
+ "src": "/my-agents/(.*)",
+ "dest": "/my-agents/$1"
+ },
+ {
+ "src": "/discover",
+ "dest": "/discover/index.html"
+ },
+ {
+ "src": "/discover/",
+ "dest": "/discover/index.html"
+ },
+ {
+ "src": "/discover/a/(\\d+)/(\\d+)",
+ "dest": "/api/discover-detail?kind=onchain&chain=$1&id=$2"
+ },
+ {
+ "src": "/discover/avatar/([^/]+)",
+ "status": 301,
+ "headers": {
+ "Location": "/marketplace/agents/$1"
+ }
+ },
+ {
+ "src": "/discover/(.*)",
+ "dest": "/discover/$1"
+ },
+ {
+ "src": "/api/plugins/([^/]+)/install",
+ "dest": "/api/plugins/[action]?id=$1&sub=install"
+ },
+ {
+ "src": "/api/plugins/(categories|list|import|publish)",
+ "dest": "/api/plugins/[action]?action=$1"
+ },
+ {
+ "src": "/api/plugins/([^/]+)",
+ "dest": "/api/plugins/[action]?id=$1"
+ },
+ {
+ "src": "/api/skills/categories",
+ "dest": "/api/skills/categories"
+ },
+ {
+ "src": "/api/skills/([^/]+)/install",
+ "dest": "/api/skills/[id]/install?id=$1"
+ },
+ {
+ "src": "/api/skills/([^/]+)/rate",
+ "dest": "/api/skills/[id]/rate?id=$1"
+ },
+ {
+ "src": "/api/skills/([^/]+)",
+ "dest": "/api/skills/[id]?id=$1"
+ },
+ {
+ "src": "/api/skills",
+ "dest": "/api/skills/index"
+ },
+ {
+ "src": "/tool_schema",
+ "dest": "/api/tool_schema"
+ },
+ {
+ "src": "/api/club/tips/stream",
+ "dest": "/api/club/tips-stream"
+ },
+ {
+ "src": "/api/(.*)",
+ "dest": "/api/$1"
+ },
+ {
+ "src": "/agent-3d/([0-9]+\\.[0-9]+\\.[0-9]+(?:-[A-Za-z0-9.-]+)?)/(.*)",
+ "headers": {
+ "cache-control": "public, max-age=31536000, immutable",
+ "access-control-allow-origin": "*",
+ "access-control-allow-methods": "GET, HEAD, OPTIONS",
+ "cross-origin-resource-policy": "cross-origin",
+ "timing-allow-origin": "*"
+ },
+ "dest": "/agent-3d/$1/$2"
+ },
+ {
+ "src": "/agent-3d/(latest|[0-9]+|[0-9]+\\.[0-9]+)/(.*)",
+ "headers": {
+ "cache-control": "public, max-age=300, s-maxage=300, stale-while-revalidate=86400",
+ "access-control-allow-origin": "*",
+ "access-control-allow-methods": "GET, HEAD, OPTIONS",
+ "cross-origin-resource-policy": "cross-origin",
+ "timing-allow-origin": "*"
+ },
+ "dest": "/agent-3d/$1/$2"
+ },
+ {
+ "src": "/api/agent-3d/versions",
+ "dest": "/api/agent-3d/versions"
+ },
+ {
+ "src": "/agent-3d/versions\\.json",
+ "headers": {
+ "cache-control": "public, max-age=60, s-maxage=60",
+ "access-control-allow-origin": "*"
+ },
+ "dest": "/agent-3d/versions.json"
+ },
+ {
+ "src": "/assets/(.*)",
+ "headers": {
+ "cache-control": "max-age=604800, public",
+ "cross-origin-resource-policy": "cross-origin"
+ },
+ "dest": "/assets/$1"
+ },
+ {
+ "src": "/\\.well-known/solana/actions\\.json",
+ "headers": {
+ "cache-control": "public, max-age=300",
+ "content-type": "application/json",
+ "access-control-allow-origin": "*"
+ },
+ "dest": "/.well-known/solana/actions.json"
+ },
+ {
+ "src": "/\\.well-known/(.*)",
+ "headers": {
+ "cache-control": "max-age=86400, public"
+ },
+ "dest": "/.well-known/$1"
+ },
+ {
+ "src": "/robots.txt",
+ "dest": "/robots.txt"
+ },
+ {
+ "src": "/sitemap.xml",
+ "dest": "/api/sitemap"
+ },
+ {
+ "src": "/sitemap/(core|agents|avatars|widgets|profiles)\\.xml",
+ "dest": "/api/sitemap/[type]?type=$1"
+ },
+ {
+ "src": "/sitemap",
+ "dest": "/sitemap/index.html"
+ },
+ {
+ "src": "/sitemap/",
+ "dest": "/sitemap/index.html"
+ },
+ {
+ "src": "/news",
+ "dest": "/news/index.html"
+ },
+ {
+ "src": "/news/",
+ "dest": "/news/index.html"
+ },
+ {
+ "src": "/news/([a-z0-9_-]+)/?",
+ "dest": "/news/$1.html"
+ },
+ {
+ "src": "/blog",
+ "dest": "/blog/index.html"
+ },
+ {
+ "src": "/blog/",
+ "dest": "/blog/index.html"
+ },
+ {
+ "src": "/blog/([a-z0-9-]+)/?",
+ "dest": "/blog/$1.html"
+ },
+ {
+ "src": "/llms.txt",
+ "headers": {
+ "content-type": "text/plain; charset=utf-8",
+ "cache-control": "public, max-age=3600"
+ },
+ "dest": "/llms.txt"
+ },
+ {
+ "src": "/llms-full.txt",
+ "headers": {
+ "content-type": "text/plain; charset=utf-8",
+ "cache-control": "public, max-age=3600"
+ },
+ "dest": "/llms-full.txt"
+ },
+ {
+ "src": "/app",
+ "dest": "/app.html"
+ },
+ {
+ "src": "/app-demo",
+ "dest": "/app-demo.html"
+ },
+ {
+ "src": "/app-next",
+ "dest": "/app-next.html"
+ },
+ {
+ "src": "/embed-demo",
+ "dest": "/embed-demo.html"
+ },
+ {
+ "src": "/embed-demo/",
+ "dest": "/embed-demo.html"
+ },
+ {
+ "src": "/chat",
+ "dest": "/chat/index.html"
+ },
+ {
+ "src": "/chat/",
+ "dest": "/chat/index.html"
+ },
+ {
+ "src": "/chat/(.*)",
+ "dest": "/chat/$1"
+ },
+ {
+ "src": "/import/rpm",
+ "dest": "/import-rpm.html"
+ },
+ {
+ "src": "/import/rpm/",
+ "dest": "/import-rpm.html"
+ },
+ {
+ "src": "/create/video/?",
+ "dest": "/create/video.html"
+ },
+ {
+ "src": "/create/selfie",
+ "dest": "/create-selfie.html"
+ },
+ {
+ "src": "/create/selfie/",
+ "dest": "/create-selfie.html"
+ },
+ {
+ "src": "/create-review",
+ "dest": "/create-review.html"
+ },
+ {
+ "src": "/create-review/",
+ "dest": "/create-review.html"
+ },
+ {
+ "src": "/create",
+ "dest": "/create.html"
+ },
+ {
+ "src": "/create/",
+ "dest": "/create.html"
+ },
+ {
+ "src": "/creating",
+ "dest": "/creating.html"
+ },
+ {
+ "src": "/creating/",
+ "dest": "/creating.html"
+ },
+ {
+ "src": "/legal/privacy/?",
+ "dest": "/legal/privacy.html"
+ },
+ {
+ "src": "/legal/tos/?",
+ "dest": "/legal/tos.html"
+ },
+ {
+ "src": "/features",
+ "dest": "/features.html"
+ },
+ {
+ "src": "/features/",
+ "dest": "/features.html"
+ },
+ {
+ "src": "/",
+ "dest": "/home.html"
+ },
+ {
+ "src": "/home-v2",
+ "dest": "/home-v2.html"
+ },
+ {
+ "src": "/home-v2/",
+ "dest": "/home-v2.html"
+ },
+ {
+ "src": "/home",
+ "status": 301,
+ "headers": {
+ "Location": "/"
+ }
+ },
+ {
+ "src": "/explore",
+ "status": 301,
+ "headers": {
+ "Location": "/discover"
+ }
+ },
+ {
+ "src": "/explore/",
+ "status": 301,
+ "headers": {
+ "Location": "/discover"
+ }
+ },
+ {
+ "src": "/dappbay",
+ "status": 302,
+ "headers": {
+ "Location": "https://dappbay.bnbchain.org/detail/three"
+ }
+ },
+ {
+ "src": "/dappbay/",
+ "status": 302,
+ "headers": {
+ "Location": "https://dappbay.bnbchain.org/detail/three"
+ }
+ },
+ {
+ "src": "/a/(\\d+)/(\\d+)/embed",
+ "headers": {
+ "content-security-policy": "frame-ancestors *",
+ "x-content-type-options": "nosniff",
+ "referrer-policy": "strict-origin-when-cross-origin",
+ "permissions-policy": "microphone=(self), camera=(self), xr-spatial-tracking=*"
+ },
+ "dest": "/a-embed.html"
+ },
+ {
+ "src": "/a/(\\d+)/(\\d+)",
+ "dest": "/api/a-page?chain=$1&id=$2"
+ },
+ {
+ "src": "/a/(.*)",
+ "dest": "/app.html"
+ },
+ {
+ "src": "/dist-lib/(.*)",
+ "headers": {
+ "cache-control": "public, max-age=300, s-maxage=300, stale-while-revalidate=86400",
+ "access-control-allow-origin": "*",
+ "cross-origin-resource-policy": "cross-origin"
+ },
+ "dest": "/dist-lib/$1"
+ },
+ {
+ "src": "/rider",
+ "dest": "/rider/index.html"
+ },
+ {
+ "src": "/rider/",
+ "dest": "/rider/index.html"
+ },
+ {
+ "src": "/rider/(.*)",
+ "dest": "/rider/$1"
+ },
+ {
+ "src": "/(.*)",
+ "dest": "/$1"
+ }
+ ],
+ "crons": [
+ {
+ "path": "/api/cron/audit-log-cleanup",
+ "schedule": "0 4 * * *"
+ },
+ {
+ "path": "/api/cron/expire-pending-purchases",
+ "schedule": "*/5 * * * *"
+ },
+ {
+ "path": "/api/cron/cleanup-csrf-tokens",
+ "schedule": "17 * * * *"
+ },
+ {
+ "path": "/api/cron/process-withdrawals",
+ "schedule": "0 * * * *"
+ },
+ {
+ "path": "/api/cron/erc8004-crawl",
+ "schedule": "*/15 * * * *"
+ },
+ {
+ "path": "/api/cron/solana-attestations-crawl",
+ "schedule": "*/5 * * * *"
+ },
+ {
+ "path": "/api/cron/index-delegations",
+ "schedule": "*/5 * * * *"
+ },
+ {
+ "path": "/api/cron/run-dca",
+ "schedule": "0 * * * *"
+ },
+ {
+ "path": "/api/cron/run-subscriptions",
+ "schedule": "0 * * * *"
+ },
+ {
+ "path": "/api/cron/run-x-scheduled-posts",
+ "schedule": "* * * * *"
+ },
+ {
+ "path": "/api/cron/run-x-triggers",
+ "schedule": "*/5 * * * *"
+ },
+ {
+ "path": "/api/cron/fetch-x-metrics",
+ "schedule": "0 */6 * * *"
+ },
+ {
+ "path": "/api/cron/pumpfun-signals",
+ "schedule": "*/15 * * * *"
+ },
+ {
+ "path": "/api/cron/pump-agent-stats",
+ "schedule": "*/10 * * * *"
+ },
+ {
+ "path": "/api/cron/pumpfun-monitor",
+ "schedule": "*/3 * * * *"
+ },
+ {
+ "path": "/api/cron/solana-attest-event-cleanup",
+ "schedule": "*/10 * * * *"
+ },
+ {
+ "path": "/api/cron/settle-royalties",
+ "schedule": "0 3 * * *"
+ },
+ {
+ "path": "/api/cron/process-subscriptions",
+ "schedule": "0 */6 * * *"
+ },
+ {
+ "path": "/api/cron/run-coin-cycle",
+ "schedule": "*/5 * * * *"
+ },
+ {
+ "path": "/api/cron/run-coin-payouts",
+ "schedule": "1-59/5 * * * *"
+ },
+ {
+ "path": "/api/cron/club-payouts",
+ "schedule": "2-59/5 * * * *"
+ },
+ {
+ "path": "/api/cron/siwx-gc",
+ "schedule": "23 * * * *"
+ }
+ ]
}
\ No newline at end of file
diff --git a/vite.config.js b/vite.config.js
index 74efd0894..53e4d9cb7 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -170,8 +170,7 @@ const appConfig = {
profile: resolve(__dirname, 'pages/profile.html'),
'threews-claim': resolve(__dirname, 'pages/threews-claim.html'),
'avatar-page': resolve(__dirname, 'pages/avatar-page.html'),
- 'widget-studio': resolve(__dirname, 'pages/widget-studio.html'),
- creating: resolve(__dirname, 'pages/creating.html'),
+creating: resolve(__dirname, 'pages/creating.html'),
pricing: resolve(__dirname, 'pages/pricing.html'),
'x-pricing': resolve(__dirname, 'pages/x-pricing.html'),
'home-next': resolve(__dirname, 'pages/home-next.html'),
@@ -209,7 +208,6 @@ const appConfig = {
'demos-brain': resolve(__dirname, 'public/demos/brain.html'),
'demos-lipsync-tts': resolve(__dirname, 'public/demos/lipsync-tts.html'),
'demos-lipsync-mic': resolve(__dirname, 'public/demos/lipsync-mic.html'),
- 'demos-walkaround': resolve(__dirname, 'public/demos/walkaround.html'),
'demos-erc8004': resolve(__dirname, 'public/demos/erc8004.html'),
'demos-button-jump': resolve(__dirname, 'public/demos/button-jump.html'),
'demos-button': resolve(__dirname, 'public/demos/button.html'),
@@ -404,8 +402,6 @@ const appConfig = {
'/agenc/embodied/': resolve(root, 'pages/agenc/embodied.html'),
'/agenc/room': resolve(root, 'pages/agenc/room.html'),
'/agenc/room/': resolve(root, 'pages/agenc/room.html'),
- '/walkaround': resolve(root, 'public/demos/walkaround.html'),
- '/walkaround/': resolve(root, 'public/demos/walkaround.html'),
'/brain': resolve(root, 'public/demos/brain.html'),
'/brain/': resolve(root, 'public/demos/brain.html'),
'/lipsync': resolve(root, 'public/demos/lipsync-tts.html'),
@@ -493,6 +489,12 @@ const appConfig = {
res.setHeader('Location', `/marketplace/agents/${discoverAvatarM[1]}`);
return res.end();
}
+ // /widget-studio was a legacy standalone page; /studio is canonical
+ if (path === '/widget-studio' || path === '/widget-studio/') {
+ res.statusCode = 301;
+ res.setHeader('Location', '/studio');
+ return res.end();
+ }
// /coin is the legacy URL for /demo/coin (the lottery+reflection
// demo). Kept as a 301 so old links and shares keep working.
if (path === '/coin' || path === '/coin/') {
@@ -943,7 +945,6 @@ const appConfig = {
['dist/public/demos/brain.html', 'dist/demos/brain.html'],
['dist/public/demos/lipsync-tts.html', 'dist/demos/lipsync-tts.html'],
['dist/public/demos/lipsync-mic.html', 'dist/demos/lipsync-mic.html'],
- ['dist/public/demos/walkaround.html', 'dist/demos/walkaround.html'],
['dist/public/demos/erc8004.html', 'dist/demos/erc8004.html'],
['dist/public/demos/button-jump.html', 'dist/demos/button-jump.html'],
['dist/public/demos/button.html', 'dist/demos/button.html'],