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(settings): pin the GitHub disconnect handler that the card crashes without
nirholas8c63efa13153
diff --git a/public/settings/index.html b/public/settings/index.htmlindex 7d65b2b25..a743bbbd5 100644--- a/public/settings/index.html+++ b/public/settings/index.html@@ -935,7 +935,6 @@// The catalog the user is shown IS the permission boundary: the seed POST// sends only ticked keys, and the server refuses anything not in it.let seedAgentId = '';- let seedCatalog = null;let seedMounted = false;const esc = (s) => String(s ?? '').replace(/[&<>"]/g, (c) => ({ '&': '&', '<': '<', '>': '>', '"': '"' }[c]));@@ -996,7 +995,6 @@const root = document.getElementById('seed-catalog');const revokeBtn = document.getElementById('seed-revoke-btn');if (!root) return;- seedCatalog = data.catalog;if (revokeBtn) {revokeBtn.style.display = data.fact_count > 0 ? 'inline-flex' : 'none';diff --git a/tests/github-memory-seed.test.js b/tests/github-memory-seed.test.jsindex 0040c8ab7..7bbe18380 100644--- a/tests/github-memory-seed.test.js+++ b/tests/github-memory-seed.test.js@@ -417,3 +417,20 @@ describe('settings consent panel wiring', () => {expect(html).toContain('readmes: readmes.filter((k) => repos.includes(k))');});});++// The Disconnect button used to call a handler that was never defined, so the+// reference threw and the whole GitHub card fell into "Could not load status"+// for exactly the users who had something seeded to revoke.+describe('settings disconnect handler', () => {+ const html = readFileSync(new URL('../public/settings/index.html', import.meta.url), 'utf8');++ it('defines the handler the Disconnect button is wired to', () => {+ expect(html).toContain("addEventListener('click', disconnectGitHub)");+ expect(html).toContain('async function disconnectGitHub()');+ });++ it('revokes through the account-wide disconnect endpoint and reports the deletion', () => {+ expect(html).toContain("apiJson('/api/auth/github/disconnect', { method: 'POST' })");+ expect(html).toContain('memories_deleted');+ });+});