@uipath/solution-tool 1.197.0 → 1.198.0-preview.81
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/deploy.js +70 -20
- package/dist/init.js +6 -1
- package/dist/pack.js +451 -90
- package/dist/packager-tool.js +4676 -0
- package/dist/publish.js +36 -7
- package/dist/resource.js +24 -5
- package/dist/services/deploy-list-service.d.ts +9 -0
- package/dist/services/packages-list-service.d.ts +9 -0
- package/dist/services/publish-service.d.ts +1 -1
- package/dist/tool.js +9499 -11394
- package/package.json +2 -2
package/dist/publish.js
CHANGED
|
@@ -21287,8 +21287,15 @@ var TLS_ERROR_CODES = new Set([
|
|
|
21287
21287
|
var TLS_INSTRUCTIONS = "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.";
|
|
21288
21288
|
var NETWORK_INSTRUCTIONS = "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.";
|
|
21289
21289
|
function describeConnectivityError(error) {
|
|
21290
|
-
|
|
21291
|
-
|
|
21290
|
+
const queue = [error];
|
|
21291
|
+
const seen = new Set;
|
|
21292
|
+
for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
|
|
21293
|
+
const current = queue.shift();
|
|
21294
|
+
if (current === null || typeof current !== "object")
|
|
21295
|
+
continue;
|
|
21296
|
+
if (seen.has(current))
|
|
21297
|
+
continue;
|
|
21298
|
+
seen.add(current);
|
|
21292
21299
|
const cur = current;
|
|
21293
21300
|
const code = typeof cur.code === "string" ? cur.code : undefined;
|
|
21294
21301
|
const message = typeof cur.message === "string" ? cur.message : undefined;
|
|
@@ -21308,7 +21315,10 @@ function describeConnectivityError(error) {
|
|
|
21308
21315
|
instructions: NETWORK_INSTRUCTIONS
|
|
21309
21316
|
};
|
|
21310
21317
|
}
|
|
21311
|
-
|
|
21318
|
+
if (cur.cause !== undefined)
|
|
21319
|
+
queue.push(cur.cause);
|
|
21320
|
+
if (Array.isArray(cur.errors))
|
|
21321
|
+
queue.push(...cur.errors);
|
|
21312
21322
|
}
|
|
21313
21323
|
return;
|
|
21314
21324
|
}
|
|
@@ -26539,6 +26549,7 @@ function getLogFilePath() {
|
|
|
26539
26549
|
// ../common/src/output-format-context.ts
|
|
26540
26550
|
var formatSlot = singleton("OutputFormat");
|
|
26541
26551
|
var formatExplicitSlot = singleton("OutputFormatExplicit");
|
|
26552
|
+
var helpRequestedSlot = singleton("HelpRequested");
|
|
26542
26553
|
var filterSlot = singleton("OutputFilter");
|
|
26543
26554
|
function getOutputFormat() {
|
|
26544
26555
|
return formatSlot.get("json");
|
|
@@ -27606,6 +27617,9 @@ var OutputFormatter;
|
|
|
27606
27617
|
if (opts?.warning) {
|
|
27607
27618
|
data.Warning = opts.warning;
|
|
27608
27619
|
}
|
|
27620
|
+
if (opts?.pagination) {
|
|
27621
|
+
data.Pagination = opts.pagination;
|
|
27622
|
+
}
|
|
27609
27623
|
success(data);
|
|
27610
27624
|
}
|
|
27611
27625
|
OutputFormatter.emitList = emitList;
|
|
@@ -28045,6 +28059,7 @@ var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
|
|
|
28045
28059
|
var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
|
|
28046
28060
|
// ../common/src/interactivity-context.ts
|
|
28047
28061
|
var modeSlot = singleton("InteractivityMode");
|
|
28062
|
+
var interactiveFlagSlot = singleton("InteractiveFlag");
|
|
28048
28063
|
// ../common/src/polling/format-utils.ts
|
|
28049
28064
|
function msToDuration(ms) {
|
|
28050
28065
|
if (!Number.isFinite(ms) || ms < 0) {
|
|
@@ -28876,7 +28891,7 @@ class TextApiResponse {
|
|
|
28876
28891
|
var package_default = {
|
|
28877
28892
|
name: "@uipath/pipelines-sdk",
|
|
28878
28893
|
license: "MIT",
|
|
28879
|
-
version: "1.
|
|
28894
|
+
version: "1.198.0",
|
|
28880
28895
|
description: "Generated TypeScript client for UiPath Pipelines API (CI/CD deployment lifecycle)",
|
|
28881
28896
|
repository: {
|
|
28882
28897
|
type: "git",
|
|
@@ -30200,7 +30215,7 @@ class TextApiResponse2 {
|
|
|
30200
30215
|
var package_default2 = {
|
|
30201
30216
|
name: "@uipath/solution-sdk",
|
|
30202
30217
|
license: "MIT",
|
|
30203
|
-
version: "1.
|
|
30218
|
+
version: "1.198.0-preview.81",
|
|
30204
30219
|
repository: {
|
|
30205
30220
|
type: "git",
|
|
30206
30221
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -32043,6 +32058,10 @@ var getAuthContext = async (options = {}) => {
|
|
|
32043
32058
|
tenantName
|
|
32044
32059
|
};
|
|
32045
32060
|
};
|
|
32061
|
+
|
|
32062
|
+
// ../auth/src/index.ts
|
|
32063
|
+
init_constants();
|
|
32064
|
+
|
|
32046
32065
|
// ../auth/src/interactive.ts
|
|
32047
32066
|
init_src();
|
|
32048
32067
|
|
|
@@ -32332,7 +32351,7 @@ class VoidApiResponse3 {
|
|
|
32332
32351
|
var package_default3 = {
|
|
32333
32352
|
name: "@uipath/orchestrator-sdk",
|
|
32334
32353
|
license: "MIT",
|
|
32335
|
-
version: "1.
|
|
32354
|
+
version: "1.198.0",
|
|
32336
32355
|
repository: {
|
|
32337
32356
|
type: "git",
|
|
32338
32357
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -32799,6 +32818,16 @@ async function publishSolutionAsync(packagePath, options = {}) {
|
|
|
32799
32818
|
};
|
|
32800
32819
|
}
|
|
32801
32820
|
if (!resolvedPath.endsWith(".zip")) {
|
|
32821
|
+
const stats = await fs7.stat(resolvedPath);
|
|
32822
|
+
const isSolutionSource = stats?.isDirectory() === true || resolvedPath.endsWith(".uis") || resolvedPath.endsWith(".uipx");
|
|
32823
|
+
if (isSolutionSource) {
|
|
32824
|
+
return {
|
|
32825
|
+
ok: false,
|
|
32826
|
+
reason: "not_packed",
|
|
32827
|
+
message: `'${packagePath}' is a solution source, not a packed package. 'publish' uploads the .zip produced by 'solution pack'.`,
|
|
32828
|
+
details: resolvedPath
|
|
32829
|
+
};
|
|
32830
|
+
}
|
|
32802
32831
|
return {
|
|
32803
32832
|
ok: false,
|
|
32804
32833
|
reason: "not_a_zip",
|
|
@@ -32961,4 +32990,4 @@ export {
|
|
|
32961
32990
|
publishSolutionAsync
|
|
32962
32991
|
};
|
|
32963
32992
|
|
|
32964
|
-
//# debugId=
|
|
32993
|
+
//# debugId=42E9A33F8A69727764756E2164756E21
|
package/dist/resource.js
CHANGED
|
@@ -23649,8 +23649,15 @@ var TLS_ERROR_CODES = new Set([
|
|
|
23649
23649
|
var TLS_INSTRUCTIONS = "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.";
|
|
23650
23650
|
var NETWORK_INSTRUCTIONS = "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.";
|
|
23651
23651
|
function describeConnectivityError(error) {
|
|
23652
|
-
|
|
23653
|
-
|
|
23652
|
+
const queue = [error];
|
|
23653
|
+
const seen = new Set;
|
|
23654
|
+
for (let steps = 0;queue.length > 0 && steps < 32; steps++) {
|
|
23655
|
+
const current = queue.shift();
|
|
23656
|
+
if (current === null || typeof current !== "object")
|
|
23657
|
+
continue;
|
|
23658
|
+
if (seen.has(current))
|
|
23659
|
+
continue;
|
|
23660
|
+
seen.add(current);
|
|
23654
23661
|
const cur = current;
|
|
23655
23662
|
const code = typeof cur.code === "string" ? cur.code : undefined;
|
|
23656
23663
|
const message = typeof cur.message === "string" ? cur.message : undefined;
|
|
@@ -23670,7 +23677,10 @@ function describeConnectivityError(error) {
|
|
|
23670
23677
|
instructions: NETWORK_INSTRUCTIONS
|
|
23671
23678
|
};
|
|
23672
23679
|
}
|
|
23673
|
-
|
|
23680
|
+
if (cur.cause !== undefined)
|
|
23681
|
+
queue.push(cur.cause);
|
|
23682
|
+
if (Array.isArray(cur.errors))
|
|
23683
|
+
queue.push(...cur.errors);
|
|
23674
23684
|
}
|
|
23675
23685
|
return;
|
|
23676
23686
|
}
|
|
@@ -28905,6 +28915,7 @@ function getLogFilePath() {
|
|
|
28905
28915
|
// ../common/src/output-format-context.ts
|
|
28906
28916
|
var formatSlot = singleton("OutputFormat");
|
|
28907
28917
|
var formatExplicitSlot = singleton("OutputFormatExplicit");
|
|
28918
|
+
var helpRequestedSlot = singleton("HelpRequested");
|
|
28908
28919
|
var filterSlot = singleton("OutputFilter");
|
|
28909
28920
|
function getOutputFormat() {
|
|
28910
28921
|
return formatSlot.get("json");
|
|
@@ -29972,6 +29983,9 @@ var OutputFormatter;
|
|
|
29972
29983
|
if (opts?.warning) {
|
|
29973
29984
|
data.Warning = opts.warning;
|
|
29974
29985
|
}
|
|
29986
|
+
if (opts?.pagination) {
|
|
29987
|
+
data.Pagination = opts.pagination;
|
|
29988
|
+
}
|
|
29975
29989
|
success(data);
|
|
29976
29990
|
}
|
|
29977
29991
|
OutputFormatter.emitList = emitList;
|
|
@@ -30416,6 +30430,7 @@ function isGuid(value) {
|
|
|
30416
30430
|
}
|
|
30417
30431
|
// ../common/src/interactivity-context.ts
|
|
30418
30432
|
var modeSlot = singleton("InteractivityMode");
|
|
30433
|
+
var interactiveFlagSlot = singleton("InteractiveFlag");
|
|
30419
30434
|
// ../common/src/polling/types.ts
|
|
30420
30435
|
var PollOutcome = {
|
|
30421
30436
|
Completed: "completed",
|
|
@@ -31749,6 +31764,10 @@ var getAuthContext = async (options = {}) => {
|
|
|
31749
31764
|
tenantName
|
|
31750
31765
|
};
|
|
31751
31766
|
};
|
|
31767
|
+
|
|
31768
|
+
// ../auth/src/index.ts
|
|
31769
|
+
init_constants();
|
|
31770
|
+
|
|
31752
31771
|
// ../auth/src/interactive.ts
|
|
31753
31772
|
init_src();
|
|
31754
31773
|
|
|
@@ -44770,7 +44789,7 @@ class VoidApiResponse {
|
|
|
44770
44789
|
var package_default = {
|
|
44771
44790
|
name: "@uipath/orchestrator-sdk",
|
|
44772
44791
|
license: "MIT",
|
|
44773
|
-
version: "1.
|
|
44792
|
+
version: "1.198.0",
|
|
44774
44793
|
repository: {
|
|
44775
44794
|
type: "git",
|
|
44776
44795
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -47007,4 +47026,4 @@ export {
|
|
|
47007
47026
|
resourceRefreshAsync
|
|
47008
47027
|
};
|
|
47009
47028
|
|
|
47010
|
-
//# debugId=
|
|
47029
|
+
//# debugId=D531C3EE6973FEDF64756E2164756E21
|
|
@@ -29,6 +29,8 @@ export interface ListDeploymentsOptions {
|
|
|
29
29
|
folderKey?: string;
|
|
30
30
|
/** Max deployments to fetch. Default `DEFAULT_PAGE_SIZE`. */
|
|
31
31
|
limit?: number;
|
|
32
|
+
/** Number of deployments to skip before the first fetched row (pre-filter). Default 0. */
|
|
33
|
+
offset?: number;
|
|
32
34
|
/** Column to sort by. Default `"startTime"`. */
|
|
33
35
|
sortBy?: string;
|
|
34
36
|
/** Sort direction. Default `"Descending"`. */
|
|
@@ -41,6 +43,13 @@ export interface ListDeploymentsSuccess {
|
|
|
41
43
|
deployments: DeploymentSummary[];
|
|
42
44
|
/** Echo of the request limit so callers can render pagination UI without re-deriving. */
|
|
43
45
|
limit: number;
|
|
46
|
+
/** Echo of the request offset. */
|
|
47
|
+
offset: number;
|
|
48
|
+
/** Total deployments on the server, pre folder filtering.
|
|
49
|
+
* `undefined` when the response omits `count` — the SDK deserializer has
|
|
50
|
+
* no fallback for it. `Pagination` then derives `HasMore` from
|
|
51
|
+
* `returned === limit`. */
|
|
52
|
+
total?: number;
|
|
44
53
|
}
|
|
45
54
|
export interface ListDeploymentsFailure {
|
|
46
55
|
ok: false;
|
|
@@ -26,6 +26,8 @@ export interface ListPackagesOptions {
|
|
|
26
26
|
envFilePath?: string;
|
|
27
27
|
/** Max packages to fetch. Default `DEFAULT_PAGE_SIZE`. */
|
|
28
28
|
limit?: number;
|
|
29
|
+
/** Number of packages to skip before the first returned row. Default 0. */
|
|
30
|
+
offset?: number;
|
|
29
31
|
/** Column to sort by. Default `"publishDate"`. */
|
|
30
32
|
sortBy?: string;
|
|
31
33
|
/** Sort direction. Default `"Descending"`. */
|
|
@@ -40,6 +42,13 @@ export interface ListPackagesSuccess {
|
|
|
40
42
|
packages: PackageSummary[];
|
|
41
43
|
/** Echo of the request limit so callers can render pagination UI without re-deriving. */
|
|
42
44
|
limit: number;
|
|
45
|
+
/** Echo of the request offset. */
|
|
46
|
+
offset: number;
|
|
47
|
+
/** Total packages matching the filter, as reported by the server.
|
|
48
|
+
* `undefined` when the response omits `count` — the SDK deserializer has
|
|
49
|
+
* no fallback for it. `Pagination` then derives `HasMore` from
|
|
50
|
+
* `returned === limit`. */
|
|
51
|
+
total?: number;
|
|
43
52
|
}
|
|
44
53
|
export interface ListPackagesFailure {
|
|
45
54
|
ok: false;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/** Discriminator for {@link PublishFailure}; library callers can ignore the tag and read `.message` / `.ok`. */
|
|
2
|
-
export type PublishFailureReason = "auth_failed" | "file_not_found" | "not_a_zip" | "file_read_failed" | "personal_workspace_resolution_failed" | "upload_failed" | "upload_version_conflict" | "upload_network" | "poll_timeout" | "poll_failed" | "poll_aborted" | "publish_failed";
|
|
2
|
+
export type PublishFailureReason = "auth_failed" | "file_not_found" | "not_a_zip" | "not_packed" | "file_read_failed" | "personal_workspace_resolution_failed" | "upload_failed" | "upload_version_conflict" | "upload_network" | "poll_timeout" | "poll_failed" | "poll_aborted" | "publish_failed";
|
|
3
3
|
export interface PublishOptions {
|
|
4
4
|
/** Override the active tenant for auth resolution. The CLI's deprecated `--tenant` flag flows through here. */
|
|
5
5
|
tenant?: string;
|