@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.
- package/dist/{chunk-2S75JA45.js → chunk-WNEXPJJY.js} +14 -12
- package/dist/chunk-WNEXPJJY.js.map +1 -0
- package/dist/cli.js +14 -8
- package/dist/cli.js.map +1 -1
- package/dist/index.js +26 -18
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
- package/dist/chunk-2S75JA45.js.map +0 -1
package/dist/cli.js
CHANGED
|
@@ -45,7 +45,7 @@ import {
|
|
|
45
45
|
verifyStorefront,
|
|
46
46
|
walletScreen,
|
|
47
47
|
which
|
|
48
|
-
} from "./chunk-
|
|
48
|
+
} from "./chunk-WNEXPJJY.js";
|
|
49
49
|
import {
|
|
50
50
|
copyTree,
|
|
51
51
|
exists,
|
|
@@ -1523,7 +1523,7 @@ function facts(value) {
|
|
|
1523
1523
|
|
|
1524
1524
|
// src/cli/lib/ask.ts
|
|
1525
1525
|
var OCS_TOKEN_AUTH_HINTS = [
|
|
1526
|
-
"Confirm ESIMVAULT_API_TOKEN / CARRIER_OCS_API_TOKEN is a valid
|
|
1526
|
+
"Confirm ESIMVAULT_API_TOKEN / CARRIER_OCS_API_TOKEN is a valid network reseller token",
|
|
1527
1527
|
"An OCS token is read-only on Carrier MCP. For writes: export CARRIER_API_KEY=ak_\u2026 (it outranks the OCS token), or unset ESIMVAULT_API_TOKEN and CARRIER_OCS_API_TOKEN, then carrier login"
|
|
1528
1528
|
];
|
|
1529
1529
|
var DEFAULT_ERROR_HINTS = [
|
|
@@ -1860,7 +1860,7 @@ async function callRestEndpoint(method, path, args, opts = {}) {
|
|
|
1860
1860
|
return {
|
|
1861
1861
|
ok: false,
|
|
1862
1862
|
text: withNextStep(
|
|
1863
|
-
ocsTokenOnly() ? "Not signed in.
|
|
1863
|
+
ocsTokenOnly() ? "Not signed in. A network/OCS token is set, but the Carrier API only accepts Carrier credentials." : "Not signed in.",
|
|
1864
1864
|
[
|
|
1865
1865
|
"Sign in from this terminal: carrier login",
|
|
1866
1866
|
"No account yet? carrier open signup",
|
|
@@ -4868,11 +4868,11 @@ var CLI_DOMAINS = [
|
|
|
4868
4868
|
transport: "rest",
|
|
4869
4869
|
restMethod: "POST",
|
|
4870
4870
|
restPath: "/v1/onboarding/ocs-connect",
|
|
4871
|
-
summary: "Connect your own
|
|
4871
|
+
summary: "Connect your own network token (step 2, BYO). Verified against OCS, then stored encrypted; the token is never echoed back.",
|
|
4872
4872
|
options: [
|
|
4873
4873
|
{
|
|
4874
4874
|
flags: "--token <token>",
|
|
4875
|
-
description: "
|
|
4875
|
+
description: "Network API token. A flag lands in shell history \u2014 prefer a leading space, or run this once from a fresh shell.",
|
|
4876
4876
|
arg: "token",
|
|
4877
4877
|
type: "string",
|
|
4878
4878
|
required: true
|
|
@@ -5104,6 +5104,12 @@ var CLI_DOMAINS = [
|
|
|
5104
5104
|
arg: "external_ref",
|
|
5105
5105
|
type: "string",
|
|
5106
5106
|
required: true
|
|
5107
|
+
},
|
|
5108
|
+
{
|
|
5109
|
+
flags: "--entitlement-token <token>",
|
|
5110
|
+
description: "The right issued for this external_ref by create_benefit_entitlement, 1 to 200 characters. Required when the campaign requires a right.",
|
|
5111
|
+
arg: "entitlement_token",
|
|
5112
|
+
type: "string"
|
|
5107
5113
|
}
|
|
5108
5114
|
]
|
|
5109
5115
|
},
|
|
@@ -6278,17 +6284,17 @@ var CLI_DOMAINS = [
|
|
|
6278
6284
|
{
|
|
6279
6285
|
name: "credentials",
|
|
6280
6286
|
tool: "credential_status",
|
|
6281
|
-
summary: "Report on the stored
|
|
6287
|
+
summary: "Report on the stored network credential without changing it: whether a token is present, whether it is encrypted, how old it is, and whether rotation is recommended (over 90 days).",
|
|
6282
6288
|
options: []
|
|
6283
6289
|
},
|
|
6284
6290
|
{
|
|
6285
6291
|
name: "rotate",
|
|
6286
6292
|
tool: "rotate_credentials",
|
|
6287
|
-
summary: "Replace the stored
|
|
6293
|
+
summary: "Replace the stored network API token with one you supply.",
|
|
6288
6294
|
options: [
|
|
6289
6295
|
{
|
|
6290
6296
|
flags: "--new-token <token>",
|
|
6291
|
-
description: "New
|
|
6297
|
+
description: "New network API token to encrypt and store.",
|
|
6292
6298
|
arg: "new_token",
|
|
6293
6299
|
type: "string",
|
|
6294
6300
|
required: true
|