@uipath/solution-tool 1.202.1 → 1.203.0-preview.180
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 +23 -1
- package/dist/deploy.js +7 -6
- package/dist/{packager-tool-txs8perg.js → embedded-file-reader-xxqe8vs8.js} +98 -16584
- package/dist/first-party-service-sd8yaf73.js +27 -0
- package/dist/index-dqa169gp.js +25 -0
- package/dist/index.js +19 -13
- package/dist/init.js +8 -5
- package/dist/{list-ngr4950s.js → list-hmzx9798.js} +5 -4
- package/dist/models/pack-command-types.d.ts +33 -5
- package/dist/pack.js +12 -6
- package/dist/{packager-tool-rqvyf18m.js → packager-tool-0f0wt9vh.js} +353 -1519
- package/dist/{packager-tool-jmb2c7m1.js → packager-tool-1haahq17.js} +5 -3
- package/dist/{packager-tool-7s77bznz.js → packager-tool-2syrt51a.js} +7 -4
- package/dist/{packager-tool-dmr7g2d3.js → packager-tool-2t7gyz7x.js} +45 -21
- package/dist/packager-tool-3jrq7smt.js +1459 -0
- package/dist/{packager-tool-arkenm6k.js → packager-tool-40yp3re0.js} +9 -6
- package/dist/packager-tool-53w8skv5.js +262 -0
- package/dist/{packager-tool-svcjmtbs.js → packager-tool-6byq9bhj.js} +4 -4
- package/dist/packager-tool-7znqtw3f.js +244 -0
- package/dist/packager-tool-bkwnetqn.js +16678 -0
- package/dist/{packager-tool-f46c7htx.js → packager-tool-dqb4x0h9.js} +15382 -2422
- package/dist/{packager-tool-d83m85g9.js → packager-tool-f9vfa06w.js} +11 -12
- package/dist/packager-tool-gdtpsdn7.js +342 -0
- package/dist/{packager-tool-p6mgvgdk.js → packager-tool-jz2wbfjz.js} +15 -2
- package/dist/packager-tool-k4mskzww.js +125 -0
- package/dist/packager-tool-resolver-fmjr60x8.js +19 -0
- package/dist/{packager-tool-324gr08j.js → packager-tool-vas0xg5h.js} +1 -1
- package/dist/{packager-tool-7ze6x4r5.js → packager-tool-yf3jx470.js} +360 -96
- package/dist/packager-tool-znakt6yw.js +188 -0
- package/dist/packager-tool.d.ts +1 -1
- package/dist/packager-tool.js +1 -1
- package/dist/prepare-solution-resources-wds3r8bq.js +22 -0
- package/dist/project-contributions-cvttys34.js +27 -0
- package/dist/publish.js +7 -6
- package/dist/resource.js +7 -4
- package/dist/services/deployment-validation.d.ts +33 -0
- package/dist/services/governance-options.d.ts +61 -1
- package/dist/services/pack-command-service.d.ts +33 -2
- package/dist/services/packager-tool-resolver.d.ts +3 -0
- package/dist/services/prepare-solution-resources.d.ts +40 -0
- package/dist/services/project-contributions.d.ts +58 -0
- package/dist/services/project-type-tools.d.ts +6 -0
- package/dist/templates/AGENTS.md +78 -8
- package/dist/tool.js +19 -13
- package/package.json +3 -2
- package/dist/services/validate-appv2-action-schemas.d.ts +0 -10
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
catchError,
|
|
3
2
|
getAuthContext
|
|
4
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-3jrq7smt.js";
|
|
4
|
+
import {
|
|
5
|
+
catchError
|
|
6
|
+
} from "./packager-tool-0f0wt9vh.js";
|
|
5
7
|
|
|
6
8
|
// src/services/studio-web-auth-middleware.ts
|
|
7
9
|
var studioWebAuthByCommand = new WeakMap;
|
|
@@ -64,4 +66,4 @@ async function resolveStudioWebAuthContext(options) {
|
|
|
64
66
|
|
|
65
67
|
export { useStudioWebAuth, getStudioWebAuth, getStudioWebAuthWithOrganizationId };
|
|
66
68
|
|
|
67
|
-
//# debugId=
|
|
69
|
+
//# debugId=FCF746C59C6BE72F64756E2164756E21
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getAuthContext
|
|
3
|
+
} from "./packager-tool-3jrq7smt.js";
|
|
1
4
|
import {
|
|
2
5
|
addSdkUserAgentHeader,
|
|
3
|
-
getAuthContext,
|
|
4
6
|
getSdkUserAgentToken,
|
|
5
7
|
installSdkUserAgentHeader
|
|
6
|
-
} from "./packager-tool-
|
|
8
|
+
} from "./packager-tool-0f0wt9vh.js";
|
|
7
9
|
|
|
8
10
|
// ../solution-sdk/src/solution-auth.ts
|
|
9
11
|
async function getSolutionAuthContext(options) {
|
|
@@ -3235,8 +3237,9 @@ class FoldersApi extends BaseAPI {
|
|
|
3235
3237
|
// ../orchestrator-sdk/package.json
|
|
3236
3238
|
var package_default = {
|
|
3237
3239
|
name: "@uipath/orchestrator-sdk",
|
|
3240
|
+
author: "UiPath",
|
|
3238
3241
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
3239
|
-
version: "1.
|
|
3242
|
+
version: "1.203.0",
|
|
3240
3243
|
repository: {
|
|
3241
3244
|
type: "git",
|
|
3242
3245
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -4222,4 +4225,4 @@ class UsersApi extends BaseAPI {
|
|
|
4222
4225
|
}
|
|
4223
4226
|
export { getSolutionAuthContext, PersonalWorkspacesApi, UsersApi, createOrchestratorConfig, createApiClient, resolveFolder };
|
|
4224
4227
|
|
|
4225
|
-
//# debugId=
|
|
4228
|
+
//# debugId=1510B216342C774B64756E2164756E21
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
listSelectablePublishLocations,
|
|
8
8
|
resolveFeedScope,
|
|
9
9
|
resolvePersonalWorkspace
|
|
10
|
-
} from "./packager-tool-
|
|
10
|
+
} from "./packager-tool-40yp3re0.js";
|
|
11
11
|
import {
|
|
12
12
|
Configuration as Configuration2,
|
|
13
13
|
DeploymentOperationStatus,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
SolutionDeploymentAction,
|
|
17
17
|
deploymentsAutoInstall,
|
|
18
18
|
searchPackageVersions
|
|
19
|
-
} from "./packager-tool-
|
|
19
|
+
} from "./packager-tool-f9vfa06w.js";
|
|
20
20
|
import {
|
|
21
21
|
getSolutionAuthContext,
|
|
22
22
|
resolveFolder
|
|
23
|
-
} from "./packager-tool-
|
|
23
|
+
} from "./packager-tool-2syrt51a.js";
|
|
24
24
|
import {
|
|
25
25
|
DEFAULT_PAGE_SIZE,
|
|
26
26
|
PollOutcome,
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
mapPollFailure,
|
|
32
32
|
pollUntil,
|
|
33
33
|
processContext
|
|
34
|
-
} from "./packager-tool-
|
|
34
|
+
} from "./packager-tool-0f0wt9vh.js";
|
|
35
35
|
import {
|
|
36
36
|
__commonJS,
|
|
37
37
|
__require
|
|
@@ -7697,6 +7697,43 @@ var $stringify = publicApi.stringify;
|
|
|
7697
7697
|
var $visit = visit.visit;
|
|
7698
7698
|
var $visitAsync = visit.visitAsync;
|
|
7699
7699
|
|
|
7700
|
+
// src/services/deployment-validation.ts
|
|
7701
|
+
var NO_SERVER_REASON = "the server reported no reason.";
|
|
7702
|
+
var LOOKUP_TIMEOUT_MS = 15000;
|
|
7703
|
+
function boundedScope(scope, signal) {
|
|
7704
|
+
const deadline = AbortSignal.timeout(LOOKUP_TIMEOUT_MS);
|
|
7705
|
+
const abort = signal ? AbortSignal.any([signal, deadline]) : deadline;
|
|
7706
|
+
return async (requestContext) => ({
|
|
7707
|
+
...await scope?.(requestContext),
|
|
7708
|
+
signal: abort
|
|
7709
|
+
});
|
|
7710
|
+
}
|
|
7711
|
+
async function describeValidationFailureAsync(deploymentsApi, deploymentKey, deploymentAction, scope, signal) {
|
|
7712
|
+
const [error, validation] = await catchError(deploymentsApi.deploymentsGetValidationResult({ deploymentKey, deploymentAction }, boundedScope(scope, signal)));
|
|
7713
|
+
if (error || !validation) {
|
|
7714
|
+
return NO_SERVER_REASON;
|
|
7715
|
+
}
|
|
7716
|
+
const messages = [
|
|
7717
|
+
...validation.validationErrors.map((item) => item.text || item.resource),
|
|
7718
|
+
...validation.resourceValidationErrors.flatMap((resource) => resource.errors.map((item) => item.text || item.resource))
|
|
7719
|
+
].filter(Boolean);
|
|
7720
|
+
return messages.length > 0 ? messages.join("; ") : NO_SERVER_REASON;
|
|
7721
|
+
}
|
|
7722
|
+
async function describeDeploymentFailureAsync(auth, deployment, deploymentAction, scope, signal) {
|
|
7723
|
+
const deploymentsApi = new DeploymentsApi(new Configuration2({
|
|
7724
|
+
basePath: auth.basePath,
|
|
7725
|
+
accessToken: auth.accessToken
|
|
7726
|
+
}));
|
|
7727
|
+
const keys = [deployment.key, deployment.installDeploymentKey].filter((key, index, all) => Boolean(key) && all.indexOf(key) === index);
|
|
7728
|
+
for (const key of keys) {
|
|
7729
|
+
const reason = await describeValidationFailureAsync(deploymentsApi, key, deploymentAction, scope, signal);
|
|
7730
|
+
if (reason !== NO_SERVER_REASON) {
|
|
7731
|
+
return reason;
|
|
7732
|
+
}
|
|
7733
|
+
}
|
|
7734
|
+
return NO_SERVER_REASON;
|
|
7735
|
+
}
|
|
7736
|
+
|
|
7700
7737
|
// src/services/personal-workspace-deploy.ts
|
|
7701
7738
|
async function deployToFeed(auth, target, params) {
|
|
7702
7739
|
const config = new Configuration2({
|
|
@@ -8162,7 +8199,8 @@ async function awaitFeedDeployAsync(auth, scope, options, started, deploymentNam
|
|
|
8162
8199
|
}
|
|
8163
8200
|
const deployment = pollResult.data;
|
|
8164
8201
|
if (deployment.operationStatus !== "Successful") {
|
|
8165
|
-
|
|
8202
|
+
const reason = await describeDeploymentFailureAsync(auth, deployment, SolutionDeploymentAction.Install, scopeOverride, options.signal);
|
|
8203
|
+
return fail3("deploy_failed", `Deployment '${deploymentName}' failed (OperationStatus: ${deployment.operationStatus}): ${reason}`, `Inspect the deployment with: uip solution deploy list, fix the underlying issue, then deploy again.`);
|
|
8166
8204
|
}
|
|
8167
8205
|
return {
|
|
8168
8206
|
...started,
|
|
@@ -8512,7 +8550,7 @@ async function upgradeDeploymentAsync(deploymentKey, options = {}) {
|
|
|
8512
8550
|
}
|
|
8513
8551
|
const status = poll.status;
|
|
8514
8552
|
if (FAILURE_STATUSES.has(status)) {
|
|
8515
|
-
return fail5("install_failed", `The upgrade of '${deployment.name}' to ${pkg.latestVersion} ended in ${status}: ${await describeValidationFailureAsync(deploymentsApi, draft.key, upgradeScope)}`, "Fix the reported problem, then retry the upgrade.");
|
|
8553
|
+
return fail5("install_failed", `The upgrade of '${deployment.name}' to ${pkg.latestVersion} ended in ${status}: ${await describeValidationFailureAsync(deploymentsApi, draft.key, SolutionDeploymentAction.Upgrade, upgradeScope)}`, "Fix the reported problem, then retry the upgrade.");
|
|
8516
8554
|
}
|
|
8517
8555
|
return { ok: true, ...base, status };
|
|
8518
8556
|
}
|
|
@@ -8544,20 +8582,6 @@ async function pollInstallAsync(deploymentsApi, versionChangeKey, scope, timing)
|
|
|
8544
8582
|
failure: mapPollFailure(result, `Upgrade ${versionChangeKey}`)
|
|
8545
8583
|
};
|
|
8546
8584
|
}
|
|
8547
|
-
async function describeValidationFailureAsync(deploymentsApi, versionChangeKey, scope) {
|
|
8548
|
-
const [error, validation] = await catchError(deploymentsApi.deploymentsGetValidationResult({
|
|
8549
|
-
deploymentKey: versionChangeKey,
|
|
8550
|
-
deploymentAction: SolutionDeploymentAction.Upgrade
|
|
8551
|
-
}, scope));
|
|
8552
|
-
if (error || !validation) {
|
|
8553
|
-
return "the server reported no reason.";
|
|
8554
|
-
}
|
|
8555
|
-
const messages = [
|
|
8556
|
-
...validation.validationErrors.map((item) => item.text || item.resource),
|
|
8557
|
-
...validation.resourceValidationErrors.flatMap((resource) => resource.errors.map((item) => item.text || item.resource))
|
|
8558
|
-
].filter(Boolean);
|
|
8559
|
-
return messages.length > 0 ? messages.join("; ") : "the server reported no reason.";
|
|
8560
|
-
}
|
|
8561
8585
|
|
|
8562
8586
|
// src/services/packages-list-service.ts
|
|
8563
8587
|
var fail6 = (reason, message, instructions, exitCode = 1) => ({
|
|
@@ -8617,4 +8641,4 @@ async function listPackagesAsync(options = {}) {
|
|
|
8617
8641
|
|
|
8618
8642
|
export { extractDeploymentErrors, formatDeploymentErrorsAsText, activateDeploymentAsync, listDeploymentsAsync, deployRunAsync, uninstallDeploymentAsync, upgradeDeploymentAsync, listPackagesAsync };
|
|
8619
8643
|
|
|
8620
|
-
//# debugId=
|
|
8644
|
+
//# debugId=C7F5318965ACD96664756E2164756E21
|