@uipath/flow-tool 1.205.0-preview.276 → 1.206.0-preview.279
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 +14 -12
- package/dist/THIRD-PARTY-NOTICES.md +77 -49
- package/dist/applicationinsights-web-8m26566f.js +17209 -0
- package/dist/authoring-x84r2a2j.js +23 -0
- package/dist/binding-service-s0wvr2xm.js +114 -0
- package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-gnftxwsf.js} +5 -6
- package/dist/connector-library-1yw5r47w.js +99 -0
- package/dist/{connector-service-m08dysc2.js → connector-service-r86mtxwn.js} +270 -275
- package/dist/{conversion-FQTRFHRX-e5wr281j.js → conversion-7O2PDOQB-3wwppx87.js} +477 -472
- package/dist/{de-FGHEJRCI-PK6WALXW-0dnvnmke.js → de-2BEKRUMY-MD7L477H-rj1rmtav.js} +425 -37
- package/dist/{de-WLW6KWOJ-2qnsqdtw.js → de-2BEKRUMY-x4dx0nn9.js} +190 -10
- package/dist/{de-VMMG2MN7-2ecwpg1b.js → de-3CU65EDB-r7r10am9.js} +82 -7
- package/dist/{de-UZI7FJDO-awjpqfz0.js → de-AI7ML6JM-km47f8k4.js} +20 -5
- package/dist/{de-B3EKCNFC-zdwybhh7.js → de-VQWT6L5Y-mch4qwyv.js} +38 -5
- package/dist/{de-XNTCMP5Z-xfkfqg20.js → de-XNTCMP5Z-nd4scb43.js} +1 -4
- package/dist/debug-conversation-trigger-3wzy90kj.js +23 -0
- package/dist/debug-http-client-zydr7tna.js +31 -0
- package/dist/debug-service-hdktqeek.js +60 -0
- package/dist/edge-service-zck3s9ss.js +267 -0
- package/dist/{elk.bundled-vpsbxz0p.js → elk.bundled-phy0zc81.js} +6860 -6860
- package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/en-LAVDF7IQ-ba7wzsxp.js +254 -0
- package/dist/en-LQHKFSEY-zf6a2myg.js +24 -0
- package/dist/en-U2NSIIZN-whenw6wh.js +58 -0
- package/dist/en-WPCQ4JKF-t3x07ggr.js +148 -0
- package/dist/en-X6T4SP2Y-FPGCJIFV-qdfapfzs.js +2756 -0
- package/dist/en-X6T4SP2Y-xe57av1w.js +2752 -0
- package/dist/{es-5THCNRFN-tqwyrdgy.js → es-7ZTQTGKN-11sj0yjx.js} +190 -10
- package/dist/{es-KR3ZSNMP-QLWVVWKJ-5egs0gj9.js → es-7ZTQTGKN-TXQBFYRA-bzh1e1gq.js} +422 -34
- package/dist/{es-EKHIPSW6-ya88nvm0.js → es-EKHIPSW6-asfceac2.js} +1 -4
- package/dist/{es-KEBF3AIM-g5rszh8f.js → es-EP563JWQ-1agj5n4e.js} +38 -5
- package/dist/{es-WY6FZ3HO-zksnn6dp.js → es-KHVY67FO-natcvmmm.js} +82 -7
- package/dist/{es-MX-5RELIXKI-jtjbcxbb.js → es-MX-7KJZPEQN-1fq0a9jr.js} +20 -5
- package/dist/{es-MX-ZP2LJ3V7-k4brnfa9.js → es-MX-F7ZEHSNE-gxpm47vv.js} +82 -7
- package/dist/{es-MX-XXZJGC4R-W6EEIHXR-c2m4yjpj.js → es-MX-IHGRIEWH-23X37OPS-7cqdzpcy.js} +425 -37
- package/dist/{es-MX-TWZBRAXK-gqd9swzw.js → es-MX-IHGRIEWH-g63p0gb4.js} +191 -11
- package/dist/{es-MX-OR6G2SFR-7yykk5ma.js → es-MX-OR6G2SFR-02t13sen.js} +1 -4
- package/dist/{es-MX-EL3CDS3F-sh84yvjr.js → es-MX-S2RFDGDE-x9r0tv30.js} +38 -5
- package/dist/{es-4UBUTCQA-t7hsackg.js → es-SPNKTD5Y-vw5cbgv5.js} +20 -5
- package/dist/filter-engine-dh9s90gb.js +10 -0
- package/dist/first-party-service-ahcc6xc6.js +8 -0
- package/dist/flow-api-d4dvmadm.js +38 -0
- package/dist/{flow-debug-service-gc2ky1ve.js → flow-debug-service-hy21ddd9.js} +151 -195
- package/dist/flow-eval-node-target-tdrwqca7.js +29 -0
- package/dist/flow-eval-run-api-w4j8ra60.js +9 -0
- package/dist/{flow-eval-run-service-2cbr0jtw.js → flow-eval-run-service-5en4ahyn.js} +125 -149
- package/dist/{flow-eval-service-24jbkhhz.js → flow-eval-service-2j28ect1.js} +57 -81
- package/dist/{flow-init-sdk-source-xvdvkq7d.js → flow-init-sdk-source-xnr4bg25.js} +8 -11
- package/dist/flow-init-service-bj3ev9bz.js +26 -0
- package/dist/flow-io-9q6xk473.js +24 -0
- package/dist/{flow-migrate-service-t3pnd2r3.js → flow-migrate-service-dkx85jj5.js} +33 -54
- package/dist/{flow-pack-service-b910q207.js → flow-pack-service-58m51sp8.js} +79 -103
- package/dist/flow-validate-service-9a3zate4.js +46 -0
- package/dist/{fr-DPD4GHX3-exeypjwk.js → fr-7LK3QUWT-a94yejcs.js} +38 -5
- package/dist/{fr-Y6NPVODW-AS7T42TR-v4qe2tha.js → fr-7ZDL4MVO-CXMRZDOF-qjkg6y2r.js} +425 -37
- package/dist/{fr-CERONSRC-edpxhbmb.js → fr-7ZDL4MVO-pd27vwh6.js} +191 -11
- package/dist/{fr-VBM5WRC2-707ha692.js → fr-AXJGUT53-hdg3pmd4.js} +20 -5
- package/dist/{fr-PRMYCRDC-0bk078by.js → fr-I42FODC5-p80x5v4b.js} +83 -8
- package/dist/{fr-IHD66TVT-vfvmefbx.js → fr-IHD66TVT-eq8h0d6c.js} +1 -4
- package/dist/{governance-fetcher-ffvbtwbd.js → governance-fetcher-h8hpcwyh.js} +17 -21
- package/dist/{headless-4x4v3sy6.js → headless-41t9wwb7.js} +2395 -43269
- package/dist/{hitl-service-3m4ce3mt.js → hitl-service-hccqhm63.js} +22 -42
- package/dist/index-4e3w8x62.js +31 -0
- package/dist/{index-fyc0k5dd.js → index-5pzp2qeb.js} +5350 -3271
- package/dist/index-5xh0cjag.js +82 -0
- package/dist/index-7fet3f0s.js +10 -0
- package/dist/index-d4bdedx3.js +32 -0
- package/dist/index-f5kq7265.js +24 -0
- package/dist/index-g2p2ww34.js +39 -0
- package/dist/index-ng011fzs.js +974 -0
- package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
- package/dist/{index-1b2je9n2.js → index-px95xmkg.js} +290 -268
- package/dist/index-tdwpejt6.js +22 -0
- package/dist/index-z2qk2qn6.js +24 -0
- package/dist/index.js +19 -28
- package/dist/index.umd.min-ttg1qc0x.js +7814 -0
- package/dist/init.js +22 -43
- package/dist/inline-entity-resolver-0neh2b43.js +25 -0
- package/dist/input-reader-zqaep7k7.js +11 -0
- package/dist/{ja-43QL7CGO-c3q8gre9.js → ja-C7GZV6YP-hvtbngr5.js} +20 -5
- package/dist/{ja-HFEQKCZF-hb2f25p8.js → ja-GI3OUHPZ-28fy60r0.js} +83 -8
- package/dist/{ja-JE5ZL7EY-hacj2m31.js → ja-JE5ZL7EY-607k4c7p.js} +1 -4
- package/dist/{ja-Q5PXKJ2V-BR5GRIDQ-fgqqpryf.js → ja-LGAM5HKR-NTPKIZEM-nv67917s.js} +422 -34
- package/dist/{ja-U2MCNHGT-gz0ap1jk.js → ja-LGAM5HKR-sgrtjqjh.js} +190 -10
- package/dist/ja-WY2W6733-ayr36h1f.js +71 -0
- package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
- package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/known-types-v9sxcq1c.js +13 -0
- package/dist/{ko-AYBDSRZG-G43C3XUW-kng13fsg.js → ko-7B4SUZB7-2SLI636D-grbtfrcv.js} +424 -36
- package/dist/{ko-XAUYQWDR-zp81gjp4.js → ko-7B4SUZB7-c8wr20sc.js} +190 -10
- package/dist/{ko-DJJRKCG5-5h3k9csc.js → ko-DJJRKCG5-4fekzjn4.js} +1 -4
- package/dist/{ko-LA5OSS5P-mq5h8sbk.js → ko-H2RGQWKJ-9696w762.js} +38 -5
- package/dist/{ko-TLL6Z6CD-wrt3n8a9.js → ko-Q24HSSL4-5vn55pte.js} +20 -5
- package/dist/{ko-B4SEC7QX-thq2wt6a.js → ko-RYKAL74T-10m4z8vw.js} +83 -8
- package/dist/localization-skqjy9nr.js +45 -0
- package/dist/maestro-automate-entry-d1v5q5mv.js +14 -0
- package/dist/{node-xqc0h091.js → node-0jy3qx5b.js} +69 -638
- package/dist/node-service-2nxpk751.js +64 -0
- package/dist/{node-strategy-1dmmhvf3.js → node-strategy-wrjxmbzt.js} +9 -12
- package/dist/node-sync-service-68vq10je.js +56 -0
- package/dist/packager-tool-14rdgz3c.js +55 -0
- package/dist/packager-tool-1rhch6b5.js +496 -0
- package/dist/packager-tool-21t17xzz.js +5073 -0
- package/dist/{packager-tool-pvhx9e12.js → packager-tool-2b0tn4p4.js} +58 -176
- package/dist/{packager-tool-f9jxca9z.js → packager-tool-368bft50.js} +11 -11
- package/dist/{packager-tool-a5afh1dc.js → packager-tool-4fv0sq2h.js} +61 -67
- package/dist/packager-tool-4g87fbz6.js +273 -0
- package/dist/packager-tool-4zt1s51a.js +53 -0
- package/dist/{packager-tool-frjt46rb.js → packager-tool-508ka40b.js} +23 -23
- package/dist/{packager-tool-gbv6f0ac.js → packager-tool-5104bnpv.js} +22 -21
- package/dist/packager-tool-5dgpfh5e.js +1274 -0
- package/dist/packager-tool-5ve5ms3b.js +2393 -0
- package/dist/{packager-tool-dxgrhfq5.js → packager-tool-64r7e4ek.js} +8 -8
- package/dist/{packager-tool-h6pf3qxq.js → packager-tool-65yf8zqb.js} +180 -1237
- package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
- package/dist/{packager-tool-htrt75v4.js → packager-tool-6jpvvxyb.js} +27 -22
- package/dist/packager-tool-6vhefpmq.js +461 -0
- package/dist/{packager-tool-1nfbzy0h.js → packager-tool-72xwbsmw.js} +441 -556
- package/dist/packager-tool-7atc775f.js +30 -0
- package/dist/packager-tool-7mxn3e7j.js +27 -0
- package/dist/{packager-tool-wvmtp8zt.js → packager-tool-7qtnffkc.js} +8 -7
- package/dist/{packager-tool-ymma2s85.js → packager-tool-8ba22j6n.js} +9 -6
- package/dist/{packager-tool-apawc11t.js → packager-tool-8ed52y5r.js} +1584 -1261
- package/dist/{packager-tool-v11fm907.js → packager-tool-8n4bdvke.js} +13 -13
- package/dist/{packager-tool-p8gab24q.js → packager-tool-8qypzm9v.js} +424 -404
- package/dist/packager-tool-9217bxm2.js +6 -0
- package/dist/{packager-tool-zfrp8ecz.js → packager-tool-951nhh3e.js} +82 -82
- package/dist/{packager-tool-ap0zt7de.js → packager-tool-99d2kj94.js} +8 -11
- package/dist/{packager-tool-z21c6mbp.js → packager-tool-a1h0q79w.js} +48 -48
- package/dist/{packager-tool-xk78j7dz.js → packager-tool-ac6rvny7.js} +52 -57
- package/dist/{packager-tool-1d64q5s5.js → packager-tool-b2pkwwj1.js} +1273 -1300
- package/dist/{packager-tool-yetpbbey.js → packager-tool-bbkkxbyq.js} +9 -8
- package/dist/{packager-tool-409n51pv.js → packager-tool-d07g2kpn.js} +7 -7
- package/dist/{packager-tool-8zzmg2f3.js → packager-tool-dx6sjbkd.js} +19 -19
- package/dist/{packager-tool-8g5931fz.js → packager-tool-em4ppegs.js} +36 -43
- package/dist/{packager-tool-zgsvggdr.js → packager-tool-f7rk9xhv.js} +4 -4
- package/dist/{packager-tool-jrnjzs5t.js → packager-tool-fzgfb0jt.js} +32175 -36281
- package/dist/{packager-tool-9rmaeaww.js → packager-tool-gdpw0daf.js} +25211 -11966
- package/dist/packager-tool-hk0fnvz5.js +14 -0
- package/dist/{packager-tool-dbsdy4xx.js → packager-tool-jd3v0bh1.js} +4 -4
- package/dist/{packager-tool-tqjfdpda.js → packager-tool-jmrhzfyj.js} +106 -80
- package/dist/{packager-tool-2px5qqm4.js → packager-tool-kz3t4raw.js} +490 -246
- package/dist/{packager-tool-7bam8cjq.js → packager-tool-mdf7bws6.js} +53255 -27261
- package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
- package/dist/{packager-tool-nkrmjr3a.js → packager-tool-mphfxa9g.js} +125 -125
- package/dist/{packager-tool-kn86394c.js → packager-tool-p123mtfx.js} +66 -692
- package/dist/{packager-tool-t7ahhaer.js → packager-tool-pxq0bwp0.js} +208 -138
- package/dist/{packager-tool-j95w4fj3.js → packager-tool-q0f1dvtd.js} +11 -11
- package/dist/{packager-tool-8qp60s20.js → packager-tool-q2f18crb.js} +3 -3
- package/dist/packager-tool-q2kwk5bf.js +57 -0
- package/dist/{packager-tool-09rvpfjd.js → packager-tool-rxqxza90.js} +192 -183
- package/dist/{packager-tool-3m4ve01f.js → packager-tool-ryds9860.js} +33 -36
- package/dist/{packager-tool-ykbahxma.js → packager-tool-t17t9svg.js} +6 -6
- package/dist/{packager-tool-myhbp761.js → packager-tool-vgrswa8p.js} +53 -8
- package/dist/{packager-tool-7hw344bt.js → packager-tool-xb16e3tz.js} +5 -5
- package/dist/{packager-tool-1frs4sr4.js → packager-tool-yewnsyag.js} +37 -5
- package/dist/packager-tool-zdqbp34f.js +14 -0
- package/dist/{packager-tool-pacrqxv2.js → packager-tool-ze3fnf3s.js} +52 -34
- package/dist/packager-tool.js +12 -32
- package/dist/prepare-uip-ad7mfs8t.js +92 -0
- package/dist/{pt-3KUMINBZ-d0fexmny.js → pt-2RGHDOG4-gwe2ptvg.js} +38 -5
- package/dist/{pt-BR-3LGIH33I-tqbrd89y.js → pt-BR-3LGIH33I-hdf332je.js} +1 -4
- package/dist/{pt-BR-USP2T7GD-pedn77m1.js → pt-BR-BIUJXIPU-2sqzhr8y.js} +20 -5
- package/dist/{pt-BR-6VFBW5QT-hsck9gjj.js → pt-BR-IL3KLBID-m1mvqqzb.js} +83 -8
- package/dist/{pt-BR-WNNZTIMN-6fent688.js → pt-BR-JWHVZE6H-gvkknv49.js} +38 -5
- package/dist/{pt-BR-TKHNHMET-4Z5H4N5G-pzw3328h.js → pt-BR-PHLFHMXZ-JFPKUXIZ-gyb27t6e.js} +425 -37
- package/dist/{pt-BR-GNQNAAZ2-xadharv4.js → pt-BR-PHLFHMXZ-n6de4s7z.js} +191 -11
- package/dist/{pt-RMIAKZB4-t80exmp7.js → pt-MHX6JGAX-xfgvdqwg.js} +20 -5
- package/dist/{pt-ROXU257Y-OWZOS54V-ywap2t39.js → pt-N7ZTJT4W-GVODJMRX-p5b51p0b.js} +424 -36
- package/dist/{pt-TO2DARY2-ftcce1bv.js → pt-N7ZTJT4W-d6c67xcn.js} +190 -10
- package/dist/{pt-PFZXVOQH-qshq0b2m.js → pt-PFZXVOQH-xvcm5b61.js} +1 -4
- package/dist/{pt-WOTPKWPZ-1rxcy8hs.js → pt-VLA5IOHO-8t4pze0h.js} +83 -8
- package/dist/{ro-GHOBYW2S-4zevc9dy.js → ro-3RKJNGJZ-xqj14e3d.js} +20 -5
- package/dist/{ro-KMDT7LYJ-yhpnsdvw.js → ro-53TS7SWG-hnjx1c7b.js} +38 -5
- package/dist/{ro-AN5G62WQ-kcj00jwq.js → ro-AN5G62WQ-fzsv2ymm.js} +1 -4
- package/dist/{ro-AVAWPKOO-6WCG756B-v7pjv1hc.js → ro-FLNXVYJI-ZN43XZKK-2tajkc94.js} +422 -34
- package/dist/{ro-WUYJV6OW-a8d9qy1n.js → ro-FLNXVYJI-ytrwabg2.js} +190 -10
- package/dist/{ro-PB44YXML-zmhhwp5h.js → ro-IRNFX376-mh84zk3n.js} +82 -7
- package/dist/{ru-GSCT4ARZ-FTVCGQTL-gee86v14.js → ru-GSCT4ARZ-FTVCGQTL-v3d4ag31.js} +2 -4
- package/dist/ru-GSCT4ARZ-c2cfq4h1.js +7 -0
- package/dist/{ru-T73OPRTC-4knxw497.js → ru-T73OPRTC-50m7tty9.js} +1 -4
- package/dist/{ru-WBLQ5B2U-wemdzdqd.js → ru-WBLQ5B2U-5qpt0mvh.js} +1 -4
- package/dist/{ru-WBLQ5B2U-8r3c7v6d.js → ru-WBLQ5B2U-bf20yr5y.js} +1 -4
- package/dist/{ru-WBLQ5B2U-kdey8qa4.js → ru-WBLQ5B2U-w2wmp3xb.js} +1 -4
- package/dist/{serialization-BXU6AKAN-vdqyr29x.js → serialization-Z3UYT6BW-y9gb55mp.js} +1638 -761
- package/dist/services/extract-schema/default-schema-document.d.ts +31 -0
- package/dist/services/node-service.d.ts +6 -3
- package/dist/services/node-validators/file-node-connection-validator.d.ts +2 -0
- package/dist/services/node-validators/index.d.ts +1 -0
- package/dist/services/orchestrator-connection-field.d.ts +24 -0
- package/dist/services/packaging-utils.d.ts +2 -2
- package/dist/services/vars-reference-rule.d.ts +4 -3
- package/dist/solution-auth-j8x84n5z.js +11 -0
- package/dist/solution-discovery-vn4q32bf.js +38 -0
- package/dist/{tidy-service-hz61ypyj.js → tidy-service-m33hhtc7.js} +37 -55
- package/dist/tool.js +18 -27
- package/dist/{tr-JMIP7ZSL-G3QYPVT2-gswngwcr.js → tr-7AIZZWZ6-ESAESUPL-77g9b7jb.js} +422 -34
- package/dist/{tr-M3F5A6AU-bb0tg39m.js → tr-7AIZZWZ6-pdzp9n0p.js} +190 -10
- package/dist/{tr-SEC6RGZ4-0ttavjya.js → tr-EJKY7DVQ-rkctqva4.js} +83 -8
- package/dist/{tr-KHOCWWLF-8apf5y44.js → tr-KHOCWWLF-m9t24j5y.js} +1 -4
- package/dist/{tr-SC55DYHY-e4zgcd4t.js → tr-PIQY7JIT-2mkwk0kq.js} +38 -5
- package/dist/{tr-GDTLECMM-kngksm3r.js → tr-PQLUUHPC-qsb7btxn.js} +20 -5
- package/dist/utils/container-ports.d.ts +22 -0
- package/dist/utils/handle-expansion.d.ts +57 -3
- package/dist/utils/workflow-file-format.d.ts +14 -0
- package/dist/validation.js +44 -68
- package/dist/{variable-service-9ex4a93n.js → variable-service-ea1erf93.js} +28 -49
- package/dist/{wait-for-flow-job-b0vj8828.js → wait-for-flow-job-a4xtda36.js} +29 -36
- package/dist/{zh-CN-MX7VIOF2-xznrtchf.js → zh-CN-4FH7E7UL-84y6j2ea.js} +82 -7
- package/dist/{zh-CN-4NI2EGMV-8g027vv3.js → zh-CN-4NI2EGMV-dt0wg0wh.js} +1 -4
- package/dist/{zh-CN-IFFXSEJS-MZQ4HU3Z-ge1ynmtz.js → zh-CN-CN2ARPFS-NIQTWDK2-b5c91fwn.js} +422 -34
- package/dist/{zh-CN-C5G4PC7C-ds9gkptg.js → zh-CN-CN2ARPFS-e0p2qrxf.js} +190 -10
- package/dist/{en-BPJVY3U7-xkpj5xc5.js → zh-CN-NIEVKROA-q4tbbwqz.js} +26 -7
- package/dist/{zh-CN-I5D7WHBD-ge92tbx9.js → zh-CN-OHNTHZRI-b0hjkfqn.js} +20 -5
- package/dist/{zh-TW-53SU6EH4-33x57egq.js → zh-TW-53SU6EH4-w0wz3nwg.js} +1 -4
- package/dist/{zh-TW-5SJ3GZT2-bsg054mw.js → zh-TW-5WQA6QTM-hns69sd4.js} +83 -8
- package/dist/{zh-TW-IYBNYAMG-J7FWTQTK-sx8d4ymg.js → zh-TW-7RUFEVFK-VKVRSVTP-jq2pcmar.js} +421 -33
- package/dist/{zh-TW-62HZIG6O-787kdwex.js → zh-TW-7RUFEVFK-qd7myw31.js} +190 -10
- package/dist/{zh-TW-2AVLM723-288pkc1z.js → zh-TW-E4D3Y6ZR-tn3bmzz5.js} +20 -5
- package/dist/{zh-TW-TN3MPNXL-jcgg2hcs.js → zh-TW-MSQM7YTT-m7r7nwnj.js} +38 -5
- package/package.json +2 -2
- package/dist/authoring-e1k40hyw.js +0 -24
- package/dist/binding-service-0qffbxg7.js +0 -157
- package/dist/de-FGHEJRCI-gn4cf5gh.js +0 -2697
- package/dist/de-MUJPA4EB-209jpeqe.js +0 -173
- package/dist/de-UZI7FJDO-mwvc4cxe.js +0 -200
- package/dist/debug-conversation-trigger-2crr9w4n.js +0 -30
- package/dist/debug-http-client-yqjzsnhw.js +0 -32
- package/dist/debug-service-nra3n02y.js +0 -61
- package/dist/edge-service-y44f2rgd.js +0 -170
- package/dist/en-E454CJNK-ytfw06kj.js +0 -98
- package/dist/en-EJCBA3LK-0wb3b1xy.js +0 -146
- package/dist/en-EJCBA3LK-dtpdghgj.js +0 -146
- package/dist/en-GN2ZGWUE-03z2df4k.js +0 -136
- package/dist/en-LQHKFSEY-vvbe8ve9.js +0 -26
- package/dist/en-M7GQYBV2-5nfmpnfz.js +0 -2018
- package/dist/en-TBNO2WUV-77KTKLDE-4ktf0pqw.js +0 -1942
- package/dist/en-TBNO2WUV-9nan43e5.js +0 -1936
- package/dist/es-4UBUTCQA-m1ytpyx2.js +0 -200
- package/dist/es-7SE7HX2X-qda7whn6.js +0 -173
- package/dist/es-KR3ZSNMP-0cszm2n3.js +0 -2697
- package/dist/es-MX-2MYFZU7X-6v0q5rbn.js +0 -173
- package/dist/es-MX-5RELIXKI-9jhqtddc.js +0 -200
- package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +0 -2697
- package/dist/filter-engine-7ep90g7f.js +0 -11
- package/dist/first-party-service-srxaftkn.js +0 -27
- package/dist/flow-api-sat010z1.js +0 -42
- package/dist/flow-eval-node-target-cwxb4kfe.js +0 -52
- package/dist/flow-eval-run-api-xdygjzfv.js +0 -13
- package/dist/flow-init-service-k7k5vx2z.js +0 -47
- package/dist/flow-io-2qdyj5e0.js +0 -44
- package/dist/flow-validate-service-x2mbk3et.js +0 -70
- package/dist/fr-MDFKNZ4C-qmypp92m.js +0 -173
- package/dist/fr-VBM5WRC2-63z7w4mh.js +0 -200
- package/dist/fr-Y6NPVODW-q5ef3htr.js +0 -2697
- package/dist/index-cg9qhfb1.js +0 -635
- package/dist/index-d090f35d.js +0 -66
- package/dist/index-gxcjq6ns.js +0 -110
- package/dist/index-kmp9fmhb.js +0 -25
- package/dist/index-nsn889vf.js +0 -27
- package/dist/index-sqhbn7ew.js +0 -157
- package/dist/index-wycgq0ff.js +0 -3178
- package/dist/index-y1ym28vg.js +0 -667
- package/dist/index.umd.min-fqefd9kn.js +0 -7814
- package/dist/inline-entity-resolver-c854cqma.js +0 -45
- package/dist/input-reader-n7kzdrev.js +0 -12
- package/dist/ja-43QL7CGO-h6qfxfay.js +0 -200
- package/dist/ja-MDG4BKZQ-gayaca2c.js +0 -38
- package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +0 -2697
- package/dist/ja-UTQEAP34-hvyf683h.js +0 -173
- package/dist/known-types-r51zxb9g.js +0 -19
- package/dist/ko-AXCHW2OK-pkwdcbmx.js +0 -173
- package/dist/ko-AYBDSRZG-am0h0m2r.js +0 -2697
- package/dist/ko-TLL6Z6CD-ag6gjynr.js +0 -200
- package/dist/localization-d6gjmrsw.js +0 -47
- package/dist/maestro-automate-entry-6f9act3w.js +0 -22
- package/dist/node-service-d4xpqs0z.js +0 -92
- package/dist/node-sync-service-76b9e4r5.js +0 -61
- package/dist/packager-tool-0gctz400.js +0 -17
- package/dist/packager-tool-4mna26cc.js +0 -133
- package/dist/packager-tool-4x7tzvv0.js +0 -1176
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-6ejqwbw9.js +0 -26
- package/dist/packager-tool-6z1hsm2h.js +0 -143
- package/dist/packager-tool-7ja1b5hh.js +0 -8809
- package/dist/packager-tool-9era57c0.js +0 -28
- package/dist/packager-tool-9jxzgsxc.js +0 -14
- package/dist/packager-tool-c23zrhj8.js +0 -11
- package/dist/packager-tool-d6qf5qmb.js +0 -49
- package/dist/packager-tool-e3yks66r.js +0 -95
- package/dist/packager-tool-e5hj89zm.js +0 -6
- package/dist/packager-tool-e87tzg4y.js +0 -1937
- package/dist/packager-tool-eypvc2kv.js +0 -23
- package/dist/packager-tool-gbgfwx8f.js +0 -2
- package/dist/packager-tool-hk1gxnth.js +0 -11
- package/dist/packager-tool-hxyjn885.js +0 -24
- package/dist/packager-tool-j78fwwhq.js +0 -16
- package/dist/packager-tool-jgfzfqjm.js +0 -53
- package/dist/packager-tool-jysvpt8p.js +0 -11
- package/dist/packager-tool-m3wkcxf5.js +0 -11
- package/dist/packager-tool-mcaf4ewf.js +0 -46
- package/dist/packager-tool-mgcz986r.js +0 -143
- package/dist/packager-tool-p79yh9ww.js +0 -97
- package/dist/packager-tool-paq9c70w.js +0 -1332
- package/dist/packager-tool-pcvhcn2k.js +0 -2019
- package/dist/packager-tool-qkn0c042.js +0 -1922
- package/dist/packager-tool-qszay16r.js +0 -180
- package/dist/packager-tool-red2crtp.js +0 -5367
- package/dist/packager-tool-rs6jm14d.js +0 -23
- package/dist/packager-tool-s7wb0s9n.js +0 -6297
- package/dist/packager-tool-sc961w0q.js +0 -16
- package/dist/packager-tool-skcjythd.js +0 -22085
- package/dist/packager-tool-t07ev0jj.js +0 -1083
- package/dist/packager-tool-xj0agqpk.js +0 -11
- package/dist/packager-tool-z83pga0z.js +0 -1942
- package/dist/pt-3DIO5QWG-hb763vct.js +0 -173
- package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +0 -2697
- package/dist/pt-BR-USP2T7GD-rppy42ym.js +0 -200
- package/dist/pt-BR-Y6K6XHXK-37a932vp.js +0 -173
- package/dist/pt-RMIAKZB4-67enhx3m.js +0 -200
- package/dist/pt-ROXU257Y-yd80gx6s.js +0 -2697
- package/dist/ro-AVAWPKOO-42m6am1w.js +0 -2697
- package/dist/ro-BWR3ONRR-jmap5ajd.js +0 -173
- package/dist/ro-GHOBYW2S-mhnqsgaa.js +0 -200
- package/dist/ru-GSCT4ARZ-1sa9wbr8.js +0 -10
- package/dist/ru-GSCT4ARZ-jrxwev63.js +0 -10
- package/dist/ru-WBLQ5B2U-dpqvtfwr.js +0 -10
- package/dist/ru-WBLQ5B2U-s4em88p0.js +0 -10
- package/dist/shared-utils-tqnx96mg.js +0 -21
- package/dist/solution-auth-8qz5pw7z.js +0 -14
- package/dist/solution-discovery-6t0z143v.js +0 -44
- package/dist/tr-5IIHSFW5-stsb3dar.js +0 -173
- package/dist/tr-GDTLECMM-k5fhmq13.js +0 -200
- package/dist/tr-JMIP7ZSL-fb67ft9w.js +0 -2696
- package/dist/zh-CN-I5D7WHBD-sr5h0a98.js +0 -200
- package/dist/zh-CN-IFFXSEJS-tke4mzty.js +0 -2697
- package/dist/zh-CN-OUMLDKDS-q3a1rr5c.js +0 -38
- package/dist/zh-CN-R2KU4U5L-q4yhc33t.js +0 -173
- package/dist/zh-TW-2AVLM723-xsmap3gk.js +0 -200
- package/dist/zh-TW-GNKMELBF-r4ay2475.js +0 -173
- package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +0 -2697
- /package/dist/{packager-tool-yc4kw997.js → packager-tool-1qg04b7q.js} +0 -0
- /package/dist/{packager-tool-cqtsj6yh.js → packager-tool-2sazb7th.js} +0 -0
- /package/dist/{packager-tool-s9ff3kk4.js → packager-tool-887wr6jm.js} +0 -0
- /package/dist/{packager-tool-aw9v0raw.js → packager-tool-8c7nddd1.js} +0 -0
- /package/dist/{packager-tool-9cq9atem.js → packager-tool-a9xgmn1q.js} +0 -0
- /package/dist/{packager-tool-4kr6g0zw.js → packager-tool-cvh1a0nm.js} +0 -0
- /package/dist/{packager-tool-27avrkyk.js → packager-tool-k3egwd1m.js} +0 -0
- /package/dist/{packager-tool-qa9gftnj.js → packager-tool-mxgybnmt.js} +0 -0
- /package/dist/{packager-tool-10vc8pq4.js → packager-tool-wr7gn964.js} +0 -0
|
@@ -1,75 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./packager-tool-
|
|
2
|
+
getFileSystem
|
|
3
|
+
} from "./packager-tool-vgrswa8p.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
catchError2
|
|
6
|
+
} from "./packager-tool-pxq0bwp0.js";
|
|
7
|
+
import {
|
|
8
|
+
carriedErrorCode,
|
|
7
9
|
RESULTS,
|
|
8
|
-
|
|
10
|
+
Option,
|
|
9
11
|
getOutputSink,
|
|
10
12
|
pascalCaseDataKeys,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
OutputFormatter,
|
|
14
|
+
tokenizeTail,
|
|
15
|
+
processContext,
|
|
16
|
+
namedOrLegacy,
|
|
17
|
+
legacySecondArg,
|
|
18
|
+
usageError,
|
|
19
|
+
addDeprecatedOptionAlias
|
|
20
|
+
} from "./packager-tool-8ed52y5r.js";
|
|
13
21
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./packager-tool-
|
|
16
|
-
|
|
17
|
-
// ../builder-sdk/src/argv.ts
|
|
18
|
-
function addValue(argv, flag, value) {
|
|
19
|
-
if (typeof value === "string") {
|
|
20
|
-
argv.push(flag, value);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
22
|
+
resolveMaestroRegistry
|
|
23
|
+
} from "./packager-tool-64r7e4ek.js";
|
|
23
24
|
|
|
24
|
-
// ../builder-sdk/src/
|
|
25
|
+
// ../builder-sdk/src/node-runner.ts
|
|
25
26
|
import { spawn as spawn2 } from "node:child_process";
|
|
26
27
|
import { createRequire } from "node:module";
|
|
27
28
|
import { StringDecoder } from "node:string_decoder";
|
|
28
29
|
|
|
29
|
-
// ../builder-sdk/src/
|
|
30
|
-
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
function
|
|
34
|
-
|
|
35
|
-
if (prefix.trim() !== "") {
|
|
36
|
-
return Promise.resolve(process.platform === "win32" ? getFileSystem().path.join(prefix, "node_modules") : getFileSystem().path.join(prefix, "lib", "node_modules"));
|
|
37
|
-
}
|
|
38
|
-
npmRootLookup ??= runNpmRootGlobal();
|
|
39
|
-
return npmRootLookup;
|
|
30
|
+
// ../builder-sdk/src/runner.ts
|
|
31
|
+
var RUNNER_KEY = Symbol.for("@uipath/builder-sdk/flow-sdk-runner");
|
|
32
|
+
var RUNNER_OPTIONS_KEY = Symbol.for("@uipath/builder-sdk/flow-sdk-runner-options");
|
|
33
|
+
var IN_PROCESS_UIP_KEY = Symbol.for("@uipath/builder-sdk/in-process-uip");
|
|
34
|
+
function inProcessUip() {
|
|
35
|
+
return globalThis[IN_PROCESS_UIP_KEY];
|
|
40
36
|
}
|
|
41
|
-
function
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const proc = process.platform === "win32" ? spawn("npm root -g", [], onWindows) : spawn("npm", ["root", "-g"], { stdio });
|
|
46
|
-
let stdout = "";
|
|
47
|
-
proc.stdout?.on("data", (d) => {
|
|
48
|
-
stdout += d.toString();
|
|
49
|
-
});
|
|
50
|
-
const timer = setTimeout(() => {
|
|
51
|
-
proc.kill("SIGTERM");
|
|
52
|
-
resolve(null);
|
|
53
|
-
}, NPM_ROOT_TIMEOUT_MS);
|
|
54
|
-
proc.on("error", () => {
|
|
55
|
-
clearTimeout(timer);
|
|
56
|
-
resolve(null);
|
|
57
|
-
});
|
|
58
|
-
proc.on("close", (code) => {
|
|
59
|
-
clearTimeout(timer);
|
|
60
|
-
const root = stdout.trim();
|
|
61
|
-
resolve(code === 0 && root && !root.includes("***") ? root : null);
|
|
62
|
-
});
|
|
63
|
-
});
|
|
37
|
+
function registerFlowSdkRunner(runner, options = {}) {
|
|
38
|
+
const slot = globalThis;
|
|
39
|
+
slot[RUNNER_KEY] = runner;
|
|
40
|
+
slot[RUNNER_OPTIONS_KEY] = options;
|
|
64
41
|
}
|
|
65
|
-
function
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return prefix;
|
|
42
|
+
function flowSdkRunner() {
|
|
43
|
+
return globalThis[RUNNER_KEY];
|
|
44
|
+
}
|
|
45
|
+
function flowSdkRunnerOptions() {
|
|
46
|
+
return globalThis[RUNNER_OPTIONS_KEY] ?? {};
|
|
73
47
|
}
|
|
74
48
|
|
|
75
49
|
// ../builder-sdk/src/delegate.ts
|
|
@@ -79,6 +53,7 @@ var FLOW_SDK_PACKAGE = {
|
|
|
79
53
|
};
|
|
80
54
|
var BPMN_CONNECTOR_OPTIONS_VERSION = "6.15.0";
|
|
81
55
|
var FLOW_MERGE_STRICT_VERSION = "6.20.0";
|
|
56
|
+
var FLOW_DECOMPILE_SCRIPTS_VERSION = "6.57.0";
|
|
82
57
|
var CASE_CONNECTOR_OPTIONS_VERSION = "6.18.1";
|
|
83
58
|
function commandLabel(family, verb) {
|
|
84
59
|
return `uip maestro ${family} ${verb}`;
|
|
@@ -106,6 +81,10 @@ function versionMeetsFloor(version, floor) {
|
|
|
106
81
|
}
|
|
107
82
|
return !installed[3] || minimum[3];
|
|
108
83
|
}
|
|
84
|
+
function belowFloorMessage(label, version) {
|
|
85
|
+
const { name, minimumVersion } = FLOW_SDK_PACKAGE;
|
|
86
|
+
return `${label}: found ${name} ${version || "with no valid version"}; need >= ${minimumVersion}.`;
|
|
87
|
+
}
|
|
109
88
|
var FLOW_SDK_INVOKED_AS = "uip maestro";
|
|
110
89
|
function resultCode(family, verb) {
|
|
111
90
|
return [family, verb].map((word) => word.charAt(0).toUpperCase() + word.slice(1)).join("");
|
|
@@ -138,7 +117,250 @@ function failureReason(out, err) {
|
|
|
138
117
|
`).filter((line) => line.trim() !== "");
|
|
139
118
|
return lines.at(-1)?.trim() ?? out.trim();
|
|
140
119
|
}
|
|
141
|
-
function
|
|
120
|
+
function outcomeResult(outcome, label, found) {
|
|
121
|
+
if (outcome.kind === "spawn-error") {
|
|
122
|
+
return {
|
|
123
|
+
ok: false,
|
|
124
|
+
exitCode: 1,
|
|
125
|
+
result: RESULTS.Failure,
|
|
126
|
+
message: `${label}: ${outcome.message}`,
|
|
127
|
+
instructions: outcome.instructions ?? (found === "host" ? `This host could not start ${FLOW_SDK_PACKAGE.name}. Report it to the host; retrying will fail the same way.` : "Check that node is on PATH, then retry.")
|
|
128
|
+
};
|
|
129
|
+
}
|
|
130
|
+
const { exitCode, signal, out, err } = outcome;
|
|
131
|
+
if (exitCode === 0) {
|
|
132
|
+
return { ok: true, data: stdoutAsData(out) };
|
|
133
|
+
}
|
|
134
|
+
if (exitCode !== null) {
|
|
135
|
+
const detail = failureReason(out, err) || `SDK exited with code ${exitCode}`;
|
|
136
|
+
return {
|
|
137
|
+
ok: false,
|
|
138
|
+
exitCode,
|
|
139
|
+
result: RESULTS.Failure,
|
|
140
|
+
message: `${label}: ${detail}`,
|
|
141
|
+
instructions: err ? "Fix what the builder SDK reported (on stderr, and in Message), then retry." : "Fix what the builder SDK reported (see Message), then retry.",
|
|
142
|
+
...out.trim() ? { data: stdoutAsData(out) } : {}
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
return {
|
|
146
|
+
ok: false,
|
|
147
|
+
exitCode: 1,
|
|
148
|
+
result: RESULTS.Failure,
|
|
149
|
+
message: `${label}: SDK process ended with signal ${signal ?? "unknown"}.`,
|
|
150
|
+
instructions: "Retry the command."
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
function upgradeInstructions(found) {
|
|
154
|
+
if (found === "host") {
|
|
155
|
+
return `This host ships its own ${FLOW_SDK_PACKAGE.name}; it has to be updated there.`;
|
|
156
|
+
}
|
|
157
|
+
return found === "workspace" ? `npm install --save-dev ${FLOW_SDK_PACKAGE.name}@latest` : `npm install -g ${FLOW_SDK_PACKAGE.name}@latest`;
|
|
158
|
+
}
|
|
159
|
+
var LIBRARY_VERBS = new Set([
|
|
160
|
+
"flow compile",
|
|
161
|
+
"flow check",
|
|
162
|
+
"registry search",
|
|
163
|
+
"registry describe",
|
|
164
|
+
"registry pull"
|
|
165
|
+
]);
|
|
166
|
+
function pullAnswer(sha256, libraryJson) {
|
|
167
|
+
const sink = getOutputSink();
|
|
168
|
+
sink.writeErr(`registry pull: connector library ${sha256.slice(0, 12)}… is ready.
|
|
169
|
+
`);
|
|
170
|
+
sink.writeErr(`registry pull: write connector steps as connector('<key>', '<action>', …); typed ./connectors/<key>.ts modules do not exist here.
|
|
171
|
+
`);
|
|
172
|
+
return { ok: true, data: { sha256, library: libraryJson } };
|
|
173
|
+
}
|
|
174
|
+
async function runFlowSdk2({
|
|
175
|
+
family,
|
|
176
|
+
commandVerb,
|
|
177
|
+
sdkVerb = commandVerb,
|
|
178
|
+
argv,
|
|
179
|
+
passthrough = [],
|
|
180
|
+
cwd,
|
|
181
|
+
requiresSdkVersion
|
|
182
|
+
}) {
|
|
183
|
+
const workspace = cwd ?? getFileSystem().env.cwd();
|
|
184
|
+
const label = commandLabel(family, commandVerb);
|
|
185
|
+
const runner = flowSdkRunner();
|
|
186
|
+
if (!runner) {
|
|
187
|
+
return {
|
|
188
|
+
ok: false,
|
|
189
|
+
exitCode: 1,
|
|
190
|
+
result: RESULTS.ConfigError,
|
|
191
|
+
message: `${label}: this host has no way to run ${FLOW_SDK_PACKAGE.name}.`,
|
|
192
|
+
instructions: "Run the command with the uip CLI on a machine with Node.js."
|
|
193
|
+
};
|
|
194
|
+
}
|
|
195
|
+
const [locateError, resolution] = await catchError2(() => runner.locate(workspace, label));
|
|
196
|
+
if (locateError) {
|
|
197
|
+
return {
|
|
198
|
+
ok: false,
|
|
199
|
+
exitCode: 1,
|
|
200
|
+
result: RESULTS.ConfigError,
|
|
201
|
+
message: `${label}: could not locate ${FLOW_SDK_PACKAGE.name}: ${locateError.message}`,
|
|
202
|
+
instructions: `Check this host's ${FLOW_SDK_PACKAGE.name}, then retry.`
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
if (!resolution.ok) {
|
|
206
|
+
return {
|
|
207
|
+
ok: false,
|
|
208
|
+
exitCode: 1,
|
|
209
|
+
result: RESULTS.ConfigError,
|
|
210
|
+
message: resolution.message,
|
|
211
|
+
instructions: resolution.instructions
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
if (!versionMeetsFloor(resolution.version, FLOW_SDK_PACKAGE.minimumVersion)) {
|
|
215
|
+
return {
|
|
216
|
+
ok: false,
|
|
217
|
+
exitCode: 1,
|
|
218
|
+
result: RESULTS.ConfigError,
|
|
219
|
+
message: belowFloorMessage(label, resolution.version),
|
|
220
|
+
instructions: upgradeInstructions(resolution.found)
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
if (requiresSdkVersion && !versionMeetsFloor(resolution.version, requiresSdkVersion.version)) {
|
|
224
|
+
return {
|
|
225
|
+
ok: false,
|
|
226
|
+
exitCode: 1,
|
|
227
|
+
result: RESULTS.ConfigError,
|
|
228
|
+
message: `${label}: ${requiresSdkVersion.because} needs ${FLOW_SDK_PACKAGE.name} >= ${requiresSdkVersion.version}; found ${resolution.version}.`,
|
|
229
|
+
instructions: upgradeInstructions(resolution.found)
|
|
230
|
+
};
|
|
231
|
+
}
|
|
232
|
+
let library;
|
|
233
|
+
const libraryJson = getFileSystem().env.getenv("FLOW_SDK_LIBRARY_JSON");
|
|
234
|
+
const { INHERITED_AUTH_PROFILE_ENV, getActiveAuthProfile } = await import("./index-f5kq7265.js");
|
|
235
|
+
const env = {
|
|
236
|
+
FLOW_SDK_INVOKED_AS,
|
|
237
|
+
[INHERITED_AUTH_PROFILE_ENV]: getActiveAuthProfile() ?? "",
|
|
238
|
+
...libraryJson ? { FLOW_SDK_LIBRARY_JSON: libraryJson } : {}
|
|
239
|
+
};
|
|
240
|
+
if (resolution.found === "host" && !libraryJson && LIBRARY_VERBS.has(`${family} ${sdkVerb}`)) {
|
|
241
|
+
const connectorLibrary = await import("./connector-library-1yw5r47w.js");
|
|
242
|
+
const [error, loaded] = await catchError2(connectorLibrary.sessionConnectorLibrary(flowSdkRunnerOptions().libraryUrl));
|
|
243
|
+
if (error) {
|
|
244
|
+
return {
|
|
245
|
+
ok: false,
|
|
246
|
+
exitCode: 1,
|
|
247
|
+
result: RESULTS.Failure,
|
|
248
|
+
errorCode: carriedErrorCode(error) ?? "network_error",
|
|
249
|
+
message: `${label}: could not get the connector library: ${error.message}`,
|
|
250
|
+
instructions: "Check that this host can reach the connector library download, then retry."
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
if (family === "registry" && sdkVerb === "pull") {
|
|
254
|
+
return pullAnswer(loaded.sha256, connectorLibrary.LIBRARY_JSON);
|
|
255
|
+
}
|
|
256
|
+
library = connectorLibrary.libraryMount(loaded);
|
|
257
|
+
env.FLOW_SDK_LIBRARY_JSON = connectorLibrary.LIBRARY_JSON;
|
|
258
|
+
}
|
|
259
|
+
const runUipInProcess = inProcessUip();
|
|
260
|
+
const prepare = resolution.found === "host" && family === "registry" && sdkVerb === "prepare" && runUipInProcess ? (await import("./prepare-uip-ad7mfs8t.js")).prepareUip(runUipInProcess) : undefined;
|
|
261
|
+
const sdkArgv = [...argv, "--json", ...passthrough];
|
|
262
|
+
const sink = getOutputSink();
|
|
263
|
+
const [runError, outcome] = await catchError2(() => runner.run(resolution, {
|
|
264
|
+
args: [family, sdkVerb, ...sdkArgv],
|
|
265
|
+
cwd: workspace,
|
|
266
|
+
env,
|
|
267
|
+
...library ? { library } : {},
|
|
268
|
+
...prepare ? { uip: prepare.uip } : {},
|
|
269
|
+
writeErr: (text) => sink.writeErr(text)
|
|
270
|
+
}));
|
|
271
|
+
prepare?.close();
|
|
272
|
+
await prepare?.settled();
|
|
273
|
+
return outcomeResult(runError ? { kind: "spawn-error", message: runError.message } : outcome, label, resolution.found);
|
|
274
|
+
}
|
|
275
|
+
async function delegateToMaestroBuilderSdk(request) {
|
|
276
|
+
const result = await runFlowSdk2(request);
|
|
277
|
+
if (result.ok) {
|
|
278
|
+
let data = result.data;
|
|
279
|
+
const afterSuccess = request.afterSuccess;
|
|
280
|
+
if (afterSuccess) {
|
|
281
|
+
const [stepError, step] = await catchError2(() => afterSuccess(result.data));
|
|
282
|
+
const outcome = stepError ? {
|
|
283
|
+
ok: false,
|
|
284
|
+
message: stepError.message,
|
|
285
|
+
instructions: "The artifact was written; re-run the command once the cause is fixed."
|
|
286
|
+
} : step;
|
|
287
|
+
if (!outcome.ok) {
|
|
288
|
+
OutputFormatter.error({
|
|
289
|
+
Result: RESULTS.Failure,
|
|
290
|
+
Message: outcome.message,
|
|
291
|
+
Instructions: outcome.instructions,
|
|
292
|
+
...result.data ? { Data: pascalCaseDataKeys(result.data) } : {}
|
|
293
|
+
});
|
|
294
|
+
return 1;
|
|
295
|
+
}
|
|
296
|
+
if (outcome.data && data && !Array.isArray(data))
|
|
297
|
+
data = { ...data, ...outcome.data };
|
|
298
|
+
}
|
|
299
|
+
OutputFormatter.success({
|
|
300
|
+
Result: RESULTS.Success,
|
|
301
|
+
Code: resultCode(request.family, request.commandVerb),
|
|
302
|
+
Data: data
|
|
303
|
+
});
|
|
304
|
+
return 0;
|
|
305
|
+
}
|
|
306
|
+
OutputFormatter.error({
|
|
307
|
+
Result: result.result,
|
|
308
|
+
...result.errorCode ? { ErrorCode: result.errorCode } : {},
|
|
309
|
+
Message: result.message,
|
|
310
|
+
Instructions: result.instructions,
|
|
311
|
+
...result.data ? { Data: pascalCaseDataKeys(result.data) } : {}
|
|
312
|
+
});
|
|
313
|
+
return result.exitCode;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
// ../builder-sdk/src/npm-global-root.ts
|
|
317
|
+
import { spawn } from "node:child_process";
|
|
318
|
+
var NPM_ROOT_TIMEOUT_MS = 5000;
|
|
319
|
+
var npmRootLookup;
|
|
320
|
+
function npmGlobalRoot() {
|
|
321
|
+
const prefix = npmConfigPrefix(process.env);
|
|
322
|
+
if (prefix.trim() !== "") {
|
|
323
|
+
return Promise.resolve(process.platform === "win32" ? getFileSystem().path.join(prefix, "node_modules") : getFileSystem().path.join(prefix, "lib", "node_modules"));
|
|
324
|
+
}
|
|
325
|
+
npmRootLookup ??= runNpmRootGlobal();
|
|
326
|
+
return npmRootLookup;
|
|
327
|
+
}
|
|
328
|
+
function runNpmRootGlobal() {
|
|
329
|
+
return new Promise((resolve) => {
|
|
330
|
+
const stdio = ["ignore", "pipe", "ignore"];
|
|
331
|
+
const onWindows = { shell: true, stdio, windowsHide: true };
|
|
332
|
+
const proc = process.platform === "win32" ? spawn("npm root -g", [], onWindows) : spawn("npm", ["root", "-g"], { stdio });
|
|
333
|
+
let stdout = "";
|
|
334
|
+
proc.stdout?.on("data", (d) => {
|
|
335
|
+
stdout += d.toString();
|
|
336
|
+
});
|
|
337
|
+
const timer = setTimeout(() => {
|
|
338
|
+
proc.kill("SIGTERM");
|
|
339
|
+
resolve(null);
|
|
340
|
+
}, NPM_ROOT_TIMEOUT_MS);
|
|
341
|
+
proc.on("error", () => {
|
|
342
|
+
clearTimeout(timer);
|
|
343
|
+
resolve(null);
|
|
344
|
+
});
|
|
345
|
+
proc.on("close", (code) => {
|
|
346
|
+
clearTimeout(timer);
|
|
347
|
+
const root = stdout.trim();
|
|
348
|
+
resolve(code === 0 && root && !root.includes("***") ? root : null);
|
|
349
|
+
});
|
|
350
|
+
});
|
|
351
|
+
}
|
|
352
|
+
function npmConfigPrefix(env) {
|
|
353
|
+
let prefix = "";
|
|
354
|
+
for (const [key, value] of Object.entries(env)) {
|
|
355
|
+
if (key.toLowerCase() === "npm_config_prefix" && value !== undefined) {
|
|
356
|
+
prefix = value;
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
return prefix;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
// ../builder-sdk/src/node-runner.ts
|
|
363
|
+
function spawnSdk(cliPath, { args, cwd, env, writeErr }) {
|
|
142
364
|
return new Promise((settle) => {
|
|
143
365
|
let settled = false;
|
|
144
366
|
const resolve = (outcome) => {
|
|
@@ -149,10 +371,7 @@ function spawnSdk(cliPath, args, cwd) {
|
|
|
149
371
|
};
|
|
150
372
|
const child = spawn2("node", [cliPath, ...args], {
|
|
151
373
|
cwd,
|
|
152
|
-
env: {
|
|
153
|
-
...process.env,
|
|
154
|
-
FLOW_SDK_INVOKED_AS
|
|
155
|
-
},
|
|
374
|
+
env: { ...process.env, ...env },
|
|
156
375
|
stdio: ["inherit", "pipe", "pipe"]
|
|
157
376
|
});
|
|
158
377
|
const stdout = [];
|
|
@@ -160,7 +379,7 @@ function spawnSdk(cliPath, args, cwd) {
|
|
|
160
379
|
const decoderErr = new StringDecoder("utf8");
|
|
161
380
|
const writeLive = (text) => {
|
|
162
381
|
if (text)
|
|
163
|
-
|
|
382
|
+
writeErr(text);
|
|
164
383
|
};
|
|
165
384
|
child.stdout?.on("data", (chunk) => {
|
|
166
385
|
stdout.push(chunk);
|
|
@@ -186,43 +405,6 @@ function spawnSdk(cliPath, args, cwd) {
|
|
|
186
405
|
});
|
|
187
406
|
});
|
|
188
407
|
}
|
|
189
|
-
async function runChild(cliPath, args, cwd, label) {
|
|
190
|
-
const outcome = await spawnSdk(cliPath, args, cwd);
|
|
191
|
-
if (outcome.kind === "spawn-error") {
|
|
192
|
-
return {
|
|
193
|
-
ok: false,
|
|
194
|
-
exitCode: 1,
|
|
195
|
-
result: RESULTS.Failure,
|
|
196
|
-
message: `${label}: ${outcome.message}`,
|
|
197
|
-
instructions: "Check that node is on PATH, then retry."
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
const { exitCode, signal, out, err } = outcome;
|
|
201
|
-
if (exitCode === 0) {
|
|
202
|
-
return { ok: true, data: stdoutAsData(out) };
|
|
203
|
-
}
|
|
204
|
-
if (exitCode !== null) {
|
|
205
|
-
const detail = failureReason(out, err) || `SDK exited with code ${exitCode}`;
|
|
206
|
-
return {
|
|
207
|
-
ok: false,
|
|
208
|
-
exitCode,
|
|
209
|
-
result: RESULTS.Failure,
|
|
210
|
-
message: `${label}: ${detail}`,
|
|
211
|
-
instructions: err ? "Fix what the builder SDK reported (on stderr, and in Message), then retry." : "Fix what the builder SDK reported (see Message), then retry.",
|
|
212
|
-
...out.trim() ? { data: stdoutAsData(out) } : {}
|
|
213
|
-
};
|
|
214
|
-
}
|
|
215
|
-
return {
|
|
216
|
-
ok: false,
|
|
217
|
-
exitCode: 1,
|
|
218
|
-
result: RESULTS.Failure,
|
|
219
|
-
message: `${label}: SDK process ended with signal ${signal ?? "unknown"}.`,
|
|
220
|
-
instructions: "Retry the command."
|
|
221
|
-
};
|
|
222
|
-
}
|
|
223
|
-
function upgradeInstructions(found) {
|
|
224
|
-
return found === "workspace" ? `npm install --save-dev ${FLOW_SDK_PACKAGE.name}@latest` : `npm install -g ${FLOW_SDK_PACKAGE.name}@latest`;
|
|
225
|
-
}
|
|
226
408
|
function resolveLocalPackageJson(workspace) {
|
|
227
409
|
const require2 = createRequire(import.meta.url);
|
|
228
410
|
try {
|
|
@@ -241,7 +423,7 @@ async function resolveGlobalPackageJson() {
|
|
|
241
423
|
const candidate = fs.path.join(root, ...FLOW_SDK_PACKAGE.name.split("/"), "package.json");
|
|
242
424
|
return await fs.exists(candidate) ? candidate : null;
|
|
243
425
|
}
|
|
244
|
-
async function
|
|
426
|
+
async function resolveFlowSdk2(workspace, label) {
|
|
245
427
|
const fs = getFileSystem();
|
|
246
428
|
const { name, minimumVersion } = FLOW_SDK_PACKAGE;
|
|
247
429
|
const localPath = resolveLocalPackageJson(workspace);
|
|
@@ -272,7 +454,7 @@ async function resolveFlowSdk(workspace, label) {
|
|
|
272
454
|
if (!versionMeetsFloor(version, minimumVersion)) {
|
|
273
455
|
return {
|
|
274
456
|
ok: false,
|
|
275
|
-
message:
|
|
457
|
+
message: belowFloorMessage(label, version),
|
|
276
458
|
instructions: upgradeInstructions(found)
|
|
277
459
|
};
|
|
278
460
|
}
|
|
@@ -283,57 +465,88 @@ async function resolveFlowSdk(workspace, label) {
|
|
|
283
465
|
found: found === "workspace" ? "workspace" : "global"
|
|
284
466
|
};
|
|
285
467
|
}
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
const resolution = await resolveFlowSdk(workspace, label);
|
|
298
|
-
if (!resolution.ok) {
|
|
299
|
-
return {
|
|
300
|
-
ok: false,
|
|
301
|
-
exitCode: 1,
|
|
302
|
-
result: RESULTS.ConfigError,
|
|
303
|
-
message: resolution.message,
|
|
304
|
-
instructions: resolution.instructions
|
|
305
|
-
};
|
|
468
|
+
var nodeFlowSdkRunner = {
|
|
469
|
+
locate: resolveFlowSdk2,
|
|
470
|
+
run: async (sdk, request) => {
|
|
471
|
+
if (sdk.packageDir === undefined) {
|
|
472
|
+
return {
|
|
473
|
+
kind: "spawn-error",
|
|
474
|
+
message: "the SDK location has no package directory"
|
|
475
|
+
};
|
|
476
|
+
}
|
|
477
|
+
const cliPath = getFileSystem().path.join(sdk.packageDir, "dist", "cli", "index.js");
|
|
478
|
+
return await spawnSdk(cliPath, request);
|
|
306
479
|
}
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
instructions: upgradeInstructions(resolution.found)
|
|
314
|
-
};
|
|
480
|
+
};
|
|
481
|
+
|
|
482
|
+
// ../builder-sdk/src/argv.ts
|
|
483
|
+
function addValue(argv, flag, value) {
|
|
484
|
+
if (typeof value === "string") {
|
|
485
|
+
argv.push(flag, value);
|
|
315
486
|
}
|
|
316
|
-
const cliPath = fs.path.join(resolution.packageDir, "dist", "cli", "index.js");
|
|
317
|
-
const sdkArgv = argv.includes("--json") ? [...argv] : [...argv, "--json"];
|
|
318
|
-
return await runChild(cliPath, [family, sdkVerb, ...sdkArgv], workspace, label);
|
|
319
487
|
}
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
});
|
|
328
|
-
return 0;
|
|
488
|
+
var tails = new WeakMap;
|
|
489
|
+
function passThroughToSdk(command, {
|
|
490
|
+
extraOperands = "refuse"
|
|
491
|
+
} = {}) {
|
|
492
|
+
const positionals = command.registeredArguments;
|
|
493
|
+
if (positionals.length !== 1 || positionals[0]?.variadic) {
|
|
494
|
+
throw new Error(`passThroughToSdk needs exactly one non-variadic positional; '${command.name()}' has ${positionals.length}`);
|
|
329
495
|
}
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
496
|
+
command.parent?.enablePositionalOptions();
|
|
497
|
+
command.passThroughOptions().allowExcessArguments(true);
|
|
498
|
+
command.hook("preAction", (thisCommand) => {
|
|
499
|
+
const [positional] = thisCommand.args;
|
|
500
|
+
if (positional !== undefined && positional.length > 1 && positional.startsWith("-")) {
|
|
501
|
+
thisCommand.error(`error: '${positional}' would reach the SDK as an option. Write it as './${positional}'.`, { code: "commander.invalidArgument" });
|
|
502
|
+
}
|
|
503
|
+
liftDeclaredOptions(thisCommand);
|
|
504
|
+
const { operands } = sdkTail(thisCommand);
|
|
505
|
+
if (extraOperands === "refuse" && operands.length > 0) {
|
|
506
|
+
thisCommand.error(`error: too many arguments for '${thisCommand.name()}'. Expected 1 argument but got ${1 + operands.length}.`, { code: "commander.excessArguments" });
|
|
507
|
+
}
|
|
335
508
|
});
|
|
336
|
-
return
|
|
509
|
+
return command;
|
|
510
|
+
}
|
|
511
|
+
function liftDeclaredOptions(cmd) {
|
|
512
|
+
const [positional, ...tail] = cmd.args;
|
|
513
|
+
if (positional === undefined)
|
|
514
|
+
return;
|
|
515
|
+
const { tokens, firstUnknown, sentinel } = tokenizeTail(cmd, tail);
|
|
516
|
+
const cut = Math.min(firstUnknown === -1 ? tail.length : firstUnknown, sentinel === -1 ? tail.length : sentinel);
|
|
517
|
+
const late = tokens.find((token) => token.kind === "option" && token.index > cut);
|
|
518
|
+
if (late?.kind === "option") {
|
|
519
|
+
const flag = late.option.long ?? late.option.short;
|
|
520
|
+
cmd.error(`error: write ${flag} before any SDK flag ('${tail[firstUnknown]}'). An SDK flag whose value starts with '-' is written --flag=value.`, { code: "commander.invalidArgument" });
|
|
521
|
+
}
|
|
522
|
+
cmd.passThroughOptions(false);
|
|
523
|
+
let parsed;
|
|
524
|
+
try {
|
|
525
|
+
parsed = cmd.parseOptions(tail.slice(0, cut));
|
|
526
|
+
} finally {
|
|
527
|
+
cmd.passThroughOptions(true);
|
|
528
|
+
}
|
|
529
|
+
const lifted = {
|
|
530
|
+
operands: parsed.operands,
|
|
531
|
+
forwarded: [...parsed.unknown, ...tail.slice(cut)]
|
|
532
|
+
};
|
|
533
|
+
tails.set(cmd, lifted);
|
|
534
|
+
cmd.args = [positional, ...lifted.operands, ...lifted.forwarded];
|
|
535
|
+
}
|
|
536
|
+
function sdkTail(cmd) {
|
|
537
|
+
return tails.get(cmd) ?? { operands: [], forwarded: cmd.args.slice(1) };
|
|
538
|
+
}
|
|
539
|
+
function delegateArgv(cmd, parsed) {
|
|
540
|
+
const { operands, forwarded } = sdkTail(cmd);
|
|
541
|
+
const positional = cmd.args[0];
|
|
542
|
+
return {
|
|
543
|
+
argv: [
|
|
544
|
+
...positional === undefined ? [] : [positional],
|
|
545
|
+
...operands,
|
|
546
|
+
...parsed
|
|
547
|
+
],
|
|
548
|
+
...forwarded.length > 0 ? { passthrough: [...forwarded] } : {}
|
|
549
|
+
};
|
|
337
550
|
}
|
|
338
551
|
|
|
339
552
|
// ../builder-sdk/src/examples.ts
|
|
@@ -384,32 +597,35 @@ var CONNECTOR_GATES = {
|
|
|
384
597
|
because: "the connector library on case check"
|
|
385
598
|
}
|
|
386
599
|
};
|
|
387
|
-
var
|
|
600
|
+
var registerCheckCommand2 = (program, family) => {
|
|
388
601
|
const command = program.command("check <input>").description("Check a source file for authoring errors before compiling it.").option("--source", "Check authored TypeScript");
|
|
389
602
|
command.option("--library <dir>", "Connector library directory (defaults to $FLOW_SDK_LIBRARY_JSON, else the pulled library)").option("--connectors-local <dir>", "Connection-resolved connector overlay (default: ./connectors-local)");
|
|
390
603
|
if (family === "bpmn") {
|
|
391
604
|
command.option("--graph", "Also print the resolved wiring: every element with the flows leaving it, implied edges marked ~>");
|
|
392
605
|
}
|
|
393
606
|
const example = CHECK_EXAMPLES[family];
|
|
394
|
-
command.examples(sdkCliExample(family, "check", `Check a ${family} source file before compiling it`, `uip maestro ${family} check ${example.input} --source`, CHECK_RESULT)).trackedAction(processContext, async (
|
|
395
|
-
const
|
|
607
|
+
command.examples(sdkCliExample(family, "check", `Check a ${family} source file before compiling it`, `uip maestro ${family} check ${example.input} --source`, CHECK_RESULT)).trackedAction(processContext, async (_input, options, cmd) => {
|
|
608
|
+
const parsed = [];
|
|
396
609
|
if (options.source)
|
|
397
|
-
|
|
398
|
-
addValue(
|
|
399
|
-
addValue(
|
|
610
|
+
parsed.push("--source");
|
|
611
|
+
addValue(parsed, "--library", await resolveLibraryOption(options.library));
|
|
612
|
+
addValue(parsed, "--connectors-local", options.connectorsLocal);
|
|
400
613
|
if (options.graph)
|
|
401
|
-
|
|
614
|
+
parsed.push("--graph");
|
|
615
|
+
const { argv, passthrough } = delegateArgv(cmd, parsed);
|
|
402
616
|
const gate = CONNECTOR_GATES[family];
|
|
403
617
|
const gated = gate !== undefined && (options.connectorsLocal !== undefined || await connectorLibraryInPlay(options.library));
|
|
404
|
-
const code = await
|
|
618
|
+
const code = await delegateToMaestroBuilderSdk({
|
|
405
619
|
family,
|
|
406
620
|
commandVerb: "check",
|
|
407
621
|
argv,
|
|
622
|
+
...passthrough ? { passthrough } : {},
|
|
408
623
|
...gated ? { requiresSdkVersion: gate } : {}
|
|
409
624
|
});
|
|
410
625
|
if (code !== 0)
|
|
411
626
|
processContext.exit(code);
|
|
412
627
|
});
|
|
628
|
+
passThroughToSdk(command);
|
|
413
629
|
};
|
|
414
630
|
// ../builder-sdk/src/commands/compile.ts
|
|
415
631
|
var COMPILE_EXAMPLES = {
|
|
@@ -437,25 +653,28 @@ var COMPILE_EXAMPLES = {
|
|
|
437
653
|
result: { Path: "/work/Approval.bpmn", Elements: 4 }
|
|
438
654
|
}
|
|
439
655
|
};
|
|
440
|
-
var
|
|
656
|
+
var registerCompileCommand2 = (program, family, hooks = {}) => {
|
|
441
657
|
const command = program.command("compile <source>").description(`Compile authored TypeScript to a ${family} artifact.`).option("-o, --output-file <file>", "Output artifact path").option("--library <dir>", "Connector library directory (defaults to the pulled registry)").option("--bindings <file>", "bindings.json path").option("--connectors-local <dir>", "Connection-resolved connector overlay (default: ./connectors-local)");
|
|
442
658
|
addDeprecatedOptionAlias(command, "--output <file>", "--output-file");
|
|
443
659
|
if (family === "flow") {
|
|
444
660
|
command.option("--no-check", "Skip the source-level check");
|
|
445
661
|
}
|
|
446
662
|
const example = COMPILE_EXAMPLES[family];
|
|
447
|
-
command.examples(sdkCliExample(family, "compile", `Compile a ${family} source file to an artifact`, `uip maestro ${family} compile ${example.source} --output-file ${example.output}`, example.result)).trackedAction(processContext, async (
|
|
448
|
-
const
|
|
449
|
-
addValue(
|
|
450
|
-
addValue(
|
|
451
|
-
addValue(
|
|
452
|
-
addValue(
|
|
663
|
+
command.examples(sdkCliExample(family, "compile", `Compile a ${family} source file to an artifact`, `uip maestro ${family} compile ${example.source} --output-file ${example.output}`, example.result)).trackedAction(processContext, async (_source, options, cmd) => {
|
|
664
|
+
const parsed = [];
|
|
665
|
+
addValue(parsed, "-o", options.outputFile);
|
|
666
|
+
addValue(parsed, "--library", await resolveLibraryOption(options.library));
|
|
667
|
+
addValue(parsed, "--bindings", options.bindings);
|
|
668
|
+
addValue(parsed, "--connectors-local", options.connectorsLocal);
|
|
453
669
|
if (options.check === false)
|
|
454
|
-
|
|
455
|
-
const
|
|
670
|
+
parsed.push("--no-check");
|
|
671
|
+
const { argv, passthrough } = delegateArgv(cmd, parsed);
|
|
672
|
+
const code = await delegateToMaestroBuilderSdk({
|
|
456
673
|
family,
|
|
457
674
|
commandVerb: "compile",
|
|
458
675
|
argv,
|
|
676
|
+
...passthrough ? { passthrough } : {},
|
|
677
|
+
...hooks.afterSuccess ? { afterSuccess: hooks.afterSuccess } : {},
|
|
459
678
|
...family === "bpmn" && options.connectorsLocal !== undefined ? {
|
|
460
679
|
requiresSdkVersion: {
|
|
461
680
|
version: BPMN_CONNECTOR_OPTIONS_VERSION,
|
|
@@ -466,6 +685,7 @@ var registerCompileCommand = (program, family) => {
|
|
|
466
685
|
if (code !== 0)
|
|
467
686
|
processContext.exit(code);
|
|
468
687
|
});
|
|
688
|
+
passThroughToSdk(command);
|
|
469
689
|
};
|
|
470
690
|
// ../builder-sdk/src/commands/decompile.ts
|
|
471
691
|
var DECOMPILE_EXAMPLES = {
|
|
@@ -498,11 +718,12 @@ var ARTIFACT = {
|
|
|
498
718
|
case: { artifact: "caseplan.json", source: ".case.ts" },
|
|
499
719
|
bpmn: { artifact: ".bpmn", source: ".bpmn.ts" }
|
|
500
720
|
};
|
|
501
|
-
var
|
|
721
|
+
var registerDecompileCommand2 = (program, family) => {
|
|
502
722
|
const command = program.command("decompile <input>").description(`Convert a ${ARTIFACT[family].artifact} artifact to authored TypeScript.`).option("-o, --output-file <file>", `Output ${ARTIFACT[family].source} path`).option("--import <specifier>", "SDK import specifier in generated source");
|
|
503
723
|
addDeprecatedOptionAlias(command, "--output <file>", "--output-file");
|
|
504
724
|
if (family === "flow") {
|
|
505
725
|
command.option("--strict", "Fail on unsupported constructs");
|
|
726
|
+
command.addOption(new Option("--scripts <form>", "function (the default) or string: how script steps are printed").choices(["function", "string"]));
|
|
506
727
|
} else if (family === "case") {
|
|
507
728
|
command.option("--library <dir>", "Connector library directory (defaults to the pulled registry)").option("--best-effort", "Emit a marked repair scaffold for unsupported constructs");
|
|
508
729
|
} else {
|
|
@@ -512,55 +733,39 @@ var registerDecompileCommand = (program, family) => {
|
|
|
512
733
|
command.option("--no-pipeline", "Do not emit a brownfield pipeline helper");
|
|
513
734
|
}
|
|
514
735
|
const example = DECOMPILE_EXAMPLES[family];
|
|
515
|
-
command.examples(sdkCliExample(family, "decompile", `Convert a ${family} artifact back to authored TypeScript`, `uip maestro ${family} decompile ${example.input} --output-file ${example.output}${example.extra ?? ""}`, example.result)).trackedAction(processContext, async (
|
|
516
|
-
const
|
|
517
|
-
addValue(
|
|
518
|
-
addValue(
|
|
736
|
+
command.examples(sdkCliExample(family, "decompile", `Convert a ${family} artifact back to authored TypeScript`, `uip maestro ${family} decompile ${example.input} --output-file ${example.output}${example.extra ?? ""}`, example.result)).trackedAction(processContext, async (_input, options, cmd) => {
|
|
737
|
+
const parsed = [];
|
|
738
|
+
addValue(parsed, "-o", options.outputFile);
|
|
739
|
+
addValue(parsed, "--import", options.import);
|
|
519
740
|
if (family === "case") {
|
|
520
|
-
addValue(
|
|
741
|
+
addValue(parsed, "--library", await resolveLibraryOption(options.library));
|
|
521
742
|
}
|
|
522
743
|
if (options.strict)
|
|
523
|
-
|
|
744
|
+
parsed.push("--strict");
|
|
524
745
|
if (options.bestEffort)
|
|
525
|
-
|
|
746
|
+
parsed.push("--best-effort");
|
|
526
747
|
if (options.pipeline === false)
|
|
527
|
-
|
|
528
|
-
addValue(
|
|
529
|
-
|
|
748
|
+
parsed.push("--no-pipeline");
|
|
749
|
+
addValue(parsed, "--style", options.style);
|
|
750
|
+
addValue(parsed, "--scripts", options.scripts);
|
|
751
|
+
const { argv, passthrough } = delegateArgv(cmd, parsed);
|
|
752
|
+
const code = await delegateToMaestroBuilderSdk({
|
|
530
753
|
family,
|
|
531
754
|
commandVerb: "decompile",
|
|
532
|
-
argv
|
|
755
|
+
argv,
|
|
756
|
+
...passthrough ? { passthrough } : {},
|
|
757
|
+
...options.scripts ? {
|
|
758
|
+
requiresSdkVersion: {
|
|
759
|
+
version: FLOW_DECOMPILE_SCRIPTS_VERSION,
|
|
760
|
+
because: "--scripts on flow decompile"
|
|
761
|
+
}
|
|
762
|
+
} : {}
|
|
533
763
|
});
|
|
534
764
|
if (code !== 0)
|
|
535
765
|
processContext.exit(code);
|
|
536
766
|
});
|
|
767
|
+
passThroughToSdk(command);
|
|
537
768
|
};
|
|
538
|
-
// ../builder-sdk/src/named-second.ts
|
|
539
|
-
function namedOrLegacy(spec) {
|
|
540
|
-
if (spec.named !== undefined && spec.legacy !== undefined) {
|
|
541
|
-
usageError(`pass ${spec.flag} or a second argument, not both`, spec.usage);
|
|
542
|
-
}
|
|
543
|
-
if (spec.named === "") {
|
|
544
|
-
usageError(`option '${spec.flag}' argument missing`, spec.usage);
|
|
545
|
-
}
|
|
546
|
-
if (spec.named !== undefined)
|
|
547
|
-
return spec.named;
|
|
548
|
-
if (spec.legacy === undefined) {
|
|
549
|
-
usageError(`required option '${spec.flag}' not specified`, spec.usage);
|
|
550
|
-
}
|
|
551
|
-
getOutputSink().writeErr(`[WARN] The two-argument form is deprecated. Use \`${spec.usage}\` instead.
|
|
552
|
-
`);
|
|
553
|
-
return spec.legacy;
|
|
554
|
-
}
|
|
555
|
-
function usageError(message, usage) {
|
|
556
|
-
throw Object.assign(new Error(message), {
|
|
557
|
-
result: RESULTS.ValidationError,
|
|
558
|
-
errorCode: "invalid_argument",
|
|
559
|
-
retry: "RetryWillNotFix",
|
|
560
|
-
instructions: `Usage: ${usage}`
|
|
561
|
-
});
|
|
562
|
-
}
|
|
563
|
-
|
|
564
769
|
// ../builder-sdk/src/commands/merge.ts
|
|
565
770
|
var MERGE_EXAMPLES = {
|
|
566
771
|
flow: {
|
|
@@ -584,7 +789,7 @@ var MERGE_EXAMPLES = {
|
|
|
584
789
|
}
|
|
585
790
|
}
|
|
586
791
|
};
|
|
587
|
-
var
|
|
792
|
+
var registerMergeCommand2 = (program, family) => {
|
|
588
793
|
const command = program.command("merge <edited>").description(`Merge an edited ${family} with its original artifact.`).option("--original <file>", "Original artifact to merge into (required)").option("-o, --output-file <file>", "Merged output path").allowExcessArguments(true);
|
|
589
794
|
addDeprecatedOptionAlias(command, "--output <file>", "--output-file");
|
|
590
795
|
if (family !== "case") {
|
|
@@ -596,10 +801,11 @@ var registerMergeCommand = (program, family) => {
|
|
|
596
801
|
const example = MERGE_EXAMPLES[family];
|
|
597
802
|
command.examples(sdkCliExample(family, "merge", example.description, example.command, example.result)).trackedAction(processContext, async (first, options, cmd) => {
|
|
598
803
|
const usage = `uip maestro ${family} merge <edited> --original <file>`;
|
|
599
|
-
|
|
600
|
-
|
|
804
|
+
const { operands, forwarded } = sdkTail(cmd);
|
|
805
|
+
if (options.original === undefined && operands.length === 0 && forwarded.some((token) => !token.startsWith("-"))) {
|
|
806
|
+
usageError("required option '--original' not specified. If a path follows an SDK flag, write both paths before the flag, or use --original", usage);
|
|
601
807
|
}
|
|
602
|
-
const legacyEdited =
|
|
808
|
+
const legacyEdited = legacySecondArg([first, ...operands], usage);
|
|
603
809
|
const original = namedOrLegacy({
|
|
604
810
|
named: options.original,
|
|
605
811
|
legacy: legacyEdited === undefined ? undefined : first,
|
|
@@ -612,10 +818,11 @@ var registerMergeCommand = (program, family) => {
|
|
|
612
818
|
addValue(tail, "--baseline", options.baseline);
|
|
613
819
|
if (options.strict)
|
|
614
820
|
tail.push("--strict");
|
|
615
|
-
const code = await
|
|
821
|
+
const code = await delegateToMaestroBuilderSdk({
|
|
616
822
|
family,
|
|
617
823
|
commandVerb: "merge",
|
|
618
824
|
argv: [edited, "--original", original, ...tail],
|
|
825
|
+
...forwarded.length > 0 ? { passthrough: [...forwarded] } : {},
|
|
619
826
|
...options.strict ? {
|
|
620
827
|
requiresSdkVersion: {
|
|
621
828
|
version: FLOW_MERGE_STRICT_VERSION,
|
|
@@ -626,199 +833,12 @@ var registerMergeCommand = (program, family) => {
|
|
|
626
833
|
if (code !== 0)
|
|
627
834
|
processContext.exit(code);
|
|
628
835
|
});
|
|
836
|
+
passThroughToSdk(command, { extraOperands: "allow" });
|
|
629
837
|
};
|
|
630
|
-
// ../builder-sdk/src/
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
const code = await delegateToFlowSdk({
|
|
636
|
-
family: "registry",
|
|
637
|
-
commandVerb,
|
|
638
|
-
argv
|
|
639
|
-
});
|
|
640
|
-
if (code !== 0)
|
|
641
|
-
processContext.exit(code);
|
|
642
|
-
}
|
|
643
|
-
var registerPull = (registry) => {
|
|
644
|
-
registry.command("pull").description("Download the connector library into the shared cache and generate the descriptors this project imports.").option("--connectors <dir>", "TypeScript descriptor output (default: ./connectors)").option("--connector <key>", "only generate this connector (repeatable; default: whatever the project references)", collect, []).option("--library <dir>", "extract here instead of the shared cache").option("--library-md <dir>", "generate Markdown here instead").option("--url <url>", "archive URL to pull from").option("--archive <zip>", "use a zip already on disk").option("--force", "re-download and regenerate").option("--import <specifier>", "module specifier for descriptors").option("--triggers <path>", "registry-triggers.json for triggers").option("--python <executable>", "Python interpreter for the generators").option("--cache <dir>", "where downloaded archives are kept").option("--root <prefix>", "only extract archive entries under this prefix").option("--extractor <path>", "extract_library.py to run instead of the packaged copy").option("--generator <path>", "materialize_registry.py to run instead of the packaged copy").examples(sdkCliExample("registry", "pull", "Pull the library and generate the Slack descriptor", "uip maestro registry pull --connector uipath-salesforce-slack", {
|
|
645
|
-
Sha256: "f2ae49be22ec…",
|
|
646
|
-
Library: "~/.uipath/cache/flow-sdk/library/f2ae49be22ec…/library-json",
|
|
647
|
-
LibraryMarkdown: "~/.uipath/cache/flow-sdk/library/f2ae49be22ec…/library-md",
|
|
648
|
-
MadeCurrent: true,
|
|
649
|
-
Connectors: "/work/connectors",
|
|
650
|
-
Generated: ["uipath-salesforce-slack"]
|
|
651
|
-
})).trackedAction(processContext, async (options) => {
|
|
652
|
-
const argv = [];
|
|
653
|
-
addValue(argv, "--connectors", options.connectors);
|
|
654
|
-
for (const key of options.connector ?? []) {
|
|
655
|
-
argv.push("--connector", key);
|
|
656
|
-
}
|
|
657
|
-
addValue(argv, "--library", options.library);
|
|
658
|
-
addValue(argv, "--library-md", options.libraryMd);
|
|
659
|
-
addValue(argv, "--url", options.url);
|
|
660
|
-
addValue(argv, "--archive", options.archive);
|
|
661
|
-
if (options.force)
|
|
662
|
-
argv.push("--force");
|
|
663
|
-
addValue(argv, "--import", options.import);
|
|
664
|
-
addValue(argv, "--triggers", options.triggers);
|
|
665
|
-
addValue(argv, "--python", options.python);
|
|
666
|
-
addValue(argv, "--cache", options.cache);
|
|
667
|
-
addValue(argv, "--root", options.root);
|
|
668
|
-
addValue(argv, "--extractor", options.extractor);
|
|
669
|
-
addValue(argv, "--generator", options.generator);
|
|
670
|
-
await delegate("pull", argv);
|
|
671
|
-
});
|
|
672
|
-
};
|
|
673
|
-
var registerSearch = (registry) => {
|
|
674
|
-
registry.command("search [query...]").description("Find connector operations in the cached library.").passThroughOptions().allowExcessArguments(true).option("--library <dir>", "library-json directory (default: the cache)").option("--library-md <dir>", "markdown tree").option("--connector <key>", "restrict to one connector key").option("--limit <n>", "maximum results").examples(sdkCliExample("registry", "search", "Find the Slack channel-message operation", "uip maestro registry search slack send message --limit 5", { Total: 2, Operations: ["…"] })).trackedAction(processContext, async (_query, options, cmd) => {
|
|
675
|
-
const argv = [...cmd.args];
|
|
676
|
-
addValue(argv, "--library", options.library);
|
|
677
|
-
addValue(argv, "--library-md", options.libraryMd);
|
|
678
|
-
addValue(argv, "--connector", options.connector);
|
|
679
|
-
addValue(argv, "--limit", options.limit);
|
|
680
|
-
await delegate("search", argv);
|
|
681
|
-
});
|
|
682
|
-
};
|
|
683
|
-
var registerPath = (registry) => {
|
|
684
|
-
registry.command("path").description("Print where the cached connector library is.").option("--library-json", "print only the library-json directory").option("--library-md", "print only the markdown directory").option("--root", "print only the cache root").option("--sha", "print only the checksum current points at").examples(sdkCliExample("registry", "path", "Print the Markdown library directory, bare, for $(…) capture", "uip maestro registry path --library-md --output plain", {
|
|
685
|
-
LibraryMarkdown: "~/.uipath/cache/flow-sdk/library/current/library-md"
|
|
686
|
-
})).trackedAction(processContext, async (options) => {
|
|
687
|
-
const argv = [];
|
|
688
|
-
if (options.libraryJson)
|
|
689
|
-
argv.push("--library-json");
|
|
690
|
-
if (options.libraryMd)
|
|
691
|
-
argv.push("--library-md");
|
|
692
|
-
if (options.root)
|
|
693
|
-
argv.push("--root");
|
|
694
|
-
if (options.sha)
|
|
695
|
-
argv.push("--sha");
|
|
696
|
-
await delegate("path", argv);
|
|
697
|
-
});
|
|
698
|
-
};
|
|
699
|
-
function strayPositional(cmd, tail) {
|
|
700
|
-
for (let index = 0;index < tail.length; index++) {
|
|
701
|
-
const token = tail[index];
|
|
702
|
-
if (!token.startsWith("-"))
|
|
703
|
-
return token;
|
|
704
|
-
if (token.includes("="))
|
|
705
|
-
continue;
|
|
706
|
-
const option = cmd.options.find((candidate) => candidate.long === token || candidate.short === token);
|
|
707
|
-
if (option === undefined)
|
|
708
|
-
return;
|
|
709
|
-
if (option.required || option.optional)
|
|
710
|
-
index++;
|
|
711
|
-
}
|
|
712
|
-
return;
|
|
713
|
-
}
|
|
714
|
-
var PREPARE_USAGE = "uip maestro registry prepare <connector-key> --action <name>";
|
|
715
|
-
var registerPrepare = (registry) => {
|
|
716
|
-
registry.command("prepare <connector-key>").description("Resolve one operation's schema against a live connection into ./connectors-local, and record the connection in bindings.json.").passThroughOptions().allowExcessArguments(true).option("--action <name>", "operation to resolve, e.g. insert-record (required)", (value, previous) => [
|
|
717
|
-
...previous ?? [],
|
|
718
|
-
value
|
|
719
|
-
]).option("--connection-id <id>", "connection to read the schema through (default: discovered)").option("--connection <name>", "pick the connection by name when several match").option("--connection-folder <folder>", "pick the connection in the folder the flow runs in (name or key) when several match").option("--bindings <file>", "bindings file to update (default: ./bindings.json)").option("--bind-connection <name>", "symbolic connection name (default: the connector suffix)").option("--bind-folder <name>", "symbolic folder name (default: shared)").option("--no-bindings", "discover the connection but leave bindings.json alone").option("--object <name>", "one connection-discovered object").option("--all-objects", "every connection-discovered object").option("-f, --field <name=value>", "parent field that selects the schema (repeatable)", collect, []).option("--out <dir>", "overlay directory (default: ./connectors-local)").option("--connector-version <version>", "connector version to resolve against").option("--import <specifier>", "module specifier for descriptors").option("--resolve <field:by=value>", "resolve a lookup field to the id the connector wants (repeatable)", collect, []).option("--refresh-lookups", "re-resolve lookups already recorded in resolutions.json").option("--json-only", "write the JSON overlay without TypeScript").option("--python <executable>", "Python interpreter for the generator").option("--generator <path>", "prepare_connector.py to run instead of the packaged copy").examples([
|
|
720
|
-
...sdkCliExample("registry", "prepare", "Resolve a Salesforce custom object the shipped library cannot know", "uip maestro registry prepare uipath-salesforce-sfdc --action insert-record --object Company__c", {
|
|
721
|
-
Connector: "uipath-salesforce-sfdc",
|
|
722
|
-
Action: "insert-record",
|
|
723
|
-
Overlay: "/work/connectors-local"
|
|
724
|
-
}),
|
|
725
|
-
...sdkCliExample("registry", "prepare", "Resolve Slack lookup fields to ids and pick one of several connections", "uip maestro registry prepare uipath-salesforce-slack --action send-message-to-channel --connection is-sandboxes --resolve channel:name=general --resolve send_as:name=user", {
|
|
726
|
-
Connector: "uipath-salesforce-slack",
|
|
727
|
-
Action: "send-message-to-channel",
|
|
728
|
-
Overlay: "/work/connectors-local"
|
|
729
|
-
})
|
|
730
|
-
]).trackedAction(processContext, async (connectorKey, options, cmd) => {
|
|
731
|
-
const tail = cmd.args.slice(1);
|
|
732
|
-
const before = options.action ?? [];
|
|
733
|
-
if (before.length > 1) {
|
|
734
|
-
usageError("pass --action once", PREPARE_USAGE);
|
|
735
|
-
}
|
|
736
|
-
let named = before[0];
|
|
737
|
-
const at = tail.findIndex((token) => token === "--action" || token.startsWith("--action="));
|
|
738
|
-
if (at >= 0) {
|
|
739
|
-
const token = tail[at];
|
|
740
|
-
const inline = token.startsWith("--action=");
|
|
741
|
-
const value = inline ? token.slice("--action=".length) : tail[at + 1];
|
|
742
|
-
if (!value || value.startsWith("-")) {
|
|
743
|
-
usageError("option '--action <name>' argument missing", PREPARE_USAGE);
|
|
744
|
-
}
|
|
745
|
-
if (named !== undefined) {
|
|
746
|
-
usageError("pass --action once", PREPARE_USAGE);
|
|
747
|
-
}
|
|
748
|
-
named = value;
|
|
749
|
-
tail.splice(at, inline ? 1 : 2);
|
|
750
|
-
if (tail.some((token2) => token2 === "--action" || token2.startsWith("--action="))) {
|
|
751
|
-
usageError("pass --action once", PREPARE_USAGE);
|
|
752
|
-
}
|
|
753
|
-
}
|
|
754
|
-
const legacy = tail[0] !== undefined && !tail[0].startsWith("-") ? tail.shift() : undefined;
|
|
755
|
-
const extra = strayPositional(cmd, tail);
|
|
756
|
-
if (extra !== undefined) {
|
|
757
|
-
usageError(`unexpected argument '${extra}'`, PREPARE_USAGE);
|
|
758
|
-
}
|
|
759
|
-
const action = namedOrLegacy({
|
|
760
|
-
named,
|
|
761
|
-
legacy,
|
|
762
|
-
flag: "--action",
|
|
763
|
-
usage: PREPARE_USAGE
|
|
764
|
-
});
|
|
765
|
-
const argv = tail;
|
|
766
|
-
addValue(argv, "--connection-id", options.connectionId);
|
|
767
|
-
addValue(argv, "--connection", options.connection);
|
|
768
|
-
addValue(argv, "--connection-folder", options.connectionFolder);
|
|
769
|
-
addValue(argv, "--bindings", options.bindings);
|
|
770
|
-
addValue(argv, "--bind-connection", options.bindConnection);
|
|
771
|
-
addValue(argv, "--bind-folder", options.bindFolder);
|
|
772
|
-
if (options.bindings === false)
|
|
773
|
-
argv.push("--no-bindings");
|
|
774
|
-
addValue(argv, "--object", options.object);
|
|
775
|
-
if (options.allObjects)
|
|
776
|
-
argv.push("--all-objects");
|
|
777
|
-
for (const field of options.field ?? []) {
|
|
778
|
-
argv.push("-f", field);
|
|
779
|
-
}
|
|
780
|
-
addValue(argv, "--out", options.out);
|
|
781
|
-
addValue(argv, "--connector-version", options.connectorVersion);
|
|
782
|
-
addValue(argv, "--import", options.import);
|
|
783
|
-
for (const one of options.resolve ?? []) {
|
|
784
|
-
argv.push("--resolve", one);
|
|
785
|
-
}
|
|
786
|
-
if (options.refreshLookups)
|
|
787
|
-
argv.push("--refresh-lookups");
|
|
788
|
-
if (options.jsonOnly)
|
|
789
|
-
argv.push("--json-only");
|
|
790
|
-
addValue(argv, "--python", options.python);
|
|
791
|
-
addValue(argv, "--generator", options.generator);
|
|
792
|
-
await delegate("prepare", [
|
|
793
|
-
connectorKey,
|
|
794
|
-
"--action",
|
|
795
|
-
action,
|
|
796
|
-
...argv
|
|
797
|
-
]);
|
|
798
|
-
});
|
|
799
|
-
};
|
|
800
|
-
var registerRegistryCommands = (program) => {
|
|
801
|
-
const registry = program.command("registry").description("Acquire, locate, search and prepare the connector library shared by Flow, Case, and BPMN.").enablePositionalOptions();
|
|
802
|
-
registerPull(registry);
|
|
803
|
-
registerSearch(registry);
|
|
804
|
-
registerPath(registry);
|
|
805
|
-
registerPrepare(registry);
|
|
806
|
-
};
|
|
807
|
-
// ../builder-sdk/src/commands/tidy.ts
|
|
808
|
-
var registerTidyCommand = (program) => {
|
|
809
|
-
const command = program.command("tidy <input>").description("Add diagram layout to a compiled .bpmn artifact.").option("-o, --output-file <file>", "Output .bpmn path").examples(sdkCliExample("bpmn", "tidy", "Add diagram layout and write the result to a separate BPMN artifact", "uip maestro bpmn tidy Approval.bpmn --output-file Approval.tidied.bpmn", { Path: "/work/Approval.tidied.bpmn", Shapes: 4 })).trackedAction(processContext, async (input, options) => {
|
|
810
|
-
const argv = [input];
|
|
811
|
-
addValue(argv, "-o", options.outputFile);
|
|
812
|
-
const code = await delegateToFlowSdk({
|
|
813
|
-
family: "bpmn",
|
|
814
|
-
commandVerb: "tidy",
|
|
815
|
-
argv
|
|
816
|
-
});
|
|
817
|
-
if (code !== 0)
|
|
818
|
-
processContext.exit(code);
|
|
819
|
-
});
|
|
820
|
-
addDeprecatedOptionAlias(command, "--output <file>", "--output-file");
|
|
821
|
-
};
|
|
822
|
-
export { resolveFlowSdk, runFlowSdk, registerCheckCommand, registerCompileCommand, registerDecompileCommand, registerMergeCommand, registerRegistryCommands, registerTidyCommand };
|
|
838
|
+
// ../builder-sdk/src/index.ts
|
|
839
|
+
if (!flowSdkRunner())
|
|
840
|
+
registerFlowSdkRunner(nodeFlowSdkRunner);
|
|
841
|
+
|
|
842
|
+
export { runFlowSdk2, resolveFlowSdk2, registerCheckCommand2, registerCompileCommand2, registerDecompileCommand2, registerMergeCommand2 };
|
|
823
843
|
|
|
824
|
-
//# debugId=
|
|
844
|
+
//# debugId=CEF8A126BBE7C83664756E2164756E21
|