@uipath/flow-tool 1.204.0 → 1.205.0-preview.258
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 +9 -9
- package/dist/THIRD-PARTY-NOTICES.md +39 -15
- package/dist/{authoring-bppe07p0.js → authoring-e1k40hyw.js} +6 -5
- package/dist/{binding-service-xwgsn35p.js → binding-service-pdtxvvt8.js} +38 -30
- package/dist/{connector-service-r0w8ztas.js → connector-service-pm9hfmsv.js} +224 -47
- package/dist/de-UZI7FJDO-awjpqfz0.js +200 -0
- package/dist/{de-MUJPA4EB-dpg7t2rw.js → de-UZI7FJDO-mwvc4cxe.js} +29 -2
- package/dist/{de-FGHEJRCI-rv513mfh.js → de-WLW6KWOJ-2qnsqdtw.js} +238 -31
- package/dist/debug-conversation-trigger-xsm3ycqx.js +30 -0
- package/dist/{debug-http-client-p4kf38yt.js → debug-http-client-yqjzsnhw.js} +5 -4
- package/dist/{debug-service-893erynq.js → debug-service-nra3n02y.js} +6 -5
- package/dist/{edge-service-yzsfw4bs.js → edge-service-mddnjwb0.js} +16 -12
- package/dist/{embedded-file-reader-v8c2yj2a.js → embedded-file-reader-r66242ey.js} +2 -2
- package/dist/en-EJCBA3LK-0wb3b1xy.js +146 -0
- package/dist/{en-FBPVNKFN-dqt573xn.js → en-EJCBA3LK-dtpdghgj.js} +12 -4
- package/dist/{en-BWGKA5OE-1qkvb9rn.js → en-M7GQYBV2-5nfmpnfz.js} +88 -6
- package/dist/{es-7SE7HX2X-8yh1aj2y.js → es-4UBUTCQA-m1ytpyx2.js} +29 -2
- package/dist/es-4UBUTCQA-t7hsackg.js +200 -0
- package/dist/{es-KR3ZSNMP-84zphx0x.js → es-5THCNRFN-tqwyrdgy.js} +235 -28
- package/dist/{es-MX-2MYFZU7X-3rek4r73.js → es-MX-5RELIXKI-9jhqtddc.js} +29 -2
- package/dist/es-MX-5RELIXKI-jtjbcxbb.js +200 -0
- package/dist/{es-MX-XXZJGC4R-2mr8jtgm.js → es-MX-TWZBRAXK-gqd9swzw.js} +237 -30
- package/dist/filter-engine-7ep90g7f.js +11 -0
- package/dist/{flow-api-kjvpsxhw.js → flow-api-sat010z1.js} +16 -10
- package/dist/{flow-debug-service-dd10rg08.js → flow-debug-service-dw0d9cv7.js} +96 -58
- package/dist/{flow-eval-node-target-2ekp77s6.js → flow-eval-node-target-wttmdm4v.js} +17 -17
- package/dist/flow-eval-run-api-xdygjzfv.js +13 -0
- package/dist/{flow-eval-run-service-twzbmeq6.js → flow-eval-run-service-g09w4m9m.js} +73 -80
- package/dist/{flow-eval-service-ckwx7d5z.js → flow-eval-service-jfkz0tae.js} +167 -415
- package/dist/{flow-init-sdk-source-z9qx1zkt.js → flow-init-sdk-source-xvdvkq7d.js} +6 -5
- package/dist/{flow-init-service-m6swzk43.js → flow-init-service-5v6zwhas.js} +19 -15
- package/dist/{flow-io-tnrc53z6.js → flow-io-64tmj8n7.js} +15 -11
- package/dist/{flow-migrate-service-625gppk0.js → flow-migrate-service-bjxs35ac.js} +16 -12
- package/dist/{flow-pack-service-qdpvrmme.js → flow-pack-service-s75qhtn5.js} +47 -38
- package/dist/flow-validate-service-rbvgesrb.js +70 -0
- package/dist/{fr-Y6NPVODW-8vr1ja4b.js → fr-CERONSRC-edpxhbmb.js} +237 -30
- package/dist/{fr-MDFKNZ4C-h4a122k9.js → fr-VBM5WRC2-63z7w4mh.js} +29 -2
- package/dist/fr-VBM5WRC2-707ha692.js +200 -0
- package/dist/{governance-fetcher-zq8zmfjb.js → governance-fetcher-tw83p74c.js} +7 -6
- package/dist/{hitl-service-r19zvqsz.js → hitl-service-hgg9tr5j.js} +15 -11
- package/dist/{index-b8n7hv68.js → index-09mfatmh.js} +6 -5
- package/dist/{index-aaq9rwfv.js → index-1b2je9n2.js} +1088 -233
- package/dist/index-d090f35d.js +66 -0
- package/dist/{index-yj4xk2aw.js → index-dgdnbb2g.js} +7 -5
- package/dist/{index-ng2f77my.js → index-fyc0k5dd.js} +985 -617
- package/dist/{index-vrhcbxnk.js → index-nsn889vf.js} +6 -5
- package/dist/{index-2s8rmmw6.js → index-sqhbn7ew.js} +4 -4
- package/dist/{index-tnz5ks4t.js → index-wycgq0ff.js} +65 -2230
- package/dist/index.js +17 -14
- package/dist/init.js +19 -15
- package/dist/inline-entity-resolver-2qqf1635.js +45 -0
- package/dist/input-reader-n7kzdrev.js +12 -0
- package/dist/{ja-UTQEAP34-8e0q6swp.js → ja-43QL7CGO-c3q8gre9.js} +29 -2
- package/dist/ja-43QL7CGO-h6qfxfay.js +200 -0
- package/dist/{ja-Q5PXKJ2V-p4msxzjd.js → ja-U2MCNHGT-gz0ap1jk.js} +235 -28
- package/dist/{known-types-q6fcyq2e.js → known-types-3025scz1.js} +5 -5
- package/dist/ko-TLL6Z6CD-ag6gjynr.js +200 -0
- package/dist/{ko-AXCHW2OK-askct7f6.js → ko-TLL6Z6CD-wrt3n8a9.js} +29 -2
- package/dist/{ko-AYBDSRZG-41mdmsg1.js → ko-XAUYQWDR-zp81gjp4.js} +237 -30
- package/dist/{maestro-automate-entry-qak46eg0.js → maestro-automate-entry-6f9act3w.js} +2 -2
- package/dist/{node-ccwecksf.js → node-1wzjq3jb.js} +29 -15
- package/dist/{node-service-w8gsy23p.js → node-service-0hxtt2x6.js} +41 -30
- package/dist/{node-strategy-fdnkvq4a.js → node-strategy-1dmmhvf3.js} +1 -1
- package/dist/node-sync-service-n7r4ma3a.js +61 -0
- package/dist/{packager-tool-s4etvs59.js → packager-tool-0j8v36qh.js} +1 -1
- package/dist/packager-tool-10vc8pq4.js +2 -0
- package/dist/{packager-tool-pw6j69m5.js → packager-tool-445qgxdk.js} +1802 -378
- package/dist/packager-tool-4kr6g0zw.js +16 -0
- package/dist/packager-tool-4x7tzvv0.js +1176 -0
- package/dist/{packager-tool-86rhxbf1.js → packager-tool-5regytfc.js} +6 -4
- package/dist/{packager-tool-d88rqwk8.js → packager-tool-6z1hsm2h.js} +13 -5
- package/dist/{packager-tool-jaa5gcbv.js → packager-tool-71gqkgg6.js} +6 -6
- package/dist/packager-tool-7hw344bt.js +107 -0
- package/dist/{packager-tool-m8xtf5ej.js → packager-tool-8g5931fz.js} +7 -4
- package/dist/{packager-tool-h9tzz0qd.js → packager-tool-961vsbsc.js} +15 -10
- package/dist/{packager-tool-zzc2yp2h.js → packager-tool-99gban46.js} +172 -71
- package/dist/packager-tool-9era57c0.js +28 -0
- package/dist/packager-tool-9jxzgsxc.js +14 -0
- package/dist/{packager-tool-zxp4hya4.js → packager-tool-a5afh1dc.js} +34 -13
- package/dist/{packager-tool-02f63a08.js → packager-tool-apawc11t.js} +88 -762
- package/dist/{packager-tool-tf3d2y8z.js → packager-tool-aw9v0raw.js} +2 -2
- package/dist/{packager-tool-6y0f9qg5.js → packager-tool-b3k0mkke.js} +463 -327
- package/dist/packager-tool-cqtsj6yh.js +2 -0
- package/dist/{packager-tool-5nqhxb9e.js → packager-tool-dwd6cc01.js} +16110 -13031
- package/dist/{packager-tool-t605qewm.js → packager-tool-dxgrhfq5.js} +2 -2
- package/dist/{packager-tool-awkq26v0.js → packager-tool-e7kvq8hf.js} +5 -3
- package/dist/packager-tool-fc1xdt3y.js +35 -0
- package/dist/{packager-tool-3dc9gz35.js → packager-tool-frjt46rb.js} +1 -1
- package/dist/{packager-tool-cn7e7cx2.js → packager-tool-gcap41av.js} +668 -57
- package/dist/packager-tool-hj5x3p8g.js +23 -0
- package/dist/{packager-tool-k91rd9nx.js → packager-tool-hvgn6t66.js} +6 -24
- package/dist/{packager-tool-w5a1hhyj.js → packager-tool-hxyjn885.js} +13 -2
- package/dist/{packager-tool-hhy1gr2k.js → packager-tool-jgfzfqjm.js} +1 -1
- package/dist/{packager-tool-6h69pd2a.js → packager-tool-kn86394c.js} +127 -61
- package/dist/packager-tool-mgcz986r.js +143 -0
- package/dist/{packager-tool-3h2ktz6q.js → packager-tool-myhbp761.js} +11 -1
- package/dist/{packager-tool-hp5vnk8p.js → packager-tool-ndev7vbj.js} +13 -13
- package/dist/{packager-tool-dynm8fz9.js → packager-tool-nj4vcnq9.js} +20 -8
- package/dist/{packager-tool-ayc9nhpa.js → packager-tool-nk16zaz3.js} +519 -437
- package/dist/{packager-tool-vzbttaje.js → packager-tool-nts5rrch.js} +5 -6
- package/dist/{packager-tool-vbfz8k7w.js → packager-tool-p8gab24q.js} +52 -32
- package/dist/{packager-tool-stq8800d.js → packager-tool-pacrqxv2.js} +17 -4
- package/dist/{packager-tool-7q6z6npd.js → packager-tool-pcvhcn2k.js} +93 -11
- package/dist/packager-tool-phw8ydjx.js +331 -0
- package/dist/packager-tool-qcqb9hf8.js +26 -0
- package/dist/{packager-tool-n89vrpex.js → packager-tool-skcjythd.js} +10907 -25608
- package/dist/{packager-tool-1ca047de.js → packager-tool-sqpesv2e.js} +12 -56
- package/dist/packager-tool-t7ahhaer.js +877 -0
- package/dist/{packager-tool-peawy22c.js → packager-tool-tqjfdpda.js} +53 -8
- package/dist/{packager-tool-y8egb0fa.js → packager-tool-wds3myef.js} +2573 -535
- package/dist/{packager-tool-5tjzg56t.js → packager-tool-wh660fny.js} +1 -1
- package/dist/{packager-tool-tyg399d6.js → packager-tool-wze74wyk.js} +74 -47
- package/dist/packager-tool-xj0agqpk.js +11 -0
- package/dist/packager-tool-xk78j7dz.js +1256 -0
- package/dist/{packager-tool-py93409h.js → packager-tool-ymma2s85.js} +2 -2
- package/dist/packager-tool-z0yxfhdj.js +40 -0
- package/dist/packager-tool.js +13 -10
- package/dist/{pt-BR-TKHNHMET-sn91xyq0.js → pt-BR-GNQNAAZ2-xadharv4.js} +237 -30
- package/dist/{pt-BR-Y6K6XHXK-mp3hwhw1.js → pt-BR-USP2T7GD-pedn77m1.js} +29 -2
- package/dist/pt-BR-USP2T7GD-rppy42ym.js +200 -0
- package/dist/{pt-3DIO5QWG-59b3f4bc.js → pt-RMIAKZB4-67enhx3m.js} +29 -2
- package/dist/pt-RMIAKZB4-t80exmp7.js +200 -0
- package/dist/{pt-ROXU257Y-2f6bxev4.js → pt-TO2DARY2-ftcce1bv.js} +237 -30
- package/dist/ro-GHOBYW2S-4zevc9dy.js +200 -0
- package/dist/{ro-BWR3ONRR-vzx3hy8a.js → ro-GHOBYW2S-mhnqsgaa.js} +29 -2
- package/dist/{ro-AVAWPKOO-b89pw79r.js → ro-WUYJV6OW-a8d9qy1n.js} +235 -28
- package/dist/ru-WBLQ5B2U-dpqvtfwr.js +10 -0
- package/dist/services/connector-request-buckets.d.ts +1 -0
- package/dist/services/flow-eval-file-store.d.ts +1 -11
- package/dist/services/flow-eval-utils.d.ts +1 -32
- package/dist/services/flow-validate-service.d.ts +51 -0
- package/dist/services/inline-entity-resolver.d.ts +22 -0
- package/dist/services/node-service.d.ts +21 -1
- package/dist/services/packaging-utils.d.ts +15 -2
- package/dist/{shared-utils-pnbvyyb2.js → shared-utils-tqnx96mg.js} +4 -3
- package/dist/solution-auth-8qz5pw7z.js +14 -0
- package/dist/solution-discovery-vqravtkh.js +44 -0
- package/dist/{tidy-service-4fd4mjpb.js → tidy-service-fdctmeww.js} +143 -39
- package/dist/tool.js +17 -14
- package/dist/{tr-5IIHSFW5-hw4cewew.js → tr-GDTLECMM-k5fhmq13.js} +29 -2
- package/dist/tr-GDTLECMM-kngksm3r.js +200 -0
- package/dist/{tr-JMIP7ZSL-c39b6pe4.js → tr-M3F5A6AU-bb0tg39m.js} +235 -28
- package/dist/utils/flow-io.d.ts +2 -1
- package/dist/validation.js +39 -33
- package/dist/{variable-service-xgyaf3xy.js → variable-service-9xfk31pm.js} +16 -12
- package/dist/{wait-for-flow-job-d8m6mqb4.js → wait-for-flow-job-b0vj8828.js} +15 -12
- package/dist/{zh-CN-IFFXSEJS-9wm9gmrv.js → zh-CN-C5G4PC7C-ds9gkptg.js} +235 -28
- package/dist/zh-CN-I5D7WHBD-ge92tbx9.js +200 -0
- package/dist/{zh-CN-R2KU4U5L-tc1hat59.js → zh-CN-I5D7WHBD-sr5h0a98.js} +29 -2
- package/dist/{zh-TW-GNKMELBF-j674515r.js → zh-TW-2AVLM723-288pkc1z.js} +29 -2
- package/dist/zh-TW-2AVLM723-xsmap3gk.js +200 -0
- package/dist/{zh-TW-IYBNYAMG-8727c7v2.js → zh-TW-62HZIG6O-787kdwex.js} +234 -27
- package/package.json +2 -2
- package/dist/debug-conversation-trigger-8fgas95p.js +0 -44
- package/dist/flow-eval-run-api-byx3cacw.js +0 -13
- package/dist/flow-validate-service-ss9nt15j.js +0 -64
- package/dist/input-reader-vhar4g0k.js +0 -11
- package/dist/node-sync-service-42dpmp60.js +0 -40
- package/dist/packager-tool-a5xfcqqr.js +0 -15
- package/dist/packager-tool-epkg5s7f.js +0 -454
- package/dist/packager-tool-pz5nqg0s.js +0 -64
- package/dist/packager-tool-t3ysatjd.js +0 -521
- package/dist/packager-tool-vd6jt4n8.js +0 -208
- package/dist/packager-tool-wv3qf487.js +0 -265
- package/dist/services/flow-debug-service.d.ts +0 -320
- package/dist/services/flow-eval-schema/deterministic-evaluators.d.ts +0 -110
- package/dist/services/flow-eval-schema/evaluator-fields.d.ts +0 -66
- package/dist/services/flow-eval-schema/helpers.d.ts +0 -9
- package/dist/services/flow-eval-schema/index.d.ts +0 -4
- package/dist/services/flow-eval-schema/llm-judge-evaluators.d.ts +0 -174
- package/dist/services/flow-eval-schema/prompts.d.ts +0 -2
- package/dist/services/flow-eval-schema/registry.d.ts +0 -375
- package/dist/services/flow-eval-schema/tool-call-evaluators.d.ts +0 -93
- package/dist/services/flow-eval-schema/types.d.ts +0 -95
- package/dist/services/flow-eval-types.d.ts +0 -6
- package/dist/utils/write-resolved-flow.d.ts +0 -7
- /package/dist/{headless-45dypanh.js → headless-fw8pwyzm.js} +0 -0
- /package/dist/{localization-xecwjpe2.js → localization-d6gjmrsw.js} +0 -0
|
@@ -1,6 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
catchError,
|
|
3
|
+
describeThrownValue,
|
|
4
|
+
pseudonymize,
|
|
5
|
+
recordSuppliedArgumentValues,
|
|
6
|
+
redactError,
|
|
7
|
+
redactHttpDependencyName,
|
|
8
|
+
redactProperties,
|
|
9
|
+
redactSpanName,
|
|
10
|
+
releaseSuppliedArgumentValues,
|
|
11
|
+
singleton
|
|
12
|
+
} from "./packager-tool-t7ahhaer.js";
|
|
1
13
|
import {
|
|
2
14
|
getFileSystem
|
|
3
|
-
} from "./packager-tool-
|
|
15
|
+
} from "./packager-tool-myhbp761.js";
|
|
4
16
|
import {
|
|
5
17
|
__commonJS,
|
|
6
18
|
__require,
|
|
@@ -2100,543 +2112,6 @@ var require_commander = __commonJS(function(exports) {
|
|
|
2100
2112
|
exports.InvalidOptionArgumentError = InvalidArgumentError;
|
|
2101
2113
|
});
|
|
2102
2114
|
|
|
2103
|
-
// ../common/src/telemetry/pseudonymize.ts
|
|
2104
|
-
var PSEUDONYM_DOMAIN = "uipath-cli/telemetry/pseudonym/v1:";
|
|
2105
|
-
var PSEUDONYM_HEX_LENGTH = 32;
|
|
2106
|
-
var SHA256_K = new Uint32Array([
|
|
2107
|
-
1116352408,
|
|
2108
|
-
1899447441,
|
|
2109
|
-
3049323471,
|
|
2110
|
-
3921009573,
|
|
2111
|
-
961987163,
|
|
2112
|
-
1508970993,
|
|
2113
|
-
2453635748,
|
|
2114
|
-
2870763221,
|
|
2115
|
-
3624381080,
|
|
2116
|
-
310598401,
|
|
2117
|
-
607225278,
|
|
2118
|
-
1426881987,
|
|
2119
|
-
1925078388,
|
|
2120
|
-
2162078206,
|
|
2121
|
-
2614888103,
|
|
2122
|
-
3248222580,
|
|
2123
|
-
3835390401,
|
|
2124
|
-
4022224774,
|
|
2125
|
-
264347078,
|
|
2126
|
-
604807628,
|
|
2127
|
-
770255983,
|
|
2128
|
-
1249150122,
|
|
2129
|
-
1555081692,
|
|
2130
|
-
1996064986,
|
|
2131
|
-
2554220882,
|
|
2132
|
-
2821834349,
|
|
2133
|
-
2952996808,
|
|
2134
|
-
3210313671,
|
|
2135
|
-
3336571891,
|
|
2136
|
-
3584528711,
|
|
2137
|
-
113926993,
|
|
2138
|
-
338241895,
|
|
2139
|
-
666307205,
|
|
2140
|
-
773529912,
|
|
2141
|
-
1294757372,
|
|
2142
|
-
1396182291,
|
|
2143
|
-
1695183700,
|
|
2144
|
-
1986661051,
|
|
2145
|
-
2177026350,
|
|
2146
|
-
2456956037,
|
|
2147
|
-
2730485921,
|
|
2148
|
-
2820302411,
|
|
2149
|
-
3259730800,
|
|
2150
|
-
3345764771,
|
|
2151
|
-
3516065817,
|
|
2152
|
-
3600352804,
|
|
2153
|
-
4094571909,
|
|
2154
|
-
275423344,
|
|
2155
|
-
430227734,
|
|
2156
|
-
506948616,
|
|
2157
|
-
659060556,
|
|
2158
|
-
883997877,
|
|
2159
|
-
958139571,
|
|
2160
|
-
1322822218,
|
|
2161
|
-
1537002063,
|
|
2162
|
-
1747873779,
|
|
2163
|
-
1955562222,
|
|
2164
|
-
2024104815,
|
|
2165
|
-
2227730452,
|
|
2166
|
-
2361852424,
|
|
2167
|
-
2428436474,
|
|
2168
|
-
2756734187,
|
|
2169
|
-
3204031479,
|
|
2170
|
-
3329325298
|
|
2171
|
-
]);
|
|
2172
|
-
var SHA256_INITIAL_STATE = new Uint32Array([
|
|
2173
|
-
1779033703,
|
|
2174
|
-
3144134277,
|
|
2175
|
-
1013904242,
|
|
2176
|
-
2773480762,
|
|
2177
|
-
1359893119,
|
|
2178
|
-
2600822924,
|
|
2179
|
-
528734635,
|
|
2180
|
-
1541459225
|
|
2181
|
-
]);
|
|
2182
|
-
function rotr(value, bits) {
|
|
2183
|
-
return (value >>> bits | value << 32 - bits) >>> 0;
|
|
2184
|
-
}
|
|
2185
|
-
function sha256Hex(input) {
|
|
2186
|
-
const bytes = new TextEncoder().encode(input);
|
|
2187
|
-
const paddedLength = bytes.length + 9 + 63 >> 6 << 6;
|
|
2188
|
-
const buffer = new Uint8Array(paddedLength);
|
|
2189
|
-
buffer.set(bytes);
|
|
2190
|
-
buffer[bytes.length] = 128;
|
|
2191
|
-
const view = new DataView(buffer.buffer);
|
|
2192
|
-
const bitLength = bytes.length * 8;
|
|
2193
|
-
view.setUint32(paddedLength - 8, Math.floor(bitLength / 4294967296));
|
|
2194
|
-
view.setUint32(paddedLength - 4, bitLength >>> 0);
|
|
2195
|
-
const state = SHA256_INITIAL_STATE.slice();
|
|
2196
|
-
const schedule = new Uint32Array(64);
|
|
2197
|
-
for (let offset = 0;offset < paddedLength; offset += 64) {
|
|
2198
|
-
for (let i = 0;i < 16; i++) {
|
|
2199
|
-
schedule[i] = view.getUint32(offset + i * 4);
|
|
2200
|
-
}
|
|
2201
|
-
for (let i = 16;i < 64; i++) {
|
|
2202
|
-
const x = schedule[i - 15];
|
|
2203
|
-
const y = schedule[i - 2];
|
|
2204
|
-
const s0 = (rotr(x, 7) ^ rotr(x, 18) ^ x >>> 3) >>> 0;
|
|
2205
|
-
const s1 = (rotr(y, 17) ^ rotr(y, 19) ^ y >>> 10) >>> 0;
|
|
2206
|
-
schedule[i] = schedule[i - 16] + s0 + schedule[i - 7] + s1 >>> 0;
|
|
2207
|
-
}
|
|
2208
|
-
let a = state[0];
|
|
2209
|
-
let b = state[1];
|
|
2210
|
-
let c = state[2];
|
|
2211
|
-
let d = state[3];
|
|
2212
|
-
let e = state[4];
|
|
2213
|
-
let f = state[5];
|
|
2214
|
-
let g = state[6];
|
|
2215
|
-
let h = state[7];
|
|
2216
|
-
for (let i = 0;i < 64; i++) {
|
|
2217
|
-
const s1 = (rotr(e, 6) ^ rotr(e, 11) ^ rotr(e, 25)) >>> 0;
|
|
2218
|
-
const ch = (e & f ^ ~e & g) >>> 0;
|
|
2219
|
-
const temp1 = h + s1 + ch + SHA256_K[i] + schedule[i] >>> 0;
|
|
2220
|
-
const s0 = (rotr(a, 2) ^ rotr(a, 13) ^ rotr(a, 22)) >>> 0;
|
|
2221
|
-
const maj = (a & b ^ a & c ^ b & c) >>> 0;
|
|
2222
|
-
const temp2 = s0 + maj >>> 0;
|
|
2223
|
-
h = g;
|
|
2224
|
-
g = f;
|
|
2225
|
-
f = e;
|
|
2226
|
-
e = d + temp1 >>> 0;
|
|
2227
|
-
d = c;
|
|
2228
|
-
c = b;
|
|
2229
|
-
b = a;
|
|
2230
|
-
a = temp1 + temp2 >>> 0;
|
|
2231
|
-
}
|
|
2232
|
-
state[0] = state[0] + a >>> 0;
|
|
2233
|
-
state[1] = state[1] + b >>> 0;
|
|
2234
|
-
state[2] = state[2] + c >>> 0;
|
|
2235
|
-
state[3] = state[3] + d >>> 0;
|
|
2236
|
-
state[4] = state[4] + e >>> 0;
|
|
2237
|
-
state[5] = state[5] + f >>> 0;
|
|
2238
|
-
state[6] = state[6] + g >>> 0;
|
|
2239
|
-
state[7] = state[7] + h >>> 0;
|
|
2240
|
-
}
|
|
2241
|
-
let hex = "";
|
|
2242
|
-
for (const word of state) {
|
|
2243
|
-
hex += word.toString(16).padStart(8, "0");
|
|
2244
|
-
}
|
|
2245
|
-
return hex;
|
|
2246
|
-
}
|
|
2247
|
-
function resolveSha256Hex() {
|
|
2248
|
-
try {
|
|
2249
|
-
const nodeCrypto = __require("node:crypto");
|
|
2250
|
-
const createHash = nodeCrypto?.createHash;
|
|
2251
|
-
if (typeof createHash !== "function") {
|
|
2252
|
-
return sha256Hex;
|
|
2253
|
-
}
|
|
2254
|
-
const native = (input) => createHash("sha256").update(input, "utf8").digest("hex");
|
|
2255
|
-
return native("abc") === sha256Hex("abc") ? native : sha256Hex;
|
|
2256
|
-
} catch {
|
|
2257
|
-
return sha256Hex;
|
|
2258
|
-
}
|
|
2259
|
-
}
|
|
2260
|
-
var cachedSha256Hex;
|
|
2261
|
-
function digest(input) {
|
|
2262
|
-
cachedSha256Hex ??= resolveSha256Hex();
|
|
2263
|
-
return cachedSha256Hex(input);
|
|
2264
|
-
}
|
|
2265
|
-
function pseudonymize(input) {
|
|
2266
|
-
return digest(`${PSEUDONYM_DOMAIN}${input}`).slice(0, PSEUDONYM_HEX_LENGTH);
|
|
2267
|
-
}
|
|
2268
|
-
|
|
2269
|
-
// ../common/src/singleton.ts
|
|
2270
|
-
var PREFIX = "@uipath/common/";
|
|
2271
|
-
var _g = globalThis;
|
|
2272
|
-
function singleton(ctorOrName) {
|
|
2273
|
-
const name = typeof ctorOrName === "string" ? ctorOrName : ctorOrName.name;
|
|
2274
|
-
const key = Symbol.for(PREFIX + name);
|
|
2275
|
-
return {
|
|
2276
|
-
get(fallback) {
|
|
2277
|
-
return _g[key] ?? fallback;
|
|
2278
|
-
},
|
|
2279
|
-
set(value) {
|
|
2280
|
-
_g[key] = value;
|
|
2281
|
-
},
|
|
2282
|
-
clear() {
|
|
2283
|
-
delete _g[key];
|
|
2284
|
-
},
|
|
2285
|
-
getOrInit(factory, guard) {
|
|
2286
|
-
const existing = _g[key];
|
|
2287
|
-
if (existing != null && typeof existing === "object") {
|
|
2288
|
-
if (!guard || guard(existing)) {
|
|
2289
|
-
return existing;
|
|
2290
|
-
}
|
|
2291
|
-
}
|
|
2292
|
-
const instance = factory();
|
|
2293
|
-
_g[key] = instance;
|
|
2294
|
-
return instance;
|
|
2295
|
-
}
|
|
2296
|
-
};
|
|
2297
|
-
}
|
|
2298
|
-
|
|
2299
|
-
// ../common/src/telemetry/supplied-values.ts
|
|
2300
|
-
var suppliedValuesSlot = singleton("TelemetrySuppliedArgumentValues");
|
|
2301
|
-
function activeEntries() {
|
|
2302
|
-
const existing = suppliedValuesSlot.get();
|
|
2303
|
-
return Array.isArray(existing) ? existing : [];
|
|
2304
|
-
}
|
|
2305
|
-
var MIN_SCRUBBABLE_LENGTH = 4;
|
|
2306
|
-
function recordSuppliedArgumentValues(values) {
|
|
2307
|
-
const flat = [];
|
|
2308
|
-
const push = (value) => {
|
|
2309
|
-
if (Array.isArray(value)) {
|
|
2310
|
-
for (const item of value) {
|
|
2311
|
-
push(item);
|
|
2312
|
-
}
|
|
2313
|
-
return;
|
|
2314
|
-
}
|
|
2315
|
-
if (typeof value === "string" && value.length >= MIN_SCRUBBABLE_LENGTH) {
|
|
2316
|
-
flat.push(value);
|
|
2317
|
-
}
|
|
2318
|
-
};
|
|
2319
|
-
push(values);
|
|
2320
|
-
const entry = { values: flat };
|
|
2321
|
-
suppliedValuesSlot.set([...activeEntries(), entry]);
|
|
2322
|
-
return entry;
|
|
2323
|
-
}
|
|
2324
|
-
function releaseSuppliedArgumentValues(entry) {
|
|
2325
|
-
suppliedValuesSlot.set(activeEntries().filter((held) => held !== entry));
|
|
2326
|
-
}
|
|
2327
|
-
function getSuppliedArgumentValues() {
|
|
2328
|
-
const all = new Set;
|
|
2329
|
-
for (const entry of activeEntries()) {
|
|
2330
|
-
for (const value of entry.values) {
|
|
2331
|
-
all.add(value);
|
|
2332
|
-
}
|
|
2333
|
-
}
|
|
2334
|
-
return [...all].sort((a, b) => b.length - a.length);
|
|
2335
|
-
}
|
|
2336
|
-
|
|
2337
|
-
// ../common/src/telemetry/pii-redactor.ts
|
|
2338
|
-
var REDACTED = "[REDACTED]";
|
|
2339
|
-
var MAX_VALUE_LENGTH = 280;
|
|
2340
|
-
var MAX_STACK_LENGTH = 4096;
|
|
2341
|
-
var MAX_SCAN_LENGTH = MAX_STACK_LENGTH;
|
|
2342
|
-
function truncate(value, maxLength) {
|
|
2343
|
-
return value.length > maxLength ? `${value.slice(0, maxLength)}…` : value;
|
|
2344
|
-
}
|
|
2345
|
-
var SENSITIVE_NAME_TOKENS = new Set([
|
|
2346
|
-
"token",
|
|
2347
|
-
"tokens",
|
|
2348
|
-
"secret",
|
|
2349
|
-
"secrets",
|
|
2350
|
-
"password",
|
|
2351
|
-
"passwords",
|
|
2352
|
-
"pwd",
|
|
2353
|
-
"credential",
|
|
2354
|
-
"credentials",
|
|
2355
|
-
"auth",
|
|
2356
|
-
"authentication",
|
|
2357
|
-
"authorization",
|
|
2358
|
-
"authority",
|
|
2359
|
-
"cert",
|
|
2360
|
-
"certificate",
|
|
2361
|
-
"certificates"
|
|
2362
|
-
]);
|
|
2363
|
-
var SENSITIVE_KEY_PREFIXES = new Set([
|
|
2364
|
-
"api",
|
|
2365
|
-
"access",
|
|
2366
|
-
"client",
|
|
2367
|
-
"private",
|
|
2368
|
-
"public",
|
|
2369
|
-
"signing",
|
|
2370
|
-
"encryption",
|
|
2371
|
-
"session",
|
|
2372
|
-
"master",
|
|
2373
|
-
"shared",
|
|
2374
|
-
"root",
|
|
2375
|
-
"ssh",
|
|
2376
|
-
"rsa",
|
|
2377
|
-
"aes",
|
|
2378
|
-
"hmac",
|
|
2379
|
-
"oauth"
|
|
2380
|
-
]);
|
|
2381
|
-
var UUID_PATTERN = /\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi;
|
|
2382
|
-
var EMAIL_PATTERN = /\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}\b/g;
|
|
2383
|
-
var JWT_PATTERN = /\beyJ[A-Za-z0-9_-]{10,}\.[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+/g;
|
|
2384
|
-
var LONG_TOKEN_PATTERN = /\b[A-Za-z0-9_-]{40,}\b/g;
|
|
2385
|
-
var PADDED_BASE64_PATTERN = /(?<![A-Za-z0-9+/])[A-Za-z0-9+/]{16,}={1,2}(?![A-Za-z0-9+/=])/g;
|
|
2386
|
-
var BASE64_WITH_PLUS_PATTERN = /[A-Za-z0-9+/]{40,}/g;
|
|
2387
|
-
var USER_HOME_PATTERN = /(?<![A-Za-z0-9._-])([/\\])(Users|home|Profiles)([/\\])([^/\\]+)/gi;
|
|
2388
|
-
var UNC_PATH_PATTERN = /(^|[\s"'<>|=,;([{])(\\\\[^\s"'<>|]+)/g;
|
|
2389
|
-
var HOST_PORT_PATTERN = /(?<![/@.\w-])(?!\d+\.\d+\.\d+\.\d+:)[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?(?:\.[A-Za-z0-9](?:[A-Za-z0-9-]*[A-Za-z0-9])?)+:\d{1,5}\b/g;
|
|
2390
|
-
var SOURCE_FILE_EXTENSIONS = new Set([
|
|
2391
|
-
"ts",
|
|
2392
|
-
"tsx",
|
|
2393
|
-
"js",
|
|
2394
|
-
"jsx",
|
|
2395
|
-
"mjs",
|
|
2396
|
-
"cjs",
|
|
2397
|
-
"cts",
|
|
2398
|
-
"mts",
|
|
2399
|
-
"py",
|
|
2400
|
-
"cs",
|
|
2401
|
-
"java",
|
|
2402
|
-
"go",
|
|
2403
|
-
"rs",
|
|
2404
|
-
"rb",
|
|
2405
|
-
"php",
|
|
2406
|
-
"sh",
|
|
2407
|
-
"ps1",
|
|
2408
|
-
"json",
|
|
2409
|
-
"jsonc",
|
|
2410
|
-
"yaml",
|
|
2411
|
-
"yml",
|
|
2412
|
-
"xml",
|
|
2413
|
-
"xaml",
|
|
2414
|
-
"md",
|
|
2415
|
-
"txt",
|
|
2416
|
-
"log",
|
|
2417
|
-
"css",
|
|
2418
|
-
"html",
|
|
2419
|
-
"htm",
|
|
2420
|
-
"csproj",
|
|
2421
|
-
"nuspec",
|
|
2422
|
-
"sql"
|
|
2423
|
-
]);
|
|
2424
|
-
var URL_PATTERN = /\bhttps?:\/\/[^\s,;]+/gi;
|
|
2425
|
-
var QUOTED_LITERAL_MAX_SPAN = 200;
|
|
2426
|
-
var QUOTED_LITERAL_PATTERN = new RegExp([
|
|
2427
|
-
`(?<![A-Za-z0-9])'(?:[^\\
|
|
2428
|
-
]|\\.){2,${QUOTED_LITERAL_MAX_SPAN}}?'(?![A-Za-z0-9])`,
|
|
2429
|
-
`(?<![A-Za-z0-9])"(?:[^\\
|
|
2430
|
-
]|\\.){2,${QUOTED_LITERAL_MAX_SPAN}}?"(?![A-Za-z0-9])`
|
|
2431
|
-
].join("|"), "g");
|
|
2432
|
-
var JSON_BODY_PATTERN = /[{[][^{}[\]:,]*[:,][^{}[\]]*[\]}]/g;
|
|
2433
|
-
var COLLAPSED_BODY = "{…}";
|
|
2434
|
-
var COLLAPSED_BODY_MARKER = "\x01body\x01";
|
|
2435
|
-
var MAX_BODY_NESTING = 8;
|
|
2436
|
-
function collapseJsonBodies(text) {
|
|
2437
|
-
let out = text;
|
|
2438
|
-
for (let pass = 0;pass < MAX_BODY_NESTING; pass++) {
|
|
2439
|
-
const next = out.replace(JSON_BODY_PATTERN, COLLAPSED_BODY_MARKER);
|
|
2440
|
-
if (next === out) {
|
|
2441
|
-
break;
|
|
2442
|
-
}
|
|
2443
|
-
out = next;
|
|
2444
|
-
}
|
|
2445
|
-
return out.split(COLLAPSED_BODY_MARKER).join(COLLAPSED_BODY);
|
|
2446
|
-
}
|
|
2447
|
-
var TRAILING_PROSE_PUNCT = `.,;:!?)]}>'"`;
|
|
2448
|
-
function peelTrailingPunctuation(match) {
|
|
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)];
|
|
2454
|
-
}
|
|
2455
|
-
function redactUrl(raw) {
|
|
2456
|
-
try {
|
|
2457
|
-
const url = new URL(raw);
|
|
2458
|
-
return `${url.protocol}//${url.host}`;
|
|
2459
|
-
} catch {
|
|
2460
|
-
return `url#${pseudonymize(raw)}`;
|
|
2461
|
-
}
|
|
2462
|
-
}
|
|
2463
|
-
function redactValueDetectors(value, maxLength = MAX_VALUE_LENGTH) {
|
|
2464
|
-
let out = truncate(value, MAX_SCAN_LENGTH);
|
|
2465
|
-
out = out.replace(JWT_PATTERN, () => REDACTED);
|
|
2466
|
-
out = out.replace(URL_PATTERN, (match) => {
|
|
2467
|
-
const [core, trailing] = peelTrailingPunctuation(match);
|
|
2468
|
-
return `${redactUrl(core)}${trailing}`;
|
|
2469
|
-
});
|
|
2470
|
-
out = out.replace(USER_HOME_PATTERN, (_match, sep1, folder, sep2) => `${sep1}${folder}${sep2}<user>`);
|
|
2471
|
-
out = out.replace(UNC_PATH_PATTERN, (_match, before, path) => {
|
|
2472
|
-
const [core, trailing] = peelTrailingPunctuation(path);
|
|
2473
|
-
return `${before}unc#${pseudonymize(core)}${trailing}`;
|
|
2474
|
-
});
|
|
2475
|
-
out = out.replace(EMAIL_PATTERN, (match) => `email#${pseudonymize(match)}`);
|
|
2476
|
-
out = out.replace(UUID_PATTERN, (match) => `uuid#${pseudonymize(match)}`);
|
|
2477
|
-
out = out.replace(HOST_PORT_PATTERN, (match) => {
|
|
2478
|
-
const split = match.lastIndexOf(":");
|
|
2479
|
-
const host = match.slice(0, split);
|
|
2480
|
-
const extension = host.slice(host.lastIndexOf(".") + 1).toLowerCase();
|
|
2481
|
-
if (SOURCE_FILE_EXTENSIONS.has(extension)) {
|
|
2482
|
-
return match;
|
|
2483
|
-
}
|
|
2484
|
-
return `host#${pseudonymize(host)}:${match.slice(split + 1)}`;
|
|
2485
|
-
});
|
|
2486
|
-
out = out.replace(PADDED_BASE64_PATTERN, () => REDACTED);
|
|
2487
|
-
out = out.replace(BASE64_WITH_PLUS_PATTERN, (match) => match.includes("+") ? REDACTED : match);
|
|
2488
|
-
out = out.replace(LONG_TOKEN_PATTERN, () => REDACTED);
|
|
2489
|
-
return truncate(out, maxLength);
|
|
2490
|
-
}
|
|
2491
|
-
function redactSpanName(name) {
|
|
2492
|
-
return redactValueDetectors(truncate(name, MAX_SCAN_LENGTH).replace(QUOTED_LITERAL_PATTERN, (match) => `${match[0]}<redacted>${match[0]}`));
|
|
2493
|
-
}
|
|
2494
|
-
var HTTP_DEPENDENCY_NAME = /^([A-Z]+) (\/.*)$/s;
|
|
2495
|
-
function redactHttpDependencyName(name) {
|
|
2496
|
-
const parts = HTTP_DEPENDENCY_NAME.exec(name);
|
|
2497
|
-
if (!parts) {
|
|
2498
|
-
return redactMessage(name);
|
|
2499
|
-
}
|
|
2500
|
-
return `${parts[1]} ${redactMessage(parts[2])}`;
|
|
2501
|
-
}
|
|
2502
|
-
function redactMessage(value) {
|
|
2503
|
-
let out = collapseJsonBodies(truncate(value, MAX_SCAN_LENGTH)).replace(QUOTED_LITERAL_PATTERN, (match) => `${match[0]}<redacted>${match[0]}`);
|
|
2504
|
-
for (const supplied of getSuppliedArgumentValues()) {
|
|
2505
|
-
out = out.split(supplied).join(REDACTED);
|
|
2506
|
-
}
|
|
2507
|
-
return redactValueDetectors(out);
|
|
2508
|
-
}
|
|
2509
|
-
var MESSAGE_NAMES = new Set([
|
|
2510
|
-
"message",
|
|
2511
|
-
"errormessage",
|
|
2512
|
-
"errmessage",
|
|
2513
|
-
"error_message",
|
|
2514
|
-
"msg",
|
|
2515
|
-
"detail",
|
|
2516
|
-
"details",
|
|
2517
|
-
"reason",
|
|
2518
|
-
"instructions",
|
|
2519
|
-
"warning"
|
|
2520
|
-
]);
|
|
2521
|
-
function isFreeFormValue(name, value) {
|
|
2522
|
-
return MESSAGE_NAMES.has(name.toLowerCase()) || /['"{[]/.test(value);
|
|
2523
|
-
}
|
|
2524
|
-
function redactError(error) {
|
|
2525
|
-
const safe = new Error(redactMessage(error.message ?? ""));
|
|
2526
|
-
safe.name = error.name;
|
|
2527
|
-
safe.stack = typeof error.stack === "string" ? redactStack(error.stack) : undefined;
|
|
2528
|
-
return safe;
|
|
2529
|
-
}
|
|
2530
|
-
function redactStack(stack) {
|
|
2531
|
-
const bounded = truncate(stack, MAX_STACK_LENGTH);
|
|
2532
|
-
const firstBreak = bounded.indexOf(`
|
|
2533
|
-
`);
|
|
2534
|
-
if (firstBreak === -1) {
|
|
2535
|
-
return redactMessage(bounded);
|
|
2536
|
-
}
|
|
2537
|
-
return `${redactMessage(bounded.slice(0, firstBreak))}
|
|
2538
|
-
${redactValueDetectors(bounded.slice(firstBreak + 1), MAX_STACK_LENGTH)}`;
|
|
2539
|
-
}
|
|
2540
|
-
function nameTokens(name) {
|
|
2541
|
-
return name.replace(/([a-z0-9])([A-Z])/g, "$1 $2").replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2").split(/[\s._-]+/).map((t) => t.toLowerCase()).filter(Boolean);
|
|
2542
|
-
}
|
|
2543
|
-
function isSensitiveName(name) {
|
|
2544
|
-
const tokens = nameTokens(name);
|
|
2545
|
-
for (let i = 0;i < tokens.length; i++) {
|
|
2546
|
-
const token = tokens[i];
|
|
2547
|
-
if (SENSITIVE_NAME_TOKENS.has(token)) {
|
|
2548
|
-
return true;
|
|
2549
|
-
}
|
|
2550
|
-
if (token === "key" || token === "keys") {
|
|
2551
|
-
const prev = tokens[i - 1];
|
|
2552
|
-
if (prev && SENSITIVE_KEY_PREFIXES.has(prev)) {
|
|
2553
|
-
return true;
|
|
2554
|
-
}
|
|
2555
|
-
}
|
|
2556
|
-
}
|
|
2557
|
-
return false;
|
|
2558
|
-
}
|
|
2559
|
-
function redactProperty(name, value) {
|
|
2560
|
-
if (value === undefined || value === null) {
|
|
2561
|
-
return;
|
|
2562
|
-
}
|
|
2563
|
-
if (isSensitiveName(name)) {
|
|
2564
|
-
return REDACTED;
|
|
2565
|
-
}
|
|
2566
|
-
if (typeof value === "boolean" || typeof value === "number") {
|
|
2567
|
-
return value;
|
|
2568
|
-
}
|
|
2569
|
-
if (typeof value !== "string") {
|
|
2570
|
-
return "[OBJECT]";
|
|
2571
|
-
}
|
|
2572
|
-
return isFreeFormValue(name, value) ? redactMessage(value) : redactValueDetectors(value);
|
|
2573
|
-
}
|
|
2574
|
-
function redactProperties(properties) {
|
|
2575
|
-
const out = {};
|
|
2576
|
-
for (const [name, value] of Object.entries(properties)) {
|
|
2577
|
-
const redacted = redactProperty(name, value);
|
|
2578
|
-
if (redacted !== undefined) {
|
|
2579
|
-
out[name] = redacted;
|
|
2580
|
-
}
|
|
2581
|
-
}
|
|
2582
|
-
return out;
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
// ../common/src/catch-error.ts
|
|
2586
|
-
var MAX_SERIALIZED_LENGTH = 500;
|
|
2587
|
-
var TRUNCATION_SUFFIX = "…(truncated)";
|
|
2588
|
-
var REDACTED2 = "[REDACTED]";
|
|
2589
|
-
function cap(text) {
|
|
2590
|
-
return text.length > MAX_SERIALIZED_LENGTH ? `${text.slice(0, MAX_SERIALIZED_LENGTH)}${TRUNCATION_SUFFIX}` : text;
|
|
2591
|
-
}
|
|
2592
|
-
function omitSensitive(key, value) {
|
|
2593
|
-
return key.length > 0 && isSensitiveName(key) ? REDACTED2 : value;
|
|
2594
|
-
}
|
|
2595
|
-
function describeThrownValue(value) {
|
|
2596
|
-
if (typeof value !== "object" || value === null) {
|
|
2597
|
-
return String(value);
|
|
2598
|
-
}
|
|
2599
|
-
let message;
|
|
2600
|
-
try {
|
|
2601
|
-
message = value.message;
|
|
2602
|
-
} catch {
|
|
2603
|
-
message = undefined;
|
|
2604
|
-
}
|
|
2605
|
-
if (typeof message === "string" && message.length > 0) {
|
|
2606
|
-
return cap(message);
|
|
2607
|
-
}
|
|
2608
|
-
try {
|
|
2609
|
-
const json = JSON.stringify(value, omitSensitive);
|
|
2610
|
-
if (json !== undefined) {
|
|
2611
|
-
return cap(json);
|
|
2612
|
-
}
|
|
2613
|
-
} catch {}
|
|
2614
|
-
return String(value);
|
|
2615
|
-
}
|
|
2616
|
-
function toError(error) {
|
|
2617
|
-
return error instanceof Error ? error : new Error(describeThrownValue(error), { cause: error });
|
|
2618
|
-
}
|
|
2619
|
-
function isPromiseLike(value) {
|
|
2620
|
-
return value !== null && typeof value === "object" && typeof value.then === "function";
|
|
2621
|
-
}
|
|
2622
|
-
function catchError(fnOrPromise) {
|
|
2623
|
-
if (isPromiseLike(fnOrPromise)) {
|
|
2624
|
-
return settlePromiseLike(fnOrPromise);
|
|
2625
|
-
}
|
|
2626
|
-
try {
|
|
2627
|
-
const result = fnOrPromise();
|
|
2628
|
-
if (isPromiseLike(result)) {
|
|
2629
|
-
return settlePromiseLike(result);
|
|
2630
|
-
}
|
|
2631
|
-
return [undefined, result];
|
|
2632
|
-
} catch (error) {
|
|
2633
|
-
return [toError(error), undefined];
|
|
2634
|
-
}
|
|
2635
|
-
}
|
|
2636
|
-
function settlePromiseLike(thenable) {
|
|
2637
|
-
return Promise.resolve(thenable).then((data) => [undefined, data]).catch((error) => [toError(error), undefined]);
|
|
2638
|
-
}
|
|
2639
|
-
|
|
2640
2115
|
// ../common/src/error-graph.ts
|
|
2641
2116
|
function* walkErrorGraph(error) {
|
|
2642
2117
|
const queue = [error];
|
|
@@ -3101,7 +2576,7 @@ function setGlobalLogFilePath(path) {
|
|
|
3101
2576
|
function getGlobalLogFilePath() {
|
|
3102
2577
|
return logFilePathSlot.get("");
|
|
3103
2578
|
}
|
|
3104
|
-
var DEFAULT_LOG_LEVEL =
|
|
2579
|
+
var DEFAULT_LOG_LEVEL = 2 /* WARN */;
|
|
3105
2580
|
|
|
3106
2581
|
class SimpleLogger {
|
|
3107
2582
|
__brand = "SimpleLogger";
|
|
@@ -3401,7 +2876,9 @@ var ErrorDimensions = {
|
|
|
3401
2876
|
Result: "Result",
|
|
3402
2877
|
ErrorCode: "ErrorCode",
|
|
3403
2878
|
Retry: "Retry",
|
|
3404
|
-
ErrorMessage: "ErrorMessage"
|
|
2879
|
+
ErrorMessage: "ErrorMessage",
|
|
2880
|
+
HttpStatus: "HttpStatus",
|
|
2881
|
+
UpstreamErrorCode: "UpstreamErrorCode"
|
|
3405
2882
|
};
|
|
3406
2883
|
var AuthDimensions = {
|
|
3407
2884
|
AuthenticationMethod: "AuthenticationMethod",
|
|
@@ -4391,7 +3868,9 @@ var CLI_ERROR_CODES = [
|
|
|
4391
3868
|
"timeout",
|
|
4392
3869
|
"server_error",
|
|
4393
3870
|
"method_not_allowed",
|
|
3871
|
+
"not_supported",
|
|
4394
3872
|
"configuration_error",
|
|
3873
|
+
"execution_failed",
|
|
4395
3874
|
"unknown_error"
|
|
4396
3875
|
];
|
|
4397
3876
|
var RETRY_HINTS = [
|
|
@@ -5137,8 +4616,8 @@ function carriesOnlyNulls(value) {
|
|
|
5137
4616
|
}
|
|
5138
4617
|
return false;
|
|
5139
4618
|
}
|
|
5140
|
-
function nameList(names,
|
|
5141
|
-
const shown = names.slice(0,
|
|
4619
|
+
function nameList(names, cap = 12) {
|
|
4620
|
+
const shown = names.slice(0, cap).map((n) => `\`${n}\``);
|
|
5142
4621
|
const rest = names.length - shown.length;
|
|
5143
4622
|
return shown.join(", ") + (rest > 0 ? `, and ${rest} more` : "");
|
|
5144
4623
|
}
|
|
@@ -5384,7 +4863,9 @@ var OutputFormatter;
|
|
|
5384
4863
|
[ErrorDimensions.Result]: data.Result,
|
|
5385
4864
|
[ErrorDimensions.ErrorCode]: data.ErrorCode,
|
|
5386
4865
|
[ErrorDimensions.Retry]: data.Retry,
|
|
5387
|
-
[ErrorDimensions.ErrorMessage]: data.Message
|
|
4866
|
+
[ErrorDimensions.ErrorMessage]: data.Message,
|
|
4867
|
+
[ErrorDimensions.HttpStatus]: data.Context?.httpStatus?.toString(),
|
|
4868
|
+
[ErrorDimensions.UpstreamErrorCode]: data.Context?.errorCode
|
|
5388
4869
|
});
|
|
5389
4870
|
}
|
|
5390
4871
|
logOutput(normalizeOutputKeys(envelope), getOutputFormat());
|
|
@@ -5905,25 +5386,6 @@ Command.prototype.trackedAction = function(context, fn, properties) {
|
|
|
5905
5386
|
});
|
|
5906
5387
|
};
|
|
5907
5388
|
|
|
5908
|
-
// ../common/src/content-hash.ts
|
|
5909
|
-
function isBrowserRuntime() {
|
|
5910
|
-
const runtime = globalThis;
|
|
5911
|
-
return typeof runtime.window !== "undefined" && typeof runtime.document !== "undefined";
|
|
5912
|
-
}
|
|
5913
|
-
async function hashContent(content) {
|
|
5914
|
-
const encoder = new TextEncoder;
|
|
5915
|
-
const bytes = encoder.encode(content);
|
|
5916
|
-
if (globalThis.crypto?.subtle) {
|
|
5917
|
-
const digest2 = await globalThis.crypto.subtle.digest("SHA-256", bytes);
|
|
5918
|
-
return Array.from(new Uint8Array(digest2), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
5919
|
-
}
|
|
5920
|
-
if (!isBrowserRuntime()) {
|
|
5921
|
-
const crypto2 = await import("node:crypto");
|
|
5922
|
-
return crypto2.createHash("sha256").update(content, "utf-8").digest("hex");
|
|
5923
|
-
}
|
|
5924
|
-
throw new Error("Unable to compute SHA-256 hash in this environment.");
|
|
5925
|
-
}
|
|
5926
|
-
|
|
5927
5389
|
// ../common/src/package-metadata-options.ts
|
|
5928
5390
|
function registerPackageMetadataOptions(command) {
|
|
5929
5391
|
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");
|
|
@@ -6408,6 +5870,11 @@ var REASON_BY_OUTCOME = {
|
|
|
6408
5870
|
[PollOutcome.Interrupted]: "poll_failed",
|
|
6409
5871
|
[PollOutcome.Aborted]: "poll_aborted"
|
|
6410
5872
|
};
|
|
5873
|
+
// ../common/src/shell-quote.ts
|
|
5874
|
+
function quoteForShell(value) {
|
|
5875
|
+
return `'${value.replace(/'/g, "'\\''")}'`;
|
|
5876
|
+
}
|
|
5877
|
+
|
|
6411
5878
|
// ../common/src/stdin.ts
|
|
6412
5879
|
async function readStdin() {
|
|
6413
5880
|
if (process.stdin.isTTY) {
|
|
@@ -6524,204 +5991,24 @@ var savedOriginalsSlot = singleton("ConsoleGuardOriginals");
|
|
|
6524
5991
|
var UIPATH_HOME_DIR = ".uipath";
|
|
6525
5992
|
var DEFAULT_PAGE_SIZE = 50;
|
|
6526
5993
|
var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
|
|
6527
|
-
// ../common/src/
|
|
6528
|
-
|
|
6529
|
-
|
|
6530
|
-
"
|
|
6531
|
-
|
|
6532
|
-
|
|
6533
|
-
|
|
6534
|
-
|
|
6535
|
-
|
|
6536
|
-
|
|
6537
|
-
|
|
6538
|
-
|
|
6539
|
-
|
|
6540
|
-
|
|
6541
|
-
|
|
6542
|
-
|
|
6543
|
-
"
|
|
6544
|
-
|
|
6545
|
-
"case",
|
|
6546
|
-
"catch",
|
|
6547
|
-
"char",
|
|
6548
|
-
"checked",
|
|
6549
|
-
"class",
|
|
6550
|
-
"const",
|
|
6551
|
-
"continue",
|
|
6552
|
-
"decimal",
|
|
6553
|
-
"default",
|
|
6554
|
-
"delegate",
|
|
6555
|
-
"do",
|
|
6556
|
-
"double",
|
|
6557
|
-
"else",
|
|
6558
|
-
"enum",
|
|
6559
|
-
"event",
|
|
6560
|
-
"explicit",
|
|
6561
|
-
"extern",
|
|
6562
|
-
"false",
|
|
6563
|
-
"finally",
|
|
6564
|
-
"fixed",
|
|
6565
|
-
"float",
|
|
6566
|
-
"for",
|
|
6567
|
-
"foreach",
|
|
6568
|
-
"goto",
|
|
6569
|
-
"if",
|
|
6570
|
-
"implicit",
|
|
6571
|
-
"in",
|
|
6572
|
-
"int",
|
|
6573
|
-
"interface",
|
|
6574
|
-
"internal",
|
|
6575
|
-
"is",
|
|
6576
|
-
"lock",
|
|
6577
|
-
"long",
|
|
6578
|
-
"namespace",
|
|
6579
|
-
"new",
|
|
6580
|
-
"null",
|
|
6581
|
-
"object",
|
|
6582
|
-
"operator",
|
|
6583
|
-
"out",
|
|
6584
|
-
"override",
|
|
6585
|
-
"params",
|
|
6586
|
-
"private",
|
|
6587
|
-
"protected",
|
|
6588
|
-
"public",
|
|
6589
|
-
"readonly",
|
|
6590
|
-
"ref",
|
|
6591
|
-
"return",
|
|
6592
|
-
"sbyte",
|
|
6593
|
-
"sealed",
|
|
6594
|
-
"short",
|
|
6595
|
-
"sizeof",
|
|
6596
|
-
"stackalloc",
|
|
6597
|
-
"static",
|
|
6598
|
-
"string",
|
|
6599
|
-
"struct",
|
|
6600
|
-
"switch",
|
|
6601
|
-
"this",
|
|
6602
|
-
"throw",
|
|
6603
|
-
"true",
|
|
6604
|
-
"try",
|
|
6605
|
-
"typeof",
|
|
6606
|
-
"uint",
|
|
6607
|
-
"ulong",
|
|
6608
|
-
"unchecked",
|
|
6609
|
-
"unsafe",
|
|
6610
|
-
"ushort",
|
|
6611
|
-
"using",
|
|
6612
|
-
"virtual",
|
|
6613
|
-
"void",
|
|
6614
|
-
"volatile",
|
|
6615
|
-
"while",
|
|
6616
|
-
"addhandler",
|
|
6617
|
-
"addressof",
|
|
6618
|
-
"alias",
|
|
6619
|
-
"and",
|
|
6620
|
-
"andalso",
|
|
6621
|
-
"boolean",
|
|
6622
|
-
"byref",
|
|
6623
|
-
"byval",
|
|
6624
|
-
"call",
|
|
6625
|
-
"cbool",
|
|
6626
|
-
"cbyte",
|
|
6627
|
-
"cchar",
|
|
6628
|
-
"cdate",
|
|
6629
|
-
"cdbl",
|
|
6630
|
-
"cdec",
|
|
6631
|
-
"cint",
|
|
6632
|
-
"clng",
|
|
6633
|
-
"cobj",
|
|
6634
|
-
"csbyte",
|
|
6635
|
-
"cshort",
|
|
6636
|
-
"csng",
|
|
6637
|
-
"cstr",
|
|
6638
|
-
"ctype",
|
|
6639
|
-
"cuint",
|
|
6640
|
-
"culng",
|
|
6641
|
-
"cushort",
|
|
6642
|
-
"date",
|
|
6643
|
-
"declare",
|
|
6644
|
-
"dim",
|
|
6645
|
-
"directcast",
|
|
6646
|
-
"each",
|
|
6647
|
-
"elseif",
|
|
6648
|
-
"end",
|
|
6649
|
-
"endif",
|
|
6650
|
-
"erase",
|
|
6651
|
-
"error",
|
|
6652
|
-
"exit",
|
|
6653
|
-
"friend",
|
|
6654
|
-
"function",
|
|
6655
|
-
"get",
|
|
6656
|
-
"gettype",
|
|
6657
|
-
"getxmlnamespace",
|
|
6658
|
-
"global",
|
|
6659
|
-
"gosub",
|
|
6660
|
-
"goto",
|
|
6661
|
-
"handles",
|
|
6662
|
-
"implements",
|
|
6663
|
-
"imports",
|
|
6664
|
-
"inherits",
|
|
6665
|
-
"integer",
|
|
6666
|
-
"isnot",
|
|
6667
|
-
"let",
|
|
6668
|
-
"lib",
|
|
6669
|
-
"like",
|
|
6670
|
-
"loop",
|
|
6671
|
-
"me",
|
|
6672
|
-
"mod",
|
|
6673
|
-
"module",
|
|
6674
|
-
"mustinherit",
|
|
6675
|
-
"mustoverride",
|
|
6676
|
-
"mybase",
|
|
6677
|
-
"myclass",
|
|
6678
|
-
"narrowing",
|
|
6679
|
-
"next",
|
|
6680
|
-
"not",
|
|
6681
|
-
"nothing",
|
|
6682
|
-
"notinheritable",
|
|
6683
|
-
"notoverridable",
|
|
6684
|
-
"of",
|
|
6685
|
-
"on",
|
|
6686
|
-
"option",
|
|
6687
|
-
"optional",
|
|
6688
|
-
"or",
|
|
6689
|
-
"orelse",
|
|
6690
|
-
"overloads",
|
|
6691
|
-
"overridable",
|
|
6692
|
-
"overrides",
|
|
6693
|
-
"paramarray",
|
|
6694
|
-
"partial",
|
|
6695
|
-
"property",
|
|
6696
|
-
"raiseevent",
|
|
6697
|
-
"redim",
|
|
6698
|
-
"rem",
|
|
6699
|
-
"removehandler",
|
|
6700
|
-
"resume",
|
|
6701
|
-
"select",
|
|
6702
|
-
"set",
|
|
6703
|
-
"shadows",
|
|
6704
|
-
"shared",
|
|
6705
|
-
"single",
|
|
6706
|
-
"step",
|
|
6707
|
-
"stop",
|
|
6708
|
-
"structure",
|
|
6709
|
-
"sub",
|
|
6710
|
-
"synclock",
|
|
6711
|
-
"then",
|
|
6712
|
-
"to",
|
|
6713
|
-
"trycast",
|
|
6714
|
-
"uinteger",
|
|
6715
|
-
"ushort",
|
|
6716
|
-
"variant",
|
|
6717
|
-
"wend",
|
|
6718
|
-
"when",
|
|
6719
|
-
"widening",
|
|
6720
|
-
"with",
|
|
6721
|
-
"withevents",
|
|
6722
|
-
"writeonly",
|
|
6723
|
-
"xor"
|
|
6724
|
-
]);
|
|
5994
|
+
// ../common/src/content-hash.ts
|
|
5995
|
+
function isBrowserRuntime() {
|
|
5996
|
+
const runtime = globalThis;
|
|
5997
|
+
return typeof runtime.window !== "undefined" && typeof runtime.document !== "undefined";
|
|
5998
|
+
}
|
|
5999
|
+
async function hashContent(content) {
|
|
6000
|
+
const encoder = new TextEncoder;
|
|
6001
|
+
const bytes = encoder.encode(content);
|
|
6002
|
+
if (globalThis.crypto?.subtle) {
|
|
6003
|
+
const digest = await globalThis.crypto.subtle.digest("SHA-256", bytes);
|
|
6004
|
+
return Array.from(new Uint8Array(digest), (byte) => byte.toString(16).padStart(2, "0")).join("");
|
|
6005
|
+
}
|
|
6006
|
+
if (!isBrowserRuntime()) {
|
|
6007
|
+
const crypto2 = await import("node:crypto");
|
|
6008
|
+
return crypto2.createHash("sha256").update(content, "utf-8").digest("hex");
|
|
6009
|
+
}
|
|
6010
|
+
throw new Error("Unable to compute SHA-256 hash in this environment.");
|
|
6011
|
+
}
|
|
6725
6012
|
// ../common/src/error-instructions.ts
|
|
6726
6013
|
function extractHttpStatus(err) {
|
|
6727
6014
|
if (!err || typeof err !== "object")
|
|
@@ -6811,6 +6098,16 @@ var HOST_GLOBAL_FLAGS = [
|
|
|
6811
6098
|
];
|
|
6812
6099
|
var VALUE_OPTIONS = new Set(HOST_GLOBAL_OPTIONS_WITH_VALUE);
|
|
6813
6100
|
var BOOLEAN_FLAGS = new Set(HOST_GLOBAL_FLAGS);
|
|
6101
|
+
// ../common/src/http-status.ts
|
|
6102
|
+
function httpStatusOf(error) {
|
|
6103
|
+
if (!error || typeof error !== "object") {
|
|
6104
|
+
return;
|
|
6105
|
+
}
|
|
6106
|
+
if ("response" in error && error.response && typeof error.response === "object" && "status" in error.response && typeof error.response.status === "number") {
|
|
6107
|
+
return error.response.status;
|
|
6108
|
+
}
|
|
6109
|
+
return "status" in error && typeof error.status === "number" ? error.status : undefined;
|
|
6110
|
+
}
|
|
6814
6111
|
// ../common/src/interactivity-context.ts
|
|
6815
6112
|
var modeSlot = singleton("InteractivityMode");
|
|
6816
6113
|
var interactiveFlagSlot = singleton("InteractiveFlag");
|
|
@@ -6862,6 +6159,35 @@ function warnDeprecatedOptionAlias(deprecatedFlag, preferredFlag) {
|
|
|
6862
6159
|
getOutputSink().writeErr(`[WARN] ${deprecatedFlag} is deprecated. Use ${preferredFlag} instead.
|
|
6863
6160
|
`);
|
|
6864
6161
|
}
|
|
6162
|
+
function addDeprecatedOptionAlias(command, deprecatedFlags, preferredLong) {
|
|
6163
|
+
const preferred = command.options.find((option) => option.long === preferredLong);
|
|
6164
|
+
if (preferred === undefined) {
|
|
6165
|
+
throw new Error(`${preferredLong} must be registered before its deprecated alias`);
|
|
6166
|
+
}
|
|
6167
|
+
const deprecated = new Option(deprecatedFlags, `Deprecated alias for ${preferredLong}`).hideHelp();
|
|
6168
|
+
const preferredKey = preferred.attributeName();
|
|
6169
|
+
const deprecatedLabel = [deprecated.short, deprecated.long].filter((flag) => flag !== undefined).join("/");
|
|
6170
|
+
let aliasUsed = false;
|
|
6171
|
+
const conflict = () => command.error(`error: option '${deprecated.flags}' cannot be used with option '${preferred.flags}'`, {
|
|
6172
|
+
code: "commander.conflictingOption",
|
|
6173
|
+
exitCode: EXIT_CODES.ValidationError
|
|
6174
|
+
});
|
|
6175
|
+
command.on(`option:${preferred.name()}`, () => {
|
|
6176
|
+
if (aliasUsed)
|
|
6177
|
+
conflict();
|
|
6178
|
+
});
|
|
6179
|
+
command.on(`option:${deprecated.name()}`, (value) => {
|
|
6180
|
+
if (!aliasUsed) {
|
|
6181
|
+
if (command.getOptionValueSource(preferredKey) === "cli") {
|
|
6182
|
+
conflict();
|
|
6183
|
+
}
|
|
6184
|
+
warnDeprecatedOptionAlias(deprecatedLabel, preferredLong);
|
|
6185
|
+
aliasUsed = true;
|
|
6186
|
+
}
|
|
6187
|
+
command.setOptionValueWithSource(preferredKey, value, "cli");
|
|
6188
|
+
});
|
|
6189
|
+
return command.addOption(deprecated);
|
|
6190
|
+
}
|
|
6865
6191
|
var TENANT_SWITCH_COMMAND = "uip login tenant set <tenant>";
|
|
6866
6192
|
function createHiddenDeprecatedTenantOption(flags = "-t, --tenant <tenant-name>") {
|
|
6867
6193
|
return new Option(flags, `Tenant name. Deprecated; use ${TENANT_SWITCH_COMMAND} to switch active tenants.`).hideHelp().argParser((tenant) => {
|
|
@@ -7040,6 +6366,6 @@ function trackShipSucceeded(payload) {
|
|
|
7040
6366
|
}
|
|
7041
6367
|
// ../common/src/tool-provider.ts
|
|
7042
6368
|
var factorySlot = singleton("PackagerFactoryProvider");
|
|
7043
|
-
export {
|
|
6369
|
+
export { carriedInstructions, extractErrorMessage, extractErrorMessageSync, appendOption, ATTACHMENT_INSTRUCTIONS, ATTACHMENT_UPLOAD_INSTRUCTIONS, parseAttachmentSpec, resolveAttachmentInputs, getOutputSink, logger, CommandDimensions, ShipDimensions, PackagerDimensions, DebugTelemetryProvider, NodeContextStorage, TelemetryService, RESULTS, EXIT_CODES, Pagination, pascalCaseDataKeys, OutputFormatter, summarizePlatformBody, InvalidArgumentError, Command, Option, processContext, UIPATH_HOME_DIR, DEFAULT_PAGE_SIZE, hashContent, instructionsFor, isGuid, httpStatusOf, mimeTypeForFileName, addDeprecatedOptionAlias, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, registerPackageMetadataOptions, mapPackageMetadataOptions, msToDuration, PollOutcome, ErrorDecision, MIN_INTERVAL_MS, pollUntil, isTerminalStatus, isFailureStatus, ScreenLogger, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, quoteForShell, unsupportedSolutionProjectType, readStdin, ConsoleTelemetryProvider, splitPackagedName, trackShipSucceeded };
|
|
7044
6370
|
|
|
7045
|
-
//# debugId=
|
|
6371
|
+
//# debugId=B3728F27B07557C964756E2164756E21
|