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(metaplex-mcp): make the registration builders run in a browser

nirholas2f416120bf50
diff --git a/packages/metaplex-agent-mcp/src/config.js b/packages/metaplex-agent-mcp/src/config.js
index 128bb0724..86ce863d1 100644
--- a/packages/metaplex-agent-mcp/src/config.js
+++ b/packages/metaplex-agent-mcp/src/config.js
@@ -6,7 +6,7 @@
// any Solana wallet) work with no key at all.
export function env(key, fallback) {
- const v = process.env[key];
+ const v = typeof process !== 'undefined' && process.env ? process.env[key] : undefined;
return v !== undefined && String(v).trim() !== '' ? String(v).trim() : fallback;
}
diff --git a/packages/metaplex-agent-mcp/src/lib/registration.js b/packages/metaplex-agent-mcp/src/lib/registration.js
index 793e8fb17..4360c6fc0 100644
--- a/packages/metaplex-agent-mcp/src/lib/registration.js
+++ b/packages/metaplex-agent-mcp/src/lib/registration.js
@@ -17,7 +17,23 @@
export const EIP_8004_REGISTRATION_TYPE = 'https://eips.ethereum.org/EIPS/eip-8004#registration-v1';
-const b64 = (obj) => Buffer.from(JSON.stringify(obj), 'utf8').toString('base64');
+// Isomorphic base64: Buffer in Node, TextEncoder + btoa in the browser, so the
+// same builders power the MCP server, scripts, and the three.ws deploy page.
+function encodeBase64(str) {
+ if (typeof Buffer !== 'undefined') return Buffer.from(str, 'utf8').toString('base64');
+ const bytes = new TextEncoder().encode(str);
+ let bin = '';
+ for (const byte of bytes) bin += String.fromCharCode(byte);
+ return btoa(bin);
+}
+
+function decodeBase64(b64str) {
+ if (typeof Buffer !== 'undefined') return Buffer.from(b64str, 'base64').toString('utf8');
+ const bin = atob(b64str);
+ return new TextDecoder().decode(Uint8Array.from(bin, (c) => c.charCodeAt(0)));
+}
+
+const b64 = (obj) => encodeBase64(JSON.stringify(obj));
/** Wrap a JSON document in a data:application/json;base64 URI. */
export function jsonDataUri(doc) {
@@ -106,9 +122,7 @@ export async function decodeJsonUri(uri, { timeoutMs = 30000 } = {}) {
const meta = uri.slice(5, comma);
const payload = uri.slice(comma + 1);
try {
- const raw = meta.includes('base64')
- ? Buffer.from(payload, 'base64').toString('utf8')
- : decodeURIComponent(payload);
+ const raw = meta.includes('base64') ? decodeBase64(payload) : decodeURIComponent(payload);
return JSON.parse(raw);
} catch {
return null;
diff --git a/pages/deploy-onchain.html b/pages/deploy-onchain.html
new file mode 100644
index 000000000..52a1671bc
--- /dev/null
+++ b/pages/deploy-onchain.html
@@ -0,0 +1,299 @@
+<!doctype html>
+<html lang="en">
+ <head>
+ <script>/* three.ws theme boot — no-flash; runtime in /theme-switcher.js */(function(){try{var m=localStorage.getItem('twx_theme');var l=m==='auto'?(window.matchMedia&&window.matchMedia('(prefers-color-scheme: light)').matches):m==='light';document.documentElement.setAttribute('data-theme',l?'light':'dark');}catch(e){document.documentElement.setAttribute('data-theme','dark');}})();</script>
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
+ <title>Deploy On-chain · three.ws</title>
+ <meta
+ name="description"
+ content="Put your agent on-chain the exact way the Genesis 333 shipped: mint a Metaplex Core asset with its own wallet and register its EIP-8004 identity in the Metaplex Agent Registry, signed by your Phantom, Solflare, or any Solana wallet."
+ />
+ <meta property="og:type" content="website" />
+ <meta property="og:site_name" content="three.ws" />
+ <meta property="og:url" content="https://three.ws/deploy-onchain" />
+ <meta property="og:title" content="Deploy On-chain · three.ws" />
+ <meta
+ property="og:description"
+ content="Mint your agent into the Metaplex Agent Registry on Solana: a Core asset with its own wallet, EIP-8004 identity, and the exact Genesis 333 shape. Your wallet signs; keys never leave the browser."
+ />
+ <meta property="og:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Deploy+On-chain&amp;d=Mint+your+agent+into+the+Metaplex+Agent+Registry+on+Solana%3A+a+Core+asset+with+its+own+wallet+and+EIP-8004+identity%2C+Genesis-333+exact.&amp;p=%2Fdeploy-onchain" />
+ <meta property="og:image:width" content="1200" />
+ <meta property="og:image:height" content="630" />
+ <meta name="twitter:card" content="summary_large_image" />
+ <meta name="twitter:site" content="@trythreews" />
+ <meta name="twitter:title" content="Deploy On-chain · three.ws" />
+ <meta
+ name="twitter:description"
+ content="Mint your agent into the Metaplex Agent Registry on Solana, Genesis-333 exact, signed by your own wallet."
+ />
+ <meta name="twitter:image" content="https://three.ws/api/page-og?s=crypto&amp;t=Deploy+On-chain&amp;d=Mint+your+agent+into+the+Metaplex+Agent+Registry+on+Solana%3A+a+Core+asset+with+its+own+wallet+and+EIP-8004+identity%2C+Genesis-333+exact.&amp;p=%2Fdeploy-onchain" />
+ <meta name="theme-color" content="#0a0a0a" />
+ <link rel="icon" href="/favicon.ico" sizes="any" />
+ <link rel="icon" type="image/svg+xml" href="/favicon.svg" />
+ <link rel="apple-touch-icon" href="/apple-touch-icon.png" />
+ <link rel="manifest" href="/manifest.webmanifest" />
+ <link rel="stylesheet" href="/fonts/fonts.css" />
+ <link rel="stylesheet" href="/nav.css" />
+ <link rel="stylesheet" href="/src/deploy-onchain.css" />
+ <link rel="stylesheet" href="/footer.css" />
+ <script defer src="/footer-newsletter.js"></script>
+ <link rel="canonical" href="https://three.ws/deploy-onchain" />
+ <script type="application/ld+json">{"@context":"https://schema.org","@type":"WebPage","name":"Deploy On-chain","description":"Mint your agent into the Metaplex Agent Registry on Solana: a Core asset with its own wallet and EIP-8004 identity, in the exact Genesis 333 shape.","url":"https://three.ws/deploy-onchain","isPartOf":{"@type":"WebSite","name":"three.ws","url":"https://three.ws"}}</script>
+ <meta name="robots" content="index, follow, max-image-preview:large, max-snippet:-1" />
+ </head>
+ <body>
+ <header><div id="nav-container"></div></header>
+ <script src="/nav.js"></script>
+
+ <main class="do-shell">
+ <section class="do-hero">
+ <p class="do-kicker"><span class="do-live-dot" aria-hidden="true"></span> Metaplex Agent Registry · Solana</p>
+ <h1 class="do-title">Deploy your agent <em>on-chain</em></h1>
+ <p class="do-sub">
+ The exact mint that shipped the <strong>Genesis 333</strong>: a <strong>Metaplex Core</strong> asset with its
+ own built-in wallet, an <strong>EIP-8004</strong> identity in the Agent Registry, verified creator, 5%
+ royalties, immutable metadata. Your wallet signs; keys never leave your browser.
+ </p>
+ <ul class="do-badges" aria-label="What you get">
+ <li>Core asset</li>
+ <li>Agent wallet</li>
+ <li>EIP-8004 identity</li>
+ <li>x402-ready</li>
+ <li>Live on metaplex.com/agents</li>
+ </ul>
+ </section>
+
+ <div class="do-grid">
+ <div class="do-form">
+ <!-- Step 1: wallet -->
+ <section class="do-card" aria-labelledby="do-wallet-h">
+ <div class="do-card-head">
+ <span class="do-step" aria-hidden="true">1</span>
+ <h2 id="do-wallet-h">Connect a Solana wallet</h2>
+ </div>
+ <div id="do-wallet-body">
+ <div class="do-wallet-row" id="do-wallet-disconnected">
+ <button type="button" class="do-btn do-btn-primary" id="do-connect">Connect wallet</button>
+ <p class="do-hint">Phantom, Solflare, Backpack, Ledger via wallet app. The wallet pays the mint (~0.007 SOL) and owns the agent.</p>
+ </div>
+ <div class="do-wallet-row" id="do-wallet-connected" hidden>
+ <span class="do-chip do-chip-wallet"><span class="do-dot-ok" aria-hidden="true"></span><span id="do-wallet-addr"></span></span>
+ <span class="do-chip" id="do-wallet-balance" title="Wallet SOL balance">…</span>
+ <button type="button" class="do-btn do-btn-ghost" id="do-disconnect">Disconnect</button>
+ </div>
+ <p class="do-error" id="do-wallet-error" role="alert" hidden></p>
+ <div class="do-nowallet" id="do-nowallet" hidden>
+ <p>No Solana wallet detected in this browser.</p>
+ <p><a href="https://phantom.com" target="_blank" rel="noopener">Get Phantom</a> · <a href="https://solflare.com" target="_blank" rel="noopener">Get Solflare</a>, then reload this page.</p>
+ </div>
+ <div class="do-net" role="radiogroup" aria-label="Network">
+ <button type="button" class="do-net-btn active" data-net="mainnet" role="radio" aria-checked="true">Mainnet</button>
+ <button type="button" class="do-net-btn" data-net="devnet" role="radio" aria-checked="false">Devnet (free rehearsal)</button>
+ </div>
+ </div>
+ </section>
+
+ <!-- Step 2: source -->
+ <section class="do-card" aria-labelledby="do-source-h">
+ <div class="do-card-head">
+ <span class="do-step" aria-hidden="true">2</span>
+ <h2 id="do-source-h">Choose your agent</h2>
+ </div>
+ <div id="do-agents-loading" class="do-agent-strip" aria-hidden="true">
+ <div class="do-agent-tile do-skeleton"></div>
+ <div class="do-agent-tile do-skeleton"></div>
+ <div class="do-agent-tile do-skeleton"></div>
+ </div>
+ <div id="do-agents" class="do-agent-strip" role="listbox" aria-label="Your three.ws agents" hidden></div>
+ <p class="do-hint" id="do-agents-signedout" hidden>
+ <a href="/login?next=/deploy-onchain">Sign in</a> to start from one of your three.ws avatars, or fill the fields below by hand.
+ </p>
+ <p class="do-hint" id="do-agents-empty" hidden>
+ You have no avatars yet. <a href="/create">Create one in the studio</a> (it takes a minute), or fill the fields below by hand.
+ </p>
+ </section>
+
+ <!-- Step 3: identity -->
+ <section class="do-card" aria-labelledby="do-id-h">
+ <div class="do-card-head">
+ <span class="do-step" aria-hidden="true">3</span>
+ <h2 id="do-id-h">Identity</h2>
+ </div>
+ <div class="do-fields">
+ <label class="do-field">
+ <span>Name <em class="do-req">required</em></span>
+ <input type="text" id="do-name" maxlength="60" placeholder="astra" autocomplete="off" />
+ <small class="do-count"><span id="do-name-count">0</span>/60</small>
+ </label>
+ <label class="do-field">
+ <span>Description</span>
+ <textarea id="do-desc" rows="2" maxlength="2000" placeholder="What this agent is or does"></textarea>
+ </label>
+ <label class="do-field">
+ <span>Image URL</span>
+ <input type="url" id="do-image" placeholder="https://…/thumbnail.png" autocomplete="off" />
+ <small>Shown on metaplex.com/agents, wallets, and explorers.</small>
+ </label>
+ <label class="do-field">
+ <span>3D model URL (GLB)</span>
+ <input type="url" id="do-model" placeholder="https://…/avatar.glb" autocomplete="off" />
+ <small>Written as <code>animation_url</code> and <code>model.uri</code>, exactly like the Genesis mints.</small>
+ </label>
+ <div class="do-toggles">
+ <label class="do-toggle"><input type="checkbox" id="do-x402" /> <span>x402 payments supported</span></label>
+ <label class="do-toggle"><input type="checkbox" id="do-active" checked /> <span>Active</span></label>
+ </div>
+ </div>
+ </section>
+
+ <!-- Step 4: advanced -->
+ <section class="do-card" aria-labelledby="do-adv-h">
+ <details class="do-adv">
+ <summary>
+ <span class="do-step" aria-hidden="true">4</span>
+ <h2 id="do-adv-h">Every knob Metaplex allows</h2>
+ <span class="do-adv-hint">optional, Genesis defaults</span>
+ </summary>
+ <div class="do-fields">
+ <label class="do-field do-field-inline">
+ <span>Royalty</span>
+ <input type="number" id="do-royalty" min="0" max="10000" step="50" value="500" />
+ <small>basis points (500 = 5%, the Genesis value; 0 removes the plugin)</small>
+ </label>
+ <div class="do-field">
+ <span>Royalty split</span>
+ <div id="do-creators"></div>
+ <button type="button" class="do-btn do-btn-ghost do-btn-sm" id="do-add-creator">+ Add creator</button>
+ <small>Defaults to your wallet at 100%. Percentages must sum to 100.</small>
+ </div>
+ <div class="do-field">
+ <span>On-chain attributes</span>
+ <div id="do-attrs"></div>
+ <button type="button" class="do-btn do-btn-ghost do-btn-sm" id="do-add-attr">+ Add attribute</button>
+ <small>Real bytes in the asset account (Attributes plugin).</small>
+ </div>
+ <div class="do-field">
+ <span>Services</span>
+ <div id="do-services"></div>
+ <button type="button" class="do-btn do-btn-ghost do-btn-sm" id="do-add-service">+ Add service</button>
+ <small>Name + endpoint pairs listed on the agent's Metaplex page.</small>
+ </div>
+ <label class="do-field">
+ <span>Trust models</span>
+ <input type="text" id="do-trust" value="reputation" autocomplete="off" />
+ <small>Comma separated. Genesis ships <code>reputation</code>.</small>
+ </label>
+ <label class="do-field">
+ <span>Collection address</span>
+ <input type="text" id="do-collection" placeholder="Optional: a Core collection you are the authority of" autocomplete="off" />
+ </label>
+ <div class="do-toggles do-toggles-grid">
+ <label class="do-toggle"><input type="checkbox" id="do-verified" checked /> <span>Verified creator</span></label>
+ <label class="do-toggle"><input type="checkbox" id="do-immutable" checked /> <span>Immutable metadata</span></label>
+ <label class="do-toggle"><input type="checkbox" id="do-pfreeze" /> <span>Permanent freeze delegate</span></label>
+ <label class="do-toggle"><input type="checkbox" id="do-ptransfer" /> <span>Permanent transfer delegate</span></label>
+ <label class="do-toggle"><input type="checkbox" id="do-pburn" /> <span>Permanent burn delegate</span></label>
+ <label class="do-toggle"><input type="checkbox" id="do-addblocker" /> <span>Add blocker (no more plugins, ever)</span></label>
+ </div>
+ </div>
+ </details>
+ </section>
+
+ <!-- Deploy -->
+ <section class="do-card do-deploy-card" aria-labelledby="do-deploy-h">
+ <div class="do-card-head">
+ <span class="do-step" aria-hidden="true">5</span>
+ <h2 id="do-deploy-h">Deploy</h2>
+ <span class="do-cost" id="do-cost">~0.007 SOL</span>
+ </div>
+ <button type="button" class="do-btn do-btn-primary do-btn-deploy" id="do-deploy" disabled>Connect a wallet to deploy</button>
+ <ol class="do-stages" id="do-stages" hidden>
+ <li data-stage="build">Building the Genesis-shape transactions</li>
+ <li data-stage="sign">Waiting for your wallet signature</li>
+ <li data-stage="mint">Minting the Core asset</li>
+ <li data-stage="register">Registering the agent identity</li>
+ <li data-stage="live">Live in the Metaplex Agent Registry</li>
+ </ol>
+ <p class="do-error" id="do-deploy-error" role="alert" hidden></p>
+ <div class="do-success" id="do-success" hidden>
+ <h3>Your agent is on-chain</h3>
+ <dl class="do-success-rows">
+ <div><dt>Core asset</dt><dd><code id="do-out-asset"></code><button type="button" class="do-copy" data-copy="do-out-asset" aria-label="Copy asset address">copy</button></dd></div>
+ <div><dt>Agent wallet</dt><dd><code id="do-out-wallet"></code><button type="button" class="do-copy" data-copy="do-out-wallet" aria-label="Copy agent wallet">copy</button></dd></div>
+ </dl>
+ <div class="do-success-links" id="do-out-links"></div>
+ <button type="button" class="do-btn do-btn-ghost" id="do-again">Deploy another</button>
+ </div>
+ </section>
+ </div>
+
+ <!-- Live preview -->
+ <aside class="do-preview" aria-label="Live preview">
+ <div class="do-preview-card">
+ <div class="do-preview-media" id="do-preview-media"><span class="do-preview-mono" id="do-preview-mono">?</span></div>
+ <div class="do-preview-body">
+ <h3 id="do-preview-name">Your agent</h3>
+ <p id="do-preview-desc">Fill in the identity and watch the on-chain documents build themselves.</p>
+ <div class="do-preview-chips" id="do-preview-chips"></div>
+ </div>
+ </div>
+ <div class="do-genesis" aria-label="Genesis shape checklist">
+ <h4>Genesis-333 shape</h4>
+ <ul id="do-genesis-list">
+ <li data-check="royalty" class="on">5% royalties to the owner</li>
+ <li data-check="verified" class="on">Verified creator</li>
+ <li data-check="immutable" class="on">Immutable metadata</li>
+ <li data-check="identity" class="on">EIP-8004 registration, self-contained data: URI</li>
+ </ul>
+ </div>
+ <div class="do-json">
+ <div class="do-json-tabs" role="tablist" aria-label="Document preview">
+ <button type="button" class="do-json-tab active" data-doc="registration" role="tab" aria-selected="true">Registration</button>
+ <button type="button" class="do-json-tab" data-doc="metadata" role="tab" aria-selected="false">Metadata</button>
+ </div>
+ <pre class="do-json-pre" id="do-json-pre" tabindex="0"><code id="do-json-code"></code></pre>
+ <p class="do-hint">These exact bytes go on-chain as base64 <code>data:</code> URIs. Nothing to pin, nothing that can rot.</p>
+ </div>
+ </aside>
+ </div>
+
+ <!-- Latest to land -->
+ <section class="do-latest" aria-labelledby="do-latest-h">
+ <div class="do-latest-head">
+ <h2 id="do-latest-h">Latest to land</h2>
+ <a class="do-latest-all" href="/deployments">Full feed →</a>
+ </div>
+ <div class="do-latest-strip" id="do-latest-strip">
+ <div class="do-agent-tile do-skeleton"></div>
+ <div class="do-agent-tile do-skeleton"></div>
+ <div class="do-agent-tile do-skeleton"></div>
+ <div class="do-agent-tile do-skeleton"></div>
+ </div>
+ </section>
+
+ <!-- Agents can do this too -->
+ <section class="do-mcp">
+ <div class="do-mcp-inner">
+ <div>
+ <h2>Agents can do this too</h2>
+ <p>
+ The same mint ships as an MCP server, so any AI agent can put itself on-chain with its own wallet:
+ preview first, confirm to spend, devnet for free rehearsal.
+ </p>
+ </div>
+ <div class="do-mcp-cmd">
+ <code id="do-mcp-cmd">npx -y @three-ws/metaplex-agent-mcp</code>
+ <button type="button" class="do-copy" data-copy="do-mcp-cmd" aria-label="Copy install command">copy</button>
+ </div>
+ </div>
+ </section>
+ </main>
+
+ <script type="module" src="/src/deploy-onchain.js"></script>
+ <script src="/brand.js" defer></script>
+ <div id="footer-container"></div>
+ <script src="/footer.js"></script>
+ <script type="module" src="/i18n.js"></script>
+ </body>
+</html>
diff --git a/src/deploy-onchain.css b/src/deploy-onchain.css
new file mode 100644
index 000000000..d70aa4be4
--- /dev/null
+++ b/src/deploy-onchain.css
@@ -0,0 +1,335 @@
+/* /deploy-onchain — mint an agent into the Metaplex Agent Registry, Genesis-333
+ exact. First surface of the post-monochrome direction: the canonical :root
+ tokens stay the base, with a small documented accent layer on top (the B02
+ rule for surfaces that need their own accent): an iris→teal ramp used only
+ for the primary action, live signals, and the preview edge. */
+
+.do-shell {
+ --do-a1: #7c6cff;
+ --do-a2: #3fd6c2;
+ --do-grad: linear-gradient(120deg, var(--do-a1), var(--do-a2));
+ max-width: 1180px;
+ margin: 0 auto;
+ padding: var(--space-xl, 40px) var(--space-md, 16px) var(--space-2xl, 64px);
+}
+
+/* ── Hero ─────────────────────────────────────────────────────────────── */
+.do-hero { text-align: center; margin-bottom: var(--space-xl, 40px); }
+.do-kicker {
+ display: inline-flex; align-items: center; gap: 8px;
+ font-size: var(--text-2xs, .68rem); letter-spacing: .14em; text-transform: uppercase;
+ color: var(--ink-dim, #888); margin: 0 0 var(--space-sm, 12px);
+}
+.do-live-dot {
+ width: 8px; height: 8px; border-radius: 50%;
+ background: var(--do-grad);
+ animation: do-ping 2.4s ease infinite;
+}
+@keyframes do-ping {
+ 0% { box-shadow: 0 0 0 0 rgba(124, 108, 255, .45); }
+ 70% { box-shadow: 0 0 0 8px rgba(63, 214, 194, 0); }
+ 100% { box-shadow: 0 0 0 0 rgba(63, 214, 194, 0); }
+}
+.do-title {
+ font-family: var(--font-display, 'Space Grotesk', sans-serif);
+ font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 700; line-height: 1.02;
+ letter-spacing: -.02em; margin: 0 0 var(--space-sm, 12px); color: var(--ink, #e8e8e8);
+}
+.do-title em {
+ font-style: normal;
+ background: var(--do-grad);
+ -webkit-background-clip: text; background-clip: text; color: transparent;
+}
+.do-sub { max-width: 680px; margin: 0 auto; color: var(--ink-dim, #999); font-size: var(--text-lg, 1.02rem); line-height: 1.55; }
+.do-sub strong { color: var(--ink, #e8e8e8); font-weight: 600; }
+.do-badges {
+ display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
+ list-style: none; margin: var(--space-md, 16px) 0 0; padding: 0;
+}
+.do-badges li {
+ font-size: var(--text-2xs, .68rem); letter-spacing: .06em; text-transform: uppercase;
+ color: var(--ink-dim, #999); padding: 5px 12px;
+ border: 1px solid var(--stroke, rgba(255,255,255,.08)); border-radius: var(--radius-pill, 999px);
+ background: var(--surface-1, rgba(255,255,255,.03));
+}
+
+/* ── Layout ───────────────────────────────────────────────────────────── */
+.do-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--space-lg, 22px); align-items: start; }
+.do-form { display: flex; flex-direction: column; gap: var(--space-md, 16px); min-width: 0; }
+.do-preview { position: sticky; top: 84px; display: flex; flex-direction: column; gap: var(--space-md, 16px); min-width: 0; }
+@media (max-width: 960px) {
+ .do-grid { grid-template-columns: 1fr; }
+ .do-preview { position: static; order: -1; }
+}
+
+/* ── Cards ────────────────────────────────────────────────────────────── */
+.do-card {
+ background: var(--surface-1, rgba(255,255,255,.03));
+ border: 1px solid var(--stroke, rgba(255,255,255,.07));
+ border-radius: var(--radius-lg, 14px);
+ padding: var(--space-lg, 22px);
+ transition: border-color .14s ease;
+}
+.do-card:focus-within { border-color: var(--stroke-strong, rgba(255,255,255,.14)); }
+.do-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: var(--space-md, 16px); }
+.do-card-head h2 { font-size: var(--text-md, .95rem); font-weight: 600; color: var(--ink, #e8e8e8); margin: 0; }
+.do-step {
+ display: inline-flex; align-items: center; justify-content: center;
+ width: 22px; height: 22px; border-radius: 50%; flex: none;
+ font-size: var(--text-2xs, .68rem); font-weight: 700; font-family: var(--font-mono, monospace);
+ color: var(--ink-bright, #fff);
+ background: var(--do-grad);
+}
+.do-cost { margin-left: auto; font-family: var(--font-mono, monospace); font-size: var(--text-sm, .8rem); color: var(--ink-dim, #999); }
+
+/* ── Buttons ──────────────────────────────────────────────────────────── */
+.do-btn {
+ appearance: none; font: inherit; font-size: var(--text-sm, .85rem); font-weight: 600;
+ cursor: pointer; border-radius: var(--radius-md, 10px); padding: 10px 18px;
+ border: 1px solid var(--stroke, rgba(255,255,255,.1));
+ background: var(--surface-2, rgba(255,255,255,.05)); color: var(--ink, #e8e8e8);
+ transition: transform .12s ease, filter .14s ease, border-color .14s ease, background .14s ease;
+}
+.do-btn:hover { border-color: var(--stroke-strong, rgba(255,255,255,.18)); }
+.do-btn:active { transform: translateY(1px); }
+.do-btn:focus-visible { outline: 2px solid var(--do-a1); outline-offset: 2px; }
+.do-btn-primary {
+ background: var(--do-grad); border: none; color: #0a0a12;
+}
+.do-btn-primary:hover { filter: brightness(1.08); }
+.do-btn-primary:disabled { filter: grayscale(.7) brightness(.7); cursor: not-allowed; transform: none; }
+.do-btn-ghost { background: transparent; }
+.do-btn-sm { padding: 6px 12px; font-size: var(--text-xs, .75rem); }
+.do-btn-deploy { width: 100%; padding: 14px 18px; font-size: var(--text-md, .95rem); }
+
+/* ── Wallet row ───────────────────────────────────────────────────────── */
+.do-wallet-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
+.do-hint { font-size: var(--text-xs, .75rem); color: var(--ink-faint, #777); margin: 8px 0 0; line-height: 1.5; }
+.do-hint a { color: var(--ink, #ddd); }
+.do-chip {
+ display: inline-flex; align-items: center; gap: 7px;
+ font-family: var(--font-mono, monospace); font-size: var(--text-xs, .75rem);
+ color: var(--ink, #ddd); padding: 6px 12px;
+ background: var(--surface-2, rgba(255,255,255,.05));
+ border: 1px solid var(--stroke, rgba(255,255,255,.08));
+ border-radius: var(--radius-pill, 999px);
+}
+.do-dot-ok { width: 7px; height: 7px; border-radius: 50%; background: var(--do-a2); flex: none; }
+.do-nowallet { margin-top: 10px; font-size: var(--text-sm, .82rem); color: var(--ink-dim, #999); }
+.do-nowallet a { color: var(--ink, #ddd); }
+.do-net {
+ display: inline-flex; gap: 2px; margin-top: var(--space-md, 16px); padding: 3px;
+ background: var(--surface-1, rgba(255,255,255,.03));
+ border: 1px solid var(--stroke, rgba(255,255,255,.08)); border-radius: var(--radius-pill, 999px);
+}
+.do-net-btn {
+ appearance: none; font: inherit; font-size: var(--text-xs, .78rem); font-weight: 500; cursor: pointer;
+ color: var(--ink-dim, #888); background: transparent; border: none;
+ border-radius: var(--radius-pill, 999px); padding: 6px 14px;
+ transition: color .14s ease, background .14s ease;
+}
+.do-net-btn:hover { color: var(--ink, #e8e8e8); }
+.do-net-btn.active { color: #0a0a12; background: var(--do-grad); font-weight: 600; }
+.do-net-btn:focus-visible { outline: 2px solid var(--do-a1); outline-offset: 2px; }
+
+/* ── Agent strip ──────────────────────────────────────────────────────── */
+.do-agent-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
+.do-agent-tile {
+ flex: 0 0 128px; width: 128px; cursor: pointer; text-align: left;
+ background: var(--surface-2, rgba(255,255,255,.05));
+ border: 1px solid var(--stroke, rgba(255,255,255,.08));
+ border-radius: var(--radius-md, 10px); padding: 8px;
+ transition: border-color .14s ease, transform .14s ease;
+ color: inherit; font: inherit; appearance: none;
+}
+.do-agent-tile:hover { border-color: var(--stroke-strong, rgba(255,255,255,.18)); transform: translateY(-2px); }
+.do-agent-tile:focus-visible { outline: 2px solid var(--do-a1); outline-offset: 2px; }
+.do-agent-tile.selected { border-color: var(--do-a1); box-shadow: 0 0 0 1px var(--do-a1); }
+.do-agent-thumb {
+ width: 100%; aspect-ratio: 1; border-radius: 7px; object-fit: cover; display: block;
+ background: var(--surface-3, rgba(255,255,255,.08));
+}
+.do-agent-name {
+ display: block; margin-top: 7px; font-size: var(--text-xs, .75rem); font-weight: 600;
+ color: var(--ink, #e8e8e8); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
+}
+.do-agent-sub { display: block; font-size: var(--text-2xs, .66rem); color: var(--ink-faint, #777); margin-top: 2px; }
+.do-agent-tile.deployed .do-agent-sub { color: var(--do-a2); }
+.do-skeleton { pointer-events: none; }
+.do-skeleton::before { content: ''; display: block; width: 100%; aspect-ratio: 1; border-radius: 7px; background: var(--surface-3, rgba(255,255,255,.07)); animation: do-shimmer 1.4s ease infinite; }
+.do-skeleton::after { content: ''; display: block; height: 10px; margin-top: 8px; border-radius: 4px; background: var(--surface-3, rgba(255,255,255,.07)); animation: do-shimmer 1.4s ease infinite; }
+@keyframes do-shimmer { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
+
+/* ── Fields ───────────────────────────────────────────────────────────── */
+.do-fields { display: flex; flex-direction: column; gap: var(--space-md, 16px); }
+.do-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
+.do-field > span { font-size: var(--text-xs, .78rem); font-weight: 600; color: var(--ink, #ddd); }
+.do-field > span .do-req { font-style: normal; font-weight: 400; color: var(--ink-faint, #777); font-size: var(--text-2xs, .66rem); margin-left: 6px; text-transform: uppercase; letter-spacing: .06em; }
+.do-field input[type="text"], .do-field input[type="url"], .do-field input[type="number"], .do-field textarea {
+ font: inherit; font-size: var(--text-sm, .85rem); color: var(--ink-bright, #fff);
+ background: var(--surface-0, rgba(0,0,0,.25));
+ border: 1px solid var(--stroke, rgba(255,255,255,.1));
+ border-radius: var(--radius-md, 10px); padding: 10px 12px;
+ transition: border-color .14s ease;
+}
+.do-field input:hover, .do-field textarea:hover { border-color: var(--stroke-strong, rgba(255,255,255,.16)); }
+.do-field input:focus-visible, .do-field textarea:focus-visible { outline: none; border-color: var(--do-a1); }
+.do-field small { font-size: var(--text-2xs, .68rem); color: var(--ink-faint, #777); line-height: 1.45; }
+.do-field small code, .do-hint code { font-family: var(--font-mono, monospace); font-size: .92em; color: var(--ink-dim, #999); }
+.do-count { position: absolute; right: 2px; top: 2px; font-size: var(--text-2xs, .66rem); color: var(--ink-faint, #777); }
+.do-field-inline { flex-direction: row; align-items: center; gap: 10px; flex-wrap: wrap; }
+.do-field-inline input { width: 110px; }
+.do-toggles { display: flex; flex-wrap: wrap; gap: 10px 18px; }
+.do-toggles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
+.do-toggle { display: inline-flex; align-items: center; gap: 8px; font-size: var(--text-sm, .82rem); color: var(--ink, #ddd); cursor: pointer; }
+.do-toggle input { accent-color: var(--do-a1); width: 15px; height: 15px; cursor: pointer; }
+
+/* Row editors (creators / attributes / services) */
+.do-row { display: flex; gap: 8px; margin-bottom: 8px; align-items: center; }
+.do-row input { flex: 1 1 0; min-width: 0; font: inherit; font-size: var(--text-sm, .82rem); color: var(--ink-bright, #fff); background: var(--surface-0, rgba(0,0,0,.25)); border: 1px solid var(--stroke, rgba(255,255,255,.1)); border-radius: var(--radius-md, 10px); padding: 8px 10px; }
+.do-row input:focus-visible { outline: none; border-color: var(--do-a1); }
+.do-row input.do-row-narrow { flex: 0 0 84px; }
+.do-row-del { appearance: none; border: none; background: transparent; color: var(--ink-faint, #777); font-size: 1rem; cursor: pointer; padding: 4px 6px; border-radius: 6px; }
+.do-row-del:hover { color: var(--ink-bright, #fff); background: var(--surface-2, rgba(255,255,255,.06)); }
+.do-row-del:focus-visible { outline: 2px solid var(--do-a1); outline-offset: 1px; }
+
+/* ── Advanced details ─────────────────────────────────────────────────── */
+.do-adv summary { display: flex; align-items: center; gap: 10px; cursor: pointer; list-style: none; }
+.do-adv summary::-webkit-details-marker { display: none; }
+.do-adv summary h2 { font-size: var(--text-md, .95rem); font-weight: 600; color: var(--ink, #e8e8e8); margin: 0; }
+.do-adv-hint { margin-left: auto; font-size: var(--text-2xs, .68rem); color: var(--ink-faint, #777); text-transform: uppercase; letter-spacing: .06em; }
+.do-adv[open] summary { margin-bottom: var(--space-md, 16px); }
+.do-adv summary:focus-visible { outline: 2px solid var(--do-a1); outline-offset: 2px; border-radius: 6px; }
+
+/* ── Deploy stages ────────────────────────────────────────────────────── */
+.do-stages { list-style: none; margin: var(--space-md, 16px) 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
+.do-stages li {
+ display: flex; align-items: center; gap: 10px;
+ font-size: var(--text-sm, .82rem); color: var(--ink-faint, #777);
+ transition: color .2s ease;
+}
+.do-stages li::before {
+ content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none;
+ background: var(--surface-3, rgba(255,255,255,.12));
+ transition: background .2s ease, box-shadow .2s ease;
+}
+.do-stages li.active { color: var(--ink-bright, #fff); }
+.do-stages li.active::before { background: var(--do-grad); animation: do-ping 1.6s ease infinite; }
+.do-stages li.done { color: var(--ink-dim, #999); }
+.do-stages li.done::before { background: var(--do-a2); }
+.do-error {
+ margin: var(--space-md, 16px) 0 0; font-size: var(--text-sm, .82rem); line-height: 1.5;
+ color: #ff9a9a; background: rgba(255, 80, 80, .07);
+ border: 1px solid rgba(255, 80, 80, .25); border-radius: var(--radius-md, 10px); padding: 10px 14px;
+}
+
+/* ── Success ──────────────────────────────────────────────────────────── */
+.do-success { margin-top: var(--space-md, 16px); border-top: 1px solid var(--stroke, rgba(255,255,255,.08)); padding-top: var(--space-md, 16px); animation: do-land .5s ease; }
+@keyframes do-land { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
+.do-success h3 {
+ margin: 0 0 var(--space-sm, 12px); font-size: var(--text-lg, 1.05rem);
+ background: var(--do-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
+}
+.do-success-rows { margin: 0 0 var(--space-md, 16px); display: flex; flex-direction: column; gap: 8px; }
+.do-success-rows > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
+.do-success-rows dt { font-size: var(--text-xs, .75rem); color: var(--ink-dim, #999); min-width: 92px; }
+.do-success-rows dd { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; }
+.do-success-rows code { font-family: var(--font-mono, monospace); font-size: var(--text-xs, .74rem); color: var(--ink-bright, #fff); overflow-wrap: anywhere; }
+.do-copy {
+ appearance: none; font: inherit; font-size: var(--text-2xs, .66rem); font-weight: 600;
+ text-transform: uppercase; letter-spacing: .06em; cursor: pointer;
+ color: var(--ink-dim, #999); background: var(--surface-2, rgba(255,255,255,.05));
+ border: 1px solid var(--stroke, rgba(255,255,255,.1)); border-radius: 6px; padding: 3px 8px;
+ transition: color .14s ease, border-color .14s ease;
+}
+.do-copy:hover { color: var(--ink-bright, #fff); border-color: var(--stroke-strong, rgba(255,255,255,.2)); }
+.do-copy:focus-visible { outline: 2px solid var(--do-a1); outline-offset: 1px; }
+.do-copy.copied { color: var(--do-a2); border-color: var(--do-a2); }
+.do-success-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-md, 16px); }
+.do-success-links a {
+ font-size: var(--text-xs, .78rem); font-weight: 600; color: var(--ink, #ddd); text-decoration: none;
+ padding: 7px 14px; border: 1px solid var(--stroke, rgba(255,255,255,.1)); border-radius: var(--radius-pill, 999px);
+ transition: border-color .14s ease, color .14s ease;
+}
+.do-success-links a:hover { color: var(--ink-bright, #fff); border-color: var(--do-a1); }
+
+/* ── Preview column ───────────────────────────────────────────────────── */
+.do-preview-card {
+ position: relative; border-radius: var(--radius-lg, 14px); overflow: hidden;
+ background: var(--surface-1, rgba(255,255,255,.03));
+ border: 1px solid transparent;
+ background-clip: padding-box;
+}
+.do-preview-card::before {
+ content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
+ background: linear-gradient(140deg, var(--do-a1), transparent 40%, transparent 60%, var(--do-a2));
+ -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
+ -webkit-mask-composite: xor; mask-composite: exclude;
+ pointer-events: none;
+}
+.do-preview-media { aspect-ratio: 1.6; background: var(--surface-0, rgba(0,0,0,.3)); display: grid; place-items: center; overflow: hidden; }
+.do-preview-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
+.do-preview-mono {
+ font-family: var(--font-display, 'Space Grotesk', sans-serif); font-size: 3rem; font-weight: 700;
+ background: var(--do-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
+ opacity: .9;
+}
+.do-preview-body { padding: var(--space-md, 16px) var(--space-lg, 22px) var(--space-lg, 22px); }
+.do-preview-body h3 { margin: 0 0 6px; font-size: var(--text-lg, 1.05rem); color: var(--ink-bright, #fff); overflow-wrap: anywhere; }
+.do-preview-body p { margin: 0 0 10px; font-size: var(--text-sm, .82rem); color: var(--ink-dim, #999); line-height: 1.5; overflow-wrap: anywhere; }
+.do-preview-chips { display: flex; flex-wrap: wrap; gap: 6px; }
+.do-preview-chips span {
+ font-size: var(--text-2xs, .66rem); text-transform: uppercase; letter-spacing: .06em;
+ color: var(--ink-dim, #999); padding: 4px 10px;
+ border: 1px solid var(--stroke, rgba(255,255,255,.09)); border-radius: var(--radius-pill, 999px);
+}
+.do-preview-chips span.hot { color: var(--do-a2); border-color: color-mix(in srgb, var(--do-a2) 50%, transparent); }
+
+.do-genesis {
+ background: var(--surface-1, rgba(255,255,255,.03));
+ border: 1px solid var(--stroke, rgba(255,255,255,.07)); border-radius: var(--radius-lg, 14px);
+ padding: var(--space-md, 16px) var(--space-lg, 22px);
+}
+.do-genesis h4 { margin: 0 0 10px; font-size: var(--text-xs, .78rem); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-dim, #999); }
+.do-genesis ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
+.do-genesis li { display: flex; align-items: center; gap: 9px; font-size: var(--text-sm, .8rem); color: var(--ink-faint, #777); }
+.do-genesis li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--surface-3, rgba(255,255,255,.12)); transition: background .2s ease; }
+.do-genesis li.on { color: var(--ink, #ddd); }
+.do-genesis li.on::before { background: var(--do-a2); }
+
+.do-json { background: var(--surface-1, rgba(255,255,255,.03)); border: 1px solid var(--stroke, rgba(255,255,255,.07)); border-radius: var(--radius-lg, 14px); padding: var(--space-md, 16px) var(--space-lg, 22px); }
+.do-json-tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 10px; background: var(--surface-0, rgba(0,0,0,.25)); border-radius: var(--radius-pill, 999px); }
+.do-json-tab { appearance: none; font: inherit; font-size: var(--text-2xs, .7rem); font-weight: 600; cursor: pointer; color: var(--ink-dim, #888); background: transparent; border: none; border-radius: var(--radius-pill, 999px); padding: 5px 13px; }
+.do-json-tab.active { color: #0a0a12; background: var(--do-grad); }
+.do-json-tab:focus-visible { outline: 2px solid var(--do-a1); outline-offset: 2px; }
+.do-json-pre { margin: 0; max-height: 300px; overflow: auto; font-family: var(--font-mono, monospace); font-size: .7rem; line-height: 1.55; color: var(--ink-dim, #aaa); background: var(--surface-0, rgba(0,0,0,.3)); border-radius: var(--radius-md, 10px); padding: 12px; }
+.do-json-pre:focus-visible { outline: 2px solid var(--do-a1); }
+
+/* ── Latest strip ─────────────────────────────────────────────────────── */
+.do-latest { margin-top: var(--space-2xl, 64px); }
+.do-latest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: var(--space-md, 16px); }
+.do-latest-head h2 { font-size: var(--text-lg, 1.05rem); color: var(--ink, #e8e8e8); margin: 0; }
+.do-latest-all { font-size: var(--text-sm, .8rem); color: var(--ink-dim, #999); text-decoration: none; }
+.do-latest-all:hover { color: var(--ink-bright, #fff); }
+.do-latest-strip { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
+.do-latest-strip a.do-agent-tile { text-decoration: none; }
+.do-latest-empty { font-size: var(--text-sm, .82rem); color: var(--ink-faint, #777); }
+
+/* ── MCP callout ──────────────────────────────────────────────────────── */
+.do-mcp { margin-top: var(--space-2xl, 64px); }
+.do-mcp-inner {
+ display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg, 22px); flex-wrap: wrap;
+ background: var(--surface-1, rgba(255,255,255,.03));
+ border: 1px solid var(--stroke, rgba(255,255,255,.07)); border-radius: var(--radius-lg, 14px);
+ padding: var(--space-lg, 22px);
+}
+.do-mcp h2 { margin: 0 0 6px; font-size: var(--text-lg, 1.05rem); color: var(--ink, #e8e8e8); }
+.do-mcp p { margin: 0; max-width: 520px; font-size: var(--text-sm, .82rem); color: var(--ink-dim, #999); line-height: 1.55; }
+.do-mcp-cmd { display: flex; align-items: center; gap: 10px; background: var(--surface-0, rgba(0,0,0,.3)); border: 1px solid var(--stroke, rgba(255,255,255,.09)); border-radius: var(--radius-md, 10px); padding: 10px 14px; }
+.do-mcp-cmd code { font-family: var(--font-mono, monospace); font-size: var(--text-sm, .8rem); color: var(--ink-bright, #fff); white-space: nowrap; }
+@media (max-width: 560px) { .do-mcp-cmd code { white-space: normal; overflow-wrap: anywhere; } }
+
+@media (prefers-reduced-motion: reduce) {
+ .do-live-dot, .do-stages li.active::before { animation: none; }
+ .do-agent-tile, .do-btn { transition: none; }
+}