@carrierllc/mcp 0.13.80 → 0.13.81

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/dist/cli.js CHANGED
@@ -45,7 +45,7 @@ import {
45
45
  verifyStorefront,
46
46
  walletScreen,
47
47
  which
48
- } from "./chunk-C4CICMRO.js";
48
+ } from "./chunk-QOEAUPWD.js";
49
49
  import {
50
50
  copyTree,
51
51
  exists,
@@ -2907,6 +2907,7 @@ var DASH_DOMAINS = [
2907
2907
  "greenzone",
2908
2908
  "storefront"
2909
2909
  ];
2910
+ var CURRENCY_SYMBOL = { usd: "$", eur: "\u20AC" };
2910
2911
  function isDashDomain(value) {
2911
2912
  return DASH_DOMAINS.includes(value);
2912
2913
  }
@@ -3009,8 +3010,11 @@ function buildDashScreen(domain, payload) {
3009
3010
  const p4 = payload ?? {};
3010
3011
  const eur = (value) => value === void 0 || value === null ? void 0 : num(value) / 100;
3011
3012
  return walletScreen({
3012
- balance: eur(p4.balance_eur_cents ?? p4.balance) ?? 0,
3013
- currency: str(p4.currency, "\u20AC"),
3013
+ balance: eur(p4.balance_cents ?? p4.balance_eur_cents ?? p4.balance) ?? 0,
3014
+ // The tool reports an ISO code ("usd"); walletScreen prefixes the symbol.
3015
+ // A payload with no currency and only the EUR field comes from a build that
3016
+ // predates the USD move; it is EUR, so say so rather than print a dollar sign.
3017
+ currency: CURRENCY_SYMBOL[str(p4.currency, p4.balance_cents === void 0 && p4.balance_eur_cents !== void 0 ? "eur" : "usd").toLowerCase()] ?? str(p4.currency, "$"),
3014
3018
  autoTopupEnabled: Boolean(p4.autoTopupEnabled ?? p4.auto_topup_enabled),
3015
3019
  threshold: eur(p4.auto_topup_threshold_cents ?? p4.threshold),
3016
3020
  credits: p4.credits === void 0 || p4.credits === null ? void 0 : num(p4.credits)
@@ -5372,7 +5376,7 @@ var CLI_DOMAINS = [
5372
5376
  options: [
5373
5377
  {
5374
5378
  flags: "--pack <pack>",
5375
- description: "Pack id (pack_25/pack_50/pack_100/pack_500/pack_1000/pack_2500/pack_5000) or exact EUR-cents amount.",
5379
+ description: "Pack id (pack_25/pack_50/pack_100/pack_500/pack_1000/pack_2500/pack_5000) or exact USD-cents amount.",
5376
5380
  arg: "pack",
5377
5381
  type: "string"
5378
5382
  }
@@ -5386,7 +5390,7 @@ var CLI_DOMAINS = [
5386
5390
  options: [
5387
5391
  {
5388
5392
  flags: "--pack-cents <n>",
5389
- description: "Override pack amount in EUR cents (must match a catalog pack).",
5393
+ description: "Override pack amount in USD cents (must match a catalog pack).",
5390
5394
  arg: "pack_cents",
5391
5395
  type: "number"
5392
5396
  }