@carrierllc/mcp 0.10.0 → 0.10.2
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/{chunk-DUAENMJE.js → chunk-PYXTCG4L.js} +668 -8
- package/dist/chunk-PYXTCG4L.js.map +1 -0
- package/dist/cli.js +40 -13
- package/dist/cli.js.map +1 -1
- package/dist/index.js +287 -118
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/plugin/.claude-plugin/marketplace.json +2 -2
- package/plugin/carrier/.claude-plugin/plugin.json +1 -1
- package/plugin/carrier/README.md +7 -3
- package/plugin/carrier/{commands/billing.md → skills/billing/SKILL.md} +2 -1
- package/plugin/carrier/{commands/churn.md → skills/churn/SKILL.md} +2 -1
- package/plugin/carrier/{commands/credits.md → skills/credits/SKILL.md} +2 -1
- package/plugin/carrier/{commands/esim-status.md → skills/esim-status/SKILL.md} +2 -1
- package/plugin/carrier/{commands/fleet.md → skills/fleet/SKILL.md} +2 -1
- package/plugin/carrier/{commands/greenzone.md → skills/greenzone/SKILL.md} +2 -1
- package/plugin/carrier/{commands/onboard.md → skills/onboard/SKILL.md} +2 -1
- package/plugin/carrier/{commands/packages.md → skills/packages/SKILL.md} +2 -1
- package/plugin/carrier/{commands/provision.md → skills/provision/SKILL.md} +2 -1
- package/plugin/carrier/{commands/sms.md → skills/sms/SKILL.md} +2 -1
- package/plugin/carrier/{commands/status.md → skills/status/SKILL.md} +2 -1
- package/plugin/carrier/{commands/storefront.md → skills/storefront/SKILL.md} +2 -1
- package/plugin/carrier/{commands/subscribers.md → skills/subscribers/SKILL.md} +2 -1
- package/plugin/carrier/{commands/usage.md → skills/usage/SKILL.md} +2 -1
- package/plugin/carrier/{commands/wallet.md → skills/wallet/SKILL.md} +2 -1
- package/dist/chunk-DUAENMJE.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
verifyStorefront,
|
|
40
40
|
walletScreen,
|
|
41
41
|
which
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-PYXTCG4L.js";
|
|
43
43
|
import {
|
|
44
44
|
copyTree,
|
|
45
45
|
exists,
|
|
@@ -381,12 +381,13 @@ function buildDashScreen(domain, payload) {
|
|
|
381
381
|
});
|
|
382
382
|
case "wallet": {
|
|
383
383
|
const p4 = payload ?? {};
|
|
384
|
+
const eur = (value) => value === void 0 || value === null ? void 0 : num(value) / 100;
|
|
384
385
|
return walletScreen({
|
|
385
|
-
balance:
|
|
386
|
-
currency: str(p4.currency, ""),
|
|
386
|
+
balance: eur(p4.balance_eur_cents ?? p4.balance) ?? 0,
|
|
387
|
+
currency: str(p4.currency, "\u20AC"),
|
|
387
388
|
autoTopupEnabled: Boolean(p4.autoTopupEnabled ?? p4.auto_topup_enabled),
|
|
388
|
-
threshold: p4.
|
|
389
|
-
credits: p4.credits === void 0 ? void 0 : num(p4.credits)
|
|
389
|
+
threshold: eur(p4.auto_topup_threshold_cents ?? p4.threshold),
|
|
390
|
+
credits: p4.credits === void 0 || p4.credits === null ? void 0 : num(p4.credits)
|
|
390
391
|
});
|
|
391
392
|
}
|
|
392
393
|
case "greenzone":
|
|
@@ -1981,6 +1982,12 @@ var CLI_DOMAINS = [
|
|
|
1981
1982
|
description: "New end date, ISO 8601 (e.g. 2026-09-30)",
|
|
1982
1983
|
arg: "end_date",
|
|
1983
1984
|
type: "string"
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
flags: "--comment <text>",
|
|
1988
|
+
description: "Audit note stored on the package (OCS requires one; a default is sent)",
|
|
1989
|
+
arg: "comment",
|
|
1990
|
+
type: "string"
|
|
1984
1991
|
}
|
|
1985
1992
|
],
|
|
1986
1993
|
write: true,
|
|
@@ -2239,23 +2246,43 @@ var CLI_DOMAINS = [
|
|
|
2239
2246
|
{
|
|
2240
2247
|
name: "move-subscribers",
|
|
2241
2248
|
tool: "move_subscriber_range_to_account",
|
|
2242
|
-
summary: "Move a contiguous ICCID range of subscribers to another account.",
|
|
2249
|
+
summary: "Move a contiguous IMSI or ICCID range of subscribers to another account.",
|
|
2243
2250
|
options: [
|
|
2244
2251
|
{
|
|
2245
|
-
flags: "--
|
|
2246
|
-
description: "
|
|
2247
|
-
arg: "
|
|
2252
|
+
flags: "--src-account-id <id>",
|
|
2253
|
+
description: "Source account ID from `carrier accounts list`",
|
|
2254
|
+
arg: "srcAccountId",
|
|
2255
|
+
type: "number",
|
|
2256
|
+
required: true
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
flags: "--dest-account <id>",
|
|
2260
|
+
description: "Destination account ID from `carrier accounts list`",
|
|
2261
|
+
arg: "destAccount",
|
|
2262
|
+
type: "number",
|
|
2263
|
+
required: true
|
|
2264
|
+
},
|
|
2265
|
+
{
|
|
2266
|
+
flags: "--range-type <type>",
|
|
2267
|
+
description: "Whether --range-start/--range-end are IMSI or ICCID ('IMSI' | 'ICCID')",
|
|
2268
|
+
arg: "rangeType",
|
|
2248
2269
|
type: "string",
|
|
2249
2270
|
required: true
|
|
2250
2271
|
},
|
|
2251
2272
|
{
|
|
2252
|
-
flags: "--
|
|
2253
|
-
description: "
|
|
2254
|
-
arg: "
|
|
2273
|
+
flags: "--range-start <value>",
|
|
2274
|
+
description: "Inclusive start of the identifier range",
|
|
2275
|
+
arg: "rangeStart",
|
|
2255
2276
|
type: "string",
|
|
2256
2277
|
required: true
|
|
2257
2278
|
},
|
|
2258
|
-
{
|
|
2279
|
+
{
|
|
2280
|
+
flags: "--range-end <value>",
|
|
2281
|
+
description: "Inclusive end of the identifier range",
|
|
2282
|
+
arg: "rangeEnd",
|
|
2283
|
+
type: "string",
|
|
2284
|
+
required: true
|
|
2285
|
+
}
|
|
2259
2286
|
],
|
|
2260
2287
|
write: true
|
|
2261
2288
|
}
|