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.

feat: route /deploy + /showcase to app.html with full-page surfaces

nirholas105de607d345
diff --git a/public/marketplace.css b/public/marketplace.css
index 41f39f890..315506fe8 100644
--- a/public/marketplace.css
+++ b/public/marketplace.css
@@ -48,6 +48,15 @@ body.market-page {
min-height: 100vh;
}
+/* The shared global nav is injected as `<header><div id="nav-container">` — a
+ direct child of this grid body. Left unplaced it lands in the first grid cell,
+ shoving the sidebar into the wide column and the main grid down into the narrow
+ 240px track. Span it across both columns so it sits as a full-width top row and
+ the sidebar/main flow correctly beneath it. */
+body.market-page > header {
+ grid-column: 1 / -1;
+}
+
/* ── Sidebar ─────────────────────────────────────────────────────────── */
.market-sidebar {
diff --git a/src/app.js b/src/app.js
index 59363b3ef..c8660e1f4 100644
--- a/src/app.js
+++ b/src/app.js
@@ -519,7 +519,16 @@ class App {
// Also skip in any kiosk surface (slim /widget shell, public embed
// snippets) so the "Agent" pill doesn't leak across an iframe
// boundary that's meant to be branded by the embedder.
- if (!this.options.widget && !this.options.kiosk && !this._widgetShell) {
+ // Skip on the /deploy wizard and /showcase grid too — those replace
+ // the viewer with a full-page surface, so a floating chat toggle
+ // would just overlap the form/marketplace with nothing to talk to.
+ if (
+ !this.options.widget &&
+ !this.options.kiosk &&
+ !this._widgetShell &&
+ !this.options.deploy &&
+ !this.options.showcase
+ ) {
this._initNichAgent();
}
@@ -544,10 +553,11 @@ class App {
}
_applyViewerMode() {
- const { kiosk, widget, agent, deploy } = this.options;
+ const { kiosk, widget, agent, deploy, showcase } = this.options;
let mode = 'main';
if (kiosk || widget || agent) mode = 'embed';
else if (deploy) mode = 'deploy';
+ else if (showcase) mode = 'explore';
document.body.dataset.viewerMode = mode;
if (mode === 'main') {
// Only use 'pending' (hide gate, hide sidebar) when we have a stored 'true' hint —
diff --git a/src/game/agent-commerce.js b/src/game/agent-commerce.js
index 826e19e8d..96ecaaf6e 100644
--- a/src/game/agent-commerce.js
+++ b/src/game/agent-commerce.js
@@ -59,7 +59,7 @@ const LINES = {
error: 'Payment failed — no charge made.',
},
buyer: {
- idle: 'I need your live rate card. Paying now.',
+ idle: 'I need alpha. Paying now.',
challenge: 'Building and signing the Solana transfer…',
built: 'Signed. Sending to the facilitator for verification.',
verified: 'Verified on-chain. Waiting on settlement…',
diff --git a/vercel.json b/vercel.json
index bf47627e2..43b81eeb7 100644
--- a/vercel.json
+++ b/vercel.json
@@ -744,11 +744,11 @@
},
{
"src": "/deploy",
- "dest": "/app-next.html"
+ "dest": "/app.html"
},
{
"src": "/showcase/?",
- "dest": "/app-next.html"
+ "dest": "/app.html"
},
{
"src": "/dashboard-classic/?",
diff --git a/vite.config.js b/vite.config.js
index 0eb0983bd..0d59b325a 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -20,13 +20,14 @@ const TARGET = process.env.TARGET || 'app';
// so pages like /pumpfun see real SSE feeds and JSON responses in dev.
// Override with DEV_API_PROXY=http://localhost:3001 to point at vercel-dev.
const DEV_API_PROXY = process.env.DEV_API_PROXY || 'https://three.ws';
-// Local-only override for /api/x402-pay (the demo's paid-call backend).
-// Spin up the helper with `node scripts/dev-x402-pay-server.mjs`; if set, the
-// main Vite dev server will route /api/x402-pay → here while other /api/* still
-// proxy to prod. Default is empty so /api/x402-pay falls through to the prod
-// proxy when the helper isn't running — otherwise the first hit to /pay would
-// crash the dev server with an unhandled ECONNREFUSED proxy error.
-const X402_PAY_DEV_URL = process.env.X402_PAY_DEV_URL ?? '';
+// Local override for /api/x402-pay (the demo's paid-call backend) so the agent
+// payments settle from a locally-funded wallet in dev. Spin up the helper with
+// `node scripts/dev-x402-pay-server.mjs` (reads .env for the agent wallet); Vite
+// routes /api/x402-pay → here while other /api/* still proxy to prod. Defaults to
+// the helper's port so a plain `npm run dev` works without an env prefix; if the
+// helper isn't running the proxy's error handler below returns a clean 502 (not a
+// crash). Set X402_PAY_DEV_URL='' to disable and fall back to the prod payer.
+const X402_PAY_DEV_URL = process.env.X402_PAY_DEV_URL ?? 'http://localhost:3032';
// Auto-discover dashboard-next sub-pages so each agent can add an HTML file
// under pages/dashboard-next/ without touching this config. The Rollup input