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
fix(share): point the share panel and autopilot docs at the plural agent route
nirholasb13958f3a390
diff --git a/scripts/dev-a11y-check.mjs b/scripts/dev-a11y-check.mjsnew file mode 100644index 000000000..be22eab55--- /dev/null+++ b/scripts/dev-a11y-check.mjs@@ -0,0 +1,33 @@+import { chromium } from 'playwright';+const url = process.argv[2];+const b = await chromium.launch();+const p = await b.newPage({ viewport: { width: 1440, height: 1000 } });+await p.goto(url, { waitUntil: 'domcontentloaded' }).catch(() => {});+await p.waitForTimeout(6000);++console.log('capability rows:');+for (const r of await p.$$eval('#av-skills-list .av-row', (ns) => ns.map((n) => n.innerText.replace(/\n/g, ' | '))))+ console.log(' ', r);+console.log('summary:', await p.$eval('.av-cap-summary', (n) => n.innerText.replace(/\n/g, ' ')).catch(() => 'none'));++const tabs = await p.$$eval('.av-tab', (ns) =>+ ns.map((n) => `${n.dataset.tab} sel=${n.getAttribute('aria-selected')} ti=${n.tabIndex} ctl=${n.getAttribute('aria-controls')}`));+console.log('tabs:'); tabs.forEach((t) => console.log(' ', t));++await p.click('.av-tab[data-tab="overview"]');+await p.waitForTimeout(300);+console.log('after click overview, url =', p.url());+await p.keyboard.press('ArrowRight');+await p.waitForTimeout(300);+console.log('after ArrowRight focus =', await p.evaluate(() => document.activeElement?.dataset?.tab),+ '| selected =', await p.evaluate(() => document.querySelector('.av-tab.active')?.dataset.tab),+ '| url =', p.url());+await p.keyboard.press('End');+await p.waitForTimeout(300);+console.log('after End focus =', await p.evaluate(() => document.activeElement?.dataset?.tab), '| url =', p.url());+await p.keyboard.press('ArrowRight');+await p.waitForTimeout(300);+console.log('wraps to focus =', await p.evaluate(() => document.activeElement?.dataset?.tab));+console.log('panel roles ok:', await p.$$eval('.av-panel', (ns) => ns.every((n) => n.getAttribute('role') === 'tabpanel' && n.getAttribute('aria-labelledby'))));+console.log('shell aria-busy:', await p.$eval('#av-shell', (n) => n.getAttribute('aria-busy')));+await b.close();diff --git a/src/autopilot-mind.js b/src/autopilot-mind.jsindex 7d69b3654..599be1d36 100644--- a/src/autopilot-mind.js+++ b/src/autopilot-mind.js@@ -1,7 +1,7 @@// Memory-grounded Autopilot — the control surface (Living Agents · Task 08).//// Self-contained module mounted in two places:-// • the Autopilot tab of /agent/{id}/edit (mountAutopilotMind)+// • the Autopilot tab of /agents/{id}/edit (mountAutopilotMind)// • the standalone /autopilot-activity receipts page (renderReceipt is reused)//// It is the legible face of explainable autonomy: the owner grants scopeddiff --git a/src/share-panel-builders.js b/src/share-panel-builders.jsindex c4e6cdba8..29438cdcc 100644--- a/src/share-panel-builders.js+++ b/src/share-panel-builders.js@@ -36,7 +36,7 @@ export function buildEmbedUrl({ origin, agentId, opts = {} }) {}/**- * Build the iframe embed snippet. Uses the canonical /agent/{id}/embed URL,+ * Build the iframe embed snippet. Uses the canonical /agents/{id}/embed URL,* declares a transparent CSS background so external sites composite cleanly,* and lazy-loads to avoid a network hit on hosts that paginate embeds.*diff --git a/tests/share-panel.test.js b/tests/share-panel.test.jsindex 656df21a3..a6f310d39 100644--- a/tests/share-panel.test.js+++ b/tests/share-panel.test.js@@ -17,9 +17,9 @@ const ORIGIN = 'https://three.ws/';const ID = '9fc7f1ba-2f34-4d79-843b-9b34c27e0d72';describe('share-panel — buildEmbedUrl', () => {- it('uses the working /agent/{id}/embed path (not the broken /agent-embed.html?id=...)', () => {+ it('uses the canonical /agents/{id}/embed path (not the broken /agent-embed.html?id=...)', () => {const url = buildEmbedUrl({ origin: ORIGIN, agentId: ID });- expect(url).toBe(`${ORIGIN}/agent/${ID}/embed`);+ expect(url).toBe(`${ORIGIN}/agents/${ID}/embed`);expect(url).not.toContain('/agent-embed.html');});@@ -58,7 +58,7 @@ describe('share-panel — buildIframeSnippet', () => {it('produces a valid iframe with the embed URL', () => {const snippet = buildIframeSnippet({ origin: ORIGIN, agentId: ID });expect(snippet).toContain(`<iframe`);- expect(snippet).toContain(`src="${ORIGIN}/agent/${ID}/embed"`);+ expect(snippet).toContain(`src="${ORIGIN}/agents/${ID}/embed"`);expect(snippet).toContain(`</iframe>`);});@@ -248,6 +248,13 @@ describe('vercel.json — embed route headers', () => {expect(r.dest).toBe('/agent-embed.html');});+ it('rewrites the canonical /agents/{id}/embed to /agent-embed.html with the same CSP', () => {+ const r = routes.find((x) => x.src === '/agents/([^/.]+)/embed');+ expect(r).toBeTruthy();+ expect(r.dest).toBe('/agent-embed.html');+ expect(r?.headers?.['content-security-policy']).toContain('frame-ancestors *');+ });+it('sets a permissive frame-ancestors CSP header so external sites can iframe', () => {const r = routes.find((x) => x.src === '/agent/([^/]+)/embed');expect(r?.headers?.['content-security-policy']).toContain('frame-ancestors *');