@carrierllc/mcp 0.13.81 → 0.13.82

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-QOEAUPWD.js";
48
+ } from "./chunk-FKHHZ7V2.js";
49
49
  import {
50
50
  copyTree,
51
51
  exists,
@@ -5112,7 +5112,7 @@ var CLI_DOMAINS = [
5112
5112
  },
5113
5113
  {
5114
5114
  flags: "--entitlement-token <token>",
5115
- description: "The right issued for this external_ref by create_benefit_entitlement, 1 to 200 characters. Required when the campaign requires a right.",
5115
+ description: "The right issued for this external_ref by create_benefit_entitlement, 1 to 200 characters.",
5116
5116
  arg: "entitlement_token",
5117
5117
  type: "string"
5118
5118
  }
@@ -6483,6 +6483,475 @@ var CLI_DOMAINS = [
6483
6483
  ]
6484
6484
  }
6485
6485
  ]
6486
+ },
6487
+ {
6488
+ name: "storefronts",
6489
+ summary: "Hosted storefronts: create, plans, domains, orders and readiness (CAR-455)",
6490
+ commands: [
6491
+ {
6492
+ name: "list",
6493
+ tool: "list_storefronts",
6494
+ summary: "Call the caller's storefront operation: GET /v1/storefronts.",
6495
+ options: []
6496
+ },
6497
+ {
6498
+ name: "get",
6499
+ tool: "get_storefront",
6500
+ summary: "Call the caller's storefront operation: GET /v1/storefronts/{storefront_id}.",
6501
+ options: [
6502
+ {
6503
+ flags: "--storefront-id <id>",
6504
+ description: "storefront id (string).",
6505
+ arg: "storefront_id",
6506
+ type: "string",
6507
+ required: true
6508
+ }
6509
+ ]
6510
+ },
6511
+ {
6512
+ name: "create",
6513
+ tool: "create_storefront",
6514
+ summary: "Call the caller's storefront operation: POST /v1/storefronts.",
6515
+ requireConfirm: true,
6516
+ options: [
6517
+ {
6518
+ flags: "--input <input>",
6519
+ description: "input (json).",
6520
+ arg: "input",
6521
+ type: "json"
6522
+ },
6523
+ {
6524
+ flags: "--confirm-token <token>",
6525
+ description: "confirm token (string).",
6526
+ arg: "confirm_token",
6527
+ type: "string"
6528
+ },
6529
+ {
6530
+ flags: "--idempotency-key <key>",
6531
+ description: "idempotency key (string).",
6532
+ arg: "idempotency_key",
6533
+ type: "string",
6534
+ required: true
6535
+ }
6536
+ ]
6537
+ },
6538
+ {
6539
+ name: "update",
6540
+ tool: "update_storefront",
6541
+ summary: "Call the caller's storefront operation: PATCH /v1/storefronts/{storefront_id}.",
6542
+ requireConfirm: true,
6543
+ options: [
6544
+ {
6545
+ flags: "--storefront-id <id>",
6546
+ description: "storefront id (string).",
6547
+ arg: "storefront_id",
6548
+ type: "string",
6549
+ required: true
6550
+ },
6551
+ {
6552
+ flags: "--input <input>",
6553
+ description: "input (json).",
6554
+ arg: "input",
6555
+ type: "json"
6556
+ },
6557
+ {
6558
+ flags: "--confirm-token <token>",
6559
+ description: "confirm token (string).",
6560
+ arg: "confirm_token",
6561
+ type: "string"
6562
+ },
6563
+ {
6564
+ flags: "--idempotency-key <key>",
6565
+ description: "idempotency key (string).",
6566
+ arg: "idempotency_key",
6567
+ type: "string"
6568
+ }
6569
+ ]
6570
+ },
6571
+ {
6572
+ name: "unpublish",
6573
+ tool: "unpublish_storefront",
6574
+ summary: "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/unpublish.",
6575
+ requireConfirm: true,
6576
+ options: [
6577
+ {
6578
+ flags: "--storefront-id <id>",
6579
+ description: "storefront id (string).",
6580
+ arg: "storefront_id",
6581
+ type: "string",
6582
+ required: true
6583
+ },
6584
+ {
6585
+ flags: "--input <input>",
6586
+ description: "input (json).",
6587
+ arg: "input",
6588
+ type: "json"
6589
+ },
6590
+ {
6591
+ flags: "--confirm-token <token>",
6592
+ description: "confirm token (string).",
6593
+ arg: "confirm_token",
6594
+ type: "string"
6595
+ },
6596
+ {
6597
+ flags: "--idempotency-key <key>",
6598
+ description: "idempotency key (string).",
6599
+ arg: "idempotency_key",
6600
+ type: "string"
6601
+ }
6602
+ ]
6603
+ },
6604
+ {
6605
+ name: "plan upsert",
6606
+ tool: "upsert_storefront_plan",
6607
+ summary: "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/plans.",
6608
+ requireConfirm: true,
6609
+ options: [
6610
+ {
6611
+ flags: "--storefront-id <id>",
6612
+ description: "storefront id (string).",
6613
+ arg: "storefront_id",
6614
+ type: "string",
6615
+ required: true
6616
+ },
6617
+ {
6618
+ flags: "--input <input>",
6619
+ description: "input (json).",
6620
+ arg: "input",
6621
+ type: "json"
6622
+ },
6623
+ {
6624
+ flags: "--confirm-token <token>",
6625
+ description: "confirm token (string).",
6626
+ arg: "confirm_token",
6627
+ type: "string"
6628
+ },
6629
+ {
6630
+ flags: "--idempotency-key <key>",
6631
+ description: "idempotency key (string).",
6632
+ arg: "idempotency_key",
6633
+ type: "string"
6634
+ }
6635
+ ]
6636
+ },
6637
+ {
6638
+ name: "plan update",
6639
+ tool: "update_storefront_plan",
6640
+ summary: "Call the caller's storefront operation: PATCH /v1/storefronts/{storefront_id}/plans/{slug}.",
6641
+ requireConfirm: true,
6642
+ options: [
6643
+ {
6644
+ flags: "--storefront-id <id>",
6645
+ description: "storefront id (string).",
6646
+ arg: "storefront_id",
6647
+ type: "string",
6648
+ required: true
6649
+ },
6650
+ {
6651
+ flags: "--slug <slug>",
6652
+ description: "slug (string).",
6653
+ arg: "slug",
6654
+ type: "string",
6655
+ required: true
6656
+ },
6657
+ {
6658
+ flags: "--input <input>",
6659
+ description: "input (json).",
6660
+ arg: "input",
6661
+ type: "json"
6662
+ },
6663
+ {
6664
+ flags: "--confirm-token <token>",
6665
+ description: "confirm token (string).",
6666
+ arg: "confirm_token",
6667
+ type: "string"
6668
+ },
6669
+ {
6670
+ flags: "--idempotency-key <key>",
6671
+ description: "idempotency key (string).",
6672
+ arg: "idempotency_key",
6673
+ type: "string"
6674
+ }
6675
+ ]
6676
+ },
6677
+ {
6678
+ name: "orders",
6679
+ tool: "list_storefront_orders",
6680
+ summary: "Call the caller's storefront operation: GET /v1/storefronts/orders.",
6681
+ options: [
6682
+ {
6683
+ flags: "--storefront-id <id>",
6684
+ description: "storefront id (string).",
6685
+ arg: "storefront_id",
6686
+ type: "string"
6687
+ },
6688
+ {
6689
+ flags: "--status <status>",
6690
+ description: "status (string). One of: pending, provisioning, ready, failed.",
6691
+ arg: "status",
6692
+ type: "string"
6693
+ },
6694
+ {
6695
+ flags: "--limit <n>",
6696
+ description: "limit (number).",
6697
+ arg: "limit",
6698
+ type: "number"
6699
+ }
6700
+ ]
6701
+ },
6702
+ {
6703
+ name: "publish-plan",
6704
+ tool: "plan_storefront_publish",
6705
+ summary: "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/publish-plan.",
6706
+ options: [
6707
+ {
6708
+ flags: "--storefront-id <id>",
6709
+ description: "storefront id (string).",
6710
+ arg: "storefront_id",
6711
+ type: "string",
6712
+ required: true
6713
+ },
6714
+ {
6715
+ flags: "--input <input>",
6716
+ description: "input (json).",
6717
+ arg: "input",
6718
+ type: "json"
6719
+ },
6720
+ {
6721
+ flags: "--confirm-token <token>",
6722
+ description: "confirm token (string).",
6723
+ arg: "confirm_token",
6724
+ type: "string"
6725
+ },
6726
+ {
6727
+ flags: "--idempotency-key <key>",
6728
+ description: "idempotency key (string).",
6729
+ arg: "idempotency_key",
6730
+ type: "string"
6731
+ }
6732
+ ]
6733
+ },
6734
+ {
6735
+ name: "readiness",
6736
+ tool: "verify_storefront",
6737
+ summary: "Call the caller's storefront operation: GET /v1/storefronts/{storefront_id}/readiness.",
6738
+ options: [
6739
+ {
6740
+ flags: "--storefront-id <id>",
6741
+ description: "storefront id (string).",
6742
+ arg: "storefront_id",
6743
+ type: "string",
6744
+ required: true
6745
+ }
6746
+ ]
6747
+ },
6748
+ {
6749
+ name: "domain list",
6750
+ tool: "list_storefront_domains",
6751
+ summary: "Call the caller's storefront operation: GET /v1/storefronts/{storefront_id}/domains.",
6752
+ options: [
6753
+ {
6754
+ flags: "--storefront-id <id>",
6755
+ description: "storefront id (string).",
6756
+ arg: "storefront_id",
6757
+ type: "string",
6758
+ required: true
6759
+ }
6760
+ ]
6761
+ },
6762
+ {
6763
+ name: "domain plan",
6764
+ tool: "plan_storefront_domain",
6765
+ summary: "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/domains/plan.",
6766
+ options: [
6767
+ {
6768
+ flags: "--storefront-id <id>",
6769
+ description: "storefront id (string).",
6770
+ arg: "storefront_id",
6771
+ type: "string",
6772
+ required: true
6773
+ },
6774
+ {
6775
+ flags: "--hostname <hostname>",
6776
+ description: "hostname (string).",
6777
+ arg: "hostname",
6778
+ type: "string",
6779
+ required: true
6780
+ },
6781
+ {
6782
+ flags: "--input <input>",
6783
+ description: "input (json).",
6784
+ arg: "input",
6785
+ type: "json"
6786
+ },
6787
+ {
6788
+ flags: "--confirm-token <token>",
6789
+ description: "confirm token (string).",
6790
+ arg: "confirm_token",
6791
+ type: "string"
6792
+ },
6793
+ {
6794
+ flags: "--idempotency-key <key>",
6795
+ description: "idempotency key (string).",
6796
+ arg: "idempotency_key",
6797
+ type: "string"
6798
+ }
6799
+ ]
6800
+ },
6801
+ {
6802
+ name: "domain attach",
6803
+ tool: "attach_storefront_domain",
6804
+ summary: "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/domains.",
6805
+ requireConfirm: true,
6806
+ options: [
6807
+ {
6808
+ flags: "--storefront-id <id>",
6809
+ description: "storefront id (string).",
6810
+ arg: "storefront_id",
6811
+ type: "string",
6812
+ required: true
6813
+ },
6814
+ {
6815
+ flags: "--hostname <hostname>",
6816
+ description: "hostname (string).",
6817
+ arg: "hostname",
6818
+ type: "string",
6819
+ required: true
6820
+ },
6821
+ {
6822
+ flags: "--input <input>",
6823
+ description: "input (json).",
6824
+ arg: "input",
6825
+ type: "json"
6826
+ },
6827
+ {
6828
+ flags: "--confirm-token <token>",
6829
+ description: "confirm token (string).",
6830
+ arg: "confirm_token",
6831
+ type: "string"
6832
+ },
6833
+ {
6834
+ flags: "--idempotency-key <key>",
6835
+ description: "idempotency key (string).",
6836
+ arg: "idempotency_key",
6837
+ type: "string",
6838
+ required: true
6839
+ }
6840
+ ]
6841
+ },
6842
+ {
6843
+ name: "domain verify",
6844
+ tool: "verify_storefront_domain",
6845
+ summary: "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/domains/{hostname}/verify.",
6846
+ options: [
6847
+ {
6848
+ flags: "--storefront-id <id>",
6849
+ description: "storefront id (string).",
6850
+ arg: "storefront_id",
6851
+ type: "string",
6852
+ required: true
6853
+ },
6854
+ {
6855
+ flags: "--hostname <hostname>",
6856
+ description: "hostname (string).",
6857
+ arg: "hostname",
6858
+ type: "string",
6859
+ required: true
6860
+ },
6861
+ {
6862
+ flags: "--input <input>",
6863
+ description: "input (json).",
6864
+ arg: "input",
6865
+ type: "json"
6866
+ },
6867
+ {
6868
+ flags: "--confirm-token <token>",
6869
+ description: "confirm token (string).",
6870
+ arg: "confirm_token",
6871
+ type: "string"
6872
+ },
6873
+ {
6874
+ flags: "--idempotency-key <key>",
6875
+ description: "idempotency key (string).",
6876
+ arg: "idempotency_key",
6877
+ type: "string"
6878
+ }
6879
+ ]
6880
+ },
6881
+ {
6882
+ name: "domain detach",
6883
+ tool: "detach_storefront_domain",
6884
+ summary: "Call the caller's storefront operation: DELETE /v1/storefronts/{storefront_id}/domains/{hostname}.",
6885
+ requireConfirm: true,
6886
+ options: [
6887
+ {
6888
+ flags: "--storefront-id <id>",
6889
+ description: "storefront id (string).",
6890
+ arg: "storefront_id",
6891
+ type: "string",
6892
+ required: true
6893
+ },
6894
+ {
6895
+ flags: "--hostname <hostname>",
6896
+ description: "hostname (string).",
6897
+ arg: "hostname",
6898
+ type: "string",
6899
+ required: true
6900
+ },
6901
+ {
6902
+ flags: "--input <input>",
6903
+ description: "input (json).",
6904
+ arg: "input",
6905
+ type: "json"
6906
+ },
6907
+ {
6908
+ flags: "--confirm-token <token>",
6909
+ description: "confirm token (string).",
6910
+ arg: "confirm_token",
6911
+ type: "string"
6912
+ }
6913
+ ]
6914
+ },
6915
+ {
6916
+ name: "domain dns-plan",
6917
+ tool: "plan_storefront_dns",
6918
+ summary: "Call the caller's storefront operation: POST /v1/storefronts/{storefront_id}/domains/{hostname}/dns-plan.",
6919
+ options: [
6920
+ {
6921
+ flags: "--storefront-id <id>",
6922
+ description: "storefront id (string).",
6923
+ arg: "storefront_id",
6924
+ type: "string",
6925
+ required: true
6926
+ },
6927
+ {
6928
+ flags: "--hostname <hostname>",
6929
+ description: "hostname (string).",
6930
+ arg: "hostname",
6931
+ type: "string",
6932
+ required: true
6933
+ },
6934
+ {
6935
+ flags: "--input <input>",
6936
+ description: "input (json).",
6937
+ arg: "input",
6938
+ type: "json"
6939
+ },
6940
+ {
6941
+ flags: "--confirm-token <token>",
6942
+ description: "confirm token (string).",
6943
+ arg: "confirm_token",
6944
+ type: "string"
6945
+ },
6946
+ {
6947
+ flags: "--idempotency-key <key>",
6948
+ description: "idempotency key (string).",
6949
+ arg: "idempotency_key",
6950
+ type: "string"
6951
+ }
6952
+ ]
6953
+ }
6954
+ ]
6486
6955
  }
6487
6956
  // </generated:catalog-domains>
6488
6957
  ];
@@ -6522,6 +6991,18 @@ function coerce(opt, raw) {
6522
6991
  if (!Number.isFinite(n)) return { error: `${opt.flags} expects a number, got "${String(raw)}"` };
6523
6992
  return { value: n };
6524
6993
  }
6994
+ if (opt.type === "json") {
6995
+ let parsed;
6996
+ try {
6997
+ parsed = JSON.parse(String(raw));
6998
+ } catch {
6999
+ return { error: `${opt.flags} expects a JSON object, got "${String(raw)}"` };
7000
+ }
7001
+ if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) {
7002
+ return { error: `${opt.flags} expects a JSON object, got "${String(raw)}"` };
7003
+ }
7004
+ return { value: parsed };
7005
+ }
6525
7006
  if (opt.type === "string[]" || opt.type === "number[]") {
6526
7007
  const items = String(raw).split(",").map((s) => s.trim()).filter((s) => s.length > 0);
6527
7008
  if (!items.length) return { error: `${opt.flags} expects a comma-separated list, got "${String(raw)}"` };