@uipath/flow-tool 1.206.0-preview.306 → 1.207.0-preview.307
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/THIRD-PARTY-NOTICES.md +12 -12
- package/dist/{applicationinsights-web-8m26566f.js → applicationinsights-web-c6epsatg.js} +1 -1
- package/dist/{authoring-az69rn0j.js → authoring-f5ttjy3d.js} +5 -5
- package/dist/{binding-service-jdzw5h8a.js → binding-service-b4kes1cr.js} +37 -34
- package/dist/{browser-strategy-gnftxwsf.js → browser-strategy-1nk8hgcf.js} +1 -1
- package/dist/case-catalog-h4fjn6q3.js +304 -0
- package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
- package/dist/{connector-service-yq01bg3n.js → connector-service-xjszs9v3.js} +156 -76
- package/dist/{conversion-7O2PDOQB-xx5zfw6n.js → conversion-A2KZVSOA-313011c5.js} +256 -90
- package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
- package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-NX7YTOSY-xvwqrst4.js} +1282 -10
- package/dist/{de-2BEKRUMY-MD7L477H-7mwat6r6.js → de-HF4GJ4EK-xrrajtht.js} +1277 -15
- package/dist/{de-VQWT6L5Y-mch4qwyv.js → de-IQ44WEAK-ayb953tp.js} +19 -4
- package/dist/{de-3CU65EDB-r7r10am9.js → de-T4OCQPNU-hrqdjart.js} +6 -6
- package/dist/{debug-conversation-trigger-62ebex43.js → debug-conversation-trigger-j20ms2xc.js} +4 -9
- package/dist/{debug-http-client-ykzhg1zx.js → debug-http-client-fypqjmfs.js} +6 -5
- package/dist/{debug-service-xq8vhrkq.js → debug-service-zv5hj0cx.js} +11 -6
- package/dist/{edge-service-w5jbtehr.js → edge-service-8jrhdfvf.js} +41 -31
- package/dist/{elk.bundled-phy0zc81.js → elk.bundled-pfmz610v.js} +1 -1
- package/dist/{embedded-file-reader-pxpwcq3n.js → embedded-file-reader-k94wt612.js} +16 -16
- package/dist/{en-LAVDF7IQ-ba7wzsxp.js → en-5JIPZTS5-v0f9wmd2.js} +4 -2
- package/dist/{en-X6T4SP2Y-FPGCJIFV-wsbs6fqx.js → en-ETY46SDS-RI6EZCN6-x64e1cks.js} +67 -3
- package/dist/{en-X6T4SP2Y-xe57av1w.js → en-ETY46SDS-yfqhqvbx.js} +66 -2
- package/dist/{en-WPCQ4JKF-jnj0q4e1.js → en-JZXY3PYE-m54g0zx7.js} +4 -4
- package/dist/{en-LQHKFSEY-jz2knr92.js → en-LQHKFSEY-bypy1p39.js} +1 -1
- package/dist/{en-U2NSIIZN-whenw6wh.js → en-T6VSEF3E-1hq4zfrt.js} +5 -3
- package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
- package/dist/{es-7ZTQTGKN-TXQBFYRA-q5v6wcmn.js → es-IYP2OLUY-7SKYGF6A-rd9jrktp.js} +1272 -11
- package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
- package/dist/{es-MX-S2RFDGDE-x9r0tv30.js → es-MX-A2DFN7CA-q5m62f60.js} +19 -4
- package/dist/{es-MX-IHGRIEWH-23X37OPS-vx539dfs.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -15
- package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-D74A6FRL-y7xh0r57.js} +1281 -10
- package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
- package/dist/{es-MX-F7ZEHSNE-gxpm47vv.js → es-MX-YQNHSXDT-fd5ybreb.js} +6 -6
- package/dist/{es-EP563JWQ-1agj5n4e.js → es-TNUPGHGG-886me0sq.js} +19 -4
- package/dist/{es-KHVY67FO-natcvmmm.js → es-YHECPVFB-7jsrxa01.js} +6 -6
- package/dist/extraction-availability-service-h08mngty.js +343 -0
- package/dist/{first-party-service-6b9ajm57.js → first-party-service-qfg2m05s.js} +1 -1
- package/dist/{flow-api-1hr7z6qc.js → flow-api-bmg7beey.js} +15 -12
- package/dist/{flow-debug-service-vt2k0v46.js → flow-debug-service-jb9jxat1.js} +232 -156
- package/dist/flow-eval-node-target-scxb918a.js +31 -0
- package/dist/flow-eval-run-api-g6sphtf3.js +11 -0
- package/dist/{flow-eval-run-service-vh2041qg.js → flow-eval-run-service-n68xb9sk.js} +116 -119
- package/dist/{flow-eval-service-q2zp54gq.js → flow-eval-service-88qyrg7d.js} +141 -337
- package/dist/{flow-init-sdk-source-vg1ckdrf.js → flow-init-sdk-source-t2q2w6v7.js} +5 -5
- package/dist/flow-init-service-v6jvdmqa.js +27 -0
- package/dist/flow-io-4z79xnb3.js +29 -0
- package/dist/{flow-migrate-service-wgrz2msp.js → flow-migrate-service-gbdh07zh.js} +20 -20
- package/dist/{flow-pack-service-kze10925.js → flow-pack-service-gca3ekj7.js} +89 -90
- package/dist/flow-validate-service-z0z4ndn8.js +49 -0
- package/dist/{fr-7LK3QUWT-a94yejcs.js → fr-EPBGOBOP-rs7qy97k.js} +19 -4
- package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-3ANDQPI3-gjhmym96.js} +1282 -10
- package/dist/{fr-7ZDL4MVO-CXMRZDOF-b816xj36.js → fr-NISALSPL-vzfmygd7.js} +1277 -15
- package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
- package/dist/{fr-I42FODC5-p80x5v4b.js → fr-W3AFCEDL-cjfr0xqp.js} +6 -6
- package/dist/{governance-fetcher-y0q4m57j.js → governance-fetcher-26h7eqrk.js} +7 -7
- package/dist/{headless-41t9wwb7.js → headless-23ywyx9h.js} +390 -195
- package/dist/{hitl-service-8rvw1zsh.js → hitl-service-v94wsz1f.js} +11 -11
- package/dist/{index-wss1mf5j.js → index-9a52zr4w.js} +3033 -767
- package/dist/{index-t2f7scza.js → index-db1djbzm.js} +12 -8
- package/dist/{index-amqqhge1.js → index-ewg6ygg0.js} +1 -1
- package/dist/{index-r44xc976.js → index-eyjrdzgx.js} +5 -5
- package/dist/{index-7fet3f0s.js → index-h67w2p9p.js} +3 -3
- package/dist/index-kwrhrb9p.js +161 -0
- package/dist/{index-f5kq7265.js → index-r6crd7tx.js} +6 -4
- package/dist/{index-ng011fzs.js → index-r6y07e14.js} +94 -74
- package/dist/{index-vvf52vnn.js → index-re7r0ezw.js} +34 -27
- package/dist/{index-5y5pbdx5.js → index-sazh9ymk.js} +13 -11
- package/dist/{index-5pzp2qeb.js → index-v3w1930f.js} +18 -18
- package/dist/{index-d4bdedx3.js → index-ynw2efd8.js} +6 -4
- package/dist/index.js +16 -14
- package/dist/{index.umd.min-ttg1qc0x.js → index.umd.min-5yxdz5j3.js} +1 -1
- package/dist/init.js +18 -17
- package/dist/{inline-entity-resolver-aty0xw8s.js → inline-entity-resolver-r7ebmssg.js} +11 -11
- package/dist/input-reader-3zvbsn6a.js +12 -0
- package/dist/integration-service-fetcher-0vdd4pbb.js +65 -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/{ja-LGAM5HKR-NTPKIZEM-aaj773vd.js → ja-HTS2Q4YG-7Q6WUI6H-j8dkhe93.js} +1278 -11
- package/dist/{ja-WY2W6733-ayr36h1f.js → ja-HWFIXC2V-gg9xvhsv.js} +19 -4
- package/dist/{ja-GI3OUHPZ-28fy60r0.js → ja-WOANIGX4-qnyzk2t8.js} +6 -6
- package/dist/{jmespath-wwym30dp.js → jmespath-dbsejrwn.js} +1 -1
- package/dist/json-input-pj18qjt0.js +17 -0
- package/dist/{known-types-v9sxcq1c.js → known-types-pen5h5kz.js} +4 -4
- package/dist/{ko-7B4SUZB7-2SLI636D-khdzwz6c.js → ko-3JFGTMNY-VT6UQ3IS-z5n880em.js} +1272 -11
- package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
- package/dist/{ko-H2RGQWKJ-9696w762.js → ko-L3BMYD3Q-exfhqfbh.js} +19 -4
- package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
- package/dist/{ko-RYKAL74T-10m4z8vw.js → ko-RMOVRC7M-whyynn7n.js} +6 -6
- package/dist/library-option-9fqvdh8v.js +14 -0
- package/dist/localization-axzmx1mb.js +45 -0
- package/dist/{maestro-automate-entry-d1v5q5mv.js → maestro-automate-entry-mrap5xmt.js} +2 -2
- package/dist/manifest-hmeqvk74.js +60 -0
- package/dist/node-service-d6211mt9.js +65 -0
- package/dist/{node-strategy-wrjxmbzt.js → node-strategy-2r78gtca.js} +2 -2
- package/dist/{node-sync-service-6h12t41d.js → node-sync-service-6wbypdgb.js} +22 -15
- package/dist/node-w3wny6qw.js +172 -0
- package/dist/packager-tool-0x8g8b5r.js +25 -0
- package/dist/{packager-tool-vgrswa8p.js → packager-tool-1db1wqdy.js} +30 -8
- package/dist/packager-tool-1yew22sn.js +9 -0
- package/dist/{packager-tool-14rdgz3c.js → packager-tool-3sxg16ft.js} +7 -7
- package/dist/packager-tool-40bxn7j2.js +63 -0
- package/dist/{packager-tool-6an893wm.js → packager-tool-4f4jp7ez.js} +3 -3
- package/dist/packager-tool-4gh9ftn8.js +224 -0
- package/dist/{packager-tool-pxq0bwp0.js → packager-tool-4hn7v05x.js} +16 -9
- package/dist/packager-tool-4skf6ak1.js +31 -0
- package/dist/{packager-tool-951nhh3e.js → packager-tool-5n1v6y3q.js} +1 -1
- package/dist/{packager-tool-2b0tn4p4.js → packager-tool-6azsz9h8.js} +7 -7
- package/dist/{packager-tool-zydkpqta.js → packager-tool-6sqq0mzd.js} +330 -902
- package/dist/{packager-tool-54jdtyk4.js → packager-tool-7d6y5paj.js} +11 -11
- package/dist/{packager-tool-ac6rvny7.js → packager-tool-7re5d8aq.js} +1139 -466
- package/dist/{packager-tool-4w37xezc.js → packager-tool-7tmtjb7p.js} +13 -13
- package/dist/{packager-tool-6an563h8.js → packager-tool-7wpb19zf.js} +10 -3
- package/dist/packager-tool-8qc7ram5.js +16 -0
- package/dist/packager-tool-942v78s9.js +40 -0
- package/dist/packager-tool-9tv5cyhr.js +16 -0
- package/dist/{packager-tool-7atc775f.js → packager-tool-ajx79m52.js} +1 -1
- package/dist/{packager-tool-p7f12rkc.js → packager-tool-b14qj57y.js} +9 -7
- package/dist/packager-tool-bbq5kbb9.js +318 -0
- package/dist/{packager-tool-xhrm7cgz.js → packager-tool-bcsjm5hv.js} +470 -315
- package/dist/{packager-tool-xdaxdc00.js → packager-tool-bn09xgy8.js} +14 -14
- package/dist/{packager-tool-m30d5s5s.js → packager-tool-bv24wxxz.js} +24 -10
- package/dist/{packager-tool-1qg04b7q.js → packager-tool-bzcphfa8.js} +4 -2
- package/dist/packager-tool-c8mn8jr0.js +1060 -0
- package/dist/{packager-tool-gdpw0daf.js → packager-tool-dmhmcav3.js} +3773 -2625
- package/dist/{packager-tool-vb1ect63.js → packager-tool-e8bxpwdp.js} +21 -21
- package/dist/{packager-tool-m1y5ah6s.js → packager-tool-f3htkspn.js} +215 -233
- package/dist/{packager-tool-y1bcfvcs.js → packager-tool-frt20zp9.js} +2 -2
- package/dist/packager-tool-geh2qybm.js +179 -0
- package/dist/{packager-tool-1rhch6b5.js → packager-tool-gjjr2a2w.js} +66 -19
- package/dist/{packager-tool-v1q6601f.js → packager-tool-hyx81x30.js} +584 -651
- package/dist/{packager-tool-67h9vcvz.js → packager-tool-j6m8nkms.js} +1123 -295
- package/dist/{packager-tool-64r7e4ek.js → packager-tool-jjnfwfd4.js} +2 -2
- package/dist/packager-tool-kh1taypp.js +41 -0
- package/dist/{packager-tool-dc12ytg5.js → packager-tool-krr2x2ny.js} +10 -10
- package/dist/{packager-tool-pdt4jmnw.js → packager-tool-m2h98d2z.js} +246 -61
- package/dist/{packager-tool-9m5vba43.js → packager-tool-md1vcqh4.js} +233 -14
- package/dist/{packager-tool-4g87fbz6.js → packager-tool-mm6a12y4.js} +8 -8
- package/dist/{packager-tool-2n6eg5eq.js → packager-tool-mvzswn9n.js} +134 -68
- package/dist/{packager-tool-x4xdtsbp.js → packager-tool-n4fky033.js} +15328 -7171
- package/dist/{packager-tool-hyd7qpfw.js → packager-tool-npm5tzpt.js} +489 -118
- package/dist/packager-tool-p8ncdnsj.js +30 -0
- package/dist/{packager-tool-m126jzdd.js → packager-tool-qkdbfkev.js} +14 -11
- package/dist/{packager-tool-7mxn3e7j.js → packager-tool-qtz83h01.js} +4 -2
- package/dist/{packager-tool-hk0fnvz5.js → packager-tool-qx8wvedy.js} +1 -1
- package/dist/{packager-tool-q2kwk5bf.js → packager-tool-qyhvgenw.js} +6 -4
- package/dist/{packager-tool-6pyaaxzk.js → packager-tool-rcjtmknf.js} +351 -42
- package/dist/{packager-tool-jjkypwge.js → packager-tool-s8jxyjgj.js} +15 -4
- package/dist/packager-tool-swvgkcq7.js +5973 -0
- package/dist/{packager-tool-fzgfb0jt.js → packager-tool-t0e7fvqz.js} +1228 -759
- package/dist/packager-tool-t0zz0jtb.js +423 -0
- package/dist/{packager-tool-p123mtfx.js → packager-tool-tgawhrva.js} +58 -16
- package/dist/{packager-tool-yewnsyag.js → packager-tool-vg16h3pk.js} +80 -6
- package/dist/{packager-tool-dbc4hv4n.js → packager-tool-vtz6gvav.js} +8 -8
- package/dist/{packager-tool-f4t73ja0.js → packager-tool-wk6jaz9m.js} +228 -487
- package/dist/packager-tool-wvf6b31h.js +50 -0
- package/dist/packager-tool-xgh2t48c.js +255 -0
- package/dist/{packager-tool-w9bkq7zb.js → packager-tool-xgvp8a8g.js} +10 -10
- package/dist/{packager-tool-h1vt1vr2.js → packager-tool-ybn5fymq.js} +2 -2
- package/dist/packager-tool-yszyrt27.js +184 -0
- package/dist/packager-tool-yx0hy6pt.js +125 -0
- package/dist/{packager-tool-ze3fnf3s.js → packager-tool-zap4kd3z.js} +7 -2
- package/dist/{packager-tool-dr3zc9n9.js → packager-tool-zgzpqfcs.js} +13 -6
- package/dist/{node-tx150jvs.js → packager-tool-zrh55d4c.js} +190 -286
- package/dist/packager-tool.js +9 -9
- package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-8frvq826.js} +39 -6
- package/dist/provision-node-service-b8nkty72.js +86 -0
- package/dist/{pt-2RGHDOG4-gwe2ptvg.js → pt-6RCFX6CY-v42k92ey.js} +19 -4
- package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
- package/dist/{pt-BR-PHLFHMXZ-JFPKUXIZ-1cttmarb.js → pt-BR-7H7BP5DT-IOHWNCIU-kzbjgs8p.js} +1277 -11
- package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
- package/dist/{pt-BR-JWHVZE6H-gvkknv49.js → pt-BR-HDVM5NFA-azfx4gg9.js} +19 -4
- package/dist/{pt-BR-IL3KLBID-m1mvqqzb.js → pt-BR-HJIMGPPX-s18rb4vg.js} +6 -6
- package/dist/{pt-VLA5IOHO-8t4pze0h.js → pt-DZG5FPWK-6czrqk2t.js} +6 -6
- package/dist/{pt-N7ZTJT4W-GVODJMRX-ek3zjp9k.js → pt-QWGSZKMD-RTKSQCYA-j9wqwb10.js} +1272 -11
- 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/{ro-FLNXVYJI-ZN43XZKK-zrcvcsj5.js → ro-B7G474JK-9k2jjk88.js} +1271 -15
- package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-Q3BAA4S3-1ss8n5t0.js} +1276 -10
- package/dist/{ro-53TS7SWG-hnjx1c7b.js → ro-EEKX2X3R-tz9prn67.js} +19 -4
- package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
- package/dist/{ro-IRNFX376-mh84zk3n.js → ro-SX7RUXGR-kknxsr3g.js} +6 -6
- package/dist/ru-FNRVPXE5-7q150qf8.js +7 -0
- package/dist/ru-GSCT4ARZ-6OTD7JLB-j2ny4frk.js +12 -0
- package/dist/schema-document-service-007f2kw4.js +30 -0
- package/dist/{serialization-Z3UYT6BW-c994gtwh.js → serialization-7CB4AREI-b012f3vq.js} +482 -6161
- package/dist/services/binding-id-rule.d.ts +13 -0
- package/dist/services/binding-resource-types.d.ts +12 -0
- package/dist/services/extract-schema/default-schema-document.d.ts +9 -4
- package/dist/services/extract-schema/types.d.ts +73 -0
- package/dist/services/extract-schema/validate-schema-document.d.ts +75 -0
- package/dist/services/flow-scopes.d.ts +15 -0
- package/dist/services/flow-structure-checks.d.ts +8 -0
- package/dist/services/flow-validate-service.d.ts +44 -11
- package/dist/services/idp-processor-provisioning.d.ts +35 -0
- package/dist/services/node-service.d.ts +17 -23
- package/dist/services/node-validators/extract-schema-validator.d.ts +13 -0
- package/dist/services/node-validators/index.d.ts +1 -0
- package/dist/services/node-validators/js-expression-syntax-validator.d.ts +2 -1
- package/dist/services/node-validators/types.d.ts +2 -7
- package/dist/services/vars-reference-rule.d.ts +6 -0
- package/dist/solution-auth-k0s83ake.js +11 -0
- package/dist/{solution-definition-helper-6zwd9hjs.js → solution-definition-helper-qjj01xh0.js} +1 -1
- package/dist/{solution-discovery-wwwynadq.js → solution-discovery-v5qatmz2.js} +7 -7
- package/dist/taggable-variables-nc8td6er.js +134 -0
- package/dist/{tidy-service-g9qcarr9.js → tidy-service-ehhraxge.js} +17 -18
- package/dist/tool.js +16 -14
- package/dist/{tr-PIQY7JIT-2mkwk0kq.js → tr-B6TLBSLH-1797wxkh.js} +19 -4
- package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-CEOTUJRD-pv26erw5.js} +1276 -10
- package/dist/{tr-7AIZZWZ6-ESAESUPL-kgj5s586.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -15
- package/dist/{tr-EJKY7DVQ-rkctqva4.js → tr-OUB57VJ6-52t7zdzb.js} +6 -6
- package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
- package/dist/utils/handle-expansion.d.ts +2 -2
- package/dist/validation.js +42 -39
- package/dist/{variable-service-1s0z3e9j.js → variable-service-m8m88dy6.js} +17 -12
- package/dist/{wait-for-flow-job-vy4t4tbj.js → wait-for-flow-job-k990nmdn.js} +15 -12
- package/dist/{zh-CN-NIEVKROA-q4tbbwqz.js → zh-CN-7KN22KSH-mwvgyym6.js} +19 -4
- package/dist/{zh-CN-4FH7E7UL-84y6j2ea.js → zh-CN-FKWWWLFR-n15rj6p8.js} +6 -6
- package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
- package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-BB2LRIMQ-tj7kwma4.js} +1276 -10
- package/dist/{zh-CN-CN2ARPFS-NIQTWDK2-0t4qqqdc.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -15
- package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
- package/dist/{zh-TW-5WQA6QTM-hns69sd4.js → zh-TW-52QTEYIZ-2mj7hy3e.js} +6 -6
- package/dist/{zh-TW-MSQM7YTT-m7r7nwnj.js → zh-TW-I7BH3XP2-7rb4xpzg.js} +19 -4
- package/dist/{zh-TW-7RUFEVFK-VKVRSVTP-8zmewakq.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -16
- package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-ECGOEPYS-wv5068r9.js} +1277 -11
- package/package.json +2 -2
- package/dist/flow-eval-node-target-20cnm783.js +0 -29
- package/dist/flow-eval-run-api-w4j8ra60.js +0 -9
- package/dist/flow-init-service-4rvjej8m.js +0 -26
- package/dist/flow-io-e7t1s141.js +0 -24
- package/dist/flow-validate-service-wfkxyvkc.js +0 -46
- package/dist/input-reader-jjq3r7ry.js +0 -11
- package/dist/localization-erchshqr.js +0 -45
- package/dist/node-service-2mbw4sjk.js +0 -64
- package/dist/packager-tool-08dsxdz8.js +0 -56
- package/dist/packager-tool-2sazb7th.js +0 -2
- package/dist/packager-tool-9217bxm2.js +0 -6
- package/dist/packager-tool-cvh1a0nm.js +0 -16
- package/dist/packager-tool-d07g2kpn.js +0 -25
- package/dist/packager-tool-f7rk9xhv.js +0 -50
- package/dist/packager-tool-jd3v0bh1.js +0 -26
- package/dist/packager-tool-k3egwd1m.js +0 -15
- package/dist/packager-tool-mfj268wk.js +0 -18
- package/dist/packager-tool-q0f1dvtd.js +0 -40
- package/dist/packager-tool-wr7gn964.js +0 -2
- package/dist/packager-tool-z1w16vjv.js +0 -461
- package/dist/ru-GSCT4ARZ-FTVCGQTL-7d8rpmsn.js +0 -12
- package/dist/ru-T73OPRTC-50m7tty9.js +0 -7
- package/dist/services/connector-request-buckets.d.ts +0 -1
- package/dist/services/flow-eval-file-store.d.ts +0 -1
- package/dist/services/inline-entity-resolver.d.ts +0 -22
- package/dist/services/packaging-utils.d.ts +0 -130
- package/dist/services/preview-id-rule.d.ts +0 -33
- package/dist/services/ui-only-node-types.d.ts +0 -1
- package/dist/solution-auth-j8x84n5z.js +0 -11
- package/dist/utils/flow-io.d.ts +0 -19
- package/dist/utils/workflow-file-format.d.ts +0 -14
|
@@ -18,16 +18,16 @@ import {
|
|
|
18
18
|
redactProperties,
|
|
19
19
|
describeThrownValue,
|
|
20
20
|
catchError2
|
|
21
|
-
} from "./packager-tool-
|
|
21
|
+
} from "./packager-tool-4hn7v05x.js";
|
|
22
22
|
import {
|
|
23
23
|
getFileSystem
|
|
24
|
-
} from "./packager-tool-
|
|
24
|
+
} from "./packager-tool-1db1wqdy.js";
|
|
25
25
|
import {
|
|
26
26
|
__toESM,
|
|
27
27
|
__commonJS,
|
|
28
28
|
__exportCjs,
|
|
29
29
|
__require
|
|
30
|
-
} from "./packager-tool-
|
|
30
|
+
} from "./packager-tool-4f4jp7ez.js";
|
|
31
31
|
|
|
32
32
|
// ../../node_modules/commander/lib/error.js
|
|
33
33
|
var require_error = __commonJS(function(exports) {
|
|
@@ -2102,13 +2102,25 @@ Expecting one of '${allowedValues.join("', '")}'`);
|
|
|
2102
2102
|
exports.useColor = useColor;
|
|
2103
2103
|
});
|
|
2104
2104
|
|
|
2105
|
+
// ../common/src/result-types.ts
|
|
2106
|
+
var RESULTS = {
|
|
2107
|
+
Success: "Success",
|
|
2108
|
+
Failure: "Failure",
|
|
2109
|
+
ConfigError: "ConfigError",
|
|
2110
|
+
AuthenticationError: "AuthenticationError",
|
|
2111
|
+
ValidationError: "ValidationError",
|
|
2112
|
+
TimeoutError: "TimeoutError"
|
|
2113
|
+
};
|
|
2114
|
+
|
|
2105
2115
|
// ../common/src/error-codes.ts
|
|
2106
2116
|
var CLI_ERROR_CODES = [
|
|
2107
2117
|
"invalid_argument",
|
|
2118
|
+
"confirmation_required",
|
|
2108
2119
|
"authentication_required",
|
|
2109
2120
|
"permission_denied",
|
|
2110
2121
|
"local_permission_denied",
|
|
2111
2122
|
"not_found",
|
|
2123
|
+
"not_enabled",
|
|
2112
2124
|
"rate_limited",
|
|
2113
2125
|
"network_error",
|
|
2114
2126
|
"timeout",
|
|
@@ -2147,6 +2159,12 @@ function carriedRetry(error) {
|
|
|
2147
2159
|
const retry = error.retry;
|
|
2148
2160
|
return isRetryHint(retry) ? retry : undefined;
|
|
2149
2161
|
}
|
|
2162
|
+
function carriedResult(error) {
|
|
2163
|
+
if (!error || typeof error !== "object")
|
|
2164
|
+
return;
|
|
2165
|
+
const result = error.result;
|
|
2166
|
+
return typeof result === "string" && result !== RESULTS.Success && Object.values(RESULTS).includes(result) ? result : undefined;
|
|
2167
|
+
}
|
|
2150
2168
|
function defaultRetryForErrorCode(errorCode) {
|
|
2151
2169
|
switch (errorCode) {
|
|
2152
2170
|
case "network_error":
|
|
@@ -2554,6 +2572,8 @@ async function extractErrorDetails(error, options) {
|
|
|
2554
2572
|
}
|
|
2555
2573
|
if (parsedBody?.errorCode && typeof parsedBody.errorCode === "string") {
|
|
2556
2574
|
context.errorCode = parsedBody.errorCode;
|
|
2575
|
+
} else if (typeof parsedBody?.errorCode === "number") {
|
|
2576
|
+
context.errorCode = String(parsedBody.errorCode);
|
|
2557
2577
|
} else if (parsedBody?.code && typeof parsedBody.code === "string") {
|
|
2558
2578
|
context.errorCode = parsedBody.code;
|
|
2559
2579
|
}
|
|
@@ -2629,15 +2649,131 @@ function extractErrorMessageSync(error) {
|
|
|
2629
2649
|
return describeThrownValue(error);
|
|
2630
2650
|
}
|
|
2631
2651
|
|
|
2632
|
-
// ../common/src/
|
|
2633
|
-
var
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
};
|
|
2652
|
+
// ../common/src/auth-challenge.ts
|
|
2653
|
+
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;
|
|
2654
|
+
function redactTokens(text) {
|
|
2655
|
+
return text.replace(TOKEN_SHAPED, "[REDACTED]");
|
|
2656
|
+
}
|
|
2657
|
+
var MAX_CHALLENGE_DESCRIPTION = 200;
|
|
2658
|
+
function parseAuthChallenge(header) {
|
|
2659
|
+
if (!header)
|
|
2660
|
+
return {};
|
|
2661
|
+
const code = /\berror="([^"]*)"/.exec(header)?.[1]?.trim();
|
|
2662
|
+
const raw = /\berror_description="([^"]*)"/.exec(header)?.[1]?.trim();
|
|
2663
|
+
const description = raw ? redactTokens(raw).slice(0, MAX_CHALLENGE_DESCRIPTION) : undefined;
|
|
2664
|
+
return {
|
|
2665
|
+
error: code || undefined,
|
|
2666
|
+
description: description || undefined
|
|
2667
|
+
};
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
// ../common/src/error-instructions.ts
|
|
2671
|
+
function extractHttpStatus(err) {
|
|
2672
|
+
if (!err || typeof err !== "object")
|
|
2673
|
+
return;
|
|
2674
|
+
const e = err;
|
|
2675
|
+
const structured = e.response?.status ?? e.status ?? e.statusCode;
|
|
2676
|
+
if (structured !== undefined)
|
|
2677
|
+
return structured;
|
|
2678
|
+
return typeof e.message === "string" ? parseHttpStatusFromMessage(e.message) : undefined;
|
|
2679
|
+
}
|
|
2680
|
+
var GENERIC = "Check authentication and parameters";
|
|
2681
|
+
function hasIdentityInstructionContext(err) {
|
|
2682
|
+
return err !== null && typeof err === "object" && "instructionContext" in err && err.instructionContext === "identity";
|
|
2683
|
+
}
|
|
2684
|
+
function instructionsFor(ctx, err) {
|
|
2685
|
+
if (ctx === "auth" && hasIdentityInstructionContext(err)) {
|
|
2686
|
+
return instructionsFor("identity");
|
|
2687
|
+
}
|
|
2688
|
+
switch (ctx) {
|
|
2689
|
+
case "auth":
|
|
2690
|
+
return "Run 'uip login' to authenticate. To inspect the current session, run 'uip whoami'.";
|
|
2691
|
+
case "auth-configuration":
|
|
2692
|
+
return "Fix the authentication settings named in Message, then retry.";
|
|
2693
|
+
case "identity":
|
|
2694
|
+
return "Select an active tenant with 'uip login tenant set <tenant>' and ensure your login includes an organization";
|
|
2695
|
+
case "input-parse":
|
|
2696
|
+
return "Ensure --inputs is valid JSON or pipe JSON via stdin";
|
|
2697
|
+
case "input-validate":
|
|
2698
|
+
return "Fix the flagged input fields to match the process's input schema";
|
|
2699
|
+
case "flag-format":
|
|
2700
|
+
return "Check the flag value format — see --help for the expected shape";
|
|
2701
|
+
case "permissions":
|
|
2702
|
+
return "Confirm your user has the required permissions in this folder/tenant, or re-authenticate with 'uip login' if your session has lapsed";
|
|
2703
|
+
case "backend": {
|
|
2704
|
+
const status = extractHttpStatus(err);
|
|
2705
|
+
if (status === 401) {
|
|
2706
|
+
return "Re-authenticate with 'uip login' — your session is invalid or expired";
|
|
2707
|
+
}
|
|
2708
|
+
if (status === 403) {
|
|
2709
|
+
return "Confirm your user has access to the resource, and the required permissions in this folder or tenant";
|
|
2710
|
+
}
|
|
2711
|
+
if (status === 404) {
|
|
2712
|
+
return "Verify the resource exists in the current folder/tenant";
|
|
2713
|
+
}
|
|
2714
|
+
if (status === 400 || status === 422) {
|
|
2715
|
+
return "Request was rejected — check flag values and inputs";
|
|
2716
|
+
}
|
|
2717
|
+
if (status === 405) {
|
|
2718
|
+
return "Check the command name and the base URL in use — the endpoint may not exist";
|
|
2719
|
+
}
|
|
2720
|
+
if (status === 408) {
|
|
2721
|
+
return "The request timed out — retry; if it persists, narrow the request (e.g. --limit on list commands)";
|
|
2722
|
+
}
|
|
2723
|
+
if (status === 409) {
|
|
2724
|
+
return "The resource already exists, or changed since it was read — list it to see the current state";
|
|
2725
|
+
}
|
|
2726
|
+
if (status === 413) {
|
|
2727
|
+
return "The upload is over the size limit — exclude unused dependencies or drop large files, then retry";
|
|
2728
|
+
}
|
|
2729
|
+
if (status === 429) {
|
|
2730
|
+
return "Rate limit reached — wait and retry; when the service suggests a delay, Retry and Context.retryAfter carry it";
|
|
2731
|
+
}
|
|
2732
|
+
if (status !== undefined && status >= 500 && status < 600) {
|
|
2733
|
+
return "The service returned a server error — retry; if it persists, check service status";
|
|
2734
|
+
}
|
|
2735
|
+
const permission = describePermissionError(err);
|
|
2736
|
+
if (permission) {
|
|
2737
|
+
return permission.instructions;
|
|
2738
|
+
}
|
|
2739
|
+
const connectivity = describeConnectivityError(err);
|
|
2740
|
+
if (connectivity) {
|
|
2741
|
+
return connectivity.instructions;
|
|
2742
|
+
}
|
|
2743
|
+
return GENERIC;
|
|
2744
|
+
}
|
|
2745
|
+
}
|
|
2746
|
+
}
|
|
2747
|
+
|
|
2748
|
+
// ../common/src/classified-failure.ts
|
|
2749
|
+
var MAX_QUOTED_BODY_CHARS = 200;
|
|
2750
|
+
async function classifiedFailure(message, error, options) {
|
|
2751
|
+
const details = await extractErrorDetails(error, options);
|
|
2752
|
+
return {
|
|
2753
|
+
Result: details.result,
|
|
2754
|
+
ErrorCode: details.errorCode,
|
|
2755
|
+
Message: message,
|
|
2756
|
+
Instructions: details.message,
|
|
2757
|
+
Retry: details.retry,
|
|
2758
|
+
...details.context ? { Context: details.context } : {}
|
|
2759
|
+
};
|
|
2760
|
+
}
|
|
2761
|
+
async function authContextFailure(error, sessionInstructions) {
|
|
2762
|
+
const details = await extractErrorDetails(error);
|
|
2763
|
+
const missingIdentity = hasIdentityInstructionContext(error);
|
|
2764
|
+
return {
|
|
2765
|
+
Result: details.errorCode === "configuration_error" ? RESULTS.ConfigError : details.errorCode === "authentication_required" ? RESULTS.AuthenticationError : details.result,
|
|
2766
|
+
ErrorCode: details.errorCode,
|
|
2767
|
+
Message: details.message,
|
|
2768
|
+
Instructions: details.errorCode === "configuration_error" ? instructionsFor("auth-configuration") : details.errorCode === "authentication_required" && !missingIdentity && sessionInstructions !== undefined ? sessionInstructions : instructionsFor(details.errorCode === "authentication_required" ? "auth" : "backend", error),
|
|
2769
|
+
Retry: details.retry,
|
|
2770
|
+
...details.context ? { Context: details.context } : {}
|
|
2771
|
+
};
|
|
2772
|
+
}
|
|
2773
|
+
function summarizePlatformBody(body) {
|
|
2774
|
+
const trimmed = body.trim().replace(/\s+/g, " ");
|
|
2775
|
+
return trimmed.length > MAX_QUOTED_BODY_CHARS ? `${trimmed.slice(0, MAX_QUOTED_BODY_CHARS)}…` : trimmed;
|
|
2776
|
+
}
|
|
2641
2777
|
|
|
2642
2778
|
// ../../node_modules/commander/index.js
|
|
2643
2779
|
var exports_commander = {};
|
|
@@ -2668,7 +2804,7 @@ __exportCjs(exports_commander, {
|
|
|
2668
2804
|
});
|
|
2669
2805
|
var { Argument } = require_argument();
|
|
2670
2806
|
var { Command: Command2 } = require_command();
|
|
2671
|
-
var { CommanderError, InvalidArgumentError
|
|
2807
|
+
var { CommanderError, InvalidArgumentError } = require_error();
|
|
2672
2808
|
var { Help } = require_help();
|
|
2673
2809
|
var { Option: Option2 } = require_option();
|
|
2674
2810
|
var $program = new Command2;
|
|
@@ -2680,8 +2816,8 @@ var $Option = Option2;
|
|
|
2680
2816
|
var $Argument = Argument;
|
|
2681
2817
|
var $Help = Help;
|
|
2682
2818
|
var $CommanderError = CommanderError;
|
|
2683
|
-
var $InvalidArgumentError =
|
|
2684
|
-
var $InvalidOptionArgumentError =
|
|
2819
|
+
var $InvalidArgumentError = InvalidArgumentError;
|
|
2820
|
+
var $InvalidOptionArgumentError = InvalidArgumentError;
|
|
2685
2821
|
|
|
2686
2822
|
// ../../node_modules/commander/esm.mjs
|
|
2687
2823
|
var {
|
|
@@ -2690,7 +2826,7 @@ var {
|
|
|
2690
2826
|
createArgument,
|
|
2691
2827
|
createOption,
|
|
2692
2828
|
CommanderError: CommanderError2,
|
|
2693
|
-
InvalidArgumentError,
|
|
2829
|
+
InvalidArgumentError: InvalidArgumentError2,
|
|
2694
2830
|
InvalidOptionArgumentError,
|
|
2695
2831
|
Command,
|
|
2696
2832
|
Argument: Argument2,
|
|
@@ -3019,7 +3155,7 @@ async function loadOutputCodecsAsync(needed) {
|
|
|
3019
3155
|
}));
|
|
3020
3156
|
}
|
|
3021
3157
|
if (needed.filter && jmespathSlot.get() === undefined) {
|
|
3022
|
-
loads.push(import("./jmespath-
|
|
3158
|
+
loads.push(import("./jmespath-dbsejrwn.js").then((m)=>__toESM(m.default,1)).then((mod) => {
|
|
3023
3159
|
jmespathSlot.set(mod);
|
|
3024
3160
|
}));
|
|
3025
3161
|
}
|
|
@@ -3053,7 +3189,10 @@ var AUTH_ERROR_CODES = new Set([
|
|
|
3053
3189
|
var LOCAL_PERMISSION_CLI_ERROR_CODES = new Set([
|
|
3054
3190
|
"local_permission_denied"
|
|
3055
3191
|
]);
|
|
3056
|
-
var VALIDATION_ERROR_CODES = new Set([
|
|
3192
|
+
var VALIDATION_ERROR_CODES = new Set([
|
|
3193
|
+
"invalid_argument",
|
|
3194
|
+
"confirmation_required"
|
|
3195
|
+
]);
|
|
3057
3196
|
var NETWORK_HTTP_ERROR_CODES = new Set([
|
|
3058
3197
|
"network_error",
|
|
3059
3198
|
"rate_limited",
|
|
@@ -3279,6 +3418,109 @@ var CommonTelemetryEvents = {
|
|
|
3279
3418
|
ShipSucceeded: "Cli.ShipSucceeded"
|
|
3280
3419
|
};
|
|
3281
3420
|
|
|
3421
|
+
// ../common/src/telemetry/global-telemetry-properties.ts
|
|
3422
|
+
var telemetryPropsSlot = singleton("TelemetryDefaultProps");
|
|
3423
|
+
function getGlobalTelemetryProperties() {
|
|
3424
|
+
return telemetryPropsSlot.get();
|
|
3425
|
+
}
|
|
3426
|
+
|
|
3427
|
+
// ../common/src/telemetry/trace-context.ts
|
|
3428
|
+
var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
|
|
3429
|
+
var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
|
|
3430
|
+
function getProcessEnv() {
|
|
3431
|
+
return globalThis.process?.env;
|
|
3432
|
+
}
|
|
3433
|
+
function parseInboundTraceparent(value) {
|
|
3434
|
+
if (!value) {
|
|
3435
|
+
return;
|
|
3436
|
+
}
|
|
3437
|
+
const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
|
|
3438
|
+
if (!match) {
|
|
3439
|
+
return;
|
|
3440
|
+
}
|
|
3441
|
+
const [, traceId, parentSpanId] = match;
|
|
3442
|
+
if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
|
|
3443
|
+
return;
|
|
3444
|
+
}
|
|
3445
|
+
return { traceId, parentSpanId };
|
|
3446
|
+
}
|
|
3447
|
+
function getInboundTraceContext() {
|
|
3448
|
+
return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
|
|
3449
|
+
}
|
|
3450
|
+
|
|
3451
|
+
// ../common/src/telemetry/session-id.ts
|
|
3452
|
+
var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
|
|
3453
|
+
var SESSION_ID_MAX_LENGTH = 64;
|
|
3454
|
+
var RANDOM_SESSION_ID_LENGTH = 32;
|
|
3455
|
+
var TELEMETRY_SESSION_SOURCE_PROPERTY = "SessionIdSource";
|
|
3456
|
+
var CONTROL_CHARACTERS = /\p{Cc}/gu;
|
|
3457
|
+
var INHERITED_SESSION_SOURCES = [
|
|
3458
|
+
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
3459
|
+
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
3460
|
+
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
3461
|
+
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
3462
|
+
{ envVar: "WT_SESSION", source: "terminal" }
|
|
3463
|
+
];
|
|
3464
|
+
var telemetrySessionSlot = singleton("TelemetrySession");
|
|
3465
|
+
var telemetryOperationIdSlot = singleton("TelemetryOperationId");
|
|
3466
|
+
function getProcessEnv2() {
|
|
3467
|
+
return globalThis.process?.env;
|
|
3468
|
+
}
|
|
3469
|
+
function normalizeSessionId(value) {
|
|
3470
|
+
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
3471
|
+
return;
|
|
3472
|
+
}
|
|
3473
|
+
const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
|
|
3474
|
+
return cleaned || undefined;
|
|
3475
|
+
}
|
|
3476
|
+
function getConfiguredTelemetrySessionId() {
|
|
3477
|
+
return normalizeSessionId(getProcessEnv2()?.[TELEMETRY_SESSION_ID_ENV]);
|
|
3478
|
+
}
|
|
3479
|
+
function getInheritedSession(env) {
|
|
3480
|
+
for (const candidate of INHERITED_SESSION_SOURCES) {
|
|
3481
|
+
const handle = normalizeSessionId(env[candidate.envVar]);
|
|
3482
|
+
if (handle) {
|
|
3483
|
+
return { id: handle, source: candidate.source };
|
|
3484
|
+
}
|
|
3485
|
+
}
|
|
3486
|
+
return;
|
|
3487
|
+
}
|
|
3488
|
+
function generateRandomSession() {
|
|
3489
|
+
const bytes = new Uint8Array(RANDOM_SESSION_ID_LENGTH / 2);
|
|
3490
|
+
crypto.getRandomValues(bytes);
|
|
3491
|
+
let hex = "";
|
|
3492
|
+
for (const byte of bytes) {
|
|
3493
|
+
hex += byte.toString(16).padStart(2, "0");
|
|
3494
|
+
}
|
|
3495
|
+
return { id: hex, source: "random" };
|
|
3496
|
+
}
|
|
3497
|
+
function resolveTelemetrySession() {
|
|
3498
|
+
const existing = telemetrySessionSlot.get();
|
|
3499
|
+
if (existing) {
|
|
3500
|
+
return existing;
|
|
3501
|
+
}
|
|
3502
|
+
const declaredHandle = getConfiguredTelemetrySessionId();
|
|
3503
|
+
const resolved = declaredHandle ? { id: declaredHandle, source: "declared" } : getInheritedSession(getProcessEnv2() ?? {}) ?? generateRandomSession();
|
|
3504
|
+
telemetrySessionSlot.set(resolved);
|
|
3505
|
+
return resolved;
|
|
3506
|
+
}
|
|
3507
|
+
function getTelemetrySessionId() {
|
|
3508
|
+
return resolveTelemetrySession().id;
|
|
3509
|
+
}
|
|
3510
|
+
function getTelemetrySessionSource() {
|
|
3511
|
+
return resolveTelemetrySession().source;
|
|
3512
|
+
}
|
|
3513
|
+
function getTelemetryOperationId() {
|
|
3514
|
+
const existing = telemetryOperationIdSlot.get();
|
|
3515
|
+
if (existing) {
|
|
3516
|
+
return existing;
|
|
3517
|
+
}
|
|
3518
|
+
const inboundTraceId = getInboundTraceContext()?.traceId;
|
|
3519
|
+
const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
|
|
3520
|
+
telemetryOperationIdSlot.set(generated);
|
|
3521
|
+
return generated;
|
|
3522
|
+
}
|
|
3523
|
+
|
|
3282
3524
|
// ../common/src/registry.ts
|
|
3283
3525
|
import { execFileSync } from "node:child_process";
|
|
3284
3526
|
function readRegistryValue(keyPath, valueName) {
|
|
@@ -3469,164 +3711,62 @@ var CI_SIGNATURES = [
|
|
|
3469
3711
|
provider: "generic",
|
|
3470
3712
|
matches: (env) => isTruthy(env.CI)
|
|
3471
3713
|
}
|
|
3472
|
-
];
|
|
3473
|
-
function currentEnv() {
|
|
3474
|
-
return typeof process === "undefined" ? {} : process.env;
|
|
3475
|
-
}
|
|
3476
|
-
function currentTtyState() {
|
|
3477
|
-
if (typeof process === "undefined")
|
|
3478
|
-
return false;
|
|
3479
|
-
return Boolean(process.stdout?.isTTY || process.stdin?.isTTY || process.stderr?.isTTY);
|
|
3480
|
-
}
|
|
3481
|
-
function detectCi(env) {
|
|
3482
|
-
const signature = CI_SIGNATURES.find((candidate) => candidate.matches(env));
|
|
3483
|
-
if (!signature)
|
|
3484
|
-
return;
|
|
3485
|
-
return {
|
|
3486
|
-
executionContext: signature.isScheduler?.(env) ? "scheduler" : "ci",
|
|
3487
|
-
ciProvider: signature.provider
|
|
3488
|
-
};
|
|
3489
|
-
}
|
|
3490
|
-
function detectExecutionContext(options = {}) {
|
|
3491
|
-
const env = options.env ?? currentEnv();
|
|
3492
|
-
const ci = detectCi(env);
|
|
3493
|
-
if (ci)
|
|
3494
|
-
return ci;
|
|
3495
|
-
const agent = options.agent ?? detectAgentFromEnv(env);
|
|
3496
|
-
if (agent) {
|
|
3497
|
-
return { executionContext: "agent" };
|
|
3498
|
-
}
|
|
3499
|
-
const authSignal = options.authSignal ?? authSignalSlot.get();
|
|
3500
|
-
if (authSignal === "service_account") {
|
|
3501
|
-
return { executionContext: "service_account" };
|
|
3502
|
-
}
|
|
3503
|
-
const isTty = options.isTty ?? currentTtyState();
|
|
3504
|
-
if (isTty) {
|
|
3505
|
-
return { executionContext: "manual" };
|
|
3506
|
-
}
|
|
3507
|
-
return { executionContext: "unknown" };
|
|
3508
|
-
}
|
|
3509
|
-
function getExecutionContextTelemetryProperties() {
|
|
3510
|
-
const detected = detectExecutionContext();
|
|
3511
|
-
return {
|
|
3512
|
-
[BaseDimensions.ExecutionContext]: detected.executionContext,
|
|
3513
|
-
...detected.ciProvider ? { [BaseDimensions.CiProvider]: detected.ciProvider } : {}
|
|
3514
|
-
};
|
|
3515
|
-
}
|
|
3516
|
-
// ../common/src/telemetry/node-context-storage.ts
|
|
3517
|
-
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3518
|
-
|
|
3519
|
-
class NodeContextStorage {
|
|
3520
|
-
storage = new AsyncLocalStorage;
|
|
3521
|
-
run(context, fn) {
|
|
3522
|
-
return this.storage.run(context, fn);
|
|
3523
|
-
}
|
|
3524
|
-
getContext() {
|
|
3525
|
-
return this.storage.getStore();
|
|
3526
|
-
}
|
|
3527
|
-
}
|
|
3528
|
-
// ../common/src/telemetry/trace-context.ts
|
|
3529
|
-
var TELEMETRY_TRACEPARENT_ENV = "TRACEPARENT";
|
|
3530
|
-
var TRACEPARENT_PATTERN = /^00-([0-9a-f]{32})-([0-9a-f]{16})-[0-9a-f]{2}$/;
|
|
3531
|
-
function getProcessEnv() {
|
|
3532
|
-
return globalThis.process?.env;
|
|
3533
|
-
}
|
|
3534
|
-
function parseInboundTraceparent(value) {
|
|
3535
|
-
if (!value) {
|
|
3536
|
-
return;
|
|
3537
|
-
}
|
|
3538
|
-
const match = TRACEPARENT_PATTERN.exec(value.trim().toLowerCase());
|
|
3539
|
-
if (!match) {
|
|
3540
|
-
return;
|
|
3541
|
-
}
|
|
3542
|
-
const [, traceId, parentSpanId] = match;
|
|
3543
|
-
if (/^0+$/.test(traceId) || /^0+$/.test(parentSpanId)) {
|
|
3544
|
-
return;
|
|
3545
|
-
}
|
|
3546
|
-
return { traceId, parentSpanId };
|
|
3547
|
-
}
|
|
3548
|
-
function getInboundTraceContext() {
|
|
3549
|
-
return parseInboundTraceparent(getProcessEnv()?.[TELEMETRY_TRACEPARENT_ENV]);
|
|
3550
|
-
}
|
|
3551
|
-
|
|
3552
|
-
// ../common/src/telemetry/session-id.ts
|
|
3553
|
-
var TELEMETRY_SESSION_ID_ENV = "UIPATH_SESSION_ID";
|
|
3554
|
-
var SESSION_ID_MAX_LENGTH = 64;
|
|
3555
|
-
var RANDOM_SESSION_ID_LENGTH = 32;
|
|
3556
|
-
var TELEMETRY_SESSION_SOURCE_PROPERTY = "SessionIdSource";
|
|
3557
|
-
var CONTROL_CHARACTERS = /\p{Cc}/gu;
|
|
3558
|
-
var INHERITED_SESSION_SOURCES = [
|
|
3559
|
-
{ envVar: "CLAUDE_CODE_SESSION_ID", source: "claude-code" },
|
|
3560
|
-
{ envVar: "CODEX_THREAD_ID", source: "codex" },
|
|
3561
|
-
{ envVar: "ANTIGRAVITY_TRAJECTORY_ID", source: "antigravity" },
|
|
3562
|
-
{ envVar: "TERM_SESSION_ID", source: "terminal" },
|
|
3563
|
-
{ envVar: "WT_SESSION", source: "terminal" }
|
|
3564
|
-
];
|
|
3565
|
-
var telemetrySessionSlot = singleton("TelemetrySession");
|
|
3566
|
-
var telemetryOperationIdSlot = singleton("TelemetryOperationId");
|
|
3567
|
-
function getProcessEnv2() {
|
|
3568
|
-
return globalThis.process?.env;
|
|
3569
|
-
}
|
|
3570
|
-
function normalizeSessionId(value) {
|
|
3571
|
-
if (typeof value !== "string" && typeof value !== "number" && typeof value !== "boolean") {
|
|
3572
|
-
return;
|
|
3573
|
-
}
|
|
3574
|
-
const cleaned = String(value).replace(CONTROL_CHARACTERS, "").trim().slice(0, SESSION_ID_MAX_LENGTH);
|
|
3575
|
-
return cleaned || undefined;
|
|
3714
|
+
];
|
|
3715
|
+
function currentEnv() {
|
|
3716
|
+
return typeof process === "undefined" ? {} : process.env;
|
|
3576
3717
|
}
|
|
3577
|
-
function
|
|
3578
|
-
|
|
3718
|
+
function currentTtyState() {
|
|
3719
|
+
if (typeof process === "undefined")
|
|
3720
|
+
return false;
|
|
3721
|
+
return Boolean(process.stdout?.isTTY || process.stdin?.isTTY || process.stderr?.isTTY);
|
|
3579
3722
|
}
|
|
3580
|
-
function
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3587
|
-
|
|
3723
|
+
function detectCi(env) {
|
|
3724
|
+
const signature = CI_SIGNATURES.find((candidate) => candidate.matches(env));
|
|
3725
|
+
if (!signature)
|
|
3726
|
+
return;
|
|
3727
|
+
return {
|
|
3728
|
+
executionContext: signature.isScheduler?.(env) ? "scheduler" : "ci",
|
|
3729
|
+
ciProvider: signature.provider
|
|
3730
|
+
};
|
|
3588
3731
|
}
|
|
3589
|
-
function
|
|
3590
|
-
const
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3732
|
+
function detectExecutionContext(options = {}) {
|
|
3733
|
+
const env = options.env ?? currentEnv();
|
|
3734
|
+
const ci = detectCi(env);
|
|
3735
|
+
if (ci)
|
|
3736
|
+
return ci;
|
|
3737
|
+
const agent = options.agent ?? detectAgentFromEnv(env);
|
|
3738
|
+
if (agent) {
|
|
3739
|
+
return { executionContext: "agent" };
|
|
3595
3740
|
}
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
const existing = telemetrySessionSlot.get();
|
|
3600
|
-
if (existing) {
|
|
3601
|
-
return existing;
|
|
3741
|
+
const authSignal = options.authSignal ?? authSignalSlot.get();
|
|
3742
|
+
if (authSignal === "service_account") {
|
|
3743
|
+
return { executionContext: "service_account" };
|
|
3602
3744
|
}
|
|
3603
|
-
const
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
return resolved;
|
|
3607
|
-
}
|
|
3608
|
-
function getTelemetrySessionId() {
|
|
3609
|
-
return resolveTelemetrySession().id;
|
|
3610
|
-
}
|
|
3611
|
-
function getTelemetrySessionSource() {
|
|
3612
|
-
return resolveTelemetrySession().source;
|
|
3613
|
-
}
|
|
3614
|
-
function getTelemetryOperationId() {
|
|
3615
|
-
const existing = telemetryOperationIdSlot.get();
|
|
3616
|
-
if (existing) {
|
|
3617
|
-
return existing;
|
|
3745
|
+
const isTty = options.isTty ?? currentTtyState();
|
|
3746
|
+
if (isTty) {
|
|
3747
|
+
return { executionContext: "manual" };
|
|
3618
3748
|
}
|
|
3619
|
-
|
|
3620
|
-
const generated = inboundTraceId ?? crypto.randomUUID().replaceAll("-", "");
|
|
3621
|
-
telemetryOperationIdSlot.set(generated);
|
|
3622
|
-
return generated;
|
|
3749
|
+
return { executionContext: "unknown" };
|
|
3623
3750
|
}
|
|
3624
|
-
|
|
3625
|
-
|
|
3626
|
-
|
|
3627
|
-
|
|
3751
|
+
function getExecutionContextTelemetryProperties() {
|
|
3752
|
+
const detected = detectExecutionContext();
|
|
3753
|
+
return {
|
|
3754
|
+
[BaseDimensions.ExecutionContext]: detected.executionContext,
|
|
3755
|
+
...detected.ciProvider ? { [BaseDimensions.CiProvider]: detected.ciProvider } : {}
|
|
3756
|
+
};
|
|
3628
3757
|
}
|
|
3758
|
+
// ../common/src/telemetry/node-context-storage.ts
|
|
3759
|
+
import { AsyncLocalStorage } from "node:async_hooks";
|
|
3629
3760
|
|
|
3761
|
+
class NodeContextStorage {
|
|
3762
|
+
storage = new AsyncLocalStorage;
|
|
3763
|
+
run(context, fn) {
|
|
3764
|
+
return this.storage.run(context, fn);
|
|
3765
|
+
}
|
|
3766
|
+
getContext() {
|
|
3767
|
+
return this.storage.getStore();
|
|
3768
|
+
}
|
|
3769
|
+
}
|
|
3630
3770
|
// ../common/src/telemetry/span-clock.ts
|
|
3631
3771
|
function startSpanClock() {
|
|
3632
3772
|
const started = performance.now();
|
|
@@ -3840,6 +3980,7 @@ var MAX_SPOOL_AGE_MS = 72 * 60 * 60 * 1000;
|
|
|
3840
3980
|
// ../common/src/telemetry/telemetry-init.ts
|
|
3841
3981
|
var telemetryInstanceSlot = singleton("TelemetryService");
|
|
3842
3982
|
var DEFAULT_AI_CONNECTION_STRING = atob("SW5zdHJ1bWVudGF0aW9uS2V5PTliZDM3NDgyLTgxMGUtNDQyYS1hYWE2LWQzOGVmNjVjNjY3NDtJbmdlc3Rpb25FbmRwb2ludD1odHRwczovL3dlc3RldXJvcGUtNS5pbi5hcHBsaWNhdGlvbmluc2lnaHRzLmF6dXJlLmNvbS87TGl2ZUVuZHBvaW50PWh0dHBzOi8vd2VzdGV1cm9wZS5saXZlZGlhZ25vc3RpY3MubW9uaXRvci5henVyZS5jb20vO0FwcGxpY2F0aW9uSWQ9MzU2OTdlZjEtOGJkMC00ZjE5LWEyN2MtZDg3Y2NhYzY2ZDJj");
|
|
3983
|
+
var browserProviderSlot = singleton("BrowserAppInsightsTelemetryProvider");
|
|
3843
3984
|
function getGlobalTelemetryInstance() {
|
|
3844
3985
|
const existing = telemetryInstanceSlot.get();
|
|
3845
3986
|
if (existing && typeof existing === "object" && "trackEvent" in existing && typeof existing.trackEvent === "function") {
|
|
@@ -4070,7 +4211,7 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
|
|
|
4070
4211
|
const pagedRows = extractPagedRows(data.Data);
|
|
4071
4212
|
const items = pagedRows ?? (Array.isArray(data.Data) ? data.Data : [data.Data]);
|
|
4072
4213
|
items.forEach((item) => {
|
|
4073
|
-
const values = Object.values(item).map((v) => v ?? "").join("\t");
|
|
4214
|
+
const values = item === null || typeof item !== "object" ? String(item ?? "") : Object.values(item).map((v) => v ?? "").join("\t");
|
|
4074
4215
|
logFn(values);
|
|
4075
4216
|
});
|
|
4076
4217
|
} else {
|
|
@@ -4085,7 +4226,8 @@ function printOutput(data, format = "json", logFn, asciiSafe = false, tableRowSt
|
|
|
4085
4226
|
default: {
|
|
4086
4227
|
const hasData = "Data" in data && data.Data != null;
|
|
4087
4228
|
const pagedRows = hasData ? extractPagedRows(data.Data) : null;
|
|
4088
|
-
const
|
|
4229
|
+
const resolvedRows = pagedRows ? pagedRows : Array.isArray(data.Data) ? data.Data : null;
|
|
4230
|
+
const rows = resolvedRows && isPrimitiveArray(resolvedRows) ? resolvedRows.map((entry) => ({ Value: entry })) : resolvedRows;
|
|
4089
4231
|
if (hasData && !(rows !== null && rows.length === 0)) {
|
|
4090
4232
|
const logValue = data.Log;
|
|
4091
4233
|
if (rows !== null) {
|
|
@@ -4142,6 +4284,9 @@ function printTable(data, logFn, externalLogValue, tableRowStyle) {
|
|
|
4142
4284
|
function isPlainObjectArray(value) {
|
|
4143
4285
|
return Array.isArray(value) && value.length > 0 && value.every(isPlainRecord);
|
|
4144
4286
|
}
|
|
4287
|
+
function isPrimitiveArray(value) {
|
|
4288
|
+
return Array.isArray(value) && value.length > 0 && value.every((entry) => entry === null || typeof entry !== "object");
|
|
4289
|
+
}
|
|
4145
4290
|
function isNonEmptyPlainObject(value) {
|
|
4146
4291
|
return isPlainRecord(value) && Object.keys(value).length > 0;
|
|
4147
4292
|
}
|
|
@@ -4488,12 +4633,12 @@ class FilterEvaluationError extends Error {
|
|
|
4488
4633
|
instructions;
|
|
4489
4634
|
retry = "RetryWillNotFix";
|
|
4490
4635
|
result = RESULTS.ValidationError;
|
|
4491
|
-
constructor(filter, cause) {
|
|
4636
|
+
constructor(filter, cause, hint) {
|
|
4492
4637
|
const underlying = cause instanceof Error ? cause.message : String(cause);
|
|
4493
|
-
super(`Filter '${filter}' failed to evaluate: ${underlying}`);
|
|
4638
|
+
super(`Filter '${filter}' failed to evaluate: ${underlying}` + (hint ? ` ${hint.detail}` : ""));
|
|
4494
4639
|
this.name = "FilterEvaluationError";
|
|
4495
4640
|
this.filter = filter;
|
|
4496
|
-
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(@)'.";
|
|
4641
|
+
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(@)'.";
|
|
4497
4642
|
}
|
|
4498
4643
|
}
|
|
4499
4644
|
|
|
@@ -4615,6 +4760,93 @@ function nameList(names, cap = 12) {
|
|
|
4615
4760
|
const rest = names.length - shown.length;
|
|
4616
4761
|
return shown.join(", ") + (rest > 0 ? `, and ${rest} more` : "");
|
|
4617
4762
|
}
|
|
4763
|
+
function notFieldsOn(names, scope) {
|
|
4764
|
+
return `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
|
|
4765
|
+
}
|
|
4766
|
+
function failingFieldRead(ast, isList, fn, argIndex) {
|
|
4767
|
+
const [left, right, condition] = ast.children ?? [];
|
|
4768
|
+
let scopes = [];
|
|
4769
|
+
if (!isList) {
|
|
4770
|
+
scopes = [ast];
|
|
4771
|
+
} else if (ast.type === "FilterProjection" && left?.type === "Identity") {
|
|
4772
|
+
scopes = [condition, right];
|
|
4773
|
+
} else if (ast.type === "Projection" && (left?.type === "Identity" || left?.type === "Flatten" && left.children?.[0]?.type === "Identity")) {
|
|
4774
|
+
scopes = [right];
|
|
4775
|
+
}
|
|
4776
|
+
const reads = new Set;
|
|
4777
|
+
let tracked = 0;
|
|
4778
|
+
const visit = (node) => {
|
|
4779
|
+
if (!node)
|
|
4780
|
+
return;
|
|
4781
|
+
switch (node.type) {
|
|
4782
|
+
case "Function": {
|
|
4783
|
+
const arg = node.children?.[argIndex - 1];
|
|
4784
|
+
if (node.name === fn && arg?.type === "Field" && arg.name) {
|
|
4785
|
+
reads.add(arg.name);
|
|
4786
|
+
tracked++;
|
|
4787
|
+
}
|
|
4788
|
+
node.children?.forEach(visit);
|
|
4789
|
+
return;
|
|
4790
|
+
}
|
|
4791
|
+
case "AndExpression":
|
|
4792
|
+
case "OrExpression":
|
|
4793
|
+
case "NotExpression":
|
|
4794
|
+
case "Comparator":
|
|
4795
|
+
case "MultiSelectList":
|
|
4796
|
+
case "MultiSelectHash":
|
|
4797
|
+
node.children?.forEach(visit);
|
|
4798
|
+
return;
|
|
4799
|
+
case "KeyValuePair":
|
|
4800
|
+
visit(node.value);
|
|
4801
|
+
return;
|
|
4802
|
+
}
|
|
4803
|
+
};
|
|
4804
|
+
scopes.forEach(visit);
|
|
4805
|
+
const calls = (node) => {
|
|
4806
|
+
if (node === null || typeof node !== "object")
|
|
4807
|
+
return 0;
|
|
4808
|
+
const own = node.type === "Function" && node.name === fn ? 1 : 0;
|
|
4809
|
+
const next = node.type === "KeyValuePair" ? [node.value] : node.children ?? [];
|
|
4810
|
+
return own + next.reduce((sum, child) => sum + calls(child), 0);
|
|
4811
|
+
};
|
|
4812
|
+
return reads.size === 1 && tracked === calls(ast) ? [...reads][0] : undefined;
|
|
4813
|
+
}
|
|
4814
|
+
function fieldExpression(name) {
|
|
4815
|
+
return /^[A-Za-z_]\w*$/.test(name) ? name : JSON.stringify(name);
|
|
4816
|
+
}
|
|
4817
|
+
function evaluationHint(codec, filter, data, cause) {
|
|
4818
|
+
const underlying = cause instanceof Error ? cause.message : String(cause);
|
|
4819
|
+
const failure = /\b(\w+)\(\) expected argument (\d+) to be type (\S+) but received type null\b/.exec(underlying);
|
|
4820
|
+
if (!failure)
|
|
4821
|
+
return;
|
|
4822
|
+
const [, fn, position, expected] = failure;
|
|
4823
|
+
const name = failingFieldRead(codec.compile(filter), Array.isArray(data), fn, Number(position));
|
|
4824
|
+
if (name === undefined)
|
|
4825
|
+
return;
|
|
4826
|
+
const present = availableFields(data);
|
|
4827
|
+
if (present.length === 0)
|
|
4828
|
+
return;
|
|
4829
|
+
const scope = `${countRecords(data)} record(s)`;
|
|
4830
|
+
if (!present.includes(name)) {
|
|
4831
|
+
return {
|
|
4832
|
+
detail: `${notFieldsOn([name], scope)}. Available fields: ${nameList(present)}.`,
|
|
4833
|
+
instructions: "Use a field the records have; names are case-sensitive."
|
|
4834
|
+
};
|
|
4835
|
+
}
|
|
4836
|
+
const records = Array.isArray(data) ? data : [data];
|
|
4837
|
+
const unset = records.filter((r) => r?.[name] == null).length;
|
|
4838
|
+
const field = fieldExpression(name);
|
|
4839
|
+
let fallback;
|
|
4840
|
+
if (expected.split(",").includes("string")) {
|
|
4841
|
+
fallback = "''";
|
|
4842
|
+
} else if (expected.split(",").includes("array")) {
|
|
4843
|
+
fallback = "`[]`";
|
|
4844
|
+
}
|
|
4845
|
+
return {
|
|
4846
|
+
detail: `\`${name}\` is null or missing on ${unset} of the ${scope} it read.`,
|
|
4847
|
+
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.`
|
|
4848
|
+
};
|
|
4849
|
+
}
|
|
4618
4850
|
function buildFilterWarning(filter, data, outcome) {
|
|
4619
4851
|
const present = availableFields(data);
|
|
4620
4852
|
const refs = referencedFields(filter);
|
|
@@ -4622,7 +4854,7 @@ function buildFilterWarning(filter, data, outcome) {
|
|
|
4622
4854
|
const unchecked = refs.nested.filter((name) => !present.includes(name));
|
|
4623
4855
|
const count = countRecords(data);
|
|
4624
4856
|
const scope = `${count} record(s)`;
|
|
4625
|
-
const isNotAField = (names) =>
|
|
4857
|
+
const isNotAField = (names) => notFieldsOn(names, scope);
|
|
4626
4858
|
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" : "";
|
|
4627
4859
|
const withSoundness = (base) => soundness ? `${base}, and ${soundness}` : base;
|
|
4628
4860
|
let detail;
|
|
@@ -4673,7 +4905,8 @@ function applyFilter(data, filter, onWarning) {
|
|
|
4673
4905
|
try {
|
|
4674
4906
|
result = codec.search(data, filter);
|
|
4675
4907
|
} catch (err) {
|
|
4676
|
-
|
|
4908
|
+
const [, hint] = catchError2(() => evaluationHint(codec, filter, data, err));
|
|
4909
|
+
throw new FilterEvaluationError(filter, err, hint);
|
|
4677
4910
|
}
|
|
4678
4911
|
const inputCount = countRecords(data);
|
|
4679
4912
|
const warn = (outcome) => {
|
|
@@ -5564,7 +5797,7 @@ Command.prototype.trackedAction = function(context, fn, properties) {
|
|
|
5564
5797
|
logger.debug(`[trackedAction] ${telemetryName} failed: ${errorMessage}`);
|
|
5565
5798
|
const typed = error;
|
|
5566
5799
|
const customInstructions = typeof typed.instructions === "string" ? typed.instructions : undefined;
|
|
5567
|
-
const customResult =
|
|
5800
|
+
const customResult = carriedResult(error);
|
|
5568
5801
|
const cancellationExitCode = typed.exitCode === 130 || isPromptCancellation(error) ? 130 : undefined;
|
|
5569
5802
|
const classified = cancellationExitCode === undefined ? await extractErrorDetails(error) : undefined;
|
|
5570
5803
|
const finalResult = customResult ?? classified?.result ?? RESULTS.Failure;
|
|
@@ -6147,17 +6380,58 @@ function quoteForShell(value) {
|
|
|
6147
6380
|
|
|
6148
6381
|
// ../common/src/stdin.ts
|
|
6149
6382
|
async function readStdin2() {
|
|
6383
|
+
return readPipedStdin();
|
|
6384
|
+
}
|
|
6385
|
+
function readPipedStdin(idleTimeoutMs) {
|
|
6150
6386
|
if (process.stdin.isTTY) {
|
|
6151
|
-
return null;
|
|
6387
|
+
return Promise.resolve(null);
|
|
6152
6388
|
}
|
|
6153
6389
|
return new Promise((resolve, reject) => {
|
|
6390
|
+
const stdin = process.stdin;
|
|
6154
6391
|
let data = "";
|
|
6155
|
-
|
|
6156
|
-
|
|
6392
|
+
let timer;
|
|
6393
|
+
const detach = () => {
|
|
6394
|
+
clearTimeout(timer);
|
|
6395
|
+
stdin.off("data", onData);
|
|
6396
|
+
stdin.off("end", onEnd);
|
|
6397
|
+
stdin.off("error", onError);
|
|
6398
|
+
};
|
|
6399
|
+
const release = () => {
|
|
6400
|
+
detach();
|
|
6401
|
+
stdin.pause();
|
|
6402
|
+
stdin.unref?.();
|
|
6403
|
+
};
|
|
6404
|
+
const armTimer = () => {
|
|
6405
|
+
clearTimeout(timer);
|
|
6406
|
+
if (idleTimeoutMs === undefined) {
|
|
6407
|
+
return;
|
|
6408
|
+
}
|
|
6409
|
+
timer = setTimeout(() => {
|
|
6410
|
+
release();
|
|
6411
|
+
if (!data.trim()) {
|
|
6412
|
+
resolve(null);
|
|
6413
|
+
return;
|
|
6414
|
+
}
|
|
6415
|
+
reject(new Error(`Timed out: stdin was idle for ${idleTimeoutMs} ms before end of input.`));
|
|
6416
|
+
}, idleTimeoutMs);
|
|
6417
|
+
};
|
|
6418
|
+
const onData = (chunk) => {
|
|
6157
6419
|
data += chunk;
|
|
6158
|
-
|
|
6159
|
-
|
|
6160
|
-
|
|
6420
|
+
armTimer();
|
|
6421
|
+
};
|
|
6422
|
+
const onEnd = () => {
|
|
6423
|
+
detach();
|
|
6424
|
+
resolve(data.trim() || null);
|
|
6425
|
+
};
|
|
6426
|
+
const onError = (err) => {
|
|
6427
|
+
detach();
|
|
6428
|
+
reject(err);
|
|
6429
|
+
};
|
|
6430
|
+
armTimer();
|
|
6431
|
+
stdin.setEncoding("utf8");
|
|
6432
|
+
stdin.on("data", onData);
|
|
6433
|
+
stdin.on("end", onEnd);
|
|
6434
|
+
stdin.on("error", onError);
|
|
6161
6435
|
});
|
|
6162
6436
|
}
|
|
6163
6437
|
|
|
@@ -6204,130 +6478,6 @@ async function resolveAttachmentInputs(specs, upload) {
|
|
|
6204
6478
|
return { name: p.name, path: p.path, reference };
|
|
6205
6479
|
}));
|
|
6206
6480
|
}
|
|
6207
|
-
// ../common/src/auth-challenge.ts
|
|
6208
|
-
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;
|
|
6209
|
-
function redactTokens(text) {
|
|
6210
|
-
return text.replace(TOKEN_SHAPED, "[REDACTED]");
|
|
6211
|
-
}
|
|
6212
|
-
var MAX_CHALLENGE_DESCRIPTION = 200;
|
|
6213
|
-
function parseAuthChallenge(header) {
|
|
6214
|
-
if (!header)
|
|
6215
|
-
return {};
|
|
6216
|
-
const code = /\berror="([^"]*)"/.exec(header)?.[1]?.trim();
|
|
6217
|
-
const raw = /\berror_description="([^"]*)"/.exec(header)?.[1]?.trim();
|
|
6218
|
-
const description = raw ? redactTokens(raw).slice(0, MAX_CHALLENGE_DESCRIPTION) : undefined;
|
|
6219
|
-
return {
|
|
6220
|
-
error: code || undefined,
|
|
6221
|
-
description: description || undefined
|
|
6222
|
-
};
|
|
6223
|
-
}
|
|
6224
|
-
// ../common/src/error-instructions.ts
|
|
6225
|
-
function extractHttpStatus(err) {
|
|
6226
|
-
if (!err || typeof err !== "object")
|
|
6227
|
-
return;
|
|
6228
|
-
const e = err;
|
|
6229
|
-
const structured = e.response?.status ?? e.status ?? e.statusCode;
|
|
6230
|
-
if (structured !== undefined)
|
|
6231
|
-
return structured;
|
|
6232
|
-
return typeof e.message === "string" ? parseHttpStatusFromMessage(e.message) : undefined;
|
|
6233
|
-
}
|
|
6234
|
-
var GENERIC = "Check authentication and parameters";
|
|
6235
|
-
function hasIdentityInstructionContext(err) {
|
|
6236
|
-
return err !== null && typeof err === "object" && "instructionContext" in err && err.instructionContext === "identity";
|
|
6237
|
-
}
|
|
6238
|
-
function instructionsFor(ctx, err) {
|
|
6239
|
-
if (ctx === "auth" && hasIdentityInstructionContext(err)) {
|
|
6240
|
-
return instructionsFor("identity");
|
|
6241
|
-
}
|
|
6242
|
-
switch (ctx) {
|
|
6243
|
-
case "auth":
|
|
6244
|
-
return "Run 'uip login' to authenticate. To inspect the current session, run 'uip whoami'.";
|
|
6245
|
-
case "auth-configuration":
|
|
6246
|
-
return "Fix the authentication settings named in Message, then retry.";
|
|
6247
|
-
case "identity":
|
|
6248
|
-
return "Select an active tenant with 'uip login tenant set <tenant>' and ensure your login includes an organization";
|
|
6249
|
-
case "input-parse":
|
|
6250
|
-
return "Ensure --inputs is valid JSON or pipe JSON via stdin";
|
|
6251
|
-
case "input-validate":
|
|
6252
|
-
return "Fix the flagged input fields to match the process's input schema";
|
|
6253
|
-
case "flag-format":
|
|
6254
|
-
return "Check the flag value format — see --help for the expected shape";
|
|
6255
|
-
case "permissions":
|
|
6256
|
-
return "Confirm your user has the required permissions in this folder/tenant, or re-authenticate with 'uip login' if your session has lapsed";
|
|
6257
|
-
case "backend": {
|
|
6258
|
-
const status = extractHttpStatus(err);
|
|
6259
|
-
if (status === 401) {
|
|
6260
|
-
return "Re-authenticate with 'uip login' — your session is invalid or expired";
|
|
6261
|
-
}
|
|
6262
|
-
if (status === 403) {
|
|
6263
|
-
return "Confirm your user has access to the resource, and the required permissions in this folder or tenant";
|
|
6264
|
-
}
|
|
6265
|
-
if (status === 404) {
|
|
6266
|
-
return "Verify the resource exists in the current folder/tenant";
|
|
6267
|
-
}
|
|
6268
|
-
if (status === 400 || status === 422) {
|
|
6269
|
-
return "Request was rejected — check flag values and inputs";
|
|
6270
|
-
}
|
|
6271
|
-
if (status === 405) {
|
|
6272
|
-
return "Check the command name and the base URL in use — the endpoint may not exist";
|
|
6273
|
-
}
|
|
6274
|
-
if (status === 408) {
|
|
6275
|
-
return "The request timed out — retry; if it persists, narrow the request (e.g. --limit on list commands)";
|
|
6276
|
-
}
|
|
6277
|
-
if (status === 409) {
|
|
6278
|
-
return "The resource already exists, or changed since it was read — list it to see the current state";
|
|
6279
|
-
}
|
|
6280
|
-
if (status === 413) {
|
|
6281
|
-
return "The upload is over the size limit — exclude unused dependencies or drop large files, then retry";
|
|
6282
|
-
}
|
|
6283
|
-
if (status === 429) {
|
|
6284
|
-
return "Rate limit reached — wait and retry; when the service suggests a delay, Retry and Context.retryAfter carry it";
|
|
6285
|
-
}
|
|
6286
|
-
if (status !== undefined && status >= 500 && status < 600) {
|
|
6287
|
-
return "The service returned a server error — retry; if it persists, check service status";
|
|
6288
|
-
}
|
|
6289
|
-
const permission = describePermissionError(err);
|
|
6290
|
-
if (permission) {
|
|
6291
|
-
return permission.instructions;
|
|
6292
|
-
}
|
|
6293
|
-
const connectivity = describeConnectivityError(err);
|
|
6294
|
-
if (connectivity) {
|
|
6295
|
-
return connectivity.instructions;
|
|
6296
|
-
}
|
|
6297
|
-
return GENERIC;
|
|
6298
|
-
}
|
|
6299
|
-
}
|
|
6300
|
-
}
|
|
6301
|
-
|
|
6302
|
-
// ../common/src/classified-failure.ts
|
|
6303
|
-
var MAX_QUOTED_BODY_CHARS = 200;
|
|
6304
|
-
async function classifiedFailure(message, error) {
|
|
6305
|
-
const details = await extractErrorDetails(error);
|
|
6306
|
-
return {
|
|
6307
|
-
Result: details.result,
|
|
6308
|
-
ErrorCode: details.errorCode,
|
|
6309
|
-
Message: message,
|
|
6310
|
-
Instructions: details.message,
|
|
6311
|
-
Retry: details.retry,
|
|
6312
|
-
...details.context ? { Context: details.context } : {}
|
|
6313
|
-
};
|
|
6314
|
-
}
|
|
6315
|
-
async function authContextFailure(error, sessionInstructions) {
|
|
6316
|
-
const details = await extractErrorDetails(error);
|
|
6317
|
-
const missingIdentity = hasIdentityInstructionContext(error);
|
|
6318
|
-
return {
|
|
6319
|
-
Result: details.errorCode === "configuration_error" ? RESULTS.ConfigError : details.errorCode === "authentication_required" ? RESULTS.AuthenticationError : details.result,
|
|
6320
|
-
ErrorCode: details.errorCode,
|
|
6321
|
-
Message: details.message,
|
|
6322
|
-
Instructions: details.errorCode === "configuration_error" ? instructionsFor("auth-configuration") : details.errorCode === "authentication_required" && !missingIdentity && sessionInstructions !== undefined ? sessionInstructions : instructionsFor(details.errorCode === "authentication_required" ? "auth" : "backend", error),
|
|
6323
|
-
Retry: details.retry,
|
|
6324
|
-
...details.context ? { Context: details.context } : {}
|
|
6325
|
-
};
|
|
6326
|
-
}
|
|
6327
|
-
function summarizePlatformBody(body) {
|
|
6328
|
-
const trimmed = body.trim().replace(/\s+/g, " ");
|
|
6329
|
-
return trimmed.length > MAX_QUOTED_BODY_CHARS ? `${trimmed.slice(0, MAX_QUOTED_BODY_CHARS)}…` : trimmed;
|
|
6330
|
-
}
|
|
6331
6481
|
// ../common/src/command-examples.ts
|
|
6332
6482
|
var examplesByCommand = new WeakMap;
|
|
6333
6483
|
Command.prototype.examples = function(examples) {
|
|
@@ -6372,11 +6522,6 @@ async function hashContent(content) {
|
|
|
6372
6522
|
}
|
|
6373
6523
|
throw new Error("Unable to compute SHA-256 hash in this environment.");
|
|
6374
6524
|
}
|
|
6375
|
-
// ../common/src/guid.ts
|
|
6376
|
-
var GUID_REGEX = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
6377
|
-
function isGuid(value) {
|
|
6378
|
-
return GUID_REGEX.test(value);
|
|
6379
|
-
}
|
|
6380
6525
|
// ../common/src/host-global-options.ts
|
|
6381
6526
|
var HOST_GLOBAL_OPTIONS_WITH_VALUE = [
|
|
6382
6527
|
"--output",
|
|
@@ -6525,17 +6670,27 @@ function parseOffset(raw, _previous) {
|
|
|
6525
6670
|
function parseBoundedInt(raw, optionName, bounds) {
|
|
6526
6671
|
const normalized = raw.trim();
|
|
6527
6672
|
if (normalized === "") {
|
|
6528
|
-
throw new
|
|
6673
|
+
throw new InvalidArgumentError2(`${optionName} requires a value (got empty).`);
|
|
6529
6674
|
}
|
|
6530
6675
|
if (!/^-?\d+$/.test(normalized)) {
|
|
6531
|
-
throw new
|
|
6676
|
+
throw new InvalidArgumentError2(`${optionName} must be an integer, got '${normalized}'.`);
|
|
6532
6677
|
}
|
|
6533
6678
|
const n = parseInt(normalized, 10);
|
|
6534
6679
|
if (n < bounds.min || n > bounds.max) {
|
|
6535
|
-
throw new
|
|
6680
|
+
throw new InvalidArgumentError2(`${optionName} must be between ${bounds.min} and ${bounds.max}, got ${n}.`);
|
|
6536
6681
|
}
|
|
6537
6682
|
return n;
|
|
6538
6683
|
}
|
|
6684
|
+
// ../common/src/relayed-output.ts
|
|
6685
|
+
var RELAYED_OUTPUT_SYMBOL = Symbol.for("@uipath/common/relayed-output");
|
|
6686
|
+
// ../common/src/report-failure.ts
|
|
6687
|
+
async function reportFailure(message, error, options = {}) {
|
|
6688
|
+
const failure = await classifiedFailure(message, error);
|
|
6689
|
+
OutputFormatter.error(options.instructions ? {
|
|
6690
|
+
...failure,
|
|
6691
|
+
Instructions: options.instructions(failure.Instructions, failure)
|
|
6692
|
+
} : failure);
|
|
6693
|
+
}
|
|
6539
6694
|
// ../common/src/screen-logger.ts
|
|
6540
6695
|
var ScreenLogger;
|
|
6541
6696
|
((ScreenLogger) => {
|
|
@@ -6706,6 +6861,6 @@ function trackShipSucceeded(payload, capture) {
|
|
|
6706
6861
|
}
|
|
6707
6862
|
// ../common/src/tool-provider.ts
|
|
6708
6863
|
var factorySlot = singleton("PackagerFactoryProvider");
|
|
6709
|
-
export { carriedErrorCode, httpStatusOf, carriedInstructions, classifyThrownError, extractErrorDetails, extractErrorMessage, extractErrorMessageSync, appendOption, ATTACHMENT_INSTRUCTIONS, ATTACHMENT_UPLOAD_INSTRUCTIONS, parseAttachmentSpec, resolveAttachmentInputs, redactTokens, parseAuthChallenge, instructionsFor,
|
|
6864
|
+
export { RESULTS, carriedErrorCode, carriedResult, httpStatusOf, carriedInstructions, classifyThrownError, extractErrorDetails, extractErrorMessage, extractErrorMessageSync, appendOption, ATTACHMENT_INSTRUCTIONS, ATTACHMENT_UPLOAD_INSTRUCTIONS, parseAttachmentSpec, resolveAttachmentInputs, redactTokens, parseAuthChallenge, instructionsFor, classifiedFailure, authContextFailure, summarizePlatformBody, Command, Option, getOutputSink, logger, DebugTelemetryProvider, NodeContextStorage, TelemetryService, isProjectTelemetryDisabled, EXIT_CODES, exitCodeForResult, Pagination, apiPagination, pascalCaseDataKeys, OutputFormatter, tokenizeTail, processContext, UIPATH_HOME_DIR2, DEFAULT_PAGE_SIZE, hashContent, mimeTypeForFileName, namedOrLegacy, legacySecondArg, usageError, addDeprecatedOptionAlias, createHiddenDeprecatedTenantOption, parseLimit, parseOffset, parseBoundedInt, registerPackageMetadataOptions, mapPackageMetadataOptions, msToDuration, PollOutcome, ErrorDecision, MIN_INTERVAL_MS, pollUntil, isTerminalStatus, isFailureStatus, reportFailure, ScreenLogger, getSdkUserAgentToken, addSdkUserAgentHeader, installSdkUserAgentHeader, quoteForShell, unsupportedSolutionProjectType, readStdin2, splitPackagedName, trackShipSucceeded };
|
|
6710
6865
|
|
|
6711
|
-
//# debugId=
|
|
6866
|
+
//# debugId=E0580BC65E6D64F564756E2164756E21
|