x402-bazaar 3.6.2 → 3.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cli.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import { Command } from 'commander';
4
4
  import { initCommand } from '../src/commands/init.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "x402-bazaar",
3
- "version": "3.6.2",
3
+ "version": "3.6.4",
4
4
  "description": "CLI for x402 Bazaar — AI Agent Marketplace. Browse, call, and auto-pay APIs with USDC on Base. One command to connect your agent.",
5
5
  "type": "module",
6
6
  "main": "bin/cli.js",
@@ -160,7 +160,19 @@ export async function initCommand(options) {
160
160
  const srcDir = join(mcpSourceDir, subdir);
161
161
  const destDir = join(installDir, subdir);
162
162
  if (existsSync(srcDir)) {
163
- cpSync(srcDir, destDir, { recursive: true });
163
+ try {
164
+ cpSync(srcDir, destDir, { recursive: true, force: true });
165
+ } catch {
166
+ // Fallback: copy files individually (Windows compat)
167
+ if (!existsSync(destDir)) mkdirSync(destDir, { recursive: true });
168
+ for (const f of readdirSync(srcDir)) {
169
+ try {
170
+ copyFileSync(join(srcDir, f), join(destDir, f));
171
+ } catch {
172
+ /* skip locked files */
173
+ }
174
+ }
175
+ }
164
176
  spinner.text = `Copied ${subdir}/ directory...`;
165
177
  }
166
178
  }
@@ -218,7 +230,7 @@ export async function initCommand(options) {
218
230
  viem: "^2.45.0",
219
231
  "@modelcontextprotocol/sdk": "^1.27.0",
220
232
  dotenv: "^17.3.0",
221
- zod: "^4.3.6",
233
+ zod: "^3.25.0",
222
234
  ed2curve: "^0.3.0",
223
235
  "@scure/bip32": "^1.6.0",
224
236
  },