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
feat: real-seller circulation test and agent activation updates
nirholasb62292ff705a
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 1e04caa5f..0cf67886f 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -14,6 +14,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **Scene Capture — Video to 3D Point Cloud** (`/capture`) — Turn a phone video of any space into an explorable 3D point cloud. Streaming feed-forward reconstruction (LingBot-Map Geometric Context Transformer) fuses the frames into a coloured .ply, rendered live in the browser with WebGL. Or load a point cloud you already have.- **three.ws Joins the Alibaba Cloud Partner Network** (`/blog/three-ws-alibaba-cloud-partnership`) — three.ws is now an Alibaba Cloud Partner, bringing Qwen foundation models and Asia-Pacific cloud infrastructure to the three.ws 3D AI agent platform.- **60 live x402 payments per minute** — A new per-minute cron fires 60 parallel real Solana USDC micropayments each tick via the x402 protocol, seeding the platform's payment activity feed and club stage with continuous on-chain traffic. Each payment is a signed SPL TransferChecked transaction broadcast via the Solana facilitator — not simulated. Configure the batch size or pause it with X402_SEED_BATCH_SIZE / X402_SEED_ENABLED. (`/pay`) `[infra, feature]`+- **Activate your agent — a one-tap welcome grant that brings it live** — New agents now have a "Go Live" step in their wallet. One tap claims a real, one-time on-chain welcome grant from three.ws — it funds the agent's wallet and lands it on the live Money Pulse as an active wallet, in a single explorer-verifiable transaction. No more agents stuck at a zero balance with no way to make their first move. The Go Live screen shows the grant, the confirmed transaction, and what to do next, all in the platform's monochrome look. (`/pulse`) `[feature]`- **Alibaba Cloud partnership — Qwen models and alibaba-cloud-mcp** — three.ws joins the Alibaba Cloud Partner Network. Qwen-Max, Qwen-Plus, Qwen-Turbo, and Qwen-Long are now available as agent brain options via DashScope. Ships with @three-ws/alibaba-cloud-mcp — a new MCP server for chat, embeddings, and model discovery using your own Alibaba Cloud API key. Set DASHSCOPE_API_KEY in Vercel to activate. (`/blog/three-ws-alibaba-cloud-partnership`) `[feature]`- **Capabilities dashboard — live command center for all 4 autonomous features** — New /dashboard/capabilities page surfaces live status for Alpha Hunt, Coin Launcher, Auto-Claim, and Market Maker in one view. KPI strips show daily budget, total volume, claimable fees, and net P&L per capability. Tabbed tables show launched coins, schedule status, per-market inventory bars, and recent MM trades. Alpha Hunt trigger is now also configurable directly from the Sniper Strategies dashboard — full field set including min smart-money count, quality score, organic score, max market cap, and narrative keywords. (`/dashboard/capabilities`) `[feature, improvement]`- **Fixed /play getting stuck on "too many requests"** — Opening /play could dead-end on a "Something went wrong — too many requests" screen, especially from a shared network or after a couple of reloads. The wallet sign-in step was sharing the same strict rate limit as login and trading, so a small burst of page loads exhausted it. Sign-in now has its own generous limit sized for a busy world, and if that check ever can't be reached, /play opens anyway instead of blocking — the game server still verifies token-gated worlds on entry. (`/play`) `[fix]`diff --git a/api/agents/_id/activate.js b/api/agents/_id/activate.jsindex e62257a3d..56bcf7efa 100644--- a/api/agents/_id/activate.js+++ b/api/agents/_id/activate.js@@ -14,10 +14,9 @@ import {extractBearer,hasScope,} from '../../_lib/auth.js';-import { cors, json, method, error } from '../../_lib/http.js';+import { cors, json, method, error, rateLimited } from '../../_lib/http.js';import { requireCsrf } from '../../_lib/csrf.js';import { limits, clientIp } from '../../_lib/rate-limit.js';-import { rateLimited } from '../../_lib/http.js';import { activateAgent, getActivationStatus } from '../../_lib/agent-activation.js';async function resolveAuth(req) {diff --git a/data/changelog.json b/data/changelog.jsonindex e914c1913..2bd13a647 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,13 @@{"$comment": "Curated changelog entries for three.ws — the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-27",+ "title": "Activate your agent — a one-tap welcome grant that brings it live",+ "summary": "New agents now have a \"Go Live\" step in their wallet. One tap claims a real, one-time on-chain welcome grant from three.ws — it funds the agent's wallet and lands it on the live Money Pulse as an active wallet, in a single explorer-verifiable transaction. No more agents stuck at a zero balance with no way to make their first move. The Go Live screen shows the grant, the confirmed transaction, and what to do next, all in the platform's monochrome look.",+ "tags": ["feature"],+ "link": "/pulse"+ },{"date": "2026-06-27","title": "x402 payments dashboards refined to the monochrome system",diff --git a/public/changelog.json b/public/changelog.jsonindex 867ed17bd..1271315ac 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-27T20:36:20.394Z",+ "generated_at": "2026-06-27T20:38:35.015Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -87,6 +87,16 @@"feature"]},+ {+ "date": "2026-06-27",+ "type": "update",+ "title": "Activate your agent — a one-tap welcome grant that brings it live",+ "summary": "New agents now have a \"Go Live\" step in their wallet. One tap claims a real, one-time on-chain welcome grant from three.ws — it funds the agent's wallet and lands it on the live Money Pulse as an active wallet, in a single explorer-verifiable transaction. No more agents stuck at a zero balance with no way to make their first move. The Go Live screen shows the grant, the confirmed transaction, and what to do next, all in the platform's monochrome look.",+ "link": "/pulse",+ "tags": [+ "feature"+ ]+ },{"date": "2026-06-27","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex f40732db6..d8d90cdee 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -70,6 +70,14 @@<category>infra</category><description>A new per-minute cron fires 60 parallel real Solana USDC micropayments each tick via the x402 protocol, seeding the platform's payment activity feed and club stage with continuous on-chain traffic. Each payment is a signed SPL TransferChecked transaction broadcast via the Solana facilitator — not simulated. Configure the batch size or pause it with X402_SEED_BATCH_SIZE / X402_SEED_ENABLED.</description></item>+ <item>+ <title>Activate your agent — a one-tap welcome grant that brings it live</title>+ <link>https://three.ws/pulse</link>+ <guid isPermaLink="false">2026-06-27:Activate your agent — a one-tap welcome grant that brings it live</guid>+ <pubDate>Sat, 27 Jun 2026 12:00:00 GMT</pubDate>+ <category>feature</category>+ <description>New agents now have a "Go Live" step in their wallet. One tap claims a real, one-time on-chain welcome grant from three.ws — it funds the agent's wallet and lands it on the live Money Pulse as an active wallet, in a single explorer-verifiable transaction. No more agents stuck at a zero balance with no way to make their first move. The Go Live screen shows the grant, the confirmed transaction, and what to do next, all in the platform's monochrome look.</description>+ </item><item><title>Alibaba Cloud partnership — Qwen models and alibaba-cloud-mcp</title><link>https://three.ws/blog/three-ws-alibaba-cloud-partnership</link>diff --git a/public/features.json b/public/features.jsonindex e4bd1c6b3..1bc1b68a1 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-27T20:36:20.379Z",+ "generated_at": "2026-06-27T20:38:34.997Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/scripts/capture-verify.mjs b/scripts/capture-verify.mjsdeleted file mode 100644index 3bfda31ff..000000000--- a/scripts/capture-verify.mjs+++ /dev/null@@ -1,69 +0,0 @@-// Temporary browser verification for /capture — drives the point-cloud renderer-// client-side (sample cloud + real .ply upload), checks states + console health.-import { chromium } from 'playwright';--const BASE = process.env.BASE_URL || 'http://localhost:3001';-const PLY = process.env.PLY_PATH;-const SHOT = process.env.SHOT || '/tmp/capture.png';--const browser = await chromium.launch();-const page = await browser.newPage({ viewport: { width: 1440, height: 900 } });-const errors = [];-page.on('console', (m) => { if (m.type() === 'error') errors.push(`[error] ${m.text()}`); });-page.on('pageerror', (e) => errors.push(`[pageerror] ${e}`));--await page.goto(`${BASE}/capture`, { waitUntil: 'domcontentloaded' });-await page.waitForSelector('#pc-stage', { timeout: 15000 });--const h1 = (await page.textContent('.pc-head h1'))?.trim();-console.log('h1:', JSON.stringify(h1));-console.log('idle overlay visible:', await page.isVisible('#pc-idle'));--// 1) Sample cloud render.-await page.click('#pc-sample');-await page.waitForSelector('#pc-host canvas', { timeout: 15000 });-await page.waitForFunctionTimeout?.(() => {}, 0).catch(() => {});-await page.waitForFunction(() => !document.getElementById('pc-hud').hidden, { timeout: 15000 });-const sampleLabel = (await page.textContent('#pc-hud-label'))?.trim();-const canvasBox = await page.$eval('#pc-host canvas', (c) => ({ w: c.width, h: c.height }));-console.log('SAMPLE → hud label:', JSON.stringify(sampleLabel), 'canvas:', canvasBox);-console.log('point-size slider enabled:', await page.isEnabled('#pc-size'));--// Verify the canvas actually painted non-black pixels (the cloud is visible).-const painted = await page.$eval('#pc-host canvas', (c) => {- const gl = c.getContext('webgl2') || c.getContext('webgl');- const px = new Uint8Array(4 * 64);- // sample a small strip near the centre- const x = Math.floor(c.width / 2), y = Math.floor(c.height / 2);- gl.readPixels(x, y, 8, 8, gl.RGBA, gl.UNSIGNED_BYTE, px);- let lit = 0;- for (let i = 0; i < px.length; i += 4) if (px[i] + px[i + 1] + px[i + 2] > 30) lit++;- return lit;-});-console.log('lit centre pixels (of 64):', painted);--// 2) Interactions: point size + recenter (must not throw).-await page.fill('#pc-size', '2.4').catch(async () => { await page.$eval('#pc-size', (e) => { e.value = '2.4'; e.dispatchEvent(new Event('input', { bubbles: true })); }); });-await page.click('#pc-recenter');-await page.waitForTimeout(400);--// 3) Real .ply upload (worker-format file) → exact point count in HUD.-if (PLY) {- await page.setInputFiles('#pc-file', PLY);- await page.waitForFunction(() => /\d+ points/.test(document.getElementById('pc-hud-label').textContent), { timeout: 15000 });- const plyLabel = (await page.textContent('#pc-hud-label'))?.trim();- console.log('PLY UPLOAD → hud label:', JSON.stringify(plyLabel));- console.log('download button visible:', await page.isVisible('#pc-download'));-}--// 4) Responsive sanity at mobile width.-await page.setViewportSize({ width: 375, height: 812 });-await page.waitForTimeout(300);-const stageW = await page.$eval('#pc-stage', (e) => e.getBoundingClientRect().width);-console.log('mobile stage width:', Math.round(stageW));-await page.setViewportSize({ width: 1440, height: 900 });--await page.screenshot({ path: SHOT });-console.log('screenshot:', SHOT);-console.log('CONSOLE ERRORS:', errors.length ? errors.join('\n') : 'none');-await browser.close();diff --git a/tests/circulation-real-seller.test.js b/tests/circulation-real-seller.test.jsnew file mode 100644index 000000000..e9392bd43--- /dev/null+++ b/tests/circulation-real-seller.test.js@@ -0,0 +1,50 @@+/**+ * Circulation real-seller demand gating — config tests.+ *+ * Routing platform-funded marketplace demand to real user sellers is an+ * economically sensitive, opt-in lever. These tests pin the default-OFF contract+ * (so an unconfigured deploy behaves exactly as before) and the per-seller daily+ * cap clamp that bounds treasury exposure.+ */++import { describe, it, expect, afterEach } from 'vitest';+import { config } from '../api/_lib/circulation.js';++const ENV_KEYS = ['CIRCULATION_REAL_SELLER_DEMAND', 'CIRCULATION_REAL_SELLER_DAILY_CAP'];+const saved = Object.fromEntries(ENV_KEYS.map((k) => [k, process.env[k]]));++afterEach(() => {+ for (const k of ENV_KEYS) {+ if (saved[k] === undefined) delete process.env[k];+ else process.env[k] = saved[k];+ }+});++describe('circulation real-seller demand gating', () => {+ it('is OFF by default — demand stays inside the circulation pool', () => {+ delete process.env.CIRCULATION_REAL_SELLER_DEMAND;+ expect(config().realSellerDemand).toBe(false);+ });++ it('turns on only for an explicit truthy flag', () => {+ for (const v of ['1', 'true', 'yes']) {+ process.env.CIRCULATION_REAL_SELLER_DEMAND = v;+ expect(config().realSellerDemand).toBe(true);+ }+ for (const v of ['0', 'false', 'off', '']) {+ process.env.CIRCULATION_REAL_SELLER_DEMAND = v;+ expect(config().realSellerDemand).toBe(false);+ }+ });++ it('clamps the per-seller daily cap to [1, 50] with a default of 3', () => {+ delete process.env.CIRCULATION_REAL_SELLER_DAILY_CAP;+ expect(config().realSellerDailyCap).toBe(3);+ process.env.CIRCULATION_REAL_SELLER_DAILY_CAP = '0';+ expect(config().realSellerDailyCap).toBe(1);+ process.env.CIRCULATION_REAL_SELLER_DAILY_CAP = '9999';+ expect(config().realSellerDailyCap).toBe(50);+ process.env.CIRCULATION_REAL_SELLER_DAILY_CAP = '7';+ expect(config().realSellerDailyCap).toBe(7);+ });+});