@uipath/solution-tool 1.204.0-preview.261 → 1.204.0-preview.264
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/THIRD-PARTY-NOTICES.md +4 -4
- package/dist/{deploy-delete-service-0sz67k9b.js → deploy-delete-service-y19xn2rq.js} +5 -5
- package/dist/{deploy-status-service-7bsawnf9.js → deploy-status-service-9xb4zf45.js} +5 -5
- package/dist/deploy.js +7 -7
- package/dist/{deployment-search-fpq4w7e3.js → deployment-search-ny4zvb8d.js} +2 -2
- package/dist/{embedded-file-reader-rf2g1kfj.js → embedded-file-reader-z4becc02.js} +2 -2
- package/dist/{feed-resolver-wz3vxcrx.js → feed-resolver-57ng8yhq.js} +2 -2
- package/dist/{feed-scope-failure-yr4nhnj0.js → feed-scope-failure-jkcwchjd.js} +3 -3
- package/dist/index.js +15 -15
- package/dist/init.js +1 -1
- package/dist/{list-p6qdszkc.js → list-yz8hgwwm.js} +1 -1
- package/dist/pack.js +6 -6
- package/dist/{packager-tool-1h867c7a.js → packager-tool-17qxbphp.js} +2 -2
- package/dist/{packager-tool-tjypg724.js → packager-tool-33fhz6hb.js} +22 -22
- package/dist/{packager-tool-pa2nzjc2.js → packager-tool-42224f9m.js} +1 -1
- package/dist/{packager-tool-ys79yx9v.js → packager-tool-65qcvy8g.js} +1 -1
- package/dist/{packager-tool-gab9y5ct.js → packager-tool-7c1xev49.js} +3 -3
- package/dist/{packager-tool-yypwwatt.js → packager-tool-84nfedsr.js} +2 -2
- package/dist/{packager-tool-zns6n8zp.js → packager-tool-a608j1gt.js} +55 -7
- package/dist/{packager-tool-pjcg4b08.js → packager-tool-h99rz9mw.js} +3 -3
- package/dist/{packager-tool-1rzssy0x.js → packager-tool-px0mdrqy.js} +2 -2
- package/dist/{packager-tool-e2rtr49j.js → packager-tool-qk5012vn.js} +1 -1
- package/dist/{packager-tool-ga7zrca4.js → packager-tool-qzh97anz.js} +1 -1
- package/dist/{packager-tool-resolver-6zwhec62.js → packager-tool-resolver-8efb8670.js} +2 -2
- package/dist/{packager-tool-q2v44x2d.js → packager-tool-rrrq19mn.js} +4 -4
- package/dist/{packager-tool-yrz4mwfn.js → packager-tool-t21haejj.js} +616 -160
- package/dist/{packager-tool-9kmgn0hv.js → packager-tool-v3b45e7a.js} +1 -1
- package/dist/{packager-tool-gmhrd4kr.js → packager-tool-vqkfgftm.js} +5 -5
- package/dist/{packager-tool-s6dchxgb.js → packager-tool-zmgcj5dq.js} +1 -1
- package/dist/packager-tool.js +1 -1
- package/dist/{prepare-solution-resources-jpb5as2s.js → prepare-solution-resources-8y6fm2qa.js} +5 -5
- package/dist/{project-contributions-6wpff2hm.js → project-contributions-kdgd5ajp.js} +4 -4
- package/dist/publish.js +3 -3
- package/dist/resource.js +1 -1
- package/dist/tool.js +15 -15
- package/package.json +2 -2
|
@@ -5,8 +5,8 @@ import {
|
|
|
5
5
|
feedSelectorFlag,
|
|
6
6
|
folderKeyInitOverride,
|
|
7
7
|
resolveFeedScope
|
|
8
|
-
} from "./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
8
|
+
} from "./packager-tool-zmgcj5dq.js";
|
|
9
|
+
import"./packager-tool-h99rz9mw.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-
|
|
4
|
-
import"./packager-tool-
|
|
5
|
-
import"./packager-tool-
|
|
3
|
+
} from "./packager-tool-v3b45e7a.js";
|
|
4
|
+
import"./packager-tool-zmgcj5dq.js";
|
|
5
|
+
import"./packager-tool-h99rz9mw.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-
|
|
5
|
+
} from "./packager-tool-33fhz6hb.js";
|
|
6
6
|
import"./packager-tool-v8bkkqdb.js";
|
|
7
|
-
import"./packager-tool-
|
|
8
|
-
import"./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
10
|
-
import"./packager-tool-
|
|
11
|
-
import"./packager-tool-
|
|
7
|
+
import"./packager-tool-v3b45e7a.js";
|
|
8
|
+
import"./packager-tool-vqkfgftm.js";
|
|
9
|
+
import"./packager-tool-42224f9m.js";
|
|
10
|
+
import"./packager-tool-84nfedsr.js";
|
|
11
|
+
import"./packager-tool-qzh97anz.js";
|
|
12
12
|
import"./packager-tool-px1j9kre.js";
|
|
13
|
-
import"./packager-tool-
|
|
14
|
-
import"./packager-tool-
|
|
15
|
-
import"./packager-tool-
|
|
16
|
-
import"./packager-tool-
|
|
17
|
-
import"./packager-tool-
|
|
18
|
-
import"./packager-tool-
|
|
13
|
+
import"./packager-tool-rrrq19mn.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-65qcvy8g.js";
|
|
19
19
|
import"./packager-tool-7gr2nphb.js";
|
|
20
|
-
import"./packager-tool-
|
|
21
|
-
import"./packager-tool-
|
|
20
|
+
import"./packager-tool-zmgcj5dq.js";
|
|
21
|
+
import"./packager-tool-h99rz9mw.js";
|
|
22
22
|
import"./packager-tool-bqre28m1.js";
|
|
23
|
-
import"./packager-tool-
|
|
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-
|
|
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";
|
package/dist/pack.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
packSolutionAsync
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import"./packager-tool-
|
|
5
|
-
import"./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
7
|
-
import"./packager-tool-
|
|
8
|
-
import"./packager-tool-
|
|
3
|
+
} from "./packager-tool-rrrq19mn.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";
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
INCOMPLETE_SWEEP_ADVICE,
|
|
3
3
|
findDeploymentAcrossFeeds,
|
|
4
4
|
reportIncompleteSweepAsync
|
|
5
|
-
} from "./packager-tool-
|
|
5
|
+
} from "./packager-tool-84nfedsr.js";
|
|
6
6
|
import {
|
|
7
7
|
Configuration,
|
|
8
8
|
DeploymentsApi,
|
|
9
9
|
WorkflowAction
|
|
10
|
-
} from "./packager-tool-
|
|
10
|
+
} from "./packager-tool-h99rz9mw.js";
|
|
11
11
|
import {
|
|
12
12
|
getSolutionAuthContext
|
|
13
13
|
} from "./packager-tool-f5gq77m5.js";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
} from "./packager-tool-v8bkkqdb.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveFeedScopeOrFailureAsync
|
|
7
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-v3b45e7a.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-
|
|
17
|
+
} from "./packager-tool-vqkfgftm.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-
|
|
34
|
+
} from "./packager-tool-rrrq19mn.js";
|
|
35
35
|
import {
|
|
36
36
|
prepareSolutionResources
|
|
37
|
-
} from "./packager-tool-
|
|
37
|
+
} from "./packager-tool-7c1xev49.js";
|
|
38
38
|
import {
|
|
39
39
|
ensurePackagerTools,
|
|
40
40
|
isUnpackableProjectTypeError,
|
|
41
41
|
toolVerbForProjectType
|
|
42
|
-
} from "./packager-tool-
|
|
42
|
+
} from "./packager-tool-qk5012vn.js";
|
|
43
43
|
import {
|
|
44
44
|
publishSolutionAsync
|
|
45
|
-
} from "./packager-tool-
|
|
45
|
+
} from "./packager-tool-65qcvy8g.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-
|
|
53
|
+
} from "./packager-tool-zmgcj5dq.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-
|
|
68
|
+
} from "./packager-tool-h99rz9mw.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-
|
|
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.
|
|
169
|
+
version: "1.204.0-preview.264",
|
|
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": "
|
|
233
|
-
"@uipath/resource-builder-tool": "
|
|
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-
|
|
1056
|
+
const { deleteDeploymentAsync } = await import("./deploy-delete-service-y19xn2rq.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-
|
|
1584
|
+
const { feedScopeInitOverride: feedScopeInitOverride2 } = await import("./feed-resolver-57ng8yhq.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-
|
|
1604
|
+
const { resolveFeedScopeOrFailureAsync: resolveFeedScopeOrFailureAsync2 } = await import("./feed-scope-failure-jkcwchjd.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-
|
|
1611
|
+
const { describeDeploymentAsync, looksLikeDeploymentKey } = await import("./deploy-status-service-9xb4zf45.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-
|
|
1652
|
+
const { isPipelineDeploymentNotFoundError } = await import("./deployment-search-ny4zvb8d.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-
|
|
5482
|
-
import("./prepare-solution-resources-
|
|
5483
|
-
import("./project-contributions-
|
|
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-
|
|
6785
|
+
const { registerListCommand } = await import("./list-yz8hgwwm.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=
|
|
6793
|
+
//# debugId=16142548D69484A964756E2164756E21
|
|
@@ -3,10 +3,10 @@ import {
|
|
|
3
3
|
assertNoContributionErrors,
|
|
4
4
|
collectProjectContributions,
|
|
5
5
|
contributionErrorMessages
|
|
6
|
-
} from "./packager-tool-
|
|
6
|
+
} from "./packager-tool-px0mdrqy.js";
|
|
7
7
|
import {
|
|
8
8
|
ensurePackagerTools
|
|
9
|
-
} from "./packager-tool-
|
|
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-
|
|
20
|
+
} from "./packager-tool-t21haejj.js";
|
|
21
21
|
import {
|
|
22
22
|
catchError,
|
|
23
23
|
logger
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
findDeploymentByName,
|
|
3
3
|
findLiveDeploymentByName
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-qzh97anz.js";
|
|
5
5
|
import {
|
|
6
6
|
folderKeyInitOverride,
|
|
7
7
|
listSelectablePublishLocations,
|
|
8
8
|
resolvePersonalWorkspace
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-zmgcj5dq.js";
|
|
10
10
|
import {
|
|
11
11
|
catchError,
|
|
12
12
|
extractErrorDetails
|
|
@@ -144,7 +144,7 @@ class ConnectorToolFactory {
|
|
|
144
144
|
return new ConnectorTool(fileSystem, logger);
|
|
145
145
|
}
|
|
146
146
|
}
|
|
147
|
-
//
|
|
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
|
|
775
|
+
return createFailure(mapHttpStatusCodeToReason(retryResponse.status), retryServerMessage || `HTTP ${retryResponse.status}`);
|
|
727
776
|
}
|
|
728
|
-
return createFailure(mapHttpStatusCodeToReason(response.status), serverMessage
|
|
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
|
|
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=
|
|
885
|
+
//# debugId=74FBEFB69DDDB62B64756E2164756E21
|
|
@@ -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.
|
|
1306
|
+
version: "1.204.0-preview.264",
|
|
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": "
|
|
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=
|
|
3457
|
+
//# debugId=231F354818FA819B64756E2164756E21
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolVerbForProjectType
|
|
3
|
-
} from "./packager-tool-
|
|
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-
|
|
10
|
+
} from "./packager-tool-t21haejj.js";
|
|
11
11
|
import {
|
|
12
12
|
toolsFactoryRepository
|
|
13
13
|
} from "./packager-tool-fv7xyzg2.js";
|
|
@@ -3,8 +3,8 @@ import {
|
|
|
3
3
|
ensurePackagerTools,
|
|
4
4
|
isUnpackableProjectTypeError,
|
|
5
5
|
toolVerbForProjectType
|
|
6
|
-
} from "./packager-tool-
|
|
7
|
-
import"./packager-tool-
|
|
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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
prepareSolutionResources
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-7c1xev49.js";
|
|
4
4
|
import {
|
|
5
5
|
ensurePackagerTools,
|
|
6
6
|
isUnpackableProjectTypeError
|
|
7
|
-
} from "./packager-tool-
|
|
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.
|
|
3502
|
+
version: "1.204.0-preview.264",
|
|
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=
|
|
5890
|
+
//# debugId=72A310BD7B6FB78264756E2164756E21
|