x402-bazaar 3.2.3 → 3.2.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 +1 -1
- package/package.json +1 -1
- package/src/commands/init.js +30 -20
package/bin/cli.js
CHANGED
package/package.json
CHANGED
package/src/commands/init.js
CHANGED
|
@@ -504,31 +504,41 @@ export async function initCommand(options) {
|
|
|
504
504
|
|
|
505
505
|
log.box('What\'s next?', summaryLines.join('\n'));
|
|
506
506
|
|
|
507
|
-
// Print critical info AFTER the box so it's visible even when output is truncated
|
|
508
|
-
if (walletMode === 'generate') {
|
|
509
|
-
console.log('');
|
|
510
|
-
log.info(chalk.bold('Next steps after restarting your IDE:'));
|
|
511
|
-
console.log('');
|
|
512
|
-
if (network === 'skale') {
|
|
513
|
-
log.info(` ${chalk.white('1.')} Ask your agent to run ${chalk.cyan('setup_wallet')} — this auto-funds 0.1 CREDITS for gas (free!)`);
|
|
514
|
-
log.info(` ${chalk.white('2.')} Fund your wallet with USDC on SKALE on Base:`);
|
|
515
|
-
log.dim(` ${chalk.cyan('https://x402bazaar.org/fund')} — Bridge from any chain in 1 click`);
|
|
516
|
-
log.dim(` ${chalk.cyan('https://bridge.skale.space')} — Native SKALE bridge`);
|
|
517
|
-
log.info(` ${chalk.white('3.')} Start using paid APIs! Try: ${chalk.dim('"Search for weather APIs on x402 Bazaar"')}`);
|
|
518
|
-
} else {
|
|
519
|
-
log.info(` ${chalk.white('1.')} Ask your agent to run ${chalk.cyan('setup_wallet')} to verify your wallet`);
|
|
520
|
-
log.info(` ${chalk.white('2.')} Fund your wallet with USDC + ETH on Base`);
|
|
521
|
-
log.info(` ${chalk.white('3.')} Start using paid APIs! Try: ${chalk.dim('"Search for weather APIs on x402 Bazaar"')}`);
|
|
522
|
-
}
|
|
523
|
-
console.log('');
|
|
524
|
-
}
|
|
525
|
-
|
|
526
507
|
log.dim(' Need help? https://x402bazaar.org');
|
|
527
|
-
log.dim(' Dashboard: https://x402-api.onrender.com/dashboard');
|
|
528
508
|
log.dim(' Re-configure: npx x402-bazaar init');
|
|
529
509
|
console.log('');
|
|
530
510
|
|
|
531
511
|
printNonInteractiveHint('init');
|
|
512
|
+
|
|
513
|
+
// === CRITICAL: Print AFTER everything else so it's the LAST thing in output ===
|
|
514
|
+
// Claude Code AI summarizes tool output — only tail lines are reliably shown
|
|
515
|
+
if (walletMode === 'generate' && network === 'skale') {
|
|
516
|
+
console.log('');
|
|
517
|
+
console.log('='.repeat(70));
|
|
518
|
+
console.log('');
|
|
519
|
+
console.log(' IMPORTANT — After restarting, ask your agent to run: setup_wallet');
|
|
520
|
+
console.log('');
|
|
521
|
+
console.log(' This will:');
|
|
522
|
+
console.log(' - Auto-fund 0.1 CREDITS for gas on SKALE (free, no ETH needed)');
|
|
523
|
+
console.log(' - Show your wallet balance on both Base and SKALE');
|
|
524
|
+
console.log(' - Provide bridge links to fund your wallet with USDC');
|
|
525
|
+
console.log('');
|
|
526
|
+
console.log(' Fund USDC: https://x402bazaar.org/fund (bridge from any chain)');
|
|
527
|
+
console.log(' SKALE Bridge: https://bridge.skale.space');
|
|
528
|
+
console.log('');
|
|
529
|
+
console.log('='.repeat(70));
|
|
530
|
+
console.log('');
|
|
531
|
+
} else if (walletMode === 'generate') {
|
|
532
|
+
console.log('');
|
|
533
|
+
console.log('='.repeat(70));
|
|
534
|
+
console.log('');
|
|
535
|
+
console.log(' IMPORTANT — After restarting, ask your agent to run: setup_wallet');
|
|
536
|
+
console.log(' Then fund your wallet with USDC + ETH on Base.');
|
|
537
|
+
console.log(' Bridge: https://x402bazaar.org/fund');
|
|
538
|
+
console.log('');
|
|
539
|
+
console.log('='.repeat(70));
|
|
540
|
+
console.log('');
|
|
541
|
+
}
|
|
532
542
|
}
|
|
533
543
|
|
|
534
544
|
/**
|