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: extract x402 packages into standalone repos and update related documentation
qbdz96eee7ed79c7
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 279d6bb29..0a59c34f6 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -25,6 +25,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **The Sniper dashboard now carries the full Money Studio — wallet, Trading Brain, pricing and earnings** — The Sniper Strategies dashboard used to stop at strategy config and live positions. Now every strategy card has a second tab — Money Studio — that opens the exact same control surface as your agent's Money tab in Agent Studio, without leaving the dashboard. Fund the agent's wallet (live SOL and USDC balances, deposit address, withdraw with a one-tap Max, real SPL holdings and on-chain activity), open the full Trading Brain to draw a snipe rule and either scan live launches for one-tap assisted snipes or arm it to run autonomously, backtest a rule over the last 30 days, set per-call prices on the agent's skills, and watch what other agents pay it — all per agent, all real. No more bouncing between Agent Studio and the dashboard to top up a wallet before arming. The original Money tab in Agent Studio is untouched. (`/dashboard/sniper`) `[feature, improvement]`- **The swarm members panel is now a live standings board** — A swarm is a competition between its members, and the members list now reads like one. Members are ranked by stake — #1, #2, #3 — with the lead member marked by a token accent, and each member's reputation shows as a vote-weight chip: the chip carries the reputation score with the exact share of the swarm's vote that score commands beneath it, so you can see your track record become voting power (computed the same way the consensus engine does). The moment the treasury fires a trade, the members who were on the winning side of that consensus pulse green — pulled straight from the real recorded vote breakdown, so you can see exactly who carried it. When someone contributes or exits, the share bars animate and the standings re-sort smoothly instead of snapping. Respects reduced-motion preferences. (`/swarms`) `[improvement]`- **The Trading Brain now tracks open snipes and today's budget burn live** — The sniping panel in Agent Studio's Money tab no longer goes stale the moment it loads. Open positions now mark to live price on their own — each one shows its unrealized P&L (in SOL and percent) and refreshes every few seconds, so a snipe climbing or bleeding updates in front of you instead of waiting for a reload. When your agent is armed, new fills and exits appear on the same live tick. The Guardrails card now shows real spend: how much SOL the agent has traded today against your daily budget, as a number and a progress bar that turns amber past 60% and red past 90% — so you can see the leash tightening before it stops you. Polling pauses when the tab is hidden to spare your rate limit, and resumes the moment you come back. (`/agent-studio`) `[improvement]`+- **x402 payment-modal SDK now installs cleanly outside the monorepo** — The @three-ws/x402-payment-modal package shipped a server-side checkout adapter that quietly relied on @solana/web3.js, @solana/spl-token and express being present — they were never listed in the package, so installing it on its own and using the server piece failed with a missing-module error. Those are now declared as optional dependencies, so the browser modal stays as lightweight as ever while the server and React adapters pull in exactly what they need. The build also no longer assumes a monorepo folder layout. This is the first step in moving the x402 toolkit into its own repositories. `[fix, sdk]`## 2026-06-29diff --git a/data/changelog.json b/data/changelog.jsonindex c27b28ecb..2c52ffb3c 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,15 @@{"$comment": "Curated changelog entries for three.ws \u2014 the editorial layer of the public changelog. New PAGE launches are tracked automatically via the `added` field in data/pages.json; this file is for everything else holders care about: improvements, fixes, SDK releases, trading/payments capabilities, security work. scripts/build-page-index.mjs merges both sources into CHANGELOG.md, public/changelog.json, and public/changelog.xml. Newest first. Allowed tags: feature, improvement, fix, sdk, infra, docs, security. `link` is optional and must be a live three.ws path.","entries": [+ {+ "date": "2026-06-30",+ "title": "x402 payment-modal SDK now installs cleanly outside the monorepo",+ "summary": "The @three-ws/x402-payment-modal package shipped a server-side checkout adapter that quietly relied on @solana/web3.js, @solana/spl-token and express being present — they were never listed in the package, so installing it on its own and using the server piece failed with a missing-module error. Those are now declared as optional dependencies, so the browser modal stays as lightweight as ever while the server and React adapters pull in exactly what they need. The build also no longer assumes a monorepo folder layout. This is the first step in moving the x402 toolkit into its own repositories.",+ "tags": [+ "fix",+ "sdk"+ ]+ },{"date": "2026-06-30","title": "Agent and character pages now feel alive — the same game-feel polish, everywhere you meet a character",diff --git a/docs/package-extraction.md b/docs/package-extraction.mdnew file mode 100644index 000000000..fbf46211a--- /dev/null+++ b/docs/package-extraction.md@@ -0,0 +1,112 @@+# Package extraction — breaking the monorepo into standalone repos++We are graduating the reusable packages out of the `three.ws` monorepo into their+own GitHub repos that publish to npm (or, for the VS Code extension, the+Marketplace) independently. This is the playbook. **We start with the x402 family.**++## Why++The x402 packages (`@three-ws/x402-*`) are general-purpose — a buyer-side fetch+wrapper, a seller-side core, MCP servers, payment modals. They are useful far+beyond three.ws, they version on their own cadence, and bundling them in a 60++directory monorepo hides their issue tracker, inflates clone size, and couples+their releases to unrelated platform commits. Standalone repos fix all four.++## Decisions (locked)++- **One repo per package** (polyrepo), not a shared x402 monorepo.+- **History preserved** via `git filter-repo --subdirectory-filter` — blame and+ authorship carry across.+- **Scope/owner unchanged**: keep publishing as `@three-ws/*`, host under+ `github.com/nirholas`. No renames, no broken installs.++## Tooling++Two scripts in [`scripts/`](../scripts) do the work:++| Script | Who runs it | What it does |+|---|---|---|+| [`extract-package.sh`](../scripts/extract-package.sh) | anyone | Splits `<prefix>` into a standalone repo (history at root), rewrites `repository`/`bugs`, adds the publish CI workflow, and verifies it installs, builds, tests, and packs. |+| [`publish-extracted.sh`](../scripts/publish-extracted.sh) | **owner only** | Creates the GitHub repo, pushes the history, and tags the version to trigger the publish workflow. Needs the owner's `gh` auth + the repo's publish-token secret. |++```bash+# 1. build the standalone repo (deterministic, reads committed monorepo history)+scripts/extract-package.sh packages/x402-fetch x402-fetch nirholas++# 2. ship it (owner creds: gh auth as the namespace owner, then set NPM_TOKEN)+scripts/publish-extracted.sh x402-fetch nirholas+```++`extract-package.sh` reads **committed** history — commit any source fixes to the+monorepo first, then extract.++## x402 roster++All seven extract cleanly with full history. Six are npm packages already live+under `@three-ws/*`; `vscode-x402` targets the VS Code Marketplace.++| Package | Monorepo path | npm (live) | Local ver | Build | Tests | Notes |+|---|---|---|---|---|---|---|+| `@three-ws/x402-fetch` | `packages/x402-fetch` | 1.0.1 | 1.0.1 | vite | 7 pass | buyer-side fetch wrapper |+| `@three-ws/x402-server` | `packages/x402-server` | 0.1.0 | 0.1.0 | — | pass | seller-side core |+| `@three-ws/x402-mcp` | `packages/x402-mcp` | 0.2.0 | 0.2.0 | ✓ | pass | MCP server |+| `@three-ws/ibm-x402-mcp` | `packages/ibm-x402-mcp` | 1.1.0 | 1.1.0 | ✓ | pass | IBM MCP variant |+| `@three-ws/x402-modal` | `x402-modal-sdk` | 0.2.0 | 0.2.0 | esbuild | pass | payment modal SDK |+| `@three-ws/x402-payment-modal` | `x402-payment-modal` | 1.1.0 | **1.2.0** | esbuild | 14 pass | publishes 1.2.0 (deps fixed — see below) |+| `@three-ws/vscode-x402` | `packages/vscode-x402` | — | 0.1.0 | esbuild | — | **Marketplace**, not npm; needs name/publisher fix |++### Fixes the split surfaced (already applied to the monorepo)++- **`x402-payment-modal/build.mjs`** imported esbuild via a hardcoded+ `../node_modules/esbuild/lib/main.js` — coupled to the monorepo's hoisted+ layout, broken in a standalone repo. Changed to a bare `import 'esbuild'`,+ which resolves in both.+- **`x402-payment-modal/package.json`** shipped a `server/` adapter importing+ `@solana/web3.js`, `@solana/spl-token`, and `express` with **zero declared+ dependencies** — the published package was broken for anyone using the server+ subpath. Added them as optional `peerDependencies` (keeps the browser install+ lean) plus the Solana pair as `devDependencies` so tests/CI run.++### vscode-x402 — extra step before Marketplace publish++VS Code extensions cannot use a scoped `name`. Before `vsce publish`:++- set `name` to a plain id (e.g. `vscode-x402`),+- add a `publisher` field matching a registered Marketplace publisher,+- the CI workflow already uses `vsce publish` + `ovsx publish` (Open VSX) and+ expects `VSCE_PAT` / `OVSX_PAT` secrets.++## Owner handoff — the two steps that need credentials++Everything up to the GitHub/npm boundary is automated and verified. The final two+steps need the owner's credentials and cannot run from a collaborator session:++1. **Create + push each repo** (`nirholas` is a personal account; only its owner+ can create repos in that namespace). Each line is `<monorepo-path> <repo-name>`:+ ```bash+ while read -r path repo; do+ scripts/extract-package.sh "$path" "$repo" nirholas+ scripts/publish-extracted.sh "$repo" nirholas+ done <<'PKGS'+ packages/x402-fetch x402-fetch+ packages/x402-server x402-server+ packages/x402-mcp x402-mcp+ packages/ibm-x402-mcp ibm-x402-mcp+ x402-modal-sdk x402-modal+ x402-payment-modal x402-payment-modal+ PKGS+ ```+ (`vscode-x402` is handled separately — see the Marketplace note above.)+2. **Set the publish-token secret** on each new repo so its workflow can+ authenticate to npm (`NPM_TOKEN`) or the Marketplace (`VSCE_PAT`/`OVSX_PAT`).++Already-published versions (e.g. x402-fetch 1.0.1) republish only after a version+bump — the workflow tags and publishes the version in `package.json`, so bump it+when there's something new to ship. `x402-payment-modal` is at an unpublished+1.2.0 and will publish on first tag.++## After a package is extracted++The monorepo copy can stay (the platform still imports it locally) or be replaced+with the published dependency. That cutover is tracked per-package and is **not**+part of the extraction itself — extract and publish first, swap the import later.diff --git a/pages/pulse.html b/pages/pulse.htmlindex d72f914b3..94ec2cbc4 100644--- a/pages/pulse.html+++ b/pages/pulse.html@@ -35,6 +35,7 @@<link rel="manifest" href="/site.webmanifest" /><link rel="stylesheet" href="/fonts/fonts.css" /><link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/src/ui-juice.css" /><link rel="stylesheet" href="/src/pulse.css" /><link rel="stylesheet" href="/footer.css" /><script defer src="/footer-newsletter.js"></script>diff --git a/pages/watchlist.html b/pages/watchlist.htmlindex a20aa930b..6a76132fe 100644--- a/pages/watchlist.html+++ b/pages/watchlist.html@@ -24,6 +24,7 @@<link rel="manifest" href="/site.webmanifest" /><link rel="stylesheet" href="/fonts/fonts.css" /><link rel="stylesheet" href="/nav.css" />+ <link rel="stylesheet" href="/src/ui-juice.css" /><link rel="stylesheet" href="/src/watchlist.css" /><link rel="stylesheet" href="/footer.css" /><link rel="canonical" href="https://three.ws/watchlist" />diff --git a/public/changelog.json b/public/changelog.jsonindex 22aa64932..52b9da588 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-30T19:39:24.689Z",+ "generated_at": "2026-06-30T19:41:47.070Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -200,6 +200,17 @@"improvement"]},+ {+ "date": "2026-06-30",+ "type": "update",+ "title": "x402 payment-modal SDK now installs cleanly outside the monorepo",+ "summary": "The @three-ws/x402-payment-modal package shipped a server-side checkout adapter that quietly relied on @solana/web3.js, @solana/spl-token and express being present — they were never listed in the package, so installing it on its own and using the server piece failed with a missing-module error. Those are now declared as optional dependencies, so the browser modal stays as lightweight as ever while the server and React adapters pull in exactly what they need. The build also no longer assumes a monorepo folder layout. This is the first step in moving the x402 toolkit into its own repositories.",+ "link": null,+ "tags": [+ "fix",+ "sdk"+ ]+ },{"date": "2026-06-29","type": "launch",diff --git a/public/changelog.xml b/public/changelog.xmlindex 9d34f6f92..dbea94755 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -158,6 +158,14 @@<category>improvement</category><description>The sniping panel in Agent Studio's Money tab no longer goes stale the moment it loads. Open positions now mark to live price on their own — each one shows its unrealized P&L (in SOL and percent) and refreshes every few seconds, so a snipe climbing or bleeding updates in front of you instead of waiting for a reload. When your agent is armed, new fills and exits appear on the same live tick. The Guardrails card now shows real spend: how much SOL the agent has traded today against your daily budget, as a number and a progress bar that turns amber past 60% and red past 90% — so you can see the leash tightening before it stops you. Polling pauses when the tab is hidden to spare your rate limit, and resumes the moment you come back.</description></item>+ <item>+ <title>x402 payment-modal SDK now installs cleanly outside the monorepo</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-30:x402 payment-modal SDK now installs cleanly outside the monorepo</guid>+ <pubDate>Tue, 30 Jun 2026 12:00:00 GMT</pubDate>+ <category>fix</category>+ <description>The @three-ws/x402-payment-modal package shipped a server-side checkout adapter that quietly relied on @solana/web3.js, @solana/spl-token and express being present — they were never listed in the package, so installing it on its own and using the server piece failed with a missing-module error. Those are now declared as optional dependencies, so the browser modal stays as lightweight as ever while the server and React adapters pull in exactly what they need. The build also no longer assumes a monorepo folder layout. This is the first step in moving the x402 toolkit into its own repositories.</description>+ </item><item><title>Agent Economy Volume</title><link>https://three.ws/agent-economy-volume</link>diff --git a/public/features.json b/public/features.jsonindex 0183479ca..dd3e7e29c 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-30T19:39:24.663Z",+ "generated_at": "2026-06-30T19:41:47.046Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",diff --git a/scripts/publish-extracted.sh b/scripts/publish-extracted.shnew file mode 100755index 000000000..cd393ad9c--- /dev/null+++ b/scripts/publish-extracted.sh@@ -0,0 +1,48 @@+#!/usr/bin/env bash+#+# publish-extracted.sh — owner-run companion to extract-package.sh.+#+# Creates the standalone GitHub repo, pushes the extracted history, and (for npm+# packages) tags the version so the repo's publish.yml workflow ships it to npm.+#+# Run this with the OWNER's credentials:+# - `gh auth login` as the account that owns the target namespace (nirholas),+# OR set the target to your own namespace.+# - The new repo needs an NPM_TOKEN secret (npm packages) or VSCE_PAT/OVSX_PAT+# (VS Code extension) for the publish workflow to authenticate.+#+# Usage:+# scripts/publish-extracted.sh <repo-name> [owner] [--private]+#+# Example:+# scripts/extract-package.sh packages/x402-fetch x402-fetch nirholas # build it+# scripts/publish-extracted.sh x402-fetch nirholas # ship it++set -euo pipefail++REPO_NAME="${1:?usage: publish-extracted.sh <repo-name> [owner] [--private]}"+OWNER="${2:-nirholas}"+VIS="--public"; [ "${3:-}" = "--private" ] && VIS="--private"++OUT_DIR="${OUT_DIR:-/tmp/claude-1000/-workspaces-three-ws/d57d4fdd-6fc6-4b30-9b8f-074137e13d3e/scratchpad/extracted}"+DEST="$OUT_DIR/$REPO_NAME"++[ -d "$DEST/.git" ] || { echo "ERROR: $DEST not found — run extract-package.sh first." >&2; exit 1; }+cd "$DEST"++DESC="$(node -p 'require("./package.json").description || ""')"+VERSION="$(node -p 'require("./package.json").version')"++echo "==> creating github.com/$OWNER/$REPO_NAME ($VIS) and pushing history"+gh repo create "$OWNER/$REPO_NAME" $VIS --source "$DEST" --remote origin --push --description "$DESC"++echo "==> tagging v$VERSION (triggers the publish workflow once the token secret is set)"+git tag -f "v$VERSION"+git push -f origin "v$VERSION"++echo ""+echo "DONE: github.com/$OWNER/$REPO_NAME pushed, tagged v$VERSION."+echo "Set the publish secret so the workflow can authenticate:"+echo " npm packages: gh secret set NPM_TOKEN --repo $OWNER/$REPO_NAME"+echo " vscode ext: gh secret set VSCE_PAT --repo $OWNER/$REPO_NAME"+echo " gh secret set OVSX_PAT --repo $OWNER/$REPO_NAME # optional, Open VSX"diff --git a/src/agi.css b/src/agi.cssindex 3f0e20184..8f9eb24c0 100644--- a/src/agi.css+++ b/src/agi.css@@ -200,9 +200,8 @@.agi-ring svg { transform: rotate(-90deg); width: 100%; height: 100%; }.agi-ring .agi-ring-track { stroke: var(--surface-3); }.agi-ring .agi-ring-val { stroke: var(--ink-bright); stroke-linecap: round; transition: stroke-dashoffset var(--duration-slow) var(--ease-emphasized); }-.agi-ring-num b { font-variant-numeric: tabular-nums; }.agi-ring-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }-.agi-ring-num b { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; }+.agi-ring-num b { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1; font-variant-numeric: tabular-nums; }.agi-ring-num small { font-family: var(--font-mono); font-size: var(--text-2xs); color: var(--ink-dim); }.agi-rep-side { font-size: var(--text-sm); color: var(--ink-dim); line-height: 1.5; }.agi-rep-side b { color: var(--ink); }diff --git a/src/deployments.css b/src/deployments.cssindex 64366cd6a..297c2bad4 100644--- a/src/deployments.css+++ b/src/deployments.css@@ -2,6 +2,10 @@palette as the rest of the site: the white --ink / --accent ramp only, nobrand colour. Mirrors the /pulse chrome so the two live feeds feel like oneproduct. */+@import './ui-juice.css';++/* Shared live-state dot sits beside the "Live feed" heading. */+.dp-feed-head .juice-live { margin-left: var(--space-2); }@keyframes dp-land {from { opacity: 0; transform: translateY(-6px); }diff --git a/src/deployments.js b/src/deployments.jsindex e0e8d9440..046244637 100644--- a/src/deployments.js+++ b/src/deployments.js@@ -10,6 +10,7 @@*/import { createLogger } from './shared/log.js';+import { updateValue, enterRow, liveDot, setLiveDot } from './ui-juice.js';const log = createLogger('deployments');@@ -80,13 +81,15 @@ async function loadStats() {}function renderStats(d) {- $('dp-c-total').textContent = fmtNum(d.total_agents ?? 0);- $('dp-c-chains').textContent = String(d.active_chains ?? 0);- $('dp-c-d24').textContent = fmtNum(d.deployed_24h ?? 0);- $('dp-c-d7').textContent = fmtNum(d.deployed_7d ?? 0);- $('dp-c-3d').textContent = `${d.with_3d_pct ?? 0}%`;+ // Count the headline registry counters between real poll values — the total and+ // 24h tallies tick up as fresh agents deploy on-chain.+ updateValue($('dp-c-total'), Number(d.total_agents ?? 0), fmtNum, { flash: false });+ updateValue($('dp-c-chains'), Number(d.active_chains ?? 0), (n) => String(Math.round(n)), { flash: false });+ updateValue($('dp-c-d24'), Number(d.deployed_24h ?? 0), fmtNum);+ updateValue($('dp-c-d7'), Number(d.deployed_7d ?? 0), fmtNum, { flash: false });+ updateValue($('dp-c-3d'), Number(d.with_3d_pct ?? 0), (n) => `${Math.round(n)}%`, { flash: false });$('dp-c-3d-sub').textContent = `${fmtNum(d.with_3d ?? 0)} rigged agents`;- $('dp-c-x402').textContent = `${d.x402_pct ?? 0}%`;+ updateValue($('dp-c-x402'), Number(d.x402_pct ?? 0), (n) => `${Math.round(n)}%`, { flash: false });$('dp-c-x402-sub').textContent = `${fmtNum(d.x402 ?? 0)} accept payments`;const todayEl = $('dp-today');@@ -167,8 +170,10 @@ async function loadFeed(reset) {state.cursor = data.next_cursor;state.hasMore = !!data.has_more;renderFeed();+ setFeedLive(state.items.length ? 'live' : 'idle');} catch (e) {log.warn('feed failed', e?.message);+ setFeedLive('error');if (reset && host) {host.innerHTML = `<div class="dp-error"><div class="dp-empty-title">Couldn’t reach the registry</div><p>The deployment feed is reconnecting. <button type="button" class="dp-retry" id="dp-retry">Retry</button></p></div>`;$('dp-retry')?.addEventListener('click', () => loadFeed(true));@@ -241,8 +246,8 @@ function renderFeed() {const wrap = document.createElement('div');wrap.innerHTML = rowHTML(r);const row = wrap.firstElementChild;- row.classList.add('dp-row--new');host.prepend(row);+ enterRow(row); // shared slide-in so the live refresh reads as a stream});} else if (!renderedIds.size) {// Initial render or after full reset@@ -304,7 +309,15 @@ function wireLoadMore() {}}+// Live-state dot on the "Live feed" head — driven by the real 45s registry poll+// lifecycle, mirroring the SSE vocabulary used across launch surfaces.+function setFeedLive(stateName) {+ setLiveDot(document.querySelector('.dp-feed-head'), stateName);+}+function init() {+ const feedHead = document.querySelector('.dp-feed-head .dp-section-h');+ if (feedHead) feedHead.insertAdjacentHTML('afterend', liveDot('connecting'));wireNetworkToggle();wireFilters();wireLoadMore();diff --git a/src/genesis.css b/src/genesis.cssindex 3b7e54eaa..2d515195b 100644--- a/src/genesis.css+++ b/src/genesis.css@@ -1,6 +1,7 @@/* Instant Agent Genesis — selfie/prompt → 3D agent → funded wallet → on-chainidentity in under a minute. Styling leans on the shared design tokens(public/tokens.css) with safe fallbacks so the page stays portable. */+@import './ui-juice.css';:root {--gx-gap: var(--space-md, 16px);diff --git a/src/genesis.js b/src/genesis.jsindex d461124f1..9884da930 100644--- a/src/genesis.js+++ b/src/genesis.js@@ -19,6 +19,7 @@import { apiFetch } from './api.js';import { getMe } from './account.js';+import { rippleOnce } from './ui-juice.js';// wallet-auth.js and erc8004/agent-registry.js pull in ethers — heavy and only// needed when the user actually signs in or registers an identity. They're// dynamically imported at those call sites so the initial genesis bundle stays light.@@ -66,6 +67,9 @@ function showStage(name) {el.hidden = el.dataset.stage !== name;});window.scrollTo({ top: 0, behavior: 'smooth' });+ // The reveal is the real "it shipped" beat — the agent is born and on screen.+ // One restrained ripple on the reveal card marks it (reduced-motion-safe).+ if (name === 'reveal') rippleOnce(document.querySelector('.gx-stage[data-stage="reveal"] .gx-reveal'));}function showError(elId, message, onRetry) {@@ -687,6 +691,8 @@ function renderIdentity() {body.innerHTML = `<p class="gx-identity-status">ERC-8004 agent #${state.onchain.agentId ?? ''} on Base. Identity tx:</p><a class="gx-tx" href="${explorer}" target="_blank" rel="noopener">${state.onchain.txHash}</a>`;+ // A real ERC-8004 record just landed — ripple the badge once to mark it.+ rippleOnce(badge);return;}badge.textContent = 'Not registered';diff --git a/src/three-gate.css b/src/three-gate.cssindex 4d61905d4..909da18cb 100644--- a/src/three-gate.css+++ b/src/three-gate.css@@ -297,6 +297,16 @@background: linear-gradient(90deg, var(--tg-green), var(--tg-green-2));transition: width 0.5s var(--tg-ease);}+/* Grow the fill in from the left to its real, balance-driven width without+ touching the inline width (scaleX, transform-origin left). */+.tg-prog-fill--grow {+ transform-origin: left center;+ animation: tg-fill-grow 0.6s var(--tg-ease) both;+}+@keyframes tg-fill-grow {+ from { transform: scaleX(0); }+ to { transform: scaleX(1); }+}.tg-silver .tg-prog-fill {background: linear-gradient(90deg, var(--tg-silver), var(--tg-silver-2));}diff --git a/src/three-gate.js b/src/three-gate.jsindex 88433d85b..4504e5386 100644--- a/src/three-gate.js+++ b/src/three-gate.js@@ -280,8 +280,8 @@ class ThreeGate extends HTMLElement {`<span class="tg-meta-v">${escapeHtml(required.label)} · ${fmtUsd(reqMin)}</span></div>` +`</div>` +`<div class="tg-prog">` +- `<span class="tg-prog-track"><span class="tg-prog-fill" style="width:0%"></span></span>` +- `<span class="tg-prog-cap"><span class="tg-prog-cap-n">0</span>% there</span>` ++ `<span class="tg-prog-track"><span class="tg-prog-fill tg-prog-fill--grow" style="width:${pct}%"></span></span>` ++ `<span class="tg-prog-cap"><span class="tg-prog-cap-n">${pct}</span>% there</span>` +`</div>` +`<div class="tg-actions">` +`<a class="tg-btn tg-btn--primary" data-tg-get href="${JUPITER_SWAP_URL}" target="_blank" rel="noopener">Get $THREE</a>` +@@ -295,12 +295,11 @@ class ThreeGate extends HTMLElement {this._wireLocked();- // Drive the progress toward the required hold from real numbers: sweep the- // fill to its live percentage and count the cap up to match. Reduced motion- // is handled by the scoped transition reset + countUp's instant-final path.- const fill = this._veil.querySelector('.tg-prog-fill');+ // Count the "% there" cap up to the live percentage. The bar itself is+ // rendered at its real width (so the static state is correct and assertable)+ // and grows in with the scoped scaleX sweep; countUp lands on the same real+ // number and respects reduced motion via its instant-final path.const capN = this._veil.querySelector('.tg-prog-cap-n');- if (fill) requestAnimationFrame(() => { fill.style.width = `${pct}%`; });if (capN) countUp(capN, 0, pct, { format: (n) => String(Math.round(n)) });}diff --git a/src/watchlist.js b/src/watchlist.jsindex 0df30886b..cb9274842 100644--- a/src/watchlist.js+++ b/src/watchlist.js@@ -21,6 +21,7 @@// ════════════════════════════════════════════════════════════════════════════import { mountCoinStatus, formatMcap } from './pump/coin-status-card.js';+import { updateValue, flipReorder } from './ui-juice.js';const WATCH_KEY = 'ld_watchlist'; // shared with src/launch-detail.jsconst LAST_TIERS_KEY = 'wl_last_tiers'; // mint → tier, for upgrade detection@@ -407,10 +408,12 @@ function updateSummary() {const gradCnt = coins.filter((c) => c.graduated).length;const avgConv = convs.length ? Math.round(convs.reduce((a, c) => a + Number(c.score), 0) / convs.length) : null;- setText('wl-sum-mcap', coins.length ? formatMcap(sumMcap) : '—');- setText('wl-sum-vol', coins.length ? formatMcap(sumVol) : '—');+ // Count the aggregate tiles from their previously-shown real values, flashing+ // the direction as watched-coin data refreshes (the #wl-sum-* nodes persist).+ setNum('wl-sum-mcap', coins.length ? sumMcap : null, formatMcap);+ setNum('wl-sum-vol', coins.length ? sumVol : null, formatMcap);setText('wl-sum-grad', `${gradCnt}/${list.length}`);- setText('wl-sum-conv', avgConv != null ? String(avgConv) : '—');+ setNum('wl-sum-conv', avgConv, (n) => String(Math.round(n)));const convEl = document.getElementById('wl-sum-conv');if (convEl && avgConv != null) convEl.style.color = TIER_COLOR[tierForScore(avgConv)] || '';@@ -423,6 +426,15 @@ function setText(id, text) {if (node) node.textContent = text;}+// Count a summary tile from its previously-shown real value to the new one and+// flash the direction; missing → static dash with the count tracker cleared.+function setNum(id, value, format) {+ const node = document.getElementById(id);+ if (!node) return;+ if (value == null || !Number.isFinite(value)) { node.textContent = '—'; delete node.dataset.juiceVal; return; }+ updateValue(node, value, format);+}+function tierForScore(s) {if (s >= 75) return 'prime';if (s >= 60) return 'strong';@@ -599,6 +611,11 @@ function applySortFilter() {});}+ // FLIP the cards to their new order: capture current positions, move the same+ // nodes into rank order, then animate the deltas — so live data re-sorts glide+ // instead of snapping. Same nodes are reused, so this is a true FLIP.+ const flip = flipReorder(feedEl, (cardEl) => cardEl.dataset.mint || '');+ flip.capture();let visible = 0;for (const mint of ordered) {const card = cardEls.get(mint);@@ -615,6 +632,7 @@ function applySortFilter() {card.classList.toggle('wl-hidden', !show);if (show) visible++;}+ flip.play();renderNoMatch(visible === 0, q, tierFilter);}