@carrierllc/mcp 0.13.64 → 0.13.65
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:
|
|
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(
|
|
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,7 +1915,7 @@ function storefrontScreen(input) {
|
|
|
1913
1915
|
// package.json
|
|
1914
1916
|
var package_default = {
|
|
1915
1917
|
name: "@carrierllc/mcp",
|
|
1916
|
-
version: "0.13.
|
|
1918
|
+
version: "0.13.65",
|
|
1917
1919
|
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
1920
|
license: "MIT",
|
|
1919
1921
|
author: "Carrier (Lifecycle Innovations Limited)",
|
|
@@ -2005,7 +2007,7 @@ var package_default = {
|
|
|
2005
2007
|
// src/version.ts
|
|
2006
2008
|
var CARRIER_VERSION = package_default.version;
|
|
2007
2009
|
|
|
2008
|
-
// ../../packages/ocs-client/dist/chunk-
|
|
2010
|
+
// ../../packages/ocs-client/dist/chunk-72GV2KT2.js
|
|
2009
2011
|
var OCS_MAX_USAGE_WINDOW_DAYS = 7;
|
|
2010
2012
|
function clampUsagePeriod(start, end, maxDays = OCS_MAX_USAGE_WINDOW_DAYS) {
|
|
2011
2013
|
const endMs = Date.parse(`${end}T00:00:00Z`);
|
|
@@ -2294,6 +2296,7 @@ function extractEsimStatusByAccount(json) {
|
|
|
2294
2296
|
const rec = account ?? {};
|
|
2295
2297
|
const row = emptyEsimStatusCounts();
|
|
2296
2298
|
const id = Number(rec.id ?? rec.accountId);
|
|
2299
|
+
if (rec.noData === true) row.noData = true;
|
|
2297
2300
|
if (rec.id !== void 0 || rec.accountId !== void 0) {
|
|
2298
2301
|
if (Number.isFinite(id)) row.id = id;
|
|
2299
2302
|
}
|
|
@@ -2835,7 +2838,7 @@ function packageTemplateModifyFromToolJson(changes, method) {
|
|
|
2835
2838
|
return packageTemplateModifyParams(body, method);
|
|
2836
2839
|
}
|
|
2837
2840
|
|
|
2838
|
-
// ../../packages/ocs-client/dist/chunk-
|
|
2841
|
+
// ../../packages/ocs-client/dist/chunk-6YTL46MO.js
|
|
2839
2842
|
import { z } from "zod";
|
|
2840
2843
|
var OCS_V1_METHODS = /* @__PURE__ */ new Set([
|
|
2841
2844
|
"getResellerInfo",
|
|
@@ -3184,7 +3187,7 @@ async function runWithBudget(method, attempt, budget = ocsBudgetFor(method)) {
|
|
|
3184
3187
|
throw lastTimeout ?? new OcsTimeoutError(method, budget.attemptMs, budget.totalMs, Math.max(attempts, 1));
|
|
3185
3188
|
}
|
|
3186
3189
|
|
|
3187
|
-
// ../../packages/ocs-client/dist/chunk-
|
|
3190
|
+
// ../../packages/ocs-client/dist/chunk-5AW3XRIO.js
|
|
3188
3191
|
var RATE_LIMIT = 10;
|
|
3189
3192
|
var WINDOW_MS = 1e3;
|
|
3190
3193
|
var windows = /* @__PURE__ */ new Map();
|
|
@@ -6146,4 +6149,4 @@ export {
|
|
|
6146
6149
|
package_default,
|
|
6147
6150
|
CARRIER_VERSION
|
|
6148
6151
|
};
|
|
6149
|
-
//# sourceMappingURL=chunk-
|
|
6152
|
+
//# sourceMappingURL=chunk-NMTO5PCG.js.map
|