@uipath/solution-tool 1.204.0-preview.262 → 1.204.0-preview.265

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.
Files changed (36) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +4 -4
  2. package/dist/{deploy-delete-service-9nkt718d.js → deploy-delete-service-dm9bbb7b.js} +5 -5
  3. package/dist/{deploy-status-service-89xw49bj.js → deploy-status-service-kmj7sv04.js} +5 -5
  4. package/dist/deploy.js +7 -7
  5. package/dist/{deployment-search-fabzj8k9.js → deployment-search-tk7e5w10.js} +2 -2
  6. package/dist/{embedded-file-reader-rf2g1kfj.js → embedded-file-reader-z4becc02.js} +2 -2
  7. package/dist/{feed-resolver-q4cknk7s.js → feed-resolver-nfhnd5b9.js} +2 -2
  8. package/dist/{feed-scope-failure-bjw0mdq5.js → feed-scope-failure-j82rx8sz.js} +3 -3
  9. package/dist/index.js +15 -15
  10. package/dist/init.js +1 -1
  11. package/dist/{list-eq5yvjc4.js → list-d2066rkg.js} +1 -1
  12. package/dist/pack.js +6 -6
  13. package/dist/{packager-tool-cnzd7p0s.js → packager-tool-6dkssvjz.js} +2 -2
  14. package/dist/{packager-tool-gab9y5ct.js → packager-tool-7c1xev49.js} +3 -3
  15. package/dist/{packager-tool-dmpc8pca.js → packager-tool-9224k9ty.js} +22 -22
  16. package/dist/{packager-tool-1nxf1g4x.js → packager-tool-9b6nk0fn.js} +1 -1
  17. package/dist/{packager-tool-sa3jzay7.js → packager-tool-9tjy4dcs.js} +3 -3
  18. package/dist/{packager-tool-a9ehq8k4.js → packager-tool-9wgd3xda.js} +1 -1
  19. package/dist/{packager-tool-zns6n8zp.js → packager-tool-a608j1gt.js} +55 -7
  20. package/dist/{packager-tool-tbtt7xp8.js → packager-tool-kndyk2t3.js} +1 -1
  21. package/dist/{packager-tool-1rzssy0x.js → packager-tool-px0mdrqy.js} +2 -2
  22. package/dist/{packager-tool-d2w95txx.js → packager-tool-pxj9z4j5.js} +1 -1
  23. package/dist/{packager-tool-e2rtr49j.js → packager-tool-qk5012vn.js} +1 -1
  24. package/dist/{packager-tool-qhhn4pkf.js → packager-tool-r3rm8tb2.js} +4 -4
  25. package/dist/{packager-tool-resolver-6zwhec62.js → packager-tool-resolver-8efb8670.js} +2 -2
  26. package/dist/{packager-tool-8xxp2ra2.js → packager-tool-s9brya8f.js} +1 -1
  27. package/dist/{packager-tool-yrz4mwfn.js → packager-tool-t21haejj.js} +616 -160
  28. package/dist/{packager-tool-hx9qkygr.js → packager-tool-v5q3xfqj.js} +5 -5
  29. package/dist/{packager-tool-7jygh2h3.js → packager-tool-xeday8pg.js} +2 -2
  30. package/dist/packager-tool.js +1 -1
  31. package/dist/{prepare-solution-resources-jpb5as2s.js → prepare-solution-resources-8y6fm2qa.js} +5 -5
  32. package/dist/{project-contributions-6wpff2hm.js → project-contributions-kdgd5ajp.js} +4 -4
  33. package/dist/publish.js +3 -3
  34. package/dist/resource.js +1 -1
  35. package/dist/tool.js +15 -15
  36. package/package.json +2 -2
@@ -5,8 +5,8 @@ import {
5
5
  feedSelectorFlag,
6
6
  folderKeyInitOverride,
7
7
  resolveFeedScope
8
- } from "./packager-tool-a9ehq8k4.js";
9
- import"./packager-tool-sa3jzay7.js";
8
+ } from "./packager-tool-9wgd3xda.js";
9
+ import"./packager-tool-9tjy4dcs.js";
10
10
  import"./packager-tool-bqre28m1.js";
11
11
  import"./packager-tool-zdfn32bc.js";
12
12
  import"./packager-tool-f2e9rzxk.js";
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  resolveFeedScopeOrFailureAsync
3
- } from "./packager-tool-tbtt7xp8.js";
4
- import"./packager-tool-a9ehq8k4.js";
5
- import"./packager-tool-sa3jzay7.js";
3
+ } from "./packager-tool-kndyk2t3.js";
4
+ import"./packager-tool-9wgd3xda.js";
5
+ import"./packager-tool-9tjy4dcs.js";
6
6
  import"./packager-tool-bqre28m1.js";
7
7
  import"./packager-tool-zdfn32bc.js";
8
8
  import"./packager-tool-f2e9rzxk.js";
package/dist/index.js CHANGED
@@ -2,25 +2,25 @@
2
2
  import {
3
3
  metadata,
4
4
  registerCommands
5
- } from "./packager-tool-dmpc8pca.js";
5
+ } from "./packager-tool-9224k9ty.js";
6
6
  import"./packager-tool-v8bkkqdb.js";
7
- import"./packager-tool-tbtt7xp8.js";
8
- import"./packager-tool-hx9qkygr.js";
9
- import"./packager-tool-8xxp2ra2.js";
10
- import"./packager-tool-cnzd7p0s.js";
11
- import"./packager-tool-1nxf1g4x.js";
7
+ import"./packager-tool-kndyk2t3.js";
8
+ import"./packager-tool-v5q3xfqj.js";
9
+ import"./packager-tool-s9brya8f.js";
10
+ import"./packager-tool-6dkssvjz.js";
11
+ import"./packager-tool-9b6nk0fn.js";
12
12
  import"./packager-tool-px1j9kre.js";
13
- import"./packager-tool-qhhn4pkf.js";
14
- import"./packager-tool-gab9y5ct.js";
15
- import"./packager-tool-1rzssy0x.js";
16
- import"./packager-tool-e2rtr49j.js";
17
- import"./packager-tool-zns6n8zp.js";
18
- import"./packager-tool-d2w95txx.js";
13
+ import"./packager-tool-r3rm8tb2.js";
14
+ import"./packager-tool-7c1xev49.js";
15
+ import"./packager-tool-px0mdrqy.js";
16
+ import"./packager-tool-qk5012vn.js";
17
+ import"./packager-tool-a608j1gt.js";
18
+ import"./packager-tool-pxj9z4j5.js";
19
19
  import"./packager-tool-7gr2nphb.js";
20
- import"./packager-tool-a9ehq8k4.js";
21
- import"./packager-tool-sa3jzay7.js";
20
+ import"./packager-tool-9wgd3xda.js";
21
+ import"./packager-tool-9tjy4dcs.js";
22
22
  import"./packager-tool-bqre28m1.js";
23
- import"./packager-tool-yrz4mwfn.js";
23
+ import"./packager-tool-t21haejj.js";
24
24
  import"./packager-tool-gdtpsdn7.js";
25
25
  import"./packager-tool-53w8skv5.js";
26
26
  import"./packager-tool-fv7xyzg2.js";
package/dist/init.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  } from "./packager-tool-px1j9kre.js";
5
5
  import {
6
6
  addProjectArtifactsToSolutionAsync
7
- } from "./packager-tool-yrz4mwfn.js";
7
+ } from "./packager-tool-t21haejj.js";
8
8
  import"./packager-tool-gdtpsdn7.js";
9
9
  import"./packager-tool-53w8skv5.js";
10
10
  import"./packager-tool-fv7xyzg2.js";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  getStudioWebSolutionProjects,
7
7
  listStudioWebSolutions
8
- } from "./packager-tool-sa3jzay7.js";
8
+ } from "./packager-tool-9tjy4dcs.js";
9
9
  import"./packager-tool-f2e9rzxk.js";
10
10
  import {
11
11
  DEFAULT_PAGE_SIZE,
package/dist/pack.js CHANGED
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  packSolutionAsync
3
- } from "./packager-tool-qhhn4pkf.js";
4
- import"./packager-tool-gab9y5ct.js";
5
- import"./packager-tool-1rzssy0x.js";
6
- import"./packager-tool-e2rtr49j.js";
7
- import"./packager-tool-zns6n8zp.js";
8
- import"./packager-tool-yrz4mwfn.js";
3
+ } from "./packager-tool-r3rm8tb2.js";
4
+ import"./packager-tool-7c1xev49.js";
5
+ import"./packager-tool-px0mdrqy.js";
6
+ import"./packager-tool-qk5012vn.js";
7
+ import"./packager-tool-a608j1gt.js";
8
+ import"./packager-tool-t21haejj.js";
9
9
  import"./packager-tool-gdtpsdn7.js";
10
10
  import"./packager-tool-53w8skv5.js";
11
11
  import"./packager-tool-fv7xyzg2.js";
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  findDeploymentByName,
3
3
  findLiveDeploymentByName
4
- } from "./packager-tool-1nxf1g4x.js";
4
+ } from "./packager-tool-9b6nk0fn.js";
5
5
  import {
6
6
  folderKeyInitOverride,
7
7
  listSelectablePublishLocations,
8
8
  resolvePersonalWorkspace
9
- } from "./packager-tool-a9ehq8k4.js";
9
+ } from "./packager-tool-9wgd3xda.js";
10
10
  import {
11
11
  catchError,
12
12
  extractErrorDetails
@@ -3,10 +3,10 @@ import {
3
3
  assertNoContributionErrors,
4
4
  collectProjectContributions,
5
5
  contributionErrorMessages
6
- } from "./packager-tool-1rzssy0x.js";
6
+ } from "./packager-tool-px0mdrqy.js";
7
7
  import {
8
8
  ensurePackagerTools
9
- } from "./packager-tool-e2rtr49j.js";
9
+ } from "./packager-tool-qk5012vn.js";
10
10
  import {
11
11
  Tokens,
12
12
  createResourceBuilderServices,
@@ -17,7 +17,7 @@ import {
17
17
  models_BindingsResourceType,
18
18
  readUipxProjects,
19
19
  syncAndLog
20
- } from "./packager-tool-yrz4mwfn.js";
20
+ } from "./packager-tool-t21haejj.js";
21
21
  import {
22
22
  catchError,
23
23
  logger
@@ -4,7 +4,7 @@ import {
4
4
  } from "./packager-tool-v8bkkqdb.js";
5
5
  import {
6
6
  resolveFeedScopeOrFailureAsync
7
- } from "./packager-tool-tbtt7xp8.js";
7
+ } from "./packager-tool-kndyk2t3.js";
8
8
  import {
9
9
  activateDeploymentAsync,
10
10
  deployRunAsync,
@@ -14,7 +14,7 @@ import {
14
14
  listPackagesAsync,
15
15
  uninstallDeploymentAsync,
16
16
  upgradeDeploymentAsync
17
- } from "./packager-tool-hx9qkygr.js";
17
+ } from "./packager-tool-v5q3xfqj.js";
18
18
  import {
19
19
  SolutionInitError,
20
20
  solutionInitAsync
@@ -31,18 +31,18 @@ import {
31
31
  readSolutionFileAsUint8Array,
32
32
  resolveSdkLogLevel,
33
33
  validateGovernanceOptions
34
- } from "./packager-tool-qhhn4pkf.js";
34
+ } from "./packager-tool-r3rm8tb2.js";
35
35
  import {
36
36
  prepareSolutionResources
37
- } from "./packager-tool-gab9y5ct.js";
37
+ } from "./packager-tool-7c1xev49.js";
38
38
  import {
39
39
  ensurePackagerTools,
40
40
  isUnpackableProjectTypeError,
41
41
  toolVerbForProjectType
42
- } from "./packager-tool-e2rtr49j.js";
42
+ } from "./packager-tool-qk5012vn.js";
43
43
  import {
44
44
  publishSolutionAsync
45
- } from "./packager-tool-d2w95txx.js";
45
+ } from "./packager-tool-pxj9z4j5.js";
46
46
  import {
47
47
  Configuration,
48
48
  PipelinesApi
@@ -50,7 +50,7 @@ import {
50
50
  import {
51
51
  feedScopeInitOverride,
52
52
  listSelectablePublishLocations
53
- } from "./packager-tool-a9ehq8k4.js";
53
+ } from "./packager-tool-9wgd3xda.js";
54
54
  import {
55
55
  DeploymentActivationStatus,
56
56
  DeploymentOperationStatus,
@@ -65,7 +65,7 @@ import {
65
65
  isSolutionUploadHttpError,
66
66
  overwriteSolution,
67
67
  solutionExistsOnStudioWeb
68
- } from "./packager-tool-sa3jzay7.js";
68
+ } from "./packager-tool-9tjy4dcs.js";
69
69
  import {
70
70
  applyEntryPointEnhancementAsync,
71
71
  assertSolutionManifest,
@@ -101,7 +101,7 @@ import {
101
101
  toResourceReference,
102
102
  validateResourceName,
103
103
  writeSolutionFile
104
- } from "./packager-tool-yrz4mwfn.js";
104
+ } from "./packager-tool-t21haejj.js";
105
105
  import {
106
106
  ToolResult
107
107
  } from "./packager-tool-fv7xyzg2.js";
@@ -166,7 +166,7 @@ var package_default = {
166
166
  name: "@uipath/solution-tool",
167
167
  author: "UiPath",
168
168
  license: "SEE LICENSE IN LICENSE.txt",
169
- version: "1.204.0-preview.262",
169
+ version: "1.204.0-preview.265",
170
170
  description: "Create, pack, publish, and deploy UiPath Automation Solutions.",
171
171
  repository: {
172
172
  type: "git",
@@ -229,8 +229,8 @@ var package_default = {
229
229
  "@uipath/packager-tool-connector": "workspace:*",
230
230
  "@uipath/pipelines-sdk": "workspace:*",
231
231
  "@uipath/project-executor": "workspace:*",
232
- "@uipath/resource-builder-sdk": "2025.11.0-alpha6004-4107",
233
- "@uipath/resource-builder-tool": "2025.11.0-alpha6004-4107",
232
+ "@uipath/resource-builder-sdk": "1.0.0-s204-17261",
233
+ "@uipath/resource-builder-tool": "1.0.0-s204-17261",
234
234
  "@uipath/solution-packager": "workspace:*",
235
235
  "@uipath/solution-sdk": "workspace:*",
236
236
  "@uipath/solutionpackager-tool-core": "workspace:*",
@@ -1053,7 +1053,7 @@ var registerDeployDeleteCommand = (program) => {
1053
1053
  if (!requireConfirmation(options, `delete deployment '${deploymentName}'`)) {
1054
1054
  return;
1055
1055
  }
1056
- const { deleteDeploymentAsync } = await import("./deploy-delete-service-9nkt718d.js");
1056
+ const { deleteDeploymentAsync } = await import("./deploy-delete-service-dm9bbb7b.js");
1057
1057
  const result = await deleteDeploymentAsync(deploymentName, {
1058
1058
  tenant: options.tenant,
1059
1059
  loginValidity: options.loginValidity
@@ -1581,7 +1581,7 @@ var registerDeployStatusCommand = (program) => {
1581
1581
  processContext.exit(1);
1582
1582
  return;
1583
1583
  }
1584
- const { feedScopeInitOverride: feedScopeInitOverride2 } = await import("./feed-resolver-q4cknk7s.js");
1584
+ const { feedScopeInitOverride: feedScopeInitOverride2 } = await import("./feed-resolver-nfhnd5b9.js");
1585
1585
  const { FeedReadRefusedError, feedReadRefusalForApplication } = await import("./feed-session-sxga31vn.js");
1586
1586
  const refuseFeed = (action) => {
1587
1587
  const refusal = feedReadRefusalForApplication(auth, action);
@@ -1601,14 +1601,14 @@ var registerDeployStatusCommand = (program) => {
1601
1601
  if (options.personalWorkspace === true && refuseFeed("Reading a Personal Workspace deployment")) {
1602
1602
  return;
1603
1603
  }
1604
- const { resolveFeedScopeOrFailureAsync: resolveFeedScopeOrFailureAsync2 } = await import("./feed-scope-failure-bjw0mdq5.js");
1604
+ const { resolveFeedScopeOrFailureAsync: resolveFeedScopeOrFailureAsync2 } = await import("./feed-scope-failure-j82rx8sz.js");
1605
1605
  const [scopeFailure, feedScope] = await resolveFeedScopeOrFailureAsync2(options, auth);
1606
1606
  if (scopeFailure) {
1607
1607
  OutputFormatter.error(scopeFailure);
1608
1608
  processContext.exit(1);
1609
1609
  return;
1610
1610
  }
1611
- const { describeDeploymentAsync, looksLikeDeploymentKey } = await import("./deploy-status-service-89xw49bj.js");
1611
+ const { describeDeploymentAsync, looksLikeDeploymentKey } = await import("./deploy-status-service-kmj7sv04.js");
1612
1612
  if (feedScope.kind !== "tenant" && !looksLikeDeploymentKey(deployment) && refuseFeed(`Reading a deployment in the feed '${feedScope.name ?? feedScope.folderKey}'`)) {
1613
1613
  return;
1614
1614
  }
@@ -1649,7 +1649,7 @@ var registerDeployStatusCommand = (program) => {
1649
1649
  const api = new PipelinesApi(configuration);
1650
1650
  const [statusError, result] = await catchError(api.pipelinesGetPipelineDeploymentStatus({ pipelineDeploymentId: deployment }, feedSelected ? feedScopeInitOverride2(feedScope) : undefined));
1651
1651
  if (statusError) {
1652
- const { isPipelineDeploymentNotFoundError } = await import("./deployment-search-fabzj8k9.js");
1652
+ const { isPipelineDeploymentNotFoundError } = await import("./deployment-search-tk7e5w10.js");
1653
1653
  if (await isPipelineDeploymentNotFoundError(statusError)) {
1654
1654
  const [stateError, state] = await catchError(describe());
1655
1655
  if (stateError instanceof FeedReadRefusedError) {
@@ -5478,9 +5478,9 @@ var registerResourceRefreshSubcommand = (resource) => {
5478
5478
  contributionErrorMessages
5479
5479
  }
5480
5480
  ] = await Promise.all([
5481
- import("./packager-tool-resolver-6zwhec62.js"),
5482
- import("./prepare-solution-resources-jpb5as2s.js"),
5483
- import("./project-contributions-6wpff2hm.js")
5481
+ import("./packager-tool-resolver-8efb8670.js"),
5482
+ import("./prepare-solution-resources-8y6fm2qa.js"),
5483
+ import("./project-contributions-kdgd5ajp.js")
5484
5484
  ]);
5485
5485
  const resolveProjectSubTypesAsync = async () => {
5486
5486
  await ensurePackagerTools2(solutionFolder, fs);
@@ -6782,7 +6782,7 @@ var registerCommands = async (program) => {
6782
6782
  registerResourceCommand(program);
6783
6783
  registerDeleteCommand(program);
6784
6784
  if (isPreviewBuild()) {
6785
- const { registerListCommand } = await import("./list-eq5yvjc4.js");
6785
+ const { registerListCommand } = await import("./list-d2066rkg.js");
6786
6786
  registerListCommand(program);
6787
6787
  }
6788
6788
  registerFeedsCommand(program);
@@ -6790,4 +6790,4 @@ var registerCommands = async (program) => {
6790
6790
 
6791
6791
  export { metadata, registerCommands };
6792
6792
 
6793
- //# debugId=966B7835E388402364756E2164756E21
6793
+ //# debugId=6CBF8788E81E7DD764756E2164756E21
@@ -6,7 +6,7 @@ import {
6
6
  Configuration,
7
7
  DeploymentSearchItemDto2FromJSON,
8
8
  SearchApi
9
- } from "./packager-tool-sa3jzay7.js";
9
+ } from "./packager-tool-9tjy4dcs.js";
10
10
  import {
11
11
  classifyFeedSession
12
12
  } from "./packager-tool-bqre28m1.js";
@@ -1303,7 +1303,7 @@ var package_default = {
1303
1303
  name: "@uipath/solution-sdk",
1304
1304
  author: "UiPath",
1305
1305
  license: "SEE LICENSE IN LICENSE.txt",
1306
- version: "1.204.0-preview.262",
1306
+ version: "1.204.0-preview.265",
1307
1307
  repository: {
1308
1308
  type: "git",
1309
1309
  url: "https://github.com/UiPath/cli.git",
@@ -1354,7 +1354,7 @@ var package_default = {
1354
1354
  "@uipath/common": "workspace:*",
1355
1355
  "@uipath/filesystem": "workspace:*",
1356
1356
  "@uipath/orchestrator-sdk": "workspace:*",
1357
- "@uipath/resource-builder-sdk": "2025.11.0-alpha6004-4107",
1357
+ "@uipath/resource-builder-sdk": "1.0.0-s204-17261",
1358
1358
  "@uipath/solutionpackager-tool-core": "workspace:*",
1359
1359
  "@uipath/studioweb-sdk": "workspace:*",
1360
1360
  "@types/node": "^25.5.2",
@@ -3454,4 +3454,4 @@ async function overwriteSolution(config, organizationName, fileBuffer, fileName,
3454
3454
  }
3455
3455
  export { Configuration, getAvailablePublishLocationsV2, DeploymentActivationStatus, WorkflowAction, DeploymentOperationStatus, DeploymentSearchItemDto2FromJSON, SolutionDeploymentAction, DeploymentsApi, SearchApi, StudioWebIncompatibleProjectError, UipignoreExcludesProjectError, bundleSolution, isDebugProvisioningTerminal, isDebugProvisioningSucceeded, getProjectDebugStatus, getStudioWebSolutionProjects, listStudioWebSolutions, isSolutionUploadHttpError, buildSolutionUploadFailureOutput, solutionExistsOnStudioWeb, importSolution, overwriteSolution };
3456
3456
 
3457
- //# debugId=8598B63C2A0CFBD864756E2164756E21
3457
+ //# debugId=CD41DAD9BF2FB8DD64756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getAvailablePublishLocationsV2
3
- } from "./packager-tool-sa3jzay7.js";
3
+ } from "./packager-tool-9tjy4dcs.js";
4
4
  import {
5
5
  classifyFeedSession
6
6
  } from "./packager-tool-bqre28m1.js";
@@ -144,7 +144,7 @@ class ConnectorToolFactory {
144
144
  return new ConnectorTool(fileSystem, logger);
145
145
  }
146
146
  }
147
- // ../../node_modules/@uipath/resource-builder-tool/dist/index.js
147
+ // node_modules/@uipath/resource-builder-tool/dist/index.js
148
148
  function _define_property(obj, key, value) {
149
149
  if (key in obj)
150
150
  Object.defineProperty(obj, key, {
@@ -165,6 +165,16 @@ var KNOWN_ARCHIVE_FOLDERS = {
165
165
  files: "files",
166
166
  resources: "resources"
167
167
  };
168
+ var KNOWN_PACKAGE_TYPES = {
169
+ standard: "Standard",
170
+ vertical: "Vertical"
171
+ };
172
+ var WELL_KNOWN_PROJECT_TYPES = {
173
+ process: "process"
174
+ };
175
+ var WELL_KNOWN_PROPERTY_NAMES = {
176
+ packageName: "packageName"
177
+ };
168
178
  var PACKAGE_DEFAULTS = {
169
179
  currentVersion: "v1",
170
180
  defaultPackageVersion: "1.0.0",
@@ -239,9 +249,38 @@ function buildFailureMessage(failures) {
239
249
  return lines.join(`
240
250
  `);
241
251
  }
252
+ function toPackageType(solutionType) {
253
+ if (solutionType == null)
254
+ return;
255
+ const canonical = Object.values(KNOWN_PACKAGE_TYPES).find((knownType) => knownType.toLowerCase() === solutionType.toLowerCase());
256
+ return canonical ?? solutionType;
257
+ }
242
258
  function isArtefactResource(resource) {
243
259
  return resource.projectKey != null && resource.projectKey.trim() !== "";
244
260
  }
261
+ function isProcessArtefact(resource) {
262
+ return isArtefactResource(resource) && resource.kind?.toLowerCase() === WELL_KNOWN_PROJECT_TYPES.process;
263
+ }
264
+ function findDuplicateProcessPackageNames(resources) {
265
+ const seen = new Set;
266
+ const duplicates = new Set;
267
+ for (const resource of resources) {
268
+ if (!isProcessArtefact(resource))
269
+ continue;
270
+ const packageName = resource.spec?.[WELL_KNOWN_PROPERTY_NAMES.packageName];
271
+ if (typeof packageName == "string" && packageName !== "")
272
+ if (seen.has(packageName))
273
+ duplicates.add(packageName);
274
+ else
275
+ seen.add(packageName);
276
+ }
277
+ return [
278
+ ...duplicates
279
+ ];
280
+ }
281
+ function duplicatePackageNameMessage(duplicates) {
282
+ return `The solution contains multiple process artefacts that resolve to the same package name: '${duplicates}'. Rename the affected projects so each package name is unique before publishing.`;
283
+ }
245
284
  var JSON_INDENT = 2;
246
285
  function shouldExcludeValue(value) {
247
286
  return value == null;
@@ -470,6 +509,13 @@ class ResourceBuilderTool extends SolutionTool {
470
509
  this.logger.error(`Invalid package version ${packageVersion}`);
471
510
  return ToolResult.error("VALIDATION_ERROR", `Invalid package version: ${packageVersion}`);
472
511
  }
512
+ const resources = await this.readFromDirectory(KNOWN_ARCHIVE_FOLDERS.resources, cancellationToken);
513
+ const duplicatePackageNames = findDuplicateProcessPackageNames(resources);
514
+ if (duplicatePackageNames.length > 0) {
515
+ const duplicates = duplicatePackageNames.join(", ");
516
+ this.logger.error(`Duplicate process package name(s) found in solution: ${duplicates}`);
517
+ return ToolResult.error("VALIDATION_ERROR", duplicatePackageNameMessage(duplicates));
518
+ }
473
519
  this.logger.info("Validate finished.");
474
520
  return ToolResult.success();
475
521
  } catch (error) {
@@ -654,6 +700,7 @@ class ResourceBuilderTool extends SolutionTool {
654
700
  projectKey: solutionId,
655
701
  packageVersionKey,
656
702
  origin: "Studio",
703
+ packageType: toPackageType(options.solutionType),
657
704
  configuration: options.configuration
658
705
  };
659
706
  this.logger.info(`Creating solution package with name '${metadata.packageName}' and version '${metadata.packageVersion}'.`);
@@ -700,6 +747,8 @@ class ResourceBuilderTool extends SolutionTool {
700
747
  try {
701
748
  while (redirectCount < RESILIENCE_DEFAULTS.maxRedirectRetries) {
702
749
  const response = await this.fetchWithRetry(currentUrl, accessToken, maxRetryAttempts, retryIntervalMs, file.name, cancellationToken);
750
+ if (response.type === "opaqueredirect" || response.status === 0)
751
+ return createFailure("TooManyRedirects", `Redirect to the file location was not followed (response type '${response.type}')`);
703
752
  if (isRedirectStatusCode(response.status)) {
704
753
  const location = response.headers.get("location");
705
754
  if (!location)
@@ -723,13 +772,13 @@ class ResourceBuilderTool extends SolutionTool {
723
772
  };
724
773
  }
725
774
  const retryServerMessage = await this.readResponseTextSafe(retryResponse);
726
- return createFailure(mapHttpStatusCodeToReason(retryResponse.status), retryServerMessage ?? `HTTP ${retryResponse.status}`);
775
+ return createFailure(mapHttpStatusCodeToReason(retryResponse.status), retryServerMessage || `HTTP ${retryResponse.status}`);
727
776
  }
728
- return createFailure(mapHttpStatusCodeToReason(response.status), serverMessage ?? `HTTP ${response.status}`);
777
+ return createFailure(mapHttpStatusCodeToReason(response.status), serverMessage || `HTTP ${response.status}`);
729
778
  }
730
779
  if (!response.ok) {
731
780
  const serverMessage = await this.readResponseTextSafe(response);
732
- return createFailure(mapHttpStatusCodeToReason(response.status), serverMessage ?? `HTTP ${response.status}: ${response.statusText}`);
781
+ return createFailure(mapHttpStatusCodeToReason(response.status), serverMessage || `HTTP ${response.status}: ${response.statusText}`);
733
782
  }
734
783
  const buffer = await response.arrayBuffer();
735
784
  await this.fileSystem.writeFile(filePath, Buffer.from(buffer));
@@ -794,8 +843,7 @@ class ResourceBuilderTool extends SolutionTool {
794
843
  signal: cancellationToken,
795
844
  headers: accessToken ? {
796
845
  Authorization: `Bearer ${accessToken}`
797
- } : undefined,
798
- redirect: "manual"
846
+ } : undefined
799
847
  });
800
848
  if (isRetriableStatusCode(response.status) && attempt <= maxRetryAttempts) {
801
849
  const delayMs = retryIntervalMs * attempt;
@@ -834,4 +882,4 @@ function registerPackagerFactories() {
834
882
 
835
883
  export { registerPackagerFactories };
836
884
 
837
- //# debugId=D9EA794DD6EA909B64756E2164756E21
885
+ //# debugId=74FBEFB69DDDB62B64756E2164756E21
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  describeFeedResolutionFailureAsync,
3
3
  resolveFeedScope
4
- } from "./packager-tool-a9ehq8k4.js";
4
+ } from "./packager-tool-9wgd3xda.js";
5
5
  import {
6
6
  RESULTS,
7
7
  catchError
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  toolVerbForProjectType
3
- } from "./packager-tool-e2rtr49j.js";
3
+ } from "./packager-tool-qk5012vn.js";
4
4
  import {
5
5
  computeEntryPointSpec,
6
6
  createResourceBuilderServices,
7
7
  hasAnyTemplateRow,
8
8
  hasBareTemplateRow,
9
9
  readUipxProjects
10
- } from "./packager-tool-yrz4mwfn.js";
10
+ } from "./packager-tool-t21haejj.js";
11
11
  import {
12
12
  toolsFactoryRepository
13
13
  } from "./packager-tool-fv7xyzg2.js";
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  feedScopeInitOverride,
7
7
  resolveFeedScope
8
- } from "./packager-tool-a9ehq8k4.js";
8
+ } from "./packager-tool-9wgd3xda.js";
9
9
  import {
10
10
  getSolutionAuthContext
11
11
  } from "./packager-tool-f5gq77m5.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  registerPackagerFactories
3
- } from "./packager-tool-zns6n8zp.js";
3
+ } from "./packager-tool-a608j1gt.js";
4
4
  import {
5
5
  toolsFactoryRepository
6
6
  } from "./packager-tool-fv7xyzg2.js";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  prepareSolutionResources
3
- } from "./packager-tool-gab9y5ct.js";
3
+ } from "./packager-tool-7c1xev49.js";
4
4
  import {
5
5
  ensurePackagerTools,
6
6
  isUnpackableProjectTypeError
7
- } from "./packager-tool-e2rtr49j.js";
7
+ } from "./packager-tool-qk5012vn.js";
8
8
  import {
9
9
  I18nManager,
10
10
  LogMessage,
@@ -3499,7 +3499,7 @@ var package_default = {
3499
3499
  name: "@uipath/project-packager",
3500
3500
  author: "UiPath",
3501
3501
  license: "SEE LICENSE IN LICENSE.txt",
3502
- version: "1.204.0-preview.262",
3502
+ version: "1.204.0-preview.265",
3503
3503
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
3504
3504
  type: "module",
3505
3505
  main: "./dist/index.js",
@@ -5887,4 +5887,4 @@ async function packSolutionAsync(solutionPath, options) {
5887
5887
 
5888
5888
  export { SolutionPackOptions, createSolutionPackager, readSolutionFileAsUint8Array, resolveSdkLogLevel, applyAuthConnection, SOLUTION_PATH_INSTRUCTIONS, checkSolutionPathAsync, GOVERNANCE_OPTION_INSTRUCTIONS, validateGovernanceOptions, PackCommandService, packSolutionAsync };
5889
5889
 
5890
- //# debugId=1A0A4F6FB3B2395364756E2164756E21
5890
+ //# debugId=A6D04933FD68775864756E2164756E21
@@ -3,8 +3,8 @@ import {
3
3
  ensurePackagerTools,
4
4
  isUnpackableProjectTypeError,
5
5
  toolVerbForProjectType
6
- } from "./packager-tool-e2rtr49j.js";
7
- import"./packager-tool-zns6n8zp.js";
6
+ } from "./packager-tool-qk5012vn.js";
7
+ import"./packager-tool-a608j1gt.js";
8
8
  import"./packager-tool-fv7xyzg2.js";
9
9
  import"./packager-tool-kswwd3hp.js";
10
10
  import"./packager-tool-zf3929se.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SolutionDeploymentAction
3
- } from "./packager-tool-sa3jzay7.js";
3
+ } from "./packager-tool-9tjy4dcs.js";
4
4
  import {
5
5
  catchError
6
6
  } from "./packager-tool-kswwd3hp.js";