@robinmordasiewicz/f5xc-xcsh 2.0.21-2601091357 → 2.0.21-2601091656
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/index.js +20 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -46994,8 +46994,8 @@ function getLogoModeFromEnv(envPrefix) {
|
|
|
46994
46994
|
var CLI_NAME = "xcsh";
|
|
46995
46995
|
var CLI_FULL_NAME = "F5 Distributed Cloud Shell";
|
|
46996
46996
|
function getVersion() {
|
|
46997
|
-
if ("v2.0.21-
|
|
46998
|
-
return "v2.0.21-
|
|
46997
|
+
if ("v2.0.21-2601091656") {
|
|
46998
|
+
return "v2.0.21-2601091656";
|
|
46999
46999
|
}
|
|
47000
47000
|
if (process.env.XCSH_VERSION) {
|
|
47001
47001
|
return process.env.XCSH_VERSION;
|
|
@@ -74587,7 +74587,6 @@ var listCommand = {
|
|
|
74587
74587
|
description: "Display all saved connection profiles with their tenant URLs and authentication types. Highlights the currently active profile for easy identification when managing multiple tenants.",
|
|
74588
74588
|
descriptionShort: "List all saved profiles",
|
|
74589
74589
|
descriptionMedium: "Show all profiles with tenant URLs, auth types, and active status indicator.",
|
|
74590
|
-
aliases: ["ls"],
|
|
74591
74590
|
async execute(args, session) {
|
|
74592
74591
|
const { options } = parseDomainOutputFlags(
|
|
74593
74592
|
args,
|
|
@@ -76740,7 +76739,6 @@ var statusCommand = {
|
|
|
76740
76739
|
descriptionShort: "Get overall cloud status indicator",
|
|
76741
76740
|
descriptionMedium: "Check overall service health status. Use --quiet for exit code suitable for scripts.",
|
|
76742
76741
|
usage: "[--quiet]",
|
|
76743
|
-
aliases: ["st"],
|
|
76744
76742
|
async execute(args, session) {
|
|
76745
76743
|
const { format, noColor, spec, filteredArgs } = parseOutputArgs(
|
|
76746
76744
|
args,
|
|
@@ -76792,7 +76790,6 @@ var summaryCommand = {
|
|
|
76792
76790
|
descriptionShort: "Get complete status summary",
|
|
76793
76791
|
descriptionMedium: "Show combined overview of health, components, incidents, and maintenance windows.",
|
|
76794
76792
|
usage: "[--brief]",
|
|
76795
|
-
aliases: ["sum"],
|
|
76796
76793
|
async execute(args, session) {
|
|
76797
76794
|
const { format, noColor, spec, filteredArgs } = parseOutputArgs(
|
|
76798
76795
|
args,
|
|
@@ -76832,7 +76829,6 @@ var componentsCommand = {
|
|
|
76832
76829
|
descriptionShort: "List all components and status",
|
|
76833
76830
|
descriptionMedium: "Display service component health. Use --degraded-only to show only affected components.",
|
|
76834
76831
|
usage: "[--degraded-only]",
|
|
76835
|
-
aliases: ["comp"],
|
|
76836
76832
|
async execute(args, session) {
|
|
76837
76833
|
const { format, noColor, spec, filteredArgs } = parseOutputArgs(
|
|
76838
76834
|
args,
|
|
@@ -76889,7 +76885,6 @@ var incidentsCommand = {
|
|
|
76889
76885
|
descriptionShort: "List active and recent incidents",
|
|
76890
76886
|
descriptionMedium: "Display incidents with impact levels and updates. Use --active-only for ongoing issues.",
|
|
76891
76887
|
usage: "[--active-only]",
|
|
76892
|
-
aliases: ["inc"],
|
|
76893
76888
|
async execute(args, session) {
|
|
76894
76889
|
const { format, noColor, spec, filteredArgs } = parseOutputArgs(
|
|
76895
76890
|
args,
|
|
@@ -76942,7 +76937,6 @@ var maintenanceCommand = {
|
|
|
76942
76937
|
descriptionShort: "List scheduled maintenance windows",
|
|
76943
76938
|
descriptionMedium: "Show maintenance schedules and timing. Use --upcoming for future windows only.",
|
|
76944
76939
|
usage: "[--upcoming]",
|
|
76945
|
-
aliases: ["maint"],
|
|
76946
76940
|
async execute(args, session) {
|
|
76947
76941
|
const { format, noColor, spec, filteredArgs } = parseOutputArgs(
|
|
76948
76942
|
args,
|
|
@@ -77112,7 +77106,7 @@ var cloudstatusDomain = {
|
|
|
77112
77106
|
]),
|
|
77113
77107
|
subcommands: /* @__PURE__ */ new Map()
|
|
77114
77108
|
};
|
|
77115
|
-
var cloudstatusAliases = [
|
|
77109
|
+
var cloudstatusAliases = [];
|
|
77116
77110
|
|
|
77117
77111
|
// src/completion/registry.ts
|
|
77118
77112
|
var CompletionRegistry = class {
|
|
@@ -77199,6 +77193,7 @@ var CompletionRegistry = class {
|
|
|
77199
77193
|
getDomainSuggestions(prefix = "") {
|
|
77200
77194
|
const suggestions = [];
|
|
77201
77195
|
const lowerPrefix = prefix.toLowerCase();
|
|
77196
|
+
const addedAliases = /* @__PURE__ */ new Set();
|
|
77202
77197
|
for (const node of this.tree.values()) {
|
|
77203
77198
|
if (node.hidden) continue;
|
|
77204
77199
|
if (!prefix || node.name.toLowerCase().startsWith(lowerPrefix)) {
|
|
@@ -77216,10 +77211,21 @@ var CompletionRegistry = class {
|
|
|
77216
77211
|
description: `Alias for ${node.name}`,
|
|
77217
77212
|
category: "domain"
|
|
77218
77213
|
});
|
|
77214
|
+
addedAliases.add(alias);
|
|
77219
77215
|
}
|
|
77220
77216
|
}
|
|
77221
77217
|
}
|
|
77222
77218
|
}
|
|
77219
|
+
for (const [alias, canonicalName] of this.aliases.entries()) {
|
|
77220
|
+
if (addedAliases.has(alias)) continue;
|
|
77221
|
+
if (!prefix || alias.toLowerCase().startsWith(lowerPrefix)) {
|
|
77222
|
+
suggestions.push({
|
|
77223
|
+
text: alias,
|
|
77224
|
+
description: `Alias for ${canonicalName}`,
|
|
77225
|
+
category: "domain"
|
|
77226
|
+
});
|
|
77227
|
+
}
|
|
77228
|
+
}
|
|
77223
77229
|
return suggestions.sort((a, b) => a.text.localeCompare(b.text));
|
|
77224
77230
|
}
|
|
77225
77231
|
/**
|
|
@@ -78920,15 +78926,7 @@ var aiServicesDomain = {
|
|
|
78920
78926
|
]),
|
|
78921
78927
|
subcommands: /* @__PURE__ */ new Map([["eval", evalSubcommands]])
|
|
78922
78928
|
};
|
|
78923
|
-
var aiServicesAliases = [
|
|
78924
|
-
"ai",
|
|
78925
|
-
"genai",
|
|
78926
|
-
"assistant",
|
|
78927
|
-
"query",
|
|
78928
|
-
"ask",
|
|
78929
|
-
"q",
|
|
78930
|
-
"chat"
|
|
78931
|
-
];
|
|
78929
|
+
var aiServicesAliases = [];
|
|
78932
78930
|
|
|
78933
78931
|
// src/domains/subscription/client.ts
|
|
78934
78932
|
var SubscriptionClient = class {
|
|
@@ -79404,7 +79402,6 @@ var showCommand3 = {
|
|
|
79404
79402
|
descriptionShort: "Display subscription overview",
|
|
79405
79403
|
descriptionMedium: "Show subscription tier, active addons, quota usage summary, and current billing status.",
|
|
79406
79404
|
usage: "",
|
|
79407
|
-
aliases: ["overview", "info"],
|
|
79408
79405
|
async execute(args, session) {
|
|
79409
79406
|
const { format, noColor, spec } = parseOutputArgs2(args, session);
|
|
79410
79407
|
if (spec) {
|
|
@@ -79627,7 +79624,6 @@ var addonListCommand = {
|
|
|
79627
79624
|
descriptionShort: "List addon services",
|
|
79628
79625
|
descriptionMedium: "Display all addon services with status and access information. Use --subscribed for active only.",
|
|
79629
79626
|
usage: "[--subscribed]",
|
|
79630
|
-
aliases: ["ls"],
|
|
79631
79627
|
async execute(args, session) {
|
|
79632
79628
|
const { format, noColor, spec, filteredArgs } = parseOutputArgs2(
|
|
79633
79629
|
args,
|
|
@@ -80292,7 +80288,6 @@ var reportSummaryCommand = {
|
|
|
80292
80288
|
descriptionShort: "Generate subscription report",
|
|
80293
80289
|
descriptionMedium: "Create comprehensive report with plan, addons, quotas, usage, and billing data.",
|
|
80294
80290
|
usage: "",
|
|
80295
|
-
aliases: ["full"],
|
|
80296
80291
|
async execute(args, session) {
|
|
80297
80292
|
const { format, noColor, spec } = parseOutputArgs2(args, session);
|
|
80298
80293
|
if (spec) {
|
|
@@ -80464,7 +80459,7 @@ var subscriptionDomain = {
|
|
|
80464
80459
|
["report", reportSubcommands]
|
|
80465
80460
|
])
|
|
80466
80461
|
};
|
|
80467
|
-
var subscriptionAliases = [
|
|
80462
|
+
var subscriptionAliases = [];
|
|
80468
80463
|
|
|
80469
80464
|
// src/domains/index.ts
|
|
80470
80465
|
customDomains.register(loginDomain);
|
|
@@ -81091,7 +81086,8 @@ var Completer = class {
|
|
|
81091
81086
|
return this.getRootContextSuggestions();
|
|
81092
81087
|
}
|
|
81093
81088
|
const firstArg = parsed.args[0]?.toLowerCase() ?? "";
|
|
81094
|
-
|
|
81089
|
+
const isStillTypingDomain = parsed.args.length === 1 && parsed.currentWord === firstArg;
|
|
81090
|
+
if (isCustomDomain(firstArg) && parsed.args.length >= 1 && !isStillTypingDomain) {
|
|
81095
81091
|
return await this.getCustomDomainCompletions(
|
|
81096
81092
|
firstArg,
|
|
81097
81093
|
parsed.args.slice(1),
|
|
@@ -81148,7 +81144,7 @@ var Completer = class {
|
|
|
81148
81144
|
let suggestions;
|
|
81149
81145
|
if (parsed.isEscapedToRoot) {
|
|
81150
81146
|
const firstArg2 = parsed.args[0];
|
|
81151
|
-
if (parsed.args.length > 0 && firstArg2) {
|
|
81147
|
+
if (parsed.args.length > 0 && firstArg2 && !isStillTypingDomain) {
|
|
81152
81148
|
const targetDomain = firstArg2.toLowerCase();
|
|
81153
81149
|
if (completionRegistry.has(targetDomain)) {
|
|
81154
81150
|
const domainNode = completionRegistry.get(targetDomain);
|