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
Flesh out vscode-x402 extension with docs, media, and entrypoint
nirholasf6d87e620de1
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 2f8a17309..be8a2404d 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -99,6 +99,7 @@ Public history for [three.ws](https://three.ws), newest first. New pages come fr- **USDC checkout no longer fails when an RPC node hiccups** — Paying with USDC at a door (like the Pole Club cover charge) could occasionally fail with an "internal error" right after you connected your wallet, if our Solana RPC briefly returned a malformed reply while building your payment. The checkout now shrugs that off and builds the transaction anyway, so a flaky node no longer turns you away at the door. Nothing was ever charged when this happened. `[fix]`- **Walk picks up where you left off, plus click-to-walk** — The walk now remembers your avatar, environment, camera, and position across visits (synced to your account when signed in, cached locally otherwise) and greets you with a “Welcome back” you can dismiss or reset. Click anywhere on the page and your site-wide companion walks there, routing around blocked elements. The features page also gained a live walking-avatar demo. (`/walk`) `[feature, improvement]`- **Walk with any agent, and leave a trail** — Every agent profile now has a “Walk with this agent” action and a live preview that renders that specific agent walking — the walk embed can now load any agent’s avatar by id. And the walking avatar leaves an aesthetic trail behind it (footprints, a glow, or a fading line, your pick) both in the full walk scene and the site-wide companion. (`/walk`) `[feature, improvement]`+- **x402 comes to VS Code** — A new VS Code extension brings the x402 bazaar into your editor. Browse and search every paid API and MCP tool across the network, decode any endpoint's payment challenge to see exactly what it charges and on which chain, and pay-per-call with USDC right from a side panel — the amount is shown and confirmed before signing, a spending cap blocks anything over your limit, and the on-chain receipt comes back inline. Your wallet key is stored in the OS keychain, never in files. Developers can also scaffold a new paid endpoint in one command. Built for the people who wire up and call paid services — and they live in their editor. `[sdk, feature]`- **Your avatar now walks anywhere — new Walk hub, leaderboard, and creator analytics** — There's a dedicated home for the walking avatar at /walk with live demos across six environments, an embeddable one-tag widget, and a Chrome-extension CTA. A new global leaderboard ranks walkers by distance, sites visited, and time (daily / weekly / all-time), and creators who embed an avatar get a private analytics dashboard — sessions, average duration, distance, top embed origins, and custom conversion events. Page-to-page navigation also gained themed, motion-aware transitions. (`/walk`) `[feature]`## 2026-06-20diff --git a/data/changelog.json b/data/changelog.jsonindex 283493baa..9ef59e48b 100644--- a/data/changelog.json+++ b/data/changelog.json@@ -1,6 +1,12 @@{"$comment": "Curated changelog entries for three.ws — 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-21",+ "title": "x402 comes to VS Code",+ "summary": "A new VS Code extension brings the x402 bazaar into your editor. Browse and search every paid API and MCP tool across the network, decode any endpoint's payment challenge to see exactly what it charges and on which chain, and pay-per-call with USDC right from a side panel — the amount is shown and confirmed before signing, a spending cap blocks anything over your limit, and the on-chain receipt comes back inline. Your wallet key is stored in the OS keychain, never in files. Developers can also scaffold a new paid endpoint in one command. Built for the people who wire up and call paid services — and they live in their editor.",+ "tags": ["sdk", "feature"]+ },{"date": "2026-06-21","title": "Agent Studio: save a draft or step away without losing work",diff --git a/packages/vscode-x402/CHANGELOG.md b/packages/vscode-x402/CHANGELOG.mdnew file mode 100644index 000000000..16272e25c--- /dev/null+++ b/packages/vscode-x402/CHANGELOG.md@@ -0,0 +1,12 @@+# Changelog++## 0.1.0++Initial release.++- Bazaar sidebar with live discovery, filters, and full-text search.+- Inspect command: decode any endpoint's 402 payment challenge.+- Pay & call paid x402 endpoints with USDC via `@three-ws/x402-fetch`, with a+ spending cap, pre-payment confirmation, and inline settlement receipts.+- Secure EVM wallet key storage in VS Code SecretStorage; wallet status bar.+- Scaffold a paid endpoint following the repo's `paidEndpoint()` pattern.diff --git a/packages/vscode-x402/README.md b/packages/vscode-x402/README.mdnew file mode 100644index 000000000..7b0769268--- /dev/null+++ b/packages/vscode-x402/README.md@@ -0,0 +1,66 @@+# three.ws — x402 for VS Code++Browse the [x402](https://three.ws/x402.md) bazaar, decode `402 Payment Required`+challenges, and pay-per-call paid APIs and MCP tools with USDC — without leaving+your editor. Powered by [three.ws](https://three.ws).++x402 is a protocol for developers and agents, not end users — so unlike a 3D+viewer, this is genuinely editor-native: the people wiring up paid endpoints and+calling them live in VS Code.++## Features++- **Bazaar sidebar** — live list of paid x402 HTTP APIs and MCP tools, merged+ across every facilitator via the three.ws discovery proxy+ (`/api/bazaar/list`, `/api/bazaar/search`). Filter by type, price, and tag;+ full-text search.+- **Inspect an endpoint** — paste any URL and decode its 402 challenge: every+ accepted network, asset, scheme, price (in USD), and `payTo`, with the one+ this wallet can actually satisfy flagged.+- **Pay & call** — make a real paid request with+ [`@three-ws/x402-fetch`](../x402-fetch). The exact USD amount is shown and+ confirmed before signing; a spending cap blocks anything above your limit.+ The response body and on-chain settlement receipt (tx hash) are rendered+ inline.+- **Secure wallet** — your EVM private key lives only in VS Code SecretStorage+ (the OS keychain). Never in settings, never on disk in plaintext. The status+ bar shows the derived address.+- **Scaffold a paid endpoint** — generate a working `api/x402/<slug>.js` that+ follows the repo's canonical `paidEndpoint()` pattern, wired end-to-end from+ the first deploy.++## Setup++1. Install the extension and open the **x402 Bazaar** view in the activity bar.+2. Run **x402: Set Wallet Key** and paste a funded Base USDC private key+ (`0x` + 64 hex). It is stored in your OS keychain.+3. Browse or search the bazaar, open a service, and **Pay & call**.++## Settings++| Setting | Default | Purpose |+|---|---|---|+| `threewsX402.origin` | `https://three.ws` | Host of the bazaar discovery API. |+| `threewsX402.maxPaymentUsd` | `0.10` | Per-request spending cap, in USD. |+| `threewsX402.confirmEachPayment` | `true` | Confirm the exact amount before signing. |+| `threewsX402.network` | `eip155:8453` | Preferred CAIP-2 network (Base mainnet). |+| `threewsX402.filters` | `{ "type": "http" }` | Default bazaar filters. |++## How payment works++The wrapper signs a USDC-on-Base **EIP-3009** `transferWithAuthorization` and+retries the request with the `X-PAYMENT` proof. The merchant settles on-chain+and returns the work plus a settlement receipt. Solana-only services appear in+the bazaar but are flagged as not payable by this EVM signer.++## Development++```bash+npm install+npm run build # bundle to dist/extension.js+npm run watch # rebuild on change+```++Press <kbd>F5</kbd> in VS Code to launch an Extension Development Host.++Apache-2.0 · part of the [three.ws](https://three.ws) monorepo.diff --git a/packages/vscode-x402/media/icon.png b/packages/vscode-x402/media/icon.pngnew file mode 100644index 000000000..0481b003bBinary files /dev/null and b/packages/vscode-x402/media/icon.png differdiff --git a/packages/vscode-x402/media/x402.svg b/packages/vscode-x402/media/x402.svgnew file mode 100644index 000000000..08fce7886--- /dev/null+++ b/packages/vscode-x402/media/x402.svg@@ -0,0 +1,5 @@+<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">+ <path d="M3 7l4 5-4 5" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>+ <path d="M21 7l-4 5 4 5" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/>+ <text x="12" y="15.5" font-family="-apple-system, Segoe UI, sans-serif" font-size="8.5" font-weight="700" text-anchor="middle" fill="currentColor">402</text>+</svg>diff --git a/packages/vscode-x402/package-lock.json b/packages/vscode-x402/package-lock.jsonnew file mode 100644index 000000000..cca24bcbb--- /dev/null+++ b/packages/vscode-x402/package-lock.json@@ -0,0 +1,457 @@+{+ "name": "@three-ws/vscode-x402",+ "version": "0.1.0",+ "lockfileVersion": 3,+ "requires": true,+ "packages": {+ "": {+ "name": "@three-ws/vscode-x402",+ "version": "0.1.0",+ "license": "Apache-2.0",+ "devDependencies": {+ "@types/vscode": "^1.85.0",+ "esbuild": "^0.21.0"+ },+ "engines": {+ "vscode": "^1.85.0"+ }+ },+ "node_modules/@esbuild/aix-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",+ "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "aix"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",+ "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",+ "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/android-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",+ "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "android"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",+ "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/darwin-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",+ "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "darwin"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",+ "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/freebsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",+ "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "freebsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",+ "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",+ "cpu": [+ "arm"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",+ "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",+ "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-loong64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",+ "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",+ "cpu": [+ "loong64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-mips64el": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",+ "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",+ "cpu": [+ "mips64el"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-ppc64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",+ "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",+ "cpu": [+ "ppc64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-riscv64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",+ "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",+ "cpu": [+ "riscv64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-s390x": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",+ "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",+ "cpu": [+ "s390x"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/linux-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",+ "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "linux"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/netbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",+ "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "netbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/openbsd-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",+ "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "openbsd"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/sunos-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",+ "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "sunos"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-arm64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",+ "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",+ "cpu": [+ "arm64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-ia32": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",+ "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",+ "cpu": [+ "ia32"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@esbuild/win32-x64": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",+ "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",+ "cpu": [+ "x64"+ ],+ "dev": true,+ "license": "MIT",+ "optional": true,+ "os": [+ "win32"+ ],+ "engines": {+ "node": ">=12"+ }+ },+ "node_modules/@types/vscode": {+ "version": "1.125.0",+ "resolved": "https://registry.npmjs.org/@types/vscode/-/vscode-1.125.0.tgz",+ "integrity": "sha512-0icm/ZQAaism87P0ekHqi4/Ju9du+Tm0RUW+y7vqRsxY2cY0FNRX1nAnaW7nT6npPt2tfHiheZ55Zm9UhqonFA==",+ "dev": true,+ "license": "MIT"+ },+ "node_modules/esbuild": {+ "version": "0.21.5",+ "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",+ "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",+ "dev": true,+ "hasInstallScript": true,+ "license": "MIT",+ "bin": {+ "esbuild": "bin/esbuild"+ },+ "engines": {+ "node": ">=12"+ },+ "optionalDependencies": {+ "@esbuild/aix-ppc64": "0.21.5",+ "@esbuild/android-arm": "0.21.5",+ "@esbuild/android-arm64": "0.21.5",+ "@esbuild/android-x64": "0.21.5",+ "@esbuild/darwin-arm64": "0.21.5",+ "@esbuild/darwin-x64": "0.21.5",+ "@esbuild/freebsd-arm64": "0.21.5",+ "@esbuild/freebsd-x64": "0.21.5",+ "@esbuild/linux-arm": "0.21.5",+ "@esbuild/linux-arm64": "0.21.5",+ "@esbuild/linux-ia32": "0.21.5",+ "@esbuild/linux-loong64": "0.21.5",+ "@esbuild/linux-mips64el": "0.21.5",+ "@esbuild/linux-ppc64": "0.21.5",+ "@esbuild/linux-riscv64": "0.21.5",+ "@esbuild/linux-s390x": "0.21.5",+ "@esbuild/linux-x64": "0.21.5",+ "@esbuild/netbsd-x64": "0.21.5",+ "@esbuild/openbsd-x64": "0.21.5",+ "@esbuild/sunos-x64": "0.21.5",+ "@esbuild/win32-arm64": "0.21.5",+ "@esbuild/win32-ia32": "0.21.5",+ "@esbuild/win32-x64": "0.21.5"+ }+ }+ }+}diff --git a/packages/vscode-x402/src/extension.js b/packages/vscode-x402/src/extension.jsnew file mode 100644index 000000000..171fc45bb--- /dev/null+++ b/packages/vscode-x402/src/extension.js@@ -0,0 +1,174 @@+// three.ws x402 — VS Code extension entry. Registers the bazaar tree, the+// inspect/pay/scaffold commands, the wallet status bar, and secret-storage+// wallet management. All payments use @three-ws/x402-fetch; all discovery uses+// the live three.ws bazaar proxy. No mocks.++import * as vscode from 'vscode';+import { BazaarProvider } from './tree.js';+import { inspectEndpoint, summarize } from './inspect.js';+import { showService } from './panel.js';+import { setKey, clearKey, getAddress } from './wallet.js';+import { scaffoldEndpoint } from './scaffold.js';++let output;+let statusBar;++export function activate(context) {+ output = vscode.window.createOutputChannel('x402');+ const provider = new BazaarProvider();+ const tree = vscode.window.createTreeView('threewsX402.bazaar', { treeDataProvider: provider });++ statusBar = vscode.window.createStatusBarItem(vscode.StatusBarAlignment.Right, 100);+ statusBar.command = 'threewsX402.setWalletKey';+ context.subscriptions.push(output, tree, statusBar);+ refreshStatusBar(context);++ const reg = (id, fn) =>+ context.subscriptions.push(vscode.commands.registerCommand(id, fn));++ reg('threewsX402.refresh', () => provider.refresh());++ reg('threewsX402.search', async () => {+ const q = await vscode.window.showInputBox({+ title: 'Search the x402 bazaar',+ prompt: 'Keywords (empty to list everything)',+ });+ if (q === undefined) return;+ provider.setQuery(q.trim());+ });++ reg('threewsX402.setFilters', () => setFilters());++ reg('threewsX402.inspect', async (preset) => {+ const url =+ typeof preset === 'string'+ ? preset+ : await vscode.window.showInputBox({+ title: 'Inspect x402 endpoint',+ prompt: 'Endpoint URL — decodes its 402 payment challenge',+ placeHolder: 'https://three.ws/api/…',+ validateInput: (v) => (isUrl(v) ? null : 'Enter a valid http(s) URL'),+ });+ if (!url) return;+ await runInspect(url);+ });++ reg('threewsX402.openService', (item) => {+ if (item) showService(context, item);+ });++ reg('threewsX402.pay', async (node) => {+ // Invoked from the tree inline action (node.command.arguments[0]) or palette.+ const item = node?.command?.arguments?.[0] || node;+ if (item?.resource) {+ showService(context, item);+ } else {+ const url = await vscode.window.showInputBox({+ title: 'Pay & call x402 endpoint',+ prompt: 'Endpoint URL',+ validateInput: (v) => (isUrl(v) ? null : 'Enter a valid http(s) URL'),+ });+ if (url) showService(context, syntheticItem(url));+ }+ });++ reg('threewsX402.setWalletKey', async () => {+ const address = await setKey(context);+ if (address) {+ vscode.window.showInformationMessage(`x402 wallet set: ${address}`);+ refreshStatusBar(context);+ }+ });++ reg('threewsX402.clearWalletKey', async () => {+ await clearKey(context);+ vscode.window.showInformationMessage('x402 wallet key cleared.');+ refreshStatusBar(context);+ });++ reg('threewsX402.scaffoldEndpoint', () => scaffoldEndpoint());++ provider.refresh();+}++async function refreshStatusBar(context) {+ const address = await getAddress(context);+ if (address) {+ statusBar.text = `$(key) x402 ${address.slice(0, 6)}…${address.slice(-4)}`;+ statusBar.tooltip = `x402 wallet: ${address}\nClick to change`;+ } else {+ statusBar.text = '$(key) x402: no wallet';+ statusBar.tooltip = 'No x402 wallet key set — click to set one';+ }+ statusBar.show();+}++async function runInspect(url) {+ output.clear();+ output.show(true);+ output.appendLine(`Inspecting ${url}`);+ const network = vscode.workspace.getConfiguration('threewsX402').get('network');+ try {+ const result = await inspectEndpoint(url, { preferNetwork: network });+ summarize(result).forEach((l) => output.appendLine(l));+ } catch (e) {+ output.appendLine(`Error: ${e?.message || e}`);+ }+}++async function setFilters() {+ const cfg = vscode.workspace.getConfiguration('threewsX402');+ const current = cfg.get('filters', { type: 'http' });++ const type = await vscode.window.showQuickPick(+ [+ { label: 'http', description: 'Paid HTTP APIs' },+ { label: 'mcp', description: 'Paid MCP tools' },+ ],+ { title: 'Bazaar type', placeHolder: current.type || 'http' },+ );+ if (!type) return;++ const maxPrice = await vscode.window.showInputBox({+ title: 'Max price (USDC atomics, blank = any)',+ value: current.maxPrice != null ? String(current.maxPrice) : '',+ validateInput: (v) => (!v || /^\d+$/.test(v) ? null : 'digits only'),+ });+ if (maxPrice === undefined) return;++ const tag = await vscode.window.showInputBox({+ title: 'Tag filter (blank = any)',+ value: current.tag || '',+ });+ if (tag === undefined) return;++ const next = { type: type.label };+ if (maxPrice) next.maxPrice = Number(maxPrice);+ if (tag.trim()) next.tag = tag.trim();+ await cfg.update('filters', next, vscode.ConfigurationTarget.Global);+ vscode.commands.executeCommand('threewsX402.refresh');+}++function syntheticItem(url) {+ return {+ type: 'http',+ resource: url,+ serviceName: '',+ description: 'Manually entered endpoint.',+ accepts: [],+ tags: [],+ networks: [],+ minPriceLabel: '',+ };+}++function isUrl(v) {+ try {+ const u = new URL(v);+ return u.protocol === 'http:' || u.protocol === 'https:';+ } catch {+ return false;+ }+}++export function deactivate() {}diff --git a/packages/vscode-x402/src/inspect.js b/packages/vscode-x402/src/inspect.jsindex 42426582e..d9a5549aa 100644--- a/packages/vscode-x402/src/inspect.js+++ b/packages/vscode-x402/src/inspect.js@@ -6,7 +6,7 @@ import {parseChallenge,selectRequirement,amountToUsd,-} from '../../x402-fetch/src/index.js';+} from '../../x402-fetch/src/parse-challenge.js';/*** @returns {Promise<{ status:number, paid:boolean, accepts:any[], chosen:any|null, resource:any, raw:any }>}diff --git a/public/changelog.json b/public/changelog.jsonindex 39e20ef79..bda704009 100644--- a/public/changelog.json+++ b/public/changelog.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-21T19:01:16.428Z",+ "generated_at": "2026-06-21T19:17:43.937Z","generated_by": "scripts/build-page-index.mjs from data/pages.json + data/changelog.json","site": {"name": "three.ws",@@ -976,6 +976,17 @@"improvement"]},+ {+ "date": "2026-06-21",+ "type": "update",+ "title": "x402 comes to VS Code",+ "summary": "A new VS Code extension brings the x402 bazaar into your editor. Browse and search every paid API and MCP tool across the network, decode any endpoint's payment challenge to see exactly what it charges and on which chain, and pay-per-call with USDC right from a side panel — the amount is shown and confirmed before signing, a spending cap blocks anything over your limit, and the on-chain receipt comes back inline. Your wallet key is stored in the OS keychain, never in files. Developers can also scaffold a new paid endpoint in one command. Built for the people who wire up and call paid services — and they live in their editor.",+ "link": null,+ "tags": [+ "sdk",+ "feature"+ ]+ },{"date": "2026-06-21","type": "update",diff --git a/public/changelog.xml b/public/changelog.xmlindex c17c44dc1..b28a8864a 100644--- a/public/changelog.xml+++ b/public/changelog.xml@@ -750,6 +750,14 @@<category>feature</category><description>Every agent profile now has a “Walk with this agent” action and a live preview that renders that specific agent walking — the walk embed can now load any agent’s avatar by id. And the walking avatar leaves an aesthetic trail behind it (footprints, a glow, or a fading line, your pick) both in the full walk scene and the site-wide companion.</description></item>+ <item>+ <title>x402 comes to VS Code</title>+ <link>https://three.ws/changelog</link>+ <guid isPermaLink="false">2026-06-21:x402 comes to VS Code</guid>+ <pubDate>Sun, 21 Jun 2026 12:00:00 GMT</pubDate>+ <category>sdk</category>+ <description>A new VS Code extension brings the x402 bazaar into your editor. Browse and search every paid API and MCP tool across the network, decode any endpoint's payment challenge to see exactly what it charges and on which chain, and pay-per-call with USDC right from a side panel — the amount is shown and confirmed before signing, a spending cap blocks anything over your limit, and the on-chain receipt comes back inline. Your wallet key is stored in the OS keychain, never in files. Developers can also scaffold a new paid endpoint in one command. Built for the people who wire up and call paid services — and they live in their editor.</description>+ </item><item><title>Your avatar now walks anywhere — new Walk hub, leaderboard, and creator analytics</title><link>https://three.ws/walk</link>diff --git a/public/features.json b/public/features.jsonindex 1f5c32bfb..5a50fc6bd 100644--- a/public/features.json+++ b/public/features.json@@ -1,5 +1,5 @@{- "generated_at": "2026-06-21T19:01:16.416Z",+ "generated_at": "2026-06-21T19:17:43.919Z","generated_by": "scripts/build-page-index.mjs from data/pages.json","site": {"name": "three.ws",