@uipath/solution-tool 0.1.14 → 0.2.0

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 (3) hide show
  1. package/README.md +24 -21
  2. package/dist/tool.js +31 -32
  3. package/package.json +7 -7
package/README.md CHANGED
@@ -1,30 +1,33 @@
1
1
  # Solution Tool
2
2
 
3
- `uip` plugin for for managing UiPath Automation Solutions.
4
-
3
+ `uip` tool for managing UiPath Automation Solutions.
5
4
 
6
5
  ## Commands
7
6
 
8
- ### Upload
9
-
10
- Upload a solution package (zip file) to UiPath
11
-
12
- ```bash
13
- uip solution upload <package-path>
14
- ```
15
-
16
- ### Pack
17
-
18
- Pack a UiPath solution from a folder or .uis file
7
+ | Command | Description |
8
+ |---------|-------------|
9
+ | `pack` | Pack a UiPath solution |
10
+ | `publish` | Publish solution package |
11
+ | `new` | Create a new solution |
12
+ | `bundle` | Bundle solution components |
13
+ | `upload` | Upload a solution package |
14
+ | `deploy run` | Deploy solution to environment |
15
+ | `deploy status` | Check deployment status |
16
+ | `deploy activate` | Activate deployed solution |
17
+ | `deploy uninstall` | Remove solution |
18
+ | `deploy list` | List deployments |
19
+ | `deploy config get/set/link/unlink` | Manage deployment configuration |
20
+ | `project add/import/remove` | Manage projects within a solution |
21
+ | `packages list/delete` | Manage solution packages |
22
+
23
+ ### Examples
19
24
 
20
25
  ```bash
21
26
  uip solution pack <solutionPath>
27
+ uip solution publish <packagePath>
28
+ uip solution new --name MySolution
29
+ uip solution upload <packagePath>
30
+ uip solution deploy run --solution-name MySolution
31
+ uip solution deploy status --solution-name MySolution
32
+ uip solution project add --name MyProject
22
33
  ```
23
-
24
- ## Changes
25
-
26
- ### solution-tool 0.0.1
27
- - Added `upload` support
28
-
29
- ### solution-tool 0.0.2
30
- - Added `pack` command
package/dist/tool.js CHANGED
@@ -49469,7 +49469,7 @@ toolsFactoryRepository5.registerProjectToolFactory(new FunctionsToolFactory);
49469
49469
  // package.json
49470
49470
  var package_default = {
49471
49471
  name: "@uipath/solution-tool",
49472
- version: "0.1.14",
49472
+ version: "0.2.0",
49473
49473
  description: "Create, pack, publish, and deploy UiPath Automation Solutions.",
49474
49474
  repository: {
49475
49475
  type: "git",
@@ -51691,15 +51691,6 @@ class PipelinesApi extends BaseAPI {
51691
51691
  return await response.value();
51692
51692
  }
51693
51693
  }
51694
- // ../pipelines-sdk/src/scripts/generate-sdk.ts
51695
- import { dirname as dirname3, join as join2 } from "node:path";
51696
- import { fileURLToPath as fileURLToPath2 } from "node:url";
51697
- var __dirname3 = import.meta.dir ?? dirname3(fileURLToPath2(import.meta.url));
51698
- var PKG_ROOT = join2(__dirname3, "../..");
51699
- var OUTPUT_DIR = join2(PKG_ROOT, "generated");
51700
- var TEMP_DIR = join2(PKG_ROOT, "temp");
51701
- var GENERATE_DIR = join2(PKG_ROOT, "swagger");
51702
- if (false) {}
51703
51694
  // ../auth/src/index.ts
51704
51695
  init_src();
51705
51696
 
@@ -66785,15 +66776,6 @@ class SearchApi extends BaseAPI2 {
66785
66776
  return await response.value();
66786
66777
  }
66787
66778
  }
66788
- // ../solution-sdk/src/scripts/generate-sdk.ts
66789
- import { dirname as dirname4, join as join3 } from "node:path";
66790
- import { fileURLToPath as fileURLToPath3 } from "node:url";
66791
- var __dirname4 = import.meta.dir ?? dirname4(fileURLToPath3(import.meta.url));
66792
- var PKG_ROOT2 = join3(__dirname4, "../..");
66793
- var OUTPUT_DIR2 = join3(PKG_ROOT2, "generated");
66794
- var TEMP_DIR2 = join3(PKG_ROOT2, "temp");
66795
- var GENERATE_DIR2 = join3(PKG_ROOT2, "swagger");
66796
- if (false) {}
66797
66779
  // src/services/folder-helper.ts
66798
66780
  init_src();
66799
66781
 
@@ -69128,12 +69110,6 @@ async function resolveByPath(foldersApi, folderPath) {
69128
69110
  displayName: folder.displayName
69129
69111
  };
69130
69112
  }
69131
- // ../orchestrator-sdk/src/scripts/generate-sdk.ts
69132
- import { join as join4 } from "node:path";
69133
- var OUTPUT_DIR3 = join4(process.cwd(), "generated");
69134
- var TEMP_DIR3 = join4(process.cwd(), "temp");
69135
- var GENRATE_DIR = join4(process.cwd(), "swagger");
69136
- if (false) {}
69137
69113
  // src/services/folder-helper.ts
69138
69114
  async function resolveParentFolder(options) {
69139
69115
  if (options.folderPath && options.folderKey) {
@@ -69215,12 +69191,15 @@ var registerDeployListCommand = (program2) => {
69215
69191
  values = values.filter((d) => d.folderPath === folderPathFilter || d.folderPath?.startsWith(`${folderPathFilter}/`));
69216
69192
  }
69217
69193
  const deployments = values.map((d) => ({
69194
+ Key: d.key,
69195
+ InstallDeploymentKey: d.installDeploymentKey,
69218
69196
  Name: d.name,
69219
69197
  PackageName: d.packageName,
69220
69198
  PackageVersion: d.packageVersion,
69221
69199
  OperationStatus: d.operationStatus,
69222
69200
  ActivationStatus: d.activationStatus,
69223
69201
  FolderPath: d.folderPath,
69202
+ FolderKey: d.installedRootFolderKey,
69224
69203
  CreatedAt: d.deploymentCreationTime
69225
69204
  }));
69226
69205
  OutputFormatter.success({
@@ -69338,15 +69317,31 @@ var registerDeployRunCommand = (program2) => {
69338
69317
  }
69339
69318
  const finalStatus = pollResult.data;
69340
69319
  if (finalStatus.status !== "DeploymentSucceeded") {
69341
- const errors3 = finalStatus.validationResult?.validationErrors?.map((e) => e.errorText).join(", ") || "Unknown error";
69320
+ const errorParts = [];
69321
+ const validationErrors = finalStatus.validationResult?.validationErrors;
69322
+ if (validationErrors?.length) {
69323
+ errorParts.push(`Validation: ${validationErrors.map((e) => e.errorText).join("; ")}`);
69324
+ }
69325
+ if (finalStatus.conflictFixingErrors?.length) {
69326
+ errorParts.push(`Conflicts: ${finalStatus.conflictFixingErrors.map((e) => e.errorText).join("; ")}`);
69327
+ }
69328
+ if (finalStatus.deploymentScheduleErrors?.length) {
69329
+ errorParts.push(`Schedule: ${finalStatus.deploymentScheduleErrors.map((e) => e.errorText).join("; ")}`);
69330
+ }
69331
+ const workflowErrors = finalStatus.deploymentResult?.errorMessage;
69332
+ if (workflowErrors?.length) {
69333
+ errorParts.push(`Deployment: ${workflowErrors.map((e) => e.errorMessage).join("; ")}`);
69334
+ }
69342
69335
  OutputFormatter.error({
69343
69336
  Result: "Failure",
69344
69337
  Message: `Deployment failed with status: ${finalStatus.status}`,
69345
- Instructions: errors3
69338
+ Instructions: errorParts.join(`
69339
+ `) || "Unknown error"
69346
69340
  });
69347
69341
  processContext.exit(1);
69348
69342
  return;
69349
69343
  }
69344
+ const folderPath = parentFolderPath ? `${parentFolderPath}/${options.folderName}` : options.folderName;
69350
69345
  OutputFormatter.success({
69351
69346
  Result: "Success",
69352
69347
  Code: "SolutionDeployRun",
@@ -69354,7 +69349,9 @@ var registerDeployRunCommand = (program2) => {
69354
69349
  Status: finalStatus.status,
69355
69350
  DeploymentKey: finalStatus.deploymentKey,
69356
69351
  PipelineDeploymentId: pipelineDeploymentId,
69357
- InstanceId: finalStatus.instanceId
69352
+ InstanceId: finalStatus.instanceId,
69353
+ FolderName: options.folderName,
69354
+ FolderPath: folderPath
69358
69355
  }
69359
69356
  });
69360
69357
  });
@@ -69410,7 +69407,8 @@ var registerDeployStatusCommand = (program2) => {
69410
69407
  PackageVersion: result.deploymentResult.packageVersion,
69411
69408
  Status: result.deploymentResult.status,
69412
69409
  StartDate: result.deploymentResult.startDate,
69413
- EndDate: result.deploymentResult.endDate
69410
+ EndDate: result.deploymentResult.endDate,
69411
+ Errors: result.deploymentResult.errorMessage?.map((e) => e.errorMessage).join("; ") || undefined
69414
69412
  } : null
69415
69413
  }
69416
69414
  });
@@ -70971,7 +70969,7 @@ import * as os22 from "node:os";
70971
70969
  import * as path22 from "node:path";
70972
70970
  import process82 from "node:process";
70973
70971
  import path3 from "node:path";
70974
- import { fileURLToPath as fileURLToPath4 } from "node:url";
70972
+ import { fileURLToPath as fileURLToPath2 } from "node:url";
70975
70973
  import childProcess32 from "node:child_process";
70976
70974
  import fs52, { constants as fsConstants22 } from "node:fs/promises";
70977
70975
  import { promisify as promisify22 } from "node:util";
@@ -71265,7 +71263,7 @@ async function defaultBrowser22() {
71265
71263
  var isInSsh2 = Boolean(process72.env.SSH_CONNECTION || process72.env.SSH_CLIENT || process72.env.SSH_TTY);
71266
71264
  var is_in_ssh_default2 = isInSsh2;
71267
71265
  var fallbackAttemptSymbol2 = Symbol("fallbackAttempt");
71268
- var __dirname22 = import.meta.url ? path3.dirname(fileURLToPath4(import.meta.url)) : "";
71266
+ var __dirname22 = import.meta.url ? path3.dirname(fileURLToPath2(import.meta.url)) : "";
71269
71267
  var localXdgOpenPath2 = path3.join(__dirname22, "xdg-open");
71270
71268
  var { platform: platform2, arch: arch2 } = process82;
71271
71269
  var tryEachApp2 = async (apps2, opener) => {
@@ -85776,7 +85774,8 @@ var registerProjectAddCommand = (project) => {
85776
85774
  Message: "Failed to add project to solution",
85777
85775
  Instructions: `Project must reside within the solution folder.
85778
85776
  Solution: ${solutionDir}
85779
- Project: ${resolvedProjectPath}`
85777
+ Project: ${resolvedProjectPath}
85778
+ Hint: Use 'uip solution project import' to copy an external project into the solution.`
85780
85779
  });
85781
85780
  processContext.exit(1);
85782
85781
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/solution-tool",
3
- "version": "0.1.14",
3
+ "version": "0.2.0",
4
4
  "description": "Create, pack, publish, and deploy UiPath Automation Solutions.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,19 +36,19 @@
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^25.5.0",
39
- "@uipath/auth": "0.1.11",
40
- "@uipath/common": "0.1.15",
41
- "@uipath/filesystem": "0.1.7",
42
- "@uipath/orchestrator-sdk": "0.1.7",
39
+ "@uipath/auth": "0.2.0",
40
+ "@uipath/common": "0.2.0",
41
+ "@uipath/filesystem": "0.2.0",
42
+ "@uipath/orchestrator-sdk": "0.2.0",
43
43
  "@uipath/packager-tool-connector": "0.0.17",
44
44
  "@uipath/packager-tool-flow": "0.0.17",
45
45
  "@uipath/packager-tool-functions": "0.0.7",
46
46
  "@uipath/packager-tool-webapp": "1.0.4",
47
- "@uipath/pipelines-sdk": "0.1.6",
47
+ "@uipath/pipelines-sdk": "0.2.0",
48
48
  "@uipath/resource-builder-sdk": "^2025.11.0-alpha2432-2950",
49
49
  "@uipath/resource-builder-tool": "2025.11.0-alpha2928-3101",
50
50
  "@uipath/solution-packager": "0.0.30",
51
- "@uipath/solution-sdk": "0.1.6",
51
+ "@uipath/solution-sdk": "0.2.0",
52
52
  "commander": "^14.0.3",
53
53
  "fflate": "^0.8.2",
54
54
  "typescript": "^5"