@uipath/case-tool 1.206.0-preview.303 → 1.207.0-preview.305
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 +7 -90
- package/dist/THIRD-PARTY-NOTICES.md +162 -7
- package/dist/{authoring-wt5ngnjb.js → authoring-qqev46bh.js} +233 -63
- package/dist/{bindings-v2-x100hvcy.js → bindings-v2-wjgg92tj.js} +4 -4
- package/dist/{browser-strategy-627rrg7z.js → browser-strategy-qc6htsnf.js} +1 -1
- package/dist/{business-rule-export-pggs7x01.js → business-rule-export-0pbc3ysq.js} +2 -2
- package/dist/{carry-forward-gxsadrqb.js → carry-forward-tj5yrqf6.js} +6 -6
- package/dist/{case-api-a6v5beat.js → case-api-bfwmvkb8.js} +24 -28
- package/dist/{case-bindings-service-9zemt0r2.js → case-bindings-service-5r7c70kz.js} +5 -5
- package/dist/case-catalog-h4fjn6q3.js +304 -0
- package/dist/{case-debug-solution-projects-c300019s.js → case-debug-solution-projects-5tr4pwbs.js} +2 -2
- package/dist/{case-debug-studio-web-service-b6xe8es1.js → case-debug-studio-web-service-7smzvq4c.js} +10 -9
- package/dist/{case-described-io-service-8dw21x2y.js → case-described-io-service-ddsvkz8w.js} +5 -5
- package/dist/{case-event-trigger-bindings-pmad4dev.js → case-event-trigger-bindings-8nd78j4e.js} +5 -5
- package/dist/{case-format-service-xjvnx3jd.js → case-format-service-4mzszgfb.js} +2 -2
- package/dist/case-pack-service-bp7sh20v.js +297 -0
- package/dist/{case-splice-service-8deak994.js → case-splice-service-tpp2syvn.js} +7 -7
- package/dist/{case-validate-service-p324kcry.js → case-validate-service-fxvq4qx7.js} +146 -38
- package/dist/{connector-enrichment-service-9wnew5a0.js → connector-enrichment-service-x0w721wj.js} +26 -25
- package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
- package/dist/{connector-lookup-service-v8r2htmg.js → connector-lookup-service-51pca3bf.js} +8 -8
- package/dist/{connector-task-shape-bgywpbqc.js → connector-task-shape-s2zny4gf.js} +3 -3
- package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
- package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-xrrajtht.js} +1277 -10
- package/dist/{debug-service-tm92ws5e.js → debug-service-hf2wb4tw.js} +9 -4
- package/dist/{en-LAVDF7IQ-yzy20n6d.js → en-5JIPZTS5-c68n8taw.js} +4 -2
- package/dist/{en-X6T4SP2Y-xm47mf18.js → en-ETY46SDS-far9tmsf.js} +66 -2
- package/dist/{enrichment-service-hzsn1aqp.js → enrichment-service-7f4sdff5.js} +17 -17
- package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
- package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
- package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -10
- package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
- package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-vzfmygd7.js} +1277 -10
- package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
- package/dist/{index-n1ndwwsz.js → index-2j5tfjwv.js} +129 -76
- package/dist/{index-kc1h1yf6.js → index-ezxmyhan.js} +4 -4
- package/dist/{index-j2gw61z0.js → index-gb75pv5a.js} +111 -65
- package/dist/index-prn518fr.js +36 -0
- package/dist/{index-nj3axvya.js → index-rk82650j.js} +7 -5
- package/dist/{index-pg9wmyrf.js → index-t6fnts8a.js} +2 -2
- package/dist/index-wkmh1h6w.js +26 -0
- package/dist/{index-21kns9qg.js → index-y7v9rkq9.js} +1 -1
- package/dist/index.js +13 -11
- package/dist/init-entry-points-52kvvbg9.js +15 -0
- package/dist/input-reader-zr71xcm9.js +13 -0
- package/dist/integration-service-fetcher-bpbz1gcx.js +68 -0
- package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
- package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
- package/dist/{known-types-gak9by1w.js → known-types-a5d0evdm.js} +2 -2
- package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
- package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
- package/dist/library-option-pbvkt66g.js +13 -0
- package/dist/{localSolutionDiscovery-9pj8mzye.js → localSolutionDiscovery-5sqz9dkr.js} +5 -5
- package/dist/manifest-rhee8kem.js +32 -0
- package/dist/{node-strategy-2mqzg36t.js → node-strategy-aaf2qe6c.js} +2 -2
- package/dist/{node-sync-service-7n5960qy.js → node-sync-service-q1a37d6n.js} +21 -15
- package/dist/{out-target-gtg3we44.js → out-target-02x6x6nk.js} +5 -5
- package/dist/{packager-tool-h2ar8xf8.js → packager-tool-00ck60cc.js} +25 -24
- package/dist/{packager-tool-rfdkx9c9.js → packager-tool-00qmds4s.js} +254 -69
- package/dist/{packager-tool-388vyja1.js → packager-tool-0gmnk7sb.js} +2 -2
- package/dist/{packager-tool-fcektt1g.js → packager-tool-0nbcqyvp.js} +10 -9
- package/dist/{packager-tool-anvg0etj.js → packager-tool-178xtejt.js} +191 -154
- package/dist/{packager-tool-j69tzg52.js → packager-tool-1dsedy7x.js} +59 -34
- package/dist/packager-tool-1yew22sn.js +9 -0
- package/dist/{packager-tool-1hpd2gmh.js → packager-tool-225b9qhq.js} +1 -1
- package/dist/{packager-tool-z4phaas7.js → packager-tool-2x40ye7a.js} +21 -7
- package/dist/{packager-tool-p0rdmmvk.js → packager-tool-2xemp3b1.js} +2 -2
- package/dist/packager-tool-34ttsx9q.js +18 -0
- package/dist/{packager-tool-3zy717ga.js → packager-tool-36vkdb3h.js} +2 -2
- package/dist/{packager-tool-7hcpmn4g.js → packager-tool-380ac64s.js} +61 -11
- package/dist/{packager-tool-cqkbf2fg.js → packager-tool-3hzsw5r7.js} +906 -41
- package/dist/packager-tool-3k5j706w.js +73 -0
- package/dist/{packager-tool-scy94jyb.js → packager-tool-4seehsme.js} +2 -72
- package/dist/{packager-tool-es77jvky.js → packager-tool-4w7nzx18.js} +360 -44
- package/dist/{packager-tool-4avchhz8.js → packager-tool-57970zfm.js} +12 -7
- package/dist/{packager-tool-bjt8b2nz.js → packager-tool-5s476jdt.js} +13 -13
- package/dist/{packager-tool-0xj79bbd.js → packager-tool-8kcwawyg.js} +13 -4
- package/dist/{packager-tool-wy3a65rx.js → packager-tool-bw4fsdq4.js} +27 -13
- package/dist/{packager-tool-dn9d4ywm.js → packager-tool-c0pavv0s.js} +66 -10
- package/dist/packager-tool-c9h0rwgv.js +31 -0
- package/dist/{packager-tool-t8qx6hvn.js → packager-tool-dv2vtyg0.js} +4 -4
- package/dist/{packager-tool-3r23qsca.js → packager-tool-ef43cy32.js} +213 -231
- package/dist/{packager-tool-m4kp6a7j.js → packager-tool-ej14cxen.js} +22 -22
- package/dist/{packager-tool-5w0gjcck.js → packager-tool-engs9gvj.js} +1 -1
- package/dist/{packager-tool-stdwmgvd.js → packager-tool-exrjwmew.js} +202 -83
- package/dist/{task-type-declaration-yhczvj05.js → packager-tool-f9n5mk1c.js} +8 -12
- package/dist/{packager-tool-b2q8m9pq.js → packager-tool-fspmvh6g.js} +5 -4
- package/dist/packager-tool-geh2qybm.js +179 -0
- package/dist/{packager-tool-17b466mr.js → packager-tool-hrd44w8g.js} +7561 -6408
- package/dist/{packager-tool-snesn0bt.js → packager-tool-j1etnthk.js} +19 -14
- package/dist/{packager-tool-k871wgpe.js → packager-tool-j53d4vv1.js} +18 -4
- package/dist/{packager-tool-6ewsbrnb.js → packager-tool-j8mnpsv8.js} +329 -149
- package/dist/{packager-tool-7x1tmb8a.js → packager-tool-jydreskq.js} +1 -1
- package/dist/{packager-tool-r5pha7xq.js → packager-tool-k08k9g2y.js} +9 -9
- package/dist/{packager-tool-bg3tdpva.js → packager-tool-kh9gs4d5.js} +4 -2
- package/dist/{packager-tool-8467kcz9.js → packager-tool-m7s4n455.js} +120 -13
- package/dist/{packager-tool-q26hncjr.js → packager-tool-n3r5apbb.js} +4 -2
- package/dist/packager-tool-n6h4bz4d.js +22 -0
- package/dist/{packager-tool-ad8v11jd.js → packager-tool-p4c1g2sj.js} +1032 -819
- package/dist/{packager-tool-z070caqq.js → packager-tool-p64w2wrt.js} +30 -8
- package/dist/{packager-tool-xd1wbvay.js → packager-tool-pq61r2f1.js} +1 -1
- package/dist/{packager-tool-65vr263d.js → packager-tool-qzyb1eac.js} +1 -1
- package/dist/{packager-tool-5dptce1y.js → packager-tool-rzxnm9yj.js} +2 -2
- package/dist/{init-entry-points-5xzn81bb.js → packager-tool-t6xwkhht.js} +12 -10
- package/dist/packager-tool-vmfd007q.js +27 -0
- package/dist/packager-tool-wvf6b31h.js +50 -0
- package/dist/{packager-tool-cdvrca04.js → packager-tool-x9z4krtr.js} +1036 -259
- package/dist/{packager-tool-z1fw9a8v.js → packager-tool-y69796fy.js} +19 -11
- package/dist/{packager-tool-jkwpw95j.js → packager-tool-z13dp55w.js} +3393 -3092
- package/dist/{packager-tool-9m7jbv7t.js → packager-tool-zbfwp75m.js} +4 -4
- package/dist/{packager-tool-pq9xv4vq.js → packager-tool-zte9svtn.js} +11 -4
- package/dist/packager-tool.js +2 -2
- package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-2hcb65bn.js} +39 -6
- package/dist/{project-artifacts-pfcn65cg.js → project-artifacts-77yctm8b.js} +1 -1
- package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
- package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
- package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
- package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
- package/dist/{resolved-check-dz8eqrf6.js → resolved-check-kwgy875v.js} +1 -1
- package/dist/{resourcesSyncService-y5r4k43w.js → resourcesSyncService-gegbd8b8.js} +49 -26
- package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-9k2jjk88.js} +1271 -10
- package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
- package/dist/{rule-type-declaration-ze0saj5r.js → rule-type-declaration-a0fk7fe7.js} +12 -11
- package/dist/{sdd-convert-service-m8e615a1.js → sdd-convert-service-2ag3xjpj.js} +120 -621
- package/dist/{sdd-lookup-fwj6x364.js → sdd-lookup-wgm5ctnd.js} +2 -2
- package/dist/{sdd-resolve-service-dvg387wx.js → sdd-resolve-service-epygyb0n.js} +34 -6
- package/dist/{sdd-resolve-siblings-xsm2ktkq.js → sdd-resolve-siblings-qz7gwws5.js} +4 -4
- package/dist/solution-auth-yb1twb9d.js +11 -0
- package/dist/{solution-discovery-gfdqhgt2.js → solution-discovery-t0nkzpm3.js} +4 -4
- package/dist/{strict-case-rules-045kbjvv.js → strict-case-rules-x1sytx3e.js} +91 -46
- package/dist/{strict-entry-points-wd85a81g.js → strict-entry-points-anxeg692.js} +6 -6
- package/dist/strict-sdd-audit-z1bg2zr0.js +28 -0
- package/dist/taggable-variables-gc58xb0s.js +6094 -0
- package/dist/task-type-declaration-b0ejzhc6.js +15 -0
- package/dist/tool.js +13 -11
- package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -10
- package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
- package/dist/{trigger-enrichment-service-dzkht78s.js → trigger-enrichment-service-bsj58ppa.js} +33 -32
- package/dist/{trigger-entry-point-id-4j9rk3kp.js → trigger-entry-point-id-hre2ewts.js} +1 -1
- package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
- package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -10
- package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
- package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -11
- package/package.json +2 -2
- package/dist/case-pack-service-adhg30nq.js +0 -167
- package/dist/index-garh9kcd.js +0 -35
- package/dist/input-reader-pjt4a914.js +0 -10
- package/dist/packager-tool-v11fx4dk.js +0 -25
- package/dist/solution-auth-a1p22hq1.js +0 -11
- package/dist/strict-sdd-audit-6es2j6fs.js +0 -26
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem2
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-p64w2wrt.js";
|
|
4
4
|
import {
|
|
5
5
|
__toESM,
|
|
6
6
|
__commonJS,
|
|
@@ -2123,13 +2123,15 @@ var ProjectDimensions = {
|
|
|
2123
2123
|
SolutionKey: "SolutionKey",
|
|
2124
2124
|
SolutionProjectKey: "SolutionProjectKey",
|
|
2125
2125
|
SolutionIdentityStatus: "SolutionIdentityStatus",
|
|
2126
|
-
PreviousSolutionKey: "PreviousSolutionKey"
|
|
2126
|
+
PreviousSolutionKey: "PreviousSolutionKey",
|
|
2127
|
+
PreviousProjectKey: "PreviousProjectKey"
|
|
2127
2128
|
};
|
|
2128
2129
|
var GUID_KEY_DIMENSIONS = new Set([
|
|
2129
2130
|
ProjectDimensions.ProjectKey,
|
|
2130
2131
|
ProjectDimensions.SolutionKey,
|
|
2131
2132
|
ProjectDimensions.SolutionProjectKey,
|
|
2132
|
-
ProjectDimensions.PreviousSolutionKey
|
|
2133
|
+
ProjectDimensions.PreviousSolutionKey,
|
|
2134
|
+
ProjectDimensions.PreviousProjectKey
|
|
2133
2135
|
]);
|
|
2134
2136
|
var ShipDimensions = {
|
|
2135
2137
|
ShipKind: "ShipKind",
|
|
@@ -2283,9 +2285,7 @@ async function withinProjectIdentityBudget(work, onTimeout) {
|
|
|
2283
2285
|
}
|
|
2284
2286
|
}
|
|
2285
2287
|
|
|
2286
|
-
// ../common/src/
|
|
2287
|
-
var PSEUDONYM_DOMAIN = "uipath-cli/telemetry/pseudonym/v1:";
|
|
2288
|
-
var PSEUDONYM_HEX_LENGTH = 32;
|
|
2288
|
+
// ../common/src/sha256.ts
|
|
2289
2289
|
var SHA256_K = new Uint32Array([
|
|
2290
2290
|
1116352408,
|
|
2291
2291
|
1899447441,
|
|
@@ -2365,7 +2365,7 @@ var SHA256_INITIAL_STATE = new Uint32Array([
|
|
|
2365
2365
|
function rotr(value, bits) {
|
|
2366
2366
|
return (value >>> bits | value << 32 - bits) >>> 0;
|
|
2367
2367
|
}
|
|
2368
|
-
function
|
|
2368
|
+
function sha256Words(input) {
|
|
2369
2369
|
const bytes = new TextEncoder().encode(input);
|
|
2370
2370
|
const paddedLength = bytes.length + 9 + 63 >> 6 << 6;
|
|
2371
2371
|
const buffer = new Uint8Array(paddedLength);
|
|
@@ -2421,12 +2421,19 @@ function sha256Hex(input) {
|
|
|
2421
2421
|
state[6] = state[6] + g >>> 0;
|
|
2422
2422
|
state[7] = state[7] + h >>> 0;
|
|
2423
2423
|
}
|
|
2424
|
+
return state;
|
|
2425
|
+
}
|
|
2426
|
+
function sha256Hex(input) {
|
|
2424
2427
|
let hex = "";
|
|
2425
|
-
for (const word of
|
|
2428
|
+
for (const word of sha256Words(input)) {
|
|
2426
2429
|
hex += word.toString(16).padStart(8, "0");
|
|
2427
2430
|
}
|
|
2428
2431
|
return hex;
|
|
2429
2432
|
}
|
|
2433
|
+
|
|
2434
|
+
// ../common/src/telemetry/pseudonymize.ts
|
|
2435
|
+
var PSEUDONYM_DOMAIN = "uipath-cli/telemetry/pseudonym/v1:";
|
|
2436
|
+
var PSEUDONYM_HEX_LENGTH = 32;
|
|
2430
2437
|
function resolveSha256Hex() {
|
|
2431
2438
|
try {
|
|
2432
2439
|
const nodeCrypto = __require("node:crypto");
|
|
@@ -2822,13 +2829,25 @@ function settlePromiseLike(thenable) {
|
|
|
2822
2829
|
return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error) => [toError(error), undefined]);
|
|
2823
2830
|
}
|
|
2824
2831
|
|
|
2832
|
+
// ../common/src/result-types.ts
|
|
2833
|
+
var RESULTS = {
|
|
2834
|
+
Success: "Success",
|
|
2835
|
+
Failure: "Failure",
|
|
2836
|
+
ConfigError: "ConfigError",
|
|
2837
|
+
AuthenticationError: "AuthenticationError",
|
|
2838
|
+
ValidationError: "ValidationError",
|
|
2839
|
+
TimeoutError: "TimeoutError"
|
|
2840
|
+
};
|
|
2841
|
+
|
|
2825
2842
|
// ../common/src/error-codes.ts
|
|
2826
2843
|
var CLI_ERROR_CODES = [
|
|
2827
2844
|
"invalid_argument",
|
|
2845
|
+
"confirmation_required",
|
|
2828
2846
|
"authentication_required",
|
|
2829
2847
|
"permission_denied",
|
|
2830
2848
|
"local_permission_denied",
|
|
2831
2849
|
"not_found",
|
|
2850
|
+
"not_enabled",
|
|
2832
2851
|
"rate_limited",
|
|
2833
2852
|
"network_error",
|
|
2834
2853
|
"timeout",
|
|
@@ -2867,6 +2886,12 @@ function carriedRetry(error) {
|
|
|
2867
2886
|
const retry = error.retry;
|
|
2868
2887
|
return isRetryHint(retry) ? retry : undefined;
|
|
2869
2888
|
}
|
|
2889
|
+
function carriedResult(error) {
|
|
2890
|
+
if (!error || typeof error !== "object")
|
|
2891
|
+
return;
|
|
2892
|
+
const result = error.result;
|
|
2893
|
+
return typeof result === "string" && result !== RESULTS.Success && Object.values(RESULTS).includes(result) ? result : undefined;
|
|
2894
|
+
}
|
|
2870
2895
|
function defaultRetryForErrorCode(errorCode) {
|
|
2871
2896
|
switch (errorCode) {
|
|
2872
2897
|
case "network_error":
|
|
@@ -3014,6 +3039,12 @@ function localPermissionInstructions(code, path) {
|
|
|
3014
3039
|
const remedy = onWindows ? "Re-run from an elevated terminal, close any program holding " + "the file open, or grant your user access to the path." : "Grant this user (or the sandbox the command runs in) access " + "to the path, or run the command outside the sandbox.";
|
|
3015
3040
|
return `The operating system denied access to ${target} (${code}). This is ` + "a local permission problem, not a UiPath service error — retrying " + `without a permission change will not help. ${remedy}`;
|
|
3016
3041
|
}
|
|
3042
|
+
function carriedInstructions(error) {
|
|
3043
|
+
if (!error || typeof error !== "object")
|
|
3044
|
+
return;
|
|
3045
|
+
const e = error;
|
|
3046
|
+
return typeof e.instructions === "string" ? e.instructions : undefined;
|
|
3047
|
+
}
|
|
3017
3048
|
function describeConnectivityError(error) {
|
|
3018
3049
|
for (const cur of walkErrorGraph(error)) {
|
|
3019
3050
|
const code = typeof cur.code === "string" ? cur.code : undefined;
|
|
@@ -3268,6 +3299,8 @@ async function extractErrorDetails(error, options) {
|
|
|
3268
3299
|
}
|
|
3269
3300
|
if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
|
|
3270
3301
|
context.errorCode = parsedBody.errorCode;
|
|
3302
|
+
} else if (typeof parsedBody?.errorCode === "number") {
|
|
3303
|
+
context.errorCode = String(parsedBody.errorCode);
|
|
3271
3304
|
} else if (parsedBody?.code && typeof parsedBody.code === "string") {
|
|
3272
3305
|
context.errorCode = parsedBody.code;
|
|
3273
3306
|
}
|
|
@@ -3329,16 +3362,6 @@ async function extractErrorMessage(error, options) {
|
|
|
3329
3362
|
return message;
|
|
3330
3363
|
}
|
|
3331
3364
|
|
|
3332
|
-
// ../common/src/result-types.ts
|
|
3333
|
-
var RESULTS = {
|
|
3334
|
-
Success: "Success",
|
|
3335
|
-
Failure: "Failure",
|
|
3336
|
-
ConfigError: "ConfigError",
|
|
3337
|
-
AuthenticationError: "AuthenticationError",
|
|
3338
|
-
ValidationError: "ValidationError",
|
|
3339
|
-
TimeoutError: "TimeoutError"
|
|
3340
|
-
};
|
|
3341
|
-
|
|
3342
3365
|
// ../../node_modules/commander/index.js
|
|
3343
3366
|
var exports_commander = {};
|
|
3344
3367
|
__exportCjs(exports_commander, {
|
|
@@ -3368,7 +3391,7 @@ __exportCjs(exports_commander, {
|
|
|
3368
3391
|
});
|
|
3369
3392
|
var { Argument } = require_argument();
|
|
3370
3393
|
var { Command: Command2 } = require_command();
|
|
3371
|
-
var { CommanderError, InvalidArgumentError
|
|
3394
|
+
var { CommanderError, InvalidArgumentError } = require_error();
|
|
3372
3395
|
var { Help } = require_help();
|
|
3373
3396
|
var { Option: Option2 } = require_option();
|
|
3374
3397
|
var $program = new Command2;
|
|
@@ -3380,8 +3403,8 @@ var $Option = Option2;
|
|
|
3380
3403
|
var $Argument = Argument;
|
|
3381
3404
|
var $Help = Help;
|
|
3382
3405
|
var $CommanderError = CommanderError;
|
|
3383
|
-
var $InvalidArgumentError =
|
|
3384
|
-
var $InvalidOptionArgumentError =
|
|
3406
|
+
var $InvalidArgumentError = InvalidArgumentError;
|
|
3407
|
+
var $InvalidOptionArgumentError = InvalidArgumentError;
|
|
3385
3408
|
|
|
3386
3409
|
// ../../node_modules/commander/esm.mjs
|
|
3387
3410
|
var {
|
|
@@ -3390,7 +3413,7 @@ var {
|
|
|
3390
3413
|
createArgument,
|
|
3391
3414
|
createOption,
|
|
3392
3415
|
CommanderError: CommanderError2,
|
|
3393
|
-
InvalidArgumentError,
|
|
3416
|
+
InvalidArgumentError: InvalidArgumentError2,
|
|
3394
3417
|
InvalidOptionArgumentError,
|
|
3395
3418
|
Command,
|
|
3396
3419
|
Argument: Argument2,
|
|
@@ -3753,7 +3776,10 @@ var AUTH_ERROR_CODES = new Set([
|
|
|
3753
3776
|
var LOCAL_PERMISSION_CLI_ERROR_CODES = new Set([
|
|
3754
3777
|
"local_permission_denied"
|
|
3755
3778
|
]);
|
|
3756
|
-
var VALIDATION_ERROR_CODES = new Set([
|
|
3779
|
+
var VALIDATION_ERROR_CODES = new Set([
|
|
3780
|
+
"invalid_argument",
|
|
3781
|
+
"confirmation_required"
|
|
3782
|
+
]);
|
|
3757
3783
|
var NETWORK_HTTP_ERROR_CODES = new Set([
|
|
3758
3784
|
"network_error",
|
|
3759
3785
|
"rate_limited",
|
|
@@ -3979,6 +4005,109 @@ var CommonTelemetryEvents = {
|
|
|
3979
4005
|
ShipSucceeded: "Cli.ShipSucceeded"
|
|
3980
4006
|
};
|
|
3981
4007
|
|
|
4008
|
+
// ../common/src/telemetry/global-telemetry-properties.ts
|
|
4009
|
+
var telemetryPropsSlot = singleton("TelemetryDefaultProps");
|
|
4010
|
+
function getGlobalTelemetryProperties() {
|
|
4011
|
+
return telemetryPropsSlot.get();
|
|
4012
|
+
}
|
|
4013
|
+
|
|
4014
|
+
// ../common/src/telemetry/trace-context.ts
|
|
4015
|
+
var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
|
|
4016
|
+
var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
|
|
4017
|
+
function getProcessEnv() {
|
|
4018
|
+
return globalThis.process?.env;
|
|
4019
|
+
}
|
|
4020
|
+
function parseInboundTraceparent(value) {
|
|
4021
|
+
if (!value) {
|
|
4022
|
+
return;
|
|
4023
|
+
}
|
|
4024
|
+
const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
|
|
4025
|
+
if (!match) {
|
|
4026
|
+
return;
|
|
4027
|
+
}
|
|
4028
|
+
const [, traceId, parentSpanId] = match;
|
|
4029
|
+
if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
|
|
4030
|
+
return;
|
|
4031
|
+
}
|
|
4032
|
+
return { traceId, parentSpanId };
|
|
4033
|
+
}
|
|
4034
|
+
function getInboundTraceContext() {
|
|
4035
|
+
return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
|
|
4036
|
+
}
|
|
4037
|
+
|
|
4038
|
+
// ../common/src/telemetry/session-id.ts
|
|
4039
|
+
var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
|
|
4040
|
+
var SESSION_ID_MAX_LENGTH = 64;
|
|
4041
|
+
var RANDOM_SESSION_ID_LENGTH = 32;
|
|
4042
|
+
var TELEMETRY_SESSION_SOURCE_PROPERTY = "SessionIdSource";
|
|
4043
|
+
var CONTROL_CHARACTERS = /\p{Cc}/gu;
|
|
4044
|
+
var INHERITED_SESSION_SOURCES = [
|
|
4045
|
+
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
4046
|
+
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
4047
|
+
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
4048
|
+
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
4049
|
+
{ envVar: "WT_SESSION", source: "terminal" }
|
|
4050
|
+
];
|
|
4051
|
+
var telemetrySessionSlot = singleton("TelemetrySession");
|
|
4052
|
+
var telemetryOperationIdSlot = singleton("TelemetryOperationId");
|
|
4053
|
+
function getProcessEnv2() {
|
|
4054
|
+
return globalThis.process?.env;
|
|
4055
|
+
}
|
|
4056
|
+
function normalizeSessionId(value) {
|
|
4057
|
+
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
4058
|
+
return;
|
|
4059
|
+
}
|
|
4060
|
+
const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
|
|
4061
|
+
return cleaned || undefined;
|
|
4062
|
+
}
|
|
4063
|
+
function getConfiguredTelemetrySessionId() {
|
|
4064
|
+
return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
|
|
4065
|
+
}
|
|
4066
|
+
function getInheritedSession(env) {
|
|
4067
|
+
for (const candidate of INHERITED_SESSION_SOURCES) {
|
|
4068
|
+
const handle = normalizeSessionId(env[candidate.envVar]);
|
|
4069
|
+
if (handle) {
|
|
4070
|
+
return { id: handle, source: candidate.source };
|
|
4071
|
+
}
|
|
4072
|
+
}
|
|
4073
|
+
return;
|
|
4074
|
+
}
|
|
4075
|
+
function generateRandomSession() {
|
|
4076
|
+
const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH / 2);
|
|
4077
|
+
crypto.getRandomValues(bytes);
|
|
4078
|
+
let hex = "";
|
|
4079
|
+
for (const byte of bytes) {
|
|
4080
|
+
hex += byte.toString(16).padStart(2, "0");
|
|
4081
|
+
}
|
|
4082
|
+
return { id: hex, source: "random" };
|
|
4083
|
+
}
|
|
4084
|
+
function resolveTelemetrySession() {
|
|
4085
|
+
const existing = telemetrySessionSlot.get();
|
|
4086
|
+
if (existing) {
|
|
4087
|
+
return existing;
|
|
4088
|
+
}
|
|
4089
|
+
const declaredHandle = getConfiguredTelemetrySessionId();
|
|
4090
|
+
const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession(getProcessEnv2() ?? {}) ?? generateRandomSession();
|
|
4091
|
+
telemetrySessionSlot.set(resolved);
|
|
4092
|
+
return resolved;
|
|
4093
|
+
}
|
|
4094
|
+
function getTelemetrySessionId() {
|
|
4095
|
+
return resolveTelemetrySession().id;
|
|
4096
|
+
}
|
|
4097
|
+
function getTelemetrySessionSource() {
|
|
4098
|
+
return resolveTelemetrySession().source;
|
|
4099
|
+
}
|
|
4100
|
+
function getTelemetryOperationId() {
|
|
4101
|
+
const existing = telemetryOperationIdSlot.get();
|
|
4102
|
+
if (existing) {
|
|
4103
|
+
return existing;
|
|
4104
|
+
}
|
|
4105
|
+
const inboundTraceId = getInboundTraceContext()?.traceId;
|
|
4106
|
+
const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
|
|
4107
|
+
telemetryOperationIdSlot.set(generated);
|
|
4108
|
+
return generated;
|
|
4109
|
+
}
|
|
4110
|
+
|
|
3982
4111
|
// ../common/src/registry.ts
|
|
3983
4112
|
import { execFileSync } from "node:child_process";
|
|
3984
4113
|
function readRegistryValue(keyPath, valueName) {
|
|
@@ -4200,108 +4329,6 @@ class NodeContextStorage {
|
|
|
4200
4329
|
return this.storage.getStore();
|
|
4201
4330
|
}
|
|
4202
4331
|
}
|
|
4203
|
-
// ../common/src/telemetry/trace-context.ts
|
|
4204
|
-
var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
|
|
4205
|
-
var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
|
|
4206
|
-
function getProcessEnv() {
|
|
4207
|
-
return globalThis.process?.env;
|
|
4208
|
-
}
|
|
4209
|
-
function parseInboundTraceparent(value) {
|
|
4210
|
-
if (!value) {
|
|
4211
|
-
return;
|
|
4212
|
-
}
|
|
4213
|
-
const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
|
|
4214
|
-
if (!match) {
|
|
4215
|
-
return;
|
|
4216
|
-
}
|
|
4217
|
-
const [, traceId, parentSpanId] = match;
|
|
4218
|
-
if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
|
|
4219
|
-
return;
|
|
4220
|
-
}
|
|
4221
|
-
return { traceId, parentSpanId };
|
|
4222
|
-
}
|
|
4223
|
-
function getInboundTraceContext() {
|
|
4224
|
-
return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
|
|
4225
|
-
}
|
|
4226
|
-
|
|
4227
|
-
// ../common/src/telemetry/session-id.ts
|
|
4228
|
-
var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
|
|
4229
|
-
var SESSION_ID_MAX_LENGTH = 64;
|
|
4230
|
-
var RANDOM_SESSION_ID_LENGTH = 32;
|
|
4231
|
-
var TELEMETRY_SESSION_SOURCE_PROPERTY = "SessionIdSource";
|
|
4232
|
-
var CONTROL_CHARACTERS = /\p{Cc}/gu;
|
|
4233
|
-
var INHERITED_SESSION_SOURCES = [
|
|
4234
|
-
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
4235
|
-
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
4236
|
-
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
4237
|
-
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
4238
|
-
{ envVar: "WT_SESSION", source: "terminal" }
|
|
4239
|
-
];
|
|
4240
|
-
var telemetrySessionSlot = singleton("TelemetrySession");
|
|
4241
|
-
var telemetryOperationIdSlot = singleton("TelemetryOperationId");
|
|
4242
|
-
function getProcessEnv2() {
|
|
4243
|
-
return globalThis.process?.env;
|
|
4244
|
-
}
|
|
4245
|
-
function normalizeSessionId(value) {
|
|
4246
|
-
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
4247
|
-
return;
|
|
4248
|
-
}
|
|
4249
|
-
const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
|
|
4250
|
-
return cleaned || undefined;
|
|
4251
|
-
}
|
|
4252
|
-
function getConfiguredTelemetrySessionId() {
|
|
4253
|
-
return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
|
|
4254
|
-
}
|
|
4255
|
-
function getInheritedSession(env) {
|
|
4256
|
-
for (const candidate of INHERITED_SESSION_SOURCES) {
|
|
4257
|
-
const handle = normalizeSessionId(env[candidate.envVar]);
|
|
4258
|
-
if (handle) {
|
|
4259
|
-
return { id: handle, source: candidate.source };
|
|
4260
|
-
}
|
|
4261
|
-
}
|
|
4262
|
-
return;
|
|
4263
|
-
}
|
|
4264
|
-
function generateRandomSession() {
|
|
4265
|
-
const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH / 2);
|
|
4266
|
-
crypto.getRandomValues(bytes);
|
|
4267
|
-
let hex = "";
|
|
4268
|
-
for (const byte of bytes) {
|
|
4269
|
-
hex += byte.toString(16).padStart(2, "0");
|
|
4270
|
-
}
|
|
4271
|
-
return { id: hex, source: "random" };
|
|
4272
|
-
}
|
|
4273
|
-
function resolveTelemetrySession() {
|
|
4274
|
-
const existing = telemetrySessionSlot.get();
|
|
4275
|
-
if (existing) {
|
|
4276
|
-
return existing;
|
|
4277
|
-
}
|
|
4278
|
-
const declaredHandle = getConfiguredTelemetrySessionId();
|
|
4279
|
-
const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession(getProcessEnv2() ?? {}) ?? generateRandomSession();
|
|
4280
|
-
telemetrySessionSlot.set(resolved);
|
|
4281
|
-
return resolved;
|
|
4282
|
-
}
|
|
4283
|
-
function getTelemetrySessionId() {
|
|
4284
|
-
return resolveTelemetrySession().id;
|
|
4285
|
-
}
|
|
4286
|
-
function getTelemetrySessionSource() {
|
|
4287
|
-
return resolveTelemetrySession().source;
|
|
4288
|
-
}
|
|
4289
|
-
function getTelemetryOperationId() {
|
|
4290
|
-
const existing = telemetryOperationIdSlot.get();
|
|
4291
|
-
if (existing) {
|
|
4292
|
-
return existing;
|
|
4293
|
-
}
|
|
4294
|
-
const inboundTraceId = getInboundTraceContext()?.traceId;
|
|
4295
|
-
const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
|
|
4296
|
-
telemetryOperationIdSlot.set(generated);
|
|
4297
|
-
return generated;
|
|
4298
|
-
}
|
|
4299
|
-
// ../common/src/telemetry/global-telemetry-properties.ts
|
|
4300
|
-
var telemetryPropsSlot = singleton("TelemetryDefaultProps");
|
|
4301
|
-
function getGlobalTelemetryProperties() {
|
|
4302
|
-
return telemetryPropsSlot.get();
|
|
4303
|
-
}
|
|
4304
|
-
|
|
4305
4332
|
// ../common/src/telemetry/span-clock.ts
|
|
4306
4333
|
function startSpanClock() {
|
|
4307
4334
|
const started = performance.now();
|
|
@@ -4515,6 +4542,7 @@ var MAX_SPOOL_AGE_MS = 72 * 60 * 60 * 1000;
|
|
|
4515
4542
|
// ../common/src/telemetry/telemetry-init.ts
|
|
4516
4543
|
var telemetryInstanceSlot = singleton("TelemetryService");
|
|
4517
4544
|
var DEFAULT_AI_CONNECTION_STRING = atob("SW5zdHJ1bWVudGF0aW9uS2V5PTliZDM3NDgyLTgxMGUtNDQyYS1hYWE2LWQzOGVmNjVjNjY3NDtJbmdlc3Rpb25FbmRwb2ludD1odHRwczovL3dlc3RldXJvcGUtNS5pbi5hcHBsaWNhdGlvbmluc2lnaHRzLmF6dXJlLmNvbS87TGl2ZUVuZHBvaW50PWh0dHBzOi8vd2VzdGV1cm9wZS5saXZlZGlhZ25vc3RpY3MubW9uaXRvci5henVyZS5jb20vO0FwcGxpY2F0aW9uSWQ9MzU2OTdlZjEtOGJkMC00ZjE5LWEyN2MtZDg3Y2NhYzY2ZDJj");
|
|
4545
|
+
var browserProviderSlot = singleton("BrowserAppInsightsTelemetryProvider");
|
|
4518
4546
|
function getGlobalTelemetryInstance() {
|
|
4519
4547
|
const existing = telemetryInstanceSlot.get();
|
|
4520
4548
|
if (existing && typeof existing === "object" && "trackEvent" in existing && typeof existing.trackEvent === "function") {
|
|
@@ -4734,7 +4762,7 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
|
|
|
4734
4762
|
const pagedRows = extractPagedRows(data.Data);
|
|
4735
4763
|
const items = pagedRows ?? (Array.isArray(data.Data) ? data.Data : [data.Data]);
|
|
4736
4764
|
items.forEach((item) => {
|
|
4737
|
-
const values = Object.values(item).map((v) => v ?? "").join("\t");
|
|
4765
|
+
const values = item === null || typeof item !== "object" ? String(item ?? "") : Object.values(item).map((v) => v ?? "").join("\t");
|
|
4738
4766
|
logFn(values);
|
|
4739
4767
|
});
|
|
4740
4768
|
} else {
|
|
@@ -4749,7 +4777,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
|
|
|
4749
4777
|
default: {
|
|
4750
4778
|
const hasData = "Data" in data && data.Data != null;
|
|
4751
4779
|
const pagedRows = hasData ? extractPagedRows(data.Data) : null;
|
|
4752
|
-
const
|
|
4780
|
+
const resolvedRows = pagedRows ? pagedRows : Array.isArray(data.Data) ? data.Data : null;
|
|
4781
|
+
const rows = resolvedRows && isPrimitiveArray(resolvedRows) ? resolvedRows.map((entry) => ({ Value: entry })) : resolvedRows;
|
|
4753
4782
|
if (hasData && !(rows !== null && rows.length === 0)) {
|
|
4754
4783
|
const logValue = data.Log;
|
|
4755
4784
|
if (rows !== null) {
|
|
@@ -4806,6 +4835,9 @@ function printTable(data, logFn, externalLogValue, tableRowStyle) {
|
|
|
4806
4835
|
function isPlainObjectArray(value) {
|
|
4807
4836
|
return Array.isArray(value) && value.length > 0 && value.every(isPlainRecord);
|
|
4808
4837
|
}
|
|
4838
|
+
function isPrimitiveArray(value) {
|
|
4839
|
+
return Array.isArray(value) && value.length > 0 && value.every((entry) => entry === null || typeof entry !== "object");
|
|
4840
|
+
}
|
|
4809
4841
|
function isNonEmptyPlainObject(value) {
|
|
4810
4842
|
return isPlainRecord(value) && Object.keys(value).length > 0;
|
|
4811
4843
|
}
|
|
@@ -5152,12 +5184,12 @@ class FilterEvaluationError extends Error {
|
|
|
5152
5184
|
instructions;
|
|
5153
5185
|
retry = "RetryWillNotFix";
|
|
5154
5186
|
result = RESULTS.ValidationError;
|
|
5155
|
-
constructor(filter, cause) {
|
|
5187
|
+
constructor(filter, cause, hint) {
|
|
5156
5188
|
const underlying = cause instanceof Error ? cause.message : String(cause);
|
|
5157
|
-
super(`Filter '${filter}' failed to evaluate: ${underlying}`);
|
|
5189
|
+
super(`Filter '${filter}' failed to evaluate: ${underlying}` + (hint ? ` ${hint.detail}` : ""));
|
|
5158
5190
|
this.name = "FilterEvaluationError";
|
|
5159
5191
|
this.filter = filter;
|
|
5160
|
-
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(@)'.";
|
|
5192
|
+
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(@)'.";
|
|
5161
5193
|
}
|
|
5162
5194
|
}
|
|
5163
5195
|
|
|
@@ -5279,6 +5311,93 @@ function nameList(names, cap = 12) {
|
|
|
5279
5311
|
const rest = names.length - shown.length;
|
|
5280
5312
|
return shown.join(", ") + (rest > 0 ? `, and ${rest} more` : "");
|
|
5281
5313
|
}
|
|
5314
|
+
function notFieldsOn(names, scope) {
|
|
5315
|
+
return `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
|
|
5316
|
+
}
|
|
5317
|
+
function failingFieldRead(ast, isList, fn, argIndex) {
|
|
5318
|
+
const [left, right, condition] = ast.children ?? [];
|
|
5319
|
+
let scopes = [];
|
|
5320
|
+
if (!isList) {
|
|
5321
|
+
scopes = [ast];
|
|
5322
|
+
} else if (ast.type === "FilterProjection" && left?.type === "Identity") {
|
|
5323
|
+
scopes = [condition, right];
|
|
5324
|
+
} else if (ast.type === "Projection" && (left?.type === "Identity" || left?.type === "Flatten" && left.children?.[0]?.type === "Identity")) {
|
|
5325
|
+
scopes = [right];
|
|
5326
|
+
}
|
|
5327
|
+
const reads = new Set;
|
|
5328
|
+
let tracked = 0;
|
|
5329
|
+
const visit = (node) => {
|
|
5330
|
+
if (!node)
|
|
5331
|
+
return;
|
|
5332
|
+
switch (node.type) {
|
|
5333
|
+
case "Function": {
|
|
5334
|
+
const arg = node.children?.[argIndex - 1];
|
|
5335
|
+
if (node.name === fn && arg?.type === "Field" && arg.name) {
|
|
5336
|
+
reads.add(arg.name);
|
|
5337
|
+
tracked++;
|
|
5338
|
+
}
|
|
5339
|
+
node.children?.forEach(visit);
|
|
5340
|
+
return;
|
|
5341
|
+
}
|
|
5342
|
+
case "AndExpression":
|
|
5343
|
+
case "OrExpression":
|
|
5344
|
+
case "NotExpression":
|
|
5345
|
+
case "Comparator":
|
|
5346
|
+
case "MultiSelectList":
|
|
5347
|
+
case "MultiSelectHash":
|
|
5348
|
+
node.children?.forEach(visit);
|
|
5349
|
+
return;
|
|
5350
|
+
case "KeyValuePair":
|
|
5351
|
+
visit(node.value);
|
|
5352
|
+
return;
|
|
5353
|
+
}
|
|
5354
|
+
};
|
|
5355
|
+
scopes.forEach(visit);
|
|
5356
|
+
const calls = (node) => {
|
|
5357
|
+
if (node === null || typeof node !== "object")
|
|
5358
|
+
return 0;
|
|
5359
|
+
const own = node.type === "Function" && node.name === fn ? 1 : 0;
|
|
5360
|
+
const next = node.type === "KeyValuePair" ? [node.value] : node.children ?? [];
|
|
5361
|
+
return own + next.reduce((sum, child) => sum + calls(child), 0);
|
|
5362
|
+
};
|
|
5363
|
+
return reads.size === 1 && tracked === calls(ast) ? [...reads][0] : undefined;
|
|
5364
|
+
}
|
|
5365
|
+
function fieldExpression(name) {
|
|
5366
|
+
return /^[A-Za-z_]\w*$/.test(name) ? name : JSON.stringify(name);
|
|
5367
|
+
}
|
|
5368
|
+
function evaluationHint(codec, filter, data, cause) {
|
|
5369
|
+
const underlying = cause instanceof Error ? cause.message : String(cause);
|
|
5370
|
+
const failure = /\b(\w+)\(\) expected argument (\d+) to be type (\S+) but received type null\b/.exec(underlying);
|
|
5371
|
+
if (!failure)
|
|
5372
|
+
return;
|
|
5373
|
+
const [, fn, position, expected] = failure;
|
|
5374
|
+
const name = failingFieldRead(codec.compile(filter), Array.isArray(data), fn, Number(position));
|
|
5375
|
+
if (name === undefined)
|
|
5376
|
+
return;
|
|
5377
|
+
const present = availableFields(data);
|
|
5378
|
+
if (present.length === 0)
|
|
5379
|
+
return;
|
|
5380
|
+
const scope = `${countRecords(data)} record(s)`;
|
|
5381
|
+
if (!present.includes(name)) {
|
|
5382
|
+
return {
|
|
5383
|
+
detail: `${notFieldsOn([name], scope)}. Available fields: ${nameList(present)}.`,
|
|
5384
|
+
instructions: "Use a field the records have; names are case-sensitive."
|
|
5385
|
+
};
|
|
5386
|
+
}
|
|
5387
|
+
const records = Array.isArray(data) ? data : [data];
|
|
5388
|
+
const unset = records.filter((r) => r?.[name] == null).length;
|
|
5389
|
+
const field = fieldExpression(name);
|
|
5390
|
+
let fallback;
|
|
5391
|
+
if (expected.split(",").includes("string")) {
|
|
5392
|
+
fallback = "''";
|
|
5393
|
+
} else if (expected.split(",").includes("array")) {
|
|
5394
|
+
fallback = "`[]`";
|
|
5395
|
+
}
|
|
5396
|
+
return {
|
|
5397
|
+
detail: `\`${name}\` is null or missing on ${unset} of the ${scope} it read.`,
|
|
5398
|
+
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.`
|
|
5399
|
+
};
|
|
5400
|
+
}
|
|
5282
5401
|
function buildFilterWarning(filter, data, outcome) {
|
|
5283
5402
|
const present = availableFields(data);
|
|
5284
5403
|
const refs = referencedFields(filter);
|
|
@@ -5286,7 +5405,7 @@ function buildFilterWarning(filter, data, outcome) {
|
|
|
5286
5405
|
const unchecked = refs.nested.filter((name) => !present.includes(name));
|
|
5287
5406
|
const count = countRecords(data);
|
|
5288
5407
|
const scope = `${count} record(s)`;
|
|
5289
|
-
const isNotAField = (names) =>
|
|
5408
|
+
const isNotAField = (names) => notFieldsOn(names, scope);
|
|
5290
5409
|
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" : "";
|
|
5291
5410
|
const withSoundness = (base) => soundness ? `${base}, and ${soundness}` : base;
|
|
5292
5411
|
let detail;
|
|
@@ -5337,7 +5456,8 @@ function applyFilter(data, filter, onWarning) {
|
|
|
5337
5456
|
try {
|
|
5338
5457
|
result = codec.search(data, filter);
|
|
5339
5458
|
} catch (err) {
|
|
5340
|
-
|
|
5459
|
+
const [, hint] = catchError2(() => evaluationHint(codec, filter, data, err));
|
|
5460
|
+
throw new FilterEvaluationError(filter, err, hint);
|
|
5341
5461
|
}
|
|
5342
5462
|
const inputCount = countRecords(data);
|
|
5343
5463
|
const warn = (outcome) => {
|
|
@@ -5605,19 +5725,63 @@ function quoteForShell(value) {
|
|
|
5605
5725
|
|
|
5606
5726
|
// ../common/src/stdin.ts
|
|
5607
5727
|
async function readStdin2() {
|
|
5728
|
+
return readPipedStdin();
|
|
5729
|
+
}
|
|
5730
|
+
function readPipedStdin(idleTimeoutMs) {
|
|
5608
5731
|
if (process.stdin.isTTY) {
|
|
5609
|
-
return null;
|
|
5732
|
+
return Promise.resolve(null);
|
|
5610
5733
|
}
|
|
5611
5734
|
return new Promise((resolve, reject) => {
|
|
5735
|
+
const stdin = process.stdin;
|
|
5612
5736
|
let data = "";
|
|
5613
|
-
|
|
5614
|
-
|
|
5737
|
+
let timer;
|
|
5738
|
+
const detach = () => {
|
|
5739
|
+
clearTimeout(timer);
|
|
5740
|
+
stdin.off("data", onData);
|
|
5741
|
+
stdin.off("end", onEnd);
|
|
5742
|
+
stdin.off("error", onError);
|
|
5743
|
+
};
|
|
5744
|
+
const release = () => {
|
|
5745
|
+
detach();
|
|
5746
|
+
stdin.pause();
|
|
5747
|
+
stdin.unref?.();
|
|
5748
|
+
};
|
|
5749
|
+
const armTimer = () => {
|
|
5750
|
+
clearTimeout(timer);
|
|
5751
|
+
if (idleTimeoutMs === undefined) {
|
|
5752
|
+
return;
|
|
5753
|
+
}
|
|
5754
|
+
timer = setTimeout(() => {
|
|
5755
|
+
release();
|
|
5756
|
+
if (!data.trim()) {
|
|
5757
|
+
resolve(null);
|
|
5758
|
+
return;
|
|
5759
|
+
}
|
|
5760
|
+
reject(new Error(`Timed out: stdin was idle for ${idleTimeoutMs} ms before end of input.`));
|
|
5761
|
+
}, idleTimeoutMs);
|
|
5762
|
+
};
|
|
5763
|
+
const onData = (chunk) => {
|
|
5615
5764
|
data += chunk;
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
|
|
5765
|
+
armTimer();
|
|
5766
|
+
};
|
|
5767
|
+
const onEnd = () => {
|
|
5768
|
+
detach();
|
|
5769
|
+
resolve(data.trim() || null);
|
|
5770
|
+
};
|
|
5771
|
+
const onError = (err) => {
|
|
5772
|
+
detach();
|
|
5773
|
+
reject(err);
|
|
5774
|
+
};
|
|
5775
|
+
armTimer();
|
|
5776
|
+
stdin.setEncoding("utf8");
|
|
5777
|
+
stdin.on("data", onData);
|
|
5778
|
+
stdin.on("end", onEnd);
|
|
5779
|
+
stdin.on("error", onError);
|
|
5619
5780
|
});
|
|
5620
5781
|
}
|
|
5782
|
+
async function readStdinWithTimeout(timeoutMs) {
|
|
5783
|
+
return readPipedStdin(timeoutMs);
|
|
5784
|
+
}
|
|
5621
5785
|
// ../common/src/auth-challenge.ts
|
|
5622
5786
|
var TOKEN_SHAPED = /\beyJ[A-Za-z0-9_-]{6,}\.[A-Za-z0-9_-]+(?:\.[A-Za-z0-9_-]*)?|\bBearer\s+[A-Za-z0-9._~+/=-]{8,}/gi;
|
|
5623
5787
|
function redactTokens(text) {
|
|
@@ -5715,6 +5879,17 @@ function instructionsFor(ctx, err) {
|
|
|
5715
5879
|
|
|
5716
5880
|
// ../common/src/classified-failure.ts
|
|
5717
5881
|
var MAX_QUOTED_BODY_CHARS = 200;
|
|
5882
|
+
async function classifiedFailure(message, error, options) {
|
|
5883
|
+
const details = await extractErrorDetails(error, options);
|
|
5884
|
+
return {
|
|
5885
|
+
Result: details.result,
|
|
5886
|
+
ErrorCode: details.errorCode,
|
|
5887
|
+
Message: message,
|
|
5888
|
+
Instructions: details.message,
|
|
5889
|
+
Retry: details.retry,
|
|
5890
|
+
...details.context ? { Context: details.context } : {}
|
|
5891
|
+
};
|
|
5892
|
+
}
|
|
5718
5893
|
async function authContextFailure(error, sessionInstructions) {
|
|
5719
5894
|
const details = await extractErrorDetails(error);
|
|
5720
5895
|
const missingIdentity = hasIdentityInstructionContext(error);
|
|
@@ -6426,7 +6601,7 @@ Command.prototype.trackedAction = function(context, fn, properties) {
|
|
|
6426
6601
|
logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
|
|
6427
6602
|
const typed = error;
|
|
6428
6603
|
const customInstructions = typeof typed.instructions === "string" ? typed.instructions : undefined;
|
|
6429
|
-
const customResult =
|
|
6604
|
+
const customResult = carriedResult(error);
|
|
6430
6605
|
const cancellationExitCode = typed.exitCode === 130 || isPromptCancellation(error) ? 130 : undefined;
|
|
6431
6606
|
const classified = cancellationExitCode === undefined ? await extractErrorDetails(error) : undefined;
|
|
6432
6607
|
const finalResult = customResult ?? classified?.result ?? RESULTS.Failure;
|
|
@@ -6704,11 +6879,6 @@ var RESERVED_KEYWORDS_LOWER = new Set([
|
|
|
6704
6879
|
"writeonly",
|
|
6705
6880
|
"xor"
|
|
6706
6881
|
]);
|
|
6707
|
-
// ../common/src/guid.ts
|
|
6708
|
-
var GUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
6709
|
-
function isGuid(value) {
|
|
6710
|
-
return GUID_REGEX.test(value);
|
|
6711
|
-
}
|
|
6712
6882
|
// ../common/src/host-global-options.ts
|
|
6713
6883
|
var HOST_GLOBAL_OPTIONS_WITH_VALUE = [
|
|
6714
6884
|
"--output",
|
|
@@ -6848,14 +7018,14 @@ function parseOffset(raw, _previous) {
|
|
|
6848
7018
|
function parseBoundedInt(raw, optionName, bounds) {
|
|
6849
7019
|
const normalized = raw.trim();
|
|
6850
7020
|
if (normalized === "") {
|
|
6851
|
-
throw new
|
|
7021
|
+
throw new InvalidArgumentError2(`${optionName} requires a value (got empty).`);
|
|
6852
7022
|
}
|
|
6853
7023
|
if (!/^-?\d+$/.test(normalized)) {
|
|
6854
|
-
throw new
|
|
7024
|
+
throw new InvalidArgumentError2(`${optionName} must be an integer, got '${normalized}'.`);
|
|
6855
7025
|
}
|
|
6856
7026
|
const n = parseInt(normalized, 10);
|
|
6857
7027
|
if (n < bounds.min || n > bounds.max) {
|
|
6858
|
-
throw new
|
|
7028
|
+
throw new InvalidArgumentError2(`${optionName} must be between ${bounds.min} and ${bounds.max}, got ${n}.`);
|
|
6859
7029
|
}
|
|
6860
7030
|
return n;
|
|
6861
7031
|
}
|
|
@@ -6893,6 +7063,16 @@ var FAILURE_STATUSES = new Set([
|
|
|
6893
7063
|
"canceled",
|
|
6894
7064
|
"stopped"
|
|
6895
7065
|
]);
|
|
7066
|
+
// ../common/src/relayed-output.ts
|
|
7067
|
+
var RELAYED_OUTPUT_SYMBOL = Symbol.for("@uipath/common/relayed-output");
|
|
7068
|
+
// ../common/src/report-failure.ts
|
|
7069
|
+
async function reportFailure(message, error, options = {}) {
|
|
7070
|
+
const failure = await classifiedFailure(message, error);
|
|
7071
|
+
OutputFormatter.error(options.instructions ? {
|
|
7072
|
+
...failure,
|
|
7073
|
+
Instructions: options.instructions(failure.Instructions, failure)
|
|
7074
|
+
} : failure);
|
|
7075
|
+
}
|
|
6896
7076
|
// ../common/src/screen-logger.ts
|
|
6897
7077
|
var ScreenLogger;
|
|
6898
7078
|
((ScreenLogger) => {
|
|
@@ -6989,6 +7169,6 @@ function unsupportedSolutionProjectType(projectType) {
|
|
|
6989
7169
|
var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
|
|
6990
7170
|
// ../common/src/tool-provider.ts
|
|
6991
7171
|
var factorySlot = singleton("PackagerFactoryProvider");
|
|
6992
|
-
export { catchError2, carriedErrorCode, httpStatusOf, classifyThrownError, extractErrorDetails, extractErrorMessage, redactTokens, parseAuthChallenge, instructionsFor,
|
|
7172
|
+
export { catchError2, RESULTS, carriedErrorCode, defaultRetryForErrorCode, httpStatusOf, carriedInstructions, classifyThrownError, extractErrorDetails, extractErrorMessage, redactTokens, parseAuthChallenge, instructionsFor, classifiedFailure, authContextFailure, summarizePlatformBody, Command, Option, getOutputSink, logger, EXIT_CODES, Pagination, pascalCaseDataKeys, OutputFormatter, tokenizeTail, processContext, UIPATH_HOME_DIR2, DEFAULT_PAGE_SIZE, hashContent, namedOrLegacy, legacySecondArg, usageError, addDeprecatedOptionAlias, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, registerPackageMetadataOptions, mapPackageMetadataOptions, reportFailure, ScreenLogger, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, quoteForShell, unsupportedSolutionProjectType, readStdin2, readStdinWithTimeout };
|
|
6993
7173
|
|
|
6994
|
-
//# debugId=
|
|
7174
|
+
//# debugId=859ECFE77EB0BB6264756E2164756E21
|