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(docs): add new documentation for x402 protocol, endpoints, revenue, buyer client, autonomous loop, circulation engine, and money feed
qbdz16b7c7ca803e
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex de69eae3f..29ec13d22 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -6,6 +6,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-06-30+- **Docs · x402 Revenue & Receipts** (`/docs/x402-revenue`) — Where settled x402 payments are recorded (x402_audit_log), how to read endpoint revenue, and how signed receipts work.- **Oracle Docs — the conviction engine, end to end** (`/oracle/docs`) — The complete Oracle reference: the thesis behind fused pump.fun conviction, the four-pillar scoring model and its exact math, the data pipeline and worker loops, the calibration and backtest evidence, the agent action loop, the full API, the data model, limitations, and where it scales next — written for everyone from first-time readers to researchers.- **Viability** (`/viability`) — The honest signal behind three.ws — real marketplace and trading viability. Live $THREE skill GMV, take-rate, repeat buyers and trading pairs, plus real guarded coin-trade flow, cost and realized P&L on closed positions. Real on-chain data only.- **Agent and character pages now feel alive — the same game-feel polish, everywhere you meet a character** — The places where you meet, browse and build characters got the same motion treatment as the Swarms and AI pages, all driven by real data. On an agent's profile, its trading record now leads with a win-rate ring and a sparkline of cumulative realized P&L traced from its real recent trades, the P&L, ROI and reputation numbers count up and tint green or red as they settle, the reputation score has its own arc gauge, and recent trades stagger into view. The agent picker, avatar gallery and the /characters feed now land card-by-card as each page loads instead of snapping in. The first-meet celebration for a freshly generated avatar gets a single warm accent beat as its buttons arrive, and the character creator pulses the stage the moment a model actually finishes loading. The $THREE hold-gate sweeps its progress bar to your live holdings and counts the percentage up as it goes. Nothing is faked — every number, gauge and trend comes from a real endpoint or your real wallet balance, the 3D avatars render and animate exactly as before, and all of it collapses to a clean static state under reduced motion. (`/characters`) `[improvement]`@@ -37,6 +38,11 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr## 2026-06-29- **Agent Economy Volume** (`/agent-economy-volume`) — Live dashboard of total agent-to-agent economy volume: real USDC settled between AI agents hiring each other for paid skills over x402, with top earners, top spenders, and a 90-day volume chart.+- **Docs · Autonomous x402 Loop** (`/docs/autonomous-x402`) — The scheduled buyer that pays x402 endpoints on a cadence to feed the oracle and sniper — real USDC, real settlements.+- **Docs · Circulation Engine** (`/docs/circulation-engine`) — The autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.+- **Docs · Money Feed** (`/docs/money-feed`) — The surfaces that show real value moving through three.ws — the live ticker, the custody-spend ledger, and the economy volume dashboard.+- **Docs · x402 Buyer Client** (`/docs/x402-buyer`) — How to settle a 402 challenge and pay three.ws's paid endpoints from code.+- **Docs · x402 Paid Endpoints** (`/docs/x402-endpoints`) — The catalog of three.ws's own paid HTTP endpoints — what each charges, the price-override scheme, and what it returns.- **Agent profile layout fixed on laptops and tablets** — On mid-width screens — laptops, tablets, and split-screen windows — agent profile pages were collapsing into a single cramped column hugging the sidebar, with a stray horizontal scrollbar and the "Walk with this agent" card wrapping its text one word per line. The page now lays its cards out in a balanced multi-column grid across the full width, the sidebar steps aside when there isn't room for it, the horizontal scroll is gone, and every card adapts cleanly to the width it's given. `[fix]`- **Agent profiles now earn achievements and badges** — Every agent profile now shows the achievements it has earned on three.ws — tiered badges for real milestones like launching a coin, graduating a token to the AMM, crossing $100K and $1M market caps, drawing real supporters, running buyback burns, reaching a Trusted or Elite reputation tier, and sticking around. Each badge is computed from real on-chain and ledger data, never hand-assigned, and the panel also shows an "in progress" ladder so a creator can see exactly what's next. The graduate badge celebrates the agents whose coins actually migrated. `[feature]`- **Agent profiles now use the full width of the screen** — An agent's profile page used to sit in a single narrow column down the middle, leaving most of a wide screen empty and forcing a very long scroll. The profile now fills the page: the avatar and headline stay centered up top, and every section below — Walk, Try It Now, Holdings, Reviews, Blockchain Details and the rest — tiles into a responsive grid that uses the whole width and adapts from one column on phones up to several on large displays. Same information, far less scrolling. `[improvement]`@@ -1485,6 +1491,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **.well-known/oauth-authorization-server** (`/.well-known/oauth-authorization-server`) — OAuth 2.1 authorization-server metadata.- **.well-known/x402** (`/.well-known/x402`) — x402 paid-API discovery document.- **Chat** (`/chat`) — Talk to your agent. Voice, text, and tool-use in one interface.+- **Docs · x402 Protocol** (`/docs/x402`) — How three.ws implements x402 HTTP 402 paid agent skills — the challenge, verify, and settle mechanics.- **Marketplace** (`/marketplace`) — Buy access to agents, skills, and avatars from other creators.- **Pump.fun Stream** (`/pumpfun`) — Mint and trade pump.fun agent tokens on Solana. Live feed of every launch.- **Solana Vanity Wallet** (`/vanity-wallet`) — Grind a Solana address with a custom prefix — entirely in your browser, across your CPU cores.diff --git a/data/pages.json b/data/pages.jsonindex 255dc2a40..71a1d9ce8 100644--- a/data/pages.json+++ b/data/pages.json@@ -1492,6 +1492,48 @@"description": "Why autonomous agents need verifiable trust, and how three.ws delivers portable on-chain reputation.","added": "2026-06-22"},+ {+ "path": "/docs/x402",+ "title": "Docs · x402 Protocol",+ "description": "How three.ws implements x402 HTTP 402 paid agent skills — the challenge, verify, and settle mechanics.",+ "added": "2026-04-29"+ },+ {+ "path": "/docs/x402-endpoints",+ "title": "Docs · x402 Paid Endpoints",+ "description": "The catalog of three.ws's own paid HTTP endpoints — what each charges, the price-override scheme, and what it returns.",+ "added": "2026-06-29"+ },+ {+ "path": "/docs/x402-revenue",+ "title": "Docs · x402 Revenue & Receipts",+ "description": "Where settled x402 payments are recorded (x402_audit_log), how to read endpoint revenue, and how signed receipts work.",+ "added": "2026-06-30"+ },+ {+ "path": "/docs/x402-buyer",+ "title": "Docs · x402 Buyer Client",+ "description": "How to settle a 402 challenge and pay three.ws's paid endpoints from code.",+ "added": "2026-06-29"+ },+ {+ "path": "/docs/autonomous-x402",+ "title": "Docs · Autonomous x402 Loop",+ "description": "The scheduled buyer that pays x402 endpoints on a cadence to feed the oracle and sniper — real USDC, real settlements.",+ "added": "2026-06-29"+ },+ {+ "path": "/docs/circulation-engine",+ "title": "Docs · Circulation Engine",+ "description": "The autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.",+ "added": "2026-06-29"+ },+ {+ "path": "/docs/money-feed",+ "title": "Docs · Money Feed",+ "description": "The surfaces that show real value moving through three.ws — the live ticker, the custody-spend ledger, and the economy volume dashboard.",+ "added": "2026-06-29"+ },{"path": "/docs/reputation","title": "Docs · Reputation System",diff --git a/docs/autonomous-x402.md b/docs/autonomous-x402.mdindex cccd3a1e0..e0a482dc6 100644--- a/docs/autonomous-x402.md+++ b/docs/autonomous-x402.md@@ -41,7 +41,9 @@ Payments are real on chain — no mocks, no simulations.| `X402_AGENT_SOLANA_SECRET_BASE58` | _(fallback)_ | Used if the seeder secret is absent. || `X402_AUTONOMOUS_ENABLED` | enabled | Set to `false` to pause without removing entries. || `X402_AUTONOMOUS_MAX_PER_TICK` | `8` | Max calls per cron tick. |-| `X402_AUTONOMOUS_DAILY_CAP_ATOMIC` | `5000000` ($5) | Daily USDC cap, in 6-decimal atomics. |+| `X402_AUTONOMOUS_DAILY_CAP_ATOMIC` | `5000000` ($5) | Daily USDC cap across the whole loop, in 6-decimal atomics. |+| `X402_VOLUME_BATCH_PER_RUN` | `4` | Volume Bootstrap Loop: endpoints swept per run (cursor advances by this). |+| `X402_VOLUME_PER_RUN_CAP_ATOMIC` | `50000` ($0.05) | Volume Bootstrap Loop: self-imposed per-run cap, on top of the daily cap, so one tick can't drain the day. || `CRON_SECRET` | _(required)_ | Vercel cron authorization. || `X402_ASSET_MINT_SOLANA` | USDC mint | The asset paid with (Solana USDC). || `SOLANA_RPC_URL` | — | RPC used to build and submit the payment. |@@ -88,13 +90,54 @@ The registry groups entries into pipelines. The main ones in production:- **`security`** — payment-proof idempotency and API-key bypass audits thatexercise our own payment guards end to end.- **`volume`** — small, bounded activity entries that keep the economy's heartbeat- visible.+ visible, including the **Volume Bootstrap Loop** (see below).+- **`reconciliation`** — the daily financial-integrity job (see below).- **`qa` / `forge` / `self`** — animation-retarget QA, forge content generation,GLB size optimization, avatar thumbnail regeneration.To pause any entry without a deploy, set its `enabled: false`; to pause the wholeloop, set `X402_AUTONOMOUS_ENABLED=false`.+## The Volume Bootstrap Loop (`self/026`)++One registry entry — `volume-bootstrap-loop`, pipeline `volume`, cooldown 300s —+owns a full sweep rather than a single call. On each run it advances a+Redis-backed round-robin cursor, reserves the next `X402_VOLUME_BATCH_PER_RUN`+endpoints from the `VOLUME_ENDPOINTS` catalog in+[`pipelines/volume-bootstrap-loop.js`](../api/_lib/x402/pipelines/volume-bootstrap-loop.js),+and pays each one a real on-chain USDC payment ($0.001–$0.01). It respects both+the loop's daily cap and its own `X402_VOLUME_PER_RUN_CAP_ATOMIC` per-run cap. It+records every call in `x402_autonomous_log` and upserts the per-endpoint ledger+`x402_volume_metrics` (call / success / fail counts, total + last USDC spent, last+tx signature, liveness timestamps). To add an endpoint to the sweep, add it to+`VOLUME_ENDPOINTS` — the cursor and ledger pick it up automatically.++> **This is synthetic, not organic.** The sweep pays our **own** endpoints from+> our **own** seed wallet; the USDC round-trips back to the platform treasury. It+> is a **liveness canary + proof-of-volume** mechanism, deliberately kept small —+> not external demand. Treat `x402_volume_metrics` as monitoring, and exclude the+> seed wallet's `payer` from any "marketplace volume" or facilitator-ranking+> number you publish. Scaling this loop to manufacture a big volume figure is wash+> volume — real transactions, fake demand, and detectable on-chain. The full+> reasoning lives in+> [x402 revenue → Synthetic vs organic](x402-revenue.md#proof-of-volume--x402_volume_metrics).+> Drive *real* volume through external demand (the+> [Circulation engine](circulation-engine.md), real `agent_hire` commerce,+> discovery), not a heavier self-paid sweep.++## Reconciliation (`self/027`)++The `revenue-reconciliation` entry (pipeline `reconciliation`, cooldown 86400s —+**daily**) is the financial-integrity watchdog. It cross-checks every record that+claims an on-chain settlement — outbound `x402_autonomous_log` rows and inbound+`agent_payment_intents` — against the actual Solana transaction via+`getSignatureStatuses`, and upserts a verdict per record into+`payment_reconciliation`. It is **read-only**, so it runs even with no spend+wallet configured (keyless RPC; the `/api/x402-status` probe it reads is free). A+`reconciled = false` row means the books claim a settlement the chain does not+corroborate — the ops financial-integrity surface alerts on those. Detail:+[x402 revenue → Reconciliation](x402-revenue.md#reconciliation--payment_reconciliation).+## Where results land| Sink | Written by |@@ -102,10 +145,13 @@ loop, set `X402_AUTONOMOUS_ENABLED=false`.| `x402_autonomous_log` | Every call (success or failure), with `signal_data` / `value_extracted`. || `oracle_intel_signals` | `oracle` / `sniper` entries, keyed by source + topic; consumed by the sniper oracle gate. || `agent_custody_events` | The USDC spend, with `category: 'x402'` (see [Money feed](money-feed.md)). |+| `x402_volume_metrics` | Per-endpoint proof-of-volume + liveness ledger from the Volume Bootstrap Loop (see [x402 revenue](x402-revenue.md#proof-of-volume--x402_volume_metrics)). |+| `payment_reconciliation` | One verdict per settlement claim from the daily reconciliation job (see [x402 revenue](x402-revenue.md#reconciliation--payment_reconciliation)). || Dedicated stores | Pipeline-specific tables (pricing tracker, reputation snapshots, leaderboard, sniper analytics, …). |## Related- [x402 endpoints](x402-endpoints.md) — the paid endpoints this loop calls.+- [x402 revenue & receipts](x402-revenue.md) — where settlements land, the proof-of-volume ledger, and the reconciliation job.- [x402 buyer client](x402-buyer.md) — the client wrappers it pays with.- [Circulation engine](circulation-engine.md) — the separate SOL/$THREE activity loop.diff --git a/docs/x402-revenue.md b/docs/x402-revenue.mdindex 89824cc70..31b7742d6 100644--- a/docs/x402-revenue.md+++ b/docs/x402-revenue.md@@ -202,14 +202,133 @@ so the same on-chain payment can never be replayed against two requests.---+## Proof-of-volume — `x402_volume_metrics`++`x402_audit_log` is the per-call ledger (one row per settlement). Alongside it,+the **Volume Bootstrap Loop** (autonomous registry `self/026`,+[`pipelines/volume-bootstrap-loop.js`](../api/_lib/x402/pipelines/volume-bootstrap-loop.js))+maintains a compact **rolling aggregate keyed on endpoint** in+`x402_volume_metrics`. On each sweep the loop round-robins the catalog of cheap+paid self endpoints, pays each a real on-chain USDC payment, and upserts one row+per endpoint — accumulating call / success / fail counts, total + last USDC+spent, last tx signature, last status, and first/last call timestamps.++```sql+CREATE TABLE x402_volume_metrics (+ endpoint_key text PRIMARY KEY, -- one row per paid endpoint+ service_name text,+ endpoint_path text,+ network text NOT NULL DEFAULT 'solana:mainnet',+ asset text,+ call_count bigint NOT NULL DEFAULT 0,+ success_count bigint NOT NULL DEFAULT 0,+ fail_count bigint NOT NULL DEFAULT 0,+ total_spent_atomic bigint NOT NULL DEFAULT 0, -- USDC atomics, lifetime+ last_amount_atomic bigint NOT NULL DEFAULT 0,+ last_success boolean,+ last_status int,+ last_tx_signature text,+ last_error text,+ last_run_id uuid,+ first_called_at timestamptz DEFAULT now(),+ last_called_at timestamptz DEFAULT now()+);+```++Schema:+[`api/_lib/migrations/20260629110000_x402_volume_metrics.sql`](../api/_lib/migrations/20260629110000_x402_volume_metrics.sql)+(the pipeline also creates it lazily via `ensureSchema`). It feeds two things the+growth + status surfaces read: **proof-of-volume** (total settled calls and USDC+volume per endpoint — the metric agentic.market ranks facilitators on) and+**per-endpoint liveness** (`last_success` / `last_called_at` confirm each paid+endpoint is up). Add an endpoint to `VOLUME_ENDPOINTS` in the pipeline and the+cursor and ledger pick it up automatically.++> **Synthetic vs organic — do not conflate them.** The Volume Bootstrap Loop pays+> our **own** endpoints from our **own** seed wallet, and those endpoints settle+> to the platform's own `X402_PAY_TO_*` treasury. Every transaction is real and+> on-chain — but the *demand* is synthetic: it is the platform paying itself, a+> liveness canary, not external buyers. It is legitimate as **synthetic+> monitoring** (proving every paid endpoint is live) and is bounded small by+> design (see the budget knobs in [Autonomous x402 loop](autonomous-x402.md)).+> It is **not** marketplace demand. Any headline "marketplace volume" or+> facilitator-ranking number we publish must **exclude the seed wallet's own+> calls** — filter `x402_audit_log` by `payer` to separate organic settlements+> from the loop's synthetic ones. Reporting self-paid round-trips as organic+> volume is wash volume: real transactions, fake demand, and trivially detectable+> by anyone clustering the seed wallet on-chain. The honest path to real volume+> is external demand (discovery, real `agent_hire` commerce, the+> [Circulation engine](circulation-engine.md)), not a bigger self-paid sweep.++---++## Reconciliation — `payment_reconciliation`++A live payment platform's books must match the chain. The **Payment Revenue+Reconciliation** job (autonomous registry `self/027`, runs **daily**,+[`revenue-reconciliation.js`](../api/_lib/x402/revenue-reconciliation.js)) is the+financial-integrity watchdog. Each run pulls recent records that claim settlement+from both books — `x402_autonomous_log` (outbound spend) and+`agent_payment_intents` (inbound revenue) — verifies each Solana signature+on-chain via `getSignatureStatuses` (batched, full-history search), and upserts+one verdict row per record into `payment_reconciliation`.++```sql+CREATE TABLE payment_reconciliation (+ id bigserial PRIMARY KEY,+ source text NOT NULL, -- 'autonomous_log' | 'payment_intent'+ source_ref text NOT NULL, -- row id within that book+ tx_signature text,+ network text,+ amount_atomic bigint,+ db_status text NOT NULL, -- what the book claims+ chain_status text NOT NULL, -- confirmed | failed_onchain | missing_onchain+ -- | missing_signature | skipped_non_solana | unknown+ reconciled boolean NOT NULL,+ discrepancy text, -- null when reconciled+ detail jsonb,+ run_id uuid,+ first_seen_at timestamptz NOT NULL DEFAULT now()+);+```++Schema:+[`api/_lib/migrations/20260629120000_payment_reconciliation.sql`](../api/_lib/migrations/20260629120000_payment_reconciliation.sql).+The job is **read-only**, so it runs even when the spend wallet is absent (it+falls back to a keyless RPC connection; the `/api/x402-status` probe it uses is+free). A row with `reconciled = false` is a financial-integrity alert — the DB+recorded a settlement the chain does not corroborate. The ops surface watches:++```sql+-- Unreconciled settlements in the last day — investigate before they corrupt accounting.+SELECT source, source_ref, tx_signature, db_status, chain_status, discrepancy+FROM payment_reconciliation+WHERE reconciled = false+ AND first_seen_at >= now() - interval '24 hours'+ORDER BY first_seen_at DESC;+```++`chain_status` classifies each discrepancy: `failed_onchain` (tx reverted),+`missing_onchain` (no tx exists), `missing_signature` (settled but no signature+kept). EVM/Base settlements are `skipped_non_solana` (not verified here).++---+## Driving volume through these endpoints-Revenue only exists if the endpoints get called. The-[Autonomous x402 loop](autonomous-x402.md) is the scheduled buyer that pays many-of these endpoints on a cadence to feed the oracle and sniper, and the-[Circulation engine](circulation-engine.md) drives real agent-to-agent commerce.-Both settle **real** USDC through the same flow above — every row in-`x402_audit_log` is a verifiable settlement, never a synthetic number.+Revenue only exists if the endpoints get called. Two systems drive **organic**+calls: the [Circulation engine](circulation-engine.md) drives real+agent-to-agent commerce, and the [Autonomous x402 loop](autonomous-x402.md)'s+oracle/sniper pipelines pay our intel endpoints to feed real downstream+decisions. Both settle **real** USDC through the flow above, from real+counterparties.++Separately, the **Volume Bootstrap Loop** (above) generates **synthetic**+liveness traffic by paying our own endpoints from the seed wallet. Every row in+`x402_audit_log` is a verifiable on-chain settlement — but "verifiable" is not+"organic." When you report revenue or volume, decide explicitly whether the+number is meant to represent external demand (exclude the seed wallet) or total+settled activity (include it), and label it as such.---@@ -218,5 +337,5 @@ Both settle **real** USDC through the same flow above — every row in- [x402 paid endpoints](x402-endpoints.md) — the catalog of what charges and how much.- [x402 protocol](x402.md) — the challenge / verify / settle mechanics.- [x402 buyer client](x402-buyer.md) — how to settle a 402 challenge in code.-- [Autonomous x402 loop](autonomous-x402.md) — the scheduled buyer that drives volume.+- [Autonomous x402 loop](autonomous-x402.md) — the scheduled buyer that drives volume, including the Volume Bootstrap Loop and the reconciliation job.- [Money feed](money-feed.md) — the agent-spend side of the ledger (the Money Pulse), distinct from endpoint revenue.diff --git a/public/changelog.json b/public/changelog.jsonindex daf936e8c..33b3bbca4 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,11 +1,21 @@{- "generated_at": "2026-06-30T22:32:33.298Z",+ "generated_at": "2026-06-30T22:33:38.485Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws","url": "https://three.ws"},"entries": [+ {+ "date": "2026-06-30",+ "type": "launch",+ "title": "Docs · x402 Revenue & Receipts",+ "summary": "Where settled x402 payments are recorded (x402_audit_log), how to read endpoint revenue, and how signed receipts work.",+ "link": "/docs/x402-revenue",+ "tags": [+ "launch"+ ]+ },{"date": "2026-06-30","type": "launch",@@ -296,6 +306,56 @@"launch"]},+ {+ "date": "2026-06-29",+ "type": "launch",+ "title": "Docs · Autonomous x402 Loop",+ "summary": "The scheduled buyer that pays x402 endpoints on a cadence to feed the oracle and sniper — real USDC, real settlements.",+ "link": "/docs/autonomous-x402",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-29",+ "type": "launch",+ "title": "Docs · Circulation Engine",+ "summary": "The autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.",+ "link": "/docs/circulation-engine",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-29",+ "type": "launch",+ "title": "Docs · Money Feed",+ "summary": "The surfaces that show real value moving through three.ws — the live ticker, the custody-spend ledger, and the economy volume dashboard.",+ "link": "/docs/money-feed",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-29",+ "type": "launch",+ "title": "Docs · x402 Buyer Client",+ "summary": "How to settle a 402 challenge and pay three.ws's paid endpoints from code.",+ "link": "/docs/x402-buyer",+ "tags": [+ "launch"+ ]+ },+ {+ "date": "2026-06-29",+ "type": "launch",+ "title": "Docs · x402 Paid Endpoints",+ "summary": "The catalog of three.ws's own paid HTTP endpoints — what each charges, the price-override scheme, and what it returns.",+ "link": "/docs/x402-endpoints",+ "tags": [+ "launch"+ ]+ },{"date": "2026-06-29","type": "update",@@ -13672,6 +13732,16 @@"launch"]},+ {+ "date": "2026-04-29",+ "type": "launch",+ "title": "Docs · x402 Protocol",+ "summary": "How three.ws implements x402 HTTP 402 paid agent skills — the challenge, verify, and settle mechanics.",+ "link": "/docs/x402",+ "tags": [+ "launch"+ ]+ },{"date": "2026-04-29","type": "launch",diff --git a/public/changelog.xml b/public/changelog.xmlindex 10c90075e..371f9a406 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -6,6 +6,14 @@<atom:link href="https://three.ws/changelog.xml" rel="self" type="application/rss+xml"/><description>What's new on three.ws — features, improvements, and releases, newest first.</description><language>en</language>+ <item>+ <title>Docs · x402 Revenue & Receipts</title>+ <link>https://three.ws/docs/x402-revenue</link>+ <guid isPermaLink="false">2026-06-30:Docs · x402 Revenue & Receipts</guid>+ <pubDate>Tue, 30 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>Where settled x402 payments are recorded (x402_audit_log), how to read endpoint revenue, and how signed receipts work.</description>+ </item><item><title>Oracle Docs — the conviction engine, end to end</title><link>https://three.ws/oracle/docs</link>@@ -230,6 +238,46 @@<category>launch</category><description>Live dashboard of total agent-to-agent economy volume: real USDC settled between AI agents hiring each other for paid skills over x402, with top earners, top spenders, and a 90-day volume chart.</description></item>+ <item>+ <title>Docs · Autonomous x402 Loop</title>+ <link>https://three.ws/docs/autonomous-x402</link>+ <guid isPermaLink="false">2026-06-29:Docs · Autonomous x402 Loop</guid>+ <pubDate>Mon, 29 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>The scheduled buyer that pays x402 endpoints on a cadence to feed the oracle and sniper — real USDC, real settlements.</description>+ </item>+ <item>+ <title>Docs · Circulation Engine</title>+ <link>https://three.ws/docs/circulation-engine</link>+ <guid isPermaLink="false">2026-06-29:Docs · Circulation Engine</guid>+ <pubDate>Mon, 29 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>The autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.</description>+ </item>+ <item>+ <title>Docs · Money Feed</title>+ <link>https://three.ws/docs/money-feed</link>+ <guid isPermaLink="false">2026-06-29:Docs · Money Feed</guid>+ <pubDate>Mon, 29 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>The surfaces that show real value moving through three.ws — the live ticker, the custody-spend ledger, and the economy volume dashboard.</description>+ </item>+ <item>+ <title>Docs · x402 Buyer Client</title>+ <link>https://three.ws/docs/x402-buyer</link>+ <guid isPermaLink="false">2026-06-29:Docs · x402 Buyer Client</guid>+ <pubDate>Mon, 29 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>How to settle a 402 challenge and pay three.ws's paid endpoints from code.</description>+ </item>+ <item>+ <title>Docs · x402 Paid Endpoints</title>+ <link>https://three.ws/docs/x402-endpoints</link>+ <guid isPermaLink="false">2026-06-29:Docs · x402 Paid Endpoints</guid>+ <pubDate>Mon, 29 Jun 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>The catalog of three.ws's own paid HTTP endpoints — what each charges, the price-override scheme, and what it returns.</description>+ </item><item><title>Agent profile layout fixed on laptops and tablets</title><link>https://three.ws/changelog</link>@@ -10566,6 +10614,14 @@<category>launch</category><description>Talk to your agent. Voice, text, and tool-use in one interface.</description></item>+ <item>+ <title>Docs · x402 Protocol</title>+ <link>https://three.ws/docs/x402</link>+ <guid isPermaLink="false">2026-04-29:Docs · x402 Protocol</guid>+ <pubDate>Wed, 29 Apr 2026 12:00:00 GMT</pubDate>+ <category>launch</category>+ <description>How three.ws implements x402 HTTP 402 paid agent skills — the challenge, verify, and settle mechanics.</description>+ </item><item><title>Marketplace</title><link>https://three.ws/marketplace</link>diff --git a/public/features.json b/public/features.jsonindex 8b1e8b5d6..8202d8316 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-30T22:32:33.278Z",+ "generated_at": "2026-06-30T22:33:38.468Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",@@ -1827,6 +1827,76 @@"tags": [],"showcase": false},+ {+ "path": "/docs/x402",+ "title": "Docs · x402 Protocol",+ "description": "How three.ws implements x402 HTTP 402 paid agent skills — the challenge, verify, and settle mechanics.",+ "added": "2026-04-29",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/docs/x402-endpoints",+ "title": "Docs · x402 Paid Endpoints",+ "description": "The catalog of three.ws's own paid HTTP endpoints — what each charges, the price-override scheme, and what it returns.",+ "added": "2026-06-29",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/docs/x402-revenue",+ "title": "Docs · x402 Revenue & Receipts",+ "description": "Where settled x402 payments are recorded (x402_audit_log), how to read endpoint revenue, and how signed receipts work.",+ "added": "2026-06-30",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/docs/x402-buyer",+ "title": "Docs · x402 Buyer Client",+ "description": "How to settle a 402 challenge and pay three.ws's paid endpoints from code.",+ "added": "2026-06-29",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/docs/autonomous-x402",+ "title": "Docs · Autonomous x402 Loop",+ "description": "The scheduled buyer that pays x402 endpoints on a cadence to feed the oracle and sniper — real USDC, real settlements.",+ "added": "2026-06-29",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/docs/circulation-engine",+ "title": "Docs · Circulation Engine",+ "description": "The autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.",+ "added": "2026-06-29",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },+ {+ "path": "/docs/money-feed",+ "title": "Docs · Money Feed",+ "description": "The surfaces that show real value moving through three.ws — the live ticker, the custody-spend ledger, and the economy volume dashboard.",+ "added": "2026-06-29",+ "auth": null,+ "indexable": true,+ "tags": [],+ "showcase": false+ },{"path": "/docs/reputation","title": "Docs · Reputation System",diff --git a/public/llms-full.txt b/public/llms-full.txtindex 3dc4e578c..9294dafe5 100644--- a/public/llms-full.txt+++ b/public/llms-full.txt@@ -1119,6 +1119,48 @@ URL: https://three.ws/docs/agent-reputationWhy autonomous agents need verifiable trust, and how three.ws delivers portable on-chain reputation.+### Docs · x402 Protocol++URL: https://three.ws/docs/x402++How three.ws implements x402 HTTP 402 paid agent skills — the challenge, verify, and settle mechanics.++### Docs · x402 Paid Endpoints++URL: https://three.ws/docs/x402-endpoints++The catalog of three.ws's own paid HTTP endpoints — what each charges, the price-override scheme, and what it returns.++### Docs · x402 Revenue & Receipts++URL: https://three.ws/docs/x402-revenue++Where settled x402 payments are recorded (x402_audit_log), how to read endpoint revenue, and how signed receipts work.++### Docs · x402 Buyer Client++URL: https://three.ws/docs/x402-buyer++How to settle a 402 challenge and pay three.ws's paid endpoints from code.++### Docs · Autonomous x402 Loop++URL: https://three.ws/docs/autonomous-x402++The scheduled buyer that pays x402 endpoints on a cadence to feed the oracle and sniper — real USDC, real settlements.++### Docs · Circulation Engine++URL: https://three.ws/docs/circulation-engine++The autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.++### Docs · Money Feed++URL: https://three.ws/docs/money-feed++The surfaces that show real value moving through three.ws — the live ticker, the custody-spend ledger, and the economy volume dashboard.+### Docs · Reputation SystemURL: https://three.ws/docs/reputationdiff --git a/public/llms.txt b/public/llms.txtindex b3d5c07d9..f7f650e6d 100644--- a/public/llms.txt+++ b/public/llms.txt@@ -208,6 +208,13 @@ Docs, tutorials, and reference.- [Docs · Agent System](https://three.ws/docs/agent-system): How agents, avatars, skills, and memories fit together.- [Docs · ERC-8004](https://three.ws/docs/erc8004): Reference for the on-chain agent identity standard.- [Docs · Agent Reputation](https://three.ws/docs/agent-reputation): Why autonomous agents need verifiable trust, and how three.ws delivers portable on-chain reputation.+- [Docs · x402 Protocol](https://three.ws/docs/x402): How three.ws implements x402 HTTP 402 paid agent skills — the challenge, verify, and settle mechanics.+- [Docs · x402 Paid Endpoints](https://three.ws/docs/x402-endpoints): The catalog of three.ws's own paid HTTP endpoints — what each charges, the price-override scheme, and what it returns.+- [Docs · x402 Revenue & Receipts](https://three.ws/docs/x402-revenue): Where settled x402 payments are recorded (x402_audit_log), how to read endpoint revenue, and how signed receipts work.+- [Docs · x402 Buyer Client](https://three.ws/docs/x402-buyer): How to settle a 402 challenge and pay three.ws's paid endpoints from code.+- [Docs · Autonomous x402 Loop](https://three.ws/docs/autonomous-x402): The scheduled buyer that pays x402 endpoints on a cadence to feed the oracle and sniper — real USDC, real settlements.+- [Docs · Circulation Engine](https://three.ws/docs/circulation-engine): The autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.+- [Docs · Money Feed](https://three.ws/docs/money-feed): The surfaces that show real value moving through three.ws — the live ticker, the custody-spend ledger, and the economy volume dashboard.- [Docs · Reputation System](https://three.ws/docs/reputation): Leave and read permanent, on-chain reviews for any registered agent via the UI, SDK, or contract.- [Docs · Validation Attestations](https://three.ws/docs/validation): Record and read on-chain attestations that an agent's 3D model passes glTF validation.- [Docs · Agent Reputation on Solana](https://three.ws/docs/solana-reputation): How three.ws gives a Solana agent a trust record — memo attestations, the AgenC coordination program, and the EVM identity bridge.diff --git a/public/sitemap/index.html b/public/sitemap/index.htmlindex 0c2e2cc39..cee7527db 100644--- a/public/sitemap/index.html+++ b/public/sitemap/index.html@@ -65,7 +65,7 @@<main class="sm-wrap"><div class="sm-hero"><h1>Sitemap</h1>- <p>All 354 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p>+ <p>All 361 pages on three.ws, grouped by purpose. Looking for the machine-readable versions?</p><div class="sm-formats"><a href="/sitemap.xml"><code>sitemap.xml</code> · for search engines</a><a href="/llms.txt"><code>llms.txt</code> · for AI agents</a>@@ -77,7 +77,7 @@</div><div class="sm-filter"><svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" aria-hidden="true"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>- <input id="sm-filter-input" type="search" placeholder="Filter 354 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" />+ <input id="sm-filter-input" type="search" placeholder="Filter 361 pages by name, path, or description…" aria-label="Filter pages" autocomplete="off" spellcheck="false" /><kbd aria-hidden="true">/</kbd></div><p class="sm-filter-count" id="sm-filter-count" role="status" aria-live="polite"></p>@@ -1319,7 +1319,7 @@<section class="sm-section" id="learn"><header>- <h2>Learn<span class="sm-count" data-count>39</span></h2>+ <h2>Learn<span class="sm-count" data-count>46</span></h2><p class="sm-section-desc">Docs, tutorials, and reference.</p></header><ul class="sm-list">@@ -1393,6 +1393,55 @@<span class="sm-desc">Why autonomous agents need verifiable trust, and how three.ws delivers portable on-chain reputation.</span></a></li>+ <li>+ <a href="/docs/x402">+ <span class="sm-title">Docs · x402 Protocol</span>+ <span class="sm-path">/docs/x402</span>+ <span class="sm-desc">How three.ws implements x402 HTTP 402 paid agent skills — the challenge, verify, and settle mechanics.</span>+ </a>+ </li>+ <li>+ <a href="/docs/x402-endpoints">+ <span class="sm-title">Docs · x402 Paid Endpoints</span>+ <span class="sm-path">/docs/x402-endpoints</span>+ <span class="sm-desc">The catalog of three.ws's own paid HTTP endpoints — what each charges, the price-override scheme, and what it returns.</span>+ </a>+ </li>+ <li>+ <a href="/docs/x402-revenue">+ <span class="sm-title">Docs · x402 Revenue & Receipts</span>+ <span class="sm-path">/docs/x402-revenue</span>+ <span class="sm-desc">Where settled x402 payments are recorded (x402_audit_log), how to read endpoint revenue, and how signed receipts work.</span>+ </a>+ </li>+ <li>+ <a href="/docs/x402-buyer">+ <span class="sm-title">Docs · x402 Buyer Client</span>+ <span class="sm-path">/docs/x402-buyer</span>+ <span class="sm-desc">How to settle a 402 challenge and pay three.ws's paid endpoints from code.</span>+ </a>+ </li>+ <li>+ <a href="/docs/autonomous-x402">+ <span class="sm-title">Docs · Autonomous x402 Loop</span>+ <span class="sm-path">/docs/autonomous-x402</span>+ <span class="sm-desc">The scheduled buyer that pays x402 endpoints on a cadence to feed the oracle and sniper — real USDC, real settlements.</span>+ </a>+ </li>+ <li>+ <a href="/docs/circulation-engine">+ <span class="sm-title">Docs · Circulation Engine</span>+ <span class="sm-path">/docs/circulation-engine</span>+ <span class="sm-desc">The autonomous agent-to-agent activity loop — a pool of real platform agents tipping, paying, trading, and launching with one another.</span>+ </a>+ </li>+ <li>+ <a href="/docs/money-feed">+ <span class="sm-title">Docs · Money Feed</span>+ <span class="sm-path">/docs/money-feed</span>+ <span class="sm-desc">The surfaces that show real value moving through three.ws — the live ticker, the custody-spend ledger, and the economy volume dashboard.</span>+ </a>+ </li><li><a href="/docs/reputation"><span class="sm-title">Docs · Reputation System</span>diff --git a/src/studio/money/money-studio.js b/src/studio/money/money-studio.jsindex 9ebb1d9a6..46077e7ea 100644--- a/src/studio/money/money-studio.js+++ b/src/studio/money/money-studio.js@@ -67,12 +67,16 @@ class MoneyStudio {activity: null, // recent on-chain signaturesprovisioning: false,withdrawing: false,+ wdAsset: 'SOL', // withdraw form: which asset to send (SOL | USDC)};this._render();this._load();- // Live balances while the tab is visible.+ // Live balances + earnings while the tab is visible.this._poll = setInterval(() => {- if (document.visibilityState === 'visible' && !this.el.closest('[hidden]')) this._refreshWallet();+ if (document.visibilityState === 'visible' && !this.el.closest('[hidden]')) {+ this._refreshWallet();+ this._refreshEarnings();+ }}, BALANCE_POLL_MS);}@@ -92,6 +96,7 @@ class MoneyStudio {this.state.wallet = wallet;this.state.prices = prices;this.state.payments = payments;+ this._earnSig = `${payments.length}:${payments[0]?.tx_hash || payments[0]?.created_at || ''}`;this.state.error = null;// Holdings + activity are real on-chain reads — fetch after the wallet so// we know there's an address; a transient RPC miss never blocks the panel.@@ -264,15 +269,28 @@ class MoneyStudio {}_withdrawForm() {+ const a = this.state.wdAsset === 'USDC' ? 'USDC' : 'SOL';+ const w = this.state.wallet || {};+ const avail = a === 'USDC'+ ? (w.usdc_balance == null ? null : Number(w.usdc_balance))+ : (w.solana_balance == null ? null : Number(w.solana_balance));+ const availStr = avail == null ? '' : (a === 'USDC' ? `$${avail.toFixed(2)} available` : `${avail.toFixed(4)} SOL available`);return `- <div class="mny-withdraw-head">Withdraw SOL</div>+ <div class="mny-withdraw-head">+ <span>Withdraw</span>+ <span class="mny-asset-toggle" role="tablist" aria-label="Asset to withdraw">+ <button class="mny-asset-btn ${a === 'SOL' ? 'is-on' : ''}" role="tab" aria-selected="${a === 'SOL'}" data-action="wd-asset" data-asset="SOL">SOL</button>+ <button class="mny-asset-btn ${a === 'USDC' ? 'is-on' : ''}" role="tab" aria-selected="${a === 'USDC'}" data-action="wd-asset" data-asset="USDC">USDC</button>+ </span>+ ${availStr ? `<span class="mny-withdraw-avail">${esc(availStr)}</span>` : ''}+ </div><div class="mny-withdraw-row"><input type="text" data-wd="destination" placeholder="Destination address" aria-label="Destination Solana address" />- <input type="number" min="0" step="any" data-wd="amount" placeholder="Amount" aria-label="Amount in SOL" />- <button class="studio-btn studio-btn-ghost" data-action="wd-max" title="Withdraw everything (keeps a little for fees)">Max</button>+ <input type="number" min="0" step="any" data-wd="amount" placeholder="Amount" aria-label="Amount in ${esc(a)}" />+ <button class="studio-btn studio-btn-ghost" data-action="wd-max" title="Withdraw everything${a === 'SOL' ? ' (keeps a little for fees)' : ''}">Max</button><button class="studio-btn studio-btn-primary" data-action="do-withdraw" ${this.state.withdrawing ? 'disabled' : ''}>${this.state.withdrawing ? 'Sending…' : 'Withdraw'}</button></div>- <p class="mny-faint">Real on-chain transfer from the agent's custodial wallet. Double-check the address — Solana transfers are irreversible.</p>+ <p class="mny-faint">Real on-chain transfer from the agent's custodial wallet${a === 'USDC' ? ' (a little SOL is used for the network fee)' : ''}. Double-check the address — Solana transfers are irreversible.</p><div class="mny-withdraw-result" data-wd-result hidden></div>`;}@@ -286,6 +304,14 @@ class MoneyStudio {if (host) host.innerHTML = this._activityHtml();}+ _setWdAsset(asset) {+ const next = asset === 'USDC' ? 'USDC' : 'SOL';+ if (next === this.state.wdAsset) return;+ this.state.wdAsset = next;+ const wrap = this._q('[data-withdraw]');+ if (wrap && !wrap.hidden) wrap.innerHTML = this._withdrawForm();+ }+async _withdraw(useMax = false) {if (this.state.withdrawing) return;const wrap = this._q('[data-withdraw]');@@ -294,6 +320,11 @@ class MoneyStudio {if (!dest) return this._toast('Enter a destination address', true);const amount = useMax ? 'max' : Number(amtRaw);if (!useMax && (!Number.isFinite(amount) || amount <= 0)) return this._toast('Enter a valid amount', true);+ // SOL → the native asset; USDC → its SPL mint (the withdraw endpoint resolves+ // the mint, sweeps the token on "max", and prices USDC 1:1 for the ceiling).+ const isUsdc = this.state.wdAsset === 'USDC';+ const asset = isUsdc ? USDC_MINT : 'SOL';+ const sym = isUsdc ? 'USDC' : 'SOL';this.state.withdrawing = true;const btn = wrap?.querySelector('[data-action="do-withdraw"]');if (btn) { btn.disabled = true; btn.textContent = 'Sending…'; }@@ -301,7 +332,7 @@ class MoneyStudio {const res = await apiFetch(`/api/agents/${this.agentId}/wallet/withdraw`, {method: 'POST',headers: { 'content-type': 'application/json' },- body: JSON.stringify({ destination: dest, amount, asset: 'SOL', network: 'mainnet' }),+ body: JSON.stringify({ destination: dest, amount, asset, network: 'mainnet' }),});const payload = await res.json().catch(() => ({}));if (!res.ok) throw new Error(payload?.error?.message || 'Withdrawal failed.');@@ -311,7 +342,7 @@ class MoneyStudio {result.hidden = false;result.innerHTML = `✓ Sent. <a href="https://solscan.io/tx/${esc(d.signature)}" target="_blank" rel="noopener">View transaction ↗</a>`;}- this._toast('Withdrawal sent');+ this._toast(`${sym} withdrawal sent`);this._refreshWallet();} catch (err) {this._toast(err.message || 'Withdrawal failed', true);@@ -383,22 +414,62 @@ class MoneyStudio {// ── Earnings ──────────────────────────────────────────────────────────────_earningsSection() {- const items = this.state.payments || [];return `<section class="mny-section" aria-labelledby="mny-earn-h"><div class="mny-section-head"><h3 id="mny-earn-h">Earnings</h3><p>Every payment other agents and users have made to this one.</p></div>- ${- items.length- ? `<ul class="mny-earn-list">${items.map((p) => this._earnRow(p)).join('')}</ul>`- : `<div class="mny-inline-empty">- <div class="mny-empty-glyph small" aria-hidden="true">◎</div>- <p>No earnings yet. Price a skill and share your agent — payments land here in real time.</p>- </div>`- }+ <div data-earnings>${this._earningsBody()}</div></section>`;}+ _earningsBody() {+ const items = this.state.payments || [];+ if (!items.length) {+ return `<div class="mny-inline-empty">+ <div class="mny-empty-glyph small" aria-hidden="true">◎</div>+ <p>No earnings yet. Price a skill and share your agent — payments land here in real time.</p>+ </div>`;+ }+ return `${this._earningsSummary(items)}<ul class="mny-earn-list">${items.map((p) => this._earnRow(p)).join('')}</ul>`;+ }++ // Roll up the real payments ledger into headline figures — total received, count,+ // and the trailing-7-day take — so the agent's economic output reads at a glance.+ _earningsSummary(items) {+ const weekAgo = Date.now() - 7 * 86400000;+ let total = 0;+ let week = 0;+ for (const p of items) {+ const amt = fmtUsdc(p.amount_wei);+ total += amt;+ if (p.created_at && new Date(p.created_at).getTime() >= weekAgo) week += amt;+ }+ return `+ <div class="mny-earn-summary">+ <div class="mny-earn-stat"><b>$${total.toFixed(2)}</b><span>total received</span></div>+ <div class="mny-earn-stat"><b>${items.length}</b><span>payment${items.length === 1 ? '' : 's'}</span></div>+ <div class="mny-earn-stat"><b class="${week > 0 ? 'pos' : ''}">$${week.toFixed(2)}</b><span>last 7 days</span></div>+ </div>`;+ }++ _renderEarnings() {+ const host = this._q('[data-earnings]');+ if (host) host.innerHTML = this._earningsBody();+ }++ async _refreshEarnings() {+ try {+ const payments = await this._fetchPayments();+ // Only re-render when the ledger actually changed (newest tx hash + count) —+ // avoids churning the DOM every poll tick.+ const sig = `${payments.length}:${payments[0]?.tx_hash || payments[0]?.created_at || ''}`;+ if (sig === this._earnSig) return;+ this._earnSig = sig;+ this.state.payments = payments;+ this._renderEarnings();+ } catch { /* transient — keep last */ }+ }+_earnRow(p) {const usdc = fmtUsdc(p.amount_wei);const who = p.payer_name || (p.payer_agent_id ? `agent ${short(p.payer_agent_id)}` : 'someone');@@ -434,6 +505,7 @@ class MoneyStudio {if (a === 'toggle-withdraw') { const w = this._q('[data-withdraw]'); if (w) w.hidden = !w.hidden; return; }if (a === 'do-withdraw') return this._withdraw(false);if (a === 'wd-max') return this._withdraw(true);+ if (a === 'wd-asset') return this._setWdAsset(btn.dataset.asset);if (a === 'go-skills') return document.dispatchEvent(new CustomEvent('studio:navigate', { detail: { tab: 'skills' } }));});this.el.querySelectorAll('[data-price-input]').forEach((inp) =>