@uipath/api-workflow-tool 1.197.0 → 1.198.0-preview.81

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.
@@ -1873,6 +1873,10 @@ class ProjectTool {
1873
1873
  this.logger.info("Pack operation is a noop");
1874
1874
  return ToolResult.success();
1875
1875
  }
1876
+ async cleanupAsync(_options, _cancellationToken) {
1877
+ this.logger.info("Cleanup operation is a noop");
1878
+ return ToolResult.success();
1879
+ }
1876
1880
  async getUiProjectAsync(projectPath) {
1877
1881
  const filePath = Path.join(projectPath, ProjectTool.ProjectFileName);
1878
1882
  if (!await this.fileSystem.exists(filePath)) {
@@ -3292,4 +3296,4 @@ var toolsFactoryRepository2 = _global2[REGISTRY_KEY2];
3292
3296
  // src/packager-tool.ts
3293
3297
  toolsFactoryRepository2.registerProjectToolFactory(new ApiWorkflowToolFactory);
3294
3298
 
3295
- //# debugId=354BC2FB11E3051664756E2164756E21
3299
+ //# debugId=23A175C5755BF7F464756E2164756E21
package/dist/tool.js CHANGED
@@ -22577,6 +22577,10 @@ class ProjectTool2 {
22577
22577
  this.logger.info("Pack operation is a noop");
22578
22578
  return ToolResult2.success();
22579
22579
  }
22580
+ async cleanupAsync(_options, _cancellationToken) {
22581
+ this.logger.info("Cleanup operation is a noop");
22582
+ return ToolResult2.success();
22583
+ }
22580
22584
  async getUiProjectAsync(projectPath) {
22581
22585
  const filePath = Path2.join(projectPath, ProjectTool2.ProjectFileName);
22582
22586
  if (!await this.fileSystem.exists(filePath)) {
@@ -23412,7 +23416,7 @@ var init_de = __esm(() => {
23412
23416
  projectLoader: {
23413
23417
  errors: {
23414
23418
  pathRequired: "Project directory path is required",
23415
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
23419
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
23416
23420
  readFailed: "Failed to read project file: {path}",
23417
23421
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
23418
23422
  }
@@ -23498,7 +23502,7 @@ var init_en = __esm(() => {
23498
23502
  projectLoader: {
23499
23503
  errors: {
23500
23504
  pathRequired: "Project directory path is required",
23501
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
23505
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
23502
23506
  readFailed: "Failed to read project file: {path}",
23503
23507
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
23504
23508
  }
@@ -23584,7 +23588,7 @@ var init_es = __esm(() => {
23584
23588
  projectLoader: {
23585
23589
  errors: {
23586
23590
  pathRequired: "Project directory path is required",
23587
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
23591
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
23588
23592
  readFailed: "Failed to read project file: {path}",
23589
23593
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
23590
23594
  }
@@ -23670,7 +23674,7 @@ var init_es_MX = __esm(() => {
23670
23674
  projectLoader: {
23671
23675
  errors: {
23672
23676
  pathRequired: "Project directory path is required",
23673
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
23677
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
23674
23678
  readFailed: "Failed to read project file: {path}",
23675
23679
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
23676
23680
  }
@@ -23756,7 +23760,7 @@ var init_fr = __esm(() => {
23756
23760
  projectLoader: {
23757
23761
  errors: {
23758
23762
  pathRequired: "Project directory path is required",
23759
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
23763
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
23760
23764
  readFailed: "Failed to read project file: {path}",
23761
23765
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
23762
23766
  }
@@ -23842,7 +23846,7 @@ var init_ja = __esm(() => {
23842
23846
  projectLoader: {
23843
23847
  errors: {
23844
23848
  pathRequired: "Project directory path is required",
23845
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
23849
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
23846
23850
  readFailed: "Failed to read project file: {path}",
23847
23851
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
23848
23852
  }
@@ -23928,7 +23932,7 @@ var init_ko = __esm(() => {
23928
23932
  projectLoader: {
23929
23933
  errors: {
23930
23934
  pathRequired: "Project directory path is required",
23931
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
23935
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
23932
23936
  readFailed: "Failed to read project file: {path}",
23933
23937
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
23934
23938
  }
@@ -24014,7 +24018,7 @@ var init_pt = __esm(() => {
24014
24018
  projectLoader: {
24015
24019
  errors: {
24016
24020
  pathRequired: "Project directory path is required",
24017
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
24021
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
24018
24022
  readFailed: "Failed to read project file: {path}",
24019
24023
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
24020
24024
  }
@@ -24100,7 +24104,7 @@ var init_pt_BR = __esm(() => {
24100
24104
  projectLoader: {
24101
24105
  errors: {
24102
24106
  pathRequired: "Project directory path is required",
24103
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
24107
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
24104
24108
  readFailed: "Failed to read project file: {path}",
24105
24109
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
24106
24110
  }
@@ -24186,7 +24190,7 @@ var init_ro = __esm(() => {
24186
24190
  projectLoader: {
24187
24191
  errors: {
24188
24192
  pathRequired: "Project directory path is required",
24189
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
24193
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
24190
24194
  readFailed: "Failed to read project file: {path}",
24191
24195
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
24192
24196
  }
@@ -24272,7 +24276,7 @@ var init_ru = __esm(() => {
24272
24276
  projectLoader: {
24273
24277
  errors: {
24274
24278
  pathRequired: "Project directory path is required",
24275
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
24279
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
24276
24280
  readFailed: "Failed to read project file: {path}",
24277
24281
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
24278
24282
  }
@@ -24358,7 +24362,7 @@ var init_tr = __esm(() => {
24358
24362
  projectLoader: {
24359
24363
  errors: {
24360
24364
  pathRequired: "Project directory path is required",
24361
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
24365
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
24362
24366
  readFailed: "Failed to read project file: {path}",
24363
24367
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
24364
24368
  }
@@ -24444,7 +24448,7 @@ var init_zh_CN = __esm(() => {
24444
24448
  projectLoader: {
24445
24449
  errors: {
24446
24450
  pathRequired: "Project directory path is required",
24447
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
24451
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
24448
24452
  readFailed: "Failed to read project file: {path}",
24449
24453
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
24450
24454
  }
@@ -24530,7 +24534,7 @@ var init_zh_TW = __esm(() => {
24530
24534
  projectLoader: {
24531
24535
  errors: {
24532
24536
  pathRequired: "Project directory path is required",
24533
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
24537
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
24534
24538
  readFailed: "Failed to read project file: {path}",
24535
24539
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
24536
24540
  }
@@ -24616,7 +24620,7 @@ var init_zu = __esm(() => {
24616
24620
  projectLoader: {
24617
24621
  errors: {
24618
24622
  pathRequired: "Project directory path is required",
24619
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
24623
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
24620
24624
  readFailed: "Failed to read project file: {path}",
24621
24625
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
24622
24626
  }
@@ -26215,32 +26219,6 @@ function exitCodeFromProcess2(fallback) {
26215
26219
  function isPreviewBuild2() {
26216
26220
  return previewSlot2.get(false) ?? false;
26217
26221
  }
26218
- function splitUserAgentTokens2(value) {
26219
- return value?.trim().split(/\s+/).filter(Boolean) ?? [];
26220
- }
26221
- function appendUserAgentToken2(value, userAgent) {
26222
- const tokens = splitUserAgentTokens2(value);
26223
- const seen = new Set(tokens);
26224
- for (const token of splitUserAgentTokens2(userAgent)) {
26225
- if (!seen.has(token)) {
26226
- tokens.push(token);
26227
- seen.add(token);
26228
- }
26229
- }
26230
- return tokens.join(" ");
26231
- }
26232
- function getEffectiveUserAgent2(userAgent) {
26233
- return appendUserAgentToken2(sdkUserAgentHostToken2.get(), userAgent);
26234
- }
26235
- function getHeaderName2(headers, headerName) {
26236
- return Object.keys(headers).find((key) => key.toLowerCase() === headerName.toLowerCase());
26237
- }
26238
- function addSdkUserAgentHeader2(headers, userAgent) {
26239
- const result = { ...headers ?? {} };
26240
- const headerName = getHeaderName2(result, USER_AGENT_HEADER2);
26241
- result[headerName ?? USER_AGENT_HEADER2] = appendUserAgentToken2(headerName ? result[headerName] : undefined, getEffectiveUserAgent2(userAgent));
26242
- return result;
26243
- }
26244
26222
 
26245
26223
  class BrowserContextStorage2 {
26246
26224
  contextStack = [];
@@ -28426,7 +28404,7 @@ var __create3, __getProtoOf3, __defProp3, __getOwnPropNames3, __hasOwnProp3, __t
28426
28404
  }, __toESM22 = (mod22, isNodeMode, target) => (target = mod22 != null ? __create22(__getProtoOf22(mod22)) : {}, __copyProps2(isNodeMode || !mod22 || !mod22.__esModule ? __defProp22(target, "default", {
28427
28405
  value: mod22,
28428
28406
  enumerable: true
28429
- }) : target, mod22)), require_common2, require_exception2, require_snippet2, require_type2, require_schema2, require_str2, require_seq2, require_map3, require_failsafe2, require_null2, require_bool2, require_int2, require_float2, require_json2, require_core2, require_timestamp2, require_merge3, require_binary2, require_omap2, require_pairs3, 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, logger3, formatSlot2, formatExplicitSlot2, 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_MS3, modeSlot2, PollOutcome2, REASON_BY_OUTCOME2, TERMINAL_STATUSES2, FAILURE_STATUSES2, previewSlot2, ScreenLogger2, USER_AGENT_HEADER2 = "User-Agent", sdkUserAgentHostToken2, shippedKeysSlot2, factorySlot2;
28407
+ }) : target, mod22)), require_common2, require_exception2, require_snippet2, require_type2, require_schema2, require_str2, require_seq2, require_map3, require_failsafe2, require_null2, require_bool2, require_int2, require_float2, require_json2, require_core2, require_timestamp2, require_merge3, require_binary2, require_omap2, require_pairs3, 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, logger3, 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_MS3, modeSlot2, interactiveFlagSlot2, PollOutcome2, REASON_BY_OUTCOME2, TERMINAL_STATUSES2, FAILURE_STATUSES2, previewSlot2, ScreenLogger2, sdkUserAgentHostToken2, shippedKeysSlot2, factorySlot2;
28430
28408
  var init_dist2 = __esm(() => {
28431
28409
  __create3 = Object.create;
28432
28410
  __getProtoOf3 = Object.getPrototypeOf;
@@ -33683,6 +33661,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
33683
33661
  logger3 = SimpleLogger2.getInstance();
33684
33662
  formatSlot2 = singleton3("OutputFormat");
33685
33663
  formatExplicitSlot2 = singleton3("OutputFormatExplicit");
33664
+ helpRequestedSlot2 = singleton3("HelpRequested");
33686
33665
  filterSlot2 = singleton3("OutputFilter");
33687
33666
  recordedFailureSlot2 = singleton3("CommandTelemetryFailure");
33688
33667
  AUTH_ERROR_CODES2 = new Set([
@@ -33919,6 +33898,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
33919
33898
  if (opts?.warning) {
33920
33899
  data.Warning = opts.warning;
33921
33900
  }
33901
+ if (opts?.pagination) {
33902
+ data.Pagination = opts.pagination;
33903
+ }
33922
33904
  success(data);
33923
33905
  }
33924
33906
  OutputFormatter3.emitList = emitList;
@@ -34138,6 +34120,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
34138
34120
  savedOriginalsSlot2 = singleton3("ConsoleGuardOriginals");
34139
34121
  DEFAULT_AUTH_TIMEOUT_MS3 = 5 * 60 * 1000;
34140
34122
  modeSlot2 = singleton3("InteractivityMode");
34123
+ interactiveFlagSlot2 = singleton3("InteractiveFlag");
34141
34124
  PollOutcome2 = {
34142
34125
  Completed: "completed",
34143
34126
  Timeout: "timeout",
@@ -36039,10 +36022,12 @@ var init_telemetry_names = __esm(() => {
36039
36022
  TelemetryNames2["ProjectToolRestore"] = "ProjectPackager.Tool.Restore";
36040
36023
  TelemetryNames2["ProjectToolValidate"] = "ProjectPackager.Tool.Validate";
36041
36024
  TelemetryNames2["ProjectToolBuild"] = "ProjectPackager.Tool.Build";
36025
+ TelemetryNames2["ProjectToolCleanup"] = "ProjectPackager.Tool.Cleanup";
36042
36026
  TelemetryNames2["ProjectPackagerPack"] = "ProjectPackager.Pack";
36043
36027
  TelemetryNames2["ProjectPackagerRestore"] = "ProjectPackager.Restore";
36044
36028
  TelemetryNames2["ProjectPackagerValidate"] = "ProjectPackager.Validate";
36045
36029
  TelemetryNames2["ProjectPackagerBuild"] = "ProjectPackager.Build";
36030
+ TelemetryNames2["ProjectPackagerCleanup"] = "ProjectPackager.Cleanup";
36046
36031
  TelemetryNames2["ProjectPackagerProjectLoaded"] = "ProjectPackager.ProjectLoaded";
36047
36032
  })(TelemetryNames ||= {});
36048
36033
  });
@@ -36051,6 +36036,7 @@ var init_telemetry_names = __esm(() => {
36051
36036
  class PackagerParameters {
36052
36037
  inputPath;
36053
36038
  downloadUrl;
36039
+ projectId;
36054
36040
  logLevel = LogLevel2.Warn;
36055
36041
  outputPath;
36056
36042
  targetFramework;
@@ -36356,6 +36342,7 @@ var init_project_build_options_validator = __esm(() => {
36356
36342
  class ProjectLoader {
36357
36343
  fileSystem;
36358
36344
  static WebAppManifestFileName = "webAppManifest.json";
36345
+ static ProjectJsonFileName = "project.json";
36359
36346
  constructor(fileSystem) {
36360
36347
  this.fileSystem = fileSystem;
36361
36348
  }
@@ -36368,6 +36355,10 @@ class ProjectLoader {
36368
36355
  if (projectFileExists) {
36369
36356
  return await this.loadFromProjectFile(projectPath, projectFilePath);
36370
36357
  }
36358
+ const projectJsonPath = Path2.join(projectPath, ProjectLoader.ProjectJsonFileName);
36359
+ if (await this.fileSystem.exists(projectJsonPath)) {
36360
+ return await this.loadFromProjectFile(projectPath, projectJsonPath, true);
36361
+ }
36371
36362
  const webAppManifestPath = Path2.join(projectPath, ProjectLoader.WebAppManifestFileName);
36372
36363
  const webAppManifestExists = await this.fileSystem.exists(webAppManifestPath);
36373
36364
  if (webAppManifestExists) {
@@ -36375,11 +36366,12 @@ class ProjectLoader {
36375
36366
  }
36376
36367
  throw new Error(translate2.t("solutionpackager.projectLoader.errors.noProjectFile", {
36377
36368
  projectFile: ProjectTool2.ProjectFileName,
36369
+ projectJsonFile: ProjectLoader.ProjectJsonFileName,
36378
36370
  manifestFile: ProjectLoader.WebAppManifestFileName,
36379
36371
  path: projectPath
36380
36372
  }));
36381
36373
  }
36382
- async loadFromProjectFile(projectPath, projectFilePath) {
36374
+ async loadFromProjectFile(projectPath, projectFilePath, useProjectJson = false) {
36383
36375
  const fileContent = await this.fileSystem.readFile(projectFilePath);
36384
36376
  if (!fileContent) {
36385
36377
  throw new Error(translate2.t("solutionpackager.projectLoader.errors.readFailed", {
@@ -36388,7 +36380,8 @@ class ProjectLoader {
36388
36380
  }
36389
36381
  const json = typeof fileContent === "string" ? fileContent : new TextDecoder("utf-8").decode(fileContent);
36390
36382
  const projectData = JSON.parse(json);
36391
- const projectType = projectData?.ProjectType || projectData?.type;
36383
+ const outputType = useProjectJson ? projectData.designOptions?.outputType : undefined;
36384
+ const projectType = outputType ?? (projectData?.ProjectType || projectData?.type);
36392
36385
  if (!projectData || !projectType) {
36393
36386
  throw new Error(translate2.t("solutionpackager.projectLoader.errors.invalidProject", {
36394
36387
  path: projectFilePath
@@ -36501,6 +36494,12 @@ class ProjectToolExecutor {
36501
36494
  projectType: project.Type
36502
36495
  }));
36503
36496
  }
36497
+ async cleanupAsync(options, project, context, cancellationToken) {
36498
+ return await this.executeToolOperationAsync(project, context, (tool) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Cleanup" /* ProjectToolCleanup */, project.Type, async () => tool.cleanupAsync(options, cancellationToken), {
36499
+ projectId: project.Id,
36500
+ projectType: project.Type
36501
+ }));
36502
+ }
36504
36503
  async executeToolOperationAsync(project, context, operation) {
36505
36504
  try {
36506
36505
  const tool = await this.toolsFactory.createProjectToolAsync(project, context);
@@ -36631,7 +36630,8 @@ class ProjectPackager {
36631
36630
  logLevel: options.logLevel,
36632
36631
  outputPath: options.outputPath
36633
36632
  };
36634
- return await this.projectExecutor.restoreAsync(restoreOptions, uiPathProject, undefined, cancellationToken);
36633
+ const context = this.createOperationContext(options, uiPathProject);
36634
+ return await this.projectExecutor.restoreAsync(restoreOptions, uiPathProject, context, cancellationToken);
36635
36635
  }, cancellationToken);
36636
36636
  }
36637
36637
  async validateProjectAsync(options, cancellationToken) {
@@ -36729,6 +36729,20 @@ class ProjectPackager {
36729
36729
  }
36730
36730
  });
36731
36731
  }
36732
+ async cleanupProjectAsync(options, cancellationToken) {
36733
+ return await this.executeProjectOperationAsync(options, "Cleanup", "ProjectPackager.Cleanup" /* ProjectPackagerCleanup */, async (uiPathProject, loadedProject) => {
36734
+ const cleanupOptions = {
36735
+ projectPath: loadedProject.projectPath,
36736
+ excludeConfiguredSources: options.excludeConfiguredSources ?? false,
36737
+ nuGetSourcesConfigPath: options.nuGetSourcesConfigPath,
36738
+ logLevel: options.logLevel,
36739
+ dryRun: options.dryRun ?? false,
36740
+ skipImports: options.skipImports ?? false
36741
+ };
36742
+ const context = this.createOperationContext(options, uiPathProject);
36743
+ return await this.projectExecutor.cleanupAsync(cleanupOptions, uiPathProject, context, cancellationToken);
36744
+ }, cancellationToken);
36745
+ }
36732
36746
  async getPackageStreamsAsync(result) {
36733
36747
  if (!result.isSuccess) {
36734
36748
  throw new Error(translate2.t("solutionpackager.packager.errors.failedToGetStreams", {
@@ -36783,6 +36797,7 @@ class ProjectPackager {
36783
36797
  id: crypto.randomUUID(),
36784
36798
  projects: [uiPathProject],
36785
36799
  downloadUrl: options.downloadUrl,
36800
+ projectId: options.projectId,
36786
36801
  targetFramework: options.targetFramework ?? TargetFramework2.Portable,
36787
36802
  connection: options.connection,
36788
36803
  logger: this.logger,
@@ -37676,6 +37691,7 @@ __export(exports_node, {
37676
37691
  ProjectPackager: () => ProjectPackager2,
37677
37692
  ProjectPackOptions: () => ProjectPackOptions,
37678
37693
  ProjectLoader: () => ProjectLoader2,
37694
+ ProjectCleanupOptions: () => ProjectCleanupOptions,
37679
37695
  ProjectBuildOptionsValidator: () => ProjectBuildOptionsValidator2,
37680
37696
  ProjectBuildOptions: () => ProjectBuildOptions,
37681
37697
  PackagerParametersValidator: () => PackagerParametersValidator2,
@@ -39191,32 +39207,6 @@ function exitCodeFromProcess3(fallback) {
39191
39207
  function isPreviewBuild3() {
39192
39208
  return previewSlot3.get(false) ?? false;
39193
39209
  }
39194
- function splitUserAgentTokens3(value) {
39195
- return value?.trim().split(/\s+/).filter(Boolean) ?? [];
39196
- }
39197
- function appendUserAgentToken3(value, userAgent) {
39198
- const tokens = splitUserAgentTokens3(value);
39199
- const seen = new Set(tokens);
39200
- for (const token of splitUserAgentTokens3(userAgent)) {
39201
- if (!seen.has(token)) {
39202
- tokens.push(token);
39203
- seen.add(token);
39204
- }
39205
- }
39206
- return tokens.join(" ");
39207
- }
39208
- function getEffectiveUserAgent3(userAgent) {
39209
- return appendUserAgentToken3(sdkUserAgentHostToken3.get(), userAgent);
39210
- }
39211
- function getHeaderName3(headers, headerName) {
39212
- return Object.keys(headers).find((key) => key.toLowerCase() === headerName.toLowerCase());
39213
- }
39214
- function addSdkUserAgentHeader3(headers, userAgent) {
39215
- const result = { ...headers ?? {} };
39216
- const headerName = getHeaderName3(result, USER_AGENT_HEADER3);
39217
- result[headerName ?? USER_AGENT_HEADER3] = appendUserAgentToken3(headerName ? result[headerName] : undefined, getEffectiveUserAgent3(userAgent));
39218
- return result;
39219
- }
39220
39210
 
39221
39211
  class ConsoleTelemetryProvider3 {
39222
39212
  async trackEvent(eventName, _properties) {
@@ -39336,6 +39326,7 @@ class BaseNodePackagerFactory {
39336
39326
  class PackagerParameters2 {
39337
39327
  inputPath;
39338
39328
  downloadUrl;
39329
+ projectId;
39339
39330
  logLevel = LogLevel2.Warn;
39340
39331
  outputPath;
39341
39332
  targetFramework;
@@ -39675,6 +39666,7 @@ class PackagerParametersValidator2 {
39675
39666
  class ProjectLoader2 {
39676
39667
  fileSystem;
39677
39668
  static WebAppManifestFileName = "webAppManifest.json";
39669
+ static ProjectJsonFileName = "project.json";
39678
39670
  constructor(fileSystem) {
39679
39671
  this.fileSystem = fileSystem;
39680
39672
  }
@@ -39687,6 +39679,10 @@ class ProjectLoader2 {
39687
39679
  if (projectFileExists) {
39688
39680
  return await this.loadFromProjectFile(projectPath, projectFilePath);
39689
39681
  }
39682
+ const projectJsonPath = Path2.join(projectPath, ProjectLoader2.ProjectJsonFileName);
39683
+ if (await this.fileSystem.exists(projectJsonPath)) {
39684
+ return await this.loadFromProjectFile(projectPath, projectJsonPath, true);
39685
+ }
39690
39686
  const webAppManifestPath = Path2.join(projectPath, ProjectLoader2.WebAppManifestFileName);
39691
39687
  const webAppManifestExists = await this.fileSystem.exists(webAppManifestPath);
39692
39688
  if (webAppManifestExists) {
@@ -39694,11 +39690,12 @@ class ProjectLoader2 {
39694
39690
  }
39695
39691
  throw new Error(translate2.t("solutionpackager.projectLoader.errors.noProjectFile", {
39696
39692
  projectFile: ProjectTool2.ProjectFileName,
39693
+ projectJsonFile: ProjectLoader2.ProjectJsonFileName,
39697
39694
  manifestFile: ProjectLoader2.WebAppManifestFileName,
39698
39695
  path: projectPath
39699
39696
  }));
39700
39697
  }
39701
- async loadFromProjectFile(projectPath, projectFilePath) {
39698
+ async loadFromProjectFile(projectPath, projectFilePath, useProjectJson = false) {
39702
39699
  const fileContent = await this.fileSystem.readFile(projectFilePath);
39703
39700
  if (!fileContent) {
39704
39701
  throw new Error(translate2.t("solutionpackager.projectLoader.errors.readFailed", {
@@ -39707,7 +39704,8 @@ class ProjectLoader2 {
39707
39704
  }
39708
39705
  const json = typeof fileContent === "string" ? fileContent : new TextDecoder("utf-8").decode(fileContent);
39709
39706
  const projectData = JSON.parse(json);
39710
- const projectType = projectData?.ProjectType || projectData?.type;
39707
+ const outputType = useProjectJson ? projectData.designOptions?.outputType : undefined;
39708
+ const projectType = outputType ?? (projectData?.ProjectType || projectData?.type);
39711
39709
  if (!projectData || !projectType) {
39712
39710
  throw new Error(translate2.t("solutionpackager.projectLoader.errors.invalidProject", {
39713
39711
  path: projectFilePath
@@ -39800,6 +39798,12 @@ class ProjectToolExecutor2 {
39800
39798
  projectType: project.Type
39801
39799
  }));
39802
39800
  }
39801
+ async cleanupAsync(options, project, context, cancellationToken) {
39802
+ return await this.executeToolOperationAsync(project, context, (tool) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Cleanup", project.Type, async () => tool.cleanupAsync(options, cancellationToken), {
39803
+ projectId: project.Id,
39804
+ projectType: project.Type
39805
+ }));
39806
+ }
39803
39807
  async executeToolOperationAsync(project, context, operation) {
39804
39808
  try {
39805
39809
  const tool = await this.toolsFactory.createProjectToolAsync(project, context);
@@ -39910,7 +39914,8 @@ class ProjectPackager2 {
39910
39914
  logLevel: options.logLevel,
39911
39915
  outputPath: options.outputPath
39912
39916
  };
39913
- return await this.projectExecutor.restoreAsync(restoreOptions, uiPathProject, undefined, cancellationToken);
39917
+ const context = this.createOperationContext(options, uiPathProject);
39918
+ return await this.projectExecutor.restoreAsync(restoreOptions, uiPathProject, context, cancellationToken);
39914
39919
  }, cancellationToken);
39915
39920
  }
39916
39921
  async validateProjectAsync(options, cancellationToken) {
@@ -40008,6 +40013,20 @@ class ProjectPackager2 {
40008
40013
  }
40009
40014
  });
40010
40015
  }
40016
+ async cleanupProjectAsync(options, cancellationToken) {
40017
+ return await this.executeProjectOperationAsync(options, "Cleanup", "ProjectPackager.Cleanup", async (uiPathProject, loadedProject) => {
40018
+ const cleanupOptions = {
40019
+ projectPath: loadedProject.projectPath,
40020
+ excludeConfiguredSources: options.excludeConfiguredSources ?? false,
40021
+ nuGetSourcesConfigPath: options.nuGetSourcesConfigPath,
40022
+ logLevel: options.logLevel,
40023
+ dryRun: options.dryRun ?? false,
40024
+ skipImports: options.skipImports ?? false
40025
+ };
40026
+ const context = this.createOperationContext(options, uiPathProject);
40027
+ return await this.projectExecutor.cleanupAsync(cleanupOptions, uiPathProject, context, cancellationToken);
40028
+ }, cancellationToken);
40029
+ }
40011
40030
  async getPackageStreamsAsync(result) {
40012
40031
  if (!result.isSuccess) {
40013
40032
  throw new Error(translate2.t("solutionpackager.packager.errors.failedToGetStreams", {
@@ -40062,6 +40081,7 @@ class ProjectPackager2 {
40062
40081
  id: crypto.randomUUID(),
40063
40082
  projects: [uiPathProject],
40064
40083
  downloadUrl: options.downloadUrl,
40084
+ projectId: options.projectId,
40065
40085
  targetFramework: options.targetFramework ?? TargetFramework2.Portable,
40066
40086
  connection: options.connection,
40067
40087
  logger: this.logger,
@@ -40241,6 +40261,58 @@ class NugetFeedPublisher {
40241
40261
  }
40242
40262
  }
40243
40263
  }
40264
+ function singleton22(ctorOrName) {
40265
+ const name = typeof ctorOrName === "string" ? ctorOrName : ctorOrName.name;
40266
+ const key = Symbol.for(PREFIX22 + name);
40267
+ return {
40268
+ get(fallback) {
40269
+ return _g22[key] ?? fallback;
40270
+ },
40271
+ set(value) {
40272
+ _g22[key] = value;
40273
+ },
40274
+ clear() {
40275
+ delete _g22[key];
40276
+ },
40277
+ getOrInit(factory, guard) {
40278
+ const existing = _g22[key];
40279
+ if (existing != null && typeof existing === "object") {
40280
+ if (!guard || guard(existing)) {
40281
+ return existing;
40282
+ }
40283
+ }
40284
+ const instance = factory();
40285
+ _g22[key] = instance;
40286
+ return instance;
40287
+ }
40288
+ };
40289
+ }
40290
+ function splitUserAgentTokens2(value) {
40291
+ return value?.trim().split(/\s+/).filter(Boolean) ?? [];
40292
+ }
40293
+ function appendUserAgentToken2(value, userAgent) {
40294
+ const tokens = splitUserAgentTokens2(value);
40295
+ const seen = new Set(tokens);
40296
+ for (const token of splitUserAgentTokens2(userAgent)) {
40297
+ if (!seen.has(token)) {
40298
+ tokens.push(token);
40299
+ seen.add(token);
40300
+ }
40301
+ }
40302
+ return tokens.join(" ");
40303
+ }
40304
+ function getEffectiveUserAgent2(userAgent) {
40305
+ return appendUserAgentToken2(sdkUserAgentHostToken22.get(), userAgent);
40306
+ }
40307
+ function getHeaderName2(headers, headerName) {
40308
+ return Object.keys(headers).find((key) => key.toLowerCase() === headerName.toLowerCase());
40309
+ }
40310
+ function addSdkUserAgentHeader2(headers, userAgent) {
40311
+ const result = { ...headers ?? {} };
40312
+ const headerName = getHeaderName2(result, USER_AGENT_HEADER2);
40313
+ result[headerName ?? USER_AGENT_HEADER2] = appendUserAgentToken2(headerName ? result[headerName] : undefined, getEffectiveUserAgent2(userAgent));
40314
+ return result;
40315
+ }
40244
40316
 
40245
40317
  class OrchestratorFeedsService {
40246
40318
  logger;
@@ -40317,7 +40389,7 @@ function buildHeaders(connection) {
40317
40389
  if (connection.tenantId) {
40318
40390
  headers[HEADER_TENANT_ID] = connection.tenantId;
40319
40391
  }
40320
- return addSdkUserAgentHeader3(headers, SDK_USER_AGENT2);
40392
+ return addSdkUserAgentHeader2(headers, SDK_USER_AGENT2);
40321
40393
  }
40322
40394
  function normalizeOrchestratorBasePath(orchestratorUrl) {
40323
40395
  let end = orchestratorUrl.length;
@@ -42701,7 +42773,7 @@ var de_default2, en4, es_default2, es_MX_default2, fr_default2, ja_default2, ko_
42701
42773
  }, __toESM23 = (mod22, isNodeMode, target) => (target = mod22 != null ? __create23(__getProtoOf23(mod22)) : {}, __copyProps3(isNodeMode || !mod22 || !mod22.__esModule ? __defProp23(target, "default", {
42702
42774
  value: mod22,
42703
42775
  enumerable: true
42704
- }) : target, mod22)), require_common3, require_exception3, require_snippet3, require_type3, require_schema3, require_str3, require_seq3, require_map4, require_failsafe3, require_null3, require_bool3, require_int3, require_float3, require_json3, require_core3, require_timestamp3, require_merge4, require_binary3, require_omap3, require_pairs4, require_set3, require_default3, require_loader3, require_dumper3, import_js_yaml3, Type3, Schema3, FAILSAFE_SCHEMA3, JSON_SCHEMA3, CORE_SCHEMA3, DEFAULT_SCHEMA3, load3, loadAll3, dump3, YAMLException3, types3, safeLoad3, safeLoadAll3, safeDump3, index_vite_proxy_tmp_default3, logFilePathSlot3, LogLevel4, DEFAULT_LOG_LEVEL3 = 3, SimpleLogger3, loggerSingleton3, logger4, formatSlot3, formatExplicitSlot3, filterSlot3, recordedFailureSlot3, AUTH_ERROR_CODES3, VALIDATION_ERROR_CODES3, NETWORK_HTTP_ERROR_CODES3, TIMEOUT_ERROR_CODES3, NETWORK_OS_ERROR_CODES3, TIMEOUT_OS_ERROR_CODES3, TLS_ERROR_CODES23, MISSING_DEPENDENCY_CODES3, INTERNAL_ERROR_NAMES3, CommonTelemetryEvents3, KNOWN_AGENTS3, LOCAL_HOSTS3, authSignalSlot3, isTruthy3 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual3 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES3, TELEMETRY_SESSION_ID_ENV3 = "UIPATH_SESSION_ID", TELEMETRY_SESSION_ID_PROPERTY3 = "session_id", telemetrySessionIdSlot3, telemetryPropsSlot3, providerSlot3, telemetryInstanceSlot3, DEFAULT_AI_CONNECTION_STRING3, _localTelemetryInstance3, telemetry3, CLI_ERROR_CODES3, RETRY_HINTS3, RESULTS3, EXIT_CODES3, FilterEvaluationError3, OutputFormatter3, LEGACY_SKILL_NAMESPACE3 = "uipath:", MAX_SKILL_NAME_LENGTH3 = 80, SKILL_NAME_PATTERN3, SKILL_ATTRIBUTION3, KNOWN_SKILL_NAMES3, COMMAND_ATTRIBUTION3, REDACTED3 = "[REDACTED]", MAX_VALUE_LENGTH3 = 200, SENSITIVE_NAME_TOKENS3, SENSITIVE_KEY_PREFIXES3, UUID_PATTERN3, EMAIL_PATTERN3, JWT_PATTERN3, LONG_TOKEN_PATTERN3, USER_HOME_PATTERN3, URL_PATTERN3, URL_TRAILING_PUNCT3, pollSignalSlot3, cliErrorCodeValues3, retryHintValues3, guardInstalledSlot3, savedOriginalsSlot3, DEFAULT_AUTH_TIMEOUT_MS4, modeSlot3, PollOutcome3, REASON_BY_OUTCOME3, TERMINAL_STATUSES3, FAILURE_STATUSES3, previewSlot3, ScreenLogger3, USER_AGENT_HEADER3 = "User-Agent", sdkUserAgentHostToken3, shippedKeysSlot3, factorySlot3, globalLogHandler2 = (logMessage) => {
42776
+ }) : target, mod22)), require_common3, require_exception3, require_snippet3, require_type3, require_schema3, require_str3, require_seq3, require_map4, require_failsafe3, require_null3, require_bool3, require_int3, require_float3, require_json3, require_core3, require_timestamp3, require_merge4, require_binary3, require_omap3, require_pairs4, require_set3, require_default3, require_loader3, require_dumper3, import_js_yaml3, Type3, Schema3, FAILSAFE_SCHEMA3, JSON_SCHEMA3, CORE_SCHEMA3, DEFAULT_SCHEMA3, load3, loadAll3, dump3, YAMLException3, types3, safeLoad3, safeLoadAll3, safeDump3, index_vite_proxy_tmp_default3, logFilePathSlot3, LogLevel4, DEFAULT_LOG_LEVEL3 = 3, SimpleLogger3, loggerSingleton3, logger4, formatSlot3, formatExplicitSlot3, helpRequestedSlot3, filterSlot3, recordedFailureSlot3, AUTH_ERROR_CODES3, VALIDATION_ERROR_CODES3, NETWORK_HTTP_ERROR_CODES3, TIMEOUT_ERROR_CODES3, NETWORK_OS_ERROR_CODES3, TIMEOUT_OS_ERROR_CODES3, TLS_ERROR_CODES23, MISSING_DEPENDENCY_CODES3, INTERNAL_ERROR_NAMES3, CommonTelemetryEvents3, KNOWN_AGENTS3, LOCAL_HOSTS3, authSignalSlot3, isTruthy3 = (value) => value !== undefined && value !== "" && value !== "0" && value.toLowerCase() !== "false", isEqual3 = (value, expected) => value?.toLowerCase() === expected, CI_SIGNATURES3, TELEMETRY_SESSION_ID_ENV3 = "UIPATH_SESSION_ID", TELEMETRY_SESSION_ID_PROPERTY3 = "session_id", telemetrySessionIdSlot3, telemetryPropsSlot3, providerSlot3, telemetryInstanceSlot3, DEFAULT_AI_CONNECTION_STRING3, _localTelemetryInstance3, telemetry3, CLI_ERROR_CODES3, RETRY_HINTS3, RESULTS3, EXIT_CODES3, FilterEvaluationError3, OutputFormatter3, LEGACY_SKILL_NAMESPACE3 = "uipath:", MAX_SKILL_NAME_LENGTH3 = 80, SKILL_NAME_PATTERN3, SKILL_ATTRIBUTION3, KNOWN_SKILL_NAMES3, COMMAND_ATTRIBUTION3, REDACTED3 = "[REDACTED]", MAX_VALUE_LENGTH3 = 200, SENSITIVE_NAME_TOKENS3, SENSITIVE_KEY_PREFIXES3, UUID_PATTERN3, EMAIL_PATTERN3, JWT_PATTERN3, LONG_TOKEN_PATTERN3, USER_HOME_PATTERN3, URL_PATTERN3, URL_TRAILING_PUNCT3, pollSignalSlot3, cliErrorCodeValues3, retryHintValues3, guardInstalledSlot3, savedOriginalsSlot3, DEFAULT_AUTH_TIMEOUT_MS4, modeSlot3, interactiveFlagSlot3, PollOutcome3, REASON_BY_OUTCOME3, TERMINAL_STATUSES3, FAILURE_STATUSES3, previewSlot3, ScreenLogger3, sdkUserAgentHostToken3, shippedKeysSlot3, factorySlot3, globalLogHandler2 = (logMessage) => {
42705
42777
  const formattedMessage = logMessage.toFormattedString();
42706
42778
  switch (logMessage.logLevel) {
42707
42779
  case LogLevel2.Debug:
@@ -42717,7 +42789,7 @@ var de_default2, en4, es_default2, es_MX_default2, fr_default2, ja_default2, ko_
42717
42789
  console.error(formattedMessage);
42718
42790
  break;
42719
42791
  }
42720
- }, RulesConfigFileType2, ProjectRestoreOptions, ProjectValidateOptions, ProjectBuildOptions, ProjectPackOptions, TelemetryNames2, LICENSE_TYPES2, DEFAULT_PROFILE_KEY2 = "StudioWeb", ACQUIRE_LICENSE_PATH2 = "/orchestrator_/api/StudioWeb/AcquireLicense", GOVERNANCE_SUBFOLDER2 = "governance", GOVERNANCE_FILE_NAME2 = "governance-policy.json", errorMessage3 = (error) => error instanceof Error ? error.message : String(error), t2 = (key, params) => translate2.t(`solutionpackager.governance.${key}`, params), ProjectBuildOptionsValidator2, ProjectPackOptionsValidator2, ProjectValidateOptionsValidator2, NodeProjectPackagerFactory, PublishDestinationKind, NUGET_V3_PACKAGE_PUBLISH_TYPE = "PackagePublish/2.0.0", PackageFeedDtoPurposeEnum, PackageFeedDtoAuthenticationTypeEnum, ExtendedFolderDtoFeedTypeEnum, package_default3, HEADER_TENANT_ID = "X-UIPATH-TenantId", FEEDS_PATH = "/api/PackageFeeds/GetFeeds", FOLDERS_PATH = "/api/FoldersNavigation/GetAllFoldersForCurrentUser", SDK_USER_AGENT2, OrchestratorResponseError, HEADER_FOLDER_ID = "X-UIPATH-OrganizationUnitId", HEADER_TENANT_ID2 = "X-UIPATH-TenantId", HEADER_NUGET_API_KEY = "X-NuGet-ApiKey", ORCHESTRATOR_RELATIVE_URL = "/orchestrator_", PROCESSES_UPLOAD_PATH = "/odata/Processes/UiPath.Server.Configuration.OData.UploadPackage", LIBRARIES_UPLOAD_PATH = "/odata/Libraries/UiPath.Server.Configuration.OData.UploadPackage", NodeProjectPublisherFactory;
42792
+ }, RulesConfigFileType2, ProjectRestoreOptions, ProjectValidateOptions, ProjectBuildOptions, ProjectCleanupOptions, ProjectPackOptions, TelemetryNames2, LICENSE_TYPES2, DEFAULT_PROFILE_KEY2 = "StudioWeb", ACQUIRE_LICENSE_PATH2 = "/orchestrator_/api/StudioWeb/AcquireLicense", GOVERNANCE_SUBFOLDER2 = "governance", GOVERNANCE_FILE_NAME2 = "governance-policy.json", errorMessage3 = (error) => error instanceof Error ? error.message : String(error), t2 = (key, params) => translate2.t(`solutionpackager.governance.${key}`, params), ProjectBuildOptionsValidator2, ProjectPackOptionsValidator2, ProjectValidateOptionsValidator2, NodeProjectPackagerFactory, PublishDestinationKind, NUGET_V3_PACKAGE_PUBLISH_TYPE = "PackagePublish/2.0.0", PackageFeedDtoPurposeEnum, PackageFeedDtoAuthenticationTypeEnum, ExtendedFolderDtoFeedTypeEnum, PREFIX22 = "@uipath/common/", _g22, telemetryPropsSlot22, USER_AGENT_HEADER2 = "User-Agent", sdkUserAgentHostToken22, package_default3, HEADER_TENANT_ID = "X-UIPATH-TenantId", FEEDS_PATH = "/api/PackageFeeds/GetFeeds", FOLDERS_PATH = "/api/FoldersNavigation/GetAllFoldersForCurrentUser", SDK_USER_AGENT2, OrchestratorResponseError, HEADER_FOLDER_ID = "X-UIPATH-OrganizationUnitId", HEADER_TENANT_ID2 = "X-UIPATH-TenantId", HEADER_NUGET_API_KEY = "X-NuGet-ApiKey", ORCHESTRATOR_RELATIVE_URL = "/orchestrator_", PROCESSES_UPLOAD_PATH = "/odata/Processes/UiPath.Server.Configuration.OData.UploadPackage", LIBRARIES_UPLOAD_PATH = "/odata/Libraries/UiPath.Server.Configuration.OData.UploadPackage", NodeProjectPublisherFactory;
42721
42793
  var init_node2 = __esm(() => {
42722
42794
  init_dist();
42723
42795
  init_dist3();
@@ -42741,7 +42813,7 @@ var init_node2 = __esm(() => {
42741
42813
  projectLoader: {
42742
42814
  errors: {
42743
42815
  pathRequired: "Project directory path is required",
42744
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
42816
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
42745
42817
  readFailed: "Failed to read project file: {path}",
42746
42818
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
42747
42819
  }
@@ -42822,7 +42894,7 @@ var init_node2 = __esm(() => {
42822
42894
  projectLoader: {
42823
42895
  errors: {
42824
42896
  pathRequired: "Project directory path is required",
42825
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
42897
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
42826
42898
  readFailed: "Failed to read project file: {path}",
42827
42899
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
42828
42900
  }
@@ -42903,7 +42975,7 @@ var init_node2 = __esm(() => {
42903
42975
  projectLoader: {
42904
42976
  errors: {
42905
42977
  pathRequired: "Project directory path is required",
42906
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
42978
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
42907
42979
  readFailed: "Failed to read project file: {path}",
42908
42980
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
42909
42981
  }
@@ -42984,7 +43056,7 @@ var init_node2 = __esm(() => {
42984
43056
  projectLoader: {
42985
43057
  errors: {
42986
43058
  pathRequired: "Project directory path is required",
42987
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43059
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
42988
43060
  readFailed: "Failed to read project file: {path}",
42989
43061
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
42990
43062
  }
@@ -43065,7 +43137,7 @@ var init_node2 = __esm(() => {
43065
43137
  projectLoader: {
43066
43138
  errors: {
43067
43139
  pathRequired: "Project directory path is required",
43068
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43140
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
43069
43141
  readFailed: "Failed to read project file: {path}",
43070
43142
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
43071
43143
  }
@@ -43146,7 +43218,7 @@ var init_node2 = __esm(() => {
43146
43218
  projectLoader: {
43147
43219
  errors: {
43148
43220
  pathRequired: "Project directory path is required",
43149
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43221
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
43150
43222
  readFailed: "Failed to read project file: {path}",
43151
43223
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
43152
43224
  }
@@ -43227,7 +43299,7 @@ var init_node2 = __esm(() => {
43227
43299
  projectLoader: {
43228
43300
  errors: {
43229
43301
  pathRequired: "Project directory path is required",
43230
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43302
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
43231
43303
  readFailed: "Failed to read project file: {path}",
43232
43304
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
43233
43305
  }
@@ -43308,7 +43380,7 @@ var init_node2 = __esm(() => {
43308
43380
  projectLoader: {
43309
43381
  errors: {
43310
43382
  pathRequired: "Project directory path is required",
43311
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43383
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
43312
43384
  readFailed: "Failed to read project file: {path}",
43313
43385
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
43314
43386
  }
@@ -43389,7 +43461,7 @@ var init_node2 = __esm(() => {
43389
43461
  projectLoader: {
43390
43462
  errors: {
43391
43463
  pathRequired: "Project directory path is required",
43392
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43464
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
43393
43465
  readFailed: "Failed to read project file: {path}",
43394
43466
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
43395
43467
  }
@@ -43470,7 +43542,7 @@ var init_node2 = __esm(() => {
43470
43542
  projectLoader: {
43471
43543
  errors: {
43472
43544
  pathRequired: "Project directory path is required",
43473
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43545
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
43474
43546
  readFailed: "Failed to read project file: {path}",
43475
43547
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
43476
43548
  }
@@ -43551,7 +43623,7 @@ var init_node2 = __esm(() => {
43551
43623
  projectLoader: {
43552
43624
  errors: {
43553
43625
  pathRequired: "Project directory path is required",
43554
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43626
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
43555
43627
  readFailed: "Failed to read project file: {path}",
43556
43628
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
43557
43629
  }
@@ -43632,7 +43704,7 @@ var init_node2 = __esm(() => {
43632
43704
  projectLoader: {
43633
43705
  errors: {
43634
43706
  pathRequired: "Project directory path is required",
43635
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43707
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
43636
43708
  readFailed: "Failed to read project file: {path}",
43637
43709
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
43638
43710
  }
@@ -43713,7 +43785,7 @@ var init_node2 = __esm(() => {
43713
43785
  projectLoader: {
43714
43786
  errors: {
43715
43787
  pathRequired: "Project directory path is required",
43716
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43788
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
43717
43789
  readFailed: "Failed to read project file: {path}",
43718
43790
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
43719
43791
  }
@@ -43794,7 +43866,7 @@ var init_node2 = __esm(() => {
43794
43866
  projectLoader: {
43795
43867
  errors: {
43796
43868
  pathRequired: "Project directory path is required",
43797
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43869
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
43798
43870
  readFailed: "Failed to read project file: {path}",
43799
43871
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
43800
43872
  }
@@ -43875,7 +43947,7 @@ var init_node2 = __esm(() => {
43875
43947
  projectLoader: {
43876
43948
  errors: {
43877
43949
  pathRequired: "Project directory path is required",
43878
- noProjectFile: "No {projectFile} or {manifestFile} found in directory: {path}",
43950
+ noProjectFile: "No {projectFile}, {projectJsonFile}, or {manifestFile} found in directory: {path}",
43879
43951
  readFailed: "Failed to read project file: {path}",
43880
43952
  invalidProject: "Invalid project file: {path}. Missing ProjectType field."
43881
43953
  }
@@ -49221,6 +49293,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
49221
49293
  logger4 = SimpleLogger3.getInstance();
49222
49294
  formatSlot3 = singleton4("OutputFormat");
49223
49295
  formatExplicitSlot3 = singleton4("OutputFormatExplicit");
49296
+ helpRequestedSlot3 = singleton4("HelpRequested");
49224
49297
  filterSlot3 = singleton4("OutputFilter");
49225
49298
  recordedFailureSlot3 = singleton4("CommandTelemetryFailure");
49226
49299
  AUTH_ERROR_CODES3 = new Set([
@@ -49457,6 +49530,9 @@ Expecting one of '${allowedValues.join("', '")}'`);
49457
49530
  if (opts?.warning) {
49458
49531
  data.Warning = opts.warning;
49459
49532
  }
49533
+ if (opts?.pagination) {
49534
+ data.Pagination = opts.pagination;
49535
+ }
49460
49536
  success(data);
49461
49537
  }
49462
49538
  OutputFormatter22.emitList = emitList;
@@ -49676,6 +49752,7 @@ Expecting one of '${allowedValues.join("', '")}'`);
49676
49752
  savedOriginalsSlot3 = singleton4("ConsoleGuardOriginals");
49677
49753
  DEFAULT_AUTH_TIMEOUT_MS4 = 5 * 60 * 1000;
49678
49754
  modeSlot3 = singleton4("InteractivityMode");
49755
+ interactiveFlagSlot3 = singleton4("InteractiveFlag");
49679
49756
  PollOutcome3 = {
49680
49757
  Completed: "completed",
49681
49758
  Timeout: "timeout",
@@ -49740,6 +49817,10 @@ Expecting one of '${allowedValues.join("', '")}'`);
49740
49817
  ProjectBuildOptions = class ProjectBuildOptions extends ProjectValidateOptions {
49741
49818
  outputType;
49742
49819
  };
49820
+ ProjectCleanupOptions = class ProjectCleanupOptions extends PackagerParameters2 {
49821
+ dryRun = false;
49822
+ skipImports = false;
49823
+ };
49743
49824
  ProjectPackOptions = class ProjectPackOptions extends ProjectBuildOptions {
49744
49825
  destinationPath;
49745
49826
  package;
@@ -49751,10 +49832,12 @@ Expecting one of '${allowedValues.join("', '")}'`);
49751
49832
  TelemetryNames22["ProjectToolRestore"] = "ProjectPackager.Tool.Restore";
49752
49833
  TelemetryNames22["ProjectToolValidate"] = "ProjectPackager.Tool.Validate";
49753
49834
  TelemetryNames22["ProjectToolBuild"] = "ProjectPackager.Tool.Build";
49835
+ TelemetryNames22["ProjectToolCleanup"] = "ProjectPackager.Tool.Cleanup";
49754
49836
  TelemetryNames22["ProjectPackagerPack"] = "ProjectPackager.Pack";
49755
49837
  TelemetryNames22["ProjectPackagerRestore"] = "ProjectPackager.Restore";
49756
49838
  TelemetryNames22["ProjectPackagerValidate"] = "ProjectPackager.Validate";
49757
49839
  TelemetryNames22["ProjectPackagerBuild"] = "ProjectPackager.Build";
49840
+ TelemetryNames22["ProjectPackagerCleanup"] = "ProjectPackager.Cleanup";
49758
49841
  TelemetryNames22["ProjectPackagerProjectLoaded"] = "ProjectPackager.ProjectLoaded";
49759
49842
  })(TelemetryNames2 ||= {});
49760
49843
  LICENSE_TYPES2 = {
@@ -49828,10 +49911,13 @@ Expecting one of '${allowedValues.join("', '")}'`);
49828
49911
  PersonalWorkspace: "PersonalWorkspace",
49829
49912
  FolderHierarchy: "FolderHierarchy"
49830
49913
  };
49914
+ _g22 = globalThis;
49915
+ telemetryPropsSlot22 = singleton22("TelemetryDefaultProps");
49916
+ sdkUserAgentHostToken22 = singleton22("SdkUserAgentHostToken");
49831
49917
  package_default3 = {
49832
49918
  name: "@uipath/project-packager",
49833
49919
  license: "MIT",
49834
- version: "1.197.0",
49920
+ version: "1.198.0-preview.81",
49835
49921
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
49836
49922
  type: "module",
49837
49923
  main: "./dist/index.js",
@@ -49955,6 +50041,16 @@ var init_project_build_options = __esm(() => {
49955
50041
  };
49956
50042
  });
49957
50043
 
50044
+ // ../packager/project-packager/src/models/project-cleanup-options.ts
50045
+ var ProjectCleanupOptions2;
50046
+ var init_project_cleanup_options = __esm(() => {
50047
+ init_packager_parameters();
50048
+ ProjectCleanupOptions2 = class ProjectCleanupOptions2 extends PackagerParameters {
50049
+ dryRun = false;
50050
+ skipImports = false;
50051
+ };
50052
+ });
50053
+
49958
50054
  // ../packager/project-packager/src/models/project-pack-options.ts
49959
50055
  var ProjectPackOptions2;
49960
50056
  var init_project_pack_options = __esm(() => {
@@ -50149,13 +50245,73 @@ var init_orchestrator_feed_types = __esm(() => {
50149
50245
  };
50150
50246
  });
50151
50247
 
50248
+ // ../common/dist/sdk-user-agent.js
50249
+ function singleton5(ctorOrName) {
50250
+ const name = typeof ctorOrName === "string" ? ctorOrName : ctorOrName.name;
50251
+ const key = Symbol.for(PREFIX4 + name);
50252
+ return {
50253
+ get(fallback) {
50254
+ return _g4[key] ?? fallback;
50255
+ },
50256
+ set(value) {
50257
+ _g4[key] = value;
50258
+ },
50259
+ clear() {
50260
+ delete _g4[key];
50261
+ },
50262
+ getOrInit(factory, guard) {
50263
+ const existing = _g4[key];
50264
+ if (existing != null && typeof existing === "object") {
50265
+ if (!guard || guard(existing)) {
50266
+ return existing;
50267
+ }
50268
+ }
50269
+ const instance = factory();
50270
+ _g4[key] = instance;
50271
+ return instance;
50272
+ }
50273
+ };
50274
+ }
50275
+ function splitUserAgentTokens3(value) {
50276
+ return value?.trim().split(/\s+/).filter(Boolean) ?? [];
50277
+ }
50278
+ function appendUserAgentToken3(value, userAgent) {
50279
+ const tokens = splitUserAgentTokens3(value);
50280
+ const seen = new Set(tokens);
50281
+ for (const token of splitUserAgentTokens3(userAgent)) {
50282
+ if (!seen.has(token)) {
50283
+ tokens.push(token);
50284
+ seen.add(token);
50285
+ }
50286
+ }
50287
+ return tokens.join(" ");
50288
+ }
50289
+ function getEffectiveUserAgent3(userAgent) {
50290
+ return appendUserAgentToken3(sdkUserAgentHostToken4.get(), userAgent);
50291
+ }
50292
+ function getHeaderName3(headers, headerName) {
50293
+ return Object.keys(headers).find((key) => key.toLowerCase() === headerName.toLowerCase());
50294
+ }
50295
+ function addSdkUserAgentHeader3(headers, userAgent) {
50296
+ const result = { ...headers ?? {} };
50297
+ const headerName = getHeaderName3(result, USER_AGENT_HEADER3);
50298
+ result[headerName ?? USER_AGENT_HEADER3] = appendUserAgentToken3(headerName ? result[headerName] : undefined, getEffectiveUserAgent3(userAgent));
50299
+ return result;
50300
+ }
50301
+ var PREFIX4 = "@uipath/common/", _g4, telemetryPropsSlot4, USER_AGENT_HEADER3 = "User-Agent", sdkUserAgentHostToken4;
50302
+ var init_sdk_user_agent = __esm(() => {
50303
+ _g4 = globalThis;
50304
+ telemetryPropsSlot4 = singleton5("TelemetryDefaultProps");
50305
+ sdkUserAgentHostToken4 = singleton5("SdkUserAgentHostToken");
50306
+ });
50307
+
50152
50308
  // ../packager/project-packager/package.json
50153
50309
  var package_default4;
50154
50310
  var init_package = __esm(() => {
50155
50311
  package_default4 = {
50156
50312
  name: "@uipath/project-packager",
50157
50313
  license: "MIT",
50158
- version: "1.197.0",
50314
+ version: "1.198.0-preview.81",
50159
50315
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
50160
50316
  type: "module",
50161
50317
  main: "./dist/index.js",
@@ -50302,7 +50458,7 @@ function buildHeaders2(connection) {
50302
50458
  if (connection.tenantId) {
50303
50459
  headers[HEADER_TENANT_ID3] = connection.tenantId;
50304
50460
  }
50305
- return addSdkUserAgentHeader2(headers, SDK_USER_AGENT3);
50461
+ return addSdkUserAgentHeader3(headers, SDK_USER_AGENT3);
50306
50462
  }
50307
50463
  function normalizeOrchestratorBasePath2(orchestratorUrl) {
50308
50464
  let end = orchestratorUrl.length;
@@ -50332,7 +50488,7 @@ async function describeResponseError2(error) {
50332
50488
  }
50333
50489
  var HEADER_TENANT_ID3 = "X-UIPATH-TenantId", FEEDS_PATH2 = "/api/PackageFeeds/GetFeeds", FOLDERS_PATH2 = "/api/FoldersNavigation/GetAllFoldersForCurrentUser", SDK_USER_AGENT3, OrchestratorResponseError2;
50334
50490
  var init_orchestrator_feeds_service = __esm(() => {
50335
- init_dist2();
50491
+ init_sdk_user_agent();
50336
50492
  init_dist();
50337
50493
  init_package();
50338
50494
  init_tool_logger();
@@ -50591,6 +50747,7 @@ __export(exports_src, {
50591
50747
  ProjectPackager: () => ProjectPackager,
50592
50748
  ProjectPackOptions: () => ProjectPackOptions2,
50593
50749
  ProjectLoader: () => ProjectLoader,
50750
+ ProjectCleanupOptions: () => ProjectCleanupOptions2,
50594
50751
  ProjectBuildOptionsValidator: () => ProjectBuildOptionsValidator,
50595
50752
  ProjectBuildOptions: () => ProjectBuildOptions2,
50596
50753
  PackagerParametersValidator: () => PackagerParametersValidator,
@@ -50605,6 +50762,7 @@ var init_src2 = __esm(() => {
50605
50762
  init_dist2();
50606
50763
  init_packager_parameters();
50607
50764
  init_project_build_options();
50765
+ init_project_cleanup_options();
50608
50766
  init_project_pack_options();
50609
50767
  init_project_restore_options();
50610
50768
  init_project_validate_options();
@@ -76656,7 +76814,7 @@ var require_core4 = __commonJS((exports) => {
76656
76814
  };
76657
76815
  var MAX_EXPRESSION = 200;
76658
76816
  function requiredOptions(o) {
76659
- var _a2, _b2, _c, _d, _e, _f, _g4, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
76817
+ var _a2, _b2, _c, _d, _e, _f, _g5, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0;
76660
76818
  const s = o.strict;
76661
76819
  const _optz = (_a2 = o.code) === null || _a2 === undefined ? undefined : _a2.optimize;
76662
76820
  const optimize = _optz === true || _optz === undefined ? 1 : _optz || 0;
@@ -76664,7 +76822,7 @@ var require_core4 = __commonJS((exports) => {
76664
76822
  const uriResolver = (_d = o.uriResolver) !== null && _d !== undefined ? _d : uri_1.default;
76665
76823
  return {
76666
76824
  strictSchema: (_f = (_e = o.strictSchema) !== null && _e !== undefined ? _e : s) !== null && _f !== undefined ? _f : true,
76667
- strictNumbers: (_h = (_g4 = o.strictNumbers) !== null && _g4 !== undefined ? _g4 : s) !== null && _h !== undefined ? _h : true,
76825
+ strictNumbers: (_h = (_g5 = o.strictNumbers) !== null && _g5 !== undefined ? _g5 : s) !== null && _h !== undefined ? _h : true,
76668
76826
  strictTypes: (_k = (_j = o.strictTypes) !== null && _j !== undefined ? _j : s) !== null && _k !== undefined ? _k : "log",
76669
76827
  strictTuples: (_m = (_l = o.strictTuples) !== null && _l !== undefined ? _l : s) !== null && _m !== undefined ? _m : "log",
76670
76828
  strictRequired: (_p = (_o = o.strictRequired) !== null && _o !== undefined ? _o : s) !== null && _p !== undefined ? _p : false,
@@ -79601,7 +79759,7 @@ import"./packager-tool.js";
79601
79759
  var package_default = {
79602
79760
  name: "@uipath/api-workflow-tool",
79603
79761
  license: "MIT",
79604
- version: "1.197.0",
79762
+ version: "1.198.0-preview.81",
79605
79763
  description: "Run UiPath API Workflows locally.",
79606
79764
  private: false,
79607
79765
  repository: {
@@ -84695,6 +84853,7 @@ function getLogFilePath() {
84695
84853
  // ../common/src/output-format-context.ts
84696
84854
  var formatSlot = singleton("OutputFormat");
84697
84855
  var formatExplicitSlot = singleton("OutputFormatExplicit");
84856
+ var helpRequestedSlot = singleton("HelpRequested");
84698
84857
  var filterSlot = singleton("OutputFilter");
84699
84858
  function getOutputFormat() {
84700
84859
  return formatSlot.get("json");
@@ -85796,6 +85955,9 @@ var OutputFormatter;
85796
85955
  if (opts?.warning) {
85797
85956
  data.Warning = opts.warning;
85798
85957
  }
85958
+ if (opts?.pagination) {
85959
+ data.Pagination = opts.pagination;
85960
+ }
85799
85961
  success(data);
85800
85962
  }
85801
85963
  OutputFormatter.emitList = emitList;
@@ -86243,6 +86405,7 @@ var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
86243
86405
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
86244
86406
  // ../common/src/interactivity-context.ts
86245
86407
  var modeSlot = singleton("InteractivityMode");
86408
+ var interactiveFlagSlot = singleton("InteractiveFlag");
86246
86409
  // ../common/src/package-metadata-options.ts
86247
86410
  function registerPackageMetadataOptions(command) {
86248
86411
  return command.option("--author <author>", "Package author").option("--description <text>", "Package description").option("--repository-url <url>", "Source repository URL (recorded in the package for traceability)").option("--repository-commit <sha>", "Source repository commit hash (recorded in the package for traceability)").option("--repository-branch <branch>", "Source repository branch").option("--repository-type <type>", "Source repository type (defaults to 'git' when --repository-url is set)").option("--release-notes <text>", "Release notes for the package").option("--project-url <url>", "Automation Hub idea URL");
@@ -86935,7 +87098,7 @@ class TextApiResponse {
86935
87098
  var package_default2 = {
86936
87099
  name: "@uipath/integrationservice-sdk",
86937
87100
  license: "MIT",
86938
- version: "1.197.0",
87101
+ version: "1.198.0-preview.81",
86939
87102
  repository: {
86940
87103
  type: "git",
86941
87104
  url: "https://github.com/UiPath/cli.git",
@@ -93865,6 +94028,10 @@ var getAuthContext = async (options = {}) => {
93865
94028
  tenantName
93866
94029
  };
93867
94030
  };
94031
+
94032
+ // ../auth/src/index.ts
94033
+ init_constants();
94034
+
93868
94035
  // ../auth/src/interactive.ts
93869
94036
  init_src();
93870
94037
 
@@ -93889,6 +94056,20 @@ var API_DOMAIN_MAP = new Map([
93889
94056
  [SessionsApi, "connections"],
93890
94057
  [ElementsApi, "elements"]
93891
94058
  ]);
94059
+ function baseApiClassName(name) {
94060
+ let end = name.length;
94061
+ while (end > 0 && name[end - 1] >= "0" && name[end - 1] <= "9") {
94062
+ end--;
94063
+ }
94064
+ return name.slice(0, end);
94065
+ }
94066
+ var API_DOMAIN_BY_NAME = new Map([...API_DOMAIN_MAP].map(([ApiClass, domain]) => [
94067
+ baseApiClassName(ApiClass.name),
94068
+ domain
94069
+ ]));
94070
+ function resolveApiDomain(ApiClass) {
94071
+ return API_DOMAIN_MAP.get(ApiClass) ?? API_DOMAIN_BY_NAME.get(baseApiClassName(ApiClass.name));
94072
+ }
93892
94073
  async function getValidatedAuthContext(options) {
93893
94074
  const ctx = await getAuthContext({
93894
94075
  tenant: options?.tenant,
@@ -93925,7 +94106,7 @@ async function createElementsConfig(options) {
93925
94106
  });
93926
94107
  }
93927
94108
  async function createApiClient(ApiClass, options) {
93928
- const domain = API_DOMAIN_MAP.get(ApiClass);
94109
+ const domain = resolveApiDomain(ApiClass);
93929
94110
  if (!domain) {
93930
94111
  throw new Error(`Unknown API class: ${ApiClass.name}`);
93931
94112
  }
@@ -96456,7 +96637,7 @@ function querystringSingleKey3(key, value, keyPrefix = "") {
96456
96637
  var package_default5 = {
96457
96638
  name: "@uipath/solution-sdk",
96458
96639
  license: "MIT",
96459
- version: "1.197.0",
96640
+ version: "1.198.0-preview.81",
96460
96641
  repository: {
96461
96642
  type: "git",
96462
96643
  url: "https://github.com/UiPath/cli.git",
@@ -98745,4 +98926,4 @@ export {
98745
98926
  metadata
98746
98927
  };
98747
98928
 
98748
- //# debugId=12E39C939B885A6B64756E2164756E21
98929
+ //# debugId=518FD3BDCCF2B23E64756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/api-workflow-tool",
3
3
  "license": "MIT",
4
- "version": "1.197.0",
4
+ "version": "1.198.0-preview.81",
5
5
  "description": "Run UiPath API Workflows locally.",
6
6
  "private": false,
7
7
  "repository": {
@@ -23,5 +23,5 @@
23
23
  "files": [
24
24
  "dist"
25
25
  ],
26
- "gitHead": "56f68b263cec4ea1f2a39d738bd99ecf52f88fea"
26
+ "gitHead": "d6a326ee051d553694b61f4923bcf1719d2e5110"
27
27
  }