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(passport): keep rate-and-vouch alive when esm.sh is unreachable

nirholas45664b49bc60
diff --git a/public/agent-passport.html b/public/agent-passport.html
index a026a8f2b..1e1ed5d87 100644
--- a/public/agent-passport.html
+++ b/public/agent-passport.html
@@ -1209,9 +1209,15 @@
let web3Lib = null;
let rateState = { score: 0, asset: null, network: 'devnet', owner: null };
+ // Through /load-module.js, which races the same package version across
+ // esm.sh, jsdelivr and unpkg and rejects with a typed error naming
+ // every host it tried. A single-host import meant one CDN outage or one
+ // ad blocker killed the whole rate-and-vouch path; the error now lands
+ // in the submit handler's catch and is printed by setRateStatus.
async function loadWeb3() {
if (web3Lib) return web3Lib;
- web3Lib = await import(/* @vite-ignore */ WEB3_CDN);
+ const { loadModule } = await import('/load-module.js');
+ web3Lib = await loadModule(WEB3_CDN);
return web3Lib;
}