@uipath/solution-tool 1.197.0-preview.63 → 1.197.0-preview.65

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/pack.js CHANGED
@@ -177805,13 +177805,13 @@ var require_singleton = __commonJS((exports) => {
177805
177805
  Object.defineProperty(exports, "__esModule", { value: true });
177806
177806
  var injectable_1 = require_injectable();
177807
177807
  var dependency_container_1 = require_dependency_container();
177808
- function singleton5() {
177808
+ function singleton6() {
177809
177809
  return function(target) {
177810
177810
  injectable_1.default()(target);
177811
177811
  dependency_container_1.instance.registerSingleton(target);
177812
177812
  };
177813
177813
  }
177814
- exports.default = singleton5;
177814
+ exports.default = singleton6;
177815
177815
  });
177816
177816
 
177817
177817
  // ../../node_modules/tsyringe/dist/cjs/decorators/inject-all.js
@@ -178010,17 +178010,17 @@ var require_cjs = __commonJS((exports) => {
178010
178010
  });
178011
178011
 
178012
178012
  // ../auth/src/catch-error.ts
178013
- function isPromiseLike4(value) {
178013
+ function isPromiseLike5(value) {
178014
178014
  return value !== null && typeof value === "object" && typeof value.then === "function";
178015
178015
  }
178016
- function catchError4(fnOrPromise) {
178017
- if (isPromiseLike4(fnOrPromise)) {
178018
- return settlePromiseLike4(fnOrPromise);
178016
+ function catchError5(fnOrPromise) {
178017
+ if (isPromiseLike5(fnOrPromise)) {
178018
+ return settlePromiseLike5(fnOrPromise);
178019
178019
  }
178020
178020
  try {
178021
178021
  const result = fnOrPromise();
178022
- if (isPromiseLike4(result)) {
178023
- return settlePromiseLike4(result);
178022
+ if (isPromiseLike5(result)) {
178023
+ return settlePromiseLike5(result);
178024
178024
  }
178025
178025
  return [undefined, result];
178026
178026
  } catch (error95) {
@@ -178030,7 +178030,7 @@ function catchError4(fnOrPromise) {
178030
178030
  ];
178031
178031
  }
178032
178032
  }
178033
- function settlePromiseLike4(thenable) {
178033
+ function settlePromiseLike5(thenable) {
178034
178034
  return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error95) => [
178035
178035
  error95 instanceof Error ? error95 : new Error(String(error95)),
178036
178036
  undefined
@@ -201018,7 +201018,7 @@ init_dist();
201018
201018
  // ../packager/packager-tool-flow/package.json
201019
201019
  var package_default = {
201020
201020
  name: "@uipath/packager-tool-flow",
201021
- version: "1.197.0-preview.63",
201021
+ version: "1.197.0-preview.65",
201022
201022
  description: "UiPath Flow tool implementation",
201023
201023
  type: "module",
201024
201024
  exports: {
@@ -204795,6 +204795,298 @@ I18nManager.registerTranslations("zu", zu_default2);
204795
204795
  init_dist();
204796
204796
  import { execSync } from "node:child_process";
204797
204797
 
204798
+ // ../packager/packager-orchestrator-client/dist/index.js
204799
+ init_dist();
204800
+ init_dist();
204801
+ init_dist();
204802
+ var en5 = {
204803
+ packagerOrchestratorClient: {
204804
+ feeds: {
204805
+ errors: {
204806
+ orchestratorUrlRequired: "Orchestrator URL is required.",
204807
+ getAccessibleFeedsFailed: "GetAccessibleFeeds failed: {status} {statusText}{body}"
204808
+ },
204809
+ warnings: {
204810
+ tenantFeedsUnavailable: "Could not retrieve Orchestrator tenant feeds. Packaging will continue, but it may fail if a project references a library published to a tenant feed."
204811
+ }
204812
+ }
204813
+ }
204814
+ };
204815
+ I18nManager.registerTranslations("en", en5);
204816
+ function isPromiseLike(value) {
204817
+ return value !== null && typeof value === "object" && typeof value.then === "function";
204818
+ }
204819
+ function catchError(fnOrPromise) {
204820
+ if (isPromiseLike(fnOrPromise)) {
204821
+ return settlePromiseLike(fnOrPromise);
204822
+ }
204823
+ try {
204824
+ const result = fnOrPromise();
204825
+ if (isPromiseLike(result)) {
204826
+ return settlePromiseLike(result);
204827
+ }
204828
+ return [undefined, result];
204829
+ } catch (error95) {
204830
+ return [
204831
+ error95 instanceof Error ? error95 : new Error(String(error95)),
204832
+ undefined
204833
+ ];
204834
+ }
204835
+ }
204836
+ function settlePromiseLike(thenable) {
204837
+ return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error95) => [
204838
+ error95 instanceof Error ? error95 : new Error(String(error95)),
204839
+ undefined
204840
+ ]);
204841
+ }
204842
+ var PREFIX = "@uipath/common/";
204843
+ var _g = globalThis;
204844
+ function singleton(ctorOrName) {
204845
+ const name2 = typeof ctorOrName === "string" ? ctorOrName : ctorOrName.name;
204846
+ const key = Symbol.for(PREFIX + name2);
204847
+ return {
204848
+ get(fallback) {
204849
+ return _g[key] ?? fallback;
204850
+ },
204851
+ set(value) {
204852
+ _g[key] = value;
204853
+ },
204854
+ clear() {
204855
+ delete _g[key];
204856
+ },
204857
+ getOrInit(factory, guard) {
204858
+ const existing = _g[key];
204859
+ if (existing != null && typeof existing === "object") {
204860
+ if (!guard || guard(existing)) {
204861
+ return existing;
204862
+ }
204863
+ }
204864
+ const instance3 = factory();
204865
+ _g[key] = instance3;
204866
+ return instance3;
204867
+ }
204868
+ };
204869
+ }
204870
+ var telemetryPropsSlot = singleton("TelemetryDefaultProps");
204871
+ var USER_AGENT_HEADER = "User-Agent";
204872
+ var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
204873
+ function splitUserAgentTokens(value) {
204874
+ return value?.trim().split(/\s+/).filter(Boolean) ?? [];
204875
+ }
204876
+ function appendUserAgentToken(value, userAgent) {
204877
+ const tokens = splitUserAgentTokens(value);
204878
+ const seen = new Set(tokens);
204879
+ for (const token of splitUserAgentTokens(userAgent)) {
204880
+ if (!seen.has(token)) {
204881
+ tokens.push(token);
204882
+ seen.add(token);
204883
+ }
204884
+ }
204885
+ return tokens.join(" ");
204886
+ }
204887
+ function getEffectiveUserAgent(userAgent) {
204888
+ return appendUserAgentToken(sdkUserAgentHostToken.get(), userAgent);
204889
+ }
204890
+ function getHeaderName(headers, headerName) {
204891
+ return Object.keys(headers).find((key) => key.toLowerCase() === headerName.toLowerCase());
204892
+ }
204893
+ function addSdkUserAgentHeader(headers, userAgent) {
204894
+ const result = { ...headers ?? {} };
204895
+ const headerName = getHeaderName(result, USER_AGENT_HEADER);
204896
+ result[headerName ?? USER_AGENT_HEADER] = appendUserAgentToken(headerName ? result[headerName] : undefined, getEffectiveUserAgent(userAgent));
204897
+ return result;
204898
+ }
204899
+ var package_default2 = {
204900
+ name: "@uipath/packager-orchestrator-client",
204901
+ version: "1.198.0",
204902
+ description: "UiPath packager client for Orchestrator package-feed interaction (feed discovery + NuGet source composition)",
204903
+ type: "module",
204904
+ private: true,
204905
+ exports: {
204906
+ ".": {
204907
+ source: "./src/index.ts",
204908
+ default: "./dist/index.js"
204909
+ }
204910
+ },
204911
+ types: "./dist/index.d.ts",
204912
+ scripts: {
204913
+ build: "bun build ./src/index.ts --outdir dist --format esm --target node --external @uipath/solutionpackager-tool-core --sourcemap=linked && tsc --emitDeclarationOnly --outDir dist",
204914
+ dev: "bun build ./src/index.ts --outdir dist --format esm --target node --external @uipath/solutionpackager-tool-core --watch",
204915
+ test: "vitest run",
204916
+ "test:coverage": "vitest run --coverage",
204917
+ "test:all": "bun run test",
204918
+ "test:all:coverage": "bun run test:coverage",
204919
+ lint: "biome check ."
204920
+ },
204921
+ files: [
204922
+ "dist",
204923
+ "src"
204924
+ ],
204925
+ author: "",
204926
+ license: "ISC",
204927
+ repository: {
204928
+ type: "git",
204929
+ url: "https://github.com/UiPath/cli.git",
204930
+ directory: "packages/packager/packager-orchestrator-client"
204931
+ },
204932
+ peerDependencies: {
204933
+ "@uipath/solutionpackager-tool-core": "workspace:*"
204934
+ },
204935
+ devDependencies: {
204936
+ "@types/node": "^25.5.2",
204937
+ "@uipath/common": "workspace:*",
204938
+ "@uipath/solutionpackager-tool-core": "workspace:*",
204939
+ "@vitest/coverage-v8": "^4.1.6",
204940
+ typescript: "^6.0.2",
204941
+ vitest: "^4.1.6"
204942
+ }
204943
+ };
204944
+ var FEEDS_PATH = "/api/PackageFeeds/GetFeeds?onlyPublishable=false";
204945
+ var HEADER_TENANT_ID = "X-UIPATH-TenantId";
204946
+ var FEEDS_TIMEOUT_MS = 30000;
204947
+ var SDK_USER_AGENT = `${package_default2.name.replace(/^@uipath\//, "")}/${package_default2.version}`;
204948
+
204949
+ class OrchestratorFeedsService {
204950
+ logger;
204951
+ constructor(logger) {
204952
+ this.logger = logger;
204953
+ }
204954
+ async getAccessibleFeedsAsync(connection) {
204955
+ const { orchestratorUrl, accessToken, tenantId } = connection;
204956
+ if (!orchestratorUrl) {
204957
+ throw new Error(translate.t("packagerOrchestratorClient.feeds.errors.orchestratorUrlRequired"));
204958
+ }
204959
+ this.logger.info(`Fetching accessible feeds from ${orchestratorUrl}`);
204960
+ const headers = {};
204961
+ if (accessToken) {
204962
+ headers.Authorization = `Bearer ${accessToken}`;
204963
+ }
204964
+ if (tenantId) {
204965
+ headers[HEADER_TENANT_ID] = tenantId;
204966
+ }
204967
+ const response = await fetch(feedsEndpoint(orchestratorUrl), {
204968
+ method: "GET",
204969
+ headers: addSdkUserAgentHeader(headers, SDK_USER_AGENT),
204970
+ signal: AbortSignal.timeout(FEEDS_TIMEOUT_MS)
204971
+ });
204972
+ if (!response.ok) {
204973
+ throw new Error(translate.t("packagerOrchestratorClient.feeds.errors.getAccessibleFeedsFailed", await describeFailure(response)));
204974
+ }
204975
+ const text = await response.text();
204976
+ const feeds = text === "" || text === "null" ? null : JSON.parse(text);
204977
+ return Array.isArray(feeds) ? feeds : [];
204978
+ }
204979
+ }
204980
+ function feedsEndpoint(orchestratorUrl) {
204981
+ let end = orchestratorUrl.length;
204982
+ while (end > 0 && orchestratorUrl.charAt(end - 1) === "/") {
204983
+ end--;
204984
+ }
204985
+ const trimmed = orchestratorUrl.slice(0, end);
204986
+ if (/\/orchestrator_$/i.test(trimmed)) {
204987
+ return `${trimmed}${FEEDS_PATH}`;
204988
+ }
204989
+ return hasPathSegments(trimmed) ? `${trimmed}/orchestrator_${FEEDS_PATH}` : `${trimmed}${FEEDS_PATH}`;
204990
+ }
204991
+ function hasPathSegments(url5) {
204992
+ const [error95, parsed] = catchError(() => new URL(url5));
204993
+ if (error95) {
204994
+ return true;
204995
+ }
204996
+ return parsed.pathname !== "/" && parsed.pathname !== "";
204997
+ }
204998
+ async function describeFailure(response) {
204999
+ const text = await response.text().catch(() => "");
205000
+ return {
205001
+ status: response.status,
205002
+ statusText: response.statusText,
205003
+ body: text ? ` - ${text.slice(0, 500)}` : ""
205004
+ };
205005
+ }
205006
+ var feedsByTenant = new Map;
205007
+ function tenantKey(connection) {
205008
+ return JSON.stringify([
205009
+ connection.orchestratorUrl,
205010
+ connection.tenantId ?? ""
205011
+ ]);
205012
+ }
205013
+ function getAccessibleFeedsOnce(connection, fetchFeeds) {
205014
+ const key = tenantKey(connection);
205015
+ const inFlight = feedsByTenant.get(key);
205016
+ if (inFlight) {
205017
+ return inFlight;
205018
+ }
205019
+ const request = fetchFeeds();
205020
+ feedsByTenant.set(key, request);
205021
+ request.catch(() => {
205022
+ if (feedsByTenant.get(key) === request) {
205023
+ feedsByTenant.delete(key);
205024
+ }
205025
+ });
205026
+ return request;
205027
+ }
205028
+ var FEEDS_FILE_NAME = "nuget-feeds.json";
205029
+ var LIBRARIES_PURPOSE = "Libraries";
205030
+ var NO_FEEDS = { dispose: async () => {} };
205031
+
205032
+ class OrchestratorFeedComposer {
205033
+ fileSystem;
205034
+ logger;
205035
+ feedsService;
205036
+ constructor(fileSystem, logger, feedsService) {
205037
+ this.fileSystem = fileSystem;
205038
+ this.logger = logger;
205039
+ this.feedsService = feedsService ?? new OrchestratorFeedsService(logger);
205040
+ }
205041
+ async composeAsync({
205042
+ connection
205043
+ }) {
205044
+ const feeds = await this.resolveTenantFeeds(connection);
205045
+ if (feeds.length === 0) {
205046
+ return NO_FEEDS;
205047
+ }
205048
+ const [error95, composed] = await catchError(this.writeFeedsFile(feeds));
205049
+ if (error95 || !composed) {
205050
+ this.warnFeedsUnavailable();
205051
+ return NO_FEEDS;
205052
+ }
205053
+ return composed;
205054
+ }
205055
+ async resolveTenantFeeds(connection) {
205056
+ if (!connection?.accessToken || !connection.cloudUrl) {
205057
+ return [];
205058
+ }
205059
+ const { accessToken, cloudUrl, tenantId } = connection;
205060
+ const orchestratorConnection = {
205061
+ orchestratorUrl: cloudUrl,
205062
+ accessToken,
205063
+ tenantId
205064
+ };
205065
+ const [error95, feeds] = await catchError(getAccessibleFeedsOnce(orchestratorConnection, () => this.feedsService.getAccessibleFeedsAsync(orchestratorConnection)));
205066
+ if (error95 || !feeds) {
205067
+ this.warnFeedsUnavailable();
205068
+ return [];
205069
+ }
205070
+ return feeds.map((feed) => toTenantFeedSource(feed, accessToken)).filter((feed) => feed !== undefined);
205071
+ }
205072
+ async writeFeedsFile(feeds) {
205073
+ const storage = new TemporaryStorageService(this.fileSystem);
205074
+ const directory = await storage.getTempFolderPath();
205075
+ const configPath = Path.join(directory, FEEDS_FILE_NAME);
205076
+ await this.fileSystem.writeFile(configPath, JSON.stringify(feeds));
205077
+ return { configPath, dispose: () => storage.cleanup() };
205078
+ }
205079
+ warnFeedsUnavailable() {
205080
+ this.logger.warn(translate.t("packagerOrchestratorClient.feeds.warnings.tenantFeedsUnavailable"));
205081
+ }
205082
+ }
205083
+ function toTenantFeedSource(feed, accessToken) {
205084
+ if (feed.purpose !== LIBRARIES_PURPOSE || !feed.feedUrl) {
205085
+ return;
205086
+ }
205087
+ return { Url: feed.feedUrl, AccessToken: accessToken };
205088
+ }
205089
+
204798
205090
  // ../packager/packager-tool-workflowcompiler/src/workflow-compiler-tool.ts
204799
205091
  init_dist();
204800
205092
 
@@ -205196,143 +205488,165 @@ function getAdditionalResultDetails(result) {
205196
205488
 
205197
205489
  // ../packager/packager-tool-workflowcompiler/src/workflow-compiler-tool.ts
205198
205490
  class WorkflowCompilerTool extends ProjectTool {
205491
+ context;
205199
205492
  executor;
205200
- constructor(fileSystem, logger) {
205493
+ constructor(fileSystem, logger, context) {
205201
205494
  super(fileSystem, logger);
205495
+ this.context = context;
205202
205496
  this.executor = new WorkflowCompilerExecutor(logger, fileSystem);
205203
205497
  }
205204
- async restoreAsync(options, cancellationToken) {
205205
- const args = [
205206
- `-p`,
205207
- options.projectPath,
205208
- `--log-level`,
205209
- String(options.logLevel ?? LogLevel.Info),
205210
- `--destination`,
205211
- options.outputPath ?? "",
205212
- `--format-logs`,
205213
- `true`,
205214
- `--exclude-configured-sources`,
205215
- `${options.excludeConfiguredSources}`
205216
- ];
205217
- if (options.nuGetSourcesConfigPath) {
205218
- args.push(`--nuget-config-file`, options.nuGetSourcesConfigPath);
205498
+ async withNuGetConfig(options, run) {
205499
+ const connection = this.context?.connection;
205500
+ if (options.nuGetSourcesConfigPath || !connection) {
205501
+ return run(options.nuGetSourcesConfigPath);
205219
205502
  }
205220
- return this.executor.executeAsync("restore", args, cancellationToken);
205503
+ const composed = await new OrchestratorFeedComposer(this.fileSystem, this.logger).composeAsync({ connection });
205504
+ try {
205505
+ return await run(composed.configPath);
205506
+ } finally {
205507
+ await composed.dispose();
205508
+ }
205509
+ }
205510
+ async restoreAsync(options, cancellationToken) {
205511
+ return this.withNuGetConfig(options, (nuGetConfigPath) => {
205512
+ const args = [
205513
+ `-p`,
205514
+ options.projectPath,
205515
+ `--log-level`,
205516
+ String(options.logLevel ?? LogLevel.Info),
205517
+ `--destination`,
205518
+ options.outputPath ?? "",
205519
+ `--format-logs`,
205520
+ `true`,
205521
+ `--exclude-configured-sources`,
205522
+ `${options.excludeConfiguredSources}`
205523
+ ];
205524
+ if (nuGetConfigPath) {
205525
+ args.push(`--nuget-config-file`, nuGetConfigPath);
205526
+ }
205527
+ return this.executor.executeAsync("restore", args, cancellationToken);
205528
+ });
205221
205529
  }
205222
205530
  async validateAsync(options, cancellationToken) {
205223
- const args = [
205224
- `-p`,
205225
- options.projectPath,
205226
- `--log-level`,
205227
- String(options.logLevel ?? LogLevel.Info),
205228
- `--format-logs`,
205229
- `true`,
205230
- `--skip-analyze`,
205231
- `${options.skipAnalyze}`,
205232
- `--skip-validate`,
205233
- `${options.skipValidate}`,
205234
- `--exclude-configured-sources`,
205235
- `${options.excludeConfiguredSources}`
205236
- ];
205237
- if (options.detailedLogPath) {
205238
- args.push(`--detailed`, options.detailedLogPath);
205239
- }
205240
- if (options.defaultSeverity) {
205241
- args.push(`--default-severity`, options.defaultSeverity);
205242
- }
205243
- if (options.policyFilePath) {
205244
- args.push(`--policy-file`, options.policyFilePath);
205245
- }
205246
- if (options.policyFileType) {
205247
- args.push(`--policy-file-type`, `${options.policyFileType}`);
205248
- }
205249
- if (options.nuGetSourcesConfigPath) {
205250
- args.push(`--nuget-config-file`, options.nuGetSourcesConfigPath);
205251
- }
205252
- return this.executor.executeAsync("validate", args, cancellationToken);
205531
+ return this.withNuGetConfig(options, (nuGetConfigPath) => {
205532
+ const args = [
205533
+ `-p`,
205534
+ options.projectPath,
205535
+ `--log-level`,
205536
+ String(options.logLevel ?? LogLevel.Info),
205537
+ `--format-logs`,
205538
+ `true`,
205539
+ `--skip-analyze`,
205540
+ `${options.skipAnalyze}`,
205541
+ `--skip-validate`,
205542
+ `${options.skipValidate}`,
205543
+ `--exclude-configured-sources`,
205544
+ `${options.excludeConfiguredSources}`
205545
+ ];
205546
+ if (options.detailedLogPath) {
205547
+ args.push(`--detailed`, options.detailedLogPath);
205548
+ }
205549
+ if (options.defaultSeverity) {
205550
+ args.push(`--default-severity`, options.defaultSeverity);
205551
+ }
205552
+ if (options.policyFilePath) {
205553
+ args.push(`--policy-file`, options.policyFilePath);
205554
+ }
205555
+ if (options.policyFileType) {
205556
+ args.push(`--policy-file-type`, `${options.policyFileType}`);
205557
+ }
205558
+ if (nuGetConfigPath) {
205559
+ args.push(`--nuget-config-file`, nuGetConfigPath);
205560
+ }
205561
+ return this.executor.executeAsync("validate", args, cancellationToken);
205562
+ });
205253
205563
  }
205254
205564
  async buildAsync(options, cancellationToken) {
205255
- const args = [
205256
- `-p`,
205257
- options.projectPath,
205258
- `-o`,
205259
- options.outputPath,
205260
- `--log-level`,
205261
- String(options.logLevel ?? LogLevel.Info),
205262
- `--format-logs`,
205263
- `true`,
205264
- `--skip-analyze`,
205265
- `${options.skipAnalyze}`,
205266
- `--skip-validate`,
205267
- `${options.skipValidate}`,
205268
- `--exclude-configured-sources`,
205269
- `${options.excludeConfiguredSources}`
205270
- ];
205271
- if (options.detailedLogPath) {
205272
- args.push(`--detailed`, options.detailedLogPath);
205273
- }
205274
- if (options.policyFilePath) {
205275
- args.push(`--policy-file`, options.policyFilePath);
205276
- }
205277
- if (options.policyFileType) {
205278
- args.push(`--policy-file-type`, `${options.policyFileType}`);
205279
- }
205280
- if (options.outputType) {
205281
- const outputType = this.mapOutputType(options.outputType);
205282
- args.push(`--output-type`, outputType);
205283
- }
205284
- if (options.nuGetSourcesConfigPath) {
205285
- args.push(`--nuget-config-file`, options.nuGetSourcesConfigPath);
205286
- }
205287
- return this.executor.executeAsync("build", args, cancellationToken);
205565
+ return this.withNuGetConfig(options, (nuGetConfigPath) => {
205566
+ const args = [
205567
+ `-p`,
205568
+ options.projectPath,
205569
+ `-o`,
205570
+ options.outputPath,
205571
+ `--log-level`,
205572
+ String(options.logLevel ?? LogLevel.Info),
205573
+ `--format-logs`,
205574
+ `true`,
205575
+ `--skip-analyze`,
205576
+ `${options.skipAnalyze}`,
205577
+ `--skip-validate`,
205578
+ `${options.skipValidate}`,
205579
+ `--exclude-configured-sources`,
205580
+ `${options.excludeConfiguredSources}`
205581
+ ];
205582
+ if (options.detailedLogPath) {
205583
+ args.push(`--detailed`, options.detailedLogPath);
205584
+ }
205585
+ if (options.policyFilePath) {
205586
+ args.push(`--policy-file`, options.policyFilePath);
205587
+ }
205588
+ if (options.policyFileType) {
205589
+ args.push(`--policy-file-type`, `${options.policyFileType}`);
205590
+ }
205591
+ if (options.outputType) {
205592
+ const outputType = this.mapOutputType(options.outputType);
205593
+ args.push(`--output-type`, outputType);
205594
+ }
205595
+ if (nuGetConfigPath) {
205596
+ args.push(`--nuget-config-file`, nuGetConfigPath);
205597
+ }
205598
+ return this.executor.executeAsync("build", args, cancellationToken);
205599
+ });
205288
205600
  }
205289
205601
  async packAsync(options, cancellationToken) {
205290
- const args = [
205291
- `-p`,
205292
- options.projectPath,
205293
- `-o`,
205294
- options.outputPath,
205295
- `--build-version`,
205296
- options.package.version,
205297
- `--log-level`,
205298
- String(options.logLevel ?? LogLevel.Info),
205299
- `--format-logs`,
205300
- `true`,
205301
- `--skip-analyze`,
205302
- `${options.skipAnalyze}`,
205303
- `--skip-validate`,
205304
- `${options.skipValidate}`,
205305
- `--no-optimize-deps`,
205306
- `${options.skipDependencyOptimization}`,
205307
- `--include-sources`,
205308
- `${options.includeSources}`,
205309
- `--split-packages`,
205310
- `${options.splitPackages}`,
205311
- `--exclude-configured-sources`,
205312
- `${options.excludeConfiguredSources}`,
205313
- `--pack-options`,
205314
- JSON.stringify(options.package)
205315
- ];
205316
- if (options.package.id) {
205317
- args.push(`--package-name`, options.package.id);
205318
- }
205319
- if (options.detailedLogPath) {
205320
- args.push(`--detailed`, options.detailedLogPath);
205321
- }
205322
- if (options.policyFilePath) {
205323
- args.push(`--policy-file`, options.policyFilePath);
205324
- }
205325
- if (options.policyFileType) {
205326
- args.push(`--policy-file-type`, options.policyFileType);
205327
- }
205328
- if (options.outputType) {
205329
- const outputType = this.mapOutputType(options.outputType);
205330
- args.push(`--output-type`, outputType);
205331
- }
205332
- if (options.nuGetSourcesConfigPath) {
205333
- args.push(`--nuget-config-file`, options.nuGetSourcesConfigPath);
205334
- }
205335
- return this.executor.executeAsync("build", args, cancellationToken);
205602
+ return this.withNuGetConfig(options, async (nuGetConfigPath) => {
205603
+ const args = [
205604
+ `-p`,
205605
+ options.projectPath,
205606
+ `-o`,
205607
+ options.outputPath,
205608
+ `--build-version`,
205609
+ options.package.version,
205610
+ `--log-level`,
205611
+ String(options.logLevel ?? LogLevel.Info),
205612
+ `--format-logs`,
205613
+ `true`,
205614
+ `--skip-analyze`,
205615
+ `${options.skipAnalyze}`,
205616
+ `--skip-validate`,
205617
+ `${options.skipValidate}`,
205618
+ `--no-optimize-deps`,
205619
+ `${options.skipDependencyOptimization}`,
205620
+ `--include-sources`,
205621
+ `${options.includeSources}`,
205622
+ `--split-packages`,
205623
+ `${options.splitPackages}`,
205624
+ `--exclude-configured-sources`,
205625
+ `${options.excludeConfiguredSources}`,
205626
+ `--pack-options`,
205627
+ JSON.stringify(options.package)
205628
+ ];
205629
+ if (options.package.id) {
205630
+ args.push(`--package-name`, options.package.id);
205631
+ }
205632
+ if (options.detailedLogPath) {
205633
+ args.push(`--detailed`, options.detailedLogPath);
205634
+ }
205635
+ if (options.policyFilePath) {
205636
+ args.push(`--policy-file`, options.policyFilePath);
205637
+ }
205638
+ if (options.policyFileType) {
205639
+ args.push(`--policy-file-type`, options.policyFileType);
205640
+ }
205641
+ if (options.outputType) {
205642
+ const outputType = this.mapOutputType(options.outputType);
205643
+ args.push(`--output-type`, outputType);
205644
+ }
205645
+ if (nuGetConfigPath) {
205646
+ args.push(`--nuget-config-file`, nuGetConfigPath);
205647
+ }
205648
+ return this.executor.executeAsync("build", args, cancellationToken);
205649
+ });
205336
205650
  }
205337
205651
  mapOutputType(outputType) {
205338
205652
  return outputType === "WebApp" ? "Process" : outputType;
@@ -205348,11 +205662,11 @@ class WorkflowCompilerToolFactory {
205348
205662
  ProjectTypes.Tests,
205349
205663
  ProjectTypes.WebApp
205350
205664
  ];
205351
- async createAsync(logger, fileSystem) {
205665
+ async createAsync(logger, fileSystem, context) {
205352
205666
  if (!this.isDotnetAvailable()) {
205353
205667
  throw new Error(translate.t("toolWorkflowcompiler.errors.dotnetNotAvailable"));
205354
205668
  }
205355
- return new WorkflowCompilerTool(fileSystem, logger);
205669
+ return new WorkflowCompilerTool(fileSystem, logger, context);
205356
205670
  }
205357
205671
  isDotnetAvailable() {
205358
205672
  if (WorkflowCompilerToolFactory.cachedDotnetAvailable !== undefined) {
@@ -206248,7 +206562,7 @@ var de3 = {
206248
206562
  };
206249
206563
 
206250
206564
  // ../packager/packager-core/src/i18n/locales/en.ts
206251
- var en5 = {
206565
+ var en6 = {
206252
206566
  toolCore: {
206253
206567
  errors: {
206254
206568
  internal: "Internal error: {message}",
@@ -206868,7 +207182,7 @@ class TranslationService2 {
206868
207182
  var translate2 = TranslationService2.getInstance();
206869
207183
 
206870
207184
  // ../packager/packager-core/src/i18n/index.ts
206871
- I18nManager2.registerTranslations("en", en5);
207185
+ I18nManager2.registerTranslations("en", en6);
206872
207186
  I18nManager2.registerTranslations("de", de3);
206873
207187
  I18nManager2.registerTranslations("es", es3);
206874
207188
  I18nManager2.registerTranslations("es-mx", es_MX2);
@@ -206974,17 +207288,17 @@ function registerAgentToolFactory() {
206974
207288
  init_src();
206975
207289
 
206976
207290
  // ../common/src/catch-error.ts
206977
- function isPromiseLike(value) {
207291
+ function isPromiseLike2(value) {
206978
207292
  return value !== null && typeof value === "object" && typeof value.then === "function";
206979
207293
  }
206980
- function catchError(fnOrPromise) {
206981
- if (isPromiseLike(fnOrPromise)) {
206982
- return settlePromiseLike(fnOrPromise);
207294
+ function catchError2(fnOrPromise) {
207295
+ if (isPromiseLike2(fnOrPromise)) {
207296
+ return settlePromiseLike2(fnOrPromise);
206983
207297
  }
206984
207298
  try {
206985
207299
  const result = fnOrPromise();
206986
- if (isPromiseLike(result)) {
206987
- return settlePromiseLike(result);
207300
+ if (isPromiseLike2(result)) {
207301
+ return settlePromiseLike2(result);
206988
207302
  }
206989
207303
  return [undefined, result];
206990
207304
  } catch (error95) {
@@ -206994,7 +207308,7 @@ function catchError(fnOrPromise) {
206994
207308
  ];
206995
207309
  }
206996
207310
  }
206997
- function settlePromiseLike(thenable) {
207311
+ function settlePromiseLike2(thenable) {
206998
207312
  return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error95) => [
206999
207313
  error95 instanceof Error ? error95 : new Error(String(error95)),
207000
207314
  undefined
@@ -207048,30 +207362,30 @@ Command.prototype.examples = function(examples) {
207048
207362
  return this;
207049
207363
  };
207050
207364
  // ../common/src/singleton.ts
207051
- var PREFIX = "@uipath/common/";
207052
- var _g = globalThis;
207053
- function singleton(ctorOrName) {
207365
+ var PREFIX2 = "@uipath/common/";
207366
+ var _g2 = globalThis;
207367
+ function singleton2(ctorOrName) {
207054
207368
  const name2 = typeof ctorOrName === "string" ? ctorOrName : ctorOrName.name;
207055
- const key = Symbol.for(PREFIX + name2);
207369
+ const key = Symbol.for(PREFIX2 + name2);
207056
207370
  return {
207057
207371
  get(fallback) {
207058
- return _g[key] ?? fallback;
207372
+ return _g2[key] ?? fallback;
207059
207373
  },
207060
207374
  set(value) {
207061
- _g[key] = value;
207375
+ _g2[key] = value;
207062
207376
  },
207063
207377
  clear() {
207064
- delete _g[key];
207378
+ delete _g2[key];
207065
207379
  },
207066
207380
  getOrInit(factory, guard) {
207067
- const existing = _g[key];
207381
+ const existing = _g2[key];
207068
207382
  if (existing != null && typeof existing === "object") {
207069
207383
  if (!guard || guard(existing)) {
207070
207384
  return existing;
207071
207385
  }
207072
207386
  }
207073
207387
  const instance3 = factory();
207074
- _g[key] = instance3;
207388
+ _g2[key] = instance3;
207075
207389
  return instance3;
207076
207390
  }
207077
207391
  };
@@ -207079,7 +207393,7 @@ function singleton(ctorOrName) {
207079
207393
 
207080
207394
  // ../common/src/output-context.ts
207081
207395
  function createStorage() {
207082
- const [error95, mod] = catchError(() => __require("node:async_hooks"));
207396
+ const [error95, mod] = catchError2(() => __require("node:async_hooks"));
207083
207397
  if (error95 || typeof mod?.AsyncLocalStorage !== "function") {
207084
207398
  return {
207085
207399
  getStore: () => {
@@ -207090,8 +207404,8 @@ function createStorage() {
207090
207404
  }
207091
207405
  return new mod.AsyncLocalStorage;
207092
207406
  }
207093
- var storageSingleton = singleton("OutputStorage");
207094
- var sinkSlot = singleton("OutputSink");
207407
+ var storageSingleton = singleton2("OutputStorage");
207408
+ var sinkSlot = singleton2("OutputSink");
207095
207409
  var outputStorage = storageSingleton.getOrInit(createStorage, (v2) => ("getStore" in v2));
207096
207410
  var CONSOLE_FALLBACK = {
207097
207411
  writeOut: (str) => process.stdout.write(str),
@@ -211823,7 +212137,7 @@ var index_vite_proxy_tmp_default = import_js_yaml.default;
211823
212137
 
211824
212138
  // ../common/src/logger.ts
211825
212139
  init_src();
211826
- var logFilePathSlot = singleton("logFilePath");
212140
+ var logFilePathSlot = singleton2("logFilePath");
211827
212141
  function setGlobalLogFilePath(path4) {
211828
212142
  logFilePathSlot.set(path4);
211829
212143
  }
@@ -211862,7 +212176,7 @@ class SimpleLogger {
211862
212176
  }
211863
212177
  return DEFAULT_LOG_LEVEL;
211864
212178
  }
211865
- const [localStorageError, hasDebug] = catchError(() => typeof localStorage !== "undefined" && !!localStorage.getItem("debug"));
212179
+ const [localStorageError, hasDebug] = catchError2(() => typeof localStorage !== "undefined" && !!localStorage.getItem("debug"));
211866
212180
  if (!localStorageError && hasDebug) {
211867
212181
  return 0 /* DEBUG */;
211868
212182
  }
@@ -211963,7 +212277,7 @@ class SimpleLogger {
211963
212277
  this.fileLoggingEnabled = true;
211964
212278
  const fs8 = getFileSystem2();
211965
212279
  this.pendingInit = (async () => {
211966
- const [error95] = await catchError((async () => {
212280
+ const [error95] = await catchError2((async () => {
211967
212281
  await fs8.mkdir(fs8.path.dirname(path4));
211968
212282
  await fs8.writeFile(path4, "");
211969
212283
  })());
@@ -212007,16 +212321,16 @@ class SimpleLogger {
212007
212321
  }
212008
212322
  };
212009
212323
  }
212010
- var loggerSingleton = singleton(SimpleLogger);
212324
+ var loggerSingleton = singleton2(SimpleLogger);
212011
212325
  var logger = SimpleLogger.getInstance();
212012
212326
  function getLogFilePath() {
212013
212327
  return logger.getLogFilePath();
212014
212328
  }
212015
212329
 
212016
212330
  // ../common/src/output-format-context.ts
212017
- var formatSlot = singleton("OutputFormat");
212018
- var formatExplicitSlot = singleton("OutputFormatExplicit");
212019
- var filterSlot = singleton("OutputFilter");
212331
+ var formatSlot = singleton2("OutputFormat");
212332
+ var formatExplicitSlot = singleton2("OutputFormatExplicit");
212333
+ var filterSlot = singleton2("OutputFilter");
212020
212334
  function getOutputFormat() {
212021
212335
  return formatSlot.get("json");
212022
212336
  }
@@ -212035,7 +212349,7 @@ function readRegistryValue(keyPath, valueName) {
212035
212349
  if (process.platform !== "win32") {
212036
212350
  return "";
212037
212351
  }
212038
- const [error95, output2] = catchError(() => execFileSync4("reg", ["query", keyPath, "/v", valueName], {
212352
+ const [error95, output2] = catchError2(() => execFileSync4("reg", ["query", keyPath, "/v", valueName], {
212039
212353
  encoding: "utf-8",
212040
212354
  stdio: ["pipe", "pipe", "pipe"]
212041
212355
  }));
@@ -212106,9 +212420,9 @@ class NodeContextStorage {
212106
212420
  }
212107
212421
  }
212108
212422
  // ../common/src/telemetry/global-telemetry-properties.ts
212109
- var telemetryPropsSlot = singleton("TelemetryDefaultProps");
212423
+ var telemetryPropsSlot2 = singleton2("TelemetryDefaultProps");
212110
212424
  function getGlobalTelemetryProperties() {
212111
- return telemetryPropsSlot.get();
212425
+ return telemetryPropsSlot2.get();
212112
212426
  }
212113
212427
 
212114
212428
  // ../common/src/telemetry/telemetry-service.ts
@@ -212201,10 +212515,10 @@ class TelemetryService {
212201
212515
  }
212202
212516
  }
212203
212517
  // ../common/src/telemetry/node-appinsights-telemetry-provider.ts
212204
- var providerSlot = singleton("TelemetryProvider");
212518
+ var providerSlot = singleton2("TelemetryProvider");
212205
212519
 
212206
212520
  // ../common/src/telemetry/telemetry-init.ts
212207
- var telemetryInstanceSlot = singleton("TelemetryService");
212521
+ var telemetryInstanceSlot = singleton2("TelemetryService");
212208
212522
  var DEFAULT_AI_CONNECTION_STRING = atob("SW5zdHJ1bWVudGF0aW9uS2V5PTliZDM3NDgyLTgxMGUtNDQyYS1hYWE2LWQzOGVmNjVjNjY3NDtJbmdlc3Rpb25FbmRwb2ludD1odHRwczovL3dlc3RldXJvcGUtNS5pbi5hcHBsaWNhdGlvbmluc2lnaHRzLmF6dXJlLmNvbS87TGl2ZUVuZHBvaW50PWh0dHBzOi8vd2VzdGV1cm9wZS5saXZlZGlhZ25vc3RpY3MubW9uaXRvci5henVyZS5jb20vO0FwcGxpY2F0aW9uSWQ9MzU2OTdlZjEtOGJkMC00ZjE5LWEyN2MtZDg3Y2NhYzY2ZDJj");
212209
212523
  function getGlobalTelemetryInstance() {
212210
212524
  const existing = telemetryInstanceSlot.get();
@@ -212853,7 +213167,7 @@ function redactProperties(properties) {
212853
213167
  }
212854
213168
 
212855
213169
  // ../common/src/trackedAction.ts
212856
- var pollSignalSlot = singleton("PollSignal");
213170
+ var pollSignalSlot = singleton2("PollSignal");
212857
213171
  var cliErrorCodeValues = new Set(CLI_ERROR_CODES);
212858
213172
  var retryHintValues = new Set(RETRY_HINTS);
212859
213173
  function extractCommandParams(cmd) {
@@ -212912,7 +213226,7 @@ Command.prototype.trackedAction = function(context, fn2, properties) {
212912
213226
  const props = typeof properties === "function" ? properties(...args) : properties;
212913
213227
  const startTime = performance.now();
212914
213228
  let errorMessage;
212915
- const [error95] = await catchError(fn2(...args));
213229
+ const [error95] = await catchError2(fn2(...args));
212916
213230
  if (error95) {
212917
213231
  errorMessage = error95 instanceof Error ? error95.message : String(error95);
212918
213232
  logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
@@ -212949,8 +213263,8 @@ Command.prototype.trackedAction = function(context, fn2, properties) {
212949
213263
  });
212950
213264
  };
212951
213265
  // ../common/src/console-guard.ts
212952
- var guardInstalledSlot = singleton("ConsoleGuardInstalled");
212953
- var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
213266
+ var guardInstalledSlot = singleton2("ConsoleGuardInstalled");
213267
+ var savedOriginalsSlot = singleton2("ConsoleGuardOriginals");
212954
213268
  // ../common/src/constants.ts
212955
213269
  var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
212956
213270
  // ../common/src/guid.ts
@@ -212959,7 +213273,7 @@ function isGuid(value) {
212959
213273
  return GUID_REGEX.test(value);
212960
213274
  }
212961
213275
  // ../common/src/interactivity-context.ts
212962
- var modeSlot = singleton("InteractivityMode");
213276
+ var modeSlot = singleton2("InteractivityMode");
212963
213277
  // ../common/src/polling/types.ts
212964
213278
  var PollOutcome = {
212965
213279
  Completed: "completed",
@@ -212995,7 +213309,7 @@ var FAILURE_STATUSES = new Set([
212995
213309
  "stopped"
212996
213310
  ]);
212997
213311
  // ../common/src/preview.ts
212998
- var previewSlot = singleton("PreviewBuild");
213312
+ var previewSlot = singleton2("PreviewBuild");
212999
213313
  function isPreviewBuild() {
213000
213314
  return previewSlot.get(false) ?? false;
213001
213315
  }
@@ -213015,18 +213329,18 @@ var ScreenLogger;
213015
213329
  ScreenLogger.progress = progress;
213016
213330
  })(ScreenLogger ||= {});
213017
213331
  // ../common/src/sdk-user-agent.ts
213018
- var USER_AGENT_HEADER = "User-Agent";
213019
- var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
213332
+ var USER_AGENT_HEADER2 = "User-Agent";
213333
+ var sdkUserAgentHostToken2 = singleton2("SdkUserAgentHostToken");
213020
213334
  function userAgentPatchKey(userAgent) {
213021
213335
  return Symbol.for(`@uipath/common/sdk-user-agent/${userAgent}`);
213022
213336
  }
213023
- function splitUserAgentTokens(value) {
213337
+ function splitUserAgentTokens2(value) {
213024
213338
  return value?.trim().split(/\s+/).filter(Boolean) ?? [];
213025
213339
  }
213026
- function appendUserAgentToken(value, userAgent) {
213027
- const tokens = splitUserAgentTokens(value);
213340
+ function appendUserAgentToken2(value, userAgent) {
213341
+ const tokens = splitUserAgentTokens2(value);
213028
213342
  const seen = new Set(tokens);
213029
- for (const token of splitUserAgentTokens(userAgent)) {
213343
+ for (const token of splitUserAgentTokens2(userAgent)) {
213030
213344
  if (!seen.has(token)) {
213031
213345
  tokens.push(token);
213032
213346
  seen.add(token);
@@ -213034,20 +213348,20 @@ function appendUserAgentToken(value, userAgent) {
213034
213348
  }
213035
213349
  return tokens.join(" ");
213036
213350
  }
213037
- function getEffectiveUserAgent(userAgent) {
213038
- return appendUserAgentToken(sdkUserAgentHostToken.get(), userAgent);
213351
+ function getEffectiveUserAgent2(userAgent) {
213352
+ return appendUserAgentToken2(sdkUserAgentHostToken2.get(), userAgent);
213039
213353
  }
213040
- function getHeaderName(headers, headerName) {
213354
+ function getHeaderName2(headers, headerName) {
213041
213355
  return Object.keys(headers).find((key) => key.toLowerCase() === headerName.toLowerCase());
213042
213356
  }
213043
213357
  function getSdkUserAgentToken(pkg) {
213044
213358
  const packageName = pkg.name.replace(/^@uipath\//, "");
213045
- return getEffectiveUserAgent(`${packageName}/${pkg.version}`);
213359
+ return getEffectiveUserAgent2(`${packageName}/${pkg.version}`);
213046
213360
  }
213047
- function addSdkUserAgentHeader(headers, userAgent) {
213361
+ function addSdkUserAgentHeader2(headers, userAgent) {
213048
213362
  const result = { ...headers ?? {} };
213049
- const headerName = getHeaderName(result, USER_AGENT_HEADER);
213050
- result[headerName ?? USER_AGENT_HEADER] = appendUserAgentToken(headerName ? result[headerName] : undefined, getEffectiveUserAgent(userAgent));
213363
+ const headerName = getHeaderName2(result, USER_AGENT_HEADER2);
213364
+ result[headerName ?? USER_AGENT_HEADER2] = appendUserAgentToken2(headerName ? result[headerName] : undefined, getEffectiveUserAgent2(userAgent));
213051
213365
  return result;
213052
213366
  }
213053
213367
  function asHeaderRecord(headers) {
@@ -213086,10 +213400,10 @@ function installRequestHeaderForwarding(BaseApiClass, patchKey, forward) {
213086
213400
  });
213087
213401
  }
213088
213402
  function installSdkUserAgentHeader(BaseApiClass, userAgent) {
213089
- installRequestHeaderForwarding(BaseApiClass, userAgentPatchKey(userAgent), (headers) => addSdkUserAgentHeader(headers, userAgent));
213403
+ installRequestHeaderForwarding(BaseApiClass, userAgentPatchKey(userAgent), (headers) => addSdkUserAgentHeader2(headers, userAgent));
213090
213404
  }
213091
213405
  // ../common/src/tool-provider.ts
213092
- var factorySlot = singleton("PackagerFactoryProvider");
213406
+ var factorySlot = singleton2("PackagerFactoryProvider");
213093
213407
  async function ensurePackagerFactory(verb) {
213094
213408
  const provider = factorySlot.get();
213095
213409
  if (!provider) {
@@ -213199,7 +213513,7 @@ var de_default12 = {
213199
213513
  }
213200
213514
  }
213201
213515
  };
213202
- var en6 = {
213516
+ var en7 = {
213203
213517
  solutionpackager: {
213204
213518
  projectLoader: {
213205
213519
  errors: {
@@ -214333,7 +214647,7 @@ var zu_default3 = {
214333
214647
  }
214334
214648
  }
214335
214649
  };
214336
- I18nManager.registerTranslations("en", en6);
214650
+ I18nManager.registerTranslations("en", en7);
214337
214651
  I18nManager.registerTranslations("de", de_default12);
214338
214652
  I18nManager.registerTranslations("es", es_default12);
214339
214653
  I18nManager.registerTranslations("es-MX", es_MX_default8);
@@ -235268,17 +235582,17 @@ https://github.com/browserify/crypto-browserify`);
235268
235582
  webcrypto = crypto;
235269
235583
  crypto_default = crypto;
235270
235584
  });
235271
- function isPromiseLike2(value) {
235585
+ function isPromiseLike3(value) {
235272
235586
  return value !== null && typeof value === "object" && typeof value.then === "function";
235273
235587
  }
235274
- function catchError2(fnOrPromise) {
235275
- if (isPromiseLike2(fnOrPromise)) {
235276
- return settlePromiseLike2(fnOrPromise);
235588
+ function catchError3(fnOrPromise) {
235589
+ if (isPromiseLike3(fnOrPromise)) {
235590
+ return settlePromiseLike3(fnOrPromise);
235277
235591
  }
235278
235592
  try {
235279
235593
  const result = fnOrPromise();
235280
- if (isPromiseLike2(result)) {
235281
- return settlePromiseLike2(result);
235594
+ if (isPromiseLike3(result)) {
235595
+ return settlePromiseLike3(result);
235282
235596
  }
235283
235597
  return [undefined, result];
235284
235598
  } catch (error95) {
@@ -235288,7 +235602,7 @@ function catchError2(fnOrPromise) {
235288
235602
  ];
235289
235603
  }
235290
235604
  }
235291
- function settlePromiseLike2(thenable) {
235605
+ function settlePromiseLike3(thenable) {
235292
235606
  return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error95) => [
235293
235607
  error95 instanceof Error ? error95 : new Error(String(error95)),
235294
235608
  undefined
@@ -235313,36 +235627,36 @@ Command2.prototype.examples = function(examples) {
235313
235627
  examplesByCommand2.set(this, examples);
235314
235628
  return this;
235315
235629
  };
235316
- var PREFIX2 = "@uipath/common/";
235317
- var _g2 = globalThis;
235318
- function singleton3(ctorOrName) {
235630
+ var PREFIX3 = "@uipath/common/";
235631
+ var _g3 = globalThis;
235632
+ function singleton4(ctorOrName) {
235319
235633
  const name2 = typeof ctorOrName === "string" ? ctorOrName : ctorOrName.name;
235320
- const key = Symbol.for(PREFIX2 + name2);
235634
+ const key = Symbol.for(PREFIX3 + name2);
235321
235635
  return {
235322
235636
  get(fallback) {
235323
- return _g2[key] ?? fallback;
235637
+ return _g3[key] ?? fallback;
235324
235638
  },
235325
235639
  set(value) {
235326
- _g2[key] = value;
235640
+ _g3[key] = value;
235327
235641
  },
235328
235642
  clear() {
235329
- delete _g2[key];
235643
+ delete _g3[key];
235330
235644
  },
235331
235645
  getOrInit(factory, guard) {
235332
- const existing = _g2[key];
235646
+ const existing = _g3[key];
235333
235647
  if (existing != null && typeof existing === "object") {
235334
235648
  if (!guard || guard(existing)) {
235335
235649
  return existing;
235336
235650
  }
235337
235651
  }
235338
235652
  const instance3 = factory();
235339
- _g2[key] = instance3;
235653
+ _g3[key] = instance3;
235340
235654
  return instance3;
235341
235655
  }
235342
235656
  };
235343
235657
  }
235344
235658
  function createStorage2() {
235345
- const [error95, mod2] = catchError2(() => () => ({}));
235659
+ const [error95, mod2] = catchError3(() => () => ({}));
235346
235660
  if (error95 || typeof mod2?.AsyncLocalStorage !== "function") {
235347
235661
  return {
235348
235662
  getStore: () => {
@@ -235353,8 +235667,8 @@ function createStorage2() {
235353
235667
  }
235354
235668
  return new mod2.AsyncLocalStorage;
235355
235669
  }
235356
- var storageSingleton2 = singleton3("OutputStorage");
235357
- var sinkSlot2 = singleton3("OutputSink");
235670
+ var storageSingleton2 = singleton4("OutputStorage");
235671
+ var sinkSlot2 = singleton4("OutputSink");
235358
235672
  var outputStorage2 = storageSingleton2.getOrInit(createStorage2, (v2) => ("getStore" in v2));
235359
235673
  var CONSOLE_FALLBACK2 = {
235360
235674
  writeOut: (str) => process.stdout.write(str),
@@ -235371,8 +235685,8 @@ function getOutputSink2() {
235371
235685
  return outputStorage2.getStore() ?? sinkSlot2.get() ?? CONSOLE_FALLBACK2;
235372
235686
  }
235373
235687
  var COMPLETER_SYMBOL2 = Symbol.for("@uipath/common/completer");
235374
- var guardInstalledSlot2 = singleton3("ConsoleGuardInstalled");
235375
- var savedOriginalsSlot2 = singleton3("ConsoleGuardOriginals");
235688
+ var guardInstalledSlot2 = singleton4("ConsoleGuardInstalled");
235689
+ var savedOriginalsSlot2 = singleton4("ConsoleGuardOriginals");
235376
235690
  var DEFAULT_AUTH_TIMEOUT_MS2 = 5 * 60 * 1000;
235377
235691
  var NETWORK_ERROR_CODES2 = new Set([
235378
235692
  "ECONNREFUSED",
@@ -235397,7 +235711,7 @@ var TLS_ERROR_CODES2 = new Set([
235397
235711
  ]);
235398
235712
  var TLS_INSTRUCTIONS2 = "The server's TLS certificate could not be verified. Most often a " + "corporate proxy/firewall re-signs HTTPS with a root CA that Node does " + "not trust — set NODE_EXTRA_CA_CERTS to that CA's PEM file (and HTTPS_PROXY " + "if you connect through a proxy). If the certificate is instead expired or " + "its hostname does not match, fix the endpoint URL or the system clock. " + "Then retry.";
235399
235713
  var NETWORK_INSTRUCTIONS2 = "Could not reach the UiPath service. Check your network connection and " + "VPN, confirm any HTTP_PROXY/HTTPS_PROXY/NO_PROXY settings are correct, " + "then retry.";
235400
- var logFilePathSlot2 = singleton3("logFilePath");
235714
+ var logFilePathSlot2 = singleton4("logFilePath");
235401
235715
  function setGlobalLogFilePath2(path4) {
235402
235716
  logFilePathSlot2.set(path4);
235403
235717
  }
@@ -235443,7 +235757,7 @@ class SimpleLogger2 {
235443
235757
  }
235444
235758
  return DEFAULT_LOG_LEVEL2;
235445
235759
  }
235446
- const [localStorageError, hasDebug] = catchError2(() => typeof localStorage !== "undefined" && !!localStorage.getItem("debug"));
235760
+ const [localStorageError, hasDebug] = catchError3(() => typeof localStorage !== "undefined" && !!localStorage.getItem("debug"));
235447
235761
  if (!localStorageError && hasDebug) {
235448
235762
  return 0;
235449
235763
  }
@@ -235544,7 +235858,7 @@ class SimpleLogger2 {
235544
235858
  this.fileLoggingEnabled = true;
235545
235859
  const fs8 = getFileSystem();
235546
235860
  this.pendingInit = (async () => {
235547
- const [error95] = await catchError2((async () => {
235861
+ const [error95] = await catchError3((async () => {
235548
235862
  await fs8.mkdir(fs8.path.dirname(path4));
235549
235863
  await fs8.writeFile(path4, "");
235550
235864
  })());
@@ -235588,11 +235902,11 @@ class SimpleLogger2 {
235588
235902
  }
235589
235903
  };
235590
235904
  }
235591
- var loggerSingleton2 = singleton3(SimpleLogger2);
235905
+ var loggerSingleton2 = singleton4(SimpleLogger2);
235592
235906
  var logger3 = SimpleLogger2.getInstance();
235593
- var formatSlot2 = singleton3("OutputFormat");
235594
- var formatExplicitSlot2 = singleton3("OutputFormatExplicit");
235595
- var filterSlot2 = singleton3("OutputFilter");
235907
+ var formatSlot2 = singleton4("OutputFormat");
235908
+ var formatExplicitSlot2 = singleton4("OutputFormatExplicit");
235909
+ var filterSlot2 = singleton4("OutputFilter");
235596
235910
  var PollOutcome2 = {
235597
235911
  Completed: "completed",
235598
235912
  Timeout: "timeout",
@@ -235631,9 +235945,9 @@ var ScreenLogger2;
235631
235945
  }
235632
235946
  ScreenLogger22.progress = progress;
235633
235947
  })(ScreenLogger2 ||= {});
235634
- var telemetryPropsSlot2 = singleton3("TelemetryDefaultProps");
235635
- var sdkUserAgentHostToken2 = singleton3("SdkUserAgentHostToken");
235636
- var factorySlot2 = singleton3("PackagerFactoryProvider");
235948
+ var telemetryPropsSlot3 = singleton4("TelemetryDefaultProps");
235949
+ var sdkUserAgentHostToken3 = singleton4("SdkUserAgentHostToken");
235950
+ var factorySlot2 = singleton4("PackagerFactoryProvider");
235637
235951
  var RulesConfigFileType;
235638
235952
  ((RulesConfigFileType2) => {
235639
235953
  RulesConfigFileType2["Default"] = "Default";
@@ -235738,10 +236052,10 @@ class ToolLogger {
235738
236052
  globalLogHandler(message);
235739
236053
  }
235740
236054
  }
235741
- var package_default2 = {
236055
+ var package_default3 = {
235742
236056
  name: "@uipath/project-packager",
235743
236057
  license: "MIT",
235744
- version: "1.197.0-preview.63",
236058
+ version: "1.197.0-preview.65",
235745
236059
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
235746
236060
  type: "module",
235747
236061
  main: "./dist/index.js",
@@ -235810,7 +236124,7 @@ var package_default2 = {
235810
236124
  vitest: "^4.1.6"
235811
236125
  }
235812
236126
  };
235813
- var SDK_USER_AGENT = `${package_default2.name.replace(/^@uipath\//, "")}/${package_default2.version}`;
236127
+ var SDK_USER_AGENT2 = `${package_default3.name.replace(/^@uipath\//, "")}/${package_default3.version}`;
235814
236128
  var LICENSE_TYPES = {
235815
236129
  NoLicense: "NoLicense",
235816
236130
  Development: "Development",
@@ -236297,7 +236611,7 @@ var de_default13 = {
236297
236611
  }
236298
236612
  }
236299
236613
  };
236300
- var en7 = {
236614
+ var en8 = {
236301
236615
  solutionpackager: {
236302
236616
  projectLoader: {
236303
236617
  errors: {
@@ -237431,7 +237745,7 @@ var zu_default4 = {
237431
237745
  }
237432
237746
  }
237433
237747
  };
237434
- I18nManager.registerTranslations("en", en7);
237748
+ I18nManager.registerTranslations("en", en8);
237435
237749
  I18nManager.registerTranslations("de", de_default13);
237436
237750
  I18nManager.registerTranslations("es", es_default13);
237437
237751
  I18nManager.registerTranslations("es-MX", es_MX_default9);
@@ -240321,17 +240635,17 @@ class NodeFileSystem3 {
240321
240635
  }
240322
240636
  var fsInstance3 = new NodeFileSystem3;
240323
240637
  var getFileSystem3 = () => fsInstance3;
240324
- function isPromiseLike3(value) {
240638
+ function isPromiseLike4(value) {
240325
240639
  return value !== null && typeof value === "object" && typeof value.then === "function";
240326
240640
  }
240327
- function catchError3(fnOrPromise) {
240328
- if (isPromiseLike3(fnOrPromise)) {
240329
- return settlePromiseLike3(fnOrPromise);
240641
+ function catchError4(fnOrPromise) {
240642
+ if (isPromiseLike4(fnOrPromise)) {
240643
+ return settlePromiseLike4(fnOrPromise);
240330
240644
  }
240331
240645
  try {
240332
240646
  const result = fnOrPromise();
240333
- if (isPromiseLike3(result)) {
240334
- return settlePromiseLike3(result);
240647
+ if (isPromiseLike4(result)) {
240648
+ return settlePromiseLike4(result);
240335
240649
  }
240336
240650
  return [undefined, result];
240337
240651
  } catch (error95) {
@@ -240341,7 +240655,7 @@ function catchError3(fnOrPromise) {
240341
240655
  ];
240342
240656
  }
240343
240657
  }
240344
- function settlePromiseLike3(thenable) {
240658
+ function settlePromiseLike4(thenable) {
240345
240659
  return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error95) => [
240346
240660
  error95 instanceof Error ? error95 : new Error(String(error95)),
240347
240661
  undefined
@@ -240389,36 +240703,36 @@ Command3.prototype.examples = function(examples) {
240389
240703
  examplesByCommand3.set(this, examples);
240390
240704
  return this;
240391
240705
  };
240392
- var PREFIX3 = "@uipath/common/";
240393
- var _g3 = globalThis;
240394
- function singleton4(ctorOrName) {
240706
+ var PREFIX4 = "@uipath/common/";
240707
+ var _g4 = globalThis;
240708
+ function singleton5(ctorOrName) {
240395
240709
  const name2 = typeof ctorOrName === "string" ? ctorOrName : ctorOrName.name;
240396
- const key = Symbol.for(PREFIX3 + name2);
240710
+ const key = Symbol.for(PREFIX4 + name2);
240397
240711
  return {
240398
240712
  get(fallback) {
240399
- return _g3[key] ?? fallback;
240713
+ return _g4[key] ?? fallback;
240400
240714
  },
240401
240715
  set(value) {
240402
- _g3[key] = value;
240716
+ _g4[key] = value;
240403
240717
  },
240404
240718
  clear() {
240405
- delete _g3[key];
240719
+ delete _g4[key];
240406
240720
  },
240407
240721
  getOrInit(factory, guard) {
240408
- const existing = _g3[key];
240722
+ const existing = _g4[key];
240409
240723
  if (existing != null && typeof existing === "object") {
240410
240724
  if (!guard || guard(existing)) {
240411
240725
  return existing;
240412
240726
  }
240413
240727
  }
240414
240728
  const instance3 = factory();
240415
- _g3[key] = instance3;
240729
+ _g4[key] = instance3;
240416
240730
  return instance3;
240417
240731
  }
240418
240732
  };
240419
240733
  }
240420
240734
  function createStorage3() {
240421
- const [error95, mod2] = catchError3(() => __require2("node:async_hooks"));
240735
+ const [error95, mod2] = catchError4(() => __require2("node:async_hooks"));
240422
240736
  if (error95 || typeof mod2?.AsyncLocalStorage !== "function") {
240423
240737
  return {
240424
240738
  getStore: () => {
@@ -240429,8 +240743,8 @@ function createStorage3() {
240429
240743
  }
240430
240744
  return new mod2.AsyncLocalStorage;
240431
240745
  }
240432
- var storageSingleton3 = singleton4("OutputStorage");
240433
- var sinkSlot3 = singleton4("OutputSink");
240746
+ var storageSingleton3 = singleton5("OutputStorage");
240747
+ var sinkSlot3 = singleton5("OutputSink");
240434
240748
  var outputStorage3 = storageSingleton3.getOrInit(createStorage3, (v2) => ("getStore" in v2));
240435
240749
  var CONSOLE_FALLBACK3 = {
240436
240750
  writeOut: (str) => process.stdout.write(str),
@@ -245155,7 +245469,7 @@ var import_js_yaml2 = /* @__PURE__ */ __toESM23((/* @__PURE__ */ __commonJSMin2(
245155
245469
  }))(), 1);
245156
245470
  var { Type: Type2, Schema: Schema2, FAILSAFE_SCHEMA: FAILSAFE_SCHEMA2, JSON_SCHEMA: JSON_SCHEMA2, CORE_SCHEMA: CORE_SCHEMA2, DEFAULT_SCHEMA: DEFAULT_SCHEMA2, load: load2, loadAll: loadAll2, dump: dump2, YAMLException: YAMLException2, types: types4, safeLoad: safeLoad2, safeLoadAll: safeLoadAll2, safeDump: safeDump2 } = import_js_yaml2.default;
245157
245471
  var index_vite_proxy_tmp_default2 = import_js_yaml2.default;
245158
- var logFilePathSlot3 = singleton4("logFilePath");
245472
+ var logFilePathSlot3 = singleton5("logFilePath");
245159
245473
  function setGlobalLogFilePath3(path32) {
245160
245474
  logFilePathSlot3.set(path32);
245161
245475
  }
@@ -245201,7 +245515,7 @@ class SimpleLogger3 {
245201
245515
  }
245202
245516
  return DEFAULT_LOG_LEVEL3;
245203
245517
  }
245204
- const [localStorageError, hasDebug] = catchError3(() => typeof localStorage !== "undefined" && !!localStorage.getItem("debug"));
245518
+ const [localStorageError, hasDebug] = catchError4(() => typeof localStorage !== "undefined" && !!localStorage.getItem("debug"));
245205
245519
  if (!localStorageError && hasDebug) {
245206
245520
  return 0;
245207
245521
  }
@@ -245302,7 +245616,7 @@ class SimpleLogger3 {
245302
245616
  this.fileLoggingEnabled = true;
245303
245617
  const fs72 = getFileSystem3();
245304
245618
  this.pendingInit = (async () => {
245305
- const [error95] = await catchError3((async () => {
245619
+ const [error95] = await catchError4((async () => {
245306
245620
  await fs72.mkdir(fs72.path.dirname(path32));
245307
245621
  await fs72.writeFile(path32, "");
245308
245622
  })());
@@ -245346,14 +245660,14 @@ class SimpleLogger3 {
245346
245660
  }
245347
245661
  };
245348
245662
  }
245349
- var loggerSingleton3 = singleton4(SimpleLogger3);
245663
+ var loggerSingleton3 = singleton5(SimpleLogger3);
245350
245664
  var logger4 = SimpleLogger3.getInstance();
245351
245665
  function getLogFilePath2() {
245352
245666
  return logger4.getLogFilePath();
245353
245667
  }
245354
- var formatSlot3 = singleton4("OutputFormat");
245355
- var formatExplicitSlot3 = singleton4("OutputFormatExplicit");
245356
- var filterSlot3 = singleton4("OutputFilter");
245668
+ var formatSlot3 = singleton5("OutputFormat");
245669
+ var formatExplicitSlot3 = singleton5("OutputFormatExplicit");
245670
+ var filterSlot3 = singleton5("OutputFilter");
245357
245671
  function getOutputFormat2() {
245358
245672
  return formatSlot3.get("json");
245359
245673
  }
@@ -245367,7 +245681,7 @@ function readRegistryValue2(keyPath, valueName) {
245367
245681
  if (process.platform !== "win32") {
245368
245682
  return "";
245369
245683
  }
245370
- const [error95, output2] = catchError3(() => execFileSync22("reg", ["query", keyPath, "/v", valueName], {
245684
+ const [error95, output2] = catchError4(() => execFileSync22("reg", ["query", keyPath, "/v", valueName], {
245371
245685
  encoding: "utf-8",
245372
245686
  stdio: ["pipe", "pipe", "pipe"]
245373
245687
  }));
@@ -245449,9 +245763,9 @@ class NodeContextStorage2 {
245449
245763
  return this.storage.getStore();
245450
245764
  }
245451
245765
  }
245452
- var telemetryPropsSlot3 = singleton4("TelemetryDefaultProps");
245766
+ var telemetryPropsSlot4 = singleton5("TelemetryDefaultProps");
245453
245767
  function getGlobalTelemetryProperties2() {
245454
- return telemetryPropsSlot3.get();
245768
+ return telemetryPropsSlot4.get();
245455
245769
  }
245456
245770
 
245457
245771
  class TelemetryService2 {
@@ -245542,8 +245856,8 @@ class TelemetryService2 {
245542
245856
  return crypto.randomUUID().replaceAll("-", "");
245543
245857
  }
245544
245858
  }
245545
- var providerSlot2 = singleton4("TelemetryProvider");
245546
- var telemetryInstanceSlot2 = singleton4("TelemetryService");
245859
+ var providerSlot2 = singleton5("TelemetryProvider");
245860
+ var telemetryInstanceSlot2 = singleton5("TelemetryService");
245547
245861
  var DEFAULT_AI_CONNECTION_STRING2 = atob("SW5zdHJ1bWVudGF0aW9uS2V5PTliZDM3NDgyLTgxMGUtNDQyYS1hYWE2LWQzOGVmNjVjNjY3NDtJbmdlc3Rpb25FbmRwb2ludD1odHRwczovL3dlc3RldXJvcGUtNS5pbi5hcHBsaWNhdGlvbmluc2lnaHRzLmF6dXJlLmNvbS87TGl2ZUVuZHBvaW50PWh0dHBzOi8vd2VzdGV1cm9wZS5saXZlZGlhZ25vc3RpY3MubW9uaXRvci5henVyZS5jb20vO0FwcGxpY2F0aW9uSWQ9MzU2OTdlZjEtOGJkMC00ZjE5LWEyN2MtZDg3Y2NhYzY2ZDJj");
245548
245862
  function getGlobalTelemetryInstance2() {
245549
245863
  const existing = telemetryInstanceSlot2.get();
@@ -246188,7 +246502,7 @@ function redactProperties2(properties) {
246188
246502
  }
246189
246503
  return out;
246190
246504
  }
246191
- var pollSignalSlot2 = singleton4("PollSignal");
246505
+ var pollSignalSlot2 = singleton5("PollSignal");
246192
246506
  var cliErrorCodeValues2 = new Set(CLI_ERROR_CODES2);
246193
246507
  var retryHintValues2 = new Set(RETRY_HINTS2);
246194
246508
  function extractCommandParams2(cmd) {
@@ -246247,7 +246561,7 @@ Command3.prototype.trackedAction = function(context, fn2, properties) {
246247
246561
  const props = typeof properties === "function" ? properties(...args) : properties;
246248
246562
  const startTime = performance.now();
246249
246563
  let errorMessage2;
246250
- const [error95] = await catchError3(fn2(...args));
246564
+ const [error95] = await catchError4(fn2(...args));
246251
246565
  if (error95) {
246252
246566
  errorMessage2 = error95 instanceof Error ? error95.message : String(error95);
246253
246567
  logger4.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage2}`);
@@ -246283,10 +246597,10 @@ Command3.prototype.trackedAction = function(context, fn2, properties) {
246283
246597
  }));
246284
246598
  });
246285
246599
  };
246286
- var guardInstalledSlot3 = singleton4("ConsoleGuardInstalled");
246287
- var savedOriginalsSlot3 = singleton4("ConsoleGuardOriginals");
246600
+ var guardInstalledSlot3 = singleton5("ConsoleGuardInstalled");
246601
+ var savedOriginalsSlot3 = singleton5("ConsoleGuardOriginals");
246288
246602
  var DEFAULT_AUTH_TIMEOUT_MS3 = 5 * 60 * 1000;
246289
- var modeSlot2 = singleton4("InteractivityMode");
246603
+ var modeSlot2 = singleton5("InteractivityMode");
246290
246604
  var PollOutcome3 = {
246291
246605
  Completed: "completed",
246292
246606
  Timeout: "timeout",
@@ -246317,7 +246631,7 @@ var FAILURE_STATUSES3 = new Set([
246317
246631
  "canceled",
246318
246632
  "stopped"
246319
246633
  ]);
246320
- var previewSlot2 = singleton4("PreviewBuild");
246634
+ var previewSlot2 = singleton5("PreviewBuild");
246321
246635
  function isPreviewBuild2() {
246322
246636
  return previewSlot2.get(false) ?? false;
246323
246637
  }
@@ -246335,8 +246649,8 @@ var ScreenLogger3;
246335
246649
  }
246336
246650
  ScreenLogger22.progress = progress;
246337
246651
  })(ScreenLogger3 ||= {});
246338
- var sdkUserAgentHostToken3 = singleton4("SdkUserAgentHostToken");
246339
- var factorySlot3 = singleton4("PackagerFactoryProvider");
246652
+ var sdkUserAgentHostToken4 = singleton5("SdkUserAgentHostToken");
246653
+ var factorySlot3 = singleton5("PackagerFactoryProvider");
246340
246654
  var globalLogHandler2 = (logMessage) => {
246341
246655
  const formattedMessage = logMessage.toFormattedString();
246342
246656
  switch (logMessage.logLevel) {
@@ -246719,10 +247033,10 @@ var PublishDestinationKind2;
246719
247033
  PublishDestinationKind22["OrchestratorSharedLibraries"] = "OrchestratorSharedLibraries";
246720
247034
  PublishDestinationKind22["OrchestratorCustom"] = "OrchestratorCustom";
246721
247035
  })(PublishDestinationKind2 ||= {});
246722
- var package_default3 = {
247036
+ var package_default4 = {
246723
247037
  name: "@uipath/project-packager",
246724
247038
  license: "MIT",
246725
- version: "1.197.0-preview.63",
247039
+ version: "1.197.0-preview.65",
246726
247040
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
246727
247041
  type: "module",
246728
247042
  main: "./dist/index.js",
@@ -246791,7 +247105,7 @@ var package_default3 = {
246791
247105
  vitest: "^4.1.6"
246792
247106
  }
246793
247107
  };
246794
- var SDK_USER_AGENT2 = `${package_default3.name.replace(/^@uipath\//, "")}/${package_default3.version}`;
247108
+ var SDK_USER_AGENT3 = `${package_default4.name.replace(/^@uipath\//, "")}/${package_default4.version}`;
246795
247109
 
246796
247110
  // ../packager/solution-packager/dist/node.js
246797
247111
  init_dist();
@@ -246824,7 +247138,7 @@ var de_default14 = {
246824
247138
  }
246825
247139
  }
246826
247140
  };
246827
- var en8 = {
247141
+ var en9 = {
246828
247142
  solutionpackager: {
246829
247143
  solutionLoader: {
246830
247144
  errors: {
@@ -247146,7 +247460,7 @@ var zu_default5 = {
247146
247460
  }
247147
247461
  }
247148
247462
  };
247149
- I18nManager.registerTranslations("en", en8);
247463
+ I18nManager.registerTranslations("en", en9);
247150
247464
  I18nManager.registerTranslations("de", de_default14);
247151
247465
  I18nManager.registerTranslations("es", es_default14);
247152
247466
  I18nManager.registerTranslations("es-MX", es_MX_default10);
@@ -249945,12 +250259,12 @@ class ResourceOverwritesService {
249945
250259
  async getTenantResourceOverwritesAsync(context, cancellationToken) {
249946
250260
  this.logger.info("Get tenant resource overwrites for solution", context.path);
249947
250261
  const debugOverwrites = await this.readDebugOverwritesAsync(context, cancellationToken);
249948
- const tenantKey = await this.retrieveTenantKey(cancellationToken);
249949
- this.logger.info("Get tenant resource overwrites retrieving for tenant", tenantKey);
249950
- const tenantOverwrites = debugOverwrites.tenants.find((t11) => t11.tenantKey === tenantKey);
249951
- return this.removeDuplicatedResources(context, tenantOverwrites?.resources ?? [], tenantKey, "Get");
250262
+ const tenantKey2 = await this.retrieveTenantKey(cancellationToken);
250263
+ this.logger.info("Get tenant resource overwrites retrieving for tenant", tenantKey2);
250264
+ const tenantOverwrites = debugOverwrites.tenants.find((t11) => t11.tenantKey === tenantKey2);
250265
+ return this.removeDuplicatedResources(context, tenantOverwrites?.resources ?? [], tenantKey2, "Get");
249952
250266
  }
249953
- removeDuplicatedResources(context, resources, tenantKey, action) {
250267
+ removeDuplicatedResources(context, resources, tenantKey2, action) {
249954
250268
  const grouped = new Map;
249955
250269
  for (const r2 of resources) {
249956
250270
  const key = r2.solutionResourceKey;
@@ -249962,7 +250276,7 @@ class ResourceOverwritesService {
249962
250276
  ...grouped.entries()
249963
250277
  ].filter(([, v2]) => v2.length > 1).map(([k2]) => k2);
249964
250278
  if (duplicateKeys.length > 0) {
249965
- this.logger.error(`DUPLICATED RESOURCE OVERWRITES on ${action} for solution ${context.path} in tenant ${tenantKey} for keys: ${duplicateKeys.join(", ")} `);
250279
+ this.logger.error(`DUPLICATED RESOURCE OVERWRITES on ${action} for solution ${context.path} in tenant ${tenantKey2} for keys: ${duplicateKeys.join(", ")} `);
249966
250280
  return [
249967
250281
  ...grouped.values()
249968
250282
  ].map((v2) => v2[v2.length - 1]);
@@ -249979,8 +250293,8 @@ class ResourceOverwritesService {
249979
250293
  }
249980
250294
  async getDebugOverwrites(context, cancellationToken) {
249981
250295
  this.logger.info("Get debug overwrites for solution", context.path);
249982
- const tenantKey = await this.retrieveTenantKey(cancellationToken);
249983
- if (!tenantKey) {
250296
+ const tenantKey2 = await this.retrieveTenantKey(cancellationToken);
250297
+ if (!tenantKey2) {
249984
250298
  this.logger.warn("Tenant key is empty. Skipping retrieval of debug overwrites for solution", context.path);
249985
250299
  return new Map;
249986
250300
  }
@@ -250038,19 +250352,19 @@ class ResourceOverwritesService {
250038
250352
  return;
250039
250353
  const keysToRemove = new Set(resourceKeys.map((k2) => k2.toLowerCase()));
250040
250354
  const debugOverwrites = await this.readDebugOverwritesAsync(context, cancellationToken);
250041
- const tenantKey = await this.retrieveTenantKey(cancellationToken);
250042
- const currentTenantOverwrites = debugOverwrites.tenants.find((t11) => t11.tenantKey === tenantKey)?.resources ?? [];
250355
+ const tenantKey2 = await this.retrieveTenantKey(cancellationToken);
250356
+ const currentTenantOverwrites = debugOverwrites.tenants.find((t11) => t11.tenantKey === tenantKey2)?.resources ?? [];
250043
250357
  const newTenantOverwrites = currentTenantOverwrites.filter((x3) => !keysToRemove.has(x3.solutionResourceKey.toLowerCase()));
250044
250358
  const newOverwrites = {
250045
250359
  docVersion: debugOverwrites.docVersion,
250046
250360
  tenants: [
250047
250361
  {
250048
- tenantKey,
250362
+ tenantKey: tenantKey2,
250049
250363
  resources: newTenantOverwrites
250050
250364
  }
250051
250365
  ]
250052
250366
  };
250053
- const existingOverwrites = debugOverwrites.tenants.filter((t11) => t11.tenantKey !== tenantKey);
250367
+ const existingOverwrites = debugOverwrites.tenants.filter((t11) => t11.tenantKey !== tenantKey2);
250054
250368
  newOverwrites.tenants.push(...existingOverwrites);
250055
250369
  await this.saveOverwritesAsync(context, newOverwrites, cancellationToken);
250056
250370
  }
@@ -250072,18 +250386,18 @@ class ResourceOverwritesService {
250072
250386
  }
250073
250387
  async manageSolutionOverwritesAsync(context, resourceOverwrites, cancellationToken) {
250074
250388
  const overwrites = await this.readDebugOverwritesAsync(context, cancellationToken);
250075
- const tenantKey = await this.retrieveTenantKey(cancellationToken);
250389
+ const tenantKey2 = await this.retrieveTenantKey(cancellationToken);
250076
250390
  const userKey = await this.resourceBuilderAccessProvider.getUserKeyAsync(cancellationToken);
250077
- let tenantOverwrites = overwrites.tenants.find((t11) => t11.tenantKey === tenantKey);
250391
+ let tenantOverwrites = overwrites.tenants.find((t11) => t11.tenantKey === tenantKey2);
250078
250392
  if (!tenantOverwrites) {
250079
250393
  tenantOverwrites = {
250080
- tenantKey,
250394
+ tenantKey: tenantKey2,
250081
250395
  resources: []
250082
250396
  };
250083
250397
  overwrites.tenants.push(tenantOverwrites);
250084
250398
  }
250085
250399
  tenantOverwrites.resources = tenantOverwrites.resources ?? [];
250086
- this.logger.info("ManageSolutionOverwrite - read", tenantOverwrites.resources.length, "overwrites for tenant", tenantKey, "user", userKey, "for solution", context.path);
250400
+ this.logger.info("ManageSolutionOverwrite - read", tenantOverwrites.resources.length, "overwrites for tenant", tenantKey2, "user", userKey, "for solution", context.path);
250087
250401
  for (const newResourceOverwrite of resourceOverwrites) {
250088
250402
  const existingOverwrite = tenantOverwrites.resources.find((x3) => x3.solutionResourceKey.toLowerCase() === newResourceOverwrite.solutionResourceKey.toLowerCase());
250089
250403
  if (existingOverwrite) {
@@ -250092,7 +250406,7 @@ class ResourceOverwritesService {
250092
250406
  } else
250093
250407
  tenantOverwrites.resources.push(newResourceOverwrite);
250094
250408
  }
250095
- this.logger.info("ManageSolutionOverwrite - save", tenantOverwrites.resources.length, "overwrites for tenant", tenantKey, "user", userKey, "for solution", context.path);
250409
+ this.logger.info("ManageSolutionOverwrite - save", tenantOverwrites.resources.length, "overwrites for tenant", tenantKey2, "user", userKey, "for solution", context.path);
250096
250410
  await this.saveOverwritesAsync(context, overwrites, cancellationToken);
250097
250411
  }
250098
250412
  async getOverwritesValidationErrors(solution, resourceOverwrites, cancellationToken) {
@@ -250324,10 +250638,10 @@ class ResourceOverwritesService {
250324
250638
  return this.fileStorageProviderFactory.getCurrentUserProfileProviderAsync(context, cancellationToken);
250325
250639
  }
250326
250640
  async retrieveTenantKey(cancellationToken) {
250327
- const tenantKey = await this.resourceBuilderAccessProvider.getTenantKeyAsync(cancellationToken);
250328
- if (!tenantKey)
250641
+ const tenantKey2 = await this.resourceBuilderAccessProvider.getTenantKeyAsync(cancellationToken);
250642
+ if (!tenantKey2)
250329
250643
  this.logger.warn("Retrieved tenant key is null or empty");
250330
- return tenantKey ?? "";
250644
+ return tenantKey2 ?? "";
250331
250645
  }
250332
250646
  changeOverwrite(newOverwrite, resourceOverwrite) {
250333
250647
  resourceOverwrite.resourceKey = newOverwrite.resourceKey;
@@ -254078,8 +254392,8 @@ class ResourceCatalogApi extends HttpClient {
254078
254392
  format: "json",
254079
254393
  ...params
254080
254394
  }),
254081
- maintenanceTenant: (tenantKey, query, params = {}) => this.request({
254082
- path: `/Maintenance/data-sync/${tenantKey}`,
254395
+ maintenanceTenant: (tenantKey2, query, params = {}) => this.request({
254396
+ path: `/Maintenance/data-sync/${tenantKey2}`,
254083
254397
  method: "GET",
254084
254398
  query,
254085
254399
  secure: true,
@@ -254118,8 +254432,8 @@ class ResourceCatalogApi extends HttpClient {
254118
254432
  secure: true,
254119
254433
  ...params
254120
254434
  }),
254121
- migrationGetCompatibilityReport: (tenantKey, role, data, query, params = {}) => this.request({
254122
- path: `/api/Migration/${tenantKey}/compatibility_report/${role}`,
254435
+ migrationGetCompatibilityReport: (tenantKey2, role, data, query, params = {}) => this.request({
254436
+ path: `/api/Migration/${tenantKey2}/compatibility_report/${role}`,
254123
254437
  method: "POST",
254124
254438
  query,
254125
254439
  body: data,
@@ -254128,8 +254442,8 @@ class ResourceCatalogApi extends HttpClient {
254128
254442
  format: "json",
254129
254443
  ...params
254130
254444
  }),
254131
- migrationPerformPreMaintenanceDataMove: (tenantKey, role, data, query, params = {}) => this.request({
254132
- path: `/api/Migration/${tenantKey}/pre_maintenance_data_move/${role}`,
254445
+ migrationPerformPreMaintenanceDataMove: (tenantKey2, role, data, query, params = {}) => this.request({
254446
+ path: `/api/Migration/${tenantKey2}/pre_maintenance_data_move/${role}`,
254133
254447
  method: "POST",
254134
254448
  query,
254135
254449
  body: data,
@@ -254138,8 +254452,8 @@ class ResourceCatalogApi extends HttpClient {
254138
254452
  format: "json",
254139
254453
  ...params
254140
254454
  }),
254141
- migrationPerformDataMove: (tenantKey, role, data, query, params = {}) => this.request({
254142
- path: `/api/Migration/${tenantKey}/data_move/${role}`,
254455
+ migrationPerformDataMove: (tenantKey2, role, data, query, params = {}) => this.request({
254456
+ path: `/api/Migration/${tenantKey2}/data_move/${role}`,
254143
254457
  method: "POST",
254144
254458
  query,
254145
254459
  body: data,
@@ -254148,8 +254462,8 @@ class ResourceCatalogApi extends HttpClient {
254148
254462
  format: "json",
254149
254463
  ...params
254150
254464
  }),
254151
- migrationSetTenantMaintenanceMode: (tenantKey, role, data, query, params = {}) => this.request({
254152
- path: `/api/Migration/${tenantKey}/maintenance_mode/${role}`,
254465
+ migrationSetTenantMaintenanceMode: (tenantKey2, role, data, query, params = {}) => this.request({
254466
+ path: `/api/Migration/${tenantKey2}/maintenance_mode/${role}`,
254153
254467
  method: "POST",
254154
254468
  query,
254155
254469
  body: data,
@@ -254158,8 +254472,8 @@ class ResourceCatalogApi extends HttpClient {
254158
254472
  format: "json",
254159
254473
  ...params
254160
254474
  }),
254161
- migrationFinalizeMigration: (tenantKey, role, data, query, params = {}) => this.request({
254162
- path: `/api/Migration/${tenantKey}/finalize/${role}`,
254475
+ migrationFinalizeMigration: (tenantKey2, role, data, query, params = {}) => this.request({
254476
+ path: `/api/Migration/${tenantKey2}/finalize/${role}`,
254163
254477
  method: "POST",
254164
254478
  query,
254165
254479
  body: data,
@@ -254168,8 +254482,8 @@ class ResourceCatalogApi extends HttpClient {
254168
254482
  format: "json",
254169
254483
  ...params
254170
254484
  }),
254171
- migrationRollbackMigration: (tenantKey, role, data, query, params = {}) => this.request({
254172
- path: `/api/Migration/${tenantKey}/rollback/${role}`,
254485
+ migrationRollbackMigration: (tenantKey2, role, data, query, params = {}) => this.request({
254486
+ path: `/api/Migration/${tenantKey2}/rollback/${role}`,
254173
254487
  method: "POST",
254174
254488
  query,
254175
254489
  body: data,
@@ -254178,8 +254492,8 @@ class ResourceCatalogApi extends HttpClient {
254178
254492
  format: "json",
254179
254493
  ...params
254180
254494
  }),
254181
- migrationCleanupMigration: (tenantKey, data, query, params = {}) => this.request({
254182
- path: `/api/Migration/${tenantKey}/delete/source`,
254495
+ migrationCleanupMigration: (tenantKey2, data, query, params = {}) => this.request({
254496
+ path: `/api/Migration/${tenantKey2}/delete/source`,
254183
254497
  method: "DELETE",
254184
254498
  query,
254185
254499
  body: data,
@@ -254188,8 +254502,8 @@ class ResourceCatalogApi extends HttpClient {
254188
254502
  format: "json",
254189
254503
  ...params
254190
254504
  }),
254191
- migrationGetMigrationProperties: (tenantKey, role, query, params = {}) => this.request({
254192
- path: `/api/Migration/${tenantKey}/properties/${role}`,
254505
+ migrationGetMigrationProperties: (tenantKey2, role, query, params = {}) => this.request({
254506
+ path: `/api/Migration/${tenantKey2}/properties/${role}`,
254193
254507
  method: "GET",
254194
254508
  query,
254195
254509
  secure: true,
@@ -254213,16 +254527,16 @@ class ResourceCatalogApi extends HttpClient {
254213
254527
  format: "json",
254214
254528
  ...params
254215
254529
  }),
254216
- tenantInstanceGet: (tenantKey, query, params = {}) => this.request({
254217
- path: `/api/tenantserviceinstances/resourcecatalog/${tenantKey}`,
254530
+ tenantInstanceGet: (tenantKey2, query, params = {}) => this.request({
254531
+ path: `/api/tenantserviceinstances/resourcecatalog/${tenantKey2}`,
254218
254532
  method: "GET",
254219
254533
  query,
254220
254534
  secure: true,
254221
254535
  format: "json",
254222
254536
  ...params
254223
254537
  }),
254224
- tenantInstancePatch: (tenantKey, data, query, params = {}) => this.request({
254225
- path: `/api/tenantserviceinstances/resourcecatalog/${tenantKey}`,
254538
+ tenantInstancePatch: (tenantKey2, data, query, params = {}) => this.request({
254539
+ path: `/api/tenantserviceinstances/resourcecatalog/${tenantKey2}`,
254226
254540
  method: "PATCH",
254227
254541
  query,
254228
254542
  body: data,
@@ -254231,8 +254545,8 @@ class ResourceCatalogApi extends HttpClient {
254231
254545
  format: "json",
254232
254546
  ...params
254233
254547
  }),
254234
- tenantInstanceDelete: (tenantKey, query, params = {}) => this.request({
254235
- path: `/api/tenantserviceinstances/resourcecatalog/${tenantKey}`,
254548
+ tenantInstanceDelete: (tenantKey2, query, params = {}) => this.request({
254549
+ path: `/api/tenantserviceinstances/resourcecatalog/${tenantKey2}`,
254236
254550
  method: "DELETE",
254237
254551
  query,
254238
254552
  secure: true,
@@ -254488,7 +254802,7 @@ class ResourceCatalogClientFactory {
254488
254802
  return client;
254489
254803
  }
254490
254804
  static async createClient(accessProvider, cancellationToken) {
254491
- const [baseUrl, accessToken, accountKey, tenantKey] = await Promise.all([
254805
+ const [baseUrl, accessToken, accountKey, tenantKey2] = await Promise.all([
254492
254806
  accessProvider.getResourceUrlAsync(RESOURCE_CATALOG_SERVICE_NAME, cancellationToken),
254493
254807
  accessProvider.getAccessTokenAsync([
254494
254808
  RESOURCE_CATALOG_SCOPE
@@ -254521,7 +254835,7 @@ class ResourceCatalogClientFactory {
254521
254835
  client.setSecurityData({
254522
254836
  accessToken,
254523
254837
  accountKey,
254524
- tenantKey: tenantKey ?? undefined
254838
+ tenantKey: tenantKey2 ?? undefined
254525
254839
  });
254526
254840
  return client;
254527
254841
  }
@@ -255007,7 +255321,7 @@ var FIRST_PARTY_SERVICE_NAME = "automationsolutions";
255007
255321
 
255008
255322
  class FirstPartyServiceClientFactory {
255009
255323
  async createClient(cancellationToken) {
255010
- const [baseUrl, accessToken, accountKey, tenantKey] = await Promise.all([
255324
+ const [baseUrl, accessToken, accountKey, tenantKey2] = await Promise.all([
255011
255325
  this.accessProvider.getResourceUrlAsync(FIRST_PARTY_SERVICE_NAME, cancellationToken),
255012
255326
  this.accessProvider.getAccessTokenAsync([
255013
255327
  FIRST_PARTY_SERVICE_SCOPE
@@ -255043,7 +255357,7 @@ class FirstPartyServiceClientFactory {
255043
255357
  client.setSecurityData({
255044
255358
  accessToken,
255045
255359
  accountKey,
255046
- tenantKey: tenantKey ?? undefined
255360
+ tenantKey: tenantKey2 ?? undefined
255047
255361
  });
255048
255362
  return client;
255049
255363
  }
@@ -255072,7 +255386,7 @@ class FirstPartyServiceClientProxy {
255072
255386
  return this.client;
255073
255387
  }
255074
255388
  async refreshToken(cancellationToken) {
255075
- const [accessToken, accountKey, tenantKey] = await Promise.all([
255389
+ const [accessToken, accountKey, tenantKey2] = await Promise.all([
255076
255390
  this.accessProvider.getAccessTokenAsync([
255077
255391
  FIRST_PARTY_SERVICE_SCOPE
255078
255392
  ], true, cancellationToken),
@@ -255085,7 +255399,7 @@ class FirstPartyServiceClientProxy {
255085
255399
  client.setSecurityData({
255086
255400
  accessToken,
255087
255401
  accountKey,
255088
- tenantKey: tenantKey ?? undefined
255402
+ tenantKey: tenantKey2 ?? undefined
255089
255403
  });
255090
255404
  }
255091
255405
  async getMetadata(cancellationToken) {
@@ -255154,7 +255468,7 @@ class FirstPartyServiceClientProxy {
255154
255468
  if (!accessToken)
255155
255469
  throw new BadRequestException(ErrorCodes.AuthenticationFailed, `Unable to obtain access token for service: ${serviceName}`);
255156
255470
  const accountKey = await this.accessProvider.getAccountKeyAsync(cancellationToken);
255157
- const tenantKey = await this.accessProvider.getTenantKeyAsync(cancellationToken);
255471
+ const tenantKey2 = await this.accessProvider.getTenantKeyAsync(cancellationToken);
255158
255472
  if (!accountKey)
255159
255473
  throw new BadRequestException(ErrorCodes.AuthenticationFailed, "Unable to obtain account key");
255160
255474
  const client = new (await Promise.resolve().then(() => ({
@@ -255190,7 +255504,7 @@ class FirstPartyServiceClientProxy {
255190
255504
  client.setSecurityData({
255191
255505
  accessToken,
255192
255506
  accountKey,
255193
- tenantKey: tenantKey ?? undefined
255507
+ tenantKey: tenantKey2 ?? undefined
255194
255508
  });
255195
255509
  this.serviceClients.set(serviceName.toLowerCase(), client);
255196
255510
  return client;
@@ -256499,7 +256813,7 @@ var WELL_KNOWN_SERVICE_SCOPES = {
256499
256813
 
256500
256814
  class AutomationSolutionsClientFactory {
256501
256815
  async createClient(cancellationToken) {
256502
- const [baseUrl, accessToken, accountKey, tenantKey] = await Promise.all([
256816
+ const [baseUrl, accessToken, accountKey, tenantKey2] = await Promise.all([
256503
256817
  this.accessProvider.getResourceUrlAsync(AUTOMATION_SOLUTIONS_SERVICE_NAME, cancellationToken),
256504
256818
  this.accessProvider.getAccessTokenAsync([
256505
256819
  AUTOMATION_SOLUTIONS_SCOPE
@@ -256532,7 +256846,7 @@ class AutomationSolutionsClientFactory {
256532
256846
  client.setSecurityData({
256533
256847
  accessToken,
256534
256848
  accountKey,
256535
- tenantKey: tenantKey ?? undefined
256849
+ tenantKey: tenantKey2 ?? undefined
256536
256850
  });
256537
256851
  return client;
256538
256852
  }
@@ -256554,7 +256868,7 @@ class automation_solutions_client_proxy_AutomationSolutionsClientProxy {
256554
256868
  return this.client;
256555
256869
  }
256556
256870
  async refreshToken(cancellationToken) {
256557
- const [accessToken, accountKey, tenantKey] = await Promise.all([
256871
+ const [accessToken, accountKey, tenantKey2] = await Promise.all([
256558
256872
  this.accessProvider.getAccessTokenAsync([
256559
256873
  AUTOMATION_SOLUTIONS_SCOPE
256560
256874
  ], true, cancellationToken),
@@ -256567,7 +256881,7 @@ class automation_solutions_client_proxy_AutomationSolutionsClientProxy {
256567
256881
  client.setSecurityData({
256568
256882
  accessToken,
256569
256883
  accountKey,
256570
- tenantKey: tenantKey ?? undefined
256884
+ tenantKey: tenantKey2 ?? undefined
256571
256885
  });
256572
256886
  }
256573
256887
  async getMetadata(scope, cancellationToken) {
@@ -256966,9 +257280,9 @@ class OrchestratorClientFactory {
256966
257280
  this.logger.info("No Orchestrator Service URL retrieved.");
256967
257281
  return null;
256968
257282
  }
256969
- const tenantKey = await this.accessProvider.getTenantKeyAsync(cancellationToken);
257283
+ const tenantKey2 = await this.accessProvider.getTenantKeyAsync(cancellationToken);
256970
257284
  const accountKey = await this.accessProvider.getAccountKeyAsync(cancellationToken);
256971
- if (!tenantKey || !accountKey) {
257285
+ if (!tenantKey2 || !accountKey) {
256972
257286
  this.logger.info("No Tenant or Account Key retrieved.");
256973
257287
  return null;
256974
257288
  }
@@ -256982,7 +257296,7 @@ class OrchestratorClientFactory {
256982
257296
  securityData: {
256983
257297
  accessToken: accessToken ?? "",
256984
257298
  accountKey,
256985
- tenantKey,
257299
+ tenantKey: tenantKey2,
256986
257300
  gatewayIntegrationEnabled,
256987
257301
  ipRangeBypassSecret: ipRangeBypassSecret ?? undefined
256988
257302
  }
@@ -257087,13 +257401,13 @@ class SolutionOverwritesRequestHandler {
257087
257401
  class EditOverwritesCommandHandler {
257088
257402
  async handleAsync(command, cancellationToken) {
257089
257403
  const overwrites = await this.resourceOverwritesService.readDebugOverwritesAsync(command.context, cancellationToken);
257090
- const tenantKey = await this.resourceBuilderAccessProvider.getTenantKeyAsync(cancellationToken) ?? "";
257091
- const fileTenantOverwrites = overwrites.tenants.find((t11) => t11.tenantKey === tenantKey);
257404
+ const tenantKey2 = await this.resourceBuilderAccessProvider.getTenantKeyAsync(cancellationToken) ?? "";
257405
+ const fileTenantOverwrites = overwrites.tenants.find((t11) => t11.tenantKey === tenantKey2);
257092
257406
  const tenantOverwrites = fileTenantOverwrites ?? {
257093
- tenantKey,
257407
+ tenantKey: tenantKey2,
257094
257408
  resources: []
257095
257409
  };
257096
- const dedupedExisting = this.resourceOverwritesService.removeDuplicatedResources(command.context, tenantOverwrites.resources ?? [], tenantKey, "Get");
257410
+ const dedupedExisting = this.resourceOverwritesService.removeDuplicatedResources(command.context, tenantOverwrites.resources ?? [], tenantKey2, "Get");
257097
257411
  const existingOverwrites = new Map;
257098
257412
  for (const r2 of dedupedExisting)
257099
257413
  existingOverwrites.set(r2.solutionResourceKey, r2);
@@ -258059,8 +258373,8 @@ class ProjectDebugCommandHandler {
258059
258373
  async handleAsync(command, cancellationToken) {
258060
258374
  this.logger.info("Debugging project from solution", command.context);
258061
258375
  const solution = await command.context.loadAsync(cancellationToken);
258062
- const tenantKey = await this.accessProvider.getTenantKeyAsync(cancellationToken);
258063
- if (!tenantKey) {
258376
+ const tenantKey2 = await this.accessProvider.getTenantKeyAsync(cancellationToken);
258377
+ if (!tenantKey2) {
258064
258378
  this.logger.error("Tenant key not found while debugging project");
258065
258379
  throw new Error("Tenant key must be set.");
258066
258380
  }
@@ -258074,7 +258388,7 @@ class ProjectDebugCommandHandler {
258074
258388
  docVersion: DebugOverwritesConstants.CurrentOverwritesDocVersion,
258075
258389
  tenants: [
258076
258390
  {
258077
- tenantKey,
258391
+ tenantKey: tenantKey2,
258078
258392
  resources: resourceOverwrites
258079
258393
  }
258080
258394
  ]
@@ -259327,9 +259641,9 @@ class ResourceBuilderAccessProvider {
259327
259641
  }
259328
259642
  async getTenantKeyAsync(cancellationToken) {
259329
259643
  if (this._scopedAuthenticationInfo !== null) {
259330
- const tenantKey = this._scopedAuthenticationInfo.tenantKey;
259331
- if (tenantKey && this.isValidGuid(tenantKey))
259332
- return tenantKey;
259644
+ const tenantKey2 = this._scopedAuthenticationInfo.tenantKey;
259645
+ if (tenantKey2 && this.isValidGuid(tenantKey2))
259646
+ return tenantKey2;
259333
259647
  }
259334
259648
  return this._accessProvider.getTenantKeyAsync(cancellationToken);
259335
259649
  }
@@ -260483,7 +260797,7 @@ class EntryPointSpecEnhancer {
260483
260797
  if (!resource.projectKey) {
260484
260798
  return;
260485
260799
  }
260486
- const [enhanceError] = await catchError(this.applyEntryPointAsync(context, resource.projectKey, spec));
260800
+ const [enhanceError] = await catchError2(this.applyEntryPointAsync(context, resource.projectKey, spec));
260487
260801
  if (enhanceError) {
260488
260802
  logger.warn(`EntryPointSpecEnhancer: failed to enhance spec for resource ${resource.key}: ${enhanceError.message}`);
260489
260803
  }
@@ -260525,7 +260839,7 @@ class EntryPointSpecEnhancer {
260525
260839
  }
260526
260840
  }
260527
260841
  async findSolutionFileAsync(dir3) {
260528
- const [readError, entries] = await catchError(this.fs.readdir(dir3));
260842
+ const [readError, entries] = await catchError2(this.fs.readdir(dir3));
260529
260843
  if (readError || !entries) {
260530
260844
  return;
260531
260845
  }
@@ -260601,7 +260915,7 @@ class FileSystemFileStorageProvider {
260601
260915
  async deleteFileAsync(filePath, cancellationToken) {
260602
260916
  this.throwIfCancelled(cancellationToken);
260603
260917
  const fullPath = this.fs.path.join(this.basePath, filePath);
260604
- const [deleteError] = await catchError(this.fs.rm(fullPath));
260918
+ const [deleteError] = await catchError2(this.fs.rm(fullPath));
260605
260919
  if (deleteError) {
260606
260920
  logger.warn(`File not found, skipping delete: ${fullPath}`);
260607
260921
  }
@@ -260622,13 +260936,13 @@ class FileSystemFileStorageProvider {
260622
260936
  }
260623
260937
  this.throwIfCancelled(cancellationToken);
260624
260938
  const results = [];
260625
- const [readdirError, entries] = await catchError(this.fs.readdir(dir3));
260939
+ const [readdirError, entries] = await catchError2(this.fs.readdir(dir3));
260626
260940
  if (readdirError) {
260627
260941
  return [];
260628
260942
  }
260629
260943
  for (const entryName of entries) {
260630
260944
  const fullPath = this.fs.path.join(dir3, entryName);
260631
- const [statError, stat4] = await catchError(this.fs.stat(fullPath));
260945
+ const [statError, stat4] = await catchError2(this.fs.stat(fullPath));
260632
260946
  if (statError || !stat4) {
260633
260947
  continue;
260634
260948
  }
@@ -260717,7 +261031,7 @@ var normalizeAndValidateBaseUrl = (rawUrl) => {
260717
261031
  baseUrl = baseUrl.slice(0, -1);
260718
261032
  }
260719
261033
  const resolvedBaseUrl = baseUrl;
260720
- const [urlError, url5] = catchError4(() => new URL(resolvedBaseUrl));
261034
+ const [urlError, url5] = catchError5(() => new URL(resolvedBaseUrl));
260721
261035
  if (urlError) {
260722
261036
  throw new InvalidBaseUrlError(baseUrl, `Malformed URL. ${urlError instanceof Error ? urlError.message : "Unknown error"}`);
260723
261037
  }
@@ -260791,7 +261105,7 @@ function isAuthProfileStorage(value) {
260791
261105
  return value !== null && typeof value === "object" && "getStore" in value && "run" in value;
260792
261106
  }
260793
261107
  function createProfileStorage() {
260794
- const [error95, mod3] = catchError4(() => __require("node:async_hooks"));
261108
+ const [error95, mod3] = catchError5(() => __require("node:async_hooks"));
260795
261109
  if (error95 || typeof mod3?.AsyncLocalStorage !== "function") {
260796
261110
  return {
260797
261111
  getStore: () => {
@@ -260950,7 +261264,7 @@ var readAuthFromEnv = () => {
260950
261264
  const organizationId = requireEnv(ENV_AUTH_VARS.organizationId);
260951
261265
  const tenantName = requireEnv(ENV_AUTH_VARS.tenantName);
260952
261266
  const tenantId = requireEnv(ENV_AUTH_VARS.tenantId);
260953
- const [parseError, payload] = catchError4(() => parseJWT(accessToken));
261267
+ const [parseError, payload] = catchError5(() => parseJWT(accessToken));
260954
261268
  if (parseError) {
260955
261269
  throw new EnvAuthConfigError(`${ENV_AUTH_VARS.token} is not a valid JWT: ` + `${parseError instanceof Error ? parseError.message : String(parseError)}`);
260956
261270
  }
@@ -260958,7 +261272,7 @@ var readAuthFromEnv = () => {
260958
261272
  if (typeof iss !== "string" || iss.length === 0) {
260959
261273
  throw new EnvAuthConfigError(`${ENV_AUTH_VARS.token} has no 'iss' claim; cannot determine ` + `the UiPath server. Ensure the token was issued by a UiPath identity server.`);
260960
261274
  }
260961
- const [baseUrlError, baseUrl] = catchError4(() => normalizeAndValidateBaseUrl(iss));
261275
+ const [baseUrlError, baseUrl] = catchError5(() => normalizeAndValidateBaseUrl(iss));
260962
261276
  if (baseUrlError) {
260963
261277
  if (baseUrlError instanceof InvalidBaseUrlError) {
260964
261278
  throw baseUrlError;
@@ -261059,13 +261373,13 @@ var defaultIsRobotIpcAvailable = async () => {
261059
261373
  if (process.platform === "win32") {
261060
261374
  return true;
261061
261375
  }
261062
- const [pipeNamesError, pipeNames] = await catchError4(getRobotIpcPipeNames());
261376
+ const [pipeNamesError, pipeNames] = await catchError5(getRobotIpcPipeNames());
261063
261377
  if (pipeNamesError || !pipeNames) {
261064
261378
  return false;
261065
261379
  }
261066
261380
  const fs8 = getFileSystem2();
261067
261381
  for (const pipeName of pipeNames) {
261068
- const [existsError, exists3] = await catchError4(fs8.exists(pipeName));
261382
+ const [existsError, exists3] = await catchError5(fs8.exists(pipeName));
261069
261383
  if (!existsError && exists3 === true) {
261070
261384
  return true;
261071
261385
  }
@@ -261083,7 +261397,7 @@ var withTimeout = (promise5, timeoutMs) => new Promise((resolve6, reject) => {
261083
261397
  });
261084
261398
  });
261085
261399
  var parseResourceUrl = (url5) => {
261086
- const [error95, parsed] = catchError4(() => new URL(url5));
261400
+ const [error95, parsed] = catchError5(() => new URL(url5));
261087
261401
  if (error95 || !parsed)
261088
261402
  return;
261089
261403
  const segments = parsed.pathname.split("/").filter(Boolean);
@@ -261094,7 +261408,7 @@ var parseResourceUrl = (url5) => {
261094
261408
  };
261095
261409
  };
261096
261410
  var defaultLoadModule = async () => {
261097
- const [error95, mod3] = await catchError4(() => Promise.resolve().then(() => __toESM(require_dist2(), 1)));
261411
+ const [error95, mod3] = await catchError5(() => Promise.resolve().then(() => __toESM(require_dist2(), 1)));
261098
261412
  if (error95 || !mod3) {
261099
261413
  return;
261100
261414
  }
@@ -261120,7 +261434,7 @@ var tryRobotClientFallback = async (options = {}) => {
261120
261434
  const mod3 = await loadModule();
261121
261435
  if (!mod3)
261122
261436
  return;
261123
- const [ctorError, proxy] = catchError4(() => new mod3.RobotProxyConstructor);
261437
+ const [ctorError, proxy] = catchError5(() => new mod3.RobotProxyConstructor);
261124
261438
  if (ctorError || !proxy) {
261125
261439
  return;
261126
261440
  }
@@ -261143,7 +261457,7 @@ var tryRobotClientFallback = async (options = {}) => {
261143
261457
  let organizationIdFromToken;
261144
261458
  let tenantIdFromToken;
261145
261459
  let issuerFromToken;
261146
- const [jwtError, claims] = catchError4(() => parseJWT(accessToken));
261460
+ const [jwtError, claims] = catchError5(() => parseJWT(accessToken));
261147
261461
  if (!jwtError && claims) {
261148
261462
  const rawOrgId = claims.prtId ?? claims.organizationId ?? claims.prt_id;
261149
261463
  if (typeof rawOrgId === "string" && rawOrgId.length > 0) {
@@ -261170,7 +261484,7 @@ var tryRobotClientFallback = async (options = {}) => {
261170
261484
  } catch {
261171
261485
  return;
261172
261486
  } finally {
261173
- await catchError4(() => withTimeout(proxy.CloseAsync(), CLOSE_TIMEOUT_MS));
261487
+ await catchError5(() => withTimeout(proxy.CloseAsync(), CLOSE_TIMEOUT_MS));
261174
261488
  }
261175
261489
  };
261176
261490
 
@@ -262145,7 +262459,7 @@ class VoidApiResponse {
262145
262459
  }
262146
262460
  }
262147
262461
  // ../orchestrator-sdk/package.json
262148
- var package_default4 = {
262462
+ var package_default5 = {
262149
262463
  name: "@uipath/orchestrator-sdk",
262150
262464
  license: "MIT",
262151
262465
  version: "1.197.0",
@@ -262198,8 +262512,8 @@ var package_default4 = {
262198
262512
  };
262199
262513
 
262200
262514
  // ../orchestrator-sdk/src/user-agent.ts
262201
- var SDK_USER_AGENT3 = getSdkUserAgentToken(package_default4);
262202
- installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT3);
262515
+ var SDK_USER_AGENT4 = getSdkUserAgentToken(package_default5);
262516
+ installSdkUserAgentHeader(BaseAPI, SDK_USER_AGENT4);
262203
262517
  // ../orchestrator-sdk/generated/src/models/PrivilegeOfAccessType.ts
262204
262518
  function PrivilegeOfAccessTypeFromJSON(json5) {
262205
262519
  return PrivilegeOfAccessTypeFromJSONTyped(json5, false);
@@ -263679,9 +263993,9 @@ async function createOrchestratorConfig(options) {
263679
263993
  envFilePath: options?.envFilePath
263680
263994
  });
263681
263995
  const orchestratorBasePath = ctx.organizationId && ctx.tenantName ? `${ctx.baseUrl}/${ctx.organizationId}/${ctx.tenantName}/orchestrator_` : ctx.baseUrl;
263682
- const headers = addSdkUserAgentHeader({
263996
+ const headers = addSdkUserAgentHeader2({
263683
263997
  Authorization: `Bearer ${ctx.accessToken}`
263684
- }, SDK_USER_AGENT3);
263998
+ }, SDK_USER_AGENT4);
263685
263999
  if (options?.folderId) {
263686
264000
  headers["X-UIPATH-OrganizationUnitId"] = options.folderId;
263687
264001
  } else if (options?.folderKey && options?.folderPath) {
@@ -263740,12 +264054,12 @@ class SolutionAccessProvider {
263740
264054
  if (this.userKey !== undefined) {
263741
264055
  return this.userKey;
263742
264056
  }
263743
- const [apiError, api4] = await catchError(createApiClient(UsersApi));
264057
+ const [apiError, api4] = await catchError2(createApiClient(UsersApi));
263744
264058
  if (apiError) {
263745
264059
  logger.warn(`Failed to create UsersApi client: ${apiError.message}`);
263746
264060
  return null;
263747
264061
  }
263748
- const [userError, user] = await catchError(api4.usersGetCurrentUser());
264062
+ const [userError, user] = await catchError2(api4.usersGetCurrentUser());
263749
264063
  if (userError || !user?.key) {
263750
264064
  logger.warn(`Failed to get current user key: ${userError?.message ?? "no key in response"}`);
263751
264065
  return null;
@@ -263794,7 +264108,7 @@ function placeholderForType(type) {
263794
264108
  }
263795
264109
  async function buildKindResolver(metadataReader) {
263796
264110
  const cache = new Map;
263797
- const [orderedErr, ordered] = await catchError((async () => metadataReader.getOrderedAsync())());
264111
+ const [orderedErr, ordered] = await catchError2((async () => metadataReader.getOrderedAsync())());
263798
264112
  if (orderedErr || !ordered) {
263799
264113
  logger.warn(`Failed to load SDK resource metadata; kind resolution disabled: ${orderedErr?.message ?? "unknown"}`);
263800
264114
  return async () => {
@@ -263867,7 +264181,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths) {
263867
264181
  return result;
263868
264182
  }
263869
264183
  const bindingsJsonFallbackDirs = new Set(uipxProjects.filter((p2) => BINDINGS_JSON_FALLBACK_TYPES.has(p2.type.toLowerCase())).map((p2) => p2.path));
263870
- const [servicesError, services2] = await catchError(createResourceBuilderServices());
264184
+ const [servicesError, services2] = await catchError2(createResourceBuilderServices());
263871
264185
  if (servicesError) {
263872
264186
  logger.warn(`Failed to create resource builder services: ${servicesError.message}`);
263873
264187
  return result;
@@ -263881,7 +264195,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths) {
263881
264195
  if (allBindings.length === 0 && projectPaths !== undefined) {
263882
264196
  return result;
263883
264197
  }
263884
- const [builderError, builder] = await catchError(services2.getSolutionBuilder(solutionDir));
264198
+ const [builderError, builder] = await catchError2(services2.getSolutionBuilder(solutionDir));
263885
264199
  if (builderError) {
263886
264200
  logger.warn(`Failed to get solution builder: ${builderError.message}`);
263887
264201
  return result;
@@ -263940,7 +264254,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths) {
263940
264254
  continue;
263941
264255
  }
263942
264256
  const callType = isConnection2 ? binding2.metadata?.connector : resolvedType;
263943
- const [importError] = await catchError(builder.addOrUpdateResourceToSolutionAsync({
264257
+ const [importError] = await catchError2(builder.addOrUpdateResourceToSolutionAsync({
263944
264258
  kind,
263945
264259
  type: callType,
263946
264260
  key: rcsMatch.key,
@@ -263979,7 +264293,7 @@ async function syncResourcesFromBindings(solutionDir, projectPaths) {
263979
264293
  return true;
263980
264294
  });
263981
264295
  for (const candidate of dedupedVirtuals) {
263982
- const [syncError] = await catchError(createVirtualForBinding(builder, candidate.binding, candidate.kind, candidate.type, candidate.metadata, candidate.name, candidate.folderPath, result));
264296
+ const [syncError] = await catchError2(createVirtualForBinding(builder, candidate.binding, candidate.kind, candidate.type, candidate.metadata, candidate.name, candidate.folderPath, result));
263983
264297
  if (syncError) {
263984
264298
  logger.warn(`Failed to create virtual ${candidate.kind}/${candidate.name}: ${syncError.message}`);
263985
264299
  }
@@ -263996,7 +264310,7 @@ async function saveAndDisposeBuilder(builder) {
263996
264310
  await builder.disposeAsync();
263997
264311
  return new Error("Builder context exposes no force save method; solution changes were not persisted");
263998
264312
  }
263999
- const [saveError] = await catchError(context.forceSaveChangesAsync.call(context));
264313
+ const [saveError] = await catchError2(context.forceSaveChangesAsync.call(context));
264000
264314
  await builder.disposeAsync();
264001
264315
  return saveError;
264002
264316
  }
@@ -264071,7 +264385,7 @@ async function findResourceByKeyInRcs(builder, kind, expectedKey, folderPath, pr
264071
264385
  const mismatchedFolders = [];
264072
264386
  let pageCursor;
264073
264387
  do {
264074
- const [searchError, result] = await catchError(builder.searchResourcesAsync(kind, undefined, undefined, pageCursor, 100, undefined, false));
264388
+ const [searchError, result] = await catchError2(builder.searchResourcesAsync(kind, undefined, undefined, pageCursor, 100, undefined, false));
264075
264389
  if (searchError) {
264076
264390
  if (propagateErrors) {
264077
264391
  throw searchError;
@@ -264113,7 +264427,7 @@ async function searchRcsResources(builder, kind, name2) {
264113
264427
  let pageCursor;
264114
264428
  const allMatches = [];
264115
264429
  do {
264116
- const [searchError, result] = await catchError(builder.searchResourcesAsync(kind, undefined, name2, pageCursor, 50, undefined, false));
264430
+ const [searchError, result] = await catchError2(builder.searchResourcesAsync(kind, undefined, name2, pageCursor, 50, undefined, false));
264117
264431
  if (searchError) {
264118
264432
  logger.warn(`Failed to search ${kind} resources in RCS: ${searchError.message}`);
264119
264433
  return [];
@@ -264175,7 +264489,7 @@ async function readUipxProjects(solutionDir) {
264175
264489
  const uipxPath = await findUipxFile(solutionDir);
264176
264490
  if (!uipxPath)
264177
264491
  return [];
264178
- const [readError, content] = await catchError(fs8.readFile(uipxPath));
264492
+ const [readError, content] = await catchError2(fs8.readFile(uipxPath));
264179
264493
  if (readError || !content)
264180
264494
  return [];
264181
264495
  let parsed;
@@ -264203,7 +264517,7 @@ async function readUipxProjects(solutionDir) {
264203
264517
  }
264204
264518
  async function readUiprojName(uiprojPath) {
264205
264519
  const fs8 = getFileSystem2();
264206
- const [readError, content] = await catchError(fs8.readFile(uiprojPath));
264520
+ const [readError, content] = await catchError2(fs8.readFile(uiprojPath));
264207
264521
  if (readError || !content)
264208
264522
  return;
264209
264523
  try {
@@ -264233,7 +264547,7 @@ async function reconcileSolutionProjects(builder, solutionDir) {
264233
264547
  if (projectDetails.length === 0)
264234
264548
  return outcome;
264235
264549
  const solutionName = fs8.path.basename(solutionDir);
264236
- const [reconcileError] = await catchError(builder.reconcileProjectsAsync({
264550
+ const [reconcileError] = await catchError2(builder.reconcileProjectsAsync({
264237
264551
  solutionName,
264238
264552
  projects: projectDetails
264239
264553
  }));
@@ -264299,7 +264613,7 @@ async function collectBindings2(solutionDir, projectPaths, bindingsJsonFallbackD
264299
264613
  if (!exists3) {
264300
264614
  continue;
264301
264615
  }
264302
- const [readError, content] = await catchError(fs8.readFile(bindingsPath));
264616
+ const [readError, content] = await catchError2(fs8.readFile(bindingsPath));
264303
264617
  if (readError || !content) {
264304
264618
  parseErrors.push({
264305
264619
  path: bindingsPath,
@@ -264336,7 +264650,7 @@ async function collectBindings2(solutionDir, projectPaths, bindingsJsonFallbackD
264336
264650
  return { bindings: allBindings, parseErrors };
264337
264651
  }
264338
264652
  async function syncAndLog(solutionDir) {
264339
- const [syncError, syncResult] = await catchError(syncResourcesFromBindings(solutionDir));
264653
+ const [syncError, syncResult] = await catchError2(syncResourcesFromBindings(solutionDir));
264340
264654
  if (syncError) {
264341
264655
  logger.warn(`Resource sync failed: ${syncError.message}. Continuing.`);
264342
264656
  return;
@@ -264367,18 +264681,18 @@ async function emitRuntimeDependenciesForProcesses(solutionDir) {
264367
264681
  processed: 0,
264368
264682
  warnings: []
264369
264683
  };
264370
- const [servicesError, services2] = await catchError(createResourceBuilderServices());
264684
+ const [servicesError, services2] = await catchError2(createResourceBuilderServices());
264371
264685
  if (servicesError) {
264372
264686
  result.warnings.push(`Failed to create resource builder services: ${servicesError.message}`);
264373
264687
  return result;
264374
264688
  }
264375
- const [builderError, builder] = await catchError(services2.getSolutionBuilder(solutionDir));
264689
+ const [builderError, builder] = await catchError2(services2.getSolutionBuilder(solutionDir));
264376
264690
  if (builderError) {
264377
264691
  result.warnings.push(`Failed to get solution builder: ${builderError.message}`);
264378
264692
  return result;
264379
264693
  }
264380
264694
  try {
264381
- const [loadError, solution] = await catchError(builder.context.loadAsync());
264695
+ const [loadError, solution] = await catchError2(builder.context.loadAsync());
264382
264696
  if (loadError || !solution) {
264383
264697
  result.warnings.push(`Failed to load solution: ${loadError?.message ?? "unknown"}`);
264384
264698
  return result;
@@ -264388,7 +264702,7 @@ async function emitRuntimeDependenciesForProcesses(solutionDir) {
264388
264702
  return result;
264389
264703
  }
264390
264704
  const overwritesService = services2.container.resolve(Tokens.IResourceOverwritesService);
264391
- const [owErr, tenantOverwrites] = await catchError(overwritesService.getTenantResourceOverwritesAsync(builder.context));
264705
+ const [owErr, tenantOverwrites] = await catchError2(overwritesService.getTenantResourceOverwritesAsync(builder.context));
264392
264706
  if (owErr) {
264393
264707
  result.warnings.push(`Failed to read tenant resource overwrites: ${owErr.message}`);
264394
264708
  }
@@ -264413,7 +264727,7 @@ async function emitRuntimeDependenciesForProcesses(solutionDir) {
264413
264727
  r2.isOverridable = true;
264414
264728
  }
264415
264729
  }
264416
- const [saveErr] = await catchError(builder.context.saveAsync(solution));
264730
+ const [saveErr] = await catchError2(builder.context.saveAsync(solution));
264417
264731
  if (saveErr) {
264418
264732
  result.warnings.push(`Failed to persist runtime dependencies: ${saveErr.message}`);
264419
264733
  }
@@ -264421,7 +264735,7 @@ async function emitRuntimeDependenciesForProcesses(solutionDir) {
264421
264735
  } finally {
264422
264736
  const dispose = builder.disposeAsync;
264423
264737
  if (typeof dispose === "function") {
264424
- const [disposeErr] = await catchError(dispose.call(builder));
264738
+ const [disposeErr] = await catchError2(dispose.call(builder));
264425
264739
  if (disposeErr) {
264426
264740
  logger.warn(`Failed to dispose solution builder after emitting runtime dependencies: ${disposeErr.message}`);
264427
264741
  }
@@ -264432,7 +264746,7 @@ async function readBindings(projectDir, serializer, fs8, warnings) {
264432
264746
  const bindingsPath = fs8.path.join(projectDir, "bindings_v2.json");
264433
264747
  if (!await fs8.exists(bindingsPath))
264434
264748
  return [];
264435
- const [readErr, raw] = await catchError(fs8.readFile(bindingsPath));
264749
+ const [readErr, raw] = await catchError2(fs8.readFile(bindingsPath));
264436
264750
  if (readErr || !raw) {
264437
264751
  warnings.push(`Failed to read ${bindingsPath}: ${readErr?.message ?? "empty"}`);
264438
264752
  return [];
@@ -264484,7 +264798,7 @@ async function findSolutionResourceKeyForBinding(binding2, overwrites, builder,
264484
264798
  warnings.push(`Ambiguous solution resource match for binding "${bindingName}" (kind ${bindingKind}) — ${candidates.length} candidates and no binding folderPath to disambiguate`);
264485
264799
  return;
264486
264800
  }
264487
- const [rcsErr, rcsMatch] = await catchError(findResourceInRcs(builder, bindingKind, bindingName, bindingFolder));
264801
+ const [rcsErr, rcsMatch] = await catchError2(findResourceInRcs(builder, bindingKind, bindingName, bindingFolder));
264488
264802
  if (rcsErr) {
264489
264803
  warnings.push(`RCS folder disambiguation failed for "${bindingName}" (folder "${bindingFolder}"): ${rcsErr.message}`);
264490
264804
  return;
@@ -264546,7 +264860,7 @@ async function readProjectTypes(solutionDir, fs8) {
264546
264860
  if (!content)
264547
264861
  return [];
264548
264862
  const json5 = typeof content === "string" ? content : new TextDecoder().decode(content);
264549
- const [parseError, solution] = catchError(() => JSON.parse(json5));
264863
+ const [parseError, solution] = catchError2(() => JSON.parse(json5));
264550
264864
  if (parseError) {
264551
264865
  throw new Error(`Failed to parse ${uipxFile}: ${parseError.message}`);
264552
264866
  }
@@ -264603,11 +264917,30 @@ async function applyAuthConnection(options, loginValidity) {
264603
264917
  if (loginStatus2.loginStatus) {
264604
264918
  options.connection = {
264605
264919
  accessToken: loginStatus2.accessToken,
264606
- cloudUrl: loginStatus2.baseUrl,
264607
- tenantId: loginStatus2.organizationId
264920
+ cloudUrl: orchestratorBaseUrl(loginStatus2),
264921
+ organizationId: loginStatus2.organizationId,
264922
+ tenantId: loginStatus2.tenantId
264608
264923
  };
264609
264924
  }
264610
264925
  }
264926
+ function orchestratorBaseUrl(loginStatus2) {
264927
+ const { baseUrl, organizationId, tenantName } = loginStatus2;
264928
+ if (!baseUrl) {
264929
+ return baseUrl;
264930
+ }
264931
+ let base = baseUrl;
264932
+ while (base.endsWith("/")) {
264933
+ base = base.slice(0, -1);
264934
+ }
264935
+ const segments = [];
264936
+ if (organizationId) {
264937
+ segments.push(organizationId);
264938
+ if (tenantName) {
264939
+ segments.push(tenantName);
264940
+ }
264941
+ }
264942
+ return segments.length ? `${base}/${segments.join("/")}` : base;
264943
+ }
264611
264944
 
264612
264945
  // src/services/pack-command-service.ts
264613
264946
  class PackCommandService {
@@ -264618,7 +264951,7 @@ class PackCommandService {
264618
264951
  }
264619
264952
  async execute(solutionPath, options, context) {
264620
264953
  const absoluteSolutionPath = this.fs.path.resolve(solutionPath);
264621
- const [statError, stats] = await catchError(this.fs.stat(absoluteSolutionPath));
264954
+ const [statError, stats] = await catchError2(this.fs.stat(absoluteSolutionPath));
264622
264955
  if (statError || !stats) {
264623
264956
  const msg = statError?.message ?? `Solution path does not exist: ${absoluteSolutionPath}`;
264624
264957
  OutputFormatter.error({
@@ -264638,7 +264971,7 @@ class PackCommandService {
264638
264971
  let resolvedOutput;
264639
264972
  let tempDir;
264640
264973
  if (options.dryRun) {
264641
- const [tempDirError, allocated] = await catchError(this.fs.getTempDir());
264974
+ const [tempDirError, allocated] = await catchError2(this.fs.getTempDir());
264642
264975
  if (tempDirError || !allocated) {
264643
264976
  OutputFormatter.error({
264644
264977
  Result: RESULTS.Failure,
@@ -264679,7 +265012,7 @@ Packing solution...
264679
265012
  logger.info("");
264680
265013
  }
264681
265014
  try {
264682
- const [error95, result] = await catchError(this.executeAsync(solutionPath, {
265015
+ const [error95, result] = await catchError2(this.executeAsync(solutionPath, {
264683
265016
  ...options,
264684
265017
  output: resolvedOutput
264685
265018
  }));
@@ -264728,7 +265061,7 @@ Packing solution...
264728
265061
  }
264729
265062
  } finally {
264730
265063
  if (tempDir) {
264731
- const [rmError] = await catchError(this.fs.rm(tempDir));
265064
+ const [rmError] = await catchError2(this.fs.rm(tempDir));
264732
265065
  if (rmError) {
264733
265066
  logger.debug(`Failed to clean up dry-run temp directory ${tempDir}: ${rmError.message}`);
264734
265067
  }
@@ -264763,7 +265096,7 @@ Packing solution...
264763
265096
  for (const w2 of rtd.warnings)
264764
265097
  logger.warn(w2);
264765
265098
  }
264766
- const [error95, result] = await catchError(async () => {
265099
+ const [error95, result] = await catchError2(async () => {
264767
265100
  await this.fs.mkdir(absoluteOutputPath);
264768
265101
  const packager = await this.ensurePackagerAsync();
264769
265102
  let inputPath;
@@ -264845,4 +265178,4 @@ export {
264845
265178
  packSolutionAsync
264846
265179
  };
264847
265180
 
264848
- //# debugId=119F58F6C9D8F4CD64756E2164756E21
265181
+ //# debugId=7BE336C1B1CB984B64756E2164756E21