@rudderhq/cli 0.2.0-canary.1 → 0.2.0-canary.3
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 +5 -4
- package/dist/index.js.map +2 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -411,7 +411,7 @@ var init_workspace_backup = __esm({
|
|
|
411
411
|
|
|
412
412
|
// ../packages/shared/src/validators/instance.ts
|
|
413
413
|
import { z } from "zod";
|
|
414
|
-
var instanceLocaleSchema, instanceGeneralSettingsSchema, patchInstanceGeneralSettingsSchema, instanceNotificationSettingsSchema, patchInstanceNotificationSettingsSchema, instanceLangfuseSettingsSchema, patchInstanceLangfuseSettingsSchema, operatorProfileSettingsSchema, patchOperatorProfileSettingsSchema, instancePathPickerSelectionTypeSchema, instancePathPickerRequestSchema, instancePathPickerResultSchema;
|
|
414
|
+
var instanceLocaleSchema, instanceGeneralSettingsSchema, patchInstanceGeneralSettingsSchema, instanceNotificationSettingsSchema, patchInstanceNotificationSettingsSchema, instanceLangfuseSettingsSchema, patchInstanceLangfuseSettingsSchema, OPERATOR_PROFILE_MORE_ABOUT_YOU_MAX_LENGTH, operatorProfileSettingsSchema, patchOperatorProfileSettingsSchema, instancePathPickerSelectionTypeSchema, instancePathPickerRequestSchema, instancePathPickerResultSchema;
|
|
415
415
|
var init_instance = __esm({
|
|
416
416
|
"../packages/shared/src/validators/instance.ts"() {
|
|
417
417
|
"use strict";
|
|
@@ -444,9 +444,10 @@ var init_instance = __esm({
|
|
|
444
444
|
environment: z.string().optional(),
|
|
445
445
|
clearSecretKey: z.boolean().optional()
|
|
446
446
|
}).strict();
|
|
447
|
+
OPERATOR_PROFILE_MORE_ABOUT_YOU_MAX_LENGTH = 8e3;
|
|
447
448
|
operatorProfileSettingsSchema = z.object({
|
|
448
449
|
nickname: z.string().max(80).default(""),
|
|
449
|
-
moreAboutYou: z.string().max(
|
|
450
|
+
moreAboutYou: z.string().max(OPERATOR_PROFILE_MORE_ABOUT_YOU_MAX_LENGTH).default("")
|
|
450
451
|
}).strict();
|
|
451
452
|
patchOperatorProfileSettingsSchema = operatorProfileSettingsSchema.partial();
|
|
452
453
|
instancePathPickerSelectionTypeSchema = z.enum(["file", "directory"]);
|
|
@@ -11043,7 +11044,7 @@ async function startCommand(opts) {
|
|
|
11043
11044
|
const installCli = opts.cli !== false;
|
|
11044
11045
|
const installDesktop = opts.desktop !== false;
|
|
11045
11046
|
const repo = opts.repo?.trim() || DEFAULT_DESKTOP_RELEASE_REPO;
|
|
11046
|
-
const version = opts.version?.trim() || resolveCurrentCliVersion();
|
|
11047
|
+
const version = opts.targetVersion?.trim() || opts.version?.trim() || resolveCurrentCliVersion();
|
|
11047
11048
|
const dryRun = opts.dryRun === true;
|
|
11048
11049
|
if (!installCli && !installDesktop) {
|
|
11049
11050
|
throw new Error("Nothing to start. Remove --no-cli or --no-desktop.");
|
|
@@ -20248,7 +20249,7 @@ function createProgram() {
|
|
|
20248
20249
|
});
|
|
20249
20250
|
loadRudderEnvFile(options.config);
|
|
20250
20251
|
});
|
|
20251
|
-
program.command("start").description("Start Rudder Desktop and prepare the matching persistent CLI").option("--no-cli", "Skip persistent CLI installation").option("--no-desktop", "Skip desktop app installation").option("--version <version>", "Rudder version to start (default: current CLI version)").option("--repo <owner/repo>", "GitHub repository that hosts desktop releases").option("--output-dir <path>", "Directory for downloaded desktop release assets").option("--desktop-install-dir <path>", "Directory for the portable Desktop install").option("--no-open", "Install Desktop without launching it").option("--no-version-check", "Skip checking npm for a newer Rudder CLI version").option("--dry-run", "Print the start actions without changing the machine", false).action(startCommand);
|
|
20252
|
+
program.command("start").description("Start Rudder Desktop and prepare the matching persistent CLI").option("--no-cli", "Skip persistent CLI installation").option("--no-desktop", "Skip desktop app installation").option("--version <version>", "Rudder version to start (default: current CLI version)").option("--target-version <version>", "Rudder version to start; avoids the root CLI version flag").option("--repo <owner/repo>", "GitHub repository that hosts desktop releases").option("--output-dir <path>", "Directory for downloaded desktop release assets").option("--desktop-install-dir <path>", "Directory for the portable Desktop install").option("--no-open", "Install Desktop without launching it").option("--no-version-check", "Skip checking npm for a newer Rudder CLI version").option("--dry-run", "Print the start actions without changing the machine", false).action(startCommand);
|
|
20252
20253
|
program.command("onboard").description("Interactive first-run setup wizard").option("-c, --config <path>", "Path to config file").option("-d, --data-dir <path>", DATA_DIR_OPTION_HELP).option("-y, --yes", "Accept defaults (quickstart + start immediately)", false).option("--run", "Start Rudder immediately after saving config", false).action(onboard);
|
|
20253
20254
|
program.command("doctor").description("Run diagnostic checks on your Rudder setup").option("-c, --config <path>", "Path to config file").option("-d, --data-dir <path>", DATA_DIR_OPTION_HELP).option("--repair", "Attempt to repair issues automatically").alias("--fix").option("-y, --yes", "Skip repair confirmation prompts").action(async (opts) => {
|
|
20254
20255
|
await doctor(opts);
|