@carrierllc/mcp 0.13.18 → 0.13.20

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
@@ -39,7 +39,7 @@ import {
39
39
  verifyStorefront,
40
40
  walletScreen,
41
41
  which
42
- } from "./chunk-VXROP2SU.js";
42
+ } from "./chunk-VM2X3RHP.js";
43
43
  import {
44
44
  copyTree,
45
45
  exists,
@@ -341,12 +341,13 @@ function parseCountryInput(raw) {
341
341
  const added = codesFor(part);
342
342
  if (!added) return { ok: false, message: "Countries are names, such as France, or codes such as FR." };
343
343
  for (const code of added) {
344
- if (regions.length >= 40) break;
344
+ if (regions.length >= MAX_REGIONS_PER_PLAN) break;
345
345
  if (!regions.includes(code)) regions.push(code);
346
346
  }
347
347
  }
348
348
  return { ok: true, regions };
349
349
  }
350
+ var MAX_REGIONS_PER_PLAN = 250;
350
351
  function parseAmount(raw, unit, message, max, whole) {
351
352
  const text3 = raw.trim().replace(unit, "").trim();
352
353
  if (text3 === "" || !/^\d+(\.\d+)?$/.test(text3)) return { ok: false, message };
@@ -3766,6 +3767,37 @@ var CLI_DOMAINS = [
3766
3767
  // <generated:catalog-domains>
3767
3768
  // Generated from the MCP catalog by scripts/generate-domains.mjs. Do not edit by hand:
3768
3769
  // rebuild the server, re-run the generator, and review the diff.
3770
+ {
3771
+ name: "affiliate",
3772
+ summary: "Carrier affiliate program: profile, referral link and commissions",
3773
+ commands: [
3774
+ {
3775
+ name: "status",
3776
+ tool: "affiliate_status",
3777
+ summary: "Read-only: returns the affiliate profile, referral code, link, counts, money owed and paid, and Connect payouts status for the authenticated operator.",
3778
+ options: []
3779
+ },
3780
+ {
3781
+ name: "commissions",
3782
+ tool: "affiliate_commissions",
3783
+ summary: "Read-only: returns the list of commission records for the authenticated operator.",
3784
+ options: [
3785
+ {
3786
+ flags: "--limit <n>",
3787
+ description: "Maximum number of commission records to return (1-200, default: 50). Default 50.",
3788
+ arg: "limit",
3789
+ type: "number"
3790
+ }
3791
+ ]
3792
+ },
3793
+ {
3794
+ name: "join",
3795
+ tool: "affiliate_join",
3796
+ summary: "Join the Carrier affiliate program and generate a personal referral code and link.",
3797
+ options: []
3798
+ }
3799
+ ]
3800
+ },
3769
3801
  {
3770
3802
  name: "billing",
3771
3803
  summary: "Carrier plan credits, spend thresholds and rate-limit state",