@uipath/maestro-tool 1.202.2 → 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/README.md +8 -0
- package/dist/THIRD-PARTY-NOTICES.md +83 -290
- package/dist/{authoring-818595dq.js → authoring-at68vr5g.js} +7 -5
- package/dist/{authoring-6r3wx3fa.js → authoring-sh284a0x.js} +3 -3
- package/dist/{authoring-61hqf5em.js → authoring-szfy0rh1.js} +5 -5
- package/dist/{binding-service-643e69bb.js → binding-service-8a05gy4k.js} +37 -29
- package/dist/{bpmn-action-type-validator-kx36sqhe.js → bpmn-action-type-validator-8kvyvvcf.js} +2 -2
- package/dist/bpmn-binding-resolver-5scq28mc.js +145 -0
- package/dist/{bpmn-branch-y1m9f10n.js → bpmn-branch-t12a7jvf.js} +50 -44
- package/dist/bpmn-format-service-ay6jd9he.js +69 -0
- package/dist/{bpmn-refresh-service-ew545y06.js → bpmn-refresh-service-ak1ctkwg.js} +4 -4
- package/dist/{bpmn-update-metadata-service-jhahhjab.js → bpmn-update-metadata-service-hqe4edze.js} +6 -5
- package/dist/{bpmn-validate-service-6z2dj8ac.js → bpmn-validate-service-48sfy3a2.js} +3 -3
- package/dist/{case-api-4mstfkzf.js → case-api-e3fmq685.js} +6 -6
- package/dist/case-bindings-service-nswc6v0v.js +240 -0
- package/dist/case-debug-studio-web-service-58gtqznh.js +135 -0
- package/dist/case-format-service-6s5e1ckk.js +84 -0
- package/dist/{case-pack-service-v7wtb0qt.js → case-pack-service-sg435he1.js} +62 -11
- package/dist/{case-validate-service-bnpaf0zt.js → case-validate-service-7s69shsa.js} +1424 -42
- package/dist/{connector-enrichment-service-scrqnke3.js → connector-enrichment-service-9rqr3esj.js} +27 -26
- package/dist/{connector-lookup-service-hnk08t3m.js → connector-lookup-service-pencasp9.js} +5 -5
- package/dist/{connector-service-581bhxaj.js → connector-service-k4cgcv2b.js} +224 -56
- package/dist/{connector-task-spec-y2tcthz5.js → connector-task-spec-13ex0x0m.js} +27 -26
- package/dist/{conversion-FQTRFHRX-03xh3xbp.js → conversion-FQTRFHRX-0y9br7gw.js} +6 -5
- package/dist/de-FGHEJRCI-gn4cf5gh.js +2697 -0
- package/dist/de-MUJPA4EB-dpg7t2rw.js +173 -0
- package/dist/{debug-conversation-trigger-nj04k7s2.js → debug-conversation-trigger-wgzjaasj.js} +17 -14
- package/dist/{debug-http-client-c4teyma3.js → debug-http-client-7dvbwp96.js} +2 -2
- package/dist/{debug-service-m5jdyz3q.js → debug-service-8cwxhgww.js} +3 -3
- package/dist/{edge-service-vv2yfsn4.js → edge-service-szpsaezp.js} +17 -14
- package/dist/{index-yqfqxh2r.js → embedded-file-reader-0sjt4nkj.js} +96 -16641
- package/dist/{en-TBNO2WUV-rfe87pgh.js → en-BWGKA5OE-1qkvb9rn.js} +2 -2
- package/dist/en-FBPVNKFN-dqt573xn.js +138 -0
- package/dist/en-TBNO2WUV-9nan43e5.js +1936 -0
- package/dist/{enrichment-service-a65qt7y1.js → enrichment-service-7n1tf75p.js} +4 -4
- package/dist/es-7SE7HX2X-8yh1aj2y.js +173 -0
- package/dist/es-KR3ZSNMP-0cszm2n3.js +2697 -0
- package/dist/es-MX-2MYFZU7X-3rek4r73.js +173 -0
- package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +2697 -0
- package/dist/first-party-service-srxaftkn.js +27 -0
- package/dist/{flow-api-vqvvs0q2.js → flow-api-4vkpbmt3.js} +7 -7
- package/dist/{flow-debug-service-vd7bdyhg.js → flow-debug-service-9tad5ckh.js} +66 -41
- package/dist/{flow-eval-node-target-mve3v55h.js → flow-eval-node-target-g222rh2e.js} +22 -15
- package/dist/flow-eval-run-api-hashjgq1.js +13 -0
- package/dist/{flow-eval-run-service-rt9kg4wx.js → flow-eval-run-service-btghb02r.js} +109 -224
- package/dist/{flow-eval-service-ededh59n.js → flow-eval-service-ma5psrsd.js} +346 -302
- package/dist/{flow-init-service-4ve9tr0t.js → flow-init-service-662zhfd3.js} +22 -18
- package/dist/{flow-io-2dd3sx38.js → flow-io-3cqz0svg.js} +16 -13
- package/dist/{flow-migrate-service-nbe6et60.js → flow-migrate-service-ehx7nmsr.js} +18 -14
- package/dist/{flow-pack-service-b2n877d8.js → flow-pack-service-a3w3489r.js} +43 -35
- package/dist/flow-validate-service-02e21w4d.js +3555 -0
- package/dist/fr-MDFKNZ4C-h4a122k9.js +173 -0
- package/dist/fr-Y6NPVODW-q5ef3htr.js +2697 -0
- package/dist/{governance-fetcher-at165287.js → governance-fetcher-7vxmap1e.js} +5 -4
- package/dist/{headless-85f2cys0.js → headless-627q5my5.js} +42909 -1756
- package/dist/{hitl-service-xn1bt80z.js → hitl-service-fn94tk6z.js} +16 -13
- package/dist/{index-hfsfzg4k.js → index-3arytfxn.js} +6 -4
- package/dist/{index-d1yqqk6q.js → index-55cym5j7.js} +6 -4
- package/dist/{index-0j6xww0f.js → index-9f94yk28.js} +3 -3
- package/dist/{index-1kgxzh8x.js → index-fz4ttsde.js} +14 -2
- package/dist/index-gvwc29bb.js +16742 -0
- package/dist/{index-mkgrn150.js → index-j1azsfr5.js} +36 -33
- package/dist/index-kmp9fmhb.js +25 -0
- package/dist/{index-938ee96p.js → index-rtg24r4x.js} +1 -1
- package/dist/index-tzccx5ym.js +2961 -0
- package/dist/{index-acd6bpqc.js → index-ymsd3pyx.js} +12 -15
- package/dist/index.js +3 -3
- package/dist/{input-reader-1wda1a2v.js → input-reader-7pzkcw6t.js} +1 -1
- package/dist/{input-reader-svafwk7x.js → input-reader-j8rvde4z.js} +1 -1
- package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +2697 -0
- package/dist/ja-UTQEAP34-8e0q6swp.js +173 -0
- package/dist/known-types-8dhhqk35.js +19 -0
- package/dist/ko-AXCHW2OK-askct7f6.js +173 -0
- package/dist/ko-AYBDSRZG-am0h0m2r.js +2697 -0
- package/dist/{maestro-automate-entry-gwntzkvj.js → maestro-automate-entry-jehpbg37.js} +2 -2
- package/dist/{maestro-debug-service-dvh7qbx8.js → maestro-debug-service-xhtszkrc.js} +10 -10
- package/dist/{maestro-pack-service-fam5zdm3.js → maestro-pack-service-fkkc5g3v.js} +12 -6
- package/dist/{node-ks3095fb.js → node-p4bde6qy.js} +2344 -376
- package/dist/node-service-frvz67y3.js +83 -0
- package/dist/{node-sync-service-zwvm30qg.js → node-sync-service-wa2t7c65.js} +14 -14
- package/dist/{packager-tool-me5q0naa.js → packager-tool-095jzn8v.js} +16 -6
- package/dist/{packager-tool-y5f2qhfe.js → packager-tool-19030vpg.js} +32 -2
- package/dist/{packager-tool-gtqkcj4x.js → packager-tool-2c1rbj85.js} +310 -13
- package/dist/packager-tool-2q1mffef.js +261 -0
- package/dist/{flow-validate-service-0hxf5080.js → packager-tool-2xrng5ff.js} +1956 -3065
- package/dist/{packager-tool-8dgxmjzx.js → packager-tool-30ky51ca.js} +6 -3
- package/dist/{packager-tool-d5mjdpbf.js → packager-tool-4r35ye9r.js} +5 -4
- package/dist/packager-tool-53w8skv5.js +262 -0
- package/dist/{packager-tool-db4jm1rz.js → packager-tool-56gcg9de.js} +1 -1
- package/dist/{packager-tool-29eg86w6.js → packager-tool-6rsegsby.js} +6 -7
- package/dist/packager-tool-7msx23gd.js +13 -0
- package/dist/packager-tool-7q6z6npd.js +1937 -0
- package/dist/packager-tool-8qp60s20.js +12 -0
- package/dist/{packager-tool-s1r7krkp.js → packager-tool-9pccpz3r.js} +1 -1
- package/dist/{packager-tool-m351tkkr.js → packager-tool-c95fhhys.js} +30 -8
- package/dist/{packager-tool-kg5sxneg.js → packager-tool-cmzzh4f8.js} +72 -73
- package/dist/{packager-tool-ffvmys2r.js → packager-tool-cr0z8cbj.js} +5 -5
- package/dist/{packager-tool-8fkt71n4.js → packager-tool-cs1ec1da.js} +4 -3
- package/dist/{packager-tool-xatnrtwp.js → packager-tool-d2813z49.js} +9 -9
- package/dist/packager-tool-d88rqwk8.js +135 -0
- package/dist/{packager-tool-pm3qh1hy.js → packager-tool-dh5nppv4.js} +1 -1
- package/dist/packager-tool-dqxz5v18.js +486 -0
- package/dist/{packager-tool-r87gxwqa.js → packager-tool-e87tzg4y.js} +2 -2
- package/dist/{packager-tool-w9fd7vzs.js → packager-tool-f33sg3vr.js} +9 -9
- package/dist/{packager-tool-cj2ka9jr.js → packager-tool-fer9mdsq.js} +2 -2
- package/dist/{packager-tool-70eh7rpg.js → packager-tool-fm67whdy.js} +23 -5
- package/dist/packager-tool-fq7wtkd3.js +21012 -0
- package/dist/packager-tool-fvm2dddf.js +6297 -0
- package/dist/packager-tool-gdtpsdn7.js +342 -0
- package/dist/{packager-tool-ejyeka5x.js → packager-tool-gpwec9sp.js} +2 -2
- package/dist/{packager-tool-pap09zfh.js → packager-tool-h8x54cvx.js} +1 -1
- package/dist/{packager-tool-9vh3df76.js → packager-tool-hdmhxdch.js} +7 -7
- package/dist/packager-tool-hnyecbk6.js +88 -0
- package/dist/{packager-tool-mtbak8t4.js → packager-tool-j00gcgbs.js} +2 -2
- package/dist/packager-tool-j78fwwhq.js +16 -0
- package/dist/packager-tool-jysvpt8p.js +11 -0
- package/dist/{packager-tool-jfv7t0c8.js → packager-tool-kb554twx.js} +94 -94
- package/dist/{packager-tool-k4x5yn3p.js → packager-tool-khm7zsm8.js} +4 -1
- package/dist/packager-tool-kj0qc4f4.js +269 -0
- package/dist/{packager-tool-12636p2y.js → packager-tool-mcjjj1hk.js} +4 -4
- package/dist/{packager-tool-bftjhmqz.js → packager-tool-mfrdmqmt.js} +124 -2
- package/dist/{packager-tool-qgh5yaeh.js → packager-tool-mj89jhvb.js} +1 -1
- package/dist/{packager-tool-ve35117x.js → packager-tool-mjz4hma1.js} +5791 -176
- package/dist/packager-tool-paq9c70w.js +1332 -0
- package/dist/{packager-tool-d8v984ah.js → packager-tool-q2gwvnf5.js} +15 -56
- package/dist/{packager-tool-nmznynbj.js → packager-tool-qff6ang6.js} +1 -1
- package/dist/{packager-tool-j79gbsee.js → packager-tool-rg5pkkf0.js} +6 -6
- package/dist/{packager-tool-7309ymg1.js → packager-tool-s1466723.js} +10 -13
- package/dist/{packager-tool-54b4v7wp.js → packager-tool-te6rrpsz.js} +205 -195
- package/dist/packager-tool-vcjq9xkc.js +1895 -0
- package/dist/{packager-tool-w20r6n9v.js → packager-tool-vck7ct1e.js} +2877 -2221
- package/dist/{packager-tool-e8td7b01.js → packager-tool-vdc8r21p.js} +10328 -16610
- package/dist/{packager-tool-nxw5yzs7.js → packager-tool-vqcnvaae.js} +1 -1
- package/dist/{packager-tool-7rz102fw.js → packager-tool-wd01egnx.js} +1 -1
- package/dist/{packager-tool-gxqd24n0.js → packager-tool-wger1vt9.js} +7 -7
- package/dist/{packager-tool-a6yfnjgx.js → packager-tool-wynrdnqj.js} +1 -1
- package/dist/packager-tool-x0eamrk4.js +104577 -0
- package/dist/packager-tool-x92czn5x.js +208 -0
- package/dist/{packager-tool-am67sn1c.js → packager-tool-xtkgeccn.js} +1 -1
- package/dist/packager-tool-y59jhapb.js +10369 -0
- package/dist/{packager-tool-317z6dc1.js → packager-tool-ydg78w9z.js} +23 -23
- package/dist/{packager-tool-rr8hveb9.js → packager-tool-ygrrb1zh.js} +1 -1
- package/dist/{packager-tool-f0kd5kq4.js → packager-tool-yrsrzz1a.js} +127 -12
- package/dist/{packager-tool-d9dpx9wn.js → packager-tool-z185rq2a.js} +1 -1
- package/dist/{packager-tool-79gws1zn.js → packager-tool-z6nkdv48.js} +270 -24
- package/dist/{packager-tool-802qm7jy.js → packager-tool-zzxt99e4.js} +3 -3
- package/dist/packager-tool.js +75 -218
- package/dist/{project-artifacts-9z7atbk7.js → project-artifacts-h5cydk2n.js} +1 -1
- package/dist/{project-validator-0rkrfmj0.js → project-validator-ek97s27p.js} +1 -1
- package/dist/pt-3DIO5QWG-59b3f4bc.js +173 -0
- package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +2697 -0
- package/dist/pt-BR-Y6K6XHXK-mp3hwhw1.js +173 -0
- package/dist/pt-ROXU257Y-yd80gx6s.js +2697 -0
- package/dist/{resourcesSyncService-3pajvveg.js → resourcesSyncService-7s92g1hm.js} +28 -27
- package/dist/ro-AVAWPKOO-42m6am1w.js +2697 -0
- package/dist/ro-BWR3ONRR-vzx3hy8a.js +173 -0
- package/dist/ru-GSCT4ARZ-jrxwev63.js +10 -0
- package/dist/ru-WBLQ5B2U-s4em88p0.js +10 -0
- package/dist/sdd-lookup-7h7j2h6v.js +48 -0
- package/dist/{serialization-BXU6AKAN-dk0sqx89.js → serialization-BXU6AKAN-0ghhrsja.js} +6 -5
- package/dist/{shared-utils-twgpb9ax.js → shared-utils-6z7gnnc8.js} +1 -1
- package/dist/{strict-case-rules-zxnq80zm.js → strict-case-rules-byym8cvc.js} +141 -109
- package/dist/strict-sdd-audit-v156c9e3.js +2520 -0
- package/dist/tidy-service-zyy7wxc0.js +39 -0
- package/dist/{tool-pxfafj3m.js → tool-dejjyv8m.js} +213 -51
- package/dist/{tool-td30zmyt.js → tool-v0r5qzcc.js} +106 -146
- package/dist/tool.js +3 -3
- package/dist/tr-5IIHSFW5-hw4cewew.js +173 -0
- package/dist/tr-JMIP7ZSL-fb67ft9w.js +2696 -0
- package/dist/{trigger-enrichment-service-t3wcd12r.js → trigger-enrichment-service-ak1nrz5t.js} +30 -29
- package/dist/{variable-service-2q705dsx.js → variable-service-t9gsp8xs.js} +16 -13
- package/dist/{wait-for-flow-job-sx0ht8sb.js → wait-for-flow-job-1s8ka07s.js} +7 -7
- package/dist/{xml-949787yf.js → xml-3rzcgm9z.js} +1359 -659
- package/dist/zh-CN-IFFXSEJS-tke4mzty.js +2697 -0
- package/dist/zh-CN-R2KU4U5L-tc1hat59.js +173 -0
- package/dist/zh-TW-GNKMELBF-j674515r.js +173 -0
- package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +2697 -0
- package/package.json +3 -2
- package/dist/bpmn-format-service-r67afbny.js +0 -477
- package/dist/case-debug-studio-web-service-kj1797m8.js +0 -336
- package/dist/known-types-eq32py2n.js +0 -20
- package/dist/node-service-teagjd9n.js +0 -75
- package/dist/packager-tool-15bstxb6.js +0 -4192
- package/dist/packager-tool-1zpm7wts.js +0 -7217
- package/dist/packager-tool-7tjxtpfp.js +0 -106
- package/dist/packager-tool-ckhyvcn5.js +0 -58
- package/dist/packager-tool-dz506qqq.js +0 -2120
- package/dist/packager-tool-hpc2j0zw.js +0 -27
- package/dist/packager-tool-jjpc0yka.js +0 -304
- package/dist/packager-tool-xtv236p7.js +0 -73
- package/dist/strict-sdd-audit-zc0n5vj6.js +0 -1024
- package/dist/tidy-service-hc9gex0v.js +0 -36
- /package/dist/{localization-xecwjpe2.js → localization-y790z9vm.js} +0 -0
|
@@ -2382,7 +2382,7 @@ var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{1
|
|
|
2382
2382
|
var EMAIL_PATTERN = /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
|
|
2383
2383
|
var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
|
|
2384
2384
|
var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
|
|
2385
|
-
var PADDED_BASE64_PATTERN = /[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
|
|
2385
|
+
var PADDED_BASE64_PATTERN = /(?<![A-Za-z0-9+/])[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
|
|
2386
2386
|
var BASE64_WITH_PLUS_PATTERN = /[A-Za-z0-9+/]{40,}/g;
|
|
2387
2387
|
var USER_HOME_PATTERN = /(?<![A-Za-z0-9._-])([/\\])(Users|home|Profiles)([/\\])([^/\\]+)/gi;
|
|
2388
2388
|
var UNC_PATH_PATTERN = /(^|[\s"'<>|=,;([{])(\\\\[^\s"'<>|]+)/g;
|
|
@@ -2429,7 +2429,7 @@ var QUOTED_LITERAL_PATTERN = new RegExp([
|
|
|
2429
2429
|
`(?<![A-Za-z0-9])"(?:[^\\
|
|
2430
2430
|
]|\\.){2,${QUOTED_LITERAL_MAX_SPAN}}?"(?![A-Za-z0-9])`
|
|
2431
2431
|
].join("|"), "g");
|
|
2432
|
-
var JSON_BODY_PATTERN = /[{[][^{}[\]]*[:,][^{}[\]]*[\]}]/g;
|
|
2432
|
+
var JSON_BODY_PATTERN = /[{[][^{}[\]:,]*[:,][^{}[\]]*[\]}]/g;
|
|
2433
2433
|
var COLLAPSED_BODY = "{…}";
|
|
2434
2434
|
var COLLAPSED_BODY_MARKER = "\x01body\x01";
|
|
2435
2435
|
var MAX_BODY_NESTING = 8;
|
|
@@ -2444,10 +2444,13 @@ function collapseJsonBodies(text) {
|
|
|
2444
2444
|
}
|
|
2445
2445
|
return out.split(COLLAPSED_BODY_MARKER).join(COLLAPSED_BODY);
|
|
2446
2446
|
}
|
|
2447
|
-
var TRAILING_PROSE_PUNCT =
|
|
2447
|
+
var TRAILING_PROSE_PUNCT = `.,;:!?)]}>'"`;
|
|
2448
2448
|
function peelTrailingPunctuation(match) {
|
|
2449
|
-
|
|
2450
|
-
|
|
2449
|
+
let end = match.length;
|
|
2450
|
+
while (end > 0 && TRAILING_PROSE_PUNCT.includes(match[end - 1])) {
|
|
2451
|
+
end -= 1;
|
|
2452
|
+
}
|
|
2453
|
+
return [match.slice(0, end), match.slice(end)];
|
|
2451
2454
|
}
|
|
2452
2455
|
function redactUrl(raw) {
|
|
2453
2456
|
try {
|
|
@@ -2750,6 +2753,22 @@ function parseHttpStatusFromMessage(message) {
|
|
|
2750
2753
|
const status = Number(match[1]);
|
|
2751
2754
|
return Number.isInteger(status) && status >= 100 && status <= 599 ? status : undefined;
|
|
2752
2755
|
}
|
|
2756
|
+
function findHttpStatusInGraph(error) {
|
|
2757
|
+
for (const node of walkErrorGraph(error)) {
|
|
2758
|
+
const response = node.response;
|
|
2759
|
+
const explicit = typeof node.status === "number" ? node.status : response?.status;
|
|
2760
|
+
if (typeof explicit === "number" && explicit >= 400 && explicit <= 599) {
|
|
2761
|
+
return explicit;
|
|
2762
|
+
}
|
|
2763
|
+
if (typeof node.message === "string") {
|
|
2764
|
+
const parsed = parseHttpStatusFromMessage(node.message);
|
|
2765
|
+
if (parsed !== undefined && parsed >= 400) {
|
|
2766
|
+
return parsed;
|
|
2767
|
+
}
|
|
2768
|
+
}
|
|
2769
|
+
}
|
|
2770
|
+
return;
|
|
2771
|
+
}
|
|
2753
2772
|
function isHtmlDocument(body) {
|
|
2754
2773
|
return /^\s*(<!doctype html|<html\b)/i.test(body);
|
|
2755
2774
|
}
|
|
@@ -2863,7 +2882,8 @@ async function extractErrorDetails(error, options) {
|
|
|
2863
2882
|
}
|
|
2864
2883
|
let message;
|
|
2865
2884
|
let result = "Failure";
|
|
2866
|
-
const
|
|
2885
|
+
const classificationStatus = status ?? findHttpStatusInGraph(error);
|
|
2886
|
+
const classification = classifyError(classificationStatus, error);
|
|
2867
2887
|
let retry = classification.retry;
|
|
2868
2888
|
if (status === 401) {
|
|
2869
2889
|
message = DEFAULT_401;
|
|
@@ -2939,8 +2959,8 @@ async function extractErrorDetails(error, options) {
|
|
|
2939
2959
|
details = describeThrownValue(error);
|
|
2940
2960
|
}
|
|
2941
2961
|
const context = {};
|
|
2942
|
-
if (
|
|
2943
|
-
context.httpStatus =
|
|
2962
|
+
if (classificationStatus) {
|
|
2963
|
+
context.httpStatus = classificationStatus;
|
|
2944
2964
|
}
|
|
2945
2965
|
if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
|
|
2946
2966
|
context.errorCode = parsedBody.errorCode;
|
|
@@ -3520,7 +3540,8 @@ function readRegistryValue(keyPath, valueName) {
|
|
|
3520
3540
|
}
|
|
3521
3541
|
const [error, output] = catchError(() => execFileSync("reg", ["query", keyPath, "/v", valueName], {
|
|
3522
3542
|
encoding: "utf-8",
|
|
3523
|
-
stdio: ["pipe", "pipe", "pipe"]
|
|
3543
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
3544
|
+
windowsHide: true
|
|
3524
3545
|
}));
|
|
3525
3546
|
if (error) {
|
|
3526
3547
|
return "";
|
|
@@ -4235,28 +4256,32 @@ function isPlainRecord(value) {
|
|
|
4235
4256
|
const prototype = Object.getPrototypeOf(value);
|
|
4236
4257
|
return prototype === Object.prototype || prototype === null;
|
|
4237
4258
|
}
|
|
4238
|
-
function
|
|
4259
|
+
function splitPagedEnvelope(value) {
|
|
4239
4260
|
if (Array.isArray(value) || !isPlainRecord(value))
|
|
4240
4261
|
return null;
|
|
4241
|
-
const entries = Object.
|
|
4262
|
+
const entries = Object.entries(value);
|
|
4242
4263
|
if (entries.length === 0)
|
|
4243
4264
|
return null;
|
|
4244
|
-
let
|
|
4245
|
-
|
|
4246
|
-
for (const entry of entries) {
|
|
4265
|
+
let found = null;
|
|
4266
|
+
const meta = Object.create(null);
|
|
4267
|
+
for (const [key, entry] of entries) {
|
|
4247
4268
|
if (Array.isArray(entry)) {
|
|
4248
|
-
if (
|
|
4269
|
+
if (found !== null)
|
|
4249
4270
|
return null;
|
|
4250
|
-
|
|
4271
|
+
found = { key, rows: entry };
|
|
4251
4272
|
} else if (entry !== null && typeof entry === "object") {
|
|
4252
4273
|
return null;
|
|
4253
4274
|
} else {
|
|
4254
|
-
|
|
4275
|
+
meta[key] = entry;
|
|
4255
4276
|
}
|
|
4256
4277
|
}
|
|
4257
|
-
if (
|
|
4278
|
+
if (found === null || Object.keys(meta).length === 0)
|
|
4258
4279
|
return null;
|
|
4259
|
-
return
|
|
4280
|
+
return { ...found, meta };
|
|
4281
|
+
}
|
|
4282
|
+
function extractPagedRows(value) {
|
|
4283
|
+
const paged = splitPagedEnvelope(value);
|
|
4284
|
+
return paged === null ? null : paged.rows;
|
|
4260
4285
|
}
|
|
4261
4286
|
function toLowerCamelCaseKey(key) {
|
|
4262
4287
|
if (!key)
|
|
@@ -4360,6 +4385,9 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
|
|
|
4360
4385
|
}
|
|
4361
4386
|
break;
|
|
4362
4387
|
}
|
|
4388
|
+
case "markdown":
|
|
4389
|
+
logFn(renderMarkdown(data));
|
|
4390
|
+
break;
|
|
4363
4391
|
default: {
|
|
4364
4392
|
const hasData = "Data" in data && data.Data != null;
|
|
4365
4393
|
const pagedRows = hasData ? extractPagedRows(data.Data) : null;
|
|
@@ -4384,6 +4412,10 @@ function logOutput(data, format = "json", tableRowStyle) {
|
|
|
4384
4412
|
printOutput(data, format, (msg) => sink.writeOut(`${msg}
|
|
4385
4413
|
`), needsAsciiSafeJson(sink), styleFn);
|
|
4386
4414
|
}
|
|
4415
|
+
var PLUMBING_KEYS = new Set(["code", "log"]);
|
|
4416
|
+
function isPlumbingKey(key) {
|
|
4417
|
+
return PLUMBING_KEYS.has(key.toLowerCase());
|
|
4418
|
+
}
|
|
4387
4419
|
function cellToString(val) {
|
|
4388
4420
|
return val != null && typeof val === "object" ? JSON.stringify(val) : String(val ?? "");
|
|
4389
4421
|
}
|
|
@@ -4399,7 +4431,7 @@ function wrapText(text, width) {
|
|
|
4399
4431
|
function printTable(data, logFn, externalLogValue, tableRowStyle) {
|
|
4400
4432
|
if (data.length === 0)
|
|
4401
4433
|
return;
|
|
4402
|
-
const keys = Object.keys(data[0]).filter((key) => !
|
|
4434
|
+
const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
|
|
4403
4435
|
const maxWidths = keys.map((key) => Math.max(key.length, ...data.map((item) => cellToString(item[key]).length)));
|
|
4404
4436
|
const header = keys.map((key, i) => key.padEnd(maxWidths[i])).join(" | ");
|
|
4405
4437
|
logFn(header);
|
|
@@ -4421,7 +4453,7 @@ function isNonEmptyPlainObject(value) {
|
|
|
4421
4453
|
}
|
|
4422
4454
|
var NESTED_INDENT = " ";
|
|
4423
4455
|
function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
4424
|
-
const keys = Object.keys(data).filter((key) => !
|
|
4456
|
+
const keys = Object.keys(data).filter((key) => !isPlumbingKey(key));
|
|
4425
4457
|
if (keys.length === 0)
|
|
4426
4458
|
return;
|
|
4427
4459
|
const isBlockValue = (value) => isPlainObjectArray(value) || isNonEmptyPlainObject(value);
|
|
@@ -4452,7 +4484,7 @@ function printVerticalTable(data, logFn = console.log, externalLogValue) {
|
|
|
4452
4484
|
function printResizableTable(data, logFn = console.log, externalLogValue, availableWidth, tableRowStyle) {
|
|
4453
4485
|
if (data.length === 0)
|
|
4454
4486
|
return;
|
|
4455
|
-
const keys = Object.keys(data[0]).filter((key) => !
|
|
4487
|
+
const keys = Object.keys(data[0]).filter((key) => !isPlumbingKey(key));
|
|
4456
4488
|
if (keys.length === 0)
|
|
4457
4489
|
return;
|
|
4458
4490
|
if (!process.stdout.isTTY) {
|
|
@@ -4526,6 +4558,220 @@ function printResizableTable(data, logFn = console.log, externalLogValue, availa
|
|
|
4526
4558
|
logFn(`Log: ${externalLogValue}`);
|
|
4527
4559
|
}
|
|
4528
4560
|
}
|
|
4561
|
+
var MARKDOWN_MAX_CELL = 200;
|
|
4562
|
+
var MARKDOWN_MAX_DEPTH = 3;
|
|
4563
|
+
function markdownHeading(depth) {
|
|
4564
|
+
return "#".repeat(Math.min(3 + depth, 6));
|
|
4565
|
+
}
|
|
4566
|
+
var BACKTICK_RUN = /`+/g;
|
|
4567
|
+
function fencedBlock(text) {
|
|
4568
|
+
const first = text.trimStart()[0];
|
|
4569
|
+
const language = first === "<" ? "xml" : first === "{" || first === "[" ? "json" : "";
|
|
4570
|
+
const longestRun = Math.max(0, ...Array.from(text.matchAll(BACKTICK_RUN), (match) => match[0].length));
|
|
4571
|
+
const fence = "`".repeat(Math.max(3, longestRun + 1));
|
|
4572
|
+
return `${fence}${language}
|
|
4573
|
+
${text}
|
|
4574
|
+
${fence}`;
|
|
4575
|
+
}
|
|
4576
|
+
function collapseNewlineRuns(text) {
|
|
4577
|
+
return text.split(/(\s+)/).map((part, index) => index % 2 === 1 && part.includes(`
|
|
4578
|
+
`) ? " " : part).join("");
|
|
4579
|
+
}
|
|
4580
|
+
function markdownCell(value) {
|
|
4581
|
+
const text = value instanceof Date ? value.toISOString() : cellToString(value);
|
|
4582
|
+
return collapseNewlineRuns(text).replace(/\|/g, "\\|");
|
|
4583
|
+
}
|
|
4584
|
+
function markdownLabel(key) {
|
|
4585
|
+
return collapseNewlineRuns(key).replace(/[\\`*|]/g, "\\$&");
|
|
4586
|
+
}
|
|
4587
|
+
function withoutPlumbing(record) {
|
|
4588
|
+
const kept = Object.create(null);
|
|
4589
|
+
for (const [key, value] of Object.entries(record)) {
|
|
4590
|
+
if (!isPlumbingKey(key))
|
|
4591
|
+
kept[key] = value;
|
|
4592
|
+
}
|
|
4593
|
+
return kept;
|
|
4594
|
+
}
|
|
4595
|
+
function rowsWithoutPlumbing(rows) {
|
|
4596
|
+
return rows.map((row) => isPlainRecord(row) ? withoutPlumbing(row) : row);
|
|
4597
|
+
}
|
|
4598
|
+
function markdownTable(rows) {
|
|
4599
|
+
const columns = [];
|
|
4600
|
+
const seen = new Set;
|
|
4601
|
+
for (const row of rows) {
|
|
4602
|
+
for (const key of Object.keys(row)) {
|
|
4603
|
+
if (!seen.has(key)) {
|
|
4604
|
+
seen.add(key);
|
|
4605
|
+
columns.push(key);
|
|
4606
|
+
}
|
|
4607
|
+
}
|
|
4608
|
+
}
|
|
4609
|
+
if (columns.length === 0)
|
|
4610
|
+
return null;
|
|
4611
|
+
const cells = rows.map((row) => columns.map((key) => markdownCell(row[key])));
|
|
4612
|
+
if (cells.some((row) => row.some((c) => c.length > MARKDOWN_MAX_CELL))) {
|
|
4613
|
+
return null;
|
|
4614
|
+
}
|
|
4615
|
+
return [
|
|
4616
|
+
`| ${columns.map(markdownLabel).join(" | ")} |`,
|
|
4617
|
+
`| ${columns.map(() => "---").join(" | ")} |`,
|
|
4618
|
+
...cells.map((row) => `| ${row.join(" | ")} |`)
|
|
4619
|
+
].join(`
|
|
4620
|
+
`);
|
|
4621
|
+
}
|
|
4622
|
+
function extractMessageSequence(rows) {
|
|
4623
|
+
const messages = [];
|
|
4624
|
+
for (const row of rows) {
|
|
4625
|
+
const message = extractSingleMessage(row);
|
|
4626
|
+
if (message === null)
|
|
4627
|
+
return null;
|
|
4628
|
+
messages.push(message);
|
|
4629
|
+
}
|
|
4630
|
+
return messages.join(`
|
|
4631
|
+
|
|
4632
|
+
`);
|
|
4633
|
+
}
|
|
4634
|
+
function markdownRows(rows, depth) {
|
|
4635
|
+
if (rows.length === 0)
|
|
4636
|
+
return "(none)";
|
|
4637
|
+
if (!isPlainObjectArray(rows)) {
|
|
4638
|
+
return rows.map((item) => `- ${markdownCell(item)}`).join(`
|
|
4639
|
+
`);
|
|
4640
|
+
}
|
|
4641
|
+
const prose = extractMessageSequence(rows);
|
|
4642
|
+
if (prose !== null)
|
|
4643
|
+
return prose;
|
|
4644
|
+
const table = markdownTable(rows);
|
|
4645
|
+
if (table !== null)
|
|
4646
|
+
return table;
|
|
4647
|
+
if (depth >= MARKDOWN_MAX_DEPTH) {
|
|
4648
|
+
return fencedBlock(JSON.stringify(rows, null, 2));
|
|
4649
|
+
}
|
|
4650
|
+
return rows.map((row, index) => [
|
|
4651
|
+
`${markdownHeading(depth)} ${index + 1}`,
|
|
4652
|
+
markdownObject(row, depth + 1)
|
|
4653
|
+
].join(`
|
|
4654
|
+
|
|
4655
|
+
`)).join(`
|
|
4656
|
+
|
|
4657
|
+
`);
|
|
4658
|
+
}
|
|
4659
|
+
function markdownObject(obj, depth) {
|
|
4660
|
+
const scalars = [];
|
|
4661
|
+
const blocks = [];
|
|
4662
|
+
for (const [key, value] of Object.entries(obj)) {
|
|
4663
|
+
if (value === undefined)
|
|
4664
|
+
continue;
|
|
4665
|
+
const label = markdownLabel(key);
|
|
4666
|
+
if (Array.isArray(value)) {
|
|
4667
|
+
blocks.push(`${markdownHeading(depth)} ${label}
|
|
4668
|
+
|
|
4669
|
+
${markdownRows(value, depth + 1)}`);
|
|
4670
|
+
} else if (isNonEmptyPlainObject(value)) {
|
|
4671
|
+
const nested = depth < MARKDOWN_MAX_DEPTH ? markdownObject(value, depth + 1) : fencedBlock(JSON.stringify(value, null, 2));
|
|
4672
|
+
if (nested !== "") {
|
|
4673
|
+
blocks.push(`${markdownHeading(depth)} ${label}
|
|
4674
|
+
|
|
4675
|
+
${nested}`);
|
|
4676
|
+
}
|
|
4677
|
+
} else if (typeof value === "string" && value.includes(`
|
|
4678
|
+
`)) {
|
|
4679
|
+
blocks.push(`**${label}:**
|
|
4680
|
+
|
|
4681
|
+
${fencedBlock(value)}`);
|
|
4682
|
+
} else {
|
|
4683
|
+
scalars.push(`**${label}:** ${markdownCell(value)}`);
|
|
4684
|
+
}
|
|
4685
|
+
}
|
|
4686
|
+
const sections = scalars.length > 0 ? [scalars.join(`
|
|
4687
|
+
`)] : [];
|
|
4688
|
+
sections.push(...blocks);
|
|
4689
|
+
return sections.join(`
|
|
4690
|
+
|
|
4691
|
+
`);
|
|
4692
|
+
}
|
|
4693
|
+
function extractSingleMessage(payload) {
|
|
4694
|
+
if (!isPlainRecord(payload))
|
|
4695
|
+
return null;
|
|
4696
|
+
const keys = Object.keys(payload);
|
|
4697
|
+
if (keys.length !== 1 || keys[0].toLowerCase() !== "message")
|
|
4698
|
+
return null;
|
|
4699
|
+
const value = payload[keys[0]];
|
|
4700
|
+
return typeof value === "string" ? value : null;
|
|
4701
|
+
}
|
|
4702
|
+
function markdownPayload(payload) {
|
|
4703
|
+
const message = extractSingleMessage(payload);
|
|
4704
|
+
if (message !== null)
|
|
4705
|
+
return message;
|
|
4706
|
+
if (Array.isArray(payload)) {
|
|
4707
|
+
return markdownRows(rowsWithoutPlumbing(payload), 0);
|
|
4708
|
+
}
|
|
4709
|
+
const visible = withoutPlumbing(payload);
|
|
4710
|
+
const paged = splitPagedEnvelope(visible);
|
|
4711
|
+
if (paged !== null) {
|
|
4712
|
+
const meta = markdownObject(paged.meta, 0);
|
|
4713
|
+
const rows = `${markdownHeading(0)} ${markdownLabel(paged.key)}
|
|
4714
|
+
|
|
4715
|
+
${markdownRows(rowsWithoutPlumbing(paged.rows), 1)}`;
|
|
4716
|
+
return meta === "" ? rows : `${meta}
|
|
4717
|
+
|
|
4718
|
+
${rows}`;
|
|
4719
|
+
}
|
|
4720
|
+
return markdownObject(visible, 0);
|
|
4721
|
+
}
|
|
4722
|
+
function isPaginationWorthShowing(value) {
|
|
4723
|
+
if (typeof value !== "object" || value === null)
|
|
4724
|
+
return false;
|
|
4725
|
+
const page = value;
|
|
4726
|
+
return page.HasMore === true || typeof page.Offset === "number" && page.Offset > 0;
|
|
4727
|
+
}
|
|
4728
|
+
function markdownEnvelopeNotes(data) {
|
|
4729
|
+
const envelope = data;
|
|
4730
|
+
const notes = [];
|
|
4731
|
+
const warning = envelope.Warning;
|
|
4732
|
+
if (typeof warning === "string" && warning !== "") {
|
|
4733
|
+
notes.push(`> **Warning:** ${warning}`);
|
|
4734
|
+
}
|
|
4735
|
+
const instructions = envelope.Instructions;
|
|
4736
|
+
if (typeof instructions === "string" && instructions !== "") {
|
|
4737
|
+
notes.push(`> ${instructions}`);
|
|
4738
|
+
}
|
|
4739
|
+
const pagination = envelope.Pagination;
|
|
4740
|
+
if (isPaginationWorthShowing(pagination)) {
|
|
4741
|
+
const body = markdownObject(pagination, 1);
|
|
4742
|
+
if (body !== "") {
|
|
4743
|
+
notes.push(`${markdownHeading(0)} Pagination
|
|
4744
|
+
|
|
4745
|
+
${body}`);
|
|
4746
|
+
}
|
|
4747
|
+
}
|
|
4748
|
+
const log = envelope.Log;
|
|
4749
|
+
if (typeof log === "string" && log !== "") {
|
|
4750
|
+
notes.push(`**Log:** ${log}`);
|
|
4751
|
+
}
|
|
4752
|
+
return notes;
|
|
4753
|
+
}
|
|
4754
|
+
function renderMarkdown(data) {
|
|
4755
|
+
if (data.Result !== RESULTS.Success) {
|
|
4756
|
+
const failure = data;
|
|
4757
|
+
const sections = [`**Failed:** ${failure.Message}`];
|
|
4758
|
+
if (failure.Data != null) {
|
|
4759
|
+
sections.push(markdownPayload(failure.Data));
|
|
4760
|
+
}
|
|
4761
|
+
if (failure.Instructions) {
|
|
4762
|
+
sections.push(`> ${failure.Instructions}`);
|
|
4763
|
+
}
|
|
4764
|
+
return sections.filter((section) => section !== "").join(`
|
|
4765
|
+
|
|
4766
|
+
`);
|
|
4767
|
+
}
|
|
4768
|
+
if (!("Data" in data) || data.Data == null) {
|
|
4769
|
+
return markdownObject(withoutPlumbing(data), 0);
|
|
4770
|
+
}
|
|
4771
|
+
return [markdownPayload(data.Data), ...markdownEnvelopeNotes(data)].filter((section) => section !== "").join(`
|
|
4772
|
+
|
|
4773
|
+
`);
|
|
4774
|
+
}
|
|
4529
4775
|
function toYaml(data) {
|
|
4530
4776
|
const codec = getYamlCodec();
|
|
4531
4777
|
if (!codec) {
|
|
@@ -6248,6 +6494,6 @@ function trackShipSucceeded(payload) {
|
|
|
6248
6494
|
}
|
|
6249
6495
|
// ../common/src/tool-provider.ts
|
|
6250
6496
|
var factorySlot = singleton("PackagerFactoryProvider");
|
|
6251
|
-
export { catchError, extractErrorMessage, extractErrorMessageSync, appendOption, ATTACHMENT_INSTRUCTIONS, ATTACHMENT_UPLOAD_INSTRUCTIONS, parseAttachmentSpec, resolveAttachmentInputs, getOutputSink, logger, getOutputFormat, getOutputFormatExplicit, RESULTS, EXIT_CODES, Pagination, OutputFormatter, summarizePlatformBody, InvalidArgumentError, Command, Option, isPreviewBuild, processContext, UIPATH_HOME_DIR, DEFAULT_PAGE_SIZE, hashContent, instructionsFor, isGuid, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, registerPackageMetadataOptions, mapPackageMetadataOptions, msToDuration, PollOutcome, ErrorDecision, MIN_INTERVAL_MS, pollUntil, isTerminalStatus, isFailureStatus, ScreenLogger, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, unsupportedSolutionProjectType, readStdin, splitPackagedName, trackShipSucceeded };
|
|
6497
|
+
export { redactMessage, catchError, extractErrorMessage, extractErrorMessageSync, appendOption, ATTACHMENT_INSTRUCTIONS, ATTACHMENT_UPLOAD_INSTRUCTIONS, parseAttachmentSpec, resolveAttachmentInputs, getOutputSink, logger, getOutputFormat, getOutputFormatExplicit, RESULTS, EXIT_CODES, Pagination, OutputFormatter, summarizePlatformBody, InvalidArgumentError, Command, Option, isPreviewBuild, processContext, UIPATH_HOME_DIR, DEFAULT_PAGE_SIZE, hashContent, instructionsFor, isGuid, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, registerPackageMetadataOptions, mapPackageMetadataOptions, msToDuration, PollOutcome, ErrorDecision, MIN_INTERVAL_MS, pollUntil, isTerminalStatus, isFailureStatus, ScreenLogger, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, unsupportedSolutionProjectType, readStdin, splitPackagedName, trackShipSucceeded };
|
|
6252
6498
|
|
|
6253
|
-
//# debugId=
|
|
6499
|
+
//# debugId=1230EC40AEEDC96F64756E2164756E21
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createFlowRefResolver,
|
|
3
3
|
resolveAndMigrateWorkflow
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-te6rrpsz.js";
|
|
5
5
|
import {
|
|
6
6
|
executeWritePlan,
|
|
7
7
|
inMemoryWorkflowToFileFormat,
|
|
8
8
|
planWriteThrough
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-fvm2dddf.js";
|
|
10
10
|
import {
|
|
11
11
|
catchError,
|
|
12
12
|
logger
|
|
13
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-z6nkdv48.js";
|
|
14
14
|
import {
|
|
15
15
|
getFileSystem
|
|
16
16
|
} from "./packager-tool-0v3s8r01.js";
|