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
fix(reputation): call the dash-form solana reputation endpoints and release 0.1.1
nirholas593654db5e79
diff --git a/packages/reputation/README.md b/packages/reputation/README.mdindex 2a477e302..ecdef992a 100644--- a/packages/reputation/README.md+++ b/packages/reputation/README.md@@ -129,7 +129,7 @@ console.log(receipt.signature); // → on-chain tx signatureRead an agent's reputation. `agent` is either a three.ws agent **UUID** (returnsthe platform wallet-trust score from `GET /api/agents/{id}/reputation`) or a**Solana asset/mint** base58 address (returns the on-chain attestation aggregate-from `GET /api/agents/solana/reputation`). Any other value throws `invalid_input`.+from `GET /api/agents/solana-reputation`). Any other value throws `invalid_input`.**Options**@@ -202,7 +202,7 @@ validatorExplorer, validatedAt, reason, raw }`. When no attestation exists,Run an agent's GLB through the platform validator and record a signed on-chainvalidation. The target picks the lane:-- **Solana asset** (base58) → `POST /api/agents/solana/validate`.+- **Solana asset** (base58) → `POST /api/agents/solana-validate`.- **EVM** (uint ERC-8004 `agentId`, needs a `chain`) → `POST /api/erc8004/validate`.Requires a signed-in account or an `avatars:write`-scoped token (pass it as@@ -251,7 +251,7 @@ const wallet = await fetch(// On-chain attestation aggregate by Solana assetconst asset = await fetch(- 'https://three.ws/api/agents/solana/reputation?asset=THREEsynthetic1111111111111111111111111111&network=mainnet',+ 'https://three.ws/api/agents/solana-reputation?asset=THREEsynthetic1111111111111111111111111111&network=mainnet',).then((r) => r.json());// Live leaderboard@@ -268,11 +268,11 @@ normalises the snake_case JSON into one camelCase trust block:```agent UUID ──────────▶ GET /api/agents/{id}/reputation ─▶ WalletReputation- Solana asset (base58) ─▶ GET /api/agents/solana/reputation ─▶ SolanaReputation+ Solana asset (base58) ─▶ GET /api/agents/solana-reputation ─▶ SolanaReputation(—) ─────────────────▶ GET /api/reputation/leaderboard ─▶ LeaderboardchainId + agentId ────▶ GET /api/erc8004/validation ─▶ ValidationRead- attest, Solana asset ─▶ POST /api/agents/solana/validate ┐+ attest, Solana asset ─▶ POST /api/agents/solana-validate ┐attest, EVM agentId ──▶ POST /api/erc8004/validate ┴─▶ AttestReceipt (signed on-chain)```diff --git a/packages/reputation/package.json b/packages/reputation/package.jsonindex 645ab4970..0abf0ed6e 100644--- a/packages/reputation/package.json+++ b/packages/reputation/package.json@@ -1,6 +1,6 @@{"name": "@three-ws/reputation",- "version": "0.1.0",+ "version": "0.1.1","description": "Read ERC-8004 agent trust scores and attest agent-to-agent feedback on-chain, in one import. The three.ws reputation SDK — canonical Identity + Reputation registries on Base and 14 other chains.","type": "module","main": "./src/index.js",diff --git a/packages/reputation/src/index.js b/packages/reputation/src/index.jsindex 53a45ee50..49f04fe05 100644--- a/packages/reputation/src/index.js+++ b/packages/reputation/src/index.js@@ -91,7 +91,7 @@ export function createReputation(options = {}) {** `agent` accepts a three.ws agent UUID (the platform wallet-trust score from* GET /api/agents/{id}/reputation) or a Solana asset/mint base58 address (the- * on-chain attestation aggregate from GET /api/agents/solana/reputation). The+ * on-chain attestation aggregate from GET /api/agents/solana-reputation). The* shape is normalised across both so a caller can render one trust block.*/async function reputation(agent, opts = {}) {@@ -104,7 +104,7 @@ export function createReputation(options = {}) {}if (BASE58_RE.test(id)) {const network = normalizeNetwork(opts.network);- const res = await request('/api/agents/solana/reputation', { query: { asset: id, network }, signal: opts.signal });+ const res = await request('/api/agents/solana-reputation', { query: { asset: id, network }, signal: opts.signal });return shapeSolanaReputation(res);}throw new ThreeWsError('reputation() agent must be a three.ws agent UUID or a Solana asset (base58) address.', { code: 'invalid_input' });@@ -146,7 +146,7 @@ export function createReputation(options = {}) {* Record an agent-to-agent attestation on-chain through the platform's signed* attestation lane. Two real lanes back this, picked by the target:* • EVM (chainId + uint agentId) → POST /api/erc8004/validate- * • Solana (base58 asset address) → POST /api/agents/solana/validate+ * • Solana (base58 asset address) → POST /api/agents/solana-validate* Both run the agent's GLB through the platform validator and record a signed* attestation; a retry re-records, idempotent on the lane's own dedupe key.* Requires a session or an `avatars:write`-scoped token (pass it as apiKey).@@ -166,7 +166,7 @@ export function createReputation(options = {}) {network: normalizeNetwork(input.network),glb_url: input.glbUrl,});- const res = await request('/api/agents/solana/validate', { method: 'POST', body, signal: input.signal });+ const res = await request('/api/agents/solana-validate', { method: 'POST', body, signal: input.signal });return shapeAttestReceipt(res, 'solana');}diff --git a/packages/reputation/test/reputation.test.js b/packages/reputation/test/reputation.test.jsindex 0da29f6e1..d485ca013 100644--- a/packages/reputation/test/reputation.test.js+++ b/packages/reputation/test/reputation.test.js@@ -50,7 +50,7 @@ test('reputation(asset) reads the Solana attestation endpoint with network queryconst client = createReputation({ fetch });const rep = await client.reputation(SYNTH_ASSET, { network: 'mainnet' });- assert.equal(calls[0].url.pathname, '/api/agents/solana/reputation');+ assert.equal(calls[0].url.pathname, '/api/agents/solana-reputation');assert.equal(calls[0].url.searchParams.get('asset'), SYNTH_ASSET);assert.equal(calls[0].url.searchParams.get('network'), 'mainnet');assert.equal(rep.kind, 'solana');@@ -118,7 +118,7 @@ test('attest() on a Solana asset posts to the Solana validate lane', async () =>const client = createReputation({ fetch, apiKey: 'token_with_avatars_write' });const receipt = await client.attest({ agent: SYNTH_ASSET, kind: 'validation' });- assert.equal(calls[0].url.pathname, '/api/agents/solana/validate');+ assert.equal(calls[0].url.pathname, '/api/agents/solana-validate');assert.equal(calls[0].init.method, 'POST');assert.equal(JSON.parse(calls[0].init.body).asset_pubkey, SYNTH_ASSET);assert.equal(calls[0].init.headers.authorization, 'Bearer token_with_avatars_write');