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
docs(changelog): tell users one bad upload can no longer empty the free object library
nirholasb5389302b569
diff --git a/data/changelog.json b/data/changelog.jsonindex 777e870ce..ab1b01c00 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-08-14",+ "title": "The free object library can no longer be emptied by one bad upload",+ "summary": "The CC0 prop library at /objects reads a single index file from the CDN. If that file were ever uploaded truncated or in the wrong shape, the gallery treated it as a library with nothing in it and told the CDN to remember that answer for the next five minutes, so a bad upload kept the shelves bare long after it was replaced. A damaged index is now handled the same way as the CDN being briefly unreachable: the page stays quiet, nothing gets cached, and the props come back on the very next request. Two smaller fixes went with it: a request with a broken page cursor (a limit of \"abc\", a negative offset) is rejected outright instead of first fetching an index it was never going to use, and the developer documentation no longer claims the library API can be called from any website, which it cannot; it answers three.ws and its partner sites, and everything it points at is still yours to download and reuse anywhere.",+ "tags": [+ "fix",+ "docs"+ ],+ "link": "/objects"+ },{"date": "2026-08-14","title": "The agent directory describes itself correctly in all 84 languages again",diff --git a/tests/monetization-service.test.js b/tests/monetization-service.test.jsindex 0d0cd5601..fa046a92f 100644--- a/tests/monetization-service.test.js+++ b/tests/monetization-service.test.js@@ -76,6 +76,8 @@ const { recordRevenueEvent, getAvailableBalance } = await import('../api/_lib/moconst { calculateFee, getFeeBps } = await import('../api/_lib/fee.js');const { default: pricesHandler } = await import('../api/monetization/prices.js');const { default: revenueHandler } = await import('../api/monetization/revenue.js');+const { default: walletHandler } = await import('../api/monetization/wallet.js');+const { default: withdrawalsHandler } = await import('../api/monetization/withdrawals.js');const USDC_MINT = 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v';@@ -433,6 +435,40 @@ describe('prices endpoint (setSkillPrices)', () => {expect(body.error).toBe('validation_error');});+ it('rejects a price above the ceiling with 400 rather than overflowing the column', async () => {+ const { agent, session } = createTestAgent();+ authState.session = session;++ // 1e30 USDC becomes 1e36 atomic units, far past the bigint `amount` column.+ // Without the ceiling this reached Postgres and came back as a 500.+ const { status, body } = await invoke(pricesHandler, {+ method: 'PUT',+ url: '/api/monetization/prices',+ body: { agent_id: agent.id, skill_name: 'echo', price_usdc: 1e30 },+ });++ expect(status).toBe(400);+ expect(body.error).toBe('validation_error');+ // The ownership lookup must not even have run: validation fails first.+ expect(sqlState.calls).toHaveLength(0);+ });++ it('rejects a non-finite price with 400', async () => {+ const { agent, session } = createTestAgent();+ authState.session = session;++ // JSON.parse('1e400') is Infinity, so a caller can put a non-finite number+ // on the wire even though JSON.stringify can never emit one.+ const { status, body } = await invoke(pricesHandler, {+ method: 'PUT',+ url: '/api/monetization/prices',+ body: `{"agent_id":"${agent.id}","skill_name":"echo","price_usdc":1e400}`,+ });++ expect(status).toBe(400);+ expect(body.error).toBe('validation_error');+ });+it('rejects an invalid skill_name with a validation error', async () => {const { agent, session } = createTestAgent();authState.session = session;@@ -582,6 +618,36 @@ describe('revenue endpoint (getCreatorSalesData)', () => {expect(body.by_day).toEqual([]);});+ it('bounds each period to its own window and leaves `all` unbounded', async () => {+ const DAY_MS = 86_400_000;+ for (const [period, expectedMs] of [['1d', DAY_MS], ['30d', 30 * DAY_MS], ['90d', 90 * DAY_MS]]) {+ sqlState.calls = [];+ sqlState.queue = [];+ authState.session = { id: 'user-1' };+ sqlState.queue.push([{ gross_total: 0n, fee_total: 0n, net_total: 0n, event_count: 0 }]);+ sqlState.queue.push([]);+ sqlState.queue.push([]);++ const { status } = await invoke(revenueHandler, {+ method: 'GET',+ url: `/api/monetization/revenue?period=${period}`,+ });++ expect(status).toBe(200);+ const [, fromDate, toDate] = sqlState.calls[0].values;+ expect(toDate.getTime() - fromDate.getTime()).toBe(expectedMs);+ }++ sqlState.calls = [];+ sqlState.queue = [];+ sqlState.queue.push([{ gross_total: 0n, fee_total: 0n, net_total: 0n, event_count: 0 }]);+ sqlState.queue.push([]);+ sqlState.queue.push([]);+ await invoke(revenueHandler, { method: 'GET', url: '/api/monetization/revenue?period=all' });+ const [, allFrom] = sqlState.calls[0].values;+ expect(allFrom.getFullYear()).toBeLessThanOrEqual(2020);+ });+it('returns 401 when unauthenticated', async () => {const { status, body } = await invoke(revenueHandler, {method: 'GET',