@uipath/rpa-tool 0.1.6 → 0.1.9

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 CHANGED
@@ -80,14 +80,18 @@ var studioDir = extractArg(process.argv, "studio-dir");
80
80
  var timeoutRaw = extractArg(process.argv, "timeout", "300");
81
81
  var timeoutSeconds = parseInt(timeoutRaw ?? "300", 10);
82
82
  var verbose = hasFlag(process.argv, "verbose");
83
- var useStudio = hasFlag(process.argv, "use-studio") || process.env.UIPATH_RPA_TOOL_USE_STUDIO === "1";
83
+ var useStudio = process.env.UIPATH_RPA_TOOL_USE_STUDIO === "1";
84
+ var hostStudioPid = process.env.UIPATH_STUDIO_PID ? parseInt(process.env.UIPATH_STUDIO_PID, 10) : undefined;
84
85
  var format = extractArg(process.argv, "format");
86
+ if (hasFlag(process.argv, "use-studio") && hostStudioPid) {
87
+ console.error("[rpa-tool] --use-studio is deprecated and has no effect. " + "Studio routing is automatic when UIPATH_STUDIO_PID is set.");
88
+ }
85
89
  if (format) {
86
90
  setOutputFormat(format);
87
91
  }
88
92
  var program = new Command;
89
93
  configureHelpFormat(program);
90
- program.name(metadata.name).version(metadata.version).description(metadata.description).option("--project-dir <path>", "Project directory to match against running Studio instances", process.cwd()).option("--studio-dir <path>", "Path to Studio installation directory (for starting a new instance)").option("--timeout <seconds>", "Timeout in seconds", "300").option("--verbose", "Enable verbose logging (debug level)").option("--use-studio", "Bypass Helm and interact with Studio directly").option("--format <format>", "Output format (table, json, yaml, plain)");
94
+ program.name(metadata.name).version(metadata.version).description(metadata.description).option("--project-dir <path>", "Project directory to match against running Studio instances", process.cwd()).option("--studio-dir <path>", "Path to Studio installation directory (for starting a new instance)").option("--timeout <seconds>", "Timeout in seconds", "300").option("--verbose", "Enable verbose logging (debug level)").option("--format <format>", "Output format (table, json, yaml, plain)");
91
95
  if (verbose) {
92
96
  console.error(`rpa-tool v${metadata.version}`);
93
97
  }
@@ -97,6 +101,7 @@ await registerCommands(program, {
97
101
  studioDir,
98
102
  verbose,
99
103
  useStudio,
104
+ hostStudioPid,
100
105
  timeoutSeconds
101
106
  });
102
107
  await program.parseAsync(process.argv);