Open-source platform for 3D AI agents. Turn text or a photo into a rigged, animated GLB avatar, give it an LLM brain, memory and a wallet, and embed it anywhere with one web component. Remote MCP server, x402 payments, Three.js, browser-native.
JavaScript 3d-generationai-agentsanimationavatardigital-humangenerative-aiglbgltfimage-to-3dllmmcpmcp-servermodel-context-protocolsolanatext-to-3dthreejsweb-componentswebglwebxrx402
fix(prod): resolve remaining failures from 2026-06-11 log export
nirholas2cbb8d9455fd
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 0f2901b11..d26784028 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -8,6 +8,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Avatar pages back online after image-engine outage** — Fetching an individual avatar was failing with a server error, which also broke the walking avatar on the home page. The image-processing engine the avatar dress-up baker relies on failed to load in production and took the whole endpoint down with it. Avatar lookups now load independently of the baker, and the missing image libraries ship with the deployment, so avatar pages and the home hero are back. `[fix, infra]`- **Faster, quieter agents directory and site-wide page polish** — The on-chain agents directory now loads from our server-side index instead of contacting every agent's metadata host from your browser — pages render faster and no longer spray network errors. Also: the pump.fun cockpit's sidebar pages are now shareable deep links, mobile nav and footer links meet touch-target guidelines, anonymous visitors no longer trigger failed sign-in requests on Walk and Create, and assorted dead links were removed. (`/agents`) `[improvement, fix]`+- **Live $THREE market data, longer trade streams, and tutor session fixes** — $THREE market stats (price, holders, liquidity) are flowing again from our primary data source — a missing request header had been silently failing it to backups for days. Live trade streams no longer cut out after 30 seconds; they now run their full duration. The Pay-As-You-Learn Tutor no longer errors when resuming a session — running tabs persist correctly across questions — and Fact Checker results are cached properly so repeat checks of the same claim return instantly. `[fix, improvement]`- **Scheduled jobs restored after dependency outage** — Every background job — pump.fun monitoring, coin payouts, club payouts, scheduled X posts, DCA runs, subscription billing, and the rest — had been failing since a recent dependency upgrade left a required Solana staking library out of the deployment. The missing library now ships with every deploy, and the image-processing engine behind avatar baking was rolled back to its proven version so it loads reliably in production. All scheduled jobs run again. `[fix, infra]`- **Text-to-3D and image-to-3D generation restored** — Fixed two provider regressions that blocked Forge generation: model submissions now pin the latest published model version automatically, and the text-to-image step falls back to a healthy provider instead of failing when the preferred one is misconfigured. (`/forge`) `[fix]`diff --git a/agents/tutor/src/session.js b/agents/tutor/src/session.jsindex cfb841388..648e2f5e8 100644--- a/agents/tutor/src/session.js+++ b/agents/tutor/src/session.js@@ -49,10 +49,13 @@ async function kvSet(key, value, ttlSeconds) {const { url, token } = kvCredentials();if (!url || !token) return;try {- await fetch(`${url}/set/${encodeURIComponent(key)}`, {+ // Upstash REST: the raw request body IS the stored value; TTL goes in the+ // query string. A JSON envelope body would be stored verbatim and corrupt+ // every subsequent read.+ await fetch(`${url}/set/${encodeURIComponent(key)}?EX=${ttlSeconds}`, {method: 'POST',- headers: { authorization: `Bearer ${token}`, 'content-type': 'application/json' },- body: JSON.stringify({ value: JSON.stringify(value), ex: ttlSeconds }),+ headers: { authorization: `Bearer ${token}` },+ body: JSON.stringify(value),});} catch {// Non-fatal — session simply won't persist.@@ -70,7 +73,12 @@ function emptySession(sessionId) {/** Load a session, or a fresh empty one when absent/unstored. */export async function loadSession(sessionId) {const existing = await kvGet(sessionKey(sessionId));- return existing || emptySession(sessionId);+ // Records written by the old envelope-body kvSet (or any foreign value under+ // our key) lack the session shape — treat them as absent rather than crashing+ // the charge path on `entries.push`.+ if (!existing || !Array.isArray(existing.entries)) return emptySession(sessionId);+ if (!Number.isFinite(existing.totalAtomics)) existing.totalAtomics = 0;+ return existing;}/**diff --git a/api/_lib/avatars.js b/api/_lib/avatars.jsindex 1ba47cf83..90f08eeac 100644--- a/api/_lib/avatars.js+++ b/api/_lib/avatars.js@@ -148,7 +148,8 @@ export async function updateAvatar({ id, userId, patch }) {update avatars setbaked_storage_key = ${patch.baked_storage_key ?? null},appearance_hash = ${patch.appearance_hash ?? null},- baked_at = ${patch.baked_storage_key ? sql`now()` : null},+ baked_at = case when ${patch.baked_storage_key ?? null}::text is not null+ then now() else null end,updated_at = now()where id = ${id} and owner_id = ${userId} and deleted_at is nullreturning *diff --git a/api/_lib/market/token-market.js b/api/_lib/market/token-market.jsindex 81a3fb144..a5f13ded4 100644--- a/api/_lib/market/token-market.js+++ b/api/_lib/market/token-market.js@@ -36,7 +36,10 @@ async function fetchJson(url, opts = {}) {const timer = setTimeout(() => ctrl.abort(), FETCH_TIMEOUT_MS);try {const r = await fetch(url, { ...opts, signal: ctrl.signal });- if (!r.ok) throw new Error(`${r.status}`);+ if (!r.ok) {+ const body = (await r.text().catch(() => '')).slice(0, 200);+ throw new Error(body ? `${r.status} ${body}` : `${r.status}`);+ }return await r.json();} finally {clearTimeout(timer);@@ -66,8 +69,9 @@ const num = (v) => {async function fromBirdeye(mint) {const key = process.env.BIRDEYE_API_KEY;if (!key) return null;+ // Birdeye requires the x-chain header; omitting it is a 400, not a default.const data = await fetchJson(`${BIRDEYE_BASE}/defi/token_overview?address=${mint}`, {- headers: { 'X-API-KEY': key, accept: 'application/json' },+ headers: { 'X-API-KEY': key, 'x-chain': 'solana', accept: 'application/json' },});const ov = data?.data;if (!ov || !(num(ov.price) > 0)) return null;diff --git a/api/x402/fact-check.js b/api/x402/fact-check.jsindex 2f1bd2260..cd1594479 100644--- a/api/x402/fact-check.js+++ b/api/x402/fact-check.js@@ -52,13 +52,13 @@ async function redisSet(key, value, ttlSeconds) {const { url, token } = getRedisCredentials();if (!url || !token) return;try {- await fetch(`${url}/set/${encodeURIComponent(key)}`, {+ // Upstash REST: the raw request body IS the stored value; TTL goes in the+ // query string. A JSON envelope body would be stored verbatim and corrupt+ // every subsequent read.+ await fetch(`${url}/set/${encodeURIComponent(key)}?EX=${ttlSeconds}`, {method: 'POST',- headers: {- authorization: `Bearer ${token}`,- 'content-type': 'application/json',- },- body: JSON.stringify({ value: JSON.stringify(value), ex: ttlSeconds }),+ headers: { authorization: `Bearer ${token}` },+ body: JSON.stringify(value),});} catch {// Cache write failure is non-fatal.@@ -354,10 +354,12 @@ export default paidEndpoint({? body.strictness: 'medium';- // Idempotency cache — 7-day TTL.+ // Idempotency cache — 7-day TTL. Shape-check the hit: records written by+ // the old envelope-body redisSet parse to `{value, ex}` and must be+ // treated as misses, not served as verdicts.const key = cacheKey(claim, strictness);const cached = await redisGet(key);- if (cached) {+ if (cached && typeof cached.verdict === 'string') {return { ...cached, cachedAt: cached.cachedAt || new Date().toISOString() };}diff --git a/data/changelog.json b/data/changelog.jsonindex e013d5437..abb849c5b 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,15 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-11",+ "title": "Live $THREE market data, longer trade streams, and tutor session fixes",+ "summary": "$THREE market stats (price, holders, liquidity) are flowing again from our primary data source — a missing request header had been silently failing it to backups for days. Live trade streams no longer cut out after 30 seconds; they now run their full duration. The Pay-As-You-Learn Tutor no longer errors when resuming a session — running tabs persist correctly across questions — and Fact Checker results are cached properly so repeat checks of the same claim return instantly.",+ "tags": [+ "fix",+ "improvement"+ ]+ },{"date": "2026-06-11","title": "Scheduled jobs restored after dependency outage",diff --git a/public/changelog.json b/public/changelog.jsonindex 772b4808f..3bdada94e 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-11T03:18:03.085Z",+ "generated_at": "2026-06-11T03:28:03.199Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -28,6 +28,17 @@"fix"]},+ {+ "date": "2026-06-11",+ "type": "update",+ "title": "Live $THREE market data, longer trade streams, and tutor session fixes",+ "summary": "$THREE market stats (price, holders, liquidity) are flowing again from our primary data source — a missing request header had been silently failing it to backups for days. Live trade streams no longer cut out after 30 seconds; they now run their full duration. The Pay-As-You-Learn Tutor no longer errors when resuming a session — running tabs persist correctly across questions — and Fact Checker results are cached properly so repeat checks of the same claim return instantly.",+ "link": null,+ "tags": [+ "fix",+ "improvement"+ ]+ },{"date": "2026-06-11","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex 950497963..e9744903a 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -22,6 +22,14 @@<category>improvement</category><description>The on-chain agents directory now loads from our server-side index instead of contacting every agent's metadata host from your browser — pages render faster and no longer spray network errors. Also: the pump.fun cockpit's sidebar pages are now shareable deep links, mobile nav and footer links meet touch-target guidelines, anonymous visitors no longer trigger failed sign-in requests on Walk and Create, and assorted dead links were removed.</description></item>+ <item>+ <title>Live $THREE market data, longer trade streams, and tutor session fixes</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-11:Live $THREE market data, longer trade streams, and tutor session fixes</guid>+ <pubDate>Thu, 11 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>$THREE market stats (price, holders, liquidity) are flowing again from our primary data source — a missing request header had been silently failing it to backups for days. Live trade streams no longer cut out after 30 seconds; they now run their full duration. The Pay-As-You-Learn Tutor no longer errors when resuming a session — running tabs persist correctly across questions — and Fact Checker results are cached properly so repeat checks of the same claim return instantly.</description>+ </item><item><title>Scheduled jobs restored after dependency outage</title><link>https://three.ws/changelog</link>diff --git a/public/features.json b/public/features.jsonindex 563c2f51a..4ca926e5b 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-11T03:08:12.982Z",+ "generated_at": "2026-06-11T03:28:03.189Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/vercel.json b/vercel.jsonindex 601c13a41..4fbab23b5 100644--- a/vercel.json+++ b/vercel.json@@ -63,6 +63,14 @@"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}","maxDuration": 60},+ "api/chat/proxy.js": {+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",+ "maxDuration": 120+ },+ "api/pump/trades-stream.js": {+ "includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}",+ "maxDuration": 300+ },"api/**/*.js": {"includeFiles": "{examples/skills/**,data/pages.json,data/archives/**,data/rss/**,data/_generated/**,sdk/src/sas-config.json}","maxDuration": 30