@uipath/solution-tool 1.204.0-preview.255 → 1.205.0-preview.256
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/README.md +3 -3
- package/dist/THIRD-PARTY-NOTICES.md +2 -2
- package/dist/archive-extract-x35t9ktj.js +120 -0
- package/dist/cleanup-command-service-n4e7vxnw.js +149 -0
- package/dist/deploy-delete-service-cag0q8yx.js +25 -0
- package/dist/deploy-run-service-f0h8wb9w.js +25 -0
- package/dist/{deploy-status-service-6svq7c6w.js → deploy-status-service-yh6xn6e0.js} +41 -33
- package/dist/deploy.js +23 -17
- package/dist/{deployment-search-v2qtz23x.js → deployment-search-mnywd9nc.js} +16 -10
- package/dist/{embedded-file-reader-rf2g1kfj.js → embedded-file-reader-z4becc02.js} +2 -2
- package/dist/{feed-resolver-xz3akamf.js → feed-resolver-fve33dxq.js} +10 -9
- package/dist/feed-scope-failure-jmg4t1r1.js +19 -0
- package/dist/{feed-session-sxga31vn.js → feed-session-7xqphdrg.js} +3 -3
- package/dist/governance-options-4vxz7ekn.js +32 -0
- package/dist/index-g8c8nf1c.js +667 -0
- package/dist/index-prm27bvm.js +138 -0
- package/dist/index.js +27 -29
- package/dist/init.js +11 -10
- package/dist/{list-tjetkspc.js → list-50mepbed.js} +10 -8
- package/dist/models/pack-command-types.d.ts +15 -0
- package/dist/node-7jm7ksqa.js +86 -0
- package/dist/pack-command-service-dewf5vsq.js +35 -0
- package/dist/pack-project-xwd1rbaa.js +97 -0
- package/dist/pack.js +24 -14
- package/dist/package-id-1wr3cy9c.js +13 -0
- package/dist/packager-tool-09swr9cp.js +171 -0
- package/dist/{packager-tool-a9jx8gf4.js → packager-tool-2vmsh5pt.js} +196 -1519
- package/dist/{packager-tool-px1j9kre.js → packager-tool-3bwnkjdq.js} +2 -2
- package/dist/{packager-tool-gb35b4qs.js → packager-tool-43ahv5mn.js} +192 -96
- package/dist/{packager-tool-9ha2z8h5.js → packager-tool-47by487p.js} +6 -4
- package/dist/packager-tool-47wzvqw0.js +86 -0
- package/dist/{packager-tool-zns6n8zp.js → packager-tool-5ddtwzva.js} +1 -1
- package/dist/packager-tool-5edvzz80.js +543 -0
- package/dist/{packager-tool-jq9zw82w.js → packager-tool-5n6jsn41.js} +104 -14
- package/dist/packager-tool-60af1hw2.js +26 -0
- package/dist/{packager-tool-f5gq77m5.js → packager-tool-61pwb567.js} +2 -2
- package/dist/{packager-tool-yrz4mwfn.js → packager-tool-6kz1pv9f.js} +1373 -486
- package/dist/packager-tool-6ybywxxn.js +1809 -0
- package/dist/packager-tool-8ptbmmmp.js +2132 -0
- package/dist/{packager-tool-7gr2nphb.js → packager-tool-97rcgwvv.js} +224 -6
- package/dist/{packager-tool-83m6ns0r.js → packager-tool-9t26kde1.js} +3556 -1646
- package/dist/packager-tool-act5r386.js +239 -0
- package/dist/packager-tool-amhyxzz6.js +125 -0
- package/dist/packager-tool-b03rva43.js +188 -0
- package/dist/{packager-tool-e2rtr49j.js → packager-tool-b2nhscfk.js} +15 -31
- package/dist/{packager-tool-tv9c1e80.js → packager-tool-d6rrfd46.js} +149 -53
- package/dist/packager-tool-frr2xmkr.js +445 -0
- package/dist/{packager-tool-v8bkkqdb.js → packager-tool-gmwva4yv.js} +5 -5
- package/dist/packager-tool-gs3f3tf7.js +103 -0
- package/dist/packager-tool-jg692f13.js +517 -0
- package/dist/packager-tool-jmpb786m.js +109 -0
- package/dist/{packager-tool-5sex4a1h.js → packager-tool-kds8ytzw.js} +74 -23
- package/dist/packager-tool-kkfb5kgn.js +182 -0
- package/dist/packager-tool-kvcxg0zv.js +1510 -0
- package/dist/packager-tool-n3jfjn5r.js +42 -0
- package/dist/{packager-tool-fjsn5h8s.js → packager-tool-n5d5dx5j.js} +2196 -3455
- package/dist/{packager-tool-yfpcvdpm.js → packager-tool-nsya65z1.js} +357 -1370
- package/dist/{packager-tool-fv7xyzg2.js → packager-tool-pbmqk39a.js} +126 -128
- package/dist/{packager-tool-bqre28m1.js → packager-tool-qw47eyw7.js} +1 -1
- package/dist/{packager-tool-9qgmwy21.js → packager-tool-rc3hwn4b.js} +25 -4
- package/dist/packager-tool-resolver-994z3jkj.js +23 -0
- package/dist/{packager-tool-tgw5x6vx.js → packager-tool-rvt68c1t.js} +17 -8
- package/dist/{packager-tool-gab9y5ct.js → packager-tool-t8gh825q.js} +37 -13
- package/dist/{packager-tool-kswwd3hp.js → packager-tool-tx834spe.js} +2376 -4077
- package/dist/{packager-tool-zf3929se.js → packager-tool-v1f5e8t9.js} +11 -1
- package/dist/{packager-tool-ssq2kzqm.js → packager-tool-w77d72a7.js} +13 -11
- package/dist/{packager-tool-1rzssy0x.js → packager-tool-wy4fx250.js} +19 -18
- package/dist/packager-tool-wz34ma3s.js +1333 -0
- package/dist/packager-tool-zq16e1xv.js +68 -0
- package/dist/packager-tool.js +2 -2
- package/dist/prepare-solution-resources-m1djfj62.js +29 -0
- package/dist/project-command-utils-t6pmpvq3.js +90 -0
- package/dist/project-contributions-79ndycrx.js +32 -0
- package/dist/publish.js +13 -12
- package/dist/resource-mutations-c3krjqze.js +36 -0
- package/dist/resource-version-lookup-0e3e2j58.js +99 -0
- package/dist/resource.js +10 -9
- package/dist/restore-command-service-5v0b9363.js +155 -0
- package/dist/run-service-tg6b67wp.js +428 -0
- package/dist/services/deploy-activate-service.d.ts +10 -5
- package/dist/services/deploy-delete-service.d.ts +8 -4
- package/dist/services/deploy-run-service.d.ts +34 -1
- package/dist/services/deploy-uninstall-service.d.ts +21 -3
- package/dist/services/deploy-upgrade-service.d.ts +35 -1
- package/dist/services/deployment-feed-locator.d.ts +15 -4
- package/dist/services/deployment-search-client.d.ts +5 -53
- package/dist/services/deployment-search.d.ts +58 -3
- package/dist/services/deployment-state.d.ts +84 -24
- package/dist/services/deployment-validation.d.ts +5 -0
- package/dist/services/emit-runtime-dependencies.d.ts +2 -1
- package/dist/services/feed-resolver.d.ts +6 -4
- package/dist/services/feed-selection.d.ts +47 -0
- package/dist/services/http-status.d.ts +2 -7
- package/dist/services/pack-command-service.d.ts +9 -0
- package/dist/services/pack-project-selection.d.ts +51 -0
- package/dist/services/pack-project.d.ts +26 -0
- package/dist/services/pack-service.d.ts +7 -3
- package/dist/services/package-search-client.d.ts +7 -0
- package/dist/services/packager-tool-resolver.d.ts +7 -1
- package/dist/services/packages-list-service.d.ts +1 -1
- package/dist/services/permanent-deletion-consent.d.ts +110 -0
- package/dist/services/pipeline-deploy-poll.d.ts +7 -0
- package/dist/services/prepare-solution-resources.d.ts +12 -2
- package/dist/services/project-contributions.d.ts +5 -4
- package/dist/services/search-failure.d.ts +9 -13
- package/dist/services/solution-packager-helpers.d.ts +5 -2
- package/dist/services/solution-path.d.ts +1 -1
- package/dist/services/uninstall-consent.d.ts +82 -0
- package/dist/ship-telemetry-myes7ak5.js +21 -0
- package/dist/solution-auth-aead70sw.js +11 -0
- package/dist/templates/AGENTS.md +125 -12
- package/dist/tool.js +27 -29
- package/dist/utils/deployment-errors.d.ts +9 -1
- package/package.json +2 -2
- package/dist/deploy-delete-service-w3e8x1kq.js +0 -22
- package/dist/feed-scope-failure-0j5byccb.js +0 -18
- package/dist/packager-tool-f2e9rzxk.js +0 -104
- package/dist/packager-tool-resolver-6zwhec62.js +0 -20
- package/dist/packager-tool-zdfn32bc.js +0 -4465
- package/dist/prepare-solution-resources-jpb5as2s.js +0 -25
- package/dist/project-contributions-6wpff2hm.js +0 -30
- package/dist/services/legacy-deployment-search-v3.d.ts +0 -23
|
@@ -1,17 +1,106 @@
|
|
|
1
1
|
import {
|
|
2
|
+
Configuration,
|
|
3
|
+
PipelinesApi
|
|
4
|
+
} from "./packager-tool-97rcgwvv.js";
|
|
5
|
+
import {
|
|
6
|
+
Configuration as Configuration2,
|
|
7
|
+
DeploymentsApi,
|
|
2
8
|
SolutionDeploymentAction
|
|
3
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-9t26kde1.js";
|
|
10
|
+
import {
|
|
11
|
+
quoteForShell
|
|
12
|
+
} from "./packager-tool-tx834spe.js";
|
|
4
13
|
import {
|
|
5
14
|
catchError
|
|
6
|
-
} from "./packager-tool-
|
|
15
|
+
} from "./packager-tool-6ybywxxn.js";
|
|
7
16
|
|
|
8
17
|
// src/services/deployment-state.ts
|
|
9
|
-
function
|
|
10
|
-
|
|
18
|
+
function pendingResourceApis(auth) {
|
|
19
|
+
const settings = { basePath: auth.basePath, accessToken: auth.accessToken };
|
|
20
|
+
return {
|
|
21
|
+
pipelines: new PipelinesApi(new Configuration(settings)),
|
|
22
|
+
deployments: new DeploymentsApi(new Configuration2(settings))
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
function reportedActivationStatus(record) {
|
|
26
|
+
const status = record?.activationStatus;
|
|
27
|
+
return status && status !== "None" ? status : undefined;
|
|
11
28
|
}
|
|
12
29
|
var RESOURCES_PAGE_SIZE = 50;
|
|
13
30
|
var RESOURCES_MAX_PAGES = 10;
|
|
14
|
-
async function readPendingResourcesAsync(
|
|
31
|
+
async function readPendingResourcesAsync(apis, deployment, scope) {
|
|
32
|
+
const blockers = await readActivationBlockersAsync(apis.pipelines, deployment, scope);
|
|
33
|
+
if (blockers) {
|
|
34
|
+
return blockers;
|
|
35
|
+
}
|
|
36
|
+
return readSolutionsPendingResourcesAsync(apis.deployments, deployment.key, scope);
|
|
37
|
+
}
|
|
38
|
+
async function readActivationBlockersAsync(api, deployment, scope) {
|
|
39
|
+
const [readError, result] = await catchError(() => api.pipelinesGetDeploymentValidationResult({ deploymentName: deployment.name }, scope));
|
|
40
|
+
if (readError || !result || result.deploymentAction !== "Activate") {
|
|
41
|
+
return;
|
|
42
|
+
}
|
|
43
|
+
const blockers = toBlockers(result.validationErrors ?? []);
|
|
44
|
+
if (!blockers || !await isCurrentRecordAsync(api, deployment.key)) {
|
|
45
|
+
return;
|
|
46
|
+
}
|
|
47
|
+
return blockers;
|
|
48
|
+
}
|
|
49
|
+
async function isCurrentRecordAsync(api, key, init) {
|
|
50
|
+
const [lookupError, info] = await catchError(() => init ? api.pipelinesGetDeploymentByKey({ key }, init) : api.pipelinesGetDeploymentByKey({ key }));
|
|
51
|
+
return !lookupError && info?.deploymentKey === key;
|
|
52
|
+
}
|
|
53
|
+
function toBlockers(errors) {
|
|
54
|
+
const byResource = new Map;
|
|
55
|
+
for (const error of errors) {
|
|
56
|
+
if (error.level !== "Error") {
|
|
57
|
+
continue;
|
|
58
|
+
}
|
|
59
|
+
const name = error.name ?? error.resource;
|
|
60
|
+
if (!name) {
|
|
61
|
+
return;
|
|
62
|
+
}
|
|
63
|
+
const identity = error.key ?? resourceIdentity(name, error.type);
|
|
64
|
+
const existing = byResource.get(identity);
|
|
65
|
+
if (existing) {
|
|
66
|
+
mergeBlocker(existing, error);
|
|
67
|
+
} else {
|
|
68
|
+
byResource.set(identity, toBlocker(error, name));
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return [...byResource.values()];
|
|
72
|
+
}
|
|
73
|
+
function toBlocker(error, name) {
|
|
74
|
+
const reason = formatValidationText(error.errorCode, error.text);
|
|
75
|
+
return {
|
|
76
|
+
key: error.key ?? "",
|
|
77
|
+
name,
|
|
78
|
+
kind: error.kind ?? "",
|
|
79
|
+
type: error.type,
|
|
80
|
+
...reason ? { reason } : {},
|
|
81
|
+
...error.folderPaths && error.folderPaths.length > 0 ? { folderPaths: [...error.folderPaths] } : {}
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
function mergeBlocker(blocker, error) {
|
|
85
|
+
const reason = formatValidationText(error.errorCode, error.text);
|
|
86
|
+
if (reason) {
|
|
87
|
+
blocker.reason = blocker.reason ? `${blocker.reason}; ${reason}` : reason;
|
|
88
|
+
}
|
|
89
|
+
const folders = new Set([
|
|
90
|
+
...blocker.folderPaths ?? [],
|
|
91
|
+
...error.folderPaths ?? []
|
|
92
|
+
]);
|
|
93
|
+
if (folders.size > 0) {
|
|
94
|
+
blocker.folderPaths = [...folders];
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function formatValidationText(errorCode, text) {
|
|
98
|
+
if (!text) {
|
|
99
|
+
return;
|
|
100
|
+
}
|
|
101
|
+
return errorCode ? `[${errorCode}] ${text}` : text;
|
|
102
|
+
}
|
|
103
|
+
async function readSolutionsPendingResourcesAsync(api, deploymentKey, scope) {
|
|
15
104
|
const pending = [];
|
|
16
105
|
let complete = false;
|
|
17
106
|
for (let page = 0, skip = 0;page < RESOURCES_MAX_PAGES; page++) {
|
|
@@ -57,7 +146,7 @@ async function attachActivationReasonsAsync(api, deploymentKey, pending, scope)
|
|
|
57
146
|
}
|
|
58
147
|
const reasons = new Map;
|
|
59
148
|
for (const resource of validation.resourceValidationErrors ?? []) {
|
|
60
|
-
const texts = (resource.errors ?? []).map((error) => error.errorCode
|
|
149
|
+
const texts = (resource.errors ?? []).map((error) => formatValidationText(error.errorCode, error.text)).filter((text) => Boolean(text));
|
|
61
150
|
if (texts.length > 0) {
|
|
62
151
|
reasons.set(resourceIdentity(resource.name, resource.type), texts.join("; "));
|
|
63
152
|
}
|
|
@@ -76,13 +165,14 @@ var MAX_LISTED_RESOURCES = 10;
|
|
|
76
165
|
function formatPendingResources(resources) {
|
|
77
166
|
const described = resources.slice(0, MAX_LISTED_RESOURCES).map((resource) => {
|
|
78
167
|
const type = resource.type && resource.type !== resource.kind ? ` (${resource.type})` : "";
|
|
168
|
+
const folders = resource.folderPaths?.length ? ` in ${resource.folderPaths.map((path) => `'${path}'`).join(", ")}` : "";
|
|
79
169
|
const reason = resource.reason ? `: ${resource.reason}` : "";
|
|
80
|
-
return `${resource.kind} '${resource.name}'${type}${reason}`;
|
|
170
|
+
return `${resource.kind} '${resource.name}'${type}${folders}${reason}`;
|
|
81
171
|
}).join("; ");
|
|
82
172
|
const remaining = resources.length - MAX_LISTED_RESOURCES;
|
|
83
173
|
return remaining > 0 ? `${described}; and ${remaining} more` : described;
|
|
84
174
|
}
|
|
85
|
-
function activationNextSteps(deployment, pendingResources) {
|
|
175
|
+
function activationNextSteps(deployment, pendingResources, feedSelector = "") {
|
|
86
176
|
const name = deployment.name;
|
|
87
177
|
const version = deployment.currentPackageVersion ?? deployment.packageVersion;
|
|
88
178
|
const installed = `Deployment '${name}' is installed${version ? ` at version ${version}` : ""}`;
|
|
@@ -98,11 +188,11 @@ function activationNextSteps(deployment, pendingResources) {
|
|
|
98
188
|
case "ReadyToActivate":
|
|
99
189
|
case "Inactive":
|
|
100
190
|
return [
|
|
101
|
-
`${installed} but inactive. Activate it with: uip solution deploy activate ${quoteForShell(name)}.`
|
|
191
|
+
`${installed} but inactive. Activate it with: uip solution deploy activate ${quoteForShell(name)}${feedSelector}.`
|
|
102
192
|
];
|
|
103
193
|
case "ActivationFailed":
|
|
104
194
|
return [
|
|
105
|
-
`Activation of '${name}' failed. Inspect the deployment in Orchestrator, then retry with: uip solution deploy activate ${quoteForShell(name)}.`
|
|
195
|
+
`Activation of '${name}' failed. Inspect the deployment in Orchestrator, then retry with: uip solution deploy activate ${quoteForShell(name)}${feedSelector}.`
|
|
106
196
|
];
|
|
107
197
|
default:
|
|
108
198
|
return;
|
|
@@ -133,7 +223,7 @@ function deploymentNextSteps(deployment, pendingResources, feedSelector = "") {
|
|
|
133
223
|
}
|
|
134
224
|
return steps;
|
|
135
225
|
}
|
|
136
|
-
return activationNextSteps(deployment, pendingResources);
|
|
226
|
+
return activationNextSteps(deployment, pendingResources, feedSelector);
|
|
137
227
|
}
|
|
138
228
|
function describePendingResources(pendingResources) {
|
|
139
229
|
if (pendingResources === undefined) {
|
|
@@ -149,7 +239,7 @@ function describeDraft(deployment, feedSelector) {
|
|
|
149
239
|
const state = `(Operation: ${deployment.operation}, OperationStatus: Draft, ActivationStatus: ${deployment.activationStatus})`;
|
|
150
240
|
switch (deployment.operation) {
|
|
151
241
|
case "ActivationSetup":
|
|
152
|
-
return `Deployment '${name}' has a 'Setup activation' that was started but not completed ${state} and cannot be activated until it is. Finish it in Orchestrator (Tenant > Solutions > Deployments, open the deployment; the UI lists it as 'Activation setup / Draft'). The CLI has no command for this step on an existing deployment. To discard the unfinished setup instead, run: uip solution deploy delete ${quoteForShell(name)} --yes. That removes the draft alone; the deployment returns to its previous record, still waiting for setup.`;
|
|
242
|
+
return `Deployment '${name}' has a 'Setup activation' that was started but not completed ${state} and cannot be activated until it is. Finish it in Orchestrator (Tenant > Solutions > Deployments, open the deployment; the UI lists it as 'Activation setup / Draft'). The CLI has no command for this step on an existing deployment. To discard the unfinished setup instead, run: uip solution deploy delete ${quoteForShell(name)}${feedSelector} --yes. That removes the draft alone; the deployment returns to its previous record, still waiting for setup.`;
|
|
153
243
|
case "VersionChange":
|
|
154
244
|
return `Deployment '${name}' has an upgrade that was queued but never installed ${state} and cannot be activated until it settles. 'uip solution deploy upgrade' installs the draft it queues; a draft left by another client stays until it is installed or removed; check it with: uip solution deploy list${feedSelector}.`;
|
|
155
245
|
case "Install":
|
|
@@ -161,6 +251,6 @@ function describeDraft(deployment, feedSelector) {
|
|
|
161
251
|
}
|
|
162
252
|
}
|
|
163
253
|
|
|
164
|
-
export {
|
|
254
|
+
export { pendingResourceApis, reportedActivationStatus, readPendingResourcesAsync, readActivationBlockersAsync, isCurrentRecordAsync, appendDeploymentStateInstructions, explainRefusal, needsPendingResources, deploymentNextSteps };
|
|
165
255
|
|
|
166
|
-
//# debugId=
|
|
256
|
+
//# debugId=A8B3431B53CA127F64756E2164756E21
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// src/services/project-type-tools.ts
|
|
2
|
+
var PROJECT_TYPE_TO_TOOL = new Map([
|
|
3
|
+
["Process", "rpa"],
|
|
4
|
+
["Tests", "rpa"],
|
|
5
|
+
["WebApp", "rpa"],
|
|
6
|
+
["AppV2", "codedapp"],
|
|
7
|
+
["Api", "api-workflow"],
|
|
8
|
+
["Agent", "agent"],
|
|
9
|
+
["Function", "function"],
|
|
10
|
+
["CaseManagement", "maestro"],
|
|
11
|
+
["ProcessOrchestration", "maestro"],
|
|
12
|
+
["processOrchestration", "maestro"],
|
|
13
|
+
["Flow", "maestro"],
|
|
14
|
+
["BusinessRules", "maestro"],
|
|
15
|
+
["Entity", "df"]
|
|
16
|
+
]);
|
|
17
|
+
function toolVerbForProjectType(projectType) {
|
|
18
|
+
return PROJECT_TYPE_TO_TOOL.get(projectType);
|
|
19
|
+
}
|
|
20
|
+
function toolOwnedProjectTypes() {
|
|
21
|
+
return [...PROJECT_TYPE_TO_TOOL.keys()];
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export { toolVerbForProjectType, toolOwnedProjectTypes };
|
|
25
|
+
|
|
26
|
+
//# debugId=47B2C76C68E69D0864756E2164756E21
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthContext
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-43ahv5mn.js";
|
|
4
4
|
|
|
5
5
|
// ../solution-sdk/src/solution-auth.ts
|
|
6
6
|
async function getSolutionAuthContext(options) {
|
|
@@ -25,4 +25,4 @@ async function getSolutionAuthContext(options) {
|
|
|
25
25
|
|
|
26
26
|
export { getSolutionAuthContext };
|
|
27
27
|
|
|
28
|
-
//# debugId=
|
|
28
|
+
//# debugId=F76D3832B86881B164756E2164756E21
|