@uipath/rpa-tool 1.197.0 → 1.197.1

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
@@ -12013,6 +12013,7 @@ var guardInstalledSlot = singleton("ConsoleGuardInstalled");
12013
12013
  var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
12014
12014
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
12015
12015
  var modeSlot = singleton("InteractivityMode");
12016
+ var interactiveFlagSlot = singleton("InteractiveFlag");
12016
12017
  var PollOutcome = {
12017
12018
  Completed: "completed",
12018
12019
  Timeout: "timeout",
@@ -12766,20 +12766,24 @@ class WorkflowCompilerTool extends ProjectTool {
12766
12766
  this.context = context;
12767
12767
  this.executor = new WorkflowCompilerExecutor(logger, fileSystem);
12768
12768
  }
12769
- async withNuGetConfig(options, run) {
12769
+ async withFeedPaths(options, run) {
12770
+ const userNugetConfigPath = options.nuGetSourcesConfigPath;
12770
12771
  const connection = this.context?.connection;
12771
- if (options.nuGetSourcesConfigPath || !connection) {
12772
- return run(options.nuGetSourcesConfigPath);
12772
+ if (!connection) {
12773
+ return run({ userNugetConfigPath });
12773
12774
  }
12774
12775
  const composed = await new OrchestratorFeedComposer(this.fileSystem, this.logger).composeAsync({ connection });
12775
12776
  try {
12776
- return await run(composed.configPath);
12777
+ return await run({
12778
+ orchestratorFeedsJsonPath: composed.configPath,
12779
+ userNugetConfigPath
12780
+ });
12777
12781
  } finally {
12778
12782
  await composed.dispose();
12779
12783
  }
12780
12784
  }
12781
12785
  async restoreAsync(options, cancellationToken) {
12782
- return this.withNuGetConfig(options, (nuGetConfigPath) => {
12786
+ return this.withFeedPaths(options, (paths) => {
12783
12787
  const args = [
12784
12788
  `-p`,
12785
12789
  options.projectPath,
@@ -12792,14 +12796,17 @@ class WorkflowCompilerTool extends ProjectTool {
12792
12796
  `--exclude-configured-sources`,
12793
12797
  `${options.excludeConfiguredSources}`
12794
12798
  ];
12795
- if (nuGetConfigPath) {
12796
- args.push(`--nuget-config-file`, nuGetConfigPath);
12799
+ if (paths.orchestratorFeedsJsonPath) {
12800
+ args.push(`--nuget-config-file`, paths.orchestratorFeedsJsonPath);
12801
+ }
12802
+ if (paths.userNugetConfigPath) {
12803
+ args.push(`--nuget-config`, paths.userNugetConfigPath);
12797
12804
  }
12798
12805
  return this.executor.executeAsync("restore", args, cancellationToken);
12799
12806
  });
12800
12807
  }
12801
12808
  async validateAsync(options, cancellationToken) {
12802
- return this.withNuGetConfig(options, (nuGetConfigPath) => {
12809
+ return this.withFeedPaths(options, (paths) => {
12803
12810
  const args = [
12804
12811
  `-p`,
12805
12812
  options.projectPath,
@@ -12826,14 +12833,17 @@ class WorkflowCompilerTool extends ProjectTool {
12826
12833
  if (options.policyFileType) {
12827
12834
  args.push(`--policy-file-type`, `${options.policyFileType}`);
12828
12835
  }
12829
- if (nuGetConfigPath) {
12830
- args.push(`--nuget-config-file`, nuGetConfigPath);
12836
+ if (paths.orchestratorFeedsJsonPath) {
12837
+ args.push(`--nuget-config-file`, paths.orchestratorFeedsJsonPath);
12838
+ }
12839
+ if (paths.userNugetConfigPath) {
12840
+ args.push(`--nuget-config`, paths.userNugetConfigPath);
12831
12841
  }
12832
12842
  return this.executor.executeAsync("validate", args, cancellationToken);
12833
12843
  });
12834
12844
  }
12835
12845
  async buildAsync(options, cancellationToken) {
12836
- return this.withNuGetConfig(options, (nuGetConfigPath) => {
12846
+ return this.withFeedPaths(options, (paths) => {
12837
12847
  const args = [
12838
12848
  `-p`,
12839
12849
  options.projectPath,
@@ -12863,14 +12873,17 @@ class WorkflowCompilerTool extends ProjectTool {
12863
12873
  const outputType = this.mapOutputType(options.outputType);
12864
12874
  args.push(`--output-type`, outputType);
12865
12875
  }
12866
- if (nuGetConfigPath) {
12867
- args.push(`--nuget-config-file`, nuGetConfigPath);
12876
+ if (paths.orchestratorFeedsJsonPath) {
12877
+ args.push(`--nuget-config-file`, paths.orchestratorFeedsJsonPath);
12878
+ }
12879
+ if (paths.userNugetConfigPath) {
12880
+ args.push(`--nuget-config`, paths.userNugetConfigPath);
12868
12881
  }
12869
12882
  return this.executor.executeAsync("build", args, cancellationToken);
12870
12883
  });
12871
12884
  }
12872
12885
  async packAsync(options, cancellationToken) {
12873
- return this.withNuGetConfig(options, async (nuGetConfigPath) => {
12886
+ return this.withFeedPaths(options, async (paths) => {
12874
12887
  const args = [
12875
12888
  `-p`,
12876
12889
  options.projectPath,
@@ -12913,15 +12926,18 @@ class WorkflowCompilerTool extends ProjectTool {
12913
12926
  const outputType = this.mapOutputType(options.outputType);
12914
12927
  args.push(`--output-type`, outputType);
12915
12928
  }
12916
- if (nuGetConfigPath) {
12917
- args.push(`--nuget-config-file`, nuGetConfigPath);
12929
+ if (paths.orchestratorFeedsJsonPath) {
12930
+ args.push(`--nuget-config-file`, paths.orchestratorFeedsJsonPath);
12931
+ }
12932
+ if (paths.userNugetConfigPath) {
12933
+ args.push(`--nuget-config`, paths.userNugetConfigPath);
12918
12934
  }
12919
12935
  const result = await this.executor.executeAsync("build", args, cancellationToken);
12920
12936
  return this.recoverPackagePathsAsync(result, options.outputPath);
12921
12937
  });
12922
12938
  }
12923
12939
  async cleanupAsync(options, cancellationToken) {
12924
- return this.withNuGetConfig(options, async (nuGetConfigPath) => {
12940
+ return this.withFeedPaths(options, async (paths) => {
12925
12941
  const args = [
12926
12942
  `-p`,
12927
12943
  options.projectPath,
@@ -12938,8 +12954,11 @@ class WorkflowCompilerTool extends ProjectTool {
12938
12954
  if (options.skipImports) {
12939
12955
  args.push(`--skip-imports`);
12940
12956
  }
12941
- if (nuGetConfigPath) {
12942
- args.push(`--nuget-config-file`, nuGetConfigPath);
12957
+ if (paths.orchestratorFeedsJsonPath) {
12958
+ args.push(`--nuget-config-file`, paths.orchestratorFeedsJsonPath);
12959
+ }
12960
+ if (paths.userNugetConfigPath) {
12961
+ args.push(`--nuget-config`, paths.userNugetConfigPath);
12943
12962
  }
12944
12963
  const result = await this.executor.executeAsync("remove-unused-dependencies", args, cancellationToken);
12945
12964
  return this.toProjectCleanupResult(result);
@@ -22454,6 +22473,7 @@ var guardInstalledSlot = singleton2("ConsoleGuardInstalled");
22454
22473
  var savedOriginalsSlot = singleton2("ConsoleGuardOriginals");
22455
22474
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
22456
22475
  var modeSlot = singleton2("InteractivityMode");
22476
+ var interactiveFlagSlot = singleton2("InteractiveFlag");
22457
22477
  var PollOutcome = {
22458
22478
  Completed: "completed",
22459
22479
  Timeout: "timeout",
package/dist/tool.js CHANGED
@@ -7561,7 +7561,8 @@ class ProjectPackager {
7561
7561
  logLevel: options.logLevel,
7562
7562
  outputPath: options.outputPath
7563
7563
  };
7564
- return await this.projectExecutor.restoreAsync(restoreOptions, uiPathProject, undefined, cancellationToken);
7564
+ const context = this.createOperationContext(options, uiPathProject);
7565
+ return await this.projectExecutor.restoreAsync(restoreOptions, uiPathProject, context, cancellationToken);
7565
7566
  }, cancellationToken);
7566
7567
  }
7567
7568
  async validateProjectAsync(options, cancellationToken) {
@@ -10419,7 +10420,7 @@ var de_default, en2, es_default, es_MX_default, fr_default, ja_default, ko_defau
10419
10420
  }, __toESM23 = (mod22, isNodeMode, target) => (target = mod22 != null ? __create23(__getProtoOf23(mod22)) : {}, __copyProps2(isNodeMode || !mod22 || !mod22.__esModule ? __defProp23(target, "default", {
10420
10421
  value: mod22,
10421
10422
  enumerable: true
10422
- }) : target, mod22)), require_common2, require_exception2, require_snippet2, require_type2, require_schema2, require_str2, require_seq2, require_map2, require_failsafe2, require_null2, require_bool2, require_int2, require_float2, require_json2, require_core2, require_timestamp2, require_merge2, require_binary2, require_omap2, require_pairs2, require_set2, require_default2, require_loader2, require_dumper2, import_js_yaml2, Type2, Schema2, FAILSAFE_SCHEMA2, JSON_SCHEMA2, CORE_SCHEMA2, DEFAULT_SCHEMA2, load2, loadAll2, dump2, YAMLException2, types2, safeLoad2, safeLoadAll2, safeDump2, index_vite_proxy_tmp_default2, logFilePathSlot2, LogLevel3, DEFAULT_LOG_LEVEL2 = 3, SimpleLogger2, loggerSingleton2, logger2, formatSlot2, formatExplicitSlot2, helpRequestedSlot2, filterSlot2, recordedFailureSlot2, AUTH_ERROR_CODES2, VALIDATION_ERROR_CODES2, NETWORK_HTTP_ERROR_CODES2, TIMEOUT_ERROR_CODES2, NETWORK_OS_ERROR_CODES2, TIMEOUT_OS_ERROR_CODES2, TLS_ERROR_CODES22, MISSING_DEPENDENCY_CODES2, INTERNAL_ERROR_NAMES2, CommonTelemetryEvents2, KNOWN_AGENTS2, LOCAL_HOSTS2, authSignalSlot2, isTruthy2 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual2 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES2, TELEMETRY_SESSION_ID_ENV2 = "UIPATH_SESSION_ID", TELEMETRY_SESSION_ID_PROPERTY2 = "session_id", telemetrySessionIdSlot2, telemetryPropsSlot2, providerSlot2, telemetryInstanceSlot2, DEFAULT_AI_CONNECTION_STRING2, _localTelemetryInstance2, telemetry2, CLI_ERROR_CODES2, RETRY_HINTS2, RESULTS2, EXIT_CODES2, FilterEvaluationError2, OutputFormatter2, LEGACY_SKILL_NAMESPACE2 = "uipath:", MAX_SKILL_NAME_LENGTH2 = 80, SKILL_NAME_PATTERN2, SKILL_ATTRIBUTION2, KNOWN_SKILL_NAMES2, COMMAND_ATTRIBUTION2, REDACTED2 = "[REDACTED]", MAX_VALUE_LENGTH2 = 200, SENSITIVE_NAME_TOKENS2, SENSITIVE_KEY_PREFIXES2, UUID_PATTERN2, EMAIL_PATTERN2, JWT_PATTERN2, LONG_TOKEN_PATTERN2, USER_HOME_PATTERN2, URL_PATTERN2, URL_TRAILING_PUNCT2, pollSignalSlot2, cliErrorCodeValues2, retryHintValues2, guardInstalledSlot2, savedOriginalsSlot2, DEFAULT_AUTH_TIMEOUT_MS2, modeSlot2, PollOutcome2, REASON_BY_OUTCOME2, TERMINAL_STATUSES2, FAILURE_STATUSES2, previewSlot2, ScreenLogger2, sdkUserAgentHostToken2, shippedKeysSlot2, factorySlot2, globalLogHandler = (logMessage) => {
10423
+ }) : target, mod22)), require_common2, require_exception2, require_snippet2, require_type2, require_schema2, require_str2, require_seq2, require_map2, require_failsafe2, require_null2, require_bool2, require_int2, require_float2, require_json2, require_core2, require_timestamp2, require_merge2, require_binary2, require_omap2, require_pairs2, require_set2, require_default2, require_loader2, require_dumper2, import_js_yaml2, Type2, Schema2, FAILSAFE_SCHEMA2, JSON_SCHEMA2, CORE_SCHEMA2, DEFAULT_SCHEMA2, load2, loadAll2, dump2, YAMLException2, types2, safeLoad2, safeLoadAll2, safeDump2, index_vite_proxy_tmp_default2, logFilePathSlot2, LogLevel3, DEFAULT_LOG_LEVEL2 = 3, SimpleLogger2, loggerSingleton2, logger2, formatSlot2, formatExplicitSlot2, helpRequestedSlot2, filterSlot2, recordedFailureSlot2, AUTH_ERROR_CODES2, VALIDATION_ERROR_CODES2, NETWORK_HTTP_ERROR_CODES2, TIMEOUT_ERROR_CODES2, NETWORK_OS_ERROR_CODES2, TIMEOUT_OS_ERROR_CODES2, TLS_ERROR_CODES22, MISSING_DEPENDENCY_CODES2, INTERNAL_ERROR_NAMES2, CommonTelemetryEvents2, KNOWN_AGENTS2, LOCAL_HOSTS2, authSignalSlot2, isTruthy2 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual2 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES2, TELEMETRY_SESSION_ID_ENV2 = "UIPATH_SESSION_ID", TELEMETRY_SESSION_ID_PROPERTY2 = "session_id", telemetrySessionIdSlot2, telemetryPropsSlot2, providerSlot2, telemetryInstanceSlot2, DEFAULT_AI_CONNECTION_STRING2, _localTelemetryInstance2, telemetry2, CLI_ERROR_CODES2, RETRY_HINTS2, RESULTS2, EXIT_CODES2, FilterEvaluationError2, OutputFormatter2, LEGACY_SKILL_NAMESPACE2 = "uipath:", MAX_SKILL_NAME_LENGTH2 = 80, SKILL_NAME_PATTERN2, SKILL_ATTRIBUTION2, KNOWN_SKILL_NAMES2, COMMAND_ATTRIBUTION2, REDACTED2 = "[REDACTED]", MAX_VALUE_LENGTH2 = 200, SENSITIVE_NAME_TOKENS2, SENSITIVE_KEY_PREFIXES2, UUID_PATTERN2, EMAIL_PATTERN2, JWT_PATTERN2, LONG_TOKEN_PATTERN2, USER_HOME_PATTERN2, URL_PATTERN2, URL_TRAILING_PUNCT2, pollSignalSlot2, cliErrorCodeValues2, retryHintValues2, guardInstalledSlot2, savedOriginalsSlot2, DEFAULT_AUTH_TIMEOUT_MS2, modeSlot2, interactiveFlagSlot2, PollOutcome2, REASON_BY_OUTCOME2, TERMINAL_STATUSES2, FAILURE_STATUSES2, previewSlot2, ScreenLogger2, sdkUserAgentHostToken2, shippedKeysSlot2, factorySlot2, globalLogHandler = (logMessage) => {
10423
10424
  const formattedMessage = logMessage.toFormattedString();
10424
10425
  switch (logMessage.logLevel) {
10425
10426
  case LogLevel2.Debug:
@@ -17398,6 +17399,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
17398
17399
  savedOriginalsSlot2 = singleton2("ConsoleGuardOriginals");
17399
17400
  DEFAULT_AUTH_TIMEOUT_MS2 = 5 * 60 * 1000;
17400
17401
  modeSlot2 = singleton2("InteractivityMode");
17402
+ interactiveFlagSlot2 = singleton2("InteractiveFlag");
17401
17403
  PollOutcome2 = {
17402
17404
  Completed: "completed",
17403
17405
  Timeout: "timeout",
@@ -17562,7 +17564,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
17562
17564
  package_default2 = {
17563
17565
  name: "@uipath/project-packager",
17564
17566
  license: "MIT",
17565
- version: "1.198.0-dev.7755",
17567
+ version: "1.198.0-dev.7807",
17566
17568
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
17567
17569
  type: "module",
17568
17570
  main: "./dist/index.js",
@@ -17609,7 +17611,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
17609
17611
  dependencies: {
17610
17612
  "@uipath/filesystem": "1.198.0-dev.7755",
17611
17613
  "@uipath/solutionpackager-tool-core": "1.198.0-dev.7755",
17612
- "@uipath/common": "1.198.0-dev.7755"
17614
+ "@uipath/common": "1.198.0-dev.7807"
17613
17615
  },
17614
17616
  peerDependencies: {
17615
17617
  fflate: "^0.8.2"
@@ -17623,14 +17625,14 @@ Expecting one of '${allowedValues.join("', '")}'`);
17623
17625
  "@uipath/packager-tool-flow": "1.198.0-dev.7755",
17624
17626
  "@uipath/packager-tool-functions": "1.198.0-dev.7755",
17625
17627
  "@uipath/packager-tool-webapp": "1.198.0-dev.7755",
17626
- "@uipath/packager-tool-workflowcompiler": "1.198.0-dev.7755",
17628
+ "@uipath/packager-tool-workflowcompiler": "1.198.0-dev.7807",
17627
17629
  "@vitest/coverage-v8": "^4.1.6",
17628
17630
  jsdom: "^29.0.0",
17629
17631
  typescript: "^6.0.2",
17630
17632
  "vite-tsconfig-paths": "^6.1.1",
17631
17633
  vitest: "^4.1.6"
17632
17634
  },
17633
- gitHead: "a100234ba8c1643b8598b08f42b29d6bec5fd8b5"
17635
+ gitHead: "33687fd19464f9d6d731354db92a95e698d21af8"
17634
17636
  };
17635
17637
  SDK_USER_AGENT = `${package_default2.name.replace(/^@uipath\//, "")}/${package_default2.version}`;
17636
17638
  OrchestratorResponseError = class OrchestratorResponseError extends Error {
@@ -58924,6 +58926,7 @@ var guardInstalledSlot = singleton("ConsoleGuardInstalled");
58924
58926
  var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
58925
58927
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
58926
58928
  var modeSlot = singleton("InteractivityMode");
58929
+ var interactiveFlagSlot = singleton("InteractiveFlag");
58927
58930
  var PollOutcome = {
58928
58931
  Completed: "completed",
58929
58932
  Timeout: "timeout",
@@ -58994,7 +58997,7 @@ var {
58994
58997
  // package.json
58995
58998
  var package_default = {
58996
58999
  name: "@uipath/rpa-tool",
58997
- version: "1.197.0",
59000
+ version: "1.197.1",
58998
59001
  description: "Tool for creating and managing UiPath RPA projects",
58999
59002
  keywords: [
59000
59003
  "uipcli-tool",
@@ -59041,11 +59044,11 @@ var package_default = {
59041
59044
  "@types/bun": "^1.3.12",
59042
59045
  "@types/node": "^25.6.0",
59043
59046
  "@uipath/auth": "1.198.0-dev.7755",
59044
- "@uipath/common": "1.198.0-dev.7755",
59047
+ "@uipath/common": "1.198.0-dev.7807",
59045
59048
  "@uipath/coreipc": "2.5.1-20260324-07",
59046
59049
  "@uipath/filesystem": "1.198.0-dev.7755",
59047
- "@uipath/packager-tool-workflowcompiler": "1.198.0-dev.7755",
59048
- "@uipath/project-packager": "1.198.0-dev.7755",
59050
+ "@uipath/packager-tool-workflowcompiler": "1.198.0-dev.7807",
59051
+ "@uipath/project-packager": "1.198.0-dev.7807",
59049
59052
  "@uipath/solution-sdk": "1.198.0-dev.7755",
59050
59053
  "@uipath/solutionpackager-tool-core": "1.198.0-dev.7755",
59051
59054
  "camelcase-keys": "^10.0.2",
@@ -59277,10 +59280,7 @@ var OUTPUT_TYPES = [
59277
59280
  "Template"
59278
59281
  ];
59279
59282
  function addCommonPackagerOptions(cmd) {
59280
- return cmd.addOption(new Option2("--log-level <level>", "Log level").choices(LOG_LEVEL_NAMES).default("Warn")).option("--exclude-configured-sources", "Exclude user/machine configured NuGet sources").option("--nuget-sources-config-path <path>", "Path to NuGet sources configuration file").option("--feed-url <url>", "NuGet feed URL (repeatable). Merged with the authenticated " + "tenant's Orchestrator feeds and a JSON --nuget-sources-config-path " + "into the sources used for the command. Not merged when " + "--nuget-sources-config-path is a non-JSON NuGet.Config, which is " + "used as-is.", appendOption, []).addOption(new Option2("--format <format>", "Output format").choices(["table", "json", "yaml", "plain"]).argParser((val) => val.toLowerCase()).default("json"));
59281
- }
59282
- function appendOption(value, previous) {
59283
- return [...previous, value];
59283
+ return cmd.addOption(new Option2("--log-level <level>", "Log level").choices(LOG_LEVEL_NAMES).default("Warn")).option("--exclude-configured-sources", "Exclude user/machine configured NuGet sources").option("--nuget-sources-config-path <path>", "Path to NuGet sources configuration file").addOption(new Option2("--format <format>", "Output format").choices(["table", "json", "yaml", "plain"]).argParser((val) => val.toLowerCase()).default("json"));
59284
59284
  }
59285
59285
  async function createPackager() {
59286
59286
  await loadPackagerTool();
@@ -59406,24 +59406,14 @@ async function assembleFeedsConfig(opts) {
59406
59406
  if (opts.nugetSourcesConfigPath) {
59407
59407
  const fromFile = readFeedSourcesFromFile(opts.nugetSourcesConfigPath);
59408
59408
  if (fromFile === null) {
59409
- if (opts.feedUrl?.length) {
59410
- logger.warn("--nuget-sources-config-path is a non-JSON NuGet.Config and is used as-is; --feed-url entries are not merged into it.");
59411
- }
59412
59409
  return { path: opts.nugetSourcesConfigPath };
59413
59410
  }
59414
59411
  userFeeds = fromFile;
59415
59412
  }
59416
- const feeds = [];
59417
- for (const url of opts.feedUrl ?? []) {
59418
- feeds.push({ Url: url });
59419
- }
59420
- if (userFeeds) {
59421
- feeds.push(...userFeeds);
59422
- }
59423
- if (feeds.length === 0) {
59413
+ if (!userFeeds || userFeeds.length === 0) {
59424
59414
  return {};
59425
59415
  }
59426
- const temp = createTemporaryFeedsConfig(feeds);
59416
+ const temp = createTemporaryFeedsConfig(userFeeds);
59427
59417
  return { path: temp?.path, temp };
59428
59418
  }
59429
59419
  function detectLockedProjectFilesFailure(label, rawMessage) {
@@ -59485,9 +59475,6 @@ async function runPackagerCommand(opts, config) {
59485
59475
  temporaryFeedsConfig = temp;
59486
59476
  if (feedsPath) {
59487
59477
  options.nuGetSourcesConfigPath = feedsPath;
59488
- if (options.connection) {
59489
- logger.warn("An explicit feeds config (--feed-url / --nuget-sources-config-path) overrides the authenticated tenant's Orchestrator feeds for this run.");
59490
- }
59491
59478
  }
59492
59479
  const result = await config.execute(packager, options, opts);
59493
59480
  const succeeded = config.isSuccessfulResult ? config.isSuccessfulResult(result) : result.isSuccess;
@@ -60576,7 +60563,8 @@ var CLI_DERIVED_COMMANDS = [
60576
60563
  "logLevel",
60577
60564
  "skipBuild",
60578
60565
  "profiling",
60579
- "remote"
60566
+ "remote",
60567
+ "breakpoints"
60580
60568
  ]
60581
60569
  },
60582
60570
  {
@@ -60608,56 +60596,70 @@ var CLI_DERIVED_COMMANDS = [
60608
60596
  baseTool: ToolName.RunFile,
60609
60597
  description: "Break execution at the next executed activity in the active debug session.",
60610
60598
  lockedArgs: { command: "Break", filePath: "" },
60611
- visibleArgs: []
60599
+ visibleArgs: ["waitTimeoutSeconds"]
60612
60600
  },
60613
60601
  {
60614
60602
  path: ["debug", "continue"],
60615
60603
  baseTool: ToolName.RunFile,
60616
60604
  description: "Continue execution in the active debug session.",
60617
60605
  lockedArgs: { command: "Continue", filePath: "" },
60618
- visibleArgs: []
60606
+ visibleArgs: ["waitTimeoutSeconds"]
60619
60607
  },
60620
60608
  {
60621
60609
  path: ["debug", "resume"],
60622
60610
  baseTool: ToolName.RunFile,
60623
60611
  description: "Resume execution after a suspended state.",
60624
60612
  lockedArgs: { command: "Resume", filePath: "" },
60625
- visibleArgs: []
60613
+ visibleArgs: ["waitTimeoutSeconds"]
60626
60614
  },
60627
60615
  {
60628
60616
  path: ["debug", "continue-retry"],
60629
60617
  baseTool: ToolName.RunFile,
60630
60618
  description: "Continue execution and retry the activity that just threw.",
60631
60619
  lockedArgs: { command: "ContinueRetry", filePath: "" },
60632
- visibleArgs: []
60620
+ visibleArgs: ["waitTimeoutSeconds"]
60633
60621
  },
60634
60622
  {
60635
60623
  path: ["debug", "continue-ignore"],
60636
60624
  baseTool: ToolName.RunFile,
60637
60625
  description: "Continue execution and ignore the exception from the activity that just threw.",
60638
60626
  lockedArgs: { command: "ContinueIgnore", filePath: "" },
60639
- visibleArgs: []
60627
+ visibleArgs: ["waitTimeoutSeconds"]
60640
60628
  },
60641
60629
  {
60642
60630
  path: ["debug", "step-into"],
60643
60631
  baseTool: ToolName.RunFile,
60644
60632
  description: "Step into the next activity in the debug session.",
60645
60633
  lockedArgs: { command: "StepInto", filePath: "" },
60646
- visibleArgs: []
60634
+ visibleArgs: ["waitTimeoutSeconds"]
60647
60635
  },
60648
60636
  {
60649
60637
  path: ["debug", "step-over"],
60650
60638
  baseTool: ToolName.RunFile,
60651
60639
  description: "Step over the current activity in the debug session.",
60652
60640
  lockedArgs: { command: "StepOver", filePath: "" },
60653
- visibleArgs: []
60641
+ visibleArgs: ["waitTimeoutSeconds"]
60654
60642
  },
60655
60643
  {
60656
60644
  path: ["debug", "step-out"],
60657
60645
  baseTool: ToolName.RunFile,
60658
60646
  description: "Step out of the current scope in the debug session.",
60659
60647
  lockedArgs: { command: "StepOut", filePath: "" },
60660
- visibleArgs: []
60648
+ visibleArgs: ["waitTimeoutSeconds"]
60649
+ },
60650
+ {
60651
+ path: ["debug", "state"],
60652
+ baseTool: ToolName.RunFile,
60653
+ description: "State of the active debug session — Running, Paused, Suspended, Completed, or None. " + "Pass --wait-timeout-seconds to long-poll a running session for its next stable state. Helm backend only.",
60654
+ lockedArgs: { command: "GetDebugState", filePath: "" },
60655
+ visibleArgs: ["waitTimeoutSeconds"]
60656
+ },
60657
+ {
60658
+ path: ["debug", "set-breakpoints"],
60659
+ baseTool: ToolName.RunFile,
60660
+ description: "Set the active debug session's breakpoints, replacing the whole existing set. To set " + "breakpoints for a new session, pass --breakpoints on `debug start` instead. Helm backend only.",
60661
+ lockedArgs: { command: "SetBreakpoints", filePath: "" },
60662
+ visibleArgs: ["breakpoints"]
60661
60663
  },
60662
60664
  {
60663
60665
  path: ["debug", "toggle-breakpoint"],
@@ -62620,7 +62622,7 @@ class HelmAuthContextProvider {
62620
62622
  constructor(session) {
62621
62623
  this.session = session;
62622
62624
  }
62623
- async tryPushAuthContext(instanceId, pid) {
62625
+ async tryPushAuthContext(instanceId, authContextService) {
62624
62626
  if (isAuthPushDisabled()) {
62625
62627
  console.error(`[HelmAuthContextProvider] auth context push disabled via ` + `${DISABLE_AUTH_PUSH_ENV}; Helm will fall back to Robot/RobotType licensing.`);
62626
62628
  return;
@@ -62655,7 +62657,7 @@ class HelmAuthContextProvider {
62655
62657
  orchestrator: baseUrl,
62656
62658
  identity: status.issuer ?? `${baseUrl}/identity`
62657
62659
  };
62658
- await this.session.execute((inst) => inst.helmServices.authContext.provideAuthContext({
62660
+ await authContextService.provideAuthContext({
62659
62661
  accessToken: status.accessToken,
62660
62662
  baseUrl,
62661
62663
  organizationId: orgId,
@@ -62663,10 +62665,6 @@ class HelmAuthContextProvider {
62663
62665
  tenantId: status.tenantId ?? "",
62664
62666
  tenantName,
62665
62667
  serviceUrls
62666
- }), {
62667
- requiresProject: false,
62668
- backend: "helm" /* Helm */,
62669
- targetPid: pid
62670
62668
  });
62671
62669
  } catch (err2) {
62672
62670
  console.error(`[HelmAuthContextProvider] failed to push auth context: ${err2 instanceof Error ? err2.message : String(err2)}`);
@@ -62888,7 +62886,7 @@ class StudioSession {
62888
62886
  }
62889
62887
  });
62890
62888
  if (raw.backendType === "Helm" /* Helm */) {
62891
- await this.authContextProvider.tryPushAuthContext(raw.ipcEndpointName, raw.processId);
62889
+ await this.authContextProvider.tryPushAuthContext(raw.ipcEndpointName, connected.helmServices.authContext);
62892
62890
  }
62893
62891
  if (opts.requiresProject !== false && opts.projectDir) {
62894
62892
  if (raw.backendType === "Helm" /* Helm */) {
@@ -76378,7 +76376,7 @@ class HelmRunService {
76378
76376
  constructor(session) {
76379
76377
  this.session = session;
76380
76378
  }
76381
- async runFile(filePath, inputArguments, logLevel, command = "StartExecution", skipBuild = false, profiling = false, folderPath) {
76379
+ async runFile(filePath, inputArguments, logLevel, command = "StartExecution", skipBuild = false, profiling = false, folderPath, waitTimeoutSeconds, breakpointsJson) {
76382
76380
  const isStartCommand = START_COMMANDS.has(command);
76383
76381
  this.session.log(`[helm-run] ${isStartCommand ? "Starting pipeline" : "Sending debug command"}: ${command}${skipBuild ? " [skip-build]" : ""}${profiling ? " [profiling]" : ""}${folderPath ? ` [folder=${folderPath}]` : ""}`);
76384
76382
  const t0 = performance.now();
@@ -76393,7 +76391,9 @@ class HelmRunService {
76393
76391
  logLevel,
76394
76392
  skipBuild,
76395
76393
  profiling,
76396
- folderPath
76394
+ folderPath,
76395
+ waitTimeoutSeconds,
76396
+ breakpointsJson
76397
76397
  });
76398
76398
  }, { requiresProject: true, backend: "helm" /* Helm */ });
76399
76399
  const elapsed = ((performance.now() - t0) / 1000).toFixed(1);
@@ -76451,7 +76451,7 @@ function runFileTool(session) {
76451
76451
  },
76452
76452
  command: {
76453
76453
  type: "string",
76454
- description: "The actual command to run. Can be either one of the following: " + '- StartExecution: runs the workflow specified by the "filePath" and with the specified "inputArguments".' + '- StartDebugging: starts a debugging session for the workflow specified by the "filePath" and with the specified "inputArguments".' + "- Break: during debugging, breaks/pauses execution." + "- Continue: during debugging, resumes execution if in a paused state." + "- Resume: during debugging, resumes execution if in a suspended state." + "- ContinueRetry: during debugging, resumes execution if in a paused state. If paused on exception, retry current activity execution." + "- ContinueIgnore: during debugging, resumes execution if in a paused state. If paused on exception, ignore the exception." + '- StepInto: when execution is paused and in debug mode, resumes debugging in a step-by-step fashion with the "Step Into" behavior.' + '- StepOver: when execution is paused and in debug mode, resumes debugging in a step-by-step fashion with the "Step Over" behavior.' + '- StepOut: when execution is paused and in debug mode, resumes debugging in a step-by-step fashion with the "Step Out" behavior.' + "- Stop: stops the current debugging or execution session." + "- ToggleBreakpoint: toggles a breakpoint at the currently focused activity (if .xaml workflow) or line (if .cs coded workflow). " + "If no activity or line is in focus, toggles a breakpoint at the entire currently opened workflow." + "IMPORTANT: " + "- For .xaml workflows, the toggle cycles through three states: enabled breakpoint -> disabled breakpoint -> no breakpoint." + "- For .cs coded workflows, the toggle cycles through two states: breakpoint -> no breakpoint." + "- RestartFromTop: during debugging, restarts execution." + "- ForceSessionEnded: forces the current session to end." + "- TestActivity: isolates and executes the currently focused activity. " + 'Use "inputVariables" to set workflow variable expressions and "inputArguments" to set project argument expressions.' + "- StartDebuggingFromHere: starts a debugging session from the currently focused activity, " + 'skipping all preceding activities. Use "inputVariables" to set workflow variable expressions and "inputArguments" to set project argument expressions.' + "Defaults to StartExecution if not specified.",
76454
+ description: "The actual command to run. Can be either one of the following: " + '- StartExecution: runs the workflow specified by the "filePath" and with the specified "inputArguments".' + '- StartDebugging: starts a debugging session for the workflow specified by the "filePath" and with the specified "inputArguments". ' + "Returns at the first stable state instead of blocking until the run ends: check the DebugState field of the result — " + "'Paused' (stopped at an activity; DebugDetails has the activity and locals), " + "'Suspended' (stopped on an exception; DebugDetails has the exception and locals — choose Continue/ContinueRetry/ContinueIgnore/Stop), " + "or 'Completed' (ran to the end; normal run result)." + "- Break: during debugging, breaks/pauses execution at the next activity and returns the paused state with locals." + "- Continue: during debugging, resumes execution if in a paused state." + "- Resume: during debugging, resumes execution if in a suspended state." + "- ContinueRetry: during debugging, resumes execution if in a paused state. If paused on exception, retry current activity execution." + "- ContinueIgnore: during debugging, resumes execution if in a paused state. If paused on exception, ignore the exception." + '- StepInto: when execution is paused and in debug mode, resumes debugging in a step-by-step fashion with the "Step Into" behavior.' + '- StepOver: when execution is paused and in debug mode, resumes debugging in a step-by-step fashion with the "Step Over" behavior.' + '- StepOut: when execution is paused and in debug mode, resumes debugging in a step-by-step fashion with the "Step Out" behavior.' + "All resume/step commands return at the NEXT stable state (Paused/Suspended/Completed), so each call tells you where execution now " + "stands via DebugState/DebugDetails; if no stable state is reached within waitTimeoutSeconds, they return DebugState 'Running' instead of hanging." + "- GetDebugState: reports the current debug session state without side effects ('None' when no session is active). " + "Pass waitTimeoutSeconds to long-poll a running session for its next stable state." + `- SetBreakpoints: replaces the active debug session's whole breakpoint set with the "breakpoints" parameter. ` + 'To set breakpoints for a new session, pass "breakpoints" directly on StartDebugging instead.' + "- Stop: stops the current debugging or execution session." + "- ToggleBreakpoint: toggles a breakpoint at the currently focused activity (if .xaml workflow) or line (if .cs coded workflow). " + "If no activity or line is in focus, toggles a breakpoint at the entire currently opened workflow." + "IMPORTANT: " + "- For .xaml workflows, the toggle cycles through three states: enabled breakpoint -> disabled breakpoint -> no breakpoint." + "- For .cs coded workflows, the toggle cycles through two states: breakpoint -> no breakpoint." + "- RestartFromTop: during debugging, restarts execution." + "- ForceSessionEnded: forces the current session to end." + "- TestActivity: isolates and executes the currently focused activity. " + 'Use "inputVariables" to set workflow variable expressions and "inputArguments" to set project argument expressions.' + "- StartDebuggingFromHere: starts a debugging session from the currently focused activity, " + 'skipping all preceding activities. Use "inputVariables" to set workflow variable expressions and "inputArguments" to set project argument expressions.' + "Defaults to StartExecution if not specified.",
76455
76455
  enum: [
76456
76456
  "StartExecution",
76457
76457
  "StartDebugging",
@@ -76463,6 +76463,8 @@ function runFileTool(session) {
76463
76463
  "StepInto",
76464
76464
  "StepOver",
76465
76465
  "StepOut",
76466
+ "GetDebugState",
76467
+ "SetBreakpoints",
76466
76468
  "Stop",
76467
76469
  "ToggleBreakpoint",
76468
76470
  "RestartFromTop",
@@ -76511,6 +76513,16 @@ function runFileTool(session) {
76511
76513
  description: "Run/debug on the configured remote agent (Orchestrator unattended robot) " + "instead of locally. Configure the target first with `rpa remote configure`. " + "Only affects start commands (StartExecution, StartDebugging, " + "StartDebuggingFromHere, TestActivity). Works with both Studio and Helm backends.",
76512
76514
  default: false
76513
76515
  },
76516
+ breakpoints: {
76517
+ type: "string",
76518
+ contentMediaType: "application/json",
76519
+ contentSchema: { type: "array" },
76520
+ description: "Activity breakpoints for XAML debugging (a JSON array; one object per " + "breakpoint). Used by StartDebugging (initial set) and SetBreakpoints " + "(replaces the running session's whole set). Each breakpoint has: " + "workflowFile (required; workflow path relative to the project root), " + "activityIdRef (the target activity's sap2010:WorkflowViewState.IdRef " + "attribute value from the XAML — the stable way to address an activity) " + "or activityId (runtime id), plus optional condition (VB/C# expression; " + "breaks only when True), hitCount (break only on exactly the Nth hit), " + "and enabled (defaults to true). May be supplied as repeatable " + "comma-separated key=value items — one array item per occurrence: " + "--breakpoints 'workflowFile=Main.xaml,activityIdRef=Assign_1' " + "--breakpoints 'workflowFile=Main.xaml,activityIdRef=Click_2,hitCount:=3' " + "— or from a JSON file using '@breakpoints.json' or --breakpoints-file. " + "When execution pauses at a breakpoint, the result carries DebugState " + "'Paused' with the activity and locals in DebugDetails. Helm backend only."
76521
+ },
76522
+ waitTimeoutSeconds: {
76523
+ type: "number",
76524
+ description: "Maximum seconds a mid-session debug command (Continue, Step*, Break, " + "GetDebugState) waits for the next stable state before returning " + "DebugState 'Running'. Defaults to 120 (0 for GetDebugState, making it " + "an instant probe). Ignored for start commands. Helm backend only."
76525
+ },
76514
76526
  folderPath: {
76515
76527
  type: "string",
76516
76528
  description: "Orchestrator folder fully-qualified path (e.g., 'Shared/Finance'). " + "SET THIS when the workflow uses folder-scoped activities such as Get/Set Asset, " + "queue items, storage buckets, Get/Invoke Process, or long-running workflows. " + "Omit for pure local automations with no Orchestrator resource access. " + "When omitted, the runtime falls back to the connection's default folder " + "(typically the user's personal workspace). " + "Mirrors the uipcli --folder-path convention."
@@ -76528,6 +76540,8 @@ function runFileTool(session) {
76528
76540
  const profiling = args.profiling ?? false;
76529
76541
  const remote = args.remote ?? false;
76530
76542
  const folderPath = args.folderPath;
76543
+ const waitTimeoutSeconds = args.waitTimeoutSeconds;
76544
+ const breakpoints = toJsonText(args.breakpoints);
76531
76545
  for (const [name, value] of [
76532
76546
  ["inputArguments", inputArguments],
76533
76547
  ["inputVariables", inputVariables]
@@ -76568,7 +76582,7 @@ function runFileTool(session) {
76568
76582
  }
76569
76583
  }
76570
76584
  const helmRun = new HelmRunService(session2);
76571
- const helmResult = await helmRun.runFile(filePath, inputArguments ?? "", logLevel, command, skipBuild, profiling, folderPath);
76585
+ const helmResult = await helmRun.runFile(filePath, inputArguments ?? "", logLevel, command, skipBuild, profiling, folderPath, waitTimeoutSeconds, breakpoints);
76572
76586
  return {
76573
76587
  content: [
76574
76588
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/rpa-tool",
3
- "version": "1.197.0",
3
+ "version": "1.197.1",
4
4
  "description": "Tool for creating and managing UiPath RPA projects",
5
5
  "keywords": [
6
6
  "uipcli-tool",
@@ -47,11 +47,11 @@
47
47
  "@types/bun": "^1.3.12",
48
48
  "@types/node": "^25.6.0",
49
49
  "@uipath/auth": "1.198.0-dev.7755",
50
- "@uipath/common": "1.198.0-dev.7755",
50
+ "@uipath/common": "1.198.0-dev.7807",
51
51
  "@uipath/coreipc": "2.5.1-20260324-07",
52
52
  "@uipath/filesystem": "1.198.0-dev.7755",
53
- "@uipath/packager-tool-workflowcompiler": "1.198.0-dev.7755",
54
- "@uipath/project-packager": "1.198.0-dev.7755",
53
+ "@uipath/packager-tool-workflowcompiler": "1.198.0-dev.7807",
54
+ "@uipath/project-packager": "1.198.0-dev.7807",
55
55
  "@uipath/solution-sdk": "1.198.0-dev.7755",
56
56
  "@uipath/solutionpackager-tool-core": "1.198.0-dev.7755",
57
57
  "camelcase-keys": "^10.0.2",
@@ -59,11 +59,11 @@
59
59
  "typescript": "^5.7.2"
60
60
  },
61
61
  "optionalDependencies": {
62
- "@uipath/studio-helm-win32-x64": "1.197.0",
63
- "@uipath/studio-helm-win32-arm64": "1.197.0",
64
- "@uipath/studio-helm-linux-x64": "1.197.0",
65
- "@uipath/studio-helm-linux-arm64": "1.197.0",
66
- "@uipath/studio-helm-darwin-x64": "1.197.0",
67
- "@uipath/studio-helm-darwin-arm64": "1.197.0"
62
+ "@uipath/studio-helm-win32-x64": "1.197.1",
63
+ "@uipath/studio-helm-win32-arm64": "1.197.1",
64
+ "@uipath/studio-helm-linux-x64": "1.197.1",
65
+ "@uipath/studio-helm-linux-arm64": "1.197.1",
66
+ "@uipath/studio-helm-darwin-x64": "1.197.1",
67
+ "@uipath/studio-helm-darwin-arm64": "1.197.1"
68
68
  }
69
69
  }