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: update changelog and package.json for version 0.2.0, enhancing Solana payment support and adding new wallet management features
qbdz5d03203b86fe
diff --git a/packages/vscode-x402/CHANGELOG.md b/packages/vscode-x402/CHANGELOG.mdindex 16272e25c..858e703ae 100644--- a/packages/vscode-x402/CHANGELOG.md+++ b/packages/vscode-x402/CHANGELOG.md@@ -1,5 +1,24 @@# Changelog+## 0.2.0++Solana + $THREE payments.++- Pay x402 services on **Solana** in **USDC or $THREE** (the three.ws platform+ token), settled with the real `@x402/svm` `exact` scheme — the same buyer+ `@three-ws/x402-mcp` uses. Nothing mocked.+- Dual wallets: an EVM key (USDC on Base and other EVM chains) and a Solana key+ can be set independently. Each is stored in VS Code SecretStorage.+- New commands: `x402: Set Solana Wallet Key`, `x402: Clear Solana Wallet Key`.+ The status bar and wallet picker manage both keys.+- New `threewsX402.preferToken` setting (`auto` | `usdc` | `three`) to choose+ which token to pay when a service accepts several. `auto` prefers USDC on+ Solana, then Base, and falls back to $THREE.+- Pay & call auto-routes each request to the correct rail based on the 402+ challenge; the confirmation and receipt now show the token and network.+- `threewsX402.network` now defaults to auto (empty). Set a CAIP-2 id+ (`solana:…` or `eip155:…`) to force a network.+## 0.1.0Initial release.diff --git a/packages/vscode-x402/package.json b/packages/vscode-x402/package.jsonindex 1ce25a35d..1e432ba69 100644--- a/packages/vscode-x402/package.json+++ b/packages/vscode-x402/package.json@@ -1,8 +1,8 @@{"name": "@three-ws/vscode-x402","displayName": "three.ws — x402",- "description": "Browse the x402 bazaar, decode 402 payment challenges, and pay-per-call paid APIs with USDC — without leaving VS Code. Powered by three.ws.",- "version": "0.1.0",+ "description": "Browse the x402 bazaar, decode 402 payment challenges, and pay per call for paid APIs and MCP tools in USDC or $THREE on Solana and Base, without leaving VS Code. Powered by three.ws.",+ "version": "0.2.0","publisher": "three-ws","license": "Apache-2.0","homepage": "https://three.ws",@@ -24,8 +24,12 @@"x402","payments","usdc",+ "three",+ "solana",+ "base","micropayments","agent",+ "mcp","bazaar","web3"],@@ -54,7 +58,7 @@"viewsWelcome": [{"view": "threewsX402.bazaar",- "contents": "Browse paid x402 APIs and MCP tools from across the bazaar.\n[Refresh services](command:threewsX402.refresh)\n[Set filters](command:threewsX402.setFilters)\n\nTo pay for a service you'll need an EVM wallet key.\n[Set wallet key](command:threewsX402.setWalletKey)"+ "contents": "Browse paid x402 APIs and MCP tools from across the bazaar.\n[Refresh services](command:threewsX402.refresh)\n[Set filters](command:threewsX402.setFilters)\n\nTo pay you'll need a wallet key. Solana pays USDC or $THREE; EVM pays USDC on Base.\n[Set Solana wallet key](command:threewsX402.setSolanaWalletKey)\n[Set EVM wallet key](command:threewsX402.setWalletKey)"}],"commands": [@@ -91,7 +95,15 @@},{"command": "threewsX402.clearWalletKey",- "title": "x402: Clear Wallet Key"+ "title": "x402: Clear EVM Wallet Key"+ },+ {+ "command": "threewsX402.setSolanaWalletKey",+ "title": "x402: Set Solana Wallet Key"+ },+ {+ "command": "threewsX402.clearSolanaWalletKey",+ "title": "x402: Clear Solana Wallet Key"},{"command": "threewsX402.scaffoldEndpoint",@@ -144,8 +156,18 @@},"threewsX402.network": {"type": "string",- "default": "eip155:8453",- "description": "Preferred CAIP-2 network for payment when an endpoint accepts several (default: Base mainnet)."+ "default": "",+ "description": "Preferred CAIP-2 network when an endpoint accepts several (e.g. solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp or eip155:8453). Leave empty for auto (prefers USDC on Solana, then Base)."+ },+ "threewsX402.preferToken": {+ "type": "string",+ "enum": [+ "auto",+ "usdc",+ "three"+ ],+ "default": "auto",+ "description": "Which token to pay when a service accepts several. 'auto' prefers USDC (Solana, then Base) and falls back to $THREE; 'three' pays $THREE on Solana when offered; 'usdc' forces USDC."},"threewsX402.filters": {"type": "object",@@ -162,6 +184,13 @@"watch": "node build.mjs --watch","vscode:prepublish": "node build.mjs --production"},+ "dependencies": {+ "@solana/kit": "^6.9.0",+ "@x402/core": "^2.14.0",+ "@x402/fetch": "^2.14.0",+ "@x402/svm": "^2.14.0",+ "bs58": "^6.0.0"+ },"devDependencies": {"@types/vscode": "^1.85.0","esbuild": "^0.21.0"diff --git a/packages/vscode-x402/src/extension.js b/packages/vscode-x402/src/extension.jsindex 2918a72ef..e12ee8b48 100644--- a/packages/vscode-x402/src/extension.js+++ b/packages/vscode-x402/src/extension.js@@ -149,9 +149,15 @@ async function runInspect(url) {output.clear();output.show(true);output.appendLine(`Inspecting ${url}`);- const network = vscode.workspace.getConfiguration('threewsX402').get('network');+ const cfg = vscode.workspace.getConfiguration('threewsX402');+ const network = cfg.get('network');+ const preferToken = cfg.get('preferToken', 'auto');try {- const result = await inspectEndpoint(url, { preferNetwork: network });+ const result = await inspectEndpoint(url, {+ preferNetwork: network || undefined,+ preferToken,+ wallets: { evm: true, solana: true },+ });summarize(result).forEach((l) => output.appendLine(l));} catch (e) {output.appendLine(`Error: ${e?.message || e}`);diff --git a/packages/vscode-x402/src/panel.js b/packages/vscode-x402/src/panel.jsindex 24888942b..a0022ee9c 100644--- a/packages/vscode-x402/src/panel.js+++ b/packages/vscode-x402/src/panel.js@@ -151,8 +151,8 @@ function render(item) {out.classList.remove('hidden');const r = m.result;const rc = document.getElementById('receipt');- const paid = r.amountUsd ? '\$' + Number(r.amountUsd).toFixed(6) : 'free';- let receipt = '<div class="kv"><b>Status</b> ' + r.status + ' · <b>Paid</b> ' + paid + ' · <b>From</b> <code>' + r.address + '</code></div>';+ const paid = r.amountUsd ? '\$' + Number(r.amountUsd).toFixed(6) + (r.token ? ' ' + r.token : '') + (r.network ? ' on ' + r.network : '') : 'free';+ let receipt = '<div class="kv"><b>Status</b> ' + r.status + ' · <b>Paid</b> ' + paid + (r.address ? ' · <b>From</b> <code>' + r.address + '</code>' : '') + '</div>';if (r.receipt) {const tx = r.receipt.transaction || r.receipt.txHash;if (tx) receipt += '<div class="kv"><b>Tx</b> <code>' + tx + '</code> ' + (r.receipt.network ? '('+r.receipt.network+')' : '') + '</div>';