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
Sync workspace: custody proof and x402 identity-claim verification updates
nirholas977c335a7608
diff --git a/api/_lib/custody-proof.js b/api/_lib/custody-proof.jsindex c9c50ab4a..6e5bc51b8 100644--- a/api/_lib/custody-proof.js+++ b/api/_lib/custody-proof.js@@ -142,42 +142,40 @@ export async function runAttestationEpoch({ anchor = true } = {}) {const leaves = [];let totalLamports = 0n;let rpcFailures = 0;- for (let i = 0; i < wallets.length; i += BALANCE_READ_CONCURRENCY) {- if (Date.now() >= deadline) {- // Out of snapshot time — skip the remaining wallets this epoch (same- // contract as an RPC failure: never attest a balance we didn't read).- rpcFailures += wallets.length - i;- break;- }- const batch = wallets.slice(i, i + BALANCE_READ_CONCURRENCY);- const results = await Promise.all(batch.map(async (w) => {- const lamports = await readLamports(conn, w.address);- // An RPC failure must not silently attest a wrong (zero) balance. Skip- // the wallet this epoch rather than committing an unverifiable leaf; it- // is included again next epoch once RPC recovers.- if (lamports == null) return null;- const balanceLamports = String(lamports);- const ledgerHead = await ledgerHeadFor(w.agentId, SNAPSHOT_NETWORK);- const leafHash = await computeLeafHash({- agentId: w.agentId,- address: w.address,- balanceLamports,- ledgerHead,- epoch: epochNum,- });- return {- agentId: w.agentId,- address: w.address,- balanceLamports,- ledgerHead,- leafHash,- };- }));- for (const leaf of results) {- if (leaf == null) { rpcFailures++; continue; }- leaves.push(leaf);- totalLamports += BigInt(leaf.balanceLamports);- }+ // A bounded pool rather than fixed batches: with batching, one slow RPC read+ // held its whole batch's slots idle until it drained. `mapPool` keeps every+ // slot busy and still returns results in wallet order, so the tree stays+ // deterministic.+ const results = await mapPool(wallets, BALANCE_READ_CONCURRENCY, async (w) => {+ // Out of snapshot time — skip the remaining wallets this epoch (same+ // contract as an RPC failure: never attest a balance we didn't read).+ if (Date.now() >= deadline) return null;+ const lamports = await readLamports(conn, w.address);+ // An RPC failure must not silently attest a wrong (zero) balance. Skip+ // the wallet this epoch rather than committing an unverifiable leaf; it+ // is included again next epoch once RPC recovers.+ if (lamports == null) return null;+ const balanceLamports = String(lamports);+ const ledgerHead = await ledgerHeadFor(w.agentId, SNAPSHOT_NETWORK);+ const leafHash = await computeLeafHash({+ agentId: w.agentId,+ address: w.address,+ balanceLamports,+ ledgerHead,+ epoch: epochNum,+ });+ return {+ agentId: w.agentId,+ address: w.address,+ balanceLamports,+ ledgerHead,+ leafHash,+ };+ });+ for (const leaf of results) {+ if (leaf == null) { rpcFailures++; continue; }+ leaves.push(leaf);+ totalLamports += BigInt(leaf.balanceLamports);}const tree = await buildMerkleTree(leaves.map((l) => l.leafHash));diff --git a/api/_lib/x402/identity-claim-verify.js b/api/_lib/x402/identity-claim-verify.jsindex f4a248749..9d3d0a733 100644--- a/api/_lib/x402/identity-claim-verify.js+++ b/api/_lib/x402/identity-claim-verify.js@@ -149,12 +149,14 @@ export const realDeps = {// and absent evidence is simply not counted.async resolveEns(name) {try {+ const { ensResolveAddress } = await import('../evm/ens.js');return normEvm(await ensResolveAddress(name, { timeoutMs: 5000 }));} catch { return null; }},// ENS reverse resolution (address → primary name) — extra corroborating evidence.async reverseEns(address) {try {+ const { ensLookupName } = await import('../evm/ens.js');return (await ensLookupName(address, { timeoutMs: 5000 })) || null;} catch { return null; }},diff --git a/public/changelog.json b/public/changelog.jsonindex 008fa2412..b92253513 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-29T05:19:39.720Z",+ "generated_at": "2026-07-29T05:22:47.223Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",diff --git a/public/features.json b/public/features.jsonindex 7b9e4f124..978e18006 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-07-29T05:19:39.668Z",+ "generated_at": "2026-07-29T05:22:47.185Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/robinhood/hood-mcp/package-lock.json b/robinhood/hood-mcp/package-lock.jsonindex c087f56c4..6c75588b5 100644--- a/robinhood/hood-mcp/package-lock.json+++ b/robinhood/hood-mcp/package-lock.json@@ -7,7 +7,7 @@"": {"name": "hood-mcp","version": "0.1.0",- "license": "Apache-2.0",+ "license": "SEE LICENSE IN LICENSE","dependencies": {"@modelcontextprotocol/sdk": "^1.29.0","hoodchain": "^0.1.0",