@robinmordasiewicz/f5xc-xcsh 2.0.21-2601090458 → 2.0.21-2601090626
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 +30 -4
- 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-2601090626") {
|
|
46998
|
+
return "v2.0.21-2601090626";
|
|
46999
46999
|
}
|
|
47000
47000
|
if (process.env.XCSH_VERSION) {
|
|
47001
47001
|
return process.env.XCSH_VERSION;
|
|
@@ -78908,7 +78908,15 @@ var aiServicesDomain = {
|
|
|
78908
78908
|
]),
|
|
78909
78909
|
subcommands: /* @__PURE__ */ new Map([["eval", evalSubcommands]])
|
|
78910
78910
|
};
|
|
78911
|
-
var aiServicesAliases = [
|
|
78911
|
+
var aiServicesAliases = [
|
|
78912
|
+
"ai",
|
|
78913
|
+
"genai",
|
|
78914
|
+
"assistant",
|
|
78915
|
+
"query",
|
|
78916
|
+
"ask",
|
|
78917
|
+
"q",
|
|
78918
|
+
"chat"
|
|
78919
|
+
];
|
|
78912
78920
|
|
|
78913
78921
|
// src/domains/subscription/client.ts
|
|
78914
78922
|
var SubscriptionClient = class {
|
|
@@ -82303,7 +82311,25 @@ async function handleDirectNavigation(cmd, ctx, session) {
|
|
|
82303
82311
|
async function handleDomainNavigation(domain, args, ctx, session) {
|
|
82304
82312
|
if (isCustomDomain(domain)) {
|
|
82305
82313
|
const canonicalDomain = resolveDomainAlias(domain);
|
|
82306
|
-
|
|
82314
|
+
let effectiveArgs = args;
|
|
82315
|
+
if (domain !== canonicalDomain) {
|
|
82316
|
+
const domainDef = customDomains.get(canonicalDomain);
|
|
82317
|
+
if (domainDef) {
|
|
82318
|
+
let isCommand = domainDef.commands.has(domain);
|
|
82319
|
+
if (!isCommand) {
|
|
82320
|
+
for (const cmd of domainDef.commands.values()) {
|
|
82321
|
+
if (cmd.aliases?.includes(domain)) {
|
|
82322
|
+
isCommand = true;
|
|
82323
|
+
break;
|
|
82324
|
+
}
|
|
82325
|
+
}
|
|
82326
|
+
}
|
|
82327
|
+
if (isCommand) {
|
|
82328
|
+
effectiveArgs = [domain, ...args];
|
|
82329
|
+
}
|
|
82330
|
+
}
|
|
82331
|
+
}
|
|
82332
|
+
return customDomains.execute(canonicalDomain, effectiveArgs, session);
|
|
82307
82333
|
}
|
|
82308
82334
|
const firstArg = args[0]?.toLowerCase() ?? "";
|
|
82309
82335
|
if (firstArg === "--help" || firstArg === "-h" || firstArg === "help") {
|