@carrierllc/mcp 0.13.65 → 0.13.67
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-NMTO5PCG.js → chunk-JSAROE5Z.js} +6 -7
- package/dist/chunk-JSAROE5Z.js.map +1 -0
- package/dist/cli.js +10 -9
- package/dist/cli.js.map +1 -1
- package/dist/index.js +27 -18
- package/dist/index.js.map +1 -1
- package/package.json +3 -4
- package/dist/chunk-NMTO5PCG.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-JSAROE5Z.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",
|
|
@@ -4652,7 +4652,8 @@ var CLI_DOMAINS = [
|
|
|
4652
4652
|
type: "string"
|
|
4653
4653
|
}
|
|
4654
4654
|
],
|
|
4655
|
-
write: true
|
|
4655
|
+
write: true,
|
|
4656
|
+
requireConfirm: true
|
|
4656
4657
|
}
|
|
4657
4658
|
]
|
|
4658
4659
|
},
|
|
@@ -4868,11 +4869,11 @@ var CLI_DOMAINS = [
|
|
|
4868
4869
|
transport: "rest",
|
|
4869
4870
|
restMethod: "POST",
|
|
4870
4871
|
restPath: "/v1/onboarding/ocs-connect",
|
|
4871
|
-
summary: "Connect your own
|
|
4872
|
+
summary: "Connect your own network token (step 2, BYO). Verified against OCS, then stored encrypted; the token is never echoed back.",
|
|
4872
4873
|
options: [
|
|
4873
4874
|
{
|
|
4874
4875
|
flags: "--token <token>",
|
|
4875
|
-
description: "
|
|
4876
|
+
description: "Network API token. A flag lands in shell history \u2014 prefer a leading space, or run this once from a fresh shell.",
|
|
4876
4877
|
arg: "token",
|
|
4877
4878
|
type: "string",
|
|
4878
4879
|
required: true
|
|
@@ -6284,17 +6285,17 @@ var CLI_DOMAINS = [
|
|
|
6284
6285
|
{
|
|
6285
6286
|
name: "credentials",
|
|
6286
6287
|
tool: "credential_status",
|
|
6287
|
-
summary: "Report on the stored
|
|
6288
|
+
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).",
|
|
6288
6289
|
options: []
|
|
6289
6290
|
},
|
|
6290
6291
|
{
|
|
6291
6292
|
name: "rotate",
|
|
6292
6293
|
tool: "rotate_credentials",
|
|
6293
|
-
summary: "Replace the stored
|
|
6294
|
+
summary: "Replace the stored network API token with one you supply.",
|
|
6294
6295
|
options: [
|
|
6295
6296
|
{
|
|
6296
6297
|
flags: "--new-token <token>",
|
|
6297
|
-
description: "New
|
|
6298
|
+
description: "New network API token to encrypt and store.",
|
|
6298
6299
|
arg: "new_token",
|
|
6299
6300
|
type: "string",
|
|
6300
6301
|
required: true
|