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(app): route the deploy pill to the on-chain deployment agent

nirholas7a2706d0baf8
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 749e86224..c1771329e 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr
- **Reliability sweep: faster galleries, working voices, sturdier pages** — A pass over every error in the production logs. Avatar thumbnails and 3D models now load through three.ws itself instead of a rate-limited storage domain, so gallery pages stop dropping images under load. Text-to-speech voices are back (the upstream voice service had changed its protocol). Leaving a world on /play no longer hits a crash that could leave the session connected in the background. The homepage 3D demos politely step aside on devices without WebGL instead of breaking, payment demo requests get more time to settle on-chain, and the $THREE market stats failover stops hammering an exhausted data provider. `[fix, improvement, infra]`
- **Sketch-to-3D comes to the Forge** — Forge gains a third way to make a model: draw it. The new “From a sketch” mode takes one drawing plus a short line saying what it depicts and generates real 3D geometry from it, powered by a self-hosted TripoSG sketch engine — the same research-grade model family behind Tripo. Sketch results are untextured geometry by design, so the existing Stylize and Retexture tools pick up right where it leaves off. The tab appears automatically once the sketch engine is live on the deployment. (`/forge`) `[feature]`
- **The 3D world is back on solid ground — and locked against griefing** — world.three.ws was dropping every visitor into a black void: the shared scene's script file had gone missing, so the ground unloaded the moment you joined. We restored the scene, cleared out broken leftover objects, and the meadow, sky, and sunlight are back. Building in the world now requires an admin code, so visitors can no longer delete the ground or fill the space with broken uploads, and the upload size cap was tightened. A new automated health check watches the world's assets so this class of breakage gets caught before anyone falls through the floor again. `[fix, security, infra]`
+- **The app's deploy pill now takes you to the deployment agent** — The on-chain button under the viewer used to flip to “Deployed ✓ Solana” and open a block-explorer wallet page — a dead end. It now always reads “Deploy on Solana” and hands you to the on-chain deployment agent, a guided flow for putting your 3D asset on Solana, right inside the app. (`/app?agent=67bf6e67-93bb-40c6-9a6b-91e921696248`) `[improvement]`
- **zauth's security agent moves into the $THREE town** — A new character stands in the $THREE town plaza on /play: the security agent from zauth, the x402 trust company. Walk up and it calls zauth's live paid API on the spot, quoting the real on-chain price for a RepoScan — name any GitHub repository and for $0.05 USDC, paid from your own wallet straight to zauth on Solana or Base, it scans the code for provenance, contributor verification, and vulnerabilities, then hands back a 0–100 trust score with a full written report. Scans keep running while you play; the agent calls out when your report is ready. (`/play`) `[feature]`
## 2026-06-11
diff --git a/data/changelog.json b/data/changelog.json
index e42f8a468..ffb45445a 100644
--- a/data/changelog.json
+++ b/data/changelog.json
@@ -1145,6 +1145,15 @@
"improvement"
],
"link": "/forge"
+ },
+ {
+ "date": "2026-06-12",
+ "title": "The app's deploy pill now takes you to the deployment agent",
+ "summary": "The on-chain button under the viewer used to flip to “Deployed ✓ Solana” and open a block-explorer wallet page — a dead end. It now always reads “Deploy on Solana” and hands you to the on-chain deployment agent, a guided flow for putting your 3D asset on Solana, right inside the app.",
+ "tags": [
+ "improvement"
+ ],
+ "link": "/app?agent=67bf6e67-93bb-40c6-9a6b-91e921696248"
}
]
}
diff --git a/pages/app-demo.html b/pages/app-demo.html
index 42d5b5cf2..e78bf6c3e 100644
--- a/pages/app-demo.html
+++ b/pages/app-demo.html
@@ -130,8 +130,8 @@
class="deploy-onchain-btn"
id="deploy-onchain-btn"
hidden
- aria-label="Publish this agent on-chain"
- title="Publish this agent on-chain (ERC-8004)"
+ aria-label="Deploy this 3D asset on Solana"
+ title="Deploy on Solana — guided on-chain deployment for 3D assets"
>
<svg
xmlns="http://www.w3.org/2000/svg"
@@ -150,7 +150,7 @@
<line x1="12" y1="2" x2="12" y2="22" />
<polyline points="22 8.5 12 15.5 2 8.5" />
</svg>
- <span data-state-label>Deploy on-chain</span>
+ <span data-state-label>Deploy on Solana</span>
</a>
<a
class="view-public-profile-btn"
diff --git a/pages/app-next.html b/pages/app-next.html
index b89ecd4c3..113b23bba 100644
--- a/pages/app-next.html
+++ b/pages/app-next.html
@@ -436,15 +436,15 @@
class="nxt-action nxt-action--deploy"
id="nxt-deploy-btn"
hidden
- aria-label="Publish this agent on-chain (ERC-8004)"
- title="Publish this agent on-chain (ERC-8004)"
+ aria-label="Deploy this 3D asset on Solana"
+ title="Deploy on Solana — guided on-chain deployment for 3D assets"
>
<svg viewBox="0 0 20 20" width="14" height="14" aria-hidden="true">
<polygon points="10 2 18 7 18 13 10 18 2 13 2 7 10 2" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linejoin="round" />
<line x1="10" y1="2" x2="10" y2="18" stroke="currentColor" stroke-width="1.5" />
<polyline points="18 7 10 12 2 7" stroke="currentColor" stroke-width="1.5" fill="none" stroke-linejoin="round" />
</svg>
- <span id="nxt-deploy-label" data-state-label>Deploy on-chain</span>
+ <span id="nxt-deploy-label" data-state-label>Deploy on Solana</span>
</a>
<button
@@ -466,7 +466,7 @@
keep IDs and inner structure stable.
-->
<div class="nxt-hidden-hosts" aria-hidden="true" hidden>
- <a id="deploy-onchain-btn" hidden><span data-state-label>Deploy on-chain</span></a>
+ <a id="deploy-onchain-btn" hidden><span data-state-label>Deploy on Solana</span></a>
<a id="view-public-profile-btn" hidden></a>
</div>
@@ -533,7 +533,7 @@
class="nxt-share-deploy"
id="nxt-share-deploy"
hidden
- aria-label="Publish this agent on-chain"
+ aria-label="Deploy this 3D asset on Solana"
>
<span class="nxt-share-deploy__icon" aria-hidden="true">
<svg viewBox="0 0 20 20" width="16" height="16">
@@ -543,8 +543,8 @@
</svg>
</span>
<span class="nxt-share-deploy__copy">
- <span class="nxt-share-deploy__title" id="nxt-share-deploy-label" data-state-label>Deploy on-chain</span>
- <span class="nxt-share-deploy__sub" id="nxt-share-deploy-sub">Register this agent's identity on ERC-8004 — anyone can find and embed it.</span>
+ <span class="nxt-share-deploy__title" id="nxt-share-deploy-label" data-state-label>Deploy on Solana</span>
+ <span class="nxt-share-deploy__sub" id="nxt-share-deploy-sub">Hand off to the deployment agent — put this 3D asset on Solana.</span>
</span>
<svg class="nxt-share-deploy__chev" viewBox="0 0 16 16" width="12" height="12" aria-hidden="true">
<path d="M5 3l5 5-5 5" stroke="currentColor" stroke-width="1.6" fill="none" stroke-linecap="round" stroke-linejoin="round" />
diff --git a/pages/app.html b/pages/app.html
index b43da4e23..19127bf2c 100644
--- a/pages/app.html
+++ b/pages/app.html
@@ -129,8 +129,8 @@
class="deploy-onchain-btn"
id="deploy-onchain-btn"
hidden
- aria-label="Publish this agent on-chain"
- title="Publish this agent on-chain (ERC-8004)"
+ aria-label="Deploy this 3D asset on Solana"
+ title="Deploy on Solana — guided on-chain deployment for 3D assets"
>
<svg
xmlns="http://www.w3.org/2000/svg"
@@ -149,7 +149,7 @@
<line x1="12" y1="2" x2="12" y2="22" />
<polyline points="22 8.5 12 15.5 2 8.5" />
</svg>
- <span data-state-label>Deploy on-chain</span>
+ <span data-state-label>Deploy on Solana</span>
</a>
<a
class="view-public-profile-btn"
diff --git a/public/changelog.json b/public/changelog.json
index 8c06f98be..99e89b64a 100644
--- a/public/changelog.json
+++ b/public/changelog.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-12T07:28:51.451Z",
+ "generated_at": "2026-06-12T07:41:43.186Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json",
"site": {
"name": "three.ws",
@@ -153,6 +153,16 @@
"infra"
]
},
+ {
+ "date": "2026-06-12",
+ "type": "update",
+ "title": "The app's deploy pill now takes you to the deployment agent",
+ "summary": "The on-chain button under the viewer used to flip to “Deployed ✓ Solana” and open a block-explorer wallet page — a dead end. It now always reads “Deploy on Solana” and hands you to the on-chain deployment agent, a guided flow for putting your 3D asset on Solana, right inside the app.",
+ "link": "/app?agent=67bf6e67-93bb-40c6-9a6b-91e921696248",
+ "tags": [
+ "improvement"
+ ]
+ },
{
"date": "2026-06-12",
"type": "update",
diff --git a/public/changelog.xml b/public/changelog.xml
index 6513dec87..efda16128 100644
--- a/public/changelog.xml
+++ b/public/changelog.xml
@@ -118,6 +118,14 @@
<category>fix</category>
<description>world.three.ws was dropping every visitor into a black void: the shared scene's script file had gone missing, so the ground unloaded the moment you joined. We restored the scene, cleared out broken leftover objects, and the meadow, sky, and sunlight are back. Building in the world now requires an admin code, so visitors can no longer delete the ground or fill the space with broken uploads, and the upload size cap was tightened. A new automated health check watches the world's assets so this class of breakage gets caught before anyone falls through the floor again.</description>
</item>
+ <item>
+ <title>The app's deploy pill now takes you to the deployment agent</title>
+ <link>https://three.ws/app?agent=67bf6e67-93bb-40c6-9a6b-91e921696248</link>
+ <guid isPermaLink="false">2026-06-12:The app's deploy pill now takes you to the deployment agent</guid>
+ <pubDate>Fri, 12 Jun 2026 12:00:00 GMT</pubDate>
+ <category>improvement</category>
+ <description>The on-chain button under the viewer used to flip to “Deployed ✓ Solana” and open a block-explorer wallet page — a dead end. It now always reads “Deploy on Solana” and hands you to the on-chain deployment agent, a guided flow for putting your 3D asset on Solana, right inside the app.</description>
+ </item>
<item>
<title>zauth's security agent moves into the $THREE town</title>
<link>https://three.ws/play</link>
diff --git a/public/features.json b/public/features.json
index ad3efb478..39837ea54 100644
--- a/public/features.json
+++ b/public/features.json
@@ -1,5 +1,5 @@
{
- "generated_at": "2026-06-12T07:28:51.439Z",
+ "generated_at": "2026-06-12T07:41:43.171Z",
"generated_by": "scripts/build-page-index.mjs from data/pages.json",
"site": {
"name": "three.ws",
diff --git a/src/app-next-overlay.js b/src/app-next-overlay.js
index a8e97cb53..2c389d23a 100644
--- a/src/app-next-overlay.js
+++ b/src/app-next-overlay.js
@@ -972,7 +972,7 @@ function wirePrimaryCTA() {
// ── Deploy on-chain mirror ────────────────────────────────────────────────
//
// /src/app.js owns the canonical deploy CTA via #deploy-onchain-btn — it sets
-// .href, .hidden, and the inner [data-state-label] (e.g. "Deployed ✓ Solana").
+// .href, .hidden, and the inner [data-state-label] ("Deploy on Solana").
// We mirror that state into two visible Next surfaces:
//
// • #nxt-deploy-btn — pill in the secondary action bar
@@ -1035,9 +1035,8 @@ function wireDeployMirror() {
t.btn.classList.toggle('is-deployed', isDeployed);
if (t.label) t.label.textContent = labelText;
if (t.subEl) {
- t.subEl.textContent = isDeployed
- ? 'This agent is live on-chain. Open the block explorer to verify.'
- : "Register this agent's identity on ERC-8004 — anyone can find and embed it.";
+ t.subEl.textContent =
+ 'Hand off to the deployment agent — put this 3D asset on Solana.';
}
}
};
diff --git a/src/app.js b/src/app.js
index b3b5d8463..5207fa03e 100644
--- a/src/app.js
+++ b/src/app.js
@@ -18,6 +18,10 @@ import { resolveURI, isDecentralizedURI } from './ipfs.js';
// viewer fetch and render an attacker-hosted GLB under the three.ws origin
// (brand-spoof / phishing).
const TRUSTED_ASSET_HOST_RE = /(^|\.)(three\.ws|r2\.dev|mypinata\.cloud|pinata\.cloud|ipfs\.io|dweb\.link|arweave\.net)$/i;
+// The on-chain deployment agent — the guided flow for deploying 3D assets on
+// Solana. The "Deploy on Solana" CTA in /app always routes here.
+const ONCHAIN_DEPLOY_AGENT_ID = '67bf6e67-93bb-40c6-9a6b-91e921696248';
+const ONCHAIN_DEPLOY_AGENT_URL = `/app?agent=${ONCHAIN_DEPLOY_AGENT_ID}`;
function isSafeQueryModelUrl(raw) {
if (!raw || typeof raw !== 'string') return false;
if (raw.startsWith('/') && !raw.startsWith('//')) return true; // same-origin relative
@@ -748,23 +752,11 @@ class App {
btn.hidden = !hasModel;
}
- // Build a `&model=<url>` suffix for the deploy button when the viewer is
- // currently showing a hosted GLB. blob:/data: URLs aren't carryable across
- // a navigation, so we drop them and let /deploy fall back to its defaults.
- _deployModelParam() {
- const url = this._currentModelUrl || '';
- if (!url) return '';
- if (url.startsWith('blob:') || url.startsWith('data:')) return '';
- return `&model=${encodeURIComponent(url)}`;
- }
-
- // Surface the right deploy CTA next to the public-profile link in /app:
- // • "Deploy on-chain" → /deploy?avatar=<id> (un-registered agent)
- // • "Deployed ✓" → block-explorer URL (already on-chain)
- // Falls back to the bare /deploy page if we can't read the agent record
- // (fetch error, anonymous, etc.) so the affordance never disappears once
- // we know there's an agent in scope.
- async _refreshDeployButton(agentId) {
+ // Surface the deploy CTA next to the public-profile link in /app. It always
+ // reads "Deploy on Solana" and hands the user to the on-chain deployment
+ // agent — the guided flow for putting 3D assets on Solana — never to a bare
+ // block-explorer wallet page, which dead-ends the user.
+ _refreshDeployButton(agentId) {
const btn = document.getElementById('deploy-onchain-btn');
if (!btn || !agentId) return;
@@ -772,85 +764,12 @@ class App {
btn.classList.remove('is-deployed');
btn.removeAttribute('target');
btn.removeAttribute('rel');
- if (label) label.textContent = 'Deploy on-chain';
- btn.setAttribute('aria-label', 'Publish this agent on-chain');
- btn.setAttribute('title', 'Publish this agent on-chain (ERC-8004)');
- // Carry the viewer's current model URL across so /deploy doesn't fall
- // back to the CZ avatar when the agent hasn't been saved yet. Skip
- // blob:/data: URLs — they don't survive a navigation.
- const modelParam = this._deployModelParam();
- btn.href = `/deploy?agent=${encodeURIComponent(agentId)}${modelParam}`;
- btn.hidden = false;
-
- try {
- const resp = await fetch(`/api/agents/${agentId}`, { credentials: 'include' });
- if (!resp.ok) return;
- const { agent } = await resp.json();
- if (!agent) return;
-
- if (agent.avatar_id && !btn.dataset.avatarPrefilled) {
- btn.href = `/deploy?avatar=${encodeURIComponent(agent.avatar_id)}`;
- btn.dataset.avatarPrefilled = '1';
- }
-
- // Solana-first: three.ws prioritizes Solana over any EVM registration.
- // A Metaplex Core identity (sol_mint_address) or a Solana wallet
- // (solana_address) means this agent lives on Solana — surface that
- // even when a legacy ERC-8004 chain_id is also present on the record.
- const meta = agent.meta || {};
- const solRef = meta.sol_mint_address || meta.solana_address || null;
- if (solRef) {
- const onDevnet = meta.network === 'devnet';
- const path = meta.sol_mint_address ? 'token' : 'account';
- const url = onDevnet
- ? `https://explorer.solana.com/address/${solRef}?cluster=devnet`
- : `https://solscan.io/${path}/${solRef}`;
- btn.classList.add('is-deployed');
- btn.href = url;
- btn.target = '_blank';
- btn.rel = 'noopener';
- if (label) label.textContent = 'Deployed ✓ Solana';
- btn.setAttribute(
- 'aria-label',
- 'This agent is on Solana. Open the explorer in a new tab.',
- );
- btn.setAttribute('title', 'On-chain on Solana — view on explorer');
- return;
- }
-
- const isDeployed = agent.erc8004_agent_id && agent.chain_id;
- if (!isDeployed) return;
-
- const { CHAIN_META, addressExplorerUrl, tokenExplorerUrl } = await import(
- './erc8004/chain-meta.js'
- );
- const chainName = CHAIN_META[agent.chain_id]?.name || `chain ${agent.chain_id}`;
- let url = '';
- if (agent.erc8004_registry) {
- url = tokenExplorerUrl(
- agent.chain_id,
- agent.erc8004_registry,
- agent.erc8004_agent_id,
- );
- }
- if (!url && agent.erc8004_registry) {
- url = addressExplorerUrl(agent.chain_id, agent.erc8004_registry);
- }
- if (!url) url = `/agent/${agentId}`;
-
- btn.classList.add('is-deployed');
- btn.href = url;
- btn.target = '_blank';
- btn.rel = 'noopener';
- if (label) label.textContent = `Deployed ✓ ${chainName}`;
- btn.setAttribute(
- 'aria-label',
- `This agent is registered on ${chainName}. Open block explorer in a new tab.`,
- );
- btn.setAttribute('title', `On-chain on ${chainName} — view on explorer`);
- } catch {
- /* keep the un-deployed CTA */
- }
+ if (label) label.textContent = 'Deploy on Solana';
+ btn.setAttribute('aria-label', 'Deploy this 3D asset on Solana');
+ btn.setAttribute('title', 'Deploy on Solana — guided on-chain deployment for 3D assets');
+ btn.href = ONCHAIN_DEPLOY_AGENT_URL;
+ // On the deployment agent's own page the CTA would link to itself — hide it.
+ btn.hidden = agentId === ONCHAIN_DEPLOY_AGENT_ID;
}
_setupSaveToAccount() {