@kb-labs/cli-commands 2.60.0 → 2.62.0
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 +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +22 -22
package/dist/index.js
CHANGED
|
@@ -1582,8 +1582,8 @@ var version = defineSystemCommand({
|
|
|
1582
1582
|
finishEvent: "VERSION_FINISHED"
|
|
1583
1583
|
},
|
|
1584
1584
|
async handler(ctx, argv, flags) {
|
|
1585
|
-
const
|
|
1586
|
-
const cliVersion =
|
|
1585
|
+
const cliCtx = ctx.hostContext?.host === "cli" ? ctx.hostContext : void 0;
|
|
1586
|
+
const cliVersion = cliCtx?.cliVersion ?? process.env.CLI_VERSION ?? "0.0.0";
|
|
1587
1587
|
const nodeVersion = process.version;
|
|
1588
1588
|
const platform11 = `${process.platform} ${process.arch}`;
|
|
1589
1589
|
ctx.platform?.logger?.info("Version command executed", {
|
|
@@ -1691,7 +1691,7 @@ var health = defineSystemCommand({
|
|
|
1691
1691
|
items: [
|
|
1692
1692
|
`Status: ${result.healthStatus}`,
|
|
1693
1693
|
`KB Labs: ${snapshot.version.kbLabs}`,
|
|
1694
|
-
`CLI: ${process.env.CLI_VERSION ??
|
|
1694
|
+
`CLI: ${ctx.hostContext?.host === "cli" ? ctx.hostContext.cliVersion : process.env.CLI_VERSION ?? "0.0.0"}`,
|
|
1695
1695
|
`REST: ${snapshot.version.rest}`,
|
|
1696
1696
|
`Git: ${gitInfo}`
|
|
1697
1697
|
]
|