Skip to content

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.

fix: update agent wallet address visibility for owners in GET /api/agents response

nirholas55f9c2db5a75
diff --git a/tests/api/agents.test.js b/tests/api/agents.test.js
index abe845a9a..c1a4b620f 100644
--- a/tests/api/agents.test.js
+++ b/tests/api/agents.test.js
@@ -132,10 +132,8 @@ describe('GET /api/agents — list', () => {
expect(body.agents[0].home_url).toBe('/agent/agent-1');
// decorate() must strip encrypted_wallet_key from meta
expect(body.agents[0].meta.encrypted_wallet_key).toBeUndefined();
- // NOTE: handleList uses `rows.map(decorate)`, so `isOwner` receives the
- // array index (a falsy 0 for the first item) — owner-only fields are
- // omitted here. Verified against current api/agents.js behavior.
- expect(body.agents[0].wallet_address).toBeUndefined();
+ // Owner sees their own wallet_address
+ expect(body.agents[0].wallet_address).toBe('0xabc');
});
it('accepts bearer token as auth source', async () => {