@slayzone/cli 0.37.1 → 0.37.2
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/slay.js +16 -14
- package/package.json +1 -1
package/dist/slay.js
CHANGED
|
@@ -16682,7 +16682,6 @@ function flagTarget() {
|
|
|
16682
16682
|
return hubOverride ? { ...hubOverride, source: "flag" } : null;
|
|
16683
16683
|
}
|
|
16684
16684
|
function relayTarget() {
|
|
16685
|
-
if (!isTaskTerminal()) return null;
|
|
16686
16685
|
const address = process.env.SLAYZONE_CLI_RELAY_ADDRESS;
|
|
16687
16686
|
const token = process.env.SLAYZONE_CLI_RELAY_TOKEN;
|
|
16688
16687
|
if (!address && !token) return null;
|
|
@@ -42743,19 +42742,22 @@ function date4(params) {
|
|
|
42743
42742
|
return _coercedDate(ZodDate, params);
|
|
42744
42743
|
}
|
|
42745
42744
|
|
|
42745
|
+
// ../../domains/computers/src/shared/computer-labels.ts
|
|
42746
|
+
var COMPUTER_UPGRADE_PHASES = [
|
|
42747
|
+
"checking",
|
|
42748
|
+
"installing",
|
|
42749
|
+
"waiting-for-idle",
|
|
42750
|
+
"restarting",
|
|
42751
|
+
"probation",
|
|
42752
|
+
"connected",
|
|
42753
|
+
"rollback",
|
|
42754
|
+
"failed",
|
|
42755
|
+
"maintenance-required"
|
|
42756
|
+
];
|
|
42757
|
+
|
|
42746
42758
|
// ../../domains/computers/src/shared/upgrade-status.ts
|
|
42747
42759
|
var computerUpgradeStatusSchema = external_exports.object({
|
|
42748
|
-
phase: external_exports.enum(
|
|
42749
|
-
"checking",
|
|
42750
|
-
"installing",
|
|
42751
|
-
"waiting-for-idle",
|
|
42752
|
-
"restarting",
|
|
42753
|
-
"probation",
|
|
42754
|
-
"connected",
|
|
42755
|
-
"rollback",
|
|
42756
|
-
"failed",
|
|
42757
|
-
"maintenance-required"
|
|
42758
|
-
]),
|
|
42760
|
+
phase: external_exports.enum(COMPUTER_UPGRADE_PHASES),
|
|
42759
42761
|
currentVersion: external_exports.string().max(100),
|
|
42760
42762
|
hostVersion: external_exports.string().max(100),
|
|
42761
42763
|
version: external_exports.string().max(100).optional(),
|
|
@@ -47070,7 +47072,7 @@ var import_node_child_process3 = require("node:child_process");
|
|
|
47070
47072
|
var import_node_fs9 = require("node:fs");
|
|
47071
47073
|
var import_node_module = require("node:module");
|
|
47072
47074
|
var import_node_path9 = require("node:path");
|
|
47073
|
-
var CLI_VERSION = true ? "0.37.
|
|
47075
|
+
var CLI_VERSION = true ? "0.37.2" : "";
|
|
47074
47076
|
function fail(message) {
|
|
47075
47077
|
console.error(message);
|
|
47076
47078
|
process.exit(1);
|
|
@@ -49702,7 +49704,7 @@ function updateCommand() {
|
|
|
49702
49704
|
}
|
|
49703
49705
|
|
|
49704
49706
|
// src/index.ts
|
|
49705
|
-
var program2 = new Command().name("slay").description("SlayZone CLI").version("0.37.
|
|
49707
|
+
var program2 = new Command().name("slay").description("SlayZone CLI").version("0.37.2").option("--dev", "Use development database (slayzone.dev.data.sqlite)").option("--hub <name|port>", "Target a specific hub on this machine (see `slay hub ls`)").showSuggestionAfterError(true).showHelpAfterError(true).hook("preAction", async (thisCommand) => {
|
|
49706
49708
|
const root = thisCommand.parent ?? thisCommand;
|
|
49707
49709
|
const opts = root.opts();
|
|
49708
49710
|
if (opts.dev) process.env.SLAYZONE_DEV = "1";
|