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
feat(changelog): per-entry detail pages with slugified URLs
nirholasf245fe2d0c22
diff --git a/README.md b/README.mdindex 579bc79e5..8530958ff 100644--- a/README.md+++ b/README.md@@ -1489,6 +1489,18 @@ The helper handles the 402 challenge, Permit2 sibling, receipt write-back, idempAgents transact with each other directly through an A2A bridge that sits on top of the MCP server and x402 payments.+**How it works**++When agent A wants to call a paid tool from agent B:++1. **Discover** — A resolves B's DID via `POST /api/x402/did`, receiving B's MCP endpoint URL and payment wallet address.+2. **Call** — A sends a `tools/call` JSON-RPC request to B's MCP endpoint.+3. **Pay** — B's server returns `402 Payment Required` with a USDC price. A's SDK settles the x402 payment on-chain (Base or Solana) and retries with the payment proof in the `X-PAYMENT` header.+4. **Execute** — B verifies the payment, runs the tool, and writes a signed receipt to `api/a2a/receipts`.+5. **Ledger** — Both sides accumulate a row in `api/a2a/spending` — A for outbound spend, B for inbound revenue.++Agent wallets sign with **EIP-7710 delegated permissions** — the delegated signer acts on behalf of the agent's root key without ever exposing it.+| Surface | Path | Purpose || --------------- | -------------------- | -------------------------------------------------------- || A2A client | `sdk/a2a/` | Outbound calls — pay another agent, settle the response |diff --git a/public/changelog/entry/index.html b/public/changelog/entry/index.htmlnew file mode 100644index 000000000..f3b579351--- /dev/null+++ b/public/changelog/entry/index.html@@ -0,0 +1,171 @@+<!doctype html>+<html lang="en">+<head>+<meta charset="utf-8" />+<meta name="viewport" content="width=device-width,initial-scale=1" />+<title>Changelog · three.ws</title>+<meta name="description" content="three.ws changelog entry" />+<link rel="canonical" href="https://three.ws/changelog" />+<link rel="alternate" type="application/rss+xml" title="three.ws changelog" href="/changelog.xml" />+<link rel="stylesheet" href="/nav.css" />+<link rel="stylesheet" href="/footer.css" />+<style>+ :root { color-scheme: dark; }+ body { margin: 0; background: #000000; color: #e7e7e7; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }+ .ce-wrap { max-width: 720px; margin: 0 auto; padding: 96px 24px 80px; }+ .ce-back { display: inline-flex; align-items: center; gap: 6px; color: #777777; font-size: 13px; text-decoration: none; margin-bottom: 40px; transition: color .15s; }+ .ce-back:hover { color: #ffffff; }+ .ce-back svg { width: 14px; height: 14px; }+ .ce-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }+ .ce-date { font-size: 13px; color: #777777; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; }+ .ce-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 999px; padding: 2px 8px; border: 1px solid #2a2a2a; color: #9a9a9a; background: #111111; }+ .ce-tag-launch { color: #66ffaa; border-color: #1f4a3f; background: #0c1c14; }+ .ce-tag-feature { color: #7ec8ff; border-color: #1d3a52; background: #0b141d; }+ .ce-tag-improvement { color: #d8b4ff; border-color: #3a2752; background: #150d1d; }+ .ce-tag-fix { color: #ffd27e; border-color: #523f1d; background: #1d150b; }+ .ce-tag-security { color: #ff8e8e; border-color: #521d1d; background: #1d0b0b; }+ .ce-tag-sdk { color: #8effd9; border-color: #1d5240; background: #0b1d16; }+ .ce-tag-infra { color: #c0c0c0; border-color: #3a3a3a; background: #111111; }+ .ce-tag-docs { color: #c0c0c0; border-color: #3a3a3a; background: #111111; }+ h1.ce-title { font-size: clamp(24px, 4vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 28px; color: #ffffff; }+ .ce-summary { font-size: 17px; line-height: 1.7; color: #c8c8c8; white-space: pre-line; }+ .ce-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; padding: 11px 20px; background: #0d0d0d; border: 1px solid #2a2a2a; border-radius: 10px; color: #e7e7e7; font-size: 14px; font-weight: 600; text-decoration: none; transition: border-color .15s, transform .15s; }+ .ce-link:hover { border-color: #ffffff; transform: translateY(-1px); }+ .ce-link svg { width: 14px; height: 14px; opacity: .6; }+ .ce-share { margin-top: 48px; padding-top: 32px; border-top: 1px solid #1d1d1d; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }+ .ce-share-label { font-size: 13px; color: #555555; }+ .ce-share-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; background: #0d0d0d; border: 1px solid #1d1d1d; border-radius: 8px; color: #b6b6b6; font-size: 13px; font-weight: 500; text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }+ .ce-share-btn:hover { border-color: #555555; color: #ffffff; }+ .ce-share-btn svg { width: 13px; height: 13px; }+ .ce-copy-btn.copied { color: #66ffaa; border-color: #1f4a3f; }+ .ce-not-found { color: #777777; font-size: 15px; padding: 40px 0; }+ .ce-not-found a { color: #cccccc; }+ .ce-skeleton { opacity: .4; }+ .ce-skeleton-title { height: 38px; background: #1a1a1a; border-radius: 6px; margin-bottom: 28px; width: 80%; }+ .ce-skeleton-line { height: 16px; background: #1a1a1a; border-radius: 4px; margin-bottom: 12px; }+ .ce-skeleton-line:last-child { width: 60%; }+</style>+</head>+<body>+ <div id="nav-container"></div>+ <script src="/nav.js"></script>+ <main class="ce-wrap">+ <a class="ce-back" href="/changelog">+ <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M10 3L5 8l5 5"/></svg>+ Changelog+ </a>+ <div id="ce-content">+ <div class="ce-skeleton">+ <div class="ce-skeleton-title"></div>+ <div class="ce-skeleton-line"></div>+ <div class="ce-skeleton-line"></div>+ <div class="ce-skeleton-line"></div>+ <div class="ce-skeleton-line"></div>+ </div>+ </div>+ </main>++ <script type="module">+ function slugify(title, date) {+ const slug = title+ .toLowerCase()+ .replace(/[^a-z0-9]+/g, '-')+ .replace(/^-+|-+$/g, '')+ .slice(0, 80);+ return date + '-' + slug;+ }++ function fmtDate(iso) {+ try {+ return new Date(iso + 'T00:00:00Z').toLocaleDateString(undefined, {+ year: 'numeric', month: 'long', day: 'numeric', timeZone: 'UTC',+ });+ } catch { return iso; }+ }++ const esc = (s) => String(s ?? '').replace(/[<>&"]/g, (c) => ({ '<': '<', '>': '>', '&': '&', '"': '"' })[c]);++ function entryTags(e) {+ return e.type === 'launch' ? ['launch'] : (e.tags || []);+ }++ function render(entry) {+ const tags = entryTags(entry).map((t) => `<span class="ce-tag ce-tag-${esc(t)}">${esc(t)}</span>`).join('');+ const featureLink = entry.link+ ? `<a class="ce-link" href="${esc(entry.link)}">+ View feature+ <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><path d="M3 8h10M9 4l4 4-4 4"/></svg>+ </a>`+ : '';++ const pageUrl = window.location.href;++ document.getElementById('ce-content').innerHTML = `+ <div class="ce-meta">+ <span class="ce-date">${fmtDate(entry.date)}</span>+ ${tags}+ </div>+ <h1 class="ce-title">${esc(entry.title)}</h1>+ <p class="ce-summary">${esc(entry.summary)}</p>+ ${featureLink}+ <div class="ce-share">+ <span class="ce-share-label">Share</span>+ <a class="ce-share-btn" href="https://x.com/intent/tweet?text=${encodeURIComponent(entry.title + ' — three.ws changelog')}&url=${encodeURIComponent(pageUrl)}" target="_blank" rel="noopener">+ <svg viewBox="0 0 24 24" fill="currentColor"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-4.714-6.231-5.401 6.231H2.747l7.73-8.835L1.254 2.25H8.08l4.259 5.629 5.905-5.629Zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>+ X / Twitter+ </a>+ <button class="ce-share-btn ce-copy-btn" type="button" id="ce-copy">+ <svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="9" height="9" rx="1.5"/><path d="M3 12H2a1 1 0 01-1-1V2a1 1 0 011-1h9a1 1 0 011 1v1"/></svg>+ Copy link+ </button>+ </div>`;++ document.getElementById('ce-copy').addEventListener('click', async () => {+ try {+ await navigator.clipboard.writeText(pageUrl);+ const btn = document.getElementById('ce-copy');+ btn.classList.add('copied');+ btn.textContent = 'Copied!';+ setTimeout(() => { btn.classList.remove('copied'); btn.innerHTML = '<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><rect x="4" y="4" width="9" height="9" rx="1.5"/><path d="M3 12H2a1 1 0 01-1-1V2a1 1 0 011-1h9a1 1 0 011 1v1"/></svg> Copy link'; }, 2000);+ } catch { /* clipboard blocked */ }+ });++ // Update page title and meta+ document.title = entry.title + ' · three.ws Changelog';+ document.querySelector('meta[name="description"]').setAttribute('content', entry.summary.slice(0, 160));+ document.querySelector('link[rel="canonical"]').setAttribute('href', pageUrl);+ }++ function renderNotFound(slug) {+ document.getElementById('ce-content').innerHTML = `<p class="ce-not-found">Entry not found. <a href="/changelog">Back to changelog →</a></p>`;+ }++ // Extract slug from path: /changelog/:slug+ const pathParts = window.location.pathname.replace(/\/$/, '').split('/');+ const slug = pathParts[pathParts.length - 1];++ if (!slug || slug === 'entry') {+ window.location.replace('/changelog');+ } else {+ try {+ const res = await fetch('/changelog.json', { headers: { accept: 'application/json' } });+ if (!res.ok) throw new Error('feed ' + res.status);+ const data = await res.json();+ const entries = data.entries || [];+ const entry = entries.find((e) => slugify(e.title, e.date) === slug);+ if (entry) {+ render(entry);+ } else {+ renderNotFound(slug);+ }+ } catch (err) {+ document.getElementById('ce-content').innerHTML = `<p class="ce-not-found">Couldn't load changelog. <a href="/changelog">Back →</a></p>`;+ console.error('[changelog/entry]', err);+ }+ }+ </script>+ <script src="/brand.js" defer></script>+ <div id="footer-container"></div>+ <script src="/footer.js"></script>+</body>+</html>diff --git a/public/changelog/index.html b/public/changelog/index.htmlindex 1e2dcd697..a718a19df 100644--- a/public/changelog/index.html+++ b/public/changelog/index.html@@ -73,6 +73,11 @@const esc = (s) => String(s ?? '').replace(/[<>&"]/g, (c) => ({ '<': '<', '>': '>', '&': '&', '"': '"' })[c]);+ function slugify(title, date) {+ const slug = title.toLowerCase().replace(/[^a-z0-9]+/g, '-').replace(/^-+|-+$/g, '').slice(0, 80);+ return date + '-' + slug;+ }+function entryTags(e) {return e.type === 'launch' ? ['launch'] : e.tags || [];}@@ -93,14 +98,13 @@const isNew = (now - new Date(date + 'T00:00:00Z').getTime()) < RECENT_DAYS * 86400000;const cards = items.map((e) => {const tags = entryTags(e).map((t) => `<span class="cl-tag cl-tag-${esc(t)}">${esc(t)}</span>`).join('');+ const detailUrl = `/changelog/${slugify(e.title, e.date)}`;const inner = `<span class="cl-item-title">${esc(e.title)}</span>${e.type === 'launch' ? `<span class="cl-item-path">${esc(e.link)}</span>` : ''}<div class="cl-item-desc">${esc(e.summary)}</div><div class="cl-tags">${tags}</div>`;- return e.link- ? `<a class="cl-item" href="${esc(e.link)}">${inner}</a>`- : `<div class="cl-item">${inner}</div>`;+ return `<a class="cl-item" href="${esc(detailUrl)}">${inner}</a>`;}).join('');return `<section class="cl-day"><p class="cl-date">${fmtDate(date)}${isNew ? '<span class="cl-badge cl-badge-new">new</span>' : ''}</p>