@carrierllc/mcp 0.13.64 → 0.13.66

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.
@@ -1600,13 +1600,13 @@ function fleetScreen(input) {
1600
1600
  }
1601
1601
  ];
1602
1602
  const hasPerAccountCounts = input.accounts.some(
1603
- (a) => a.active + a.suspended + a.inventory + a.other > 0
1603
+ (a) => !a.noData && a.active + a.suspended + a.inventory + a.other > 0
1604
1604
  );
1605
1605
  if (hasPerAccountCounts) {
1606
1606
  sections.push({
1607
1607
  kind: "bars",
1608
1608
  title: "eSIMs by account",
1609
- items: [...input.accounts].sort((a, b) => b.active + b.inventory - (a.active + a.inventory)).slice(0, 10).map((a) => ({
1609
+ items: input.accounts.filter((a) => !a.noData).sort((a, b) => b.active + b.inventory - (a.active + a.inventory)).slice(0, 10).map((a) => ({
1610
1610
  label: a.name,
1611
1611
  value: a.active + a.suspended + a.inventory + a.other,
1612
1612
  hint: `${a.active} active`,
@@ -1620,7 +1620,9 @@ function fleetScreen(input) {
1620
1620
  columns: ["Account", "Balance", "Active", "Inventory"],
1621
1621
  numeric: [1, 2, 3],
1622
1622
  empty: "No accounts under this reseller.",
1623
- rows: input.accounts.map((a) => [a.name, money(a.balance), a.active, a.inventory])
1623
+ rows: input.accounts.map(
1624
+ (a) => a.noData ? [a.name, money(a.balance), "no data", "no data"] : [a.name, money(a.balance), a.active, a.inventory]
1625
+ )
1624
1626
  });
1625
1627
  if (criticals.length > 0) {
1626
1628
  sections.push({
@@ -1913,8 +1915,8 @@ function storefrontScreen(input) {
1913
1915
  // package.json
1914
1916
  var package_default = {
1915
1917
  name: "@carrierllc/mcp",
1916
- version: "0.13.64",
1917
- description: "Carrier MCP \u2014 natural-language control of MVNO/eSIM fleets via eSIMVault OCS. Stdio mode for direct integration with Claude Desktop, Cursor, Windsurf, and MCP-compatible clients. Ships the `carrier` CLI (plugin install + white-label eSIM storefront scaffold).",
1918
+ version: "0.13.66",
1919
+ description: "Carrier MCP \u2014 natural-language control of MVNO/eSIM fleets via the network OCS. Stdio mode for direct integration with Claude Desktop, Cursor, Windsurf, and MCP-compatible clients. Ships the `carrier` CLI (plugin install + white-label eSIM storefront scaffold).",
1918
1920
  license: "MIT",
1919
1921
  author: "Carrier (Lifecycle Innovations Limited)",
1920
1922
  homepage: "https://mcp.carrier.llc",
@@ -1987,8 +1989,7 @@ var package_default = {
1987
1989
  "esim",
1988
1990
  "mvno",
1989
1991
  "carrier",
1990
- "fleet-management",
1991
- "esimvault"
1992
+ "fleet-management"
1992
1993
  ],
1993
1994
  engines: {
1994
1995
  node: ">=22"
@@ -2005,7 +2006,7 @@ var package_default = {
2005
2006
  // src/version.ts
2006
2007
  var CARRIER_VERSION = package_default.version;
2007
2008
 
2008
- // ../../packages/ocs-client/dist/chunk-PYQ6XDVV.js
2009
+ // ../../packages/ocs-client/dist/chunk-72GV2KT2.js
2009
2010
  var OCS_MAX_USAGE_WINDOW_DAYS = 7;
2010
2011
  function clampUsagePeriod(start, end, maxDays = OCS_MAX_USAGE_WINDOW_DAYS) {
2011
2012
  const endMs = Date.parse(`${end}T00:00:00Z`);
@@ -2294,6 +2295,7 @@ function extractEsimStatusByAccount(json) {
2294
2295
  const rec = account ?? {};
2295
2296
  const row = emptyEsimStatusCounts();
2296
2297
  const id = Number(rec.id ?? rec.accountId);
2298
+ if (rec.noData === true) row.noData = true;
2297
2299
  if (rec.id !== void 0 || rec.accountId !== void 0) {
2298
2300
  if (Number.isFinite(id)) row.id = id;
2299
2301
  }
@@ -2835,7 +2837,7 @@ function packageTemplateModifyFromToolJson(changes, method) {
2835
2837
  return packageTemplateModifyParams(body, method);
2836
2838
  }
2837
2839
 
2838
- // ../../packages/ocs-client/dist/chunk-QGJDLVG3.js
2840
+ // ../../packages/ocs-client/dist/chunk-6YTL46MO.js
2839
2841
  import { z } from "zod";
2840
2842
  var OCS_V1_METHODS = /* @__PURE__ */ new Set([
2841
2843
  "getResellerInfo",
@@ -3184,7 +3186,7 @@ async function runWithBudget(method, attempt, budget = ocsBudgetFor(method)) {
3184
3186
  throw lastTimeout ?? new OcsTimeoutError(method, budget.attemptMs, budget.totalMs, Math.max(attempts, 1));
3185
3187
  }
3186
3188
 
3187
- // ../../packages/ocs-client/dist/chunk-X5WHTGYA.js
3189
+ // ../../packages/ocs-client/dist/chunk-ZGPZMTHL.js
3188
3190
  var RATE_LIMIT = 10;
3189
3191
  var WINDOW_MS = 1e3;
3190
3192
  var windows = /* @__PURE__ */ new Map();
@@ -3513,7 +3515,7 @@ function ocsErrorMessage(code, rawMsg, rawBody) {
3513
3515
  switch (code) {
3514
3516
  case 9:
3515
3517
  return {
3516
- message: "OCS source IP not authorised (code 9 SRC_IP_NOT_AUTHORISED). This reseller token has an IP allowlist configured on eSIMVault. Route traffic through the fixed-egress proxy (CARRIER_OCS_PROXY_URL / fixedEgress) and ensure its static IP is whitelisted.",
3518
+ message: "OCS source IP not authorised (code 9 SRC_IP_NOT_AUTHORISED). This reseller token has an IP allowlist configured on the network portal. Route traffic through the fixed-egress proxy (CARRIER_OCS_PROXY_URL / fixedEgress) and ensure its static IP is whitelisted.",
3517
3519
  details: {}
3518
3520
  };
3519
3521
  case 12:
@@ -6146,4 +6148,4 @@ export {
6146
6148
  package_default,
6147
6149
  CARRIER_VERSION
6148
6150
  };
6149
- //# sourceMappingURL=chunk-2S75JA45.js.map
6151
+ //# sourceMappingURL=chunk-WNEXPJJY.js.map