@clawcard/cli 3.1.6 → 3.1.9

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.1.6",
3
+ "version": "3.1.9",
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"
@@ -568,9 +568,16 @@ export async function agentWalletSendCmd(options) {
568
568
  if (result.success) {
569
569
  console.log();
570
570
  if (result.protocol === "x402" || result.protocol === "mpp") {
571
- console.log(` ${chalk.green("Paid!")} ${result.amountUsdc || "?"} USDC via ${result.protocol}`);
571
+ const currency = result.protocol === "mpp" ? "pathUSD" : "USDC";
572
+ const amount = result.amountUsdc && result.amountUsdc !== "0.000000" ? result.amountUsdc : null;
573
+ console.log(` ${chalk.green("Paid!")} ${amount ? amount + " " + currency : ""} via ${result.protocol}`);
572
574
  console.log(` URL: ${chalk.dim(result.url)}`);
573
- console.log(` TX: ${chalk.dim(result.txHash)}`);
575
+ if (result.txHash) {
576
+ console.log(` TX: ${chalk.dim(result.txHash)}`);
577
+ }
578
+ if (result.explorerUrl) {
579
+ console.log(` View: ${chalk.dim(result.explorerUrl)}`);
580
+ }
574
581
  console.log();
575
582
  if (result.data) {
576
583
  console.log(` ${orange("Response:")}`);