@clawcard/cli 3.0.2 → 3.0.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clawcard/cli",
3
- "version": "3.0.2",
3
+ "version": "3.0.4",
4
4
  "description": "The ClawCard CLI — manage your agent keys, billing, and setup from the terminal",
5
5
  "bin": {
6
6
  "clawcard": "./bin/clawcard.mjs"
package/skill/SKILL.md CHANGED
@@ -141,7 +141,7 @@ View transaction history:
141
141
  clawcard agent wallet transactions --json
142
142
  ```
143
143
 
144
- Fund your wallet from your FIAT balance (2% conversion fee):
144
+ Fund your wallet (opens Coinbase buy USDC with card, zero fees, sent directly to wallet):
145
145
  ```
146
146
  clawcard agent wallet fund --amount 10.00 --json
147
147
  ```
@@ -585,11 +585,23 @@ export async function agentWalletFundCmd(options) {
585
585
 
586
586
  if (result.success) {
587
587
  console.log();
588
- console.log(` ${chalk.green("Funded!")} ${result.funded} USDC added to wallet`);
589
- console.log(` Cost: $${(result.costCents / 100).toFixed(2)} (includes $${(result.feeCents / 100).toFixed(2)} fee)`);
590
- console.log(` TX: ${chalk.dim(result.txHash)}`);
591
- console.log(` Budget: $${(result.newFiatBudgetCents / 100).toFixed(2)} remaining`);
588
+ console.log(` ${chalk.green("Fund your wallet:")}`);
592
589
  console.log();
590
+ console.log(` ${result.instructions}`);
591
+ console.log();
592
+ console.log(` ${orange(result.url)}`);
593
+ console.log();
594
+ console.log(chalk.dim(` Or send USDC directly to ${result.walletAddress} on Base.`));
595
+ console.log();
596
+
597
+ // Try to open the URL in the browser
598
+ try {
599
+ const { default: open } = await import("open");
600
+ await open(result.url);
601
+ console.log(chalk.dim(" Opened in browser."));
602
+ } catch {
603
+ // open is optional — user can copy the URL
604
+ }
593
605
  } else {
594
606
  console.log(` Error: ${result.error}`);
595
607
  }