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(mail): log the agent inbox code-extraction release and map it in STRUCTURE
nirholas0ac2f37ac1af
diff --git a/STRUCTURE.md b/STRUCTURE.mdindex 126660997..0b24f5bfe 100644--- a/STRUCTURE.md+++ b/STRUCTURE.md@@ -116,7 +116,7 @@ packages, a generated standalone GitHub mirror). See| Agent lifecycle, runs and automations over MCP (Runs tab) | MCP tools [api/_mcp/tools/agent-lifecycle.js](api/_mcp/tools/agent-lifecycle.js) (`get_agent`, `update_agent`, `delete_agent`, `start_agent`, `stop_agent`, `upload_agent_avatar`, `create_agent_run`, `update_agent_run`, `cancel_agent_run`, `get_agent_run_steps`, `automation_list`, `automation_get`, `automation_create`, `automation_update`, `automation_delete`, `automation_trigger`) over the REST validators and engines in [api/_lib/agents-v1/](api/_lib/agents-v1) (runs, automations, run receipts), policy rows in [packages/mcp-policy/src/table.js](packages/mcp-policy/src/table.js); replay endpoint [api/agent-run-replay.js](api/agent-run-replay.js) `→ /api/agent-run-replay`; Runs tab [src/agent-run-replay.js](src/agent-run-replay.js), mounted from [src/avatar-page.js](src/avatar-page.js) on `/agents/:id?view=runs` | Built, ships with the next deploy | An MCP client can now edit, start, stop, re-skin and delete an agent, and drive autonomous runs and automations, with create and update validated by the same schemas as the REST path. `delete_agent` and `automation_delete` are destructive: refused without `confirm_delete` and a matching `get_agent` / `automation_get` preview. A run carries two budgets (model turns and dollars), honors cancel between steps, ends with a plain-language summary, and chains a sha256 receipt over every step; `get_agent_run_steps` returns each tool call paired with its result and receipt. The owner-only Runs tab lists every run, replays it step by step with a scrubber, polls a live run, verifies the receipt chain server-side, and cancels. Docs: [docs/mcp.md](docs/mcp.md) `→ /docs/mcp`, [docs/agent-runtime.md](docs/agent-runtime.md#autonomous-runs-budgets-receipts-and-replay). Tests: [tests/mcp-agent-lifecycle.test.js](tests/mcp-agent-lifecycle.test.js), [tests/agent-run-replay-endpoint.test.js](tests/agent-run-replay-endpoint.test.js) || Agents REST API (`/api/v1`) and webhooks | Router [api/v1/rest.js](api/v1/rest.js) over [api/_lib/agents-v1/](api/_lib/agents-v1) (http envelope, agents, runs, automations, skills, [webhooks.js](api/_lib/agents-v1/webhooks.js), [run-stream.js](api/_lib/agents-v1/run-stream.js), [agent-export.js](api/_lib/agents-v1/agent-export.js), [openapi.js](api/_lib/agents-v1/openapi.js)), delivery queue [api/_lib/webhook-dispatch.js](api/_lib/webhook-dispatch.js), retry cron [api/cron/webhook-deliveries.js](api/cron/webhook-deliveries.js), dashboard [src/dashboard-next/pages/developers.js](src/dashboard-next/pages/developers.js) `→ /dashboard/developers` | Built, ships with the next deploy | Agent CRUD, start/stop, sync chat and history, runs with resumable SSE, automations with trigger-now, skills, strategies, export/import, and HTTPS webhooks (`run.finished`, `automation.fired`, `message.received`, `approval.needed`) with HMAC signatures, 8-attempt backoff, a delivery log and replay. Cursor pagination, `{data, meta}` envelope, `Idempotency-Key`. Docs: [docs/api-reference.md](docs/api-reference.md#agents-api-v1), [docs/developer-platform.md](docs/developer-platform.md). Tests: [tests/api/v1-rest-router.test.js](tests/api/v1-rest-router.test.js), [tests/api/agent-export.test.js](tests/api/agent-export.test.js), [tests/api/run-stream.test.js](tests/api/run-stream.test.js), [tests/webhook-dispatch-signing.test.js](tests/webhook-dispatch-signing.test.js) || Platform OpenAPI spec + Postman collection | Spec [public/.well-known/openapi.yaml](public/.well-known/openapi.yaml) `→ /.well-known/openapi.yaml`, generator [scripts/build-postman-collection.mjs](scripts/build-postman-collection.mjs) `→` [public/.well-known/postman-collection.json](public/.well-known/postman-collection.json) `→ /.well-known/postman-collection.json` | Built, ships with the next deploy | A ready-to-import Postman Collection v2.1 generated from the same OpenAPI spec every client already reads, via `openapi-to-postmanv2`; a `clean()` pass strips the converter's per-run random ids and fabricated example responses so the checked-in file is byte-identical across regenerations. `npm run build:postman-collection` regenerates it, `npm run check:postman-collection` (wired into `npm run gate`) fails when it drifts from the spec. Docs: [docs/api-reference.md](docs/api-reference.md) |-| Agent mail (inbox, rules, send controls) | Page [pages/agent-mail.html](pages/agent-mail.html) `→ /agents/:id/mail` and `/agent-mail` + [src/agent-mail.js](src/agent-mail.js), REST [api/v1/agent-mail.js](api/v1/agent-mail.js) `→ /api/v1/agents/:id/mail/*`, MCP [api/_mcp/tools/mail.js](api/_mcp/tools/mail.js), service [api/_lib/mail/](api/_lib/mail) (service, controls, untrusted, rules, inbound, content rules, spam, threading, extract, otp), webhook [api/mail/inbound.js](api/mail/inbound.js), migration [api/_lib/migrations/20261010184500_agent_mail_controls.sql](api/_lib/migrations/20261010184500_agent_mail_controls.sql) | Built, ships with the next deploy; outside delivery waits on the `agents.three.ws` DNS records (owner) | Each agent can hold an address on `agents.three.ws`: quote-then-confirm mailbox creation and sends that show the exact recipients and body first, content rules, a per-agent recipient allowlist and daily send cap that only a signed-in owner can change, instant delivery between agent mailboxes, received mail fenced as untrusted data on every surface, and inbox tools (`inbox_wait_for_code`) that extract one-time codes and sign-in links for signups from owner-listed, authenticated senders only (migration [20261023160000_agent_mail_code_senders.sql](api/_lib/migrations/20261023160000_agent_mail_code_senders.sql)). Owner rules turn matching mail into a read-only, zero-budget agent run, either at once or after a yes in /approvals. Docs: [docs/agent-mail.md](docs/agent-mail.md). Tests: [tests/agent-mail-controls.test.js](tests/agent-mail-controls.test.js) |+| Agent mail (inbox, rules, send controls) | Page [pages/agent-mail.html](pages/agent-mail.html) `→ /agents/:id/mail` and `/agent-mail` + [src/agent-mail.js](src/agent-mail.js), REST [api/v1/agent-mail.js](api/v1/agent-mail.js) `→ /api/v1/agents/:id/mail/*`, MCP [api/_mcp/tools/mail.js](api/_mcp/tools/mail.js), service [api/_lib/mail/](api/_lib/mail) (service, controls, untrusted, rules, inbound, content rules, spam, threading, extract, otp), webhook [api/mail/inbound.js](api/mail/inbound.js), migration [api/_lib/migrations/20261010184500_agent_mail_controls.sql](api/_lib/migrations/20261010184500_agent_mail_controls.sql) | Built, ships with the next deploy; outside delivery waits on the `agents.three.ws` DNS records (owner) | Each agent can hold an address on `agents.three.ws`: quote-then-confirm mailbox creation and sends that show the exact recipients and body first, content rules, a per-agent recipient allowlist and daily send cap that only a signed-in owner can change, instant delivery between agent mailboxes, received mail fenced as untrusted data on every surface, and inbox tools (`inbox_wait_for_code`) that extract one-time codes and sign-in links for signups from owner-listed, authenticated senders only (migration [20261023160000_agent_mail_code_senders.sql](api/_lib/migrations/20261023160000_agent_mail_code_senders.sql)). Owner rules turn matching mail into a read-only, zero-budget agent run, either at once or after a yes in /approvals. Docs: [docs/agent-mail.md](docs/agent-mail.md). Tests: [tests/agent-mail-controls.test.js](tests/agent-mail-controls.test.js), [tests/agent-inbox-otp.test.js](tests/agent-inbox-otp.test.js) || Agent commerce (invoices, sends, offers, limit requests) | Owner console [pages/commerce.html](pages/commerce.html) `→ /commerce` and `/invoices` + [src/commerce-page.js](src/commerce-page.js), public invoice and receipt page [pages/agent-invoice.html](pages/agent-invoice.html) `→ /invoices/:id` + [src/agent-invoice-page.js](src/agent-invoice-page.js), REST [api/agent-commerce/[...route].js](api/agent-commerce/[...route].js) `→ /api/agent-commerce/*`, library [api/_lib/agent-commerce/](api/_lib/agent-commerce), MCP [api/_mcpagent/commerce-tools.js](api/_mcpagent/commerce-tools.js) on `/api/mcp-agent`, watcher cron [api/cron/agent-invoice-watch.js](api/cron/agent-invoice-watch.js), migration [api/_lib/migrations/20261010221500_agent_commerce.sql](api/_lib/migrations/20261010221500_agent_commerce.sql) | Built, ships with the next deploy | Agents and owners issue invoices in USDC, SOL or $THREE, payable by Solana Pay link or QR; a per-minute watcher matches payments by reference key and memo and moves invoices to paid, underpaid or expired, with webhooks, owner notifications and a public receipt. Paid mainnet invoices feed the earnings ledger. `agent_send` is preview-then-confirm and gated by the destination allowlist and approvals; offers sell with a quote and an explicit confirm and release the fulfillment only once the chain shows payment; `spending_setup` proposals need the owner's step-up (password, fresh sign-in or a linked-wallet signature) and can never be approved by the agent. Docs: [docs/agent-commerce.md](docs/agent-commerce.md). Tests: [tests/agent-commerce-invoices.test.js](tests/agent-commerce-invoices.test.js) || Agent perps (perpetual futures desk) | Page [pages/agent-perps.html](pages/agent-perps.html) `→ /agents/:id/perps` and `/agent-perps` + [src/agent-perps.js](src/agent-perps.js) + [src/agent-perps.css](src/agent-perps.css), REST [api/v1/agents/[id]/perps/[...path].js](api/v1/agents/[id]/perps/[...path].js) over [api/_lib/perps/routes.js](api/_lib/perps/routes.js) `→ /api/v1/agents/:id/perps/*`, MCP [api/_mcpagent/perps-tools.js](api/_mcpagent/perps-tools.js) (`perps_*` on `/api/mcp-agent`), service [api/_lib/perps/service.js](api/_lib/perps/service.js), venue contract and registry [api/_lib/perps/index.js](api/_lib/perps/index.js), venue module [api/_lib/perps/phoenix.js](api/_lib/perps/phoenix.js), paper ledger [api/_lib/perps/paper.js](api/_lib/perps/paper.js), limits [api/_lib/perps/limits.js](api/_lib/perps/limits.js), alerts [api/_lib/perps/alerts.js](api/_lib/perps/alerts.js), cron [api/cron/perps-tick.js](api/cron/perps-tick.js), migration [api/_lib/migrations/20261010213000_perps_desk.sql](api/_lib/migrations/20261010213000_perps_desk.sql) | Built, ships with the next deploy (paper by default; live per agent once the owner turns it on) | An agent goes long or short with USDC collateral from its own Solana wallet. Every action is a preview then a confirmed, idempotent execute that refuses if the quote moved past tolerance. Mandatory per-agent leverage and per-position margin caps (2x and $25 by default), slippage and quote-move limits, a live tracker stream with PnL, funding and liquidation distance, owner alert thresholds delivered through notifications, and a kill switch that cancels and closes everything. Paper mode fills at live prices; live transactions are simulated before the agent wallet signs. Docs: [docs/perps.md](docs/perps.md). Tests: [tests/perps-desk.test.js](tests/perps-desk.test.js) || Papertrade reads (HyperEVM synthetic perps) | REST [api/papertrade.js](api/papertrade.js) `→ /api/papertrade?view=markets, quote, account or protocol`, MCP [api/_mcpagent/papertrade-tools.js](api/_mcpagent/papertrade-tools.js) (`papertrade_*` on `/api/mcp-agent`), client and service [api/_lib/papertrade/index.js](api/_lib/papertrade/index.js), position math [api/_lib/papertrade/math.js](api/_lib/papertrade/math.js) | Built, ships with the next deploy | Read-only window onto Papertrade: live markets priced at the Hyperliquid mid, exact open quotes (hard-bust price, capacity limits, and the payout ladder after the deadband, impact haircut and live win fee), any wallet's positions valued live, and protocol health including the payout queue. Nothing signs or trades. Docs: [docs/papertrade.md](docs/papertrade.md). Tests: [tests/papertrade-math.test.js](tests/papertrade-math.test.js) |diff --git a/data/changelog.json b/data/changelog.jsonindex 9824b7de6..08038319a 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -10,6 +10,15 @@],"link": "/agent-mail"},+ {+ "date": "2026-10-23",+ "title": "Agents can sign up to services: inbox codes and sign-in links",+ "summary": "An agent's own address can now receive verification emails and hand back the one-time code or sign-in link. New inbox_list, inbox_read and inbox_wait_for_code tools read the code with a confidence score, only from services the owner lists under Code senders, only from authentic non-spam mail. Email bodies stay untrusted data and links are never fetched for the agent.",+ "tags": [+ "feature"+ ],+ "link": "/agent-mail"+ },{"date": "2026-10-23","title": "Chain turnover on /chains",diff --git a/docs/agent-mail.md b/docs/agent-mail.mdindex eaa5f84ca..70e11ed56 100644--- a/docs/agent-mail.md+++ b/docs/agent-mail.md@@ -211,7 +211,7 @@ Example flow, an agent registering on a service:2. agent: inbox_wait_for_code { agent_id, from: "@accounts.example", kind: "code", timeout_s: 45 }-> { "found": true,"result": { "sender": { "address": "[email protected]" },- "best_code": { "value": "482913", "kind": "numeric", "confidence": 0.95,+ "best_code": { "value": "482913", "kind": "numeric", "confidence": 0.85,"reasons": ["near_code_phrase", "subject_mentions_code"] },"best_link": null },"skipped": {}, "waited_s": 6.0 }