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(zauth): remove ZAUTH_DEBUG gate from startup log, add unconditional Batch submitted log

nirholase831fb14f8c8
diff --git a/api/_lib/zauth.js b/api/_lib/zauth.js
index c228af15e..dd26b67ca 100644
--- a/api/_lib/zauth.js
+++ b/api/_lib/zauth.js
@@ -64,8 +64,10 @@ function trackZauthFetch() {
const promise = realFetch(input, init);
if (url.includes(ZAUTH_HOST)) {
_inflight.add(promise);
- const clear = () => _inflight.delete(promise);
- promise.then(clear, clear);
+ promise.then(
+ () => { _inflight.delete(promise); console.log('[zauth] Batch submitted'); },
+ (err) => { _inflight.delete(promise); console.error('[zauth] Batch submit failed:', err.message); },
+ );
}
return promise;
};
@@ -171,8 +173,8 @@ function buildMiddleware() {
},
});
trackZauthFetch();
- if (env.ZAUTH_DEBUG === '1' && !_bootLogged) {
- console.log(`[zauth] middleware initialized (refunds:${refundEnabled ? 'on' : 'off'})`);
+ if (!_bootLogged) {
+ console.log(`[zauth] monitoring enabled (refunds:${refundEnabled ? 'on' : 'off'})`);
_bootLogged = true;
}
return mw;