@uipath/solution-tool 1.206.0-preview.306 → 1.207.0-preview.307
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/{archive-extract-ma0gy822.js → archive-extract-afgwacbg.js} +3 -3
- package/dist/{cleanup-command-service-abtxpefz.js → cleanup-command-service-0j6qxj96.js} +20 -15
- package/dist/deploy-delete-service-ghyetrvj.js +23 -0
- package/dist/deploy-run-service-sz77fpsz.js +24 -0
- package/dist/{deploy-status-service-k1gycn13.js → deploy-status-service-aj4m61hg.js} +49 -25
- package/dist/deploy.js +21 -20
- package/dist/{deployment-search-bjdwqh5w.js → deployment-search-mkvzgeq4.js} +9 -9
- package/dist/{embedded-file-reader-pxpwcq3n.js → embedded-file-reader-k94wt612.js} +16 -16
- package/dist/feed-resolver-yj94m9j1.js +31 -0
- package/dist/feed-scope-failure-7abh61sj.js +20 -0
- package/dist/{feed-session-ytew8k2j.js → feed-session-z8t87r5w.js} +6 -6
- package/dist/{first-party-service-6gf3n6d8.js → first-party-service-bmtxd7wx.js} +1 -1
- package/dist/folder-runtime-check-8nf63er2.js +25 -0
- package/dist/{governance-options-40m81z8h.js → governance-options-ft8bqz4p.js} +7 -7
- package/dist/{packager-tool-v3ze7wmr.js → index-6ma58k47.js} +33 -708
- package/dist/{index-yjvmjpdn.js → index-j3tpb2cr.js} +12 -11
- package/dist/{index-p3x7ztdr.js → index-jy1760qy.js} +1 -1
- package/dist/{index-2bn3jzn9.js → index-nbs04tqr.js} +9 -7
- package/dist/index.js +26 -26
- package/dist/init.js +10 -10
- package/dist/{list-0k8c4rt6.js → list-3a1tdrgm.js} +11 -11
- package/dist/models/pack-command-types.d.ts +12 -0
- package/dist/{node-6ay6nbnq.js → node-83xy0gm0.js} +6 -6
- package/dist/pack-command-service-42p3t8xa.js +32 -0
- package/dist/{pack-project-2g2ncn2k.js → pack-project-w514zr5v.js} +21 -18
- package/dist/pack.js +25 -22
- package/dist/{package-id-56k44s7y.js → package-id-2dgfbh5h.js} +3 -3
- package/dist/{packager-tool-2zn98p5r.js → packager-tool-0gyqtxvs.js} +4 -4
- package/dist/{packager-tool-vgrswa8p.js → packager-tool-1db1wqdy.js} +30 -8
- package/dist/{packager-tool-vx2c68sb.js → packager-tool-1dsxhz1r.js} +2 -2
- package/dist/{packager-tool-xxf8f4v2.js → packager-tool-2syv199e.js} +9 -5
- package/dist/packager-tool-3ft8hywr.js +449 -0
- package/dist/{packager-tool-829w06ns.js → packager-tool-3qach0s4.js} +14 -8
- package/dist/{packager-tool-bkmwknfn.js → packager-tool-4f1k64fh.js} +8 -74
- package/dist/{packager-tool-7v03ncmv.js → packager-tool-70ag56bf.js} +49 -24
- package/dist/{packager-tool-5e4gps62.js → packager-tool-71sz9598.js} +20 -8
- package/dist/{packager-tool-23g7kn35.js → packager-tool-7j920ac5.js} +18 -11
- package/dist/packager-tool-7s842xrq.js +140 -0
- package/dist/{packager-tool-s8q14fth.js → packager-tool-849ch2tq.js} +4 -6
- package/dist/{packager-tool-aws5w512.js → packager-tool-887bkh9y.js} +1 -1
- package/dist/{packager-tool-f5pzh184.js → packager-tool-a566400t.js} +26 -10
- package/dist/packager-tool-a813na66.js +75 -0
- package/dist/{packager-tool-c8x0tpe4.js → packager-tool-af8n6rqz.js} +85 -30
- package/dist/{packager-tool-y1304xzm.js → packager-tool-bpdyy6vs.js} +530 -204
- package/dist/{packager-tool-fx4ws49n.js → packager-tool-cenfraf4.js} +2 -2
- package/dist/{packager-tool-0z4aq300.js → packager-tool-cwqy5rb5.js} +119 -52
- package/dist/{packager-tool-a7s0gbxs.js → packager-tool-devc4w73.js} +7 -2
- package/dist/{packager-tool-pqk9v4h7.js → packager-tool-fbajevvm.js} +52 -15
- package/dist/{packager-tool-r0ha8c95.js → packager-tool-fz96p75n.js} +3 -3
- package/dist/{packager-tool-m07vyk89.js → packager-tool-gb3dq79g.js} +36 -9
- package/dist/{packager-tool-h8tksb5s.js → packager-tool-gns0nxbt.js} +28 -9
- package/dist/{packager-tool-wjvks6st.js → packager-tool-h8wam8pt.js} +15 -6
- package/dist/{packager-tool-z4cbca95.js → packager-tool-hczpvrc1.js} +6 -6
- package/dist/{packager-tool-t39pjz7n.js → packager-tool-jtvhkavz.js} +48 -6
- package/dist/{packager-tool-p5322gew.js → packager-tool-kmwjscby.js} +88 -10
- package/dist/{packager-tool-ppj5f4y7.js → packager-tool-n1zrk6zv.js} +4 -2
- package/dist/{packager-tool-2qsbh4kd.js → packager-tool-ncgpx1ce.js} +50 -12
- package/dist/{packager-tool-f15an17m.js → packager-tool-p1xfsv6c.js} +92 -4
- package/dist/{packager-tool-egc54x78.js → packager-tool-qhht1tc9.js} +2408 -771
- package/dist/packager-tool-r7fmsz2t.js +741 -0
- package/dist/{packager-tool-resolver-30hxk8vm.js → packager-tool-resolver-mynfj0rt.js} +6 -6
- package/dist/{packager-tool-ay4j9x92.js → packager-tool-s9tyw75r.js} +19 -8
- package/dist/{packager-tool-ckrt4gyr.js → packager-tool-t9zked1m.js} +3 -3
- package/dist/{packager-tool-1ctvbx0h.js → packager-tool-tr3ttz5c.js} +1 -1
- package/dist/{packager-tool-chff74yz.js → packager-tool-tt9v40x6.js} +3010 -846
- package/dist/{packager-tool-k9dk39tg.js → packager-tool-txygqgb2.js} +3 -3
- package/dist/packager-tool-v6jcys3s.js +46 -0
- package/dist/packager-tool-w0tmr9xe.js +279 -0
- package/dist/packager-tool-w35s60sx.js +179 -0
- package/dist/{packager-tool-axqk17xw.js → packager-tool-xbfr6y2x.js} +142 -34
- package/dist/{packager-tool-m5mwc6by.js → packager-tool-zsv8208n.js} +22 -18
- package/dist/{packager-tool-vrw36pdb.js → packager-tool-ztxsccjk.js} +140 -10
- package/dist/packager-tool.js +2 -2
- package/dist/prepare-solution-resources-g9y01pgd.js +26 -0
- package/dist/{project-command-utils-82tja3k0.js → project-command-utils-yxrgwzf9.js} +20 -13
- package/dist/project-contributions-c8v3bwjr.js +31 -0
- package/dist/project-identity-telemetry-yxdhswyq.js +18 -0
- package/dist/publish.js +14 -14
- package/dist/{resource-mutations-h6wfdqr4.js → resource-mutations-dn4f8xr1.js} +9 -9
- package/dist/{resource-version-lookup-xzgnvr48.js → resource-version-lookup-mksxc1dc.js} +9 -9
- package/dist/resource.js +9 -9
- package/dist/{restore-command-service-bqs7r9y3.js → restore-command-service-ztbt2ejp.js} +20 -15
- package/dist/run-service-r52wgf69.js +1056 -0
- package/dist/services/deploy-activate-service.d.ts +5 -2
- package/dist/services/deploy-config-file.d.ts +24 -0
- package/dist/services/deploy-delete-service.d.ts +1 -1
- package/dist/services/deploy-run-service.d.ts +8 -1
- package/dist/services/deploy-uninstall-service.d.ts +4 -2
- package/dist/services/deploy-upgrade-service.d.ts +23 -2
- package/dist/services/deployment-feed-locator.d.ts +19 -6
- package/dist/services/deployment-links.d.ts +16 -0
- package/dist/services/deployment-progress.d.ts +10 -0
- package/dist/services/deployment-search.d.ts +15 -2
- package/dist/services/deployment-state.d.ts +9 -0
- package/dist/services/feed-resolver.d.ts +17 -0
- package/dist/services/feed-selection.d.ts +59 -0
- package/dist/services/folder-runtime-check.d.ts +107 -0
- package/dist/services/incomplete-feed-sweep.d.ts +6 -0
- package/dist/services/pack-command-service.d.ts +6 -0
- package/dist/services/pack-project.d.ts +1 -1
- package/dist/services/package-metadata-rewrite.d.ts +13 -0
- package/dist/services/personal-workspace-resolver.d.ts +4 -1
- package/dist/services/prepare-solution-resources.d.ts +11 -6
- package/dist/services/project-contributions.d.ts +26 -2
- package/dist/services/project-identity-telemetry.d.ts +31 -0
- package/dist/services/solution-members.d.ts +31 -0
- package/dist/{ship-telemetry-19gx83af.js → ship-telemetry-9djqndmy.js} +4 -4
- package/dist/{solution-auth-jxcgd2m0.js → solution-auth-0e3qm74f.js} +3 -3
- package/dist/{solution-definition-helper-tqwd6cxn.js → solution-definition-helper-dreejga4.js} +1 -1
- package/dist/{solution-identity-c23d9bfv.js → solution-identity-j63p6n81.js} +4 -4
- package/dist/templates/AGENTS.md +131 -24
- package/dist/tool.js +26 -26
- package/package.json +2 -2
- package/dist/deploy-delete-service-as1jfycj.js +0 -23
- package/dist/deploy-run-service-gs1xv1y1.js +0 -23
- package/dist/feed-resolver-x0kt3yrw.js +0 -27
- package/dist/feed-scope-failure-9p8w0j1v.js +0 -20
- package/dist/pack-command-service-jzbch4eb.js +0 -29
- package/dist/packager-tool-qpryf1x2.js +0 -74
- package/dist/packager-tool-vrqbbh01.js +0 -182
- package/dist/prepare-solution-resources-h7zvnncd.js +0 -26
- package/dist/project-contributions-xx560n8y.js +0 -27
- package/dist/run-service-ekbx2jdg.js +0 -506
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-1db1wqdy.js";
|
|
4
4
|
import {
|
|
5
5
|
CommandDimensions,
|
|
6
6
|
GUID_KEY_DIMENSIONS,
|
|
@@ -14,8 +14,10 @@ import {
|
|
|
14
14
|
releaseSuppliedArgumentValues,
|
|
15
15
|
redactProperties,
|
|
16
16
|
catchError,
|
|
17
|
+
RESULTS,
|
|
17
18
|
isCliErrorCode,
|
|
18
19
|
isRetryHint,
|
|
20
|
+
carriedResult,
|
|
19
21
|
defaultRetryForErrorCode,
|
|
20
22
|
walkErrorGraph,
|
|
21
23
|
parseHttpStatusFromMessage,
|
|
@@ -30,7 +32,7 @@ import {
|
|
|
30
32
|
isProjectTelemetryDisabled,
|
|
31
33
|
buildCommandTelemetryAttribution,
|
|
32
34
|
buildAgentSessionTelemetry
|
|
33
|
-
} from "./packager-tool-
|
|
35
|
+
} from "./packager-tool-gb3dq79g.js";
|
|
34
36
|
import {
|
|
35
37
|
__toESM,
|
|
36
38
|
__commonJS,
|
|
@@ -2111,16 +2113,6 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2111
2113
|
exports.useColor = useColor;
|
|
2112
2114
|
});
|
|
2113
2115
|
|
|
2114
|
-
// ../common/src/result-types.ts
|
|
2115
|
-
var RESULTS = {
|
|
2116
|
-
Success: "Success",
|
|
2117
|
-
Failure: "Failure",
|
|
2118
|
-
ConfigError: "ConfigError",
|
|
2119
|
-
AuthenticationError: "AuthenticationError",
|
|
2120
|
-
ValidationError: "ValidationError",
|
|
2121
|
-
TimeoutError: "TimeoutError"
|
|
2122
|
-
};
|
|
2123
|
-
|
|
2124
2116
|
// ../../node_modules/commander/index.js
|
|
2125
2117
|
var exports_commander = {};
|
|
2126
2118
|
__exportCjs(exports_commander, {
|
|
@@ -2409,6 +2401,14 @@ function getLogFilePath() {
|
|
|
2409
2401
|
return logger.getLogFilePath();
|
|
2410
2402
|
}
|
|
2411
2403
|
|
|
2404
|
+
// ../common/src/telemetry/telemetry-events.ts
|
|
2405
|
+
var CommonTelemetryEvents = {
|
|
2406
|
+
Start: "Application.Start",
|
|
2407
|
+
Error: "Application.Error",
|
|
2408
|
+
ProjectActivity: "Cli.ProjectActivity",
|
|
2409
|
+
ShipSucceeded: "Cli.ShipSucceeded"
|
|
2410
|
+
};
|
|
2411
|
+
|
|
2412
2412
|
// ../common/src/registry.ts
|
|
2413
2413
|
import { execFileSync } from "node:child_process";
|
|
2414
2414
|
function readRegistryValue(keyPath, valueName) {
|
|
@@ -2613,6 +2613,7 @@ var MAX_SPOOL_AGE_MS = 72 * 60 * 60 * 1000;
|
|
|
2613
2613
|
// ../common/src/telemetry/telemetry-init.ts
|
|
2614
2614
|
var telemetryInstanceSlot = singleton("TelemetryService");
|
|
2615
2615
|
var DEFAULT_AI_CONNECTION_STRING = atob("SW5zdHJ1bWVudGF0aW9uS2V5PTliZDM3NDgyLTgxMGUtNDQyYS1hYWE2LWQzOGVmNjVjNjY3NDtJbmdlc3Rpb25FbmRwb2ludD1odHRwczovL3dlc3RldXJvcGUtNS5pbi5hcHBsaWNhdGlvbmluc2lnaHRzLmF6dXJlLmNvbS87TGl2ZUVuZHBvaW50PWh0dHBzOi8vd2VzdGV1cm9wZS5saXZlZGlhZ25vc3RpY3MubW9uaXRvci5henVyZS5jb20vO0FwcGxpY2F0aW9uSWQ9MzU2OTdlZjEtOGJkMC00ZjE5LWEyN2MtZDg3Y2NhYzY2ZDJj");
|
|
2616
|
+
var browserProviderSlot = singleton("BrowserAppInsightsTelemetryProvider");
|
|
2616
2617
|
function getGlobalTelemetryInstance() {
|
|
2617
2618
|
const existing = telemetryInstanceSlot.get();
|
|
2618
2619
|
if (existing && typeof existing === "object" && "trackEvent" in existing && typeof existing.trackEvent === "function") {
|
|
@@ -2704,7 +2705,10 @@ var AUTH_ERROR_CODES = new Set([
|
|
|
2704
2705
|
var LOCAL_PERMISSION_CLI_ERROR_CODES = new Set([
|
|
2705
2706
|
"local_permission_denied"
|
|
2706
2707
|
]);
|
|
2707
|
-
var VALIDATION_ERROR_CODES = new Set([
|
|
2708
|
+
var VALIDATION_ERROR_CODES = new Set([
|
|
2709
|
+
"invalid_argument",
|
|
2710
|
+
"confirmation_required"
|
|
2711
|
+
]);
|
|
2708
2712
|
var NETWORK_HTTP_ERROR_CODES = new Set([
|
|
2709
2713
|
"network_error",
|
|
2710
2714
|
"rate_limited",
|
|
@@ -2921,14 +2925,6 @@ function buildCommandTerminalTelemetryProperties(input) {
|
|
|
2921
2925
|
...terminalSignal ? { [CommandDimensions.TerminalSignal]: terminalSignal } : {}
|
|
2922
2926
|
};
|
|
2923
2927
|
}
|
|
2924
|
-
|
|
2925
|
-
// ../common/src/telemetry/telemetry-events.ts
|
|
2926
|
-
var CommonTelemetryEvents = {
|
|
2927
|
-
Start: "Application.Start",
|
|
2928
|
-
Error: "Application.Error",
|
|
2929
|
-
ProjectActivity: "Cli.ProjectActivity",
|
|
2930
|
-
ShipSucceeded: "Cli.ShipSucceeded"
|
|
2931
|
-
};
|
|
2932
2928
|
// ../common/src/formatter.ts
|
|
2933
2929
|
var ANSI_STYLES = {
|
|
2934
2930
|
red: "\x1B[31m",
|
|
@@ -3117,7 +3113,7 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
|
|
|
3117
3113
|
const pagedRows = extractPagedRows(data.Data);
|
|
3118
3114
|
const items = pagedRows ?? (Array.isArray(data.Data) ? data.Data : [data.Data]);
|
|
3119
3115
|
items.forEach((item) => {
|
|
3120
|
-
const values = Object.values(item).map((v) => v ?? "").join("\t");
|
|
3116
|
+
const values = item === null || typeof item !== "object" ? String(item ?? "") : Object.values(item).map((v) => v ?? "").join("\t");
|
|
3121
3117
|
logFn(values);
|
|
3122
3118
|
});
|
|
3123
3119
|
} else {
|
|
@@ -3132,7 +3128,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
|
|
|
3132
3128
|
default: {
|
|
3133
3129
|
const hasData = "Data" in data && data.Data != null;
|
|
3134
3130
|
const pagedRows = hasData ? extractPagedRows(data.Data) : null;
|
|
3135
|
-
const
|
|
3131
|
+
const resolvedRows = pagedRows ? pagedRows : Array.isArray(data.Data) ? data.Data : null;
|
|
3132
|
+
const rows = resolvedRows && isPrimitiveArray(resolvedRows) ? resolvedRows.map((entry) => ({ Value: entry })) : resolvedRows;
|
|
3136
3133
|
if (hasData && !(rows !== null && rows.length === 0)) {
|
|
3137
3134
|
const logValue = data.Log;
|
|
3138
3135
|
if (rows !== null) {
|
|
@@ -3189,6 +3186,9 @@ function printTable(data, logFn, externalLogValue, tableRowStyle) {
|
|
|
3189
3186
|
function isPlainObjectArray(value) {
|
|
3190
3187
|
return Array.isArray(value) && value.length > 0 && value.every(isPlainRecord);
|
|
3191
3188
|
}
|
|
3189
|
+
function isPrimitiveArray(value) {
|
|
3190
|
+
return Array.isArray(value) && value.length > 0 && value.every((entry) => entry === null || typeof entry !== "object");
|
|
3191
|
+
}
|
|
3192
3192
|
function isNonEmptyPlainObject(value) {
|
|
3193
3193
|
return isPlainRecord(value) && Object.keys(value).length > 0;
|
|
3194
3194
|
}
|
|
@@ -3535,12 +3535,12 @@ class FilterEvaluationError extends Error {
|
|
|
3535
3535
|
instructions;
|
|
3536
3536
|
retry = "RetryWillNotFix";
|
|
3537
3537
|
result = RESULTS.ValidationError;
|
|
3538
|
-
constructor(filter, cause) {
|
|
3538
|
+
constructor(filter, cause, hint) {
|
|
3539
3539
|
const underlying = cause instanceof Error ? cause.message : String(cause);
|
|
3540
|
-
super(`Filter '${filter}' failed to evaluate: ${underlying}`);
|
|
3540
|
+
super(`Filter '${filter}' failed to evaluate: ${underlying}` + (hint ? ` ${hint.detail}` : ""));
|
|
3541
3541
|
this.name = "FilterEvaluationError";
|
|
3542
3542
|
this.filter = filter;
|
|
3543
|
-
this.instructions = `The --output-filter expression '${filter}' failed at evaluation time. ` + "Note that --output-filter operates on the 'Data' field of the envelope, not the full object. " + "For example, on a list result use 'length(@)' instead of 'Data | length(@)'.";
|
|
3543
|
+
this.instructions = (hint ? `${hint.instructions} ` : "") + `The --output-filter expression '${filter}' failed at evaluation time. ` + "Note that --output-filter operates on the 'Data' field of the envelope, not the full object. " + "For example, on a list result use 'length(@)' instead of 'Data | length(@)'.";
|
|
3544
3544
|
}
|
|
3545
3545
|
}
|
|
3546
3546
|
|
|
@@ -3662,6 +3662,93 @@ function nameList(names, cap = 12) {
|
|
|
3662
3662
|
const rest = names.length - shown.length;
|
|
3663
3663
|
return shown.join(", ") + (rest > 0 ? `, and ${rest} more` : "");
|
|
3664
3664
|
}
|
|
3665
|
+
function notFieldsOn(names, scope) {
|
|
3666
|
+
return `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
|
|
3667
|
+
}
|
|
3668
|
+
function failingFieldRead(ast, isList, fn, argIndex) {
|
|
3669
|
+
const [left, right, condition] = ast.children ?? [];
|
|
3670
|
+
let scopes = [];
|
|
3671
|
+
if (!isList) {
|
|
3672
|
+
scopes = [ast];
|
|
3673
|
+
} else if (ast.type === "FilterProjection" && left?.type === "Identity") {
|
|
3674
|
+
scopes = [condition, right];
|
|
3675
|
+
} else if (ast.type === "Projection" && (left?.type === "Identity" || left?.type === "Flatten" && left.children?.[0]?.type === "Identity")) {
|
|
3676
|
+
scopes = [right];
|
|
3677
|
+
}
|
|
3678
|
+
const reads = new Set;
|
|
3679
|
+
let tracked = 0;
|
|
3680
|
+
const visit = (node) => {
|
|
3681
|
+
if (!node)
|
|
3682
|
+
return;
|
|
3683
|
+
switch (node.type) {
|
|
3684
|
+
case "Function": {
|
|
3685
|
+
const arg = node.children?.[argIndex - 1];
|
|
3686
|
+
if (node.name === fn && arg?.type === "Field" && arg.name) {
|
|
3687
|
+
reads.add(arg.name);
|
|
3688
|
+
tracked++;
|
|
3689
|
+
}
|
|
3690
|
+
node.children?.forEach(visit);
|
|
3691
|
+
return;
|
|
3692
|
+
}
|
|
3693
|
+
case "AndExpression":
|
|
3694
|
+
case "OrExpression":
|
|
3695
|
+
case "NotExpression":
|
|
3696
|
+
case "Comparator":
|
|
3697
|
+
case "MultiSelectList":
|
|
3698
|
+
case "MultiSelectHash":
|
|
3699
|
+
node.children?.forEach(visit);
|
|
3700
|
+
return;
|
|
3701
|
+
case "KeyValuePair":
|
|
3702
|
+
visit(node.value);
|
|
3703
|
+
return;
|
|
3704
|
+
}
|
|
3705
|
+
};
|
|
3706
|
+
scopes.forEach(visit);
|
|
3707
|
+
const calls = (node) => {
|
|
3708
|
+
if (node === null || typeof node !== "object")
|
|
3709
|
+
return 0;
|
|
3710
|
+
const own = node.type === "Function" && node.name === fn ? 1 : 0;
|
|
3711
|
+
const next = node.type === "KeyValuePair" ? [node.value] : node.children ?? [];
|
|
3712
|
+
return own + next.reduce((sum, child) => sum + calls(child), 0);
|
|
3713
|
+
};
|
|
3714
|
+
return reads.size === 1 && tracked === calls(ast) ? [...reads][0] : undefined;
|
|
3715
|
+
}
|
|
3716
|
+
function fieldExpression(name) {
|
|
3717
|
+
return /^[A-Za-z_]\w*$/.test(name) ? name : JSON.stringify(name);
|
|
3718
|
+
}
|
|
3719
|
+
function evaluationHint(codec, filter, data, cause) {
|
|
3720
|
+
const underlying = cause instanceof Error ? cause.message : String(cause);
|
|
3721
|
+
const failure = /\b(\w+)\(\) expected argument (\d+) to be type (\S+) but received type null\b/.exec(underlying);
|
|
3722
|
+
if (!failure)
|
|
3723
|
+
return;
|
|
3724
|
+
const [, fn, position, expected] = failure;
|
|
3725
|
+
const name = failingFieldRead(codec.compile(filter), Array.isArray(data), fn, Number(position));
|
|
3726
|
+
if (name === undefined)
|
|
3727
|
+
return;
|
|
3728
|
+
const present = availableFields(data);
|
|
3729
|
+
if (present.length === 0)
|
|
3730
|
+
return;
|
|
3731
|
+
const scope = `${countRecords(data)} record(s)`;
|
|
3732
|
+
if (!present.includes(name)) {
|
|
3733
|
+
return {
|
|
3734
|
+
detail: `${notFieldsOn([name], scope)}. Available fields: ${nameList(present)}.`,
|
|
3735
|
+
instructions: "Use a field the records have; names are case-sensitive."
|
|
3736
|
+
};
|
|
3737
|
+
}
|
|
3738
|
+
const records = Array.isArray(data) ? data : [data];
|
|
3739
|
+
const unset = records.filter((r) => r?.[name] == null).length;
|
|
3740
|
+
const field = fieldExpression(name);
|
|
3741
|
+
let fallback;
|
|
3742
|
+
if (expected.split(",").includes("string")) {
|
|
3743
|
+
fallback = "''";
|
|
3744
|
+
} else if (expected.split(",").includes("array")) {
|
|
3745
|
+
fallback = "`[]`";
|
|
3746
|
+
}
|
|
3747
|
+
return {
|
|
3748
|
+
detail: `\`${name}\` is null or missing on ${unset} of the ${scope} it read.`,
|
|
3749
|
+
instructions: fallback ? `Give it a default where ${fn}() reads it, e.g. \`${field} || ${fallback}\`.` : `Filter out the records where \`${name}\` is null before ${fn}() reads it.`
|
|
3750
|
+
};
|
|
3751
|
+
}
|
|
3665
3752
|
function buildFilterWarning(filter, data, outcome) {
|
|
3666
3753
|
const present = availableFields(data);
|
|
3667
3754
|
const refs = referencedFields(filter);
|
|
@@ -3669,7 +3756,7 @@ function buildFilterWarning(filter, data, outcome) {
|
|
|
3669
3756
|
const unchecked = refs.nested.filter((name) => !present.includes(name));
|
|
3670
3757
|
const count = countRecords(data);
|
|
3671
3758
|
const scope = `${count} record(s)`;
|
|
3672
|
-
const isNotAField = (names) =>
|
|
3759
|
+
const isNotAField = (names) => notFieldsOn(names, scope);
|
|
3673
3760
|
const soundness = unchecked.length > 0 ? `${nameList(unchecked)} ${unchecked.length === 1 ? "reads" : "read"} below the top level, so ${unchecked.length === 1 ? "it was" : "they were"} not checked against the record keys` : refs.top.length > 0 ? "every field it names exists" : "";
|
|
3674
3761
|
const withSoundness = (base) => soundness ? `${base}, and ${soundness}` : base;
|
|
3675
3762
|
let detail;
|
|
@@ -3720,7 +3807,8 @@ function applyFilter(data, filter, onWarning) {
|
|
|
3720
3807
|
try {
|
|
3721
3808
|
result = codec.search(data, filter);
|
|
3722
3809
|
} catch (err) {
|
|
3723
|
-
|
|
3810
|
+
const [, hint] = catchError(() => evaluationHint(codec, filter, data, err));
|
|
3811
|
+
throw new FilterEvaluationError(filter, err, hint);
|
|
3724
3812
|
}
|
|
3725
3813
|
const inputCount = countRecords(data);
|
|
3726
3814
|
const warn = (outcome) => {
|
|
@@ -4479,7 +4567,7 @@ Command.prototype.trackedAction = function(context, fn, properties) {
|
|
|
4479
4567
|
logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
|
|
4480
4568
|
const typed = error;
|
|
4481
4569
|
const customInstructions = typeof typed.instructions === "string" ? typed.instructions : undefined;
|
|
4482
|
-
const customResult =
|
|
4570
|
+
const customResult = carriedResult(error);
|
|
4483
4571
|
const cancellationExitCode = typed.exitCode === 130 || isPromptCancellation(error) ? 130 : undefined;
|
|
4484
4572
|
const classified = cancellationExitCode === undefined ? await extractErrorDetails(error) : undefined;
|
|
4485
4573
|
const finalResult = customResult ?? classified?.result ?? RESULTS.Failure;
|
|
@@ -5316,14 +5404,17 @@ function withCompleter(target, spec) {
|
|
|
5316
5404
|
return target;
|
|
5317
5405
|
}
|
|
5318
5406
|
// ../common/src/confirmation.ts
|
|
5319
|
-
function requireConfirmation(flags, operation) {
|
|
5407
|
+
function requireConfirmation(flags, operation, options) {
|
|
5320
5408
|
if (flags.yes === true || flags.force === true) {
|
|
5321
5409
|
return true;
|
|
5322
5410
|
}
|
|
5411
|
+
const message = options?.reversible ? `Confirmation required: this will ${operation}.` : `Confirmation required: this will ${operation} and cannot be undone.`;
|
|
5323
5412
|
OutputFormatter.error({
|
|
5324
5413
|
Result: RESULTS.Failure,
|
|
5325
|
-
Message:
|
|
5326
|
-
Instructions: "Re-run with --yes to confirm."
|
|
5414
|
+
Message: message,
|
|
5415
|
+
Instructions: options?.instructions ?? "Re-run with --yes to confirm.",
|
|
5416
|
+
ErrorCode: "confirmation_required",
|
|
5417
|
+
Retry: "RetryWillNotFix"
|
|
5327
5418
|
});
|
|
5328
5419
|
processContext.exit(1);
|
|
5329
5420
|
return false;
|
|
@@ -5664,6 +5755,21 @@ function warnDeprecatedTenantOption(tenant) {
|
|
|
5664
5755
|
return;
|
|
5665
5756
|
warnDeprecatedOptionAlias("--tenant", TENANT_SWITCH_COMMAND);
|
|
5666
5757
|
}
|
|
5758
|
+
// ../common/src/orchestrator-urls.ts
|
|
5759
|
+
function requireNonEmpty(label, value) {
|
|
5760
|
+
if (typeof value !== "string" || value.trim().length === 0) {
|
|
5761
|
+
throw new Error(`${label} is required and must be a non-empty string (got ${JSON.stringify(value)})`);
|
|
5762
|
+
}
|
|
5763
|
+
}
|
|
5764
|
+
function trimTrailingSlash(s) {
|
|
5765
|
+
return s.endsWith("/") ? s.slice(0, -1) : s;
|
|
5766
|
+
}
|
|
5767
|
+
function buildOrchestratorUrl(baseUrl, org, tenant, path) {
|
|
5768
|
+
requireNonEmpty("baseUrl", baseUrl);
|
|
5769
|
+
requireNonEmpty("org", org);
|
|
5770
|
+
requireNonEmpty("tenant", tenant);
|
|
5771
|
+
return `${trimTrailingSlash(baseUrl)}/${encodeURIComponent(org)}/${encodeURIComponent(tenant)}/orchestrator_${path}`;
|
|
5772
|
+
}
|
|
5667
5773
|
// ../common/src/package-metadata-options.ts
|
|
5668
5774
|
function registerPackageMetadataOptions(command) {
|
|
5669
5775
|
return command.option("--author <author>", "Package author").option("--description <text>", "Package description").option("--repository-url <url>", "Source repository URL (recorded in the package for traceability)").option("--repository-commit <sha>", "Source repository commit hash (recorded in the package for traceability)").option("--repository-branch <branch>", "Source repository branch").option("--repository-type <type>", "Source repository type (defaults to 'git' when --repository-url is set)").option("--release-notes <text>", "Release notes for the package").option("--project-url <url>", "Automation Hub idea URL");
|
|
@@ -5691,6 +5797,8 @@ function mapPackageMetadataOptions(opts) {
|
|
|
5691
5797
|
}
|
|
5692
5798
|
return fields;
|
|
5693
5799
|
}
|
|
5800
|
+
// ../common/src/relayed-output.ts
|
|
5801
|
+
var RELAYED_OUTPUT_SYMBOL = Symbol.for("@uipath/common/relayed-output");
|
|
5694
5802
|
// ../common/src/screen-logger.ts
|
|
5695
5803
|
var ScreenLogger;
|
|
5696
5804
|
((ScreenLogger) => {
|
|
@@ -5700,6 +5808,6 @@ var ScreenLogger;
|
|
|
5700
5808
|
}
|
|
5701
5809
|
ScreenLogger.progress = progress;
|
|
5702
5810
|
})(ScreenLogger ||= {});
|
|
5703
|
-
export { redactTokens, parseAuthChallenge,
|
|
5811
|
+
export { redactTokens, parseAuthChallenge, authContextFailure, summarizePlatformBody, Command, Option, isPreviewBuild, logger, CommonTelemetryEvents, DebugTelemetryProvider, NodeContextStorage, telemetry, Pagination, OutputFormatter, configureProjectTelemetry, getProjectTelemetryCapture, createIdentityCommandResolver, processContext, withCompleter, requireConfirmation, DEFAULT_PAGE_SIZE, resolveEnvReference, isGuid, resolveDeprecatedOptionAlias, warnDeprecatedOptionAlias, addDeprecatedOptionAlias, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, buildOrchestratorUrl, registerPackageMetadataOptions, mapPackageMetadataOptions, msToDuration, PollOutcome, mapPollFailure, pollUntil, quoteForShell, unsupportedSolutionProjectType, trackShipSucceeded, ensurePackagerFactory };
|
|
5704
5812
|
|
|
5705
|
-
//# debugId=
|
|
5813
|
+
//# debugId=041339E8129B9A9464756E2164756E21
|
|
@@ -1,26 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catchError,
|
|
3
3
|
extractErrorDetails
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-gb3dq79g.js";
|
|
5
5
|
import {
|
|
6
6
|
Configuration2,
|
|
7
7
|
PipelinesApi,
|
|
8
8
|
classifyFeedSession2
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-hczpvrc1.js";
|
|
10
10
|
import {
|
|
11
11
|
Configuration3,
|
|
12
12
|
WorkflowAction2,
|
|
13
13
|
DeploymentsApi2
|
|
14
|
-
} from "./packager-tool-
|
|
14
|
+
} from "./packager-tool-2syv199e.js";
|
|
15
15
|
import {
|
|
16
16
|
getSolutionAuthContext2
|
|
17
|
-
} from "./packager-tool-
|
|
17
|
+
} from "./packager-tool-n1zrk6zv.js";
|
|
18
18
|
import {
|
|
19
19
|
feedSelectorFlag2
|
|
20
|
-
} from "./packager-tool-
|
|
20
|
+
} from "./packager-tool-7j920ac5.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
missingDeploymentMessage,
|
|
23
|
+
resolveDeploymentTargetAsync
|
|
24
|
+
} from "./packager-tool-7s842xrq.js";
|
|
24
25
|
import {
|
|
25
26
|
hasServerErrorCode,
|
|
26
27
|
isBareResponse
|
|
@@ -29,7 +30,7 @@ import {
|
|
|
29
30
|
findDeploymentAcrossFeeds,
|
|
30
31
|
INCOMPLETE_SWEEP_ADVICE,
|
|
31
32
|
reportIncompleteSweepAsync
|
|
32
|
-
} from "./packager-tool-
|
|
33
|
+
} from "./packager-tool-a566400t.js";
|
|
33
34
|
|
|
34
35
|
// src/services/deploy-delete-service.ts
|
|
35
36
|
var fail = (reason, message, instructions, extras = {}) => ({
|
|
@@ -96,7 +97,7 @@ async function sendDeleteAsync(auth, deploymentKey, scope) {
|
|
|
96
97
|
const [solutionsError] = await catchError(deploymentsApi.deploymentsDelete({ deploymentKey }, scope));
|
|
97
98
|
return solutionsError ? extractErrorDetails(solutionsError) : undefined;
|
|
98
99
|
}
|
|
99
|
-
async function deleteDeploymentAsync2(
|
|
100
|
+
async function deleteDeploymentAsync2(reference, options = {}) {
|
|
100
101
|
const [authError, auth] = await catchError(getSolutionAuthContext2({
|
|
101
102
|
tenant: options.tenant,
|
|
102
103
|
loginValidity: options.loginValidity,
|
|
@@ -108,20 +109,20 @@ async function deleteDeploymentAsync2(deploymentName, options = {}) {
|
|
|
108
109
|
retry: "RetryWillNotFix"
|
|
109
110
|
});
|
|
110
111
|
}
|
|
111
|
-
const
|
|
112
|
-
if (!
|
|
113
|
-
return fail(
|
|
114
|
-
errorCode:
|
|
115
|
-
retry:
|
|
112
|
+
const target = await resolveDeploymentTargetAsync(auth, reference, options, "Deleting a deployment");
|
|
113
|
+
if (!target.ok) {
|
|
114
|
+
return fail(target.reason, target.message, target.instructions, {
|
|
115
|
+
errorCode: target.errorCode,
|
|
116
|
+
retry: target.retry
|
|
116
117
|
});
|
|
117
118
|
}
|
|
118
|
-
const { selectedFeed } =
|
|
119
|
+
const { deploymentName, selectedFeed, currentKey } = target;
|
|
119
120
|
const sweep = await findDeploymentAcrossFeeds(auth, deploymentName, {
|
|
120
121
|
tenant: options.tenant,
|
|
121
122
|
loginValidity: options.loginValidity,
|
|
122
123
|
envFilePath: options.envFilePath,
|
|
123
124
|
selectedFeed,
|
|
124
|
-
|
|
125
|
+
uninstalled: "accept"
|
|
125
126
|
});
|
|
126
127
|
const { location } = sweep;
|
|
127
128
|
if (!location && !sweep.complete) {
|
|
@@ -129,8 +130,11 @@ async function deleteDeploymentAsync2(deploymentName, options = {}) {
|
|
|
129
130
|
const oneFeed = report.oneFeedFlags.map((flag) => `'uip solution deploy list ${flag}'`).join(" or ");
|
|
130
131
|
return fail("lookup_failed", report.message, `${INCOMPLETE_SWEEP_ADVICE} ${report.nextStep}${oneFeed ? ` To check one feed yourself, run ${oneFeed}.` : ""} Details: ${report.details}`, { errorCode: report.errorCode, retry: report.retry });
|
|
131
132
|
}
|
|
133
|
+
if (currentKey && location?.deployment.key !== currentKey) {
|
|
134
|
+
return fail("lookup_failed", `Deployment '${deploymentName}' (key ${currentKey}) is not listed by the deployment search yet${location ? `: it lists record ${location.deployment.key} instead` : ""}. Nothing was deleted.`, `Wait a moment, then retry: uip solution deploy delete ${currentKey} --yes. Run 'uip solution deploy status ${currentKey}' to see the record.`, { errorCode: "unknown_error", retry: "RetryLater" });
|
|
135
|
+
}
|
|
132
136
|
if (!location) {
|
|
133
|
-
return fail("deployment_not_found",
|
|
137
|
+
return fail("deployment_not_found", `${missingDeploymentMessage(reference)}.`, selectedFeed ? `Run 'uip solution deploy list${feedSelectorFlag2(selectedFeed)}' to see the deployment names in the selected feed, or drop the feed flag to search every feed you can reach.` : "Run 'uip solution deploy list' to see valid deployment names.", { errorCode: "not_found", retry: "RetryWillNotFix" });
|
|
134
138
|
}
|
|
135
139
|
const { deployment, scope } = location;
|
|
136
140
|
if (deployment.actions?.length && !deployment.actions.includes(WorkflowAction2.Delete)) {
|
|
@@ -159,4 +163,4 @@ async function deleteDeploymentAsync2(deploymentName, options = {}) {
|
|
|
159
163
|
|
|
160
164
|
export { deleteDeploymentAsync2 };
|
|
161
165
|
|
|
162
|
-
//# debugId=
|
|
166
|
+
//# debugId=91D3414BF303F5BF64756E2164756E21
|
|
@@ -1,34 +1,76 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getFileSystem
|
|
3
|
+
} from "./packager-tool-1db1wqdy.js";
|
|
1
4
|
import {
|
|
2
5
|
catchError,
|
|
3
6
|
extractErrorDetails
|
|
4
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-gb3dq79g.js";
|
|
5
8
|
import {
|
|
6
9
|
logger,
|
|
7
10
|
processContext,
|
|
11
|
+
buildOrchestratorUrl,
|
|
12
|
+
msToDuration,
|
|
8
13
|
PollOutcome,
|
|
9
14
|
pollUntil
|
|
10
|
-
} from "./packager-tool-
|
|
15
|
+
} from "./packager-tool-xbfr6y2x.js";
|
|
11
16
|
import {
|
|
12
17
|
Configuration2,
|
|
13
18
|
PipelinesApi
|
|
14
|
-
} from "./packager-tool-
|
|
19
|
+
} from "./packager-tool-hczpvrc1.js";
|
|
15
20
|
import {
|
|
16
21
|
Configuration3,
|
|
17
22
|
DeploymentsApi2
|
|
18
|
-
} from "./packager-tool-
|
|
23
|
+
} from "./packager-tool-2syv199e.js";
|
|
19
24
|
import {
|
|
25
|
+
readDeploymentByKeyAsync2,
|
|
20
26
|
findDeploymentBestEffort2,
|
|
21
27
|
isPipelineDeploymentNotFoundError2,
|
|
22
28
|
mapOperationStatusToPipelineStatus2,
|
|
23
29
|
deploymentToTerminalPipelineResult2
|
|
24
|
-
} from "./packager-tool-
|
|
25
|
-
import {
|
|
26
|
-
isCurrentRecordAsync
|
|
27
|
-
} from "./packager-tool-wjvks6st.js";
|
|
30
|
+
} from "./packager-tool-3qach0s4.js";
|
|
28
31
|
import {
|
|
29
32
|
coerceWorkflowErrorMessages,
|
|
30
33
|
VALIDATION_CONFIRMATION_REQUIRED_CODE
|
|
31
34
|
} from "./packager-tool-2pxe2r4j.js";
|
|
35
|
+
import {
|
|
36
|
+
isCurrentRecordAsync
|
|
37
|
+
} from "./packager-tool-h8wam8pt.js";
|
|
38
|
+
|
|
39
|
+
// src/services/deployment-progress.ts
|
|
40
|
+
function deploymentProgressStatus(result) {
|
|
41
|
+
return [
|
|
42
|
+
result.status && `DeploymentStatus: ${result.status}`,
|
|
43
|
+
result.operation && `Operation: ${result.operation}`,
|
|
44
|
+
result.operationStatus && `OperationStatus: ${result.operationStatus}`,
|
|
45
|
+
result.activationStatus && `ActivationStatus: ${result.activationStatus}`
|
|
46
|
+
].filter(Boolean).join(", ");
|
|
47
|
+
}
|
|
48
|
+
function pipelineProgressStatus(result) {
|
|
49
|
+
return [
|
|
50
|
+
`Status: ${result.status}`,
|
|
51
|
+
result.deploymentResult && deploymentProgressStatus(result.deploymentResult)
|
|
52
|
+
].filter(Boolean).join(", ");
|
|
53
|
+
}
|
|
54
|
+
function createDeploymentProgress(label) {
|
|
55
|
+
let lastStatus;
|
|
56
|
+
let lastReportedAt = 0;
|
|
57
|
+
return (status, elapsedMs) => {
|
|
58
|
+
const changed = status !== lastStatus;
|
|
59
|
+
if (!changed && elapsedMs - lastReportedAt < 30000)
|
|
60
|
+
return;
|
|
61
|
+
const line = `${label}: ${changed ? "" : "still "}${status}, ${msToDuration(elapsedMs)} elapsed`;
|
|
62
|
+
const message = line.replace(/[\u0000-\u001f\u007f-\u009f]/g, " ");
|
|
63
|
+
if (logger.getLevel() <= 2 /* WARN */) {
|
|
64
|
+
if (typeof logger.report === "function") {
|
|
65
|
+
logger.report(message);
|
|
66
|
+
} else {
|
|
67
|
+
logger.warn(message);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
lastStatus = status;
|
|
71
|
+
lastReportedAt = elapsedMs;
|
|
72
|
+
};
|
|
73
|
+
}
|
|
32
74
|
|
|
33
75
|
// src/services/activation.ts
|
|
34
76
|
var TERMINAL_STATUSES = new Set([
|
|
@@ -80,10 +122,12 @@ async function activateDeployment(auth, deploymentName, options) {
|
|
|
80
122
|
if (!instanceId) {
|
|
81
123
|
return { kind: "NoInstance" };
|
|
82
124
|
}
|
|
125
|
+
const progress = createDeploymentProgress(`activate '${deploymentName}'`);
|
|
83
126
|
const pollResult = await pollUntil({
|
|
84
127
|
fn: () => api.pipelinesGetDeploymentInstanceStatus({ instanceId }, options.scope),
|
|
85
128
|
until: (result) => TERMINAL_STATUSES.has(result.status),
|
|
86
129
|
getStatus: (result) => result.status,
|
|
130
|
+
onPoll: (result, elapsedMs) => progress(deploymentProgressStatus(result), elapsedMs),
|
|
87
131
|
label: `activate ${deploymentName}`,
|
|
88
132
|
logPrefix: "activate",
|
|
89
133
|
timeoutMs: options.timeoutSeconds * 1000,
|
|
@@ -110,6 +154,90 @@ async function activateDeployment(auth, deploymentName, options) {
|
|
|
110
154
|
};
|
|
111
155
|
}
|
|
112
156
|
|
|
157
|
+
// src/services/deployment-links.ts
|
|
158
|
+
function buildDeploymentLinks(auth, deploymentKey, installedFolderKey, feedFolderKey) {
|
|
159
|
+
const { baseUrl, organizationName, tenantName } = auth;
|
|
160
|
+
if (!baseUrl || !organizationName || !tenantName)
|
|
161
|
+
return {};
|
|
162
|
+
const [, links] = catchError(() => {
|
|
163
|
+
let baseUrlEnd = baseUrl.length;
|
|
164
|
+
while (baseUrlEnd > 0 && baseUrl[baseUrlEnd - 1] === "/") {
|
|
165
|
+
baseUrlEnd--;
|
|
166
|
+
}
|
|
167
|
+
const root = buildOrchestratorUrl(baseUrl.slice(0, baseUrlEnd), organizationName, tenantName, "");
|
|
168
|
+
const route = feedFolderKey ? "folder-solutions-management" : "solutions-management";
|
|
169
|
+
const query = feedFolderKey ? `?fkey=${encodeURIComponent(feedFolderKey)}&solutionFeedId=${encodeURIComponent(feedFolderKey)}` : "";
|
|
170
|
+
const panel = deploymentKey ? `(sidepanel:sidepanel/${route}/deployment-details/${encodeURIComponent(deploymentKey)}/overview)` : "";
|
|
171
|
+
let panelQuery = "";
|
|
172
|
+
if (deploymentKey) {
|
|
173
|
+
const separator = query ? "&" : "?";
|
|
174
|
+
panelQuery = `${separator}allowBindings=true`;
|
|
175
|
+
if (feedFolderKey) {
|
|
176
|
+
panelQuery += `&sidepanelSolutionFeedId=${encodeURIComponent(feedFolderKey)}`;
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
return {
|
|
180
|
+
orchestratorUrl: `${root}/${route}/deployments${panel}${query}${panelQuery}`,
|
|
181
|
+
...installedFolderKey ? {
|
|
182
|
+
folderUrl: `${root}/processes?fkey=${encodeURIComponent(installedFolderKey)}`
|
|
183
|
+
} : {}
|
|
184
|
+
};
|
|
185
|
+
});
|
|
186
|
+
return links ?? {};
|
|
187
|
+
}
|
|
188
|
+
async function readDeploymentLinksAsync(auth, deploymentKey, scope, feedFolderKey, signal) {
|
|
189
|
+
const [, info] = deploymentKey ? await catchError(readDeploymentByKeyAsync2(auth, deploymentKey, { scope, signal })) : [undefined, undefined];
|
|
190
|
+
return buildDeploymentLinks(auth, deploymentKey, info?.deploymentKey === deploymentKey ? info?.installedRootFolderKey : undefined, feedFolderKey);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
// src/services/deploy-config-file.ts
|
|
194
|
+
async function parseConfigurationAsync(content) {
|
|
195
|
+
if (content.trim().length === 0) {
|
|
196
|
+
throw new Error("Configuration file is empty.");
|
|
197
|
+
}
|
|
198
|
+
const [jsonError, jsonConfiguration] = catchError(() => JSON.parse(content));
|
|
199
|
+
if (!jsonError) {
|
|
200
|
+
return jsonConfiguration;
|
|
201
|
+
}
|
|
202
|
+
const { parse: parseYaml } = await import("./index-6ma58k47.js");
|
|
203
|
+
return parseYaml(content);
|
|
204
|
+
}
|
|
205
|
+
async function readDeployConfigFileAsync(configFile) {
|
|
206
|
+
const fs = getFileSystem();
|
|
207
|
+
const configPath = fs.path.resolve(configFile);
|
|
208
|
+
const [readError, configContent] = await catchError(fs.readFile(configPath, "utf-8"));
|
|
209
|
+
if (readError) {
|
|
210
|
+
return {
|
|
211
|
+
ok: false,
|
|
212
|
+
reason: "config_file_read_failed",
|
|
213
|
+
message: `Failed to read config file: ${configPath}`,
|
|
214
|
+
instructions: readError.message
|
|
215
|
+
};
|
|
216
|
+
}
|
|
217
|
+
if (configContent === null) {
|
|
218
|
+
return {
|
|
219
|
+
ok: false,
|
|
220
|
+
reason: "config_file_not_found",
|
|
221
|
+
message: `Failed to read config file: ${configPath}`,
|
|
222
|
+
instructions: `File not found at ${configPath}. Check the --config-file path; generate a default config with: uip solution deploy config get <package-name> -d config.json.`,
|
|
223
|
+
errorCode: "invalid_argument",
|
|
224
|
+
retry: "RetryWillNotFix"
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
const [parseError, parsed] = await catchError(parseConfigurationAsync(configContent));
|
|
228
|
+
if (parseError) {
|
|
229
|
+
return {
|
|
230
|
+
ok: false,
|
|
231
|
+
reason: "config_file_parse_failed",
|
|
232
|
+
message: `Invalid JSON or YAML in config file: ${configPath}`,
|
|
233
|
+
instructions: parseError.message,
|
|
234
|
+
errorCode: "invalid_argument",
|
|
235
|
+
retry: "RetryWillNotFix"
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
return { ok: true, body: parsed };
|
|
239
|
+
}
|
|
240
|
+
|
|
113
241
|
// src/services/deployment-validation.ts
|
|
114
242
|
var NO_SERVER_REASON = "the server reported no reason.";
|
|
115
243
|
var LOOKUP_TIMEOUT_MS = 15000;
|
|
@@ -341,6 +469,7 @@ async function readOutcomeByKeyAsync(api, deploymentKey) {
|
|
|
341
469
|
}
|
|
342
470
|
async function pollPipelineDeploymentAsync(api, auth, options) {
|
|
343
471
|
let observedDeploymentKey;
|
|
472
|
+
const progress = createDeploymentProgress(`${options.logPrefix} '${options.deploymentName}'`);
|
|
344
473
|
return pollUntil({
|
|
345
474
|
fn: async () => {
|
|
346
475
|
try {
|
|
@@ -376,6 +505,7 @@ async function pollPipelineDeploymentAsync(api, auth, options) {
|
|
|
376
505
|
},
|
|
377
506
|
until: (result) => PIPELINE_TERMINAL_STATUSES.has(result.status),
|
|
378
507
|
getStatus: (result) => result.status,
|
|
508
|
+
onPoll: (result, elapsedMs) => progress(pipelineProgressStatus(result), elapsedMs),
|
|
379
509
|
label: `deployment ${options.pipelineDeploymentId}`,
|
|
380
510
|
logPrefix: options.logPrefix,
|
|
381
511
|
timeoutMs: options.timeoutMs,
|
|
@@ -473,6 +603,6 @@ async function runInstallToOutcomeAsync(request) {
|
|
|
473
603
|
};
|
|
474
604
|
}
|
|
475
605
|
|
|
476
|
-
export { activateDeployment, NO_SERVER_REASON, describeValidationFailureAsync, describeDeploymentFailureAsync, listPermanentDeletionResourcesAsync, ACKNOWLEDGE_PERMANENT_DELETION_FLAG, finiteOr, runInstallToOutcomeAsync };
|
|
606
|
+
export { deploymentProgressStatus, createDeploymentProgress, activateDeployment, buildDeploymentLinks, readDeploymentLinksAsync, readDeployConfigFileAsync, NO_SERVER_REASON, describeValidationFailureAsync, describeDeploymentFailureAsync, listPermanentDeletionResourcesAsync, ACKNOWLEDGE_PERMANENT_DELETION_FLAG, finiteOr, runInstallToOutcomeAsync };
|
|
477
607
|
|
|
478
|
-
//# debugId=
|
|
608
|
+
//# debugId=9E79325C9FAA146064756E2164756E21
|
package/dist/packager-tool.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerPackagerFactories2
|
|
3
|
-
} from "./packager-tool-
|
|
4
|
-
import"./packager-tool-
|
|
3
|
+
} from "./packager-tool-p1xfsv6c.js";
|
|
4
|
+
import"./packager-tool-devc4w73.js";
|
|
5
5
|
import"./packager-tool-rj2d1g0w.js";
|
|
6
6
|
export {
|
|
7
7
|
registerPackagerFactories2 as registerPackagerFactories
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
projectSubTypesFrom2,
|
|
3
|
+
projectBindingsFrom2,
|
|
4
|
+
prepareSolutionResources2
|
|
5
|
+
} from "./packager-tool-s9tyw75r.js";
|
|
6
|
+
import"./packager-tool-ncgpx1ce.js";
|
|
7
|
+
import"./packager-tool-0gyqtxvs.js";
|
|
8
|
+
import"./packager-tool-qzcd5c9s.js";
|
|
9
|
+
import"./packager-tool-p1xfsv6c.js";
|
|
10
|
+
import"./packager-tool-tt9v40x6.js";
|
|
11
|
+
import"./packager-tool-devc4w73.js";
|
|
12
|
+
import"./packager-tool-qhht1tc9.js";
|
|
13
|
+
import"./packager-tool-n1zrk6zv.js";
|
|
14
|
+
import"./packager-tool-kmwjscby.js";
|
|
15
|
+
import"./packager-tool-jtvhkavz.js";
|
|
16
|
+
import"./packager-tool-xbfr6y2x.js";
|
|
17
|
+
import"./packager-tool-gb3dq79g.js";
|
|
18
|
+
import"./packager-tool-1db1wqdy.js";
|
|
19
|
+
import"./packager-tool-rj2d1g0w.js";
|
|
20
|
+
export {
|
|
21
|
+
prepareSolutionResources2 as prepareSolutionResources,
|
|
22
|
+
projectBindingsFrom2 as projectBindingsFrom,
|
|
23
|
+
projectSubTypesFrom2 as projectSubTypesFrom
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
//# debugId=2E02F1519E66639C64756E2164756E21
|