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

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/publish.js CHANGED
@@ -29631,7 +29631,7 @@ class TextApiResponse2 {
29631
29631
  var package_default2 = {
29632
29632
  name: "@uipath/solution-sdk",
29633
29633
  license: "MIT",
29634
- version: "1.197.0-preview.63",
29634
+ version: "1.197.0-preview.64",
29635
29635
  repository: {
29636
29636
  type: "git",
29637
29637
  url: "https://github.com/UiPath/cli.git",
@@ -32392,4 +32392,4 @@ export {
32392
32392
  publishSolutionAsync
32393
32393
  };
32394
32394
 
32395
- //# debugId=591D442B7975903A64756E2164756E21
32395
+ //# debugId=6EBA262FD790DD9164756E2164756E21
@@ -1,25 +1,7 @@
1
1
  import type { IFileSystem } from "@uipath/filesystem";
2
2
  import { type ISolutionPackager, type SolutionPackOptions } from "@uipath/solution-packager/node";
3
3
  import { LogLevel } from "@uipath/solutionpackager-tool-core";
4
- /**
5
- * Shared building blocks for the solution packager command services
6
- * (`pack`, `restore`). Both run the same SDK packager with the same auth
7
- * connection and log-level mapping; keeping that logic here avoids duplicating
8
- * it across the per-command services.
9
- */
10
- /** Create a node solution packager wired to the CLI logger and telemetry. */
11
4
  export declare function createSolutionPackager(): Promise<ISolutionPackager>;
12
- /**
13
- * Read a solution file as a `Uint8Array`. `IFileSystem.readFile` may hand back
14
- * a `Buffer`/array depending on the backend, so coerce it before passing the
15
- * bytes to the packager.
16
- */
17
5
  export declare function readSolutionFileAsUint8Array(fs: IFileSystem, filePath: string): Promise<Uint8Array>;
18
- /** Map the CLI logger level to the packager SDK log level (defaults to Error). */
19
6
  export declare function resolveSdkLogLevel(): LogLevel;
20
- /**
21
- * Attach the authenticated cloud connection to the packager options when a
22
- * session is available. No-op when the user is not logged in (the packager
23
- * then runs against public feeds only).
24
- */
25
7
  export declare function applyAuthConnection(options: SolutionPackOptions, loginValidity?: number): Promise<void>;
package/dist/tool.js CHANGED
@@ -35630,7 +35630,7 @@ var toolsFactoryRepository2 = _global2[REGISTRY_KEY2];
35630
35630
  var package_default = {
35631
35631
  name: "@uipath/solution-tool",
35632
35632
  license: "MIT",
35633
- version: "1.197.0-preview.63",
35633
+ version: "1.197.0-preview.64",
35634
35634
  description: "Create, pack, publish, and deploy UiPath Automation Solutions.",
35635
35635
  repository: {
35636
35636
  type: "git",
@@ -45706,7 +45706,7 @@ class TextApiResponse2 {
45706
45706
  var package_default3 = {
45707
45707
  name: "@uipath/solution-sdk",
45708
45708
  license: "MIT",
45709
- version: "1.197.0-preview.63",
45709
+ version: "1.197.0-preview.64",
45710
45710
  repository: {
45711
45711
  type: "git",
45712
45712
  url: "https://github.com/UiPath/cli.git",
@@ -77786,7 +77786,7 @@ class ToolLogger {
77786
77786
  var package_default5 = {
77787
77787
  name: "@uipath/project-packager",
77788
77788
  license: "MIT",
77789
- version: "1.197.0-preview.63",
77789
+ version: "1.197.0-preview.64",
77790
77790
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
77791
77791
  type: "module",
77792
77792
  main: "./dist/index.js",
@@ -88748,7 +88748,7 @@ var PublishDestinationKind2;
88748
88748
  var package_default6 = {
88749
88749
  name: "@uipath/project-packager",
88750
88750
  license: "MIT",
88751
- version: "1.197.0-preview.63",
88751
+ version: "1.197.0-preview.64",
88752
88752
  description: "UiPath Project Packager - core library for packing individual UiPath projects",
88753
88753
  type: "module",
88754
88754
  main: "./dist/index.js",
@@ -103622,11 +103622,30 @@ async function applyAuthConnection(options, loginValidity) {
103622
103622
  if (loginStatus2.loginStatus) {
103623
103623
  options.connection = {
103624
103624
  accessToken: loginStatus2.accessToken,
103625
- cloudUrl: loginStatus2.baseUrl,
103626
- tenantId: loginStatus2.organizationId
103625
+ cloudUrl: orchestratorBaseUrl(loginStatus2),
103626
+ organizationId: loginStatus2.organizationId,
103627
+ tenantId: loginStatus2.tenantId
103627
103628
  };
103628
103629
  }
103629
103630
  }
103631
+ function orchestratorBaseUrl(loginStatus2) {
103632
+ const { baseUrl, organizationId, tenantName } = loginStatus2;
103633
+ if (!baseUrl) {
103634
+ return baseUrl;
103635
+ }
103636
+ let base = baseUrl;
103637
+ while (base.endsWith("/")) {
103638
+ base = base.slice(0, -1);
103639
+ }
103640
+ const segments = [];
103641
+ if (organizationId) {
103642
+ segments.push(organizationId);
103643
+ if (tenantName) {
103644
+ segments.push(tenantName);
103645
+ }
103646
+ }
103647
+ return segments.length ? `${base}/${segments.join("/")}` : base;
103648
+ }
103630
103649
 
103631
103650
  // src/services/pack-command-service.ts
103632
103651
  class PackCommandService {
@@ -107186,4 +107205,4 @@ export {
107186
107205
  metadata
107187
107206
  };
107188
107207
 
107189
- //# debugId=15EE240F2A1601D364756E2164756E21
107208
+ //# debugId=DB6B336C4C2F963B64756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/solution-tool",
3
3
  "license": "MIT",
4
- "version": "1.197.0-preview.63",
4
+ "version": "1.197.0-preview.64",
5
5
  "description": "Create, pack, publish, and deploy UiPath Automation Solutions.",
6
6
  "repository": {
7
7
  "type": "git",
@@ -46,5 +46,5 @@
46
46
  "dist"
47
47
  ],
48
48
  "private": false,
49
- "gitHead": "f11c510734215113744bf42073c327ecd776c7c2"
49
+ "gitHead": "3977b977945bf519336258da69fd271433eaaef4"
50
50
  }