@uipath/solution-packager 1.205.0-preview.281 → 1.206.0-preview.282

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -747,8 +747,8 @@ class SolutionCleanupService {
747
747
  result: ToolResult.error(ToolErrorCodes.InternalError, `Project '${project.Id}' has no ProjectPath; the solution loader must populate it before cleanup.`)
748
748
  };
749
749
  }
750
- const result2 = await this.projectExecutor.cleanupAsync(this.optionsBuilder.buildProjectCleanupOptions(parameters, project), project, context, cancellationToken);
751
- return { project, result: result2 };
750
+ const result = await this.projectExecutor.cleanupAsync(this.optionsBuilder.buildProjectCleanupOptions(parameters, project), project, context, cancellationToken);
751
+ return { project, result };
752
752
  }));
753
753
  const failed = projectResults.find((r) => !r.result.isSuccess);
754
754
  if (failed) {
@@ -953,7 +953,7 @@ function findPackageIdConflicts(members) {
953
953
  }
954
954
  function packageIdConflictMessage(conflicts) {
955
955
  const described = conflicts.map((conflict) => `'${conflict.id}' from ${conflict.folders.map((folder) => `'${folder}'`).join(" and ")}`).join("; ");
956
- return `Solution members share a package id: ${described}. A NuGet feed stores one package per id and version, so one member's package would replace the other's.`;
956
+ return `Solution members share a package id: ${described}. A NuGet feed stores one package per id and version, so one member's package would replace the other's. Rename the affected projects so each composes a unique id — long names are shortened first, so names that differ only near the end still collide.`;
957
957
  }
958
958
 
959
959
  // src/services/tool-result-helpers.ts
@@ -1463,6 +1463,7 @@ class SolutionPackager {
1463
1463
  id: crypto.randomUUID(),
1464
1464
  projects: solution.Projects,
1465
1465
  solutionRoot: this.fileSystem.path.dirname(solution.filePath),
1466
+ ...options.projectActivity ? { projectActivity: options.projectActivity } : {},
1466
1467
  downloadUrl: options.downloadUrl,
1467
1468
  solutionId: solution.SolutionId,
1468
1469
  configuration: options.configuration,
@@ -1525,6 +1526,7 @@ import {
1525
1526
  } from "@uipath/solutionpackager-tool-core";
1526
1527
 
1527
1528
  class SolutionPackOptions extends PackagerParameters {
1529
+ projectActivity;
1528
1530
  destinationPath;
1529
1531
  projectDesignIds;
1530
1532
  validateOptions = {
@@ -1557,4 +1559,4 @@ export {
1557
1559
  toProjectDiagnostics
1558
1560
  };
1559
1561
 
1560
- //# debugId=3230F107E64723A464756E2164756E21
1562
+ //# debugId=DB219A2809E3FD7964756E2164756E21
package/dist/node.js CHANGED
@@ -392,6 +392,7 @@ import {
392
392
  } from "@uipath/solutionpackager-tool-core";
393
393
 
394
394
  class SolutionPackOptions extends PackagerParameters {
395
+ projectActivity;
395
396
  destinationPath;
396
397
  projectDesignIds;
397
398
  validateOptions = {
@@ -777,8 +778,8 @@ class SolutionCleanupService {
777
778
  result: ToolResult.error(ToolErrorCodes.InternalError, `Project '${project.Id}' has no ProjectPath; the solution loader must populate it before cleanup.`)
778
779
  };
779
780
  }
780
- const result2 = await this.projectExecutor.cleanupAsync(this.optionsBuilder.buildProjectCleanupOptions(parameters, project), project, context, cancellationToken);
781
- return { project, result: result2 };
781
+ const result = await this.projectExecutor.cleanupAsync(this.optionsBuilder.buildProjectCleanupOptions(parameters, project), project, context, cancellationToken);
782
+ return { project, result };
782
783
  }));
783
784
  const failed = projectResults.find((r) => !r.result.isSuccess);
784
785
  if (failed) {
@@ -983,7 +984,7 @@ function findPackageIdConflicts(members) {
983
984
  }
984
985
  function packageIdConflictMessage(conflicts) {
985
986
  const described = conflicts.map((conflict) => `'${conflict.id}' from ${conflict.folders.map((folder) => `'${folder}'`).join(" and ")}`).join("; ");
986
- return `Solution members share a package id: ${described}. A NuGet feed stores one package per id and version, so one member's package would replace the other's.`;
987
+ return `Solution members share a package id: ${described}. A NuGet feed stores one package per id and version, so one member's package would replace the other's. Rename the affected projects so each composes a unique id — long names are shortened first, so names that differ only near the end still collide.`;
987
988
  }
988
989
 
989
990
  // src/services/tool-result-helpers.ts
@@ -1493,6 +1494,7 @@ class SolutionPackager {
1493
1494
  id: crypto.randomUUID(),
1494
1495
  projects: solution.Projects,
1495
1496
  solutionRoot: this.fileSystem.path.dirname(solution.filePath),
1497
+ ...options.projectActivity ? { projectActivity: options.projectActivity } : {},
1496
1498
  downloadUrl: options.downloadUrl,
1497
1499
  solutionId: solution.SolutionId,
1498
1500
  configuration: options.configuration,
@@ -1558,4 +1560,4 @@ export {
1558
1560
  toProjectDiagnostics
1559
1561
  };
1560
1562
 
1561
- //# debugId=5407E726C8B2B72364756E2164756E21
1563
+ //# debugId=5AF5CABCBF37060264756E2164756E21
@@ -1,10 +1,12 @@
1
1
  import type { PackageSigningInfo, PackOptions, PublishInfo, ValidateOptions } from "@uipath/project-packager";
2
2
  import { PackagerParameters } from "@uipath/project-packager";
3
+ import type { ProjectActivityObserver } from "@uipath/solutionpackager-tool-core";
3
4
  import { BuildConfiguration, type NugetPackageInfo } from "@uipath/solutionpackager-tool-core";
4
5
  /**
5
6
  * Solution-specific parameters extending base packager parameters
6
7
  */
7
8
  export declare class SolutionPackOptions extends PackagerParameters {
9
+ projectActivity?: ProjectActivityObserver;
8
10
  /**
9
11
  * Path to the folder where the packed output will be stored.
10
12
  */
@@ -34,6 +34,10 @@ export declare function findPackageIdConflicts(members: MemberPackageId[]): Pack
34
34
  *
35
35
  * Names the id and every folder that produced it: the ids are composed from
36
36
  * the solution name, the project type and the folder, so the folder list is
37
- * the only part the author can act on.
37
+ * the only part the author can act on — and then says to act on it. Callers
38
+ * that surface only this string (Studio Web shows `ToolResult.message` and
39
+ * nothing else) would otherwise leave the author with a diagnosis and no
40
+ * remedy; the `uip solution pack` envelope carries its own longer
41
+ * `Instructions` on top of this.
38
42
  */
39
43
  export declare function packageIdConflictMessage(conflicts: PackageIdConflict[]): string;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uipath/solution-packager",
3
3
  "author": "UiPath",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
- "version": "1.205.0-preview.281",
5
+ "version": "1.206.0-preview.282",
6
6
  "description": "UiPath Solution Packager - core library for packing UiPath solutions",
7
7
  "type": "module",
8
8
  "main": "./dist/index.js",
@@ -33,11 +33,11 @@
33
33
  "dist"
34
34
  ],
35
35
  "dependencies": {
36
- "@uipath/project-packager": "1.205.0",
37
- "@uipath/solutionpackager-tool-core": "1.205.0"
36
+ "@uipath/project-packager": "1.206.0",
37
+ "@uipath/solutionpackager-tool-core": "1.206.0"
38
38
  },
39
39
  "peerDependencies": {
40
40
  "fflate": "^0.8.2"
41
41
  },
42
- "gitHead": "03b01866007f70eea9464da2dceb191a6fc3fb77"
42
+ "gitHead": "9f18b69f2307838e3ce650b91de76cf6c9a23c13"
43
43
  }