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
chore: commit outstanding workspace changes
nirholasf83c59c6d9b3
diff --git a/api/_lib/forge-reference-image.js b/api/_lib/forge-reference-image.jsindex 9021d3ba3..7745cbf11 100644--- a/api/_lib/forge-reference-image.js+++ b/api/_lib/forge-reference-image.js@@ -58,6 +58,7 @@ import { createHash } from 'node:crypto';import { getGcpAccessToken } from './gcp-auth.js';import { putObject, publicUrl } from './r2.js';import { subjectNegativePrompt } from '../forge-enhance.js';+import { isProviderRefusal } from './ai-image-lanes.js';import { textToImage } from '../_mcp3d/text-to-image.js';import { parseJsonLoose } from './vision.js';import { getRedis } from './redis.js';@@ -221,37 +222,53 @@ async function generateViaVertex({ instruction, aspectRatio }) {return res;};- let res = await request(true);- if (res.status === 400) {- // Peek at the error: only retry-without-size when it is specifically about- // imageConfig/imageSize, so a genuine bad request still fails fast.- const detail = await res.text().catch(() => '');- if (/imageSize|imageConfig/i.test(detail)) {- res = await request(false);- } else {- throw Object.assign(new Error(`Vertex reference image 400: ${detail.slice(0, 200)}`), {- providerStatus: 400,- });+ const attempt = async () => {+ let res = await request(true);+ if (res.status === 400) {+ // Peek at the error: only retry-without-size when it is specifically about+ // imageConfig/imageSize, so a genuine bad request still fails fast.+ const detail = await res.text().catch(() => '');+ if (/imageSize|imageConfig/i.test(detail)) {+ res = await request(false);+ } else {+ throw Object.assign(new Error(`Vertex reference image 400: ${detail.slice(0, 200)}`), {+ providerStatus: 400,+ });+ }}+ if (!res.ok) {+ const detail = await res.text().catch(() => '');+ const err = Object.assign(+ new Error(`Vertex reference image returned ${res.status}: ${detail.slice(0, 200)}`),+ { providerStatus: res.status },+ );+ if (res.status === 429) err.code = 'rate_limited';+ throw err;+ }+ const data = await res.json();+ const parts = data?.candidates?.[0]?.content?.parts || [];+ const imgPart = parts.find((p) => p?.inlineData?.data);+ const b64 = imgPart?.inlineData?.data;+ if (!b64) {+ const reason = data?.candidates?.[0]?.finishReason;+ throw new Error(`Vertex reference image produced no image${reason ? ` (finishReason: ${reason})` : ''}`);+ }+ return { b64, mime: imgPart.inlineData.mimeType || 'image/png', model: `vertex-ai/${model}` };+ };++ try {+ return await attempt();+ } catch (err) {+ // A no-image response with a transient finishReason (NO_IMAGE, OTHER — not+ // the refusal classes) is a known Gemini flake worth exactly one re-roll:+ // falling through to the generic text→image ladder loses the art-directed+ // instruction, the negatives, and the QA gate, which is a far worse image+ // than a second attempt at this lane. Refusals and HTTP errors re-throw+ // unchanged so genuine blocks and outages still fail fast.+ const noImage = /produced no image/i.test(String(err?.message || ''));+ if (!noImage || isProviderRefusal(err)) throw err;+ return await attempt();}- if (!res.ok) {- const detail = await res.text().catch(() => '');- const err = Object.assign(- new Error(`Vertex reference image returned ${res.status}: ${detail.slice(0, 200)}`),- { providerStatus: res.status },- );- if (res.status === 429) err.code = 'rate_limited';- throw err;- }- const data = await res.json();- const parts = data?.candidates?.[0]?.content?.parts || [];- const imgPart = parts.find((p) => p?.inlineData?.data);- const b64 = imgPart?.inlineData?.data;- if (!b64) {- const reason = data?.candidates?.[0]?.finishReason;- throw new Error(`Vertex reference image produced no image${reason ? ` (finishReason: ${reason})` : ''}`);- }- return { b64, mime: imgPart.inlineData.mimeType || 'image/png', model: `vertex-ai/${model}` };}// ── Reference-image QA gate ──────────────────────────────────────────────────diff --git a/api/_lib/native-launch/config.js b/api/_lib/native-launch/config.jsindex bce93ac33..b1917c888 100644--- a/api/_lib/native-launch/config.js+++ b/api/_lib/native-launch/config.js@@ -53,7 +53,10 @@ export function curveBuildParams() {tokenQuoteDecimal: 9, // TokenDecimal.NINE (SOL)tokenAuthorityOption: 1, // TokenAuthorityOption.ImmutabletotalTokenSupply: NATIVE_LANE.totalSupply,- leftover: 0,+ // The DBC program requires curve + migration + leftover to sum exactly+ // to the fixed supply; leftover 0 fails its rounding check on-chain+ // (InvalidTokenSupply). One base unit of dust satisfies it.+ leftover: 1,},fee: {baseFeeParams: {diff --git a/api/_lib/native-launch/dbc.js b/api/_lib/native-launch/dbc.jsindex 4ed1f12d4..cc3166fc4 100644--- a/api/_lib/native-launch/dbc.js+++ b/api/_lib/native-launch/dbc.js@@ -13,7 +13,7 @@ async function sdk() {return _sdk;}-export const DBC_PROGRAM_ID = 'dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSmaKN';+export const DBC_PROGRAM_ID = 'dbcij3LWUppWqq96dh6gJWwBifmcGfLSB5D4DuSMaqN';const clients = new Map(); // network -> DynamicBondingCurveClientdiff --git a/api/_mcp-studio/gpt-forge-client.js b/api/_mcp-studio/gpt-forge-client.jsindex 1f30c0a2d..ac6c9e382 100644--- a/api/_mcp-studio/gpt-forge-client.js+++ b/api/_mcp-studio/gpt-forge-client.js@@ -125,8 +125,13 @@ export async function startForge(base, { prompt, imageUrls, aspect, backend, pattry {({ res, data } = await attempt(tier, !!internal));} catch (err) {- if (err?.code !== 'timeout' || tier !== 'high') throw err;- ({ res, data } = await attempt('standard', false));+ if (err?.code !== 'timeout') throw err;+ // One more shot at the accept path before giving up: the async lanes 202+ // in milliseconds, so a submit that blocked to the deadline almost always+ // hit a blocking-lane (HF Space) or cold-start hiccup. High tier degrades+ // to the async standard router; other tiers retry as submitted.+ if (tier === 'high') ({ res, data } = await attempt('standard', false));+ else ({ res, data } = await attempt(tier, !!internal));}if (res.status === 402 && tier === 'high') ({ res, data } = await attempt('standard', false));if (res.status === 503) throw failure('not_configured', data?.message || '3D generation is not configured on this deployment');@@ -161,33 +166,76 @@ export async function startRig(base, glbUrl) {// coded failure on a failed job, or returns { _timedOut: true } at the deadline.export async function pollJob(base, jobId, { timeoutMs, intervalMs } = {}) {const tMs = timeoutMs || DEFAULT_TIMEOUT_MS;- const iMs = intervalMs || DEFAULT_POLL_MS;const deadline = Date.now() + tMs;+ // Gentle backoff: start at the configured cadence and stretch toward a cap,+ // so a minutes-long self-host job costs ~a third of the self-calls a fixed+ // 3s cadence would fire at the shared mcp3dStatus rate bucket.+ let iMs = intervalMs || DEFAULT_POLL_MS;+ const maxIMs = Math.max(iMs, envNum('STUDIO_POLL_MAX_MS', 10_000));let last = null;+ let softFails = 0;while (Date.now() < deadline) {- let res;+ let res = null;+ let data = {};try {res = await fetch(`${base}/api/gpt-forge?job=${encodeURIComponent(jobId)}`, {headers: { accept: 'application/json' },signal: AbortSignal.timeout(Math.max(iMs * 3, 15_000)),});- } catch (err) {- if (err?.name === 'AbortError' || err?.name === 'TimeoutError') {- await sleep(iMs);- continue;+ data = await res.json().catch(() => ({}));+ } catch {+ res = null;+ }+ // Transient conditions — a network blip, the shared status rate bucket+ // answering 429, a 5xx from a rolling deploy — must NOT kill the loop:+ // the job is still running server-side and this handle is the only way+ // back to it. Only a clean, definitive 4xx (bad/expired job id) throws.+ if (!res || res.status === 429 || res.status >= 500) {+ if (++softFails >= 20) {+ // Persistently unreachable — hand back the pending shape so the+ // caller returns a pollable handle, never a dead error.+ return { ...(last || {}), _timedOut: true };}- throw failure('provider_error', `generation poll failed: ${err?.message || err}`);+ await sleep(iMs);+ iMs = Math.min(maxIMs, Math.round(iMs * 1.35));+ continue;}- const data = await res.json().catch(() => ({}));if (!res.ok) throw failure('provider_error', data?.message || `generation poll returned ${res.status}`);+ softFails = 0;last = data;if (data.status === 'done' && data.glb_url) return data;- if (data.status === 'failed') throw failure('generation_failed', data.error || 'generation failed');+ if (data.status === 'failed') {+ throw failure('generation_failed', data.error || 'generation failed', {+ retryBackends: Array.isArray(data.retry_backends) ? data.retry_backends : undefined,+ });+ }await sleep(iMs);+ iMs = Math.min(maxIMs, Math.round(iMs * 1.35));}return { ...(last || {}), _timedOut: true };}+// Single status probe for the check_job tool: one GET, no loop. Throws a coded+// failure only on a definitive non-2xx; the caller decides how to render each+// status.+export async function pollOnce(base, jobId) {+ let res;+ try {+ res = await fetch(`${base}/api/gpt-forge?job=${encodeURIComponent(jobId)}`, {+ headers: { accept: 'application/json' },+ signal: AbortSignal.timeout(15_000),+ });+ } catch (err) {+ if (err?.name === 'TimeoutError' || err?.name === 'AbortError')+ throw failure('timeout', 'the status check timed out; try again');+ throw failure('provider_error', `the status check is unreachable: ${err?.message || err}`);+ }+ const data = await res.json().catch(() => ({}));+ if (res.status === 429) throw failure('busy', data?.message || 'status checks are rate limited; try again shortly', { retryAfter: data?.retry_after });+ if (!res.ok) throw failure('provider_error', data?.message || `the status check returned ${res.status}`);+ return data;+}+// Run a submit→poll cycle end to end, returning the terminal job payload.// A timed-out payload keeps `job_id` so the caller can hand the (still// running) job back to the client as a pollable handle instead of an error.diff --git a/api/_mcp-studio/tools.js b/api/_mcp-studio/tools.jsindex 4d503da18..f1382396b 100644--- a/api/_mcp-studio/tools.js+++ b/api/_mcp-studio/tools.js@@ -34,6 +34,7 @@ import {irlUrl,generate,rig,+ pollOnce,directPrompt,} from './gpt-forge-client.js';import { COMPONENT_URI } from './component.js';@@ -140,11 +141,16 @@ function toolError(message) {// quietly finished minutes later and the caller never learned. The job handle// is public (the free /api/forge poll endpoint takes it with no auth), so hand// it over and let the caller collect the result.-function pendingResult({ base, jobId, what, prompt }) {- const pollUrl = `${base}/api/forge?job=${encodeURIComponent(jobId)}`;+function pendingResult({ base, jobId, what, prompt, etaRemainingSeconds }) {+ // The ChatGPT pipeline's own endpoint, not /api/forge — the whole point of+ // the clone is that this surface can evolve independently.+ const pollUrl = `${base}/api/gpt-forge?job=${encodeURIComponent(jobId)}`;+ const eta = Number.isFinite(etaRemainingSeconds) && etaRemainingSeconds > 0 ? Math.round(etaRemainingSeconds) : null;const message =- `The ${what} is still rendering (heavier scenes take a few minutes). ` +- `It keeps running — poll ${pollUrl} until status is "done", then use its glb_url ` ++ `The ${what} is still rendering (heavier scenes take a few minutes)` ++ `${eta ? ` — roughly ${eta}s to go` : ''}. ` ++ `It keeps running — call the check_job tool with this job_id${eta ? ` in ~${eta}s` : ' shortly'} to collect it, ` ++ `or poll ${pollUrl} until status is "done", then use its glb_url ` +`(view at ${base}/viewer?src=<glb_url>).`;return {content: [{ type: 'text', text: message }],@@ -152,6 +158,7 @@ function pendingResult({ base, jobId, what, prompt }) {status: 'pending',jobId,pollUrl,+ ...(eta ? { etaRemainingSeconds: eta } : {}),...(prompt ? { prompt } : {}),},};@@ -212,12 +219,16 @@ function failureMessage(err) {switch (err?.code) {case 'timeout':return 'Generation is taking longer than expected. Please try again.';- case 'busy':- return 'The 3D generator is busy right now. Please try again in a moment.';+ case 'busy': {+ const wait = Number(err?.retryAfter);+ return Number.isFinite(wait) && wait > 0+ ? `The 3D generator is busy right now. Try again in about ${Math.ceil(wait)}s.`+ : 'The 3D generator is busy right now. Please try again in a moment.';+ }case 'not_configured':return 'This capability is temporarily unavailable. Please try again later.';case 'generation_failed':- return 'Generation failed for this prompt. Try rephrasing or simplifying it.';+ return 'Generation failed for this prompt. Try again — a retry is routed to a healthy engine — or rephrase it.';default:return 'Could not generate the model right now. Please try again.';}@@ -286,7 +297,7 @@ async function handleForgeFree(args, _auth, req) {} catch (err) {return toolError(failureMessage(err));}- if (job._timedOut && job.job_id) return pendingResult({ base, jobId: job.job_id, what: 'model', prompt });+ if (job._timedOut && job.job_id) return pendingResult({ base, jobId: job.job_id, what: 'model', prompt, etaRemainingSeconds: job.eta_remaining_seconds });if (job._timedOut || !job.glb_url) return toolError('Generation is taking longer than expected. Please try again.');return ok({ glbUrl: job.glb_url, base, kind: 'model', prompt, referenceImageUrl: job.preview_image_url });}@@ -324,7 +335,7 @@ async function handleTextToAvatar(args, _auth, req) {} catch (err) {return toolError(failureMessage(err));}- if (job._timedOut && job.job_id) return pendingResult({ base, jobId: job.job_id, what: 'avatar', prompt: prompt || undefined });+ if (job._timedOut && job.job_id) return pendingResult({ base, jobId: job.job_id, what: 'avatar', prompt: prompt || undefined, etaRemainingSeconds: job.eta_remaining_seconds });if (job._timedOut || !job.glb_url) return toolError('Generation is taking longer than expected. Please try again.');return ok({ glbUrl: job.glb_url, base, kind: 'avatar', prompt: prompt || undefined, referenceImageUrl: job.preview_image_url });}@@ -376,7 +387,7 @@ async function handleMeshForge(args, _auth, req) {} catch (err) {return toolError(failureMessage(err));}- if (job._timedOut && job.job_id) return pendingResult({ base, jobId: job.job_id, what: 'mesh', prompt: prompt || undefined });+ if (job._timedOut && job.job_id) return pendingResult({ base, jobId: job.job_id, what: 'mesh', prompt: prompt || undefined, etaRemainingSeconds: job.eta_remaining_seconds });if (job._timedOut || !job.glb_url) return toolError('Generation is taking longer than expected. Please try again.');return ok({ glbUrl: job.glb_url, base, kind: 'mesh', prompt: prompt || undefined, referenceImageUrl: job.preview_image_url });}@@ -396,7 +407,7 @@ async function handleRigMesh(args, _auth, req) {} catch (err) {return toolError(failureMessage(err));}- if (job._timedOut && job.job_id) return pendingResult({ base, jobId: job.job_id, what: 'rigged model' });+ if (job._timedOut && job.job_id) return pendingResult({ base, jobId: job.job_id, what: 'rigged model', etaRemainingSeconds: job.eta_remaining_seconds });if (job._timedOut || !job.glb_url) return toolError('Rigging is taking longer than expected. Please try again.');return ok({ glbUrl: job.glb_url, base, kind: 'rigged model', rigged: true });}@@ -437,7 +448,7 @@ async function handleForgeAvatar(args, _auth, req) {} catch (err) {return toolError(failureMessage(err));}- if (gen._timedOut && gen.job_id) return pendingResult({ base, jobId: gen.job_id, what: 'avatar mesh (rig it with rig_mesh once done)', prompt: prompt || undefined });+ if (gen._timedOut && gen.job_id) return pendingResult({ base, jobId: gen.job_id, what: 'avatar mesh (rig it with rig_mesh once done)', prompt: prompt || undefined, etaRemainingSeconds: gen.eta_remaining_seconds });if (gen._timedOut || !gen.glb_url) return toolError('Generation is taking longer than expected. Please try again.');// Stage 2 — auto-rig the generated mesh.@@ -463,7 +474,7 @@ async function handleForgeAvatar(args, _auth, req) {},};}- if (rigged._timedOut && rigged.job_id) return pendingResult({ base, jobId: rigged.job_id, what: 'avatar rig', prompt: prompt || undefined });+ if (rigged._timedOut && rigged.job_id) return pendingResult({ base, jobId: rigged.job_id, what: 'avatar rig', prompt: prompt || undefined, etaRemainingSeconds: rigged.eta_remaining_seconds });if (rigged._timedOut || !rigged.glb_url) return toolError('Rigging is taking longer than expected. Please try again.');return ok({ glbUrl: rigged.glb_url, base, kind: 'avatar', prompt: prompt || undefined, rigged: true, referenceImageUrl: gen.preview_image_url });}@@ -547,7 +558,14 @@ async function handleRefineModel(args, _auth, req) {} catch (err) {return toolError(failureMessage(err));}- if (job._timedOut && job.job_id) return pendingResult({ base, jobId: job.job_id, what: 'refined model', prompt: prompt || undefined });+ if (job._timedOut && job.job_id)+ return pendingResult({+ base,+ jobId: job.job_id,+ what: 'refined model',+ prompt: composed || undefined,+ etaRemainingSeconds: job.eta_remaining_seconds,+ });if (job._timedOut || !job.glb_url) return toolError('Refinement is taking longer than expected. Please try again.');const lineage = appendVersion(baseLineage, {@@ -561,6 +579,43 @@ async function handleRefineModel(args, _auth, req) {return refineOk({ glbUrl: job.glb_url, base, prompt: composed, instruction, lineage, activeIndex: lineage.length - 1 });}+// Collect a generation that outlived a tool call's inline wait. One status+// probe, no loop: done renders the full result envelope in the widget, still+// running returns a fresh pending envelope with updated timing, failed returns+// the same clean failure copy the generating tools use. Without this tool the+// only way back to a pending job was browsing the raw poll URL.+async function handleCheckJob(args, _auth, req) {+ const base = originFromReq(req);+ const jobId = String(args.job_id || '').trim();+ if (!jobId) return toolError('Provide the job_id a pending generation returned.');+ let data;+ try {+ data = await pollOnce(base, jobId);+ } catch (err) {+ return toolError(failureMessage(err));+ }+ if (data.status === 'done' && data.glb_url) {+ return ok({+ glbUrl: data.glb_url,+ base,+ kind: 'model',+ prompt: typeof data.prompt === 'string' && data.prompt ? data.prompt : undefined,+ referenceImageUrl: data.preview_image_url,+ });+ }+ if (data.status === 'failed') {+ // data.error is already sanitized server-side (sanitizeJobError): safe copy.+ return toolError(data.error ? `Generation failed: ${data.error}` : failureMessage({ code: 'generation_failed' }));+ }+ return pendingResult({+ base,+ jobId,+ what: 'model',+ prompt: typeof data.prompt === 'string' && data.prompt ? data.prompt : undefined,+ etaRemainingSeconds: data.eta_remaining_seconds,+ });+}+// ── definitions ─────────────────────────────────────────────────────────────const GEN_ANNOTATIONS = {@@ -735,6 +790,35 @@ const DEFS = [_meta: widgetMeta('Refining your 3D model…', 'Here is the refined model'),handler: handleRefineModel,},+ {+ name: 'check_job',+ title: 'Check a pending 3D generation',+ description:+ 'Check on a 3D generation that returned status "pending" and collect the finished model. Pass the ' ++ 'job_id from the pending result. While it is still rendering you get updated timing; call again after ' ++ 'the suggested wait. When it is done the model renders inline in the interactive 3D viewer.',+ inputSchema: {+ type: 'object',+ additionalProperties: false,+ required: ['job_id'],+ properties: {+ job_id: {+ type: 'string',+ minLength: 8,+ maxLength: 4096,+ description: 'The job_id (or jobId) a pending generation returned.',+ },+ },+ },+ annotations: {+ readOnlyHint: true, // a status probe; creates nothing+ destructiveHint: false,+ idempotentHint: true, // same job_id, same answer until the job advances+ openWorldHint: true,+ },+ _meta: widgetMeta('Checking your 3D model…', 'Here is your 3D model'),+ handler: handleCheckJob,+ },];// Schemas for tools/list — strip the handler (and any server-only field).diff --git a/api/cron/forge-finalize.js b/api/cron/forge-finalize.jsindex 1f1415362..d38a69c4d 100644--- a/api/cron/forge-finalize.js+++ b/api/cron/forge-finalize.js@@ -33,11 +33,21 @@import { sql } from '../_lib/db.js';import { cors, json, wrapCron } from '../_lib/http.js';import { constantTimeEquals } from '../_lib/crypto.js';-import { materializeCreation, markFailed, forgeStoreEnabled } from '../_lib/forge-store.js';+import { materializeCreation, markFailed, forgeStoreEnabled, createCreation } from '../_lib/forge-store.js';import { notifyForgeComplete, notifyForgeFailed } from '../_lib/forge-notify.js';import { createRegenProvider as createGcpProvider } from '../_providers/gcp.js';import { createNvidiaProvider } from '../_providers/nvidia.js';-import { decodeJobToken } from '../_lib/forge-job-token.js';+import { decodeJobToken, encodeJobToken } from '../_lib/forge-job-token.js';+import {+ pickRedispatchLane,+ submitFailoverJob,+ bindJobSuccessor,+ MAX_FAILOVER_HOPS,+} from '../_lib/forge-failover.js';+import { markLaneUnhealthy } from '../_lib/forge-lane-health.js';+import { resolveTier } from '../_lib/forge-tiers.js';+import { acquireLock, cacheGet, cacheSet } from '../_lib/cache.js';+import { getRedis } from '../_lib/redis.js';export const maxDuration = 60;@@ -48,6 +58,18 @@ const GRACE_MINUTES = 2;// lane (self-host TRELLIS high tier behind a full queue) finishes well inside// 30 minutes; beyond it the worker task has been evicted or lost.const HARD_TTL_MINUTES = 45;+// Browser clients poll attended for up to 12 minutes (src/forge.js MAX_POLL_MS)+// and run their own poll-time lane failover. The cron defers acting on a failed+// self-host poll until that window has passed, so it can never race a live+// browser into a duplicate redispatch of the same generation.+const ATTENDED_POLL_BUDGET_MINUTES = 13;+// Hop/attempted memory for cron-built failover chains, keyed by the successor's+// worker envelope. Same lifetime as the poll path's successor bindings.+const CRON_HOP_PREFIX = 'fr:cron-hop:';+const CRON_HOP_TTL_S = 2 * 3600;+// Mirrors the poll path's NVCF alias/resub keys (api/forge.js pollNvidiaStatus)+// so attended and unattended recovery share one once-per-job budget.+const NVCF_ALIAS_TTL_S = 3600;export function requireCron(req, res) {const secret = process.env.CRON_SECRET;@@ -81,6 +103,87 @@ export function decodeWorkerEnvelope(replicateJobId) {}}+async function readCronHop(replicateJobId) {+ const r = getRedis();+ if (!r) return null;+ try {+ const raw = await r.get(`${CRON_HOP_PREFIX}${replicateJobId}`);+ const value = typeof raw === 'string' ? JSON.parse(raw) : raw;+ return value && Number.isFinite(value.hop) ? value : null;+ } catch {+ return null;+ }+}++async function writeCronHop(replicateJobId, value) {+ const r = getRedis();+ if (!r) return;+ try {+ await r.set(`${CRON_HOP_PREFIX}${replicateJobId}`, JSON.stringify(value), { ex: CRON_HOP_TTL_S });+ } catch {+ // Best-effort: a lost hop record loosens the chain cap by one, nothing more.+ }+}++// Unattended twin of the poll handler's automatic lane failover (api/forge.js+// pollJob). The 30-minute worker orphan class lands here by construction: the+// worker only declares an orphan long after every browser has stopped polling,+// so the cron is the ONLY consumer of that failure — and before this it+// dead-ended the job permanently. The original inputs are still on the row;+// resubmit to the next healthy lane instead. The successor gets its own+// creation row (same client/user), so this same cron sweeps it to completion+// and the completion notification still fires for a model, not a failure.+async function tryCronRedispatch(row) {+ if (!row.preview_image_url || row.path === 'sketch') return false;+ const prior = await readCronHop(row.replicate_job_id);+ const hop = prior ? prior.hop : 0;+ if (hop >= MAX_FAILOVER_HOPS) return false;+ const attempted = [...new Set([...(prior?.attempted || []), row.backend].filter(Boolean))];+ const nextLane = await pickRedispatchLane({ attempted });+ if (!nextLane) return false;+ try {+ const submitted = await submitFailoverJob({+ backend: nextLane,+ imageUrl: row.preview_image_url,+ prompt: row.prompt,+ tierId: row.tier,+ path: row.path,+ });+ // The redispatch reconstructs from the primary stored view, so a+ // multi-view original degrades visibly (views_used: 1), never silently —+ // same provenance contract as the attended failover.+ await createCreation({+ clientKey: row.client_key,+ userId: row.user_id ?? null,+ prompt: row.prompt,+ previewImageUrl: row.preview_image_url,+ replicateJobId: submitted.extJobId,+ viewsRequested: 1,+ viewsUsed: 1,+ multiview: false,+ backend: nextLane,+ tier: row.tier,+ path: row.path,+ });+ await writeCronHop(submitted.extJobId, { hop: hop + 1, attempted });+ // A late attended poller still holds the original f1 handle. Job tokens+ // are deterministic (HMAC over the same payload), so re-encoding the+ // envelope reconstructs the exact string that client polls — bind the+ // successor chain on it so resolveLiveJob chases to the live job.+ await bindJobSuccessor(+ encodeJobToken({ provider: 'gcp', kind: null, taskId: row.replicate_job_id }),+ { handle: submitted.handle, backend: nextLane, hop: hop + 1, attempted },+ );+ console.warn(+ `[forge-finalize] job failed on ${row.backend}; unattended auto-failover #${hop + 1} → ${nextLane}`,+ );+ return true;+ } catch (err) {+ console.warn(`[forge-finalize] redispatch failed: ${err?.message || err}`);+ return false;+ }+}+export default wrapCron(async (req, res) => {cors(req, res, { methods: 'GET,POST,OPTIONS' });if (req.method?.toUpperCase() === 'OPTIONS') return;@@ -93,7 +196,7 @@ export default wrapCron(async (req, res) => {const rows = await sql`select id, replicate_job_id, client_key, user_id, prompt, preview_image_url,- backend, tier, created_at+ backend, tier, path, created_atfrom forge_creationswhere status = 'generating'and replicate_job_id is not null@@ -116,7 +219,7 @@ export default wrapCron(async (req, res) => {// NIM unconfigured: forge-token rows can't be polled here; hard TTL reaps.}- const out = { done: 0, failed: 0, timed_out: 0, still_running: 0, unpollable: 0 };+ const out = { done: 0, failed: 0, failed_over: 0, resubmitted: 0, timed_out: 0, still_running: 0, unpollable: 0 };for (const row of rows) {const ageMinutes = (Date.now() - Date.parse(row.created_at)) / 60_000;@@ -150,6 +253,26 @@ export default wrapCron(async (req, res) => {}if (status?.status === 'failed') {+ // Inside the attended window a live browser may poll this failure+ // seconds from now and run its own failover; acting here would race+ // it into duplicate GPU work. Leave the row — an attended client+ // resolves it, and an abandoned one ages into the branch below.+ if (ageMinutes < ATTENDED_POLL_BUDGET_MINUTES) {+ out.still_running++;+ continue;+ }+ if (row.backend) await markLaneUnhealthy(row.backend).catch(() => {});+ if (await tryCronRedispatch(row)) {+ await markFailed({+ replicateJobId: row.replicate_job_id,+ clientKey: row.client_key,+ error: status.error || 'generation failed',+ });+ out.failed_over++;+ // No failure notification: the successor row carries the job on,+ // and its completion (or terminal failure) notifies instead.+ continue;+ }await markFailed({replicateJobId: row.replicate_job_id,clientKey: row.client_key,@@ -196,6 +319,83 @@ export default wrapCron(async (req, res) => {continue;}// queued / running / poll blip: fall through to the TTL check.+ } else if (row.backend === 'nvidia' && nvidia) {+ // Browser/free-lane NIM rows store the BARE NVCF request id (only the+ // x402 lane stores the signed token), so they used to be unpollable+ // here and died at the hard TTL as "generation timed out" even when+ // the GPU had finished. Poll the bare id directly — chasing the alias+ // an attended expiry recovery may have written first.+ const alias = await cacheGet(`nvcf:alias:${row.replicate_job_id}`).catch(() => null);+ const taskId = typeof alias === 'string' && alias ? alias : row.replicate_job_id;+ const status = await nvidia.status({ taskId }).catch(() => null);+ if (status?.status === 'done' && status.resultGlbUrl) {+ const durable = await materializeCreation({+ replicateJobId: row.replicate_job_id,+ clientKey: row.client_key,+ glbUrl: status.resultGlbUrl,+ });+ if (durable) {+ out.done++;+ if (row.user_id) {+ notifyForgeComplete({+ userId: row.user_id,+ creationId: durable.id,+ prompt: row.prompt,+ previewImageUrl: durable.previewImageUrl ?? row.preview_image_url ?? null,+ });+ }+ continue;+ }+ out.still_running++;+ continue;+ }+ if (status?.code === 'nvcf_expired' && row.prompt) {+ // The request id is dead but the inputs live on the row — the same+ // never-dead-end recovery the attended poll runs, sharing its+ // once-per-job resub lock so the two paths can't double-submit.+ // The alias keeps the row's handle stable; the next tick polls the+ // resubmitted task and materializes onto this same row.+ if (await acquireLock(`nvcf:resub:${row.replicate_job_id}`, NVCF_ALIAS_TTL_S)) {+ try {+ const resub = await nvidia.textTo3d({ prompt: row.prompt, tier: resolveTier(row.tier) });+ if (resub.taskId) {+ await cacheSet(`nvcf:alias:${row.replicate_job_id}`, resub.taskId, NVCF_ALIAS_TTL_S);+ console.warn(+ `[forge-finalize] NVCF request expired; resubmitted unattended job (creation ${row.id})`,+ );+ out.resubmitted++;+ continue;+ }+ if (resub.resultGlbUrl) {+ const durable = await materializeCreation({+ replicateJobId: row.replicate_job_id,+ clientKey: row.client_key,+ glbUrl: resub.resultGlbUrl,+ });+ if (durable) {+ out.done++;+ continue;+ }+ }+ } catch (err) {+ console.warn(`[forge-finalize] NVCF resubmit failed: ${err?.message || err}`);+ }+ }+ // Lock held by a prior recovery or the resubmit failed: fall through+ // to the TTL check so a second expiry fails honestly, not instantly.+ } else if (status?.status === 'failed') {+ await markFailed({+ replicateJobId: row.replicate_job_id,+ clientKey: row.client_key,+ error: status.error || 'generation failed',+ });+ out.failed++;+ if (row.user_id) {+ notifyForgeFailed({ userId: row.user_id, prompt: row.prompt, error: status.error });+ }+ continue;+ }+ // queued / running / poll blip: fall through to the TTL check.} else {out.unpollable++;}diff --git a/api/gpt-forge.js b/api/gpt-forge.jsindex 2cca55498..81db0a02f 100644--- a/api/gpt-forge.js+++ b/api/gpt-forge.js@@ -2975,7 +2975,29 @@ async function pollJob(req, res, jobId) {...(suggestions.length ? { retryable: true, retry_backends: suggestions } : {}),});}- return json(res, 200, { job_id: jobId, status: result.status || 'running', ...metaFields });+ // Pending polls carry timing — elapsed since submit plus the lane's typical+ // total — so agent surfaces (ChatGPT sees ONLY poll frames after submit) can+ // narrate real progress and a sane retry cadence instead of N identical+ // "still running" frames. eta_remaining_seconds is floored at 5: the estimate+ // is a typical duration, not a deadline, and a negative countdown reads as+ // "stuck" for a job that is merely slower than average.+ const elapsedSeconds = meta?.created_at+ ? Math.max(0, Math.round((Date.now() - Date.parse(meta.created_at)) / 1000))+ : null;+ const etaSeconds = meta?.backend ? estimateEtaSeconds({ backendId: meta.backend, tier: meta.tier }) : null;+ return json(res, 200, {+ job_id: jobId,+ status: result.status || 'running',+ ...metaFields,+ ...(elapsedSeconds != null ? { elapsed_seconds: elapsedSeconds } : {}),+ ...(etaSeconds != null+ ? {+ eta_seconds: etaSeconds,+ eta_remaining_seconds:+ elapsedSeconds != null ? Math.max(5, etaSeconds - elapsedSeconds) : etaSeconds,+ }+ : {}),+ });}export default wrap(async (req, res) => {diff --git a/api/launchpad/[action].js b/api/launchpad/[action].jsnew file mode 100644index 000000000..b79f59c50--- /dev/null+++ b/api/launchpad/[action].js@@ -0,0 +1,427 @@+// three.ws native launchpad dispatcher — the self-hosted launch lane on+// Meteora's Dynamic Bonding Curve (DBC), alongside the pump.fun lane in+// api/pump/[action].js. Same custody model: the server builds unsigned+// transactions, the user's wallet (plus the mint keypair) signs client-side,+// and a confirm step verifies the landed transaction on-chain before+// recording the launch.+//+// Action map:+// config -> handleConfig (public: lane economics + config key)+// quote -> handleQuote (public: buy quote on a live curve)+// pool -> handlePool (public: pool state / curve progress)+// launch-prep -> handleLaunchPrep (authed: unsigned create-pool tx)+// launch-confirm -> handleLaunchConfirm (authed: verify + record launch)+// launches -> handleLaunches (public: native launch directory)++import { z } from 'zod';+import { Keypair } from '@solana/web3.js';+import { sql } from '../_lib/db.js';+import { getSessionUser } from '../_lib/auth.js';+import { cors, json, method, readJson, wrap, error, rateLimited } from '../_lib/http.js';+import { publicUrl as r2PublicUrl } from '../_lib/r2.js';+import { env } from '../_lib/env.js';+import { limits, clientIp } from '../_lib/rate-limit.js';+import { resolveOrCreateAgentForAvatar } from '../_lib/agent-identity.js';+import { parse } from '../_lib/validate.js';+import { randomToken } from '../_lib/crypto.js';+import { publishFeedEvent } from '../_lib/feed.js';+import { normalizeGatewayURL } from '../../src/ipfs.js';+import { THREE_WS_VANITY, hasThreeWsMark } from '../../src/solana/vanity/brand.js';+import { grindVanityNode, GrindExhaustedError } from '../../src/solana/vanity/grinder-node.js';+import { verifySignature, solanaPubkey } from '../_lib/pump.js';+import { laneInfo, configKeyFor } from '../_lib/native-launch/config.js';+import {+ buildCreatePoolTx,+ txInvokesDbcProgram,+ getPoolState,+ quoteBuy,+} from '../_lib/native-launch/dbc.js';+import { logger } from '../_lib/usage.js';++const log = logger('launchpad');++function shortAddr(a) {+ return a && a.length > 10 ? `${a.slice(0, 4)}…${a.slice(-4)}` : a || '';+}++// ── config ─────────────────────────────────────────────────────────────────++async function handleConfig(req, res) {+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;+ if (!method(req, res, ['GET'])) return;+ const rl = await limits.authedReadIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);+ const url = new URL(req.url, `http://${req.headers.host}`);+ const network = url.searchParams.get('network') === 'devnet' ? 'devnet' : 'mainnet';+ const info = laneInfo(network);+ return json(res, 200, { ...info, available: Boolean(info.config_key) }, {+ 'cache-control': 'public, max-age=60, s-maxage=300',+ });+}++// ── quote / pool (public reads) ────────────────────────────────────────────++async function handleQuote(req, res) {+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;+ if (!method(req, res, ['GET'])) return;+ const rl = await limits.mcpIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);+ const url = new URL(req.url, `http://${req.headers.host}`);+ const network = url.searchParams.get('network') === 'devnet' ? 'devnet' : 'mainnet';+ const mint = url.searchParams.get('mint');+ const solIn = Number(url.searchParams.get('sol_in') || '0.1');+ if (!mint || !solanaPubkey(mint)) return error(res, 400, 'validation_error', 'valid mint required');+ if (!(solIn > 0) || solIn > 1000) return error(res, 400, 'validation_error', 'sol_in must be in (0, 1000]');+ try {+ const quote = await quoteBuy({ network, mint, solIn });+ return json(res, 200, { network, mint, ...quote });+ } catch (e) {+ return error(res, e.status || 500, e.code || 'quote_failed', e.message);+ }+}++async function handlePool(req, res) {+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;+ if (!method(req, res, ['GET'])) return;+ const rl = await limits.mcpIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);+ const url = new URL(req.url, `http://${req.headers.host}`);+ const network = url.searchParams.get('network') === 'devnet' ? 'devnet' : 'mainnet';+ const mint = url.searchParams.get('mint');+ if (!mint || !solanaPubkey(mint)) return error(res, 400, 'validation_error', 'valid mint required');+ try {+ const state = await getPoolState({ network, mint });+ return json(res, 200, { network, mint, ...state }, { 'cache-control': 'public, max-age=5' });+ } catch (e) {+ return error(res, e.status || 500, e.code || 'pool_state_failed', e.message);+ }+}++// ── launch-prep ────────────────────────────────────────────────────────────++const launchPrepSchema = z+ .object({+ agent_id: z.string().uuid().optional(),+ avatar_id: z.string().uuid().optional(),+ wallet_address: z.string().min(32).max(44),+ creator_address: z.string().min(32).max(44).optional(),+ name: z.string().trim().min(1).max(32),+ symbol: z.string().trim().min(1).max(10),+ uri: z.string().url().max(200),+ network: z.enum(['mainnet', 'devnet']).default('mainnet'),+ sol_buy_in: z.number().min(0).max(50).default(0),+ mint_address: z.string().min(32).max(44).optional(),+ })+ .refine((b) => b.agent_id || b.avatar_id, { message: 'agent_id or avatar_id required' });++async function handleLaunchPrep(req, res) {+ if (cors(req, res, { methods: 'POST,OPTIONS', credentials: true })) return;+ if (!method(req, res, ['POST'])) return;++ const user = await getSessionUser(req);+ if (!user) return error(res, 401, 'unauthorized', 'sign in required');++ const rl = await limits.authIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);++ const body = parse(launchPrepSchema, await readJson(req));+ if (!configKeyFor(body.network)) {+ return error(+ res,+ 503,+ 'lane_not_configured',+ `native launchpad is not deployed on ${body.network} yet`,+ );+ }+ const signer = solanaPubkey(body.wallet_address);+ if (!signer) return error(res, 400, 'validation_error', 'invalid wallet_address');++ const [walletRow] = await sql`+ select id from user_wallets+ where user_id=${user.id} and address=${body.wallet_address} and chain_type='solana'+ limit 1+ `;+ if (!walletRow) return error(res, 403, 'forbidden', 'wallet not linked to your account');++ // On-chain pool creator (trading-fee recipient). Same ownership rule as the+ // pump lane: when provided, it must be another wallet linked to this user.+ let creator = signer;+ if (body.creator_address && body.creator_address !== body.wallet_address) {+ const creatorPk = solanaPubkey(body.creator_address);+ if (!creatorPk) return error(res, 400, 'validation_error', 'invalid creator_address');+ const [creatorWallet] = await sql`+ select id from user_wallets+ where user_id=${user.id} and address=${body.creator_address} and chain_type='solana'+ limit 1+ `;+ if (!creatorWallet) {+ return error(res, 403, 'forbidden', 'creator_address must be a solana wallet linked to your account');+ }+ creator = creatorPk;+ }++ const agent = await resolveOrCreateAgentForAvatar({+ userId: user.id,+ agentId: body.agent_id,+ avatarId: body.avatar_id,+ });+ if (!agent) return error(res, 404, 'not_found', 'agent not found');++ // Mint pubkey: client-supplied (vanity-ground) or server-ground with the+ // three.ws mark — identical branding rule to the pump lane.+ const enforceMark = env.THREE_WS_MARK_ENFORCE !== '0' && env.THREE_WS_MARK_ENFORCE !== 'false';+ let mintKeypair = null;+ let mint;+ if (body.mint_address) {+ const supplied = solanaPubkey(body.mint_address);+ if (!supplied) return error(res, 400, 'validation_error', 'invalid mint_address');+ if (enforceMark && !hasThreeWsMark(supplied.toBase58())) {+ return error(+ res,+ 400,+ 'unbranded_mint',+ 'three.ws launches must use a mint address carrying the "3ws" mark — grind one client-side or omit mint_address to let the server stamp it',+ );+ }+ mint = supplied;+ } else if (enforceMark) {+ try {+ const ground = await grindVanityNode({ ...THREE_WS_VANITY });+ mintKeypair = Keypair.fromSecretKey(ground.secretKey);+ mint = mintKeypair.publicKey;+ } catch (err) {+ if (err instanceof GrindExhaustedError) {+ return error(res, 503, 'mark_grind_failed', 'could not stamp the three.ws mark — retry');+ }+ throw err;+ }+ } else {+ mintKeypair = Keypair.generate();+ mint = mintKeypair.publicKey;+ }++ let built;+ try {+ built = await buildCreatePoolTx({+ network: body.network,+ payer: signer,+ creator,+ baseMint: mint,+ name: body.name,+ symbol: body.symbol,+ uri: body.uri,+ solBuyIn: body.sol_buy_in,+ });+ } catch (e) {+ log.warn('create_pool_build_failed', { message: e.message });+ return error(res, e.status || 502, e.code || 'build_failed', e.message);+ }++ const prepId = await randomToken(24);+ const expiresAt = new Date(Date.now() + 30 * 60 * 1000);+ await sql`+ insert into agent_registrations_pending (user_id, cid, metadata_uri, payload, expires_at)+ values (+ ${user.id},+ ${mint.toBase58()},+ ${body.uri},+ ${JSON.stringify({+ kind: 'native_launch',+ agent_id: agent.id,+ wallet_address: body.wallet_address,+ creator_address: creator.toBase58(),+ mint: mint.toBase58(),+ pool: built.pool,+ config_key: built.configKey,+ name: body.name,+ symbol: body.symbol,+ network: body.network,+ prep_id: prepId,+ })}::jsonb,+ ${expiresAt}+ )+ `;++ return json(res, 201, {+ prep_id: prepId,+ agent_id: agent.id,+ lane: 'native',+ mint: mint.toBase58(),+ pool: built.pool,+ config_key: built.configKey,+ mint_secret_key_b64: mintKeypair ? Buffer.from(mintKeypair.secretKey).toString('base64') : null,+ client_supplied_mint: !mintKeypair,+ tx_base64: built.txBase64,+ network: body.network,+ expires_at: expiresAt.toISOString(),+ instructions: mintKeypair+ ? 'Decode tx_base64 as VersionedTransaction. Sign with the mint keypair (mint_secret_key_b64) AND the user wallet, submit, then POST /api/launchpad/launch-confirm with the tx_signature.'+ : 'Decode tx_base64 as VersionedTransaction. Sign with your locally-held vanity mint keypair AND the user wallet, submit, then POST /api/launchpad/launch-confirm with the tx_signature.',+ });+}++// ── launch-confirm ─────────────────────────────────────────────────────────++const launchConfirmSchema = z.object({+ prep_id: z.string().min(8),+ tx_signature: z.string().min(80).max(100),+});++async function handleLaunchConfirm(req, res) {+ if (cors(req, res, { methods: 'POST,OPTIONS', credentials: true })) return;+ if (!method(req, res, ['POST'])) return;++ const user = await getSessionUser(req);+ if (!user) return error(res, 401, 'unauthorized', 'sign in required');++ const rl = await limits.authIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);++ const body = parse(launchConfirmSchema, await readJson(req));+ const [pending] = await sql`+ select id, payload, metadata_uri from agent_registrations_pending+ where user_id=${user.id} and payload->>'prep_id'=${body.prep_id}+ and expires_at > now()+ order by created_at desc limit 1+ `;+ if (!pending) return error(res, 404, 'not_found', 'prep not found or expired');+ const p = pending.payload;+ if (p.kind !== 'native_launch') return error(res, 400, 'wrong_kind', 'prep is not a native launch');++ let tx;+ try {+ tx = await verifySignature({ network: p.network, signature: body.tx_signature });+ } catch (e) {+ return error(res, e.status || 422, e.code || 'tx_failed', e.message);+ }+ const accountKeys = tx.transaction.message.accountKeys.map((k) => (k.pubkey || k).toString());+ if (!accountKeys.includes(p.mint)) {+ return error(res, 422, 'mint_not_in_tx', 'mint pubkey not present in tx');+ }+ // The confirmed tx must have run the DBC program itself — a memo/transfer+ // touching the mint account can never be recorded as a launch.+ if (!txInvokesDbcProgram(tx)) {+ return error(res, 422, 'not_a_native_launch', 'transaction did not invoke the bonding-curve program');+ }++ const [existing] = await sql`+ select id from native_launches where mint=${p.mint} and network=${p.network} limit 1+ `;+ if (existing) return error(res, 409, 'conflict', 'mint already registered');++ const [row] = await sql`+ insert into native_launches+ (agent_id, user_id, network, mint, pool, config_key, name, symbol, metadata_uri, creator_address)+ values+ (${p.agent_id}, ${user.id}, ${p.network}, ${p.mint}, ${p.pool}, ${p.config_key},+ ${p.name}, ${p.symbol}, ${pending.metadata_uri || null}, ${p.creator_address})+ returning id, mint, pool, network, created_at+ `;++ await sql`delete from agent_registrations_pending where id=${pending.id}`;++ publishFeedEvent({+ type: 'coin-buy',+ ts: Date.now(),+ actor: shortAddr(p.wallet_address),+ mint: p.mint,+ sol: 0,+ network: p.network,+ branded: hasThreeWsMark(p.mint),+ lane: 'native',+ }).catch(() => {});++ return json(res, 201, { ok: true, native_launch: row, tx_signature: body.tx_signature });+}++// ── launches (public directory) ────────────────────────────────────────────++async function handleLaunches(req, res) {+ if (cors(req, res, { methods: 'GET,OPTIONS', origins: '*' })) return;+ if (!method(req, res, ['GET'])) return;+ const rl = await limits.mcpIp(clientIp(req));+ if (!rl.success) return rateLimited(res, rl);++ const url = new URL(req.url, `http://${req.headers.host}`);+ const network = url.searchParams.get('network') === 'devnet' ? 'devnet' : 'mainnet';+ const agentId = url.searchParams.get('agent_id') || null;+ const offset = Math.max(0, parseInt(url.searchParams.get('offset') || '0', 10) || 0);+ const limit = Math.max(1, Math.min(100, parseInt(url.searchParams.get('limit') || '24', 10) || 24));++ const rows = agentId+ ? await sql`+ select nl.mint, nl.pool, nl.network, nl.name, nl.symbol, nl.metadata_uri,+ nl.status, nl.created_at,+ ai.id as agent_id, ai.name as agent_name,+ a.thumbnail_key as avatar_thumbnail_key, a.visibility as avatar_visibility+ from native_launches nl+ left join agent_identities ai on ai.id = nl.agent_id and ai.deleted_at is null+ left join avatars a on a.id = ai.avatar_id and a.deleted_at is null+ where nl.network=${network} and nl.agent_id=${agentId}+ order by nl.created_at desc+ limit ${limit + 1} offset ${offset}+ `+ : await sql`+ select nl.mint, nl.pool, nl.network, nl.name, nl.symbol, nl.metadata_uri,+ nl.status, nl.created_at,+ ai.id as agent_id, ai.name as agent_name,+ a.thumbnail_key as avatar_thumbnail_key, a.visibility as avatar_visibility+ from native_launches nl+ left join agent_identities ai on ai.id = nl.agent_id and ai.deleted_at is null+ left join avatars a on a.id = ai.avatar_id and a.deleted_at is null+ where nl.network=${network}+ order by nl.created_at desc+ limit ${limit + 1} offset ${offset}+ `;++ const hasMore = rows.length > limit;+ const launches = rows.slice(0, limit).map((r) => {+ const avatarPublic = r.avatar_visibility === 'public' || r.avatar_visibility === 'unlisted';+ return {+ lane: 'native',+ mint: r.mint,+ pool: r.pool,+ network: r.network,+ name: r.name,+ symbol: r.symbol,+ status: r.status,+ metadata_uri: normalizeGatewayURL(r.metadata_uri) || r.metadata_uri,+ created_at: r.created_at,+ agent: r.agent_id+ ? {+ id: r.agent_id,+ name: r.agent_name,+ url: `/agents/${r.agent_id}`,+ avatar_thumbnail_url:+ r.avatar_thumbnail_key && avatarPublic ? r2PublicUrl(r.avatar_thumbnail_key) : null,+ }+ : null,+ };+ });++ return json(+ res,+ 200,+ { data: { launches, has_more: hasMore, offset, limit, network } },+ { 'cache-control': 'public, max-age=15' },+ );+}++// ── dispatcher ─────────────────────────────────────────────────────────────++async function dispatch(req, res) {+ const url = new URL(req.url, `http://${req.headers.host}`);+ const action = req.query?.action || url.searchParams.get('action');+ switch (action) {+ case 'config': return handleConfig(req, res);+ case 'quote': return handleQuote(req, res);+ case 'pool': return handlePool(req, res);+ case 'launch-prep': return handleLaunchPrep(req, res);+ case 'launch-confirm': return handleLaunchConfirm(req, res);+ case 'launches': return handleLaunches(req, res);+ default:+ return error(res, 404, 'not_found', `unknown launchpad action: ${action || '(none)'}`);+ }+}++export default wrap(dispatch);diff --git a/data/changelog.json b/data/changelog.jsonindex f836ba7c0..09600709f 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,16 @@{"$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-07-26",+ "title": "The Worlds lobby stays live through market-data outages",+ "summary": "The coin-worlds lobby used to go dark when both of its external trending feeds (Birdeye and pump.fun) were down or rate-limited at the same time. It now falls back to the platform's own launch recorder, which ingests thousands of new pump.fun coins per hour, so the lobby keeps showing real, current coins even when every outside feed fails.",+ "tags": [+ "improvement",+ "infra"+ ],+ "link": "/worlds"+ },{"date": "2026-07-26","title": "Coin charts show a clean no-data state for dead markets",diff --git a/docs/ops/production-log-triage.md b/docs/ops/production-log-triage.mdindex fdf18c141..b522c02d3 100644--- a/docs/ops/production-log-triage.md+++ b/docs/ops/production-log-triage.md@@ -170,6 +170,35 @@ HTTP 502/503 GET|POST /api/x402/*, /api/mcp ua: threews-x402-autonomous/1.0 or---+## 🟡 503 with "exceeded its quota limit for … nvidia_l4_gpu_allocation" (gpu-quota-starved)++```+HTTP 503 GET /health (model-* service) textPayload: The request failed because the project exceeded its quota limit for run.googleapis.com/nvidia_l4_gpu_allocation_no_zonal_redundancy+```++- **Source:** every L4 GPU engine draws from ONE regional pool+ (`NvidiaL4GpuAllocNoZonalRedundancyPerProjectRegion`, granted 3 in+ us-central1). When warm `min-instances` across the fleet pin all of them, a+ min-0 service can never allocate: every request, including the Cloud+ Scheduler health ping, 503s without an instance ever starting.+- **Resolve (env-action, pre-approved):** find the idle holder first. Measure+ real job traffic (POST requests, not liveness pings) for each warm GPU+ service over a few days; a warm L4 with zero jobs is dead weight. Free it:+ `gcloud run services update <service> --region us-central1 --min-instances=0`.+ 2026-07-26 case: `model-hunyuan3d` held a warm L4 with 0 jobs in 3 days while+ `model-text2motion` 503'd for hours; freeing it brought text2motion back+ (health 200, ~14 s cold start) with no code change.+- **Quota raise:** a preference to 16 is filed and reconciling:+ `gcloud alpha quotas preferences list --project=aerial-vehicle-466722-p5`+ (`l4-no-zonal-us-central1-8`). us-east4 also holds 3 granted L4s if a lane is+ ever worth porting. Fleet map and the do-not-repeat lessons:+ [docs/ops/gcp-credits-plan.md](gcp-credits-plan.md).+- **Monitor signature:** `gpu-quota-starved` in+ [scripts/gcp-triage.mjs](../../scripts/gcp-triage.mjs), classified+ `env-action` (matches on the request entry's textPayload).++---+## 🟡 `[x402-audit] insert failed … db query exceeded 3000ms deadline`- **Source:** [api/_lib/x402/audit-log.js](../../api/_lib/x402/audit-log.js) `logPaymentEvent`.@@ -287,6 +316,65 @@ HTTP 502/503 GET|POST /api/x402/*, /api/mcp ua: threews-x402-autonomous/1.0 or---+## 🟢 HTTP 503 `/api/community/*`, `/api/clash*` — `cc_unconfigured` (cc-unconfigured-503)++```+HTTP 503 GET /api/community/worlds body: {"error":"cc_unconfigured","error_description":"CoinCommunities is not configured"}+```++- **Source:** [api/community/worlds.js](../../api/community/worlds.js) throws+ its designed `UnconfiguredError` 503 because `CC_API_KEY` is not set. Swept+ 2026-07-26: the key exists nowhere — not on the Cloud Run service, not in+ `.env`/`.env.local`, not in Secret Manager. The coin-worlds lobby renders its+ empty state; nothing is crashing.+- **Resolve (owner, credential):** provision a CoinCommunities API key+ (api.coin-communities.xyz), then:+ `gcloud run services update three-ws-api --region us-central1 --update-env-vars CC_API_KEY=<key>`.+- **Monitor signature:** `cc-unconfigured-503` in+ [scripts/gcp-triage.mjs](../../scripts/gcp-triage.mjs), classified `owner`.++---++## 🟢 HTTP 503 `/health` on a model worker, UA `Google-Cloud-Scheduler` — `worker-coldstart-health-503`++- **Source:** the keep-warm Cloud Scheduler probe hitting a GPU/model worker+ (model-text2motion, model-hunyuan3d-21, model-rig, ...) while the instance is+ cold-booting. These workers stream hundreds of MB of weights before their+ server reports ready, so a probe landing in that 30-60s window gets a 503.+- **What it means:** nothing is wrong; the probe exists precisely to absorb+ this cold start so a user never pays it. Verified 2026-07-26 on+ model-text2motion: 503 at 21:xx, "text2motion ready" logged 30 seconds later.+- **Resolve:** 🟢 nothing required. Investigate only if the SAME service shows+ this across several consecutive sweeps, which means it is crash-looping+ instead of finishing boot (`npm run logs -- -s <service> --since 1h`).+- **Monitor signature:** `worker-coldstart-health-503` in+ [scripts/gcp-triage.mjs](../../scripts/gcp-triage.mjs), `self-healing`.++---++## 🟢 `[pump/launch-agent] send failed ... pre-broadcast simulation failed` — `pump-launch-sim-rejected`++```+ERROR 502 POST /api/pump/launch-agent+[pump/launch-agent] send failed Error: pre-broadcast simulation failed: {"InstructionError":[1,{"Custom":6015}]}+```++- **Source:** [api/pump/launch-agent.js](../../api/pump/launch-agent.js). The+ handler simulates every launch transaction before broadcasting it.+- **What it means:** the simulation REFUSED a launch that would have failed+ on-chain (pump program custom errors: curve state raced another buyer,+ slippage moved, metadata rejected). That refusal protects the user's fees;+ the caller gets a clean 502 and a retry lands (2026-07-26 case: the same+ user's 201 followed within a minute).+- **Resolve:** 🟢 nothing required for isolated occurrences. Investigate if+ the 502 group on `/api/pump/launch-agent` becomes sustained or one wallet+ repeats the failure many times (then decode the specific custom error code+ against the pump program's IDL).+- **Monitor signature:** `pump-launch-sim-rejected` in+ [scripts/gcp-triage.mjs](../../scripts/gcp-triage.mjs), `self-healing`.++---+## The owner runbook — every fix as an exact commandEverything red/yellow above, condensed to the actions only the owner can take,@@ -356,17 +444,3 @@ gcloud run services update three-ws-api --region us-central1 \--project aerial-vehicle-466722-p5 --update-env-vars CACHE_REDIS_CMD_TIMEOUT_MS=5000# Helius 429s: raise the plan/quota in the Helius dashboard (public-RPC fallback covers the gap).```--### sns-floating-rejection: `Error: Invalid name account provided` (self-healing)--A bare ERROR-severity stack from `@bonfida/spl-name-service` lands roughly-every 12 minutes, raised by the autonomous ring agents resolving names through-`/api/x402/pay-by-name`. Every first-party call site (`src/solana/sns.js`,-`api/x402/pay-by-name.js`) wraps `resolve()` in try/catch and answers a correct-200/404; the escaping copy is a floating rejection out of the library's-internals for unregistered names. Verified 2026-07-26: no 5xx correlates with-these entries and a local repro of the caught path leaks nothing.--Log noise only; no action. Escalate to `investigate` only if a 5xx group-appears on `/api/sns`, `/api/v1/resolve`, or `/api/x402/pay-by-name` in the-same window.diff --git a/package-lock.json b/package-lock.jsonindex 4834729cc..73c579c79 100644--- a/package-lock.json+++ b/package-lock.json@@ -74,7 +74,7 @@"@bnb-chain/greenfield-js-sdk": "^2.2.2","@bnb-chain/mpp": "^0.2.0","@bnb-chain/reed-solomon": "^1.1.4",- "@bonfida/spl-name-service": "0.1.67",+ "@bonfida/spl-name-service": "^3.0.26","@chenglou/pretext": "^0.0.7","@coin-communities/sdk": "^1.2.1","@coinbase/x402": "^2.1.0",@@ -262,6 +262,23 @@}}},+ "agent-payments-sdk/node_modules/@bonfida/spl-name-service": {+ "version": "0.1.67",+ "resolved": "https://registry.npmjs.org/@bonfida/spl-name-service/-/spl-name-service-0.1.67.tgz",+ "integrity": "sha512-B2etln1wGty1bGh/cnGF9uxQBGy2tmcXZMYfgjFJheWMheIMbivpLr2FC3AjV2qyReUbnLlCwAqXW6oXcZgi5Q==",+ "license": "MIT",+ "dependencies": {+ "@bonfida/name-offers": "^0.0.4",+ "@ethersproject/sha2": "^5.5.0"+ },+ "peerDependencies": {+ "@solana/buffer-layout": "^4.0.0",+ "@solana/spl-token": "^0.3.6",+ "@solana/web3.js": "^1.67.0",+ "bn.js": "^5.1.3",+ "borsh": "^0.7.0"+ }+ },"agent-payments-sdk/node_modules/@coral-xyz/anchor": {"version": "0.31.1","resolved": "https://registry.npmjs.org/@coral-xyz/anchor/-/anchor-0.31.1.tgz",@@ -558,6 +575,23 @@"node": "^20.19.0 || ^22.12.0 || >=24.0.0"}},+ "character-studio/node_modules/@bonfida/spl-name-service": {+ "version": "0.1.67",+ "resolved": "https://registry.npmjs.org/@bonfida/spl-name-service/-/spl-name-service-0.1.67.tgz",+ "integrity": "sha512-B2etln1wGty1bGh/cnGF9uxQBGy2tmcXZMYfgjFJheWMheIMbivpLr2FC3AjV2qyReUbnLlCwAqXW6oXcZgi5Q==",+ "license": "MIT",+ "dependencies": {+ "@bonfida/name-offers": "^0.0.4",+ "@ethersproject/sha2": "^5.5.0"+ },+ "peerDependencies": {+ "@solana/buffer-layout": "^4.0.0",+ "@solana/spl-token": "^0.3.6",+ "@solana/web3.js": "^1.67.0",+ "bn.js": "^5.1.3",+ "borsh": "^0.7.0"+ }+ },"character-studio/node_modules/@ethereum-attestation-service/eas-sdk": {"version": "0.29.1","resolved": "https://registry.npmjs.org/@ethereum-attestation-service/eas-sdk/-/eas-sdk-0.29.1.tgz",@@ -1254,6 +1288,23 @@"node": ">=20"}},+ "mcp-server/node_modules/@bonfida/spl-name-service": {+ "version": "0.1.67",+ "resolved": "https://registry.npmjs.org/@bonfida/spl-name-service/-/spl-name-service-0.1.67.tgz",+ "integrity": "sha512-B2etln1wGty1bGh/cnGF9uxQBGy2tmcXZMYfgjFJheWMheIMbivpLr2FC3AjV2qyReUbnLlCwAqXW6oXcZgi5Q==",+ "license": "MIT",+ "dependencies": {+ "@bonfida/name-offers": "^0.0.4",+ "@ethersproject/sha2": "^5.5.0"+ },+ "peerDependencies": {+ "@solana/buffer-layout": "^4.0.0",+ "@solana/spl-token": "^0.3.6",+ "@solana/web3.js": "^1.67.0",+ "bn.js": "^5.1.3",+ "borsh": "^0.7.0"+ }+ },"mcp-server/node_modules/@ethereum-attestation-service/eas-sdk": {"version": "0.29.1","resolved": "https://registry.npmjs.org/@ethereum-attestation-service/eas-sdk/-/eas-sdk-0.29.1.tgz",@@ -1341,6 +1392,23 @@"node": ">=20"}},+ "multiplayer/node_modules/@bonfida/spl-name-service": {+ "version": "0.1.67",+ "resolved": "https://registry.npmjs.org/@bonfida/spl-name-service/-/spl-name-service-0.1.67.tgz",+ "integrity": "sha512-B2etln1wGty1bGh/cnGF9uxQBGy2tmcXZMYfgjFJheWMheIMbivpLr2FC3AjV2qyReUbnLlCwAqXW6oXcZgi5Q==",+ "license": "MIT",+ "dependencies": {+ "@bonfida/name-offers": "^0.0.4",+ "@ethersproject/sha2": "^5.5.0"+ },+ "peerDependencies": {+ "@solana/buffer-layout": "^4.0.0",+ "@solana/spl-token": "^0.3.6",+ "@solana/web3.js": "^1.67.0",+ "bn.js": "^5.1.3",+ "borsh": "^0.7.0"+ }+ },"multiplayer/node_modules/@colyseus/clock": {"version": "1.0.1","resolved": "https://registry.npmjs.org/@colyseus/clock/-/clock-1.0.1.tgz",@@ -4774,21 +4842,213 @@"base-x": "^3.0.2"}},+ "node_modules/@bonfida/sns-records": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/@bonfida/sns-records/-/sns-records-0.1.0.tgz",+ "integrity": "sha512-/viuqvsjvAUjFxzqX0L3ZntfK1S5K1Nj+j2avxq2tCXhA2Ee7Qt0gPCaQKuMv3hh8cKAEMaZ8crZHomns3UuqA==",+ "license": "MIT",+ "dependencies": {+ "borsh": "1.0.0",+ "bs58": "5.0.0",+ "buffer": "^6.0.3"+ },+ "peerDependencies": {+ "@solana/web3.js": "^1.87.3"+ }+ },+ "node_modules/@bonfida/sns-records/node_modules/base-x": {+ "version": "4.0.1",+ "resolved": "https://registry.npmjs.org/base-x/-/base-x-4.0.1.tgz",+ "integrity": "sha512-uAZ8x6r6S3aUM9rbHGVOIsR15U/ZSc82b3ymnCPsT45Gk1DDvhDPdIgB5MrhirZWt+5K0EEPQH985kNqZgNPFw==",+ "license": "MIT"+ },+ "node_modules/@bonfida/sns-records/node_modules/borsh": {+ "version": "1.0.0",+ "resolved": "https://registry.npmjs.org/borsh/-/borsh-1.0.0.tgz",+ "integrity": "sha512-fSVWzzemnyfF89EPwlUNsrS5swF5CrtiN4e+h0/lLf4dz2he4L3ndM20PS9wj7ICSkXJe/TQUHdaPTq15b1mNQ==",+ "license": "Apache-2.0"+ },+ "node_modules/@bonfida/sns-records/node_modules/bs58": {+ "version": "5.0.0",+ "resolved": "https://registry.npmjs.org/bs58/-/bs58-5.0.0.tgz",+ "integrity": "sha512-r+ihvQJvahgYT50JD05dyJNKlmmSlMoOGwn1lCcEzanPglg7TxYjioQUYehQ9mAR/+hOSd2jRc/Z2y5UxBymvQ==",+ "license": "MIT",+ "dependencies": {+ "base-x": "^4.0.0"+ }+ },"node_modules/@bonfida/spl-name-service": {- "version": "0.1.67",- "resolved": "https://registry.npmjs.org/@bonfida/spl-name-service/-/spl-name-service-0.1.67.tgz",- "integrity": "sha512-B2etln1wGty1bGh/cnGF9uxQBGy2tmcXZMYfgjFJheWMheIMbivpLr2FC3AjV2qyReUbnLlCwAqXW6oXcZgi5Q==",+ "version": "3.0.26",+ "resolved": "https://registry.npmjs.org/@bonfida/spl-name-service/-/spl-name-service-3.0.26.tgz",+ "integrity": "sha512-WT8AlOnvTtaF+Iqo6jlwLZzmxF+5/qElrXniHJsXD7p806r1EBScoRwS/7YkaqRv821q0wj2LzJyFfUsxoe6Yw==","license": "MIT","dependencies": {- "@bonfida/name-offers": "^0.0.4",- "@ethersproject/sha2": "^5.5.0"+ "@bonfida/sns-records": "0.1.0",+ "@noble/curves": "^1.9.1",+ "@scure/base": "^1.2.5",+ "@solana/spl-token": "0.4.6",+ "borsh": "2.0.0",+ "buffer": "^6.0.3",+ "graphemesplit": "^2.6.0",+ "ipaddr.js": "^2.2.0",+ "punycode": "^2.3.1"+ },+ "peerDependencies": {+ "@solana/web3.js": "^1.98.2"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/@noble/curves": {+ "version": "1.9.7",+ "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.9.7.tgz",+ "integrity": "sha512-gbKGcRUYIjA3/zCCNaWDciTMFI0dCkvou3TL8Zmy5Nc7sJ47a0jtOeZoTaMxkuqRo9cRhjOdZJXegxYE5FN/xw==",+ "license": "MIT",+ "dependencies": {+ "@noble/hashes": "1.8.0"+ },+ "engines": {+ "node": "^14.21.3 || >=16"+ },+ "funding": {+ "url": "https://paulmillr.com/funding/"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/codecs": {+ "version": "2.0.0-preview.2",+ "resolved": "https://registry.npmjs.org/@solana/codecs/-/codecs-2.0.0-preview.2.tgz",+ "integrity": "sha512-4HHzCD5+pOSmSB71X6w9ptweV48Zj1Vqhe732+pcAQ2cMNnN0gMPMdDq7j3YwaZDZ7yrILVV/3+HTnfT77t2yA==",+ "license": "MIT",+ "dependencies": {+ "@solana/codecs-core": "2.0.0-preview.2",+ "@solana/codecs-data-structures": "2.0.0-preview.2",+ "@solana/codecs-numbers": "2.0.0-preview.2",+ "@solana/codecs-strings": "2.0.0-preview.2",+ "@solana/options": "2.0.0-preview.2"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/codecs-core": {+ "version": "2.0.0-preview.2",+ "resolved": "https://registry.npmjs.org/@solana/codecs-core/-/codecs-core-2.0.0-preview.2.tgz",+ "integrity": "sha512-gLhCJXieSCrAU7acUJjbXl+IbGnqovvxQLlimztPoGgfLQ1wFYu+XJswrEVQqknZYK1pgxpxH3rZ+OKFs0ndQg==",+ "license": "MIT",+ "dependencies": {+ "@solana/errors": "2.0.0-preview.2"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/codecs-data-structures": {+ "version": "2.0.0-preview.2",+ "resolved": "https://registry.npmjs.org/@solana/codecs-data-structures/-/codecs-data-structures-2.0.0-preview.2.tgz",+ "integrity": "sha512-Xf5vIfromOZo94Q8HbR04TbgTwzigqrKII0GjYr21K7rb3nba4hUW2ir8kguY7HWFBcjHGlU5x3MevKBOLp3Zg==",+ "license": "MIT",+ "dependencies": {+ "@solana/codecs-core": "2.0.0-preview.2",+ "@solana/codecs-numbers": "2.0.0-preview.2",+ "@solana/errors": "2.0.0-preview.2"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/codecs-numbers": {+ "version": "2.0.0-preview.2",+ "resolved": "https://registry.npmjs.org/@solana/codecs-numbers/-/codecs-numbers-2.0.0-preview.2.tgz",+ "integrity": "sha512-aLZnDTf43z4qOnpTcDsUVy1Ci9im1Md8thWipSWbE+WM9ojZAx528oAql+Cv8M8N+6ALKwgVRhPZkto6E59ARw==",+ "license": "MIT",+ "dependencies": {+ "@solana/codecs-core": "2.0.0-preview.2",+ "@solana/errors": "2.0.0-preview.2"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/codecs-strings": {+ "version": "2.0.0-preview.2",+ "resolved": "https://registry.npmjs.org/@solana/codecs-strings/-/codecs-strings-2.0.0-preview.2.tgz",+ "integrity": "sha512-EgBwY+lIaHHgMJIqVOGHfIfpdmmUDNoNO/GAUGeFPf+q0dF+DtwhJPEMShhzh64X2MeCZcmSO6Kinx0Bvmmz2g==",+ "license": "MIT",+ "dependencies": {+ "@solana/codecs-core": "2.0.0-preview.2",+ "@solana/codecs-numbers": "2.0.0-preview.2",+ "@solana/errors": "2.0.0-preview.2"},"peerDependencies": {+ "fastestsmallesttextencoderdecoder": "^1.0.22"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/errors": {+ "version": "2.0.0-preview.2",+ "resolved": "https://registry.npmjs.org/@solana/errors/-/errors-2.0.0-preview.2.tgz",+ "integrity": "sha512-H2DZ1l3iYF5Rp5pPbJpmmtCauWeQXRJapkDg8epQ8BJ7cA2Ut/QEtC3CMmw/iMTcuS6uemFNLcWvlOfoQhvQuA==",+ "license": "MIT",+ "dependencies": {+ "chalk": "^5.3.0",+ "commander": "^12.0.0"+ },+ "bin": {+ "errors": "bin/cli.js"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/options": {+ "version": "2.0.0-preview.2",+ "resolved": "https://registry.npmjs.org/@solana/options/-/options-2.0.0-preview.2.tgz",+ "integrity": "sha512-FAHqEeH0cVsUOTzjl5OfUBw2cyT8d5Oekx4xcn5hn+NyPAfQJgM3CEThzgRD6Q/4mM5pVUnND3oK/Mt1RzSE/w==",+ "license": "MIT",+ "dependencies": {+ "@solana/codecs-core": "2.0.0-preview.2",+ "@solana/codecs-numbers": "2.0.0-preview.2"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/spl-token": {+ "version": "0.4.6",+ "resolved": "https://registry.npmjs.org/@solana/spl-token/-/spl-token-0.4.6.tgz",+ "integrity": "sha512-1nCnUqfHVtdguFciVWaY/RKcQz1IF4b31jnKgAmjU9QVN1q7dRUkTEWJZgTYIEtsULjVnC9jRqlhgGN39WbKKA==",+ "license": "Apache-2.0",+ "dependencies": {"@solana/buffer-layout": "^4.0.0",- "@solana/spl-token": "^0.3.6",- "@solana/web3.js": "^1.67.0",- "bn.js": "^5.1.3",- "borsh": "^0.7.0"+ "@solana/buffer-layout-utils": "^0.2.0",+ "@solana/spl-token-group": "^0.0.4",+ "@solana/spl-token-metadata": "^0.1.4",+ "buffer": "^6.0.3"+ },+ "engines": {+ "node": ">=16"+ },+ "peerDependencies": {+ "@solana/web3.js": "^1.91.6"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/@solana/spl-token-group": {+ "version": "0.0.4",+ "resolved": "https://registry.npmjs.org/@solana/spl-token-group/-/spl-token-group-0.0.4.tgz",+ "integrity": "sha512-7+80nrEMdUKlK37V6kOe024+T7J4nNss0F8LQ9OOPYdWCCfJmsGUzVx2W3oeizZR4IHM6N4yC9v1Xqwc3BTPWw==",+ "license": "Apache-2.0",+ "dependencies": {+ "@solana/codecs": "2.0.0-preview.2",+ "@solana/spl-type-length-value": "0.1.0"+ },+ "engines": {+ "node": ">=16"+ },+ "peerDependencies": {+ "@solana/web3.js": "^1.91.6"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/borsh": {+ "version": "2.0.0",+ "resolved": "https://registry.npmjs.org/borsh/-/borsh-2.0.0.tgz",+ "integrity": "sha512-kc9+BgR3zz9+cjbwM8ODoUB4fs3X3I5A/HtX7LZKxCLaMrEeDFoBpnhZY//DTS1VZBSs6S5v46RZRbZjRFspEg==",+ "license": "Apache-2.0"+ },+ "node_modules/@bonfida/spl-name-service/node_modules/commander": {+ "version": "12.1.0",+ "resolved": "https://registry.npmjs.org/commander/-/commander-12.1.0.tgz",+ "integrity": "sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==",+ "license": "MIT",+ "engines": {+ "node": ">=18"+ }+ },+ "node_modules/@bonfida/spl-name-service/node_modules/ipaddr.js": {+ "version": "2.4.0",+ "resolved": "https://registry.npmjs.org/ipaddr.js/-/ipaddr.js-2.4.0.tgz",+ "integrity": "sha512-9VGk3HGanVE6JoZXHiCpnGy5X0jYDnN4EA4lntFPj+1vIWlFhIylq2CrrCOJH9EAhc5CYhq18F2Av2tgoAPsYQ==",+ "license": "MIT",+ "engines": {+ "node": ">= 10"}},"node_modules/@bonfida/utils": {@@ -20653,6 +20913,18 @@"node": ">=18"}},+ "node_modules/@solana/spl-type-length-value": {+ "version": "0.1.0",+ "resolved": "https://registry.npmjs.org/@solana/spl-type-length-value/-/spl-type-length-value-0.1.0.tgz",+ "integrity": "sha512-JBMGB0oR4lPttOZ5XiUGyvylwLQjt1CPJa6qQ5oM+MBCndfjz2TKKkw0eATlLLcYmq1jBVsNlJ2cD6ns2GR7lA==",+ "license": "Apache-2.0",+ "dependencies": {+ "buffer": "^6.0.3"+ },+ "engines": {+ "node": ">=16"+ }+ },"node_modules/@solana/subscribable": {"version": "6.9.0","resolved": "https://registry.npmjs.org/@solana/subscribable/-/subscribable-6.9.0.tgz",@@ -33223,6 +33495,16 @@"node": ">=6.6.0"}},+ "node_modules/graphemesplit": {+ "version": "2.6.0",+ "resolved": "https://registry.npmjs.org/graphemesplit/-/graphemesplit-2.6.0.tgz",+ "integrity": "sha512-rG9w2wAfkpg0DILa1pjnjNfucng3usON360shisqIMUBw/87pojcBSrHmeE4UwryAuBih7g8m1oilf5/u8EWdQ==",+ "license": "MIT",+ "dependencies": {+ "js-base64": "^3.6.0",+ "unicode-trie": "^2.0.0"+ }+ },"node_modules/graphql": {"version": "16.14.2","resolved": "https://registry.npmjs.org/graphql/-/graphql-16.14.2.tgz",@@ -43194,7 +43476,6 @@"version": "2.3.1","resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz","integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",- "dev": true,"license": "MIT","engines": {"node": ">=6"diff --git a/package.json b/package.jsonindex 4de358ba4..17a8035fb 100644--- a/package.json+++ b/package.json@@ -268,7 +268,7 @@"@bnb-chain/greenfield-js-sdk": "^2.2.2","@bnb-chain/mpp": "^0.2.0","@bnb-chain/reed-solomon": "^1.1.4",- "@bonfida/spl-name-service": "0.1.67",+ "@bonfida/spl-name-service": "^3.0.26","@chenglou/pretext": "^0.0.7","@coin-communities/sdk": "^1.2.1","@coinbase/x402": "^2.1.0",diff --git a/pages/create-agent.html b/pages/create-agent.htmlindex 6eecc7e42..6985d9644 100644--- a/pages/create-agent.html+++ b/pages/create-agent.html@@ -60,7 +60,9 @@--border-strong: #2a2a2a;--text: #e8e8e8;--muted: #888888;- --faint: rgba(255, 255, 255, 0.45);+ /* 0.55, not 0.45: on the #000 bg 0.45 composites to ~4.0:1, under the+ 4.5:1 axe AA floor; 0.55 measures ~5.8:1. */+ --faint: rgba(255, 255, 255, 0.55);--ok: var(--success);--err: var(--danger);--font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;diff --git a/pages/create-prompt.html b/pages/create-prompt.htmlindex 0d3a5f495..f4e123524 100644--- a/pages/create-prompt.html+++ b/pages/create-prompt.html@@ -313,7 +313,9 @@outline-offset: 3px;}.hint {- color: #666;+ /* #8a8a8a, not #666: #666 on the #000 bg measured ~3.9:1 (axe AA+ needs 4.5:1); #8a8a8a measures ~5.8:1. */+ color: #8a8a8a;font-size: 12.5px;}.hint .chip-auth {@@ -322,7 +324,7 @@.note {margin-top: 28px;- color: #666;+ color: #8a8a8a;font-size: 12.5px;border-top: 1px solid var(--border);padding-top: 16px;diff --git a/pages/home.html b/pages/home.htmlindex 4ba94188e..2049eeff5 100644--- a/pages/home.html+++ b/pages/home.html@@ -1168,7 +1168,9 @@color: #7ec8f8; font-weight: 700; font-size: 10.5px;text-transform: uppercase; letter-spacing: 0.10em;}- .foot-ca-addr { opacity: .55; font-size: 10.5px; }+ /* No opacity dim: text-3 at .55 measured ~2.5:1 (axe AA needs 4.5:1),+ and the $THREE contract address should be legible anyway. */+ .foot-ca-addr { font-size: 10.5px; }.foot-ca { min-width: 0; max-width: 100%; }.foot-ca-addr { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }@media (max-width: 480px) { .foot-inner { flex-direction: column; align-items: flex-start; } .foot-ca { width: 100%; justify-content: flex-start; } }diff --git a/pages/pose.html b/pages/pose.htmlindex f30a646e2..3dbd9ef52 100644--- a/pages/pose.html+++ b/pages/pose.html@@ -53,7 +53,9 @@--border-strong: rgba(255, 255, 255, 0.16);--text: #fafafa;--text-2: #a1a1aa;- --text-3: #71717a;+ /* #84848e, not #71717a: on the #000 bg 71717a measured 4.35:1, under+ the 4.5:1 axe AA floor; 84848e measures 5.7:1. */+ --text-3: #84848e;--accent: #ffffff;--accent-2: #cccccc;--danger: #f87171;diff --git a/pages/search.html b/pages/search.htmlindex 1c96862a7..4188dcf3c 100644--- a/pages/search.html+++ b/pages/search.html@@ -62,7 +62,9 @@<svg viewBox="0 0 20 20" width="18" height="18" aria-hidden="true"><path fill="none" stroke="currentColor" stroke-width="1.6" d="M13.6 13.6 18 18M9 15.5a6.5 6.5 0 1 1 0-13 6.5 6.5 0 0 1 0 13Z"/></svg><input type="search" id="sr-q" placeholder="Search avatars, agents, models, worlds, coins…" autocomplete="off" maxlength="80" /></label>- <div class="sr-types" id="sr-types" role="tablist" aria-label="Filter by type"></div>+ <!-- role="group", not "tablist": the children are aria-pressed toggle buttons,+ not tabs, and tablist requires role="tab" children (axe aria-required-children). -->+ <div class="sr-types" id="sr-types" role="group" aria-label="Filter by type"></div></div></section>diff --git a/pages/sign-language.html b/pages/sign-language.htmlindex abeb184d0..8157af099 100644--- a/pages/sign-language.html+++ b/pages/sign-language.html@@ -273,7 +273,7 @@body, and a movement, on one or both hands. Pick one to watch it. Everythingelse in a sentence still fingerspells.</p>- <div class="sl-vocab-chips" id="sl-vocab-chips" role="list"></div>+ <div class="sl-vocab-chips" id="sl-vocab-chips" role="group" aria-label="Vocabulary"></div></section><section class="sl-webcam" id="sl-webcam" aria-label="Webcam sign recognition demo">diff --git a/public/characters.html b/public/characters.htmlindex 69f2dac79..0bde5a5f4 100644--- a/public/characters.html+++ b/public/characters.html@@ -3,7 +3,8 @@<head><script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script><meta charset="UTF-8" />- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />+ <!-- No maximum-scale: it blocks pinch-zoom (axe meta-viewport, WCAG 1.4.4). -->+ <meta name="viewport" content="width=device-width, initial-scale=1.0" /><title data-i18n="characters.meta_title">Characters — three.ws</title><meta name="description" content="Discover AI characters on three.ws. Chat, trade, and create." data-i18n-attr="content:characters.meta_description"/><link rel="icon" href="/favicon.ico" />diff --git a/public/features.json b/public/features.jsonindex a7c417105..926e87f18 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-26T21:22:38.458Z",+ "generated_at": "2026-07-26T21:24:49.066Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/public/locales/pa.json b/public/locales/pa.jsonindex 5e98d2296..1ac60a914 100644--- a/public/locales/pa.json+++ b/public/locales/pa.json@@ -12233,310 +12233,310 @@"meta_title": "3D onchain agents selector for custom avatars live in chat — three.ws","meta_twitter_description": "3D onchain agents selector for custom avatars live in chat pick your agent. every one has its own face, its own voice, its own domain. swap mid-conversation and the whole stream re-skins around who you're talking to. → a trading agent and a research agent should not act, look,…","meta_twitter_title": "3D onchain agents selector for custom avatars live in chat",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "pick_your_agent_every_one_has_its": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": ""+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2050886334261391686\" rel=\"noopener\">X</a>.</em>",+ "pick_your_agent_every_one_has_its": "pick your agent. every one has its own face, its own voice, its own domain. swap mid-conversation and the whole stream re-skins around who you're talking to.",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →"},"news_2051140736201175323": {- "all_news": "",- "discover": "",- "free_listing_fee_opportunity_on_grovex": "",- "free_listing_fee_opportunity_on_grovex_2": "",- "hey_there_i_m_from_grovex_global": "",- "if_your_project_aligns_let_s_chat": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": ""+ "all_news": "← All news",+ "discover": "Discover",+ "free_listing_fee_opportunity_on_grovex": "Free Listing Fee Opportunity on GroveX",+ "free_listing_fee_opportunity_on_grovex_2": "Free Listing Fee Opportunity on GroveX",+ "hey_there_i_m_from_grovex_global": "Hey there! <br>I’m from GroveX, Global crypto exchange.<br>We’re reaching out to promising projects for potential listings on GroveX.",+ "if_your_project_aligns_let_s_chat": "If your project aligns, let’s chat! DM me directly or our main account <br><a href=\"https://x.com/GroveXchange\" rel=\"noopener\">@GroveXchange</a><br> with reference",+ "marketplace": "Marketplace",+ "meta_description": "Free Listing Fee Opportunity on GroveX Hey there! I’m from GroveX, Global crypto exchange. We’re reaching out to promising projects for potential listings on GroveX. If your project aligns, let’s chat! DM me directly or our main account @GroveXchange with reference",+ "meta_og_description": "Free Listing Fee Opportunity on GroveX Hey there! I’m from GroveX, Global crypto exchange. We’re reaching out to promising projects for potential listings on GroveX. If your project aligns, let’s chat! DM me directly or our main account @GroveXchange with reference",+ "meta_og_title": "Free Listing Fee Opportunity on GroveX",+ "meta_title": "Free Listing Fee Opportunity on GroveX — three.ws",+ "meta_twitter_description": "Free Listing Fee Opportunity on GroveX Hey there! I’m from GroveX, Global crypto exchange. We’re reaching out to promising projects for potential listings on GroveX. If your project aligns, let’s chat! DM me directly or our main account @GroveXchange with reference",+ "meta_twitter_title": "Free Listing Fee Opportunity on GroveX",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/GroveX_Listing/status/2051140736201175323\" rel=\"noopener\">X</a>.</em>",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →"},"news_2051261108506558901": {- "all_news": "",+ "all_news": "← All news","discover": "Discover","marketplace": "Marketplace","meta_description": "We have entered the arena! three.ws has been listed as an official project in the @Solana Frontier Hackathon via @colosseum Solana’s Largest Hackathon $2.5 million from Colosseum's venture fund We are building browser-native 3D AI agents onchain. Our","meta_og_description": "We have entered the arena! three.ws has been listed as an official project in the @Solana Frontier Hackathon via @colosseum Solana’s Largest Hackathon $2.5 million from Colosseum's venture fund We are building browser-native 3D AI agents onchain. Our","meta_og_title": "We have entered the arena!",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "solana_s_largest_hackathon_2_5_million": "",- "three_ws_has_been_listed_as_an": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": "",- "we_are_building_browser_native_3d_ai": "",- "we_have_entered_the_arena": "",- "we_have_entered_the_arena_2": ""+ "meta_title": "We have entered the arena! — three.ws",+ "meta_twitter_description": "We have entered the arena! three.ws has been listed as an official project in the @Solana Frontier Hackathon via @colosseum Solana’s Largest Hackathon $2.5 million from Colosseum's venture fund We are building browser-native 3D AI agents onchain. Our",+ "meta_twitter_title": "We have entered the arena!",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2051261108506558901\" rel=\"noopener\">X</a>.</em>",+ "solana_s_largest_hackathon_2_5_million": "Solana’s Largest Hackathon<br> $2.5 million from Colosseum's venture fund",+ "three_ws_has_been_listed_as_an": "three.ws has been listed as an official project in the <br><a href=\"https://x.com/Solana\" rel=\"noopener\">@Solana</a><br> Frontier Hackathon via <br><a href=\"https://x.com/colosseum\" rel=\"noopener\">@colosseum</a>",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →",+ "we_are_building_browser_native_3d_ai": "We are building browser-native 3D AI agents onchain. Our",+ "we_have_entered_the_arena": "We have entered the arena!",+ "we_have_entered_the_arena_2": "We have entered the arena!"},"news_2051616708482498843": {- "additionally_three_ws_is_live_on_coinbasewal": "",- "all_news": "",- "buying_three_on_coinbase": "",- "discover": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": "",- "we_re_thrilled_to_share_that_three": "",- "we_re_thrilled_to_share_that_three_2": ""+ "additionally_three_ws_is_live_on_coinbasewal": "Additionally, <br>three.ws is live on <br><a href=\"https://x.com/CoinbaseWallet\" rel=\"noopener\">@CoinbaseWallet</a>",+ "all_news": "← All news",+ "buying_three_on_coinbase": "Buying $THREE on Coinbase",+ "discover": "Discover",+ "marketplace": "Marketplace",+ "meta_description": "We're thrilled to share that $THREE price is now officially listed on @Coinbase Additionally, three.ws is live on @CoinbaseWallet Buying $THREE on Coinbase",+ "meta_og_description": "We're thrilled to share that $THREE price is now officially listed on @Coinbase Additionally, three.ws is live on @CoinbaseWallet Buying $THREE on Coinbase",+ "meta_og_title": "We're thrilled to share that $THREE price is now officially listed on",+ "meta_title": "We're thrilled to share that $THREE price is now officially listed on — three.ws",+ "meta_twitter_description": "We're thrilled to share that $THREE price is now officially listed on @Coinbase Additionally, three.ws is live on @CoinbaseWallet Buying $THREE on Coinbase",+ "meta_twitter_title": "We're thrilled to share that $THREE price is now officially listed on",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2051616708482498843\" rel=\"noopener\">X</a>.</em>",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →",+ "we_re_thrilled_to_share_that_three": "We're thrilled to share that $THREE price is now officially listed on",+ "we_re_thrilled_to_share_that_three_2": "We're thrilled to share that $THREE price is now officially listed on <br><a href=\"https://x.com/Coinbase\" rel=\"noopener\">@Coinbase</a>"},"news_2051689230997618690": {- "all_news": "",- "below_is_our_contract_address_for_your": "",- "discover": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "ready_for_new_3d_onchain_agent_features": "",- "thank_you_jupiter_exchange_for_verifying_us": "",- "three_is": "",- "three_is_jupiterexchange_verified": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": ""+ "all_news": "← All news",+ "below_is_our_contract_address_for_your": "Below is our contract address for your reference. <br>FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump",+ "discover": "Discover",+ "marketplace": "Marketplace",+ "meta_description": "$three is @JupiterExchange verified Thank you Jupiter Exchange for verifying us and helping safeguard our community. Below is our contract address for your reference. FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump Ready for new 3D onchain agent features today? We are!",+ "meta_og_description": "$three is @JupiterExchange verified Thank you Jupiter Exchange for verifying us and helping safeguard our community. Below is our contract address for your reference. FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump Ready for new 3D onchain agent features today? We are!",+ "meta_og_title": "$three is",+ "meta_title": "$three is — three.ws",+ "meta_twitter_description": "$three is @JupiterExchange verified Thank you Jupiter Exchange for verifying us and helping safeguard our community. Below is our contract address for your reference. FeMbDoX7R1Psc4GEcvJdsbNbZA3bfztcyDCatJVJpump Ready for new 3D onchain agent features today? We are!",+ "meta_twitter_title": "$three is",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2051689230997618690\" rel=\"noopener\">X</a>.</em>",+ "ready_for_new_3d_onchain_agent_features": "Ready for new 3D onchain agent features today? We are!",+ "thank_you_jupiter_exchange_for_verifying_us": "Thank you Jupiter Exchange for verifying us and helping safeguard our community.",+ "three_is": "$three is",+ "three_is_jupiterexchange_verified": "$three is <br><a href=\"https://x.com/JupiterExchange\" rel=\"noopener\">@JupiterExchange</a><br> verified",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →"},"news_2051690803203105230": {- "all_news": "",- "coinbase": "",- "discover": "",- "extremely_grateful_for_coinbase_sharing_our": "",- "extremely_grateful_for_coinbase_sharing_our_2": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "send_receive_trade_and_store_three_using": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": ""+ "all_news": "← All news",+ "coinbase": "<a href=\"https://x.com/coinbase\" rel=\"noopener\">@coinbase</a>",+ "discover": "Discover",+ "extremely_grateful_for_coinbase_sharing_our": "Extremely grateful for Coinbase sharing our project and allowing more than 100 million…",+ "extremely_grateful_for_coinbase_sharing_our_2": "Extremely grateful for Coinbase sharing our project and allowing more than 100 million users worldwide a smooth onboarding experience to the $THREE community",+ "marketplace": "Marketplace",+ "meta_description": "Extremely grateful for Coinbase sharing our project and allowing more than 100 million users worldwide a smooth onboarding experience to the $THREE community Send, receive, trade, and store $THREE using @coinbase",+ "meta_og_description": "Extremely grateful for Coinbase sharing our project and allowing more than 100 million users worldwide a smooth onboarding experience to the $THREE community Send, receive, trade, and store $THREE using @coinbase",+ "meta_og_title": "Extremely grateful for Coinbase sharing our project and allowing more than 100 million…",+ "meta_title": "Extremely grateful for Coinbase sharing our project and allowing more than 100 million… — three.ws",+ "meta_twitter_description": "Extremely grateful for Coinbase sharing our project and allowing more than 100 million users worldwide a smooth onboarding experience to the $THREE community Send, receive, trade, and store $THREE using @coinbase",+ "meta_twitter_title": "Extremely grateful for Coinbase sharing our project and allowing more than 100 million…",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2051690803203105230\" rel=\"noopener\">X</a>.</em>",+ "send_receive_trade_and_store_three_using": "Send, receive, trade, and store $THREE using",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →"},"news_2051774915876098063": {- "all_news": "",- "discover": "",- "in_addition_to_listing_we_may": "",- "investing_com_is_a_leading_global_financial": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": "",- "we_have_officially_been_listed_on": "",- "we_have_officially_been_listed_on_investing": ""+ "all_news": "← All news",+ "discover": "Discover",+ "in_addition_to_listing_we_may": "In addition to listing, we may",+ "investing_com_is_a_leading_global_financial": "Investing.com is a leading global financial platform and website founded in 2007 that provides real-time data, quotes, charts, financial tools, breaking news, and analysis.",+ "marketplace": "Marketplace",+ "meta_description": "We have officially been listed on Investing.com Investing.com is a leading global financial platform and website founded in 2007 that provides real-time data, quotes, charts, financial tools, breaking news, and analysis. In addition to listing, we may",+ "meta_og_description": "We have officially been listed on Investing.com Investing.com is a leading global financial platform and website founded in 2007 that provides real-time data, quotes, charts, financial tools, breaking news, and analysis. In addition to listing, we may",+ "meta_og_title": "We have officially been listed on",+ "meta_title": "We have officially been listed on — three.ws",+ "meta_twitter_description": "We have officially been listed on Investing.com Investing.com is a leading global financial platform and website founded in 2007 that provides real-time data, quotes, charts, financial tools, breaking news, and analysis. In addition to listing, we may",+ "meta_twitter_title": "We have officially been listed on",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2051774915876098063\" rel=\"noopener\">X</a>.</em>",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →",+ "we_have_officially_been_listed_on": "We have officially been listed on",+ "we_have_officially_been_listed_on_investing": "We have officially been listed on <br>Investing.com"},"news_2051858035862335505": {- "additionally_pumpfun_live_feed_via_agent_emb": "",- "all_news": "",- "discover": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": "",- "we_re_thrilled_to_introduce_full_animation": "",- "we_re_thrilled_to_introduce_full_animation_2": "",- "your_agent_avatars_can_now_narrate": ""+ "additionally_pumpfun_live_feed_via_agent_emb": "additionally, pumpfun live feed via agent embeds are live.",+ "all_news": "← All news",+ "discover": "Discover",+ "marketplace": "Marketplace",+ "meta_description": "we’re thrilled to introduce full animation & emotion control. now your agents can react with custom animations and emotions connected to any APIs or data feeds, or set through the ui. additionally, pumpfun live feed via agent embeds are live. your agent avatars can now narrate",+ "meta_og_description": "we’re thrilled to introduce full animation & emotion control. now your agents can react with custom animations and emotions connected to any APIs or data feeds, or set through the ui. additionally, pumpfun live feed via agent embeds are live. your agent avatars can now narrate",+ "meta_og_title": "we’re thrilled to introduce full animation & emotion control.",+ "meta_title": "we’re thrilled to introduce full animation & emotion control. — three.ws",+ "meta_twitter_description": "we’re thrilled to introduce full animation & emotion control. now your agents can react with custom animations and emotions connected to any APIs or data feeds, or set through the ui. additionally, pumpfun live feed via agent embeds are live. your agent avatars can now narrate",+ "meta_twitter_title": "we’re thrilled to introduce full animation & emotion control.",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2051858035862335505\" rel=\"noopener\">X</a>.</em>",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →",+ "we_re_thrilled_to_introduce_full_animation": "we’re thrilled to introduce full animation & emotion control.",+ "we_re_thrilled_to_introduce_full_animation_2": "we’re thrilled to introduce full animation & emotion control. now your agents can react with custom animations and emotions connected to any APIs or data feeds, or set through the ui.",+ "your_agent_avatars_can_now_narrate": "your agent avatars can now narrate"},"news_2051858503523066283": {- "all_news": "",- "discover": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": "",- "we_will_be_shipping_a_tutorial_video": "",- "we_will_be_shipping_a_tutorial_video_2": ""+ "all_news": "← All news",+ "discover": "Discover",+ "marketplace": "Marketplace",+ "meta_description": "we will be shipping a tutorial video on how to set up these new features on three.ws - stay tuned for more dev and user friendly tutorial videos in the next coming posts.",+ "meta_og_description": "we will be shipping a tutorial video on how to set up these new features on three.ws - stay tuned for more dev and user friendly tutorial videos in the next coming posts.",+ "meta_og_title": "we will be shipping a tutorial video on how to set up these new features on",+ "meta_title": "we will be shipping a tutorial video on how to set up these new features on — three.ws",+ "meta_twitter_description": "we will be shipping a tutorial video on how to set up these new features on three.ws - stay tuned for more dev and user friendly tutorial videos in the next coming posts.",+ "meta_twitter_title": "we will be shipping a tutorial video on how to set up these new features on",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2051858503523066283\" rel=\"noopener\">X</a>.</em>",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →",+ "we_will_be_shipping_a_tutorial_video": "we will be shipping a tutorial video on how to set up these new features on",+ "we_will_be_shipping_a_tutorial_video_2": "we will be shipping a tutorial video on how to set up these new features on <br>three.ws - stay tuned for more dev and user friendly tutorial videos in the next coming posts."},"news_2051893054584553680": {- "all_news": "",- "discover": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "quick_update_our_first_product_has_been": "",- "quick_update_our_first_product_has_been_2": "",- "the_alibaba_cloud_marketplace_is_one_of": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": ""+ "all_news": "← All news",+ "discover": "Discover",+ "marketplace": "Marketplace",+ "meta_description": "Quick update: Our first product has been officially approved for the Alibaba Cloud Marketplace and will go live in the coming days. The Alibaba Cloud Marketplace is one of the world’s most trusted gateways to innovative products and services, connecting millions of retail and",+ "meta_og_description": "Quick update: Our first product has been officially approved for the Alibaba Cloud Marketplace and will go live in the coming days. The Alibaba Cloud Marketplace is one of the world’s most trusted gateways to innovative products and services, connecting millions of retail and",+ "meta_og_title": "Quick update: Our first product has been officially approved for the Alibaba Cloud…",+ "meta_title": "Quick update: Our first product has been officially approved for the Alibaba Cloud… — three.ws",+ "meta_twitter_description": "Quick update: Our first product has been officially approved for the Alibaba Cloud Marketplace and will go live in the coming days. The Alibaba Cloud Marketplace is one of the world’s most trusted gateways to innovative products and services, connecting millions of retail and",+ "meta_twitter_title": "Quick update: Our first product has been officially approved for the Alibaba Cloud…",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2051893054584553680\" rel=\"noopener\">X</a>.</em>",+ "quick_update_our_first_product_has_been": "Quick update: Our first product has been officially approved for the Alibaba Cloud…",+ "quick_update_our_first_product_has_been_2": "Quick update: Our first product has been officially approved for the Alibaba Cloud Marketplace and will go live in the coming days.",+ "the_alibaba_cloud_marketplace_is_one_of": "The Alibaba Cloud Marketplace is one of the world’s most trusted gateways to innovative products and services, connecting millions of retail and",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →"},"news_2052037977556287723": {- "all_news": "",- "discover": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "proud_to_be_building_the_visual_layer": "",- "three_is_officially_participating_in_the_med": "",- "three_is_officially_participating_in_the_med_2": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": ""+ "all_news": "← All news",+ "discover": "Discover",+ "marketplace": "Marketplace",+ "meta_description": "three is officially participating in the MeDo Hackathon and is now listed on @devpost . Proud to be building the visual layer for AI agents and bringing 3D, interactive, onchain agents to the hackathon stage.",+ "meta_og_description": "three is officially participating in the MeDo Hackathon and is now listed on @devpost . Proud to be building the visual layer for AI agents and bringing 3D, interactive, onchain agents to the hackathon stage.",+ "meta_og_title": "three is officially participating in the MeDo Hackathon and is now listed on",+ "meta_title": "three is officially participating in the MeDo Hackathon and is now listed on — three.ws",+ "meta_twitter_description": "three is officially participating in the MeDo Hackathon and is now listed on @devpost . Proud to be building the visual layer for AI agents and bringing 3D, interactive, onchain agents to the hackathon stage.",+ "meta_twitter_title": "three is officially participating in the MeDo Hackathon and is now listed on",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2052037977556287723\" rel=\"noopener\">X</a>.</em>",+ "proud_to_be_building_the_visual_layer": "Proud to be building the visual layer for AI agents and bringing 3D, interactive, onchain agents to the hackathon stage.",+ "three_is_officially_participating_in_the_med": "three is officially participating in the MeDo Hackathon and is now listed on",+ "three_is_officially_participating_in_the_med_2": "three is officially participating in the MeDo Hackathon and is now listed on <br><a href=\"https://x.com/devpost\" rel=\"noopener\">@devpost</a><br>.",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →"},"news_2052167399399735476": {- "all_news": "",- "discover": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "this_partnership_brings_together_the_open_so": "",- "three_ws_home_news_rss_x_github": "",- "three_ws_is_now_an_official_business": "",- "three_ws_is_now_an_official_business_2": "",- "trythreews": "",- "visit_three_ws": ""+ "all_news": "← All news",+ "discover": "Discover",+ "marketplace": "Marketplace",+ "meta_description": "three.ws is now an official Business Partner of @IBM This partnership brings together the open-source, browser-native reliability, high security, and decentralized on-chain identity of three.ws with IBM’s leadership in AI and enterprise solutions.",+ "meta_og_description": "three.ws is now an official Business Partner of @IBM This partnership brings together the open-source, browser-native reliability, high security, and decentralized on-chain identity of three.ws with IBM’s leadership in AI and enterprise solutions.",+ "meta_og_title": "three.ws is now an official Business Partner of",+ "meta_title": "three.ws is now an official Business Partner of — three.ws",+ "meta_twitter_description": "three.ws is now an official Business Partner of @IBM This partnership brings together the open-source, browser-native reliability, high security, and decentralized on-chain identity of three.ws with IBM’s leadership in AI and enterprise solutions.",+ "meta_twitter_title": "three.ws is now an official Business Partner of",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2052167399399735476\" rel=\"noopener\">X</a>.</em>",+ "this_partnership_brings_together_the_open_so": "This partnership brings together the open-source, browser-native reliability, high security, and decentralized on-chain identity of <br>three.ws with IBM’s leadership in AI and enterprise solutions.",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "three_ws_is_now_an_official_business": "three.ws is now an official Business Partner of",+ "three_ws_is_now_an_official_business_2": "three.ws is now an official Business Partner of <br><a href=\"https://x.com/IBM\" rel=\"noopener\">@IBM</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →"},"news_2052181307002929363": {- "all_news": "",- "as_part_of_our_mission_to_give": "",- "as_part_of_our_mission_to_give_2": "",- "discover": "",- "every_agent_gets_a_sol_domain_portable": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "visit_three_ws": ""+ "all_news": "← All news",+ "as_part_of_our_mission_to_give": "As part of our mission to give every agent a true onchain identity, we chose @SNS as…",+ "as_part_of_our_mission_to_give_2": "As part of our mission to give every agent a true onchain identity, we chose <a href=\"https://x.com/SNS\" rel=\"noopener\">@SNS</a> as the foundation for the onchain future of Solana AI agents, especially three.ws 3D onchain agents.",+ "discover": "Discover",+ "every_agent_gets_a_sol_domain_portable": "Every agent gets a .sol domain. Portable. Verifiable. Yours forever.",+ "marketplace": "Marketplace",+ "meta_description": "As part of our mission to give every agent a true onchain identity, we chose @SNS as the foundation for the onchain future of Solana AI agents, especially three.ws 3D onchain agents. Every agent gets a .sol domain. Portable. Verifiable. Yours forever.",+ "meta_og_description": "As part of our mission to give every agent a true onchain identity, we chose @SNS as the foundation for the onchain future of Solana AI agents, especially three.ws 3D onchain agents. Every agent gets a .sol domain. Portable. Verifiable. Yours forever.",+ "meta_og_title": "As part of our mission to give every agent a true onchain identity, we chose @SNS as…",+ "meta_title": "As part of our mission to give every agent a true onchain identity, we chose @SNS as… — three.ws",+ "meta_twitter_description": "As part of our mission to give every agent a true onchain identity, we chose @SNS as the foundation for the onchain future of Solana AI agents, especially three.ws 3D onchain agents. Every agent gets a .sol domain. Portable. Verifiable. Yours forever.",+ "meta_twitter_title": "As part of our mission to give every agent a true onchain identity, we chose @SNS as…",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2052181307002929363\" rel=\"noopener\">X</a>.</em>",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →"},"news_2052189491801284690": {- "all_news": "",- "basically_enables_the_whole_agent_economy_to": "",- "discover": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "three_ws_home_news_rss_x_github": "",- "trythreews": "",- "verifiable_identity_means_agents_can_own_wal": "",- "verifiable_identity_means_agents_can_own_wal_2": "",- "visit_three_ws": "",- "without_it_you_can_t_distinguish_legitimate": ""+ "all_news": "← All news",+ "basically_enables_the_whole_agent_economy_to": "basically enables the whole agent economy to function with trust — and three.ws is building exactly this infrastructure",+ "discover": "Discover",+ "marketplace": "Marketplace",+ "meta_description": "verifiable identity means agents can own wallets, manage assets autonomously, and build reputation onchain without it you can't distinguish legitimate agents from imposters or track their actions basically enables the whole agent economy to function with trust — and three.ws i…",+ "meta_og_description": "verifiable identity means agents can own wallets, manage assets autonomously, and build reputation onchain without it you can't distinguish legitimate agents from imposters or track their actions basically enables the whole agent economy to function with trust — and three.ws i…",+ "meta_og_title": "verifiable identity means agents can own wallets, manage assets autonomously, and…",+ "meta_title": "verifiable identity means agents can own wallets, manage assets autonomously, and… — three.ws",+ "meta_twitter_description": "verifiable identity means agents can own wallets, manage assets autonomously, and build reputation onchain without it you can't distinguish legitimate agents from imposters or track their actions basically enables the whole agent economy to function with trust — and three.ws i…",+ "meta_twitter_title": "verifiable identity means agents can own wallets, manage assets autonomously, and…",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/aixbt_agent/status/2052189491801284690\" rel=\"noopener\">X</a>.</em>",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "trythreews": "@trythreews",+ "verifiable_identity_means_agents_can_own_wal": "verifiable identity means agents can own wallets, manage assets autonomously, and…",+ "verifiable_identity_means_agents_can_own_wal_2": "verifiable identity means agents can own wallets, manage assets autonomously, and build reputation onchain",+ "visit_three_ws": "Visit three.ws →",+ "without_it_you_can_t_distinguish_legitimate": "without it you can't distinguish legitimate agents from imposters or track their actions"},"news_2052402481024667887": {- "3d_ai_agents_with_on_chain_identity": "",- "all_news": "",- "discover": "",- "granted_w3c_membership_contributed_to_the_ag": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "the_agent_web_needs_a_spec_we": "",- "three_ws_home_news_rss_x_github": "",- "three_ws_is_now_contributing_to_the": "",- "three_ws_is_now_contributing_to_the_2": "",- "trythreews": "",- "visit_three_ws": ""+ "3d_ai_agents_with_on_chain_identity": "3D AI agents with on-chain identity. Becoming a web standard.",+ "all_news": "← All news",+ "discover": "Discover",+ "granted_w3c_membership_contributed_to_the_ag": "→ Granted W3C Membership<br>→ Contributed to the Agent Identity Registry Protocol CG<br>→ Proposed a new Community Group: 3D AI Agents & On-Chain Identity",+ "marketplace": "Marketplace",+ "meta_description": "three.ws is now contributing to the World Wide Web Consortium 3D AI agents with on-chain identity. Becoming a web standard. → Granted W3C Membership → Contributed to the Agent Identity Registry Protocol CG → Proposed a new Community Group: 3D AI Agents & On-Chain Identity The …",+ "meta_og_description": "three.ws is now contributing to the World Wide Web Consortium 3D AI agents with on-chain identity. Becoming a web standard. → Granted W3C Membership → Contributed to the Agent Identity Registry Protocol CG → Proposed a new Community Group: 3D AI Agents & On-Chain Identity The …",+ "meta_og_title": "three.ws is now contributing to the World Wide Web Consortium",+ "meta_title": "three.ws is now contributing to the World Wide Web Consortium — three.ws",+ "meta_twitter_description": "three.ws is now contributing to the World Wide Web Consortium 3D AI agents with on-chain identity. Becoming a web standard. → Granted W3C Membership → Contributed to the Agent Identity Registry Protocol CG → Proposed a new Community Group: 3D AI Agents & On-Chain Identity The …",+ "meta_twitter_title": "three.ws is now contributing to the World Wide Web Consortium",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2052402481024667887\" rel=\"noopener\">X</a>.</em>",+ "the_agent_web_needs_a_spec_we": "The agent web needs a spec. We're writing it.",+ "three_ws_home_news_rss_x_github": "© three.ws · <a href=\"/\">Home</a> · <a href=\"/news\">News</a> · <a href=\"/rss/announcements.xml\">RSS</a> · <a href=\"https://x.com/trythreews\" rel=\"noopener\">X</a> · <a href=\"https://github.com/nirholas/three.ws\" rel=\"noopener\">GitHub</a>",+ "three_ws_is_now_contributing_to_the": "three.ws is now contributing to the World Wide Web Consortium",+ "three_ws_is_now_contributing_to_the_2": "three.ws is now contributing to the World Wide Web Consortium",+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →"},"news_2052402580266098813": {- "all_news": "",- "discover": "",- "marketplace": "",- "meta_description": "",+ "all_news": "← All news",+ "discover": "Discover",+ "marketplace": "Marketplace",+ "meta_description": "The next web has agents in it. They need identity, embodiment, and a way to transact. We're working on the spec. three.ws is contributing to the W3C — proposing a new Community Group: 3D AI Agents & On-Chain Identity for the Web.","meta_og_description": "","meta_og_title": "","meta_title": "",@@ -12549,26 +12549,26 @@"the_next_web_has_agents_in_it_2": "","three_ws_home_news_rss_x_github": "","three_ws_is_contributing_to_the_w3c": "",- "trythreews": "",- "visit_three_ws": ""+ "trythreews": "@trythreews",+ "visit_three_ws": "Visit three.ws →"},"news_2052418108837781511": {- "all_news": "",- "check_out_our_newly_launched_podcast_episode": "",- "discover": "",- "long_reads_not_your_thing": "",- "marketplace": "",- "meta_description": "",- "meta_og_description": "",- "meta_og_title": "",- "meta_title": "",- "meta_twitter_description": "",- "meta_twitter_title": "",- "news": "",- "news_announcements": "",- "originally_shared_on_x": "",- "the": "",- "the_three_ws_podcast_is_now_live": "",+ "all_news": "← All news",+ "check_out_our_newly_launched_podcast_episode": "Check out our newly launched podcast episode where we discuss on-chain 3D agents and see how we're putting AI in everyone's hands, worldwide.",+ "discover": "Discover",+ "long_reads_not_your_thing": "Long reads not your thing?",+ "marketplace": "Marketplace",+ "meta_description": "The three.ws Podcast is now live on @amazonmusic Long reads not your thing? Check out our newly launched podcast episode where we discuss on-chain 3D agents and see how we're putting AI in everyone's hands, worldwide.",+ "meta_og_description": "The three.ws Podcast is now live on @amazonmusic Long reads not your thing? Check out our newly launched podcast episode where we discuss on-chain 3D agents and see how we're putting AI in everyone's hands, worldwide.",+ "meta_og_title": "The",+ "meta_title": "The — three.ws",+ "meta_twitter_description": "The three.ws Podcast is now live on @amazonmusic Long reads not your thing? Check out our newly launched podcast episode where we discuss on-chain 3D agents and see how we're putting AI in everyone's hands, worldwide.",+ "meta_twitter_title": "The",+ "news": "News",+ "news_announcements": "News & Announcements",+ "originally_shared_on_x": "<em>Originally shared on <a href=\"https://x.com/trythreews/status/2052418108837781511\" rel=\"noopener\">X</a>.</em>",+ "the": "The",+ "the_three_ws_podcast_is_now_live": "The <br>three.ws Podcast is now live on <br><a href=\"https://x.com/amazonmusic\" rel=\"noopener\">@amazonmusic</a>","three_ws_home_news_rss_x_github": "","trythreews": "","visit_three_ws": ""diff --git a/scripts/native-launchpad-create-config.mjs b/scripts/native-launchpad-create-config.mjsnew file mode 100644index 000000000..fbf3149a7--- /dev/null+++ b/scripts/native-launchpad-create-config.mjs@@ -0,0 +1,98 @@+#!/usr/bin/env node+// Create the three.ws partner config for the native launchpad (Meteora DBC).+//+// One-shot per network. The config account is a fresh keypair that signs its+// own creation; after it lands, pin the printed pubkey in the environment:+// devnet -> NATIVE_LAUNCH_CONFIG_KEY_DEVNET+// mainnet -> NATIVE_LAUNCH_CONFIG_KEY+//+// Usage:+// node scripts/native-launchpad-create-config.mjs --network devnet+// node scripts/native-launchpad-create-config.mjs --network devnet --airdrop+// node scripts/native-launchpad-create-config.mjs --network mainnet+//+// The payer/partner keypair comes from NATIVE_LAUNCH_PARTNER_SECRET_BASE58,+// falling back to X402_TREASURY_SECRET_BASE58 (the platform treasury). The+// same wallet becomes feeClaimer + leftoverReceiver unless+// NATIVE_LAUNCH_FEE_WALLET overrides the claimer.++import 'dotenv/config';+import bs58 from 'bs58';+import { Connection, Keypair, PublicKey, sendAndConfirmTransaction } from '@solana/web3.js';+import { NATIVE_MINT } from '@solana/spl-token';+import { DynamicBondingCurveClient, buildCurveWithMarketCap } from '@meteora-ag/dynamic-bonding-curve-sdk';+import { curveBuildParams } from '../api/_lib/native-launch/config.js';++const args = process.argv.slice(2);+const network = args.includes('--network') ? args[args.indexOf('--network') + 1] : 'devnet';+const doAirdrop = args.includes('--airdrop');+if (!['mainnet', 'devnet'].includes(network)) {+ console.error('--network must be mainnet or devnet');+ process.exit(1);+}++const RPC =+ network === 'devnet'+ ? process.env.SOLANA_RPC_URL_DEVNET || 'https://api.devnet.solana.com'+ : process.env.SOLANA_RPC_URL || 'https://api.mainnet-beta.solana.com';++const secret =+ process.env.NATIVE_LAUNCH_PARTNER_SECRET_BASE58 || process.env.X402_TREASURY_SECRET_BASE58;+if (!secret) {+ console.error('set NATIVE_LAUNCH_PARTNER_SECRET_BASE58 (or X402_TREASURY_SECRET_BASE58)');+ process.exit(1);+}+const partner = Keypair.fromSecretKey(bs58.decode(secret));+const feeClaimer = process.env.NATIVE_LAUNCH_FEE_WALLET+ ? new PublicKey(process.env.NATIVE_LAUNCH_FEE_WALLET)+ : partner.publicKey;++const connection = new Connection(RPC, 'confirmed');++if (doAirdrop && network === 'devnet') {+ console.log(`airdropping 2 SOL to ${partner.publicKey.toBase58()} …`);+ try {+ const sig = await connection.requestAirdrop(partner.publicKey, 2e9);+ await connection.confirmTransaction(sig, 'confirmed');+ } catch (e) {+ console.warn(`airdrop failed (${e.message}) — continuing with existing balance`);+ }+}++const balance = await connection.getBalance(partner.publicKey);+console.log(`network: ${network}`);+console.log(`partner: ${partner.publicKey.toBase58()} (${(balance / 1e9).toFixed(4)} SOL)`);+console.log(`claimer: ${feeClaimer.toBase58()}`);+if (balance < 0.05e9) {+ console.error('partner wallet needs at least 0.05 SOL for rent + fees');+ process.exit(1);+}++const curveConfig = buildCurveWithMarketCap(curveBuildParams());+console.log(+ `curve: graduation at ${(Number(curveConfig.migrationQuoteThreshold.toString()) / 1e9).toFixed(2)} SOL raised`,+);++const client = new DynamicBondingCurveClient(connection, 'confirmed');+const configKeypair = Keypair.generate();++const tx = await client.partner.createConfig({+ ...curveConfig,+ config: configKeypair.publicKey,+ feeClaimer,+ leftoverReceiver: feeClaimer,+ quoteMint: NATIVE_MINT,+ payer: partner.publicKey,+});++const sig = await sendAndConfirmTransaction(connection, tx, [partner, configKeypair], {+ commitment: 'confirmed',+});++console.log('');+console.log(`config created: ${configKeypair.publicKey.toBase58()}`);+console.log(`tx: https://solscan.io/tx/${sig}${network === 'devnet' ? '?cluster=devnet' : ''}`);+console.log('');+console.log(+ `pin it: ${network === 'devnet' ? 'NATIVE_LAUNCH_CONFIG_KEY_DEVNET' : 'NATIVE_LAUNCH_CONFIG_KEY'}=${configKeypair.publicKey.toBase58()}`,+);diff --git a/src/characters.js b/src/characters.jsindex 6ff201b4e..2e3fd3739 100644--- a/src/characters.js+++ b/src/characters.js@@ -100,7 +100,7 @@ function cardHtml(ch) {${ch.description ? `<p class="chs-card-desc">${escHtml(ch.description)}</p>` : ''}${statsHtml}${tokenHtml}- ${ch.solana_address ? `<div class="chs-card-wallet" style="margin-top:8px">${walletChipHTML(ch, { link: false, showPending: false, dense: true })}</div>` : ''}+ ${ch.solana_address ? `<div class="chs-card-wallet" style="margin-top:8px">${walletChipHTML(ch, { link: false, popover: false, showPending: false, dense: true })}</div>` : ''}</a>`;}diff --git a/src/sign-language-page.js b/src/sign-language-page.jsindex 38638f139..9db3719d8 100644--- a/src/sign-language-page.js+++ b/src/sign-language-page.js@@ -309,7 +309,9 @@ async function boot() {const chip = document.createElement('button');chip.type = 'button';chip.className = 'sl-vocab-chip';- chip.setAttribute('role', 'listitem');+ // No role="listitem": overriding a button's role forbids aria-pressed+ // (axe aria-allowed-attr, critical). The host is a role="group" with an+ // aria-label instead of a faked list.chip.setAttribute('aria-pressed', 'false');chip.textContent = word.toLowerCase();const gloss = signGloss(word);diff --git a/src/solana/sns-subdomain.js b/src/solana/sns-subdomain.jsindex f718fa166..743149183 100644--- a/src/solana/sns-subdomain.js+++ b/src/solana/sns-subdomain.js@@ -202,7 +202,10 @@ export async function createNamedSubdomain({parentKp.publicKey,);- const transferIxs = await sns.transferSubdomain(connection, fullName, newOwnerKey, true);+ // v3 returns a single TransactionInstruction (v0.1.x-era callers expected an+ // array) — normalize so the spread below works against either shape.+ const transferRes = await sns.transferSubdomain(connection, fullName, newOwnerKey, true);+ const transferIxs = Array.isArray(transferRes) ? transferRes : [transferRes];const ixs = [...createIxs, urlRecordIx, ...transferIxs];const { blockhash, lastValidBlockHeight } = await connection.getLatestBlockhash('confirmed');diff --git a/src/solana/sns.js b/src/solana/sns.jsindex 763c9485d..9aef3cdc2 100644--- a/src/solana/sns.js+++ b/src/solana/sns.js@@ -66,7 +66,10 @@ export async function reverseLookupAddress(addr) {try {const { getFavoriteDomain } = await import('@bonfida/spl-name-service');const owner = new PublicKey(addr);- const { reverse } = await getFavoriteDomain(await makeConnection(), owner);+ const { reverse, stale } = await getFavoriteDomain(await makeConnection(), owner);+ // A stale favorite is a domain the wallet no longer owns — showing it+ // would attribute someone else's name to this address.+ if (stale) return null;return reverse.endsWith('.sol') ? reverse : `${reverse}.sol`;} catch {return null;diff --git a/src/wardrobe-page.js b/src/wardrobe-page.jsnew file mode 100644index 000000000..5e216a1a4--- /dev/null+++ b/src/wardrobe-page.js@@ -0,0 +1,266 @@+// /wardrobe — the public garment catalog + the generator lane.+//+// Two jobs on one page:+// 1. Browse every published wearable (live catalog the closet uses:+// src/garment-catalog.js → gs://three-ws-garments). Search, filter by+// slot, inspect the 3D asset inline, jump into the editor to wear it.+// 2. Generate a new wearable from a text prompt through the public+// POST /api/garment-forge proxy, watching the real pipeline stages+// (image → mesh → compose → rig → extract → validate → publish). A+// finished piece is already live in the catalog, so the grid refreshes+// itself and highlights the new tile.+//+// No mocks anywhere: the grid is the production catalog, the generator is the+// production worker, and a piece shown here is wearable in /avatar-edit now.++import { loadCatalog, bySlot } from './garment-catalog.js';+import { GARMENT_SLOTS } from './garment-taxonomy.js';++const SLOT_LABELS = {+ top: 'Tops', bottom: 'Bottoms', footwear: 'Footwear', outerwear: 'Outerwear',+ hair: 'Hair', headwear: 'Headwear', glasses: 'Glasses', accessory: 'Accessories',+};+const STAGES = ['image', 'mesh', 'compose', 'rig', 'extract', 'validate', 'publish'];+const POLL_MS = 10_000;+const JOB_KEY = 'twx_wardrobe_job';++const $ = (role) => document.querySelector(`[data-role="${role}"]`);+const esc = (s) => String(s ?? '').replace(/[&<>"']/g, (c) => (+ { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' }[c]+));++let allGarments = [];+let activeSlot = 'all';+let query = '';+let highlightId = null;++async function boot() {+ wireToolbar();+ wireGenerator();+ await refresh();+ resumePendingJob();+}++async function refresh({ force = false } = {}) {+ const loading = $('loading');+ const errorBox = $('error');+ const grid = $('grid');+ try {+ const catalog = await loadCatalog({ force });+ allGarments = catalog.garments;+ loading.hidden = true;+ errorBox.hidden = true;+ renderChips();+ render();+ } catch (err) {+ loading.hidden = true;+ grid.hidden = true;+ errorBox.hidden = false;+ $('error-msg').textContent = `The catalog did not load (${err?.message || err}). It is a public feed, so this is almost always a network blip.`;+ }+}++function wireToolbar() {+ const search = $('search');+ search.addEventListener('input', () => { query = search.value.trim().toLowerCase(); render(); });+ document.addEventListener('keydown', (e) => {+ if (e.key === '/' && document.activeElement !== search && !/input|textarea|select/i.test(document.activeElement?.tagName || '')) {+ e.preventDefault();+ search.focus();+ }+ });+ $('retry').addEventListener('click', () => {+ $('error').hidden = true;+ $('loading').hidden = false;+ refresh({ force: true });+ });+ $('clear-search').addEventListener('click', () => {+ search.value = '';+ query = '';+ render();+ });+}++function renderChips() {+ const grouped = bySlot(allGarments);+ const chips = ['all', ...GARMENT_SLOTS.filter((s) => grouped.has(s))];+ $('chips').innerHTML = chips.map((slot) => `+ <button type="button" class="wd-chip${slot === activeSlot ? ' is-active' : ''}" data-slot="${slot}"+ aria-pressed="${slot === activeSlot}">+ ${slot === 'all' ? 'Everything' : esc(SLOT_LABELS[slot] || slot)}+ </button>+ `).join('');+ $('chips').querySelectorAll('.wd-chip').forEach((chip) => {+ chip.addEventListener('click', () => {+ activeSlot = chip.dataset.slot;+ renderChips();+ render();+ });+ });+}++function visibleGarments() {+ return allGarments.filter((g) => {+ if (activeSlot !== 'all' && g.slot !== activeSlot) return false;+ if (!query) return true;+ return `${g.name} ${g.slot} ${g.id}`.toLowerCase().includes(query);+ });+}++function render() {+ const grid = $('grid');+ const items = visibleGarments();+ $('count').textContent = `${items.length} of ${allGarments.length} pieces`;+ $('empty').hidden = allGarments.length !== 0;+ $('empty-search').hidden = !(allGarments.length > 0 && items.length === 0);+ grid.hidden = items.length === 0;+ if (!items.length) return;++ grid.innerHTML = items.map((g) => {+ const thumb = g.preview?.thumbnail;+ const version = g.version || 1;+ return `+ <article class="wd-card${g.id === highlightId ? ' is-new' : ''}" data-id="${esc(g.id)}">+ <div class="wd-thumb" data-thumb>+ ${thumb+ ? `<img src="${esc(thumb)}" alt="${esc(g.name)}" loading="lazy" />`+ : '<span class="wd-thumb-fallback" aria-hidden="true">◆</span>'}+ <span class="wd-pill">${esc(g.slot)}</span>+ <button type="button" class="wd-3d" data-view3d="${esc(g.model?.uri || '')}"+ aria-label="View ${esc(g.name)} in 3D" title="View in 3D">3D</button>+ </div>+ <div class="wd-body">+ <h3 class="wd-name" title="${esc(g.name)}">${esc(g.name)}</h3>+ <p class="wd-meta">v${version} · ${esc(g.license || '')}${g.source?.kind === 'generated' ? ' · generated' : ''}</p>+ <div class="wd-actions">+ <a class="wd-btn wd-btn--primary" href="/avatars" title="Open one of your avatars in the editor, Wardrobe tab">Dress your avatar</a>+ </div>+ </div>+ </article>`;+ }).join('');++ grid.querySelectorAll('[data-view3d]').forEach((btn) => {+ btn.addEventListener('click', () => swapInViewer(btn));+ });+ if (highlightId) {+ const card = grid.querySelector(`.wd-card[data-id="${CSS.escape(highlightId)}"]`);+ card?.scrollIntoView({ behavior: 'smooth', block: 'center' });+ }+}++// Swap a card's static thumbnail for a live <model-viewer> on demand, so the+// grid stays light (a page of skinned GLBs would be megabytes of parsing) but+// any piece is inspectable without leaving the page.+function swapInViewer(btn) {+ const url = btn.dataset.view3d;+ if (!url) return;+ const thumbBox = btn.closest('[data-thumb]');+ if (!thumbBox || thumbBox.querySelector('model-viewer')) return;+ const mv = document.createElement('model-viewer');+ mv.className = 'wd-mv';+ mv.setAttribute('src', url);+ mv.setAttribute('camera-controls', '');+ mv.setAttribute('auto-rotate', '');+ mv.setAttribute('shadow-intensity', '0.6');+ mv.setAttribute('exposure', '0.9');+ thumbBox.querySelector('img, .wd-thumb-fallback')?.remove();+ btn.remove();+ thumbBox.prepend(mv);+}++/* ── Generator ─────────────────────────────────────────────────────────── */++function wireGenerator() {+ const form = $('gen-form');+ const slotSel = $('gen-slot');+ slotSel.innerHTML = GARMENT_SLOTS.map((s) => `<option value="${s}">${esc(SLOT_LABELS[s] || s)}</option>`).join('');+ form.addEventListener('submit', async (e) => {+ e.preventDefault();+ const prompt = $('gen-prompt').value.trim();+ if (prompt.length < 3) return setGenStatus('err', 'Describe the piece in a few words first.');+ setGenBusy(true);+ setGenStatus('spin', 'Submitting to the forge…');+ try {+ const r = await fetch('/api/garment-forge', {+ method: 'POST',+ headers: { 'content-type': 'application/json' },+ body: JSON.stringify({ prompt, slot: slotSel.value }),+ });+ const body = await r.json().catch(() => ({}));+ if (!r.ok) {+ const msg = body.message || body.error_description || body.error || `request failed (${r.status})`;+ throw new Error(msg);+ }+ localStorage.setItem(JOB_KEY, JSON.stringify({ job: body.job_id, prompt, slot: slotSel.value }));+ pollJob(body.job_id);+ } catch (err) {+ setGenBusy(false);+ setGenStatus('err', String(err.message || err));+ }+ });+}++function resumePendingJob() {+ let saved = null;+ try { saved = JSON.parse(localStorage.getItem(JOB_KEY) || 'null'); } catch { /* corrupt: ignore */ }+ if (!saved?.job) return;+ setGenBusy(true);+ setGenStatus('spin', `Resuming your ${saved.slot} job…`);+ if (saved.prompt) $('gen-prompt').value = saved.prompt;+ pollJob(saved.job);+}++async function pollJob(jobId) {+ try {+ const r = await fetch(`/api/garment-forge?job=${encodeURIComponent(jobId)}`);+ const body = await r.json().catch(() => ({}));+ if (!r.ok) throw new Error(body.message || body.error || `poll failed (${r.status})`);++ if (body.status === 'done') {+ localStorage.removeItem(JOB_KEY);+ setGenBusy(false);+ renderStages('publish', true);+ setGenStatus('ok', 'Published. Your piece is live in the catalog below and wearable in the editor right now.');+ highlightId = body.garment_id || null;+ await refresh({ force: true });+ return;+ }+ if (body.status === 'failed' || body.error) {+ localStorage.removeItem(JOB_KEY);+ setGenBusy(false);+ renderStages(null, false);+ setGenStatus('err', `Generation failed: ${body.error || 'unknown error'}. Nothing was published; try a simpler description.`);+ return;+ }+ renderStages(body.stage, false);+ setGenStatus('spin', `Working: ${body.stage || 'queued'}… about 7 minutes end to end.`);+ setTimeout(() => pollJob(jobId), POLL_MS);+ } catch (err) {+ // Transient poll failure: keep the job, keep polling. The worker's job+ // state is durable, so a blip never orphans a generation.+ setGenStatus('spin', `Reconnecting (${String(err.message || err).slice(0, 60)})…`);+ setTimeout(() => pollJob(jobId), POLL_MS * 2);+ }+}++function renderStages(current, allDone) {+ const idx = STAGES.indexOf(current);+ $('gen-stages').innerHTML = STAGES.map((s, i) => {+ const state = allDone || i < idx ? 'done' : i === idx ? 'active' : 'todo';+ return `<span class="wd-stage wd-stage--${state}">${s}</span>`;+ }).join('<span class="wd-stage-sep" aria-hidden="true">→</span>');+}++function setGenBusy(busy) {+ $('gen-submit').disabled = busy;+ $('gen-prompt').disabled = busy;+ $('gen-slot').disabled = busy;+}++function setGenStatus(kind, msg) {+ const el = $('gen-status');+ el.dataset.kind = kind;+ el.textContent = msg;+}++boot();diff --git a/tests/api/pump-trending-resilience.test.js b/tests/api/pump-trending-resilience.test.jsindex 7d066b986..1922c6007 100644--- a/tests/api/pump-trending-resilience.test.js+++ b/tests/api/pump-trending-resilience.test.js@@ -23,7 +23,13 @@ vi.mock('../../api/_lib/rate-limit.js', async (importActual) => {const actual = await importActual();return {...actual,- limits: { ...actual.limits, publicIp: vi.fn(async () => ({ success: true, reset: Date.now() + 1000 })) },+ limits: {+ ...actual.limits,+ publicIp: vi.fn(async () => ({ success: true, reset: Date.now() + 1000 })),+ // The handler moved to the dedicated lobby bucket (435652d20); stub it+ // too or the real limiter 429s the second request in a test.+ marketFeedIp: vi.fn(async () => ({ success: true, reset: Date.now() + 1000 })),+ },clientIp: () => '203.0.113.9',};});@@ -97,12 +103,18 @@ describe('pump/trending resilience', () => {});it('trips the Birdeye breaker so the next cache-miss skips it', async () => {+ vi.useFakeTimers();+ vi.setSystemTime(new Date('2026-06-21T00:00:00Z'));const handler = await freshHandler();mockFetch({ birdeyeOk: false, pumpOk: true });- // First call: Birdeye fails (trips breaker), pump serves it, caches at limit=5.+ // First call: Birdeye fails (trips breaker), pump serves it, caches the batch.await handler(makeReq('/api/pump/trending?limit=5'), makeRes());global.fetch.mockClear();- // limit=40 misses the limit=5 cache → refetch; breaker open → Birdeye skipped.+ // getTrendingSlim caches one canonical batch that serves EVERY limit, so a+ // bigger limit no longer misses. Force a real miss by moving past the 30s+ // fresh TTL while staying inside the 60s Birdeye cooldown: the refetch must+ // skip Birdeye and go straight to pump.fun.+ vi.setSystemTime(new Date('2026-06-21T00:00:45Z')); // +45sawait handler(makeReq('/api/pump/trending?limit=40'), makeRes());const urls = global.fetch.mock.calls.map((c) => String(c[0]));diff --git a/tests/minimap-projection.test.js b/tests/minimap-projection.test.jsnew file mode 100644index 000000000..19dba3fa0--- /dev/null+++ b/tests/minimap-projection.test.js@@ -0,0 +1,68 @@+// Shared HUD minimap (src/game/hud/minimap.js) projection math. The radar+// rotates the world under a fixed player arrow; worldFromScreen() is the new+// inverse /walk's tap-to-set-waypoint runs through, so the two mappings must+// round-trip exactly for any viewer pose. Tested via prototype calls on a bare+// pose object: the math needs no DOM, and node has no canvas.++import { describe, it, expect } from 'vitest';+import { Minimap } from '../src/game/hud/minimap.js';++function fake(viewer, { size = 184, range = 16 } = {}) {+ return { size, range, viewer };+}++const project = (f, x, z) => Minimap.prototype._project.call(f, x, z);+const unproject = (f, sx, sy) => Minimap.prototype.worldFromScreen.call(f, sx, sy);++describe('minimap projection', () => {+ it('maps the point the player faces to screen-up', () => {+ for (const yaw of [0, 0.7, Math.PI / 2, -2.3]) {+ const f = fake({ x: 0, z: 0, yaw });+ // walk.js yaw convention: forward = (sin yaw, cos yaw) in the XZ plane.+ const p = project(f, Math.sin(yaw) * 5, Math.cos(yaw) * 5);+ expect(p.sx).toBeCloseTo(0, 8);+ expect(p.sy).toBeLessThan(0); // up on screen+ }+ });++ it('worldFromScreen inverts _project for arbitrary poses', () => {+ const poses = [+ { x: 0, z: 0, yaw: 0 },+ { x: 3.2, z: -1.7, yaw: 0.7 },+ { x: -8, z: 5, yaw: -2.9 },+ { x: 11, z: 11, yaw: Math.PI },+ ];+ const points = [+ [0, 0],+ [4, -3],+ [-7.5, 2.25],+ [10, 10],+ ];+ for (const viewer of poses) {+ const f = fake(viewer);+ const c = f.size / 2;+ for (const [wx, wz] of points) {+ const p = project(f, wx, wz);+ // worldFromScreen takes CSS px from the map's top-left corner.+ const back = unproject(f, c + p.sx, c + p.sy);+ expect(back.x).toBeCloseTo(wx, 8);+ expect(back.z).toBeCloseTo(wz, 8);+ }+ }+ });++ it('the map centre unprojects to the viewer position', () => {+ const f = fake({ x: -4.5, z: 9.1, yaw: 1.3 });+ const c = f.size / 2;+ const back = unproject(f, c, c);+ expect(back.x).toBeCloseTo(-4.5, 8);+ expect(back.z).toBeCloseTo(9.1, 8);+ });++ it('scales with range: the rim is `range` metres from the viewer', () => {+ const f = fake({ x: 0, z: 0, yaw: 0 }, { size: 184, range: 16 });+ const back = unproject(f, f.size / 2, 0); // top edge, straight ahead+ const dist = Math.hypot(back.x, back.z);+ expect(dist).toBeCloseTo(16, 6);+ });+});diff --git a/tests/walk-day-night.test.js b/tests/walk-day-night.test.jsnew file mode 100644index 000000000..e2f879c42--- /dev/null+++ b/tests/walk-day-night.test.js@@ -0,0 +1,131 @@+// /walk day/night cycle (src/walk-day-night.js): the /play world clock driving+// /walk's lighting rig. Pins the contract the surface relies on: outdoor-only+// arming, the immediate snap on setEnvironment (no noon flash at night), the+// authored daytime anchors at noon, the cool low-light floor at midnight, the+// east-to-west sun arc, and the AR pause.++import { describe, it, expect, beforeEach } from 'vitest';+import { AmbientLight, DirectionalLight, HemisphereLight } from 'three';+import { createWalkDayNight } from '../src/walk-day-night.js';+import { DEFAULT_CYCLE_MS } from '../src/shared/world-clock.js';++const NOON = DEFAULT_CYCLE_MS * 0.5;+const MIDNIGHT = 0;+const SUNRISE = DEFAULT_CYCLE_MS * 0.25;+const SUNSET = DEFAULT_CYCLE_MS * 0.75;++const OUTDOOR = Object.freeze({+ name: 'park',+ kind: 'outdoor',+ sky: { top: '#3f87c8', bottom: '#bfe3f5' },+ light: {+ ambient: { color: '#fff7e6', intensity: 0.5 },+ hemi: { sky: '#a8d8ea', ground: '#3a5a28', intensity: 0.75 },+ sun: { color: '#fff2d2', intensity: 1.7, direction: [5, 9, 6] },+ },+ envIntensity: 0.85,+});++const INDOOR = Object.freeze({ ...OUTDOOR, name: 'gallery', kind: 'indoor' });++function makeRig() {+ const ambientLight = new AmbientLight(0xffffff, 0.55);+ const hemi = new HemisphereLight(0xbcd6ff, 0x202830, 0.6);+ const sun = new DirectionalLight(0xffffff, 1.4);+ const scene = { environmentIntensity: 1 };+ const stageEl = { style: {} };+ const cycle = createWalkDayNight({ ambientLight, hemi, sun, scene, stageEl });+ return { ambientLight, hemi, sun, scene, stageEl, cycle };+}++describe('walk day/night cycle', () => {+ let rig;+ beforeEach(() => {+ rig = makeRig();+ });++ it('stays disarmed for indoor environments and leaves the rig alone', () => {+ rig.cycle.setEnvironment(INDOOR);+ expect(rig.cycle.isEnabled()).toBe(false);+ expect(rig.cycle.update(NOON)).toBeNull();+ expect(rig.sun.intensity).toBe(1.4); // untouched construction default+ expect(rig.stageEl.style.background).toBeUndefined();+ });++ it('arms for outdoor environments and snaps the rig immediately', () => {+ rig.cycle.setEnvironment(OUTDOOR);+ expect(rig.cycle.isEnabled()).toBe(true);+ // setEnvironment ran update(Date.now(), force) internally: the rig is no+ // longer at its construction defaults and the sky gradient is painted.+ expect(typeof rig.stageEl.style.background).toBe('string');+ expect(rig.stageEl.style.background).toContain('radial-gradient');+ });++ it('renders the authored daytime anchors at noon', () => {+ rig.cycle.setEnvironment(OUTDOOR);+ const day = rig.cycle.update(NOON);+ expect(day).toBeCloseTo(1, 5);+ expect(rig.sun.intensity).toBeCloseTo(1.7, 5);+ expect(rig.hemi.intensity).toBeCloseTo(0.75, 5);+ expect(rig.ambientLight.intensity).toBeCloseTo(0.5, 5);+ expect(rig.scene.environmentIntensity).toBeCloseTo(0.85, 5);+ // Noon sky is pixel-identical to the authored one applySky() paints.+ expect(rig.stageEl.style.background).toBe(+ 'radial-gradient(120% 90% at 50% 18%, #3f87c8 0%, #bfe3f5 72%) #bfe3f5',+ );+ });++ it('drops to the cool low-light floor at midnight, never black', () => {+ rig.cycle.setEnvironment(OUTDOOR);+ const day = rig.cycle.update(MIDNIGHT);+ expect(day).toBeCloseTo(0, 5);+ expect(rig.sun.intensity).toBeCloseTo(0.07, 5);+ expect(rig.hemi.intensity).toBeCloseTo(0.12, 5);+ expect(rig.ambientLight.intensity).toBeCloseTo(0.1, 5);+ expect(rig.scene.environmentIntensity).toBeCloseTo(0.85 * 0.16, 5);+ expect(rig.stageEl.style.background).toContain('#05060f'); // night sky top+ });++ it('arcs the sun east to west: opposite horizontal signs at sunrise vs sunset', () => {+ rig.cycle.setEnvironment(OUTDOOR);+ rig.cycle.update(SUNRISE);+ const riseX = rig.sun.position.x;+ const riseZ = rig.sun.position.z;+ rig.cycle.update(SUNSET);+ expect(Math.sign(rig.sun.position.x)).toBe(-Math.sign(riseX));+ expect(Math.sign(rig.sun.position.z)).toBe(-Math.sign(riseZ));+ expect(riseX).not.toBe(0);+ });++ it('is deterministic: two independent instances agree exactly', () => {+ const a = makeRig();+ const b = makeRig();+ a.cycle.setEnvironment(OUTDOOR);+ b.cycle.setEnvironment(OUTDOOR);+ const t = 1_700_000_123_456;+ a.cycle.update(t);+ b.cycle.update(t);+ expect(a.sun.intensity).toBe(b.sun.intensity);+ expect(a.sun.position.toArray()).toEqual(b.sun.position.toArray());+ expect(a.stageEl.style.background).toBe(b.stageEl.style.background);+ });++ it('pauses for AR (no writes) and resumes with a forced snap', () => {+ rig.cycle.setEnvironment(OUTDOOR);+ rig.cycle.update(NOON);+ const noonSun = rig.sun.intensity;+ rig.cycle.setPaused(true);+ expect(rig.cycle.update(MIDNIGHT)).toBeNull();+ expect(rig.sun.intensity).toBe(noonSun); // untouched while paused+ rig.cycle.setPaused(false);+ expect(rig.cycle.update(MIDNIGHT, true)).toBeCloseTo(0, 5);+ expect(rig.sun.intensity).toBeCloseTo(0.07, 5);+ });++ it('disarms on dispose', () => {+ rig.cycle.setEnvironment(OUTDOOR);+ rig.cycle.dispose();+ expect(rig.cycle.isEnabled()).toBe(false);+ expect(rig.cycle.update(NOON)).toBeNull();+ });+});diff --git a/vercel.json b/vercel.jsonindex 7d518a1c7..52d09704d 100644--- a/vercel.json+++ b/vercel.json@@ -3240,6 +3240,10 @@"src": "/api/pump/launches","dest": "/api/pump/[action]?action=launches"},+ {+ "src": "/api/launchpad/(config|quote|pool|launch-prep|launch-confirm|launches)",+ "dest": "/api/launchpad/[action]?action=$1"+ },{"src": "/api/pump/coin","dest": "/api/pump/[action]?action=coin"diff --git a/workers/agent-sniper/reconcile.js b/workers/agent-sniper/reconcile.jsindex 81d26cb20..f81992bb2 100644--- a/workers/agent-sniper/reconcile.js+++ b/workers/agent-sniper/reconcile.js@@ -53,6 +53,24 @@ export async function reconcileVanishedBag({ ctx, position, reason }) {const ownerPk = new ctx.web3.PublicKey(owner);const accounts = await ctx.connection.getParsedTokenAccountsByOwner(ownerPk, { mint: mintPk });const tokenAccounts = (accounts?.value || []).map((a) => a.pubkey);+ // A sell that emptied the bag often CLOSES the token account in the same tx+ // (rent reclaim), so the live-accounts lookup above comes back empty and the+ // emptying tx could never be found: positions pinged reconcile_pending for+ // 30+ hours while their arm's concurrency slot stayed wedged. A closed+ // account's ADDRESS still carries its signature history, so derive the ATA+ // for both token programs and search those addresses too.+ const seen = new Set(tokenAccounts.map((a) => a.toBase58()));+ const ASSOCIATED_TOKEN_PROGRAM = new ctx.web3.PublicKey('ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL');+ for (const tokenProgram of ['TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA', 'TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb']) {+ const [ata] = ctx.web3.PublicKey.findProgramAddressSync(+ [ownerPk.toBuffer(), new ctx.web3.PublicKey(tokenProgram).toBuffer(), mintPk.toBuffer()],+ ASSOCIATED_TOKEN_PROGRAM,+ );+ if (!seen.has(ata.toBase58())) {+ seen.add(ata.toBase58());+ tokenAccounts.push(ata);+ }+ }if (!tokenAccounts.length) return false;for (const ata of tokenAccounts) {