@carrierllc/mcp 0.13.10 → 0.13.11
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.
|
@@ -1820,7 +1820,7 @@ function storefrontScreen(input) {
|
|
|
1820
1820
|
// package.json
|
|
1821
1821
|
var package_default = {
|
|
1822
1822
|
name: "@carrierllc/mcp",
|
|
1823
|
-
version: "0.13.
|
|
1823
|
+
version: "0.13.11",
|
|
1824
1824
|
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).",
|
|
1825
1825
|
license: "MIT",
|
|
1826
1826
|
author: "Carrier (Lifecycle Innovations Limited)",
|
|
@@ -4373,6 +4373,31 @@ function subscriberSimId(record) {
|
|
|
4373
4373
|
if (nested && typeof nested === "object" && nested !== record) return subscriberSimId(nested);
|
|
4374
4374
|
return void 0;
|
|
4375
4375
|
}
|
|
4376
|
+
function extractSimProviderStatus(data) {
|
|
4377
|
+
const name = (rec) => {
|
|
4378
|
+
if (!rec || typeof rec !== "object") return void 0;
|
|
4379
|
+
const r = rec;
|
|
4380
|
+
for (const key of ["simStatus", "status"]) {
|
|
4381
|
+
const v = r[key];
|
|
4382
|
+
if (typeof v === "string" && v.trim() !== "") return v.trim();
|
|
4383
|
+
}
|
|
4384
|
+
return void 0;
|
|
4385
|
+
};
|
|
4386
|
+
if (!Array.isArray(data)) return name(data);
|
|
4387
|
+
let latest;
|
|
4388
|
+
let firstReadable;
|
|
4389
|
+
for (const entry of data) {
|
|
4390
|
+
const status = name(entry);
|
|
4391
|
+
if (status === void 0) continue;
|
|
4392
|
+
const rec = entry;
|
|
4393
|
+
const end = rec.end;
|
|
4394
|
+
if (end === void 0 || end === null || end === "") return status;
|
|
4395
|
+
firstReadable ??= status;
|
|
4396
|
+
const at = typeof rec.start === "string" || typeof rec.start === "number" ? Date.parse(String(rec.start)) : NaN;
|
|
4397
|
+
if (Number.isFinite(at) && (!latest || at > latest.at)) latest = { status, at };
|
|
4398
|
+
}
|
|
4399
|
+
return latest?.status ?? firstReadable;
|
|
4400
|
+
}
|
|
4376
4401
|
function prepaidPackageRows(data) {
|
|
4377
4402
|
return ocsArray(data, PREPAID_PACKAGE_KEYS);
|
|
4378
4403
|
}
|
|
@@ -4744,6 +4769,7 @@ export {
|
|
|
4744
4769
|
subscriberRows,
|
|
4745
4770
|
extractResellerBalance,
|
|
4746
4771
|
subscriberSimId,
|
|
4772
|
+
extractSimProviderStatus,
|
|
4747
4773
|
prepaidPackageRows,
|
|
4748
4774
|
isActivePackage,
|
|
4749
4775
|
staleActivePackages,
|
|
@@ -4792,4 +4818,4 @@ export {
|
|
|
4792
4818
|
storefrontScreen,
|
|
4793
4819
|
CARRIER_VERSION
|
|
4794
4820
|
};
|
|
4795
|
-
//# sourceMappingURL=chunk-
|
|
4821
|
+
//# sourceMappingURL=chunk-ZLPXWOYO.js.map
|