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
test(vanity): let the grind fail with its own error instead of a vitest timeout
nirholasba1535c10e80
diff --git a/tests/three-ws-mark.test.js b/tests/three-ws-mark.test.jsindex 2ef765e44..eb1711bd0 100644--- a/tests/three-ws-mark.test.js+++ b/tests/three-ws-mark.test.js@@ -110,12 +110,15 @@ describe('THREE_WS_VANITY', () => {});// ── grindVanityNode with THREE_WS_VANITY ───────────────────────────────────-// Real CPU grind — sub-second for a 3-char case-insensitive prefix but-// marked with a longer timeout to be explicit.+// Real CPU grind — sub-second for a 3-char case-insensitive prefix on an idle+// core, but this suite runs it alongside 1500+ other files, so the WASM thread+// may only see a fraction of a core. The grind budget must stay BELOW the test+// timeout: that way a slow box fails with GrindExhaustedError (which carries+// the attempt count and duration) instead of vitest's opaque wall-clock kill.describe('grindVanityNode({ ...THREE_WS_VANITY })', () => {- it('returns a publicKey that carries the three.ws mark', { timeout: 30_000 }, () => {- const result = grindVanityNode({ ...THREE_WS_VANITY });+ it('returns a publicKey that carries the three.ws mark', { timeout: 120_000 }, () => {+ const result = grindVanityNode({ ...THREE_WS_VANITY, timeBudgetMs: 90_000 });expect(typeof result.publicKey).toBe('string');expect(hasThreeWsMark(result.publicKey)).toBe(true);expect(result.secretKey).toBeInstanceOf(Uint8Array);