@uipath/flow-tool 1.205.0-preview.277 → 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 +74 -46
- 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-kdg7mq7z.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-0xn8fk4a.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-dcj8p7n7.js → flow-eval-run-service-5en4ahyn.js} +125 -149
- package/dist/{flow-eval-service-6c0y5a3b.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-9w8dgydd.js → flow-migrate-service-dkx85jj5.js} +33 -54
- package/dist/{flow-pack-service-5s2cthq4.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-mx8gr86x.js → governance-fetcher-h8hpcwyh.js} +17 -21
- package/dist/{headless-4x4v3sy6.js → headless-41t9wwb7.js} +2395 -43269
- package/dist/{hitl-service-d943rxgm.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-5ay0ddfj.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-xf9vf5nj.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-a5ywkf0w.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-kkwrd05c.js → packager-tool-65yf8zqb.js} +180 -1237
- package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
- package/dist/{packager-tool-hgfygxyj.js → packager-tool-6jpvvxyb.js} +27 -22
- package/dist/packager-tool-6vhefpmq.js +461 -0
- package/dist/{packager-tool-v9vpk48j.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-gpwnzqd9.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-143kcy6z.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-zjv3f1k3.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-3jkppykr.js → packager-tool-b2pkwwj1.js} +1273 -1300
- package/dist/{packager-tool-nhrc54tz.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-mgwzjh8c.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-z502rf8m.js → packager-tool-rxqxza90.js} +192 -183
- package/dist/{packager-tool-vzezw19a.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-c3xbcma6.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-s0srgj90.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-v1ejjevw.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-vq8cjh0x.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-b5xwf5gp.js +0 -52
- package/dist/flow-eval-run-api-xdygjzfv.js +0 -13
- package/dist/flow-init-service-z6xc9zsz.js +0 -47
- package/dist/flow-io-hf4szx79.js +0 -44
- package/dist/flow-validate-service-3974mcq1.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-cexznmfe.js +0 -667
- 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.umd.min-fqefd9kn.js +0 -7814
- package/dist/inline-entity-resolver-23tt0g1j.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-0t16wfqk.js +0 -92
- package/dist/node-sync-service-w84f66pb.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-79jnagb9.js +0 -5367
- 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-dw1bm5y7.js +0 -8809
- 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-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,33 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
I18nManager,
|
|
3
|
-
LogMessage,
|
|
4
|
-
NugetPackager,
|
|
5
2
|
Path,
|
|
6
|
-
ProjectTool,
|
|
7
3
|
TemporaryStorageService,
|
|
8
|
-
ToolResult,
|
|
9
4
|
ZipService,
|
|
5
|
+
I18nManager,
|
|
6
|
+
translate,
|
|
10
7
|
normalizeIgnoredRules,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
LogMessage,
|
|
9
|
+
ToolResult,
|
|
10
|
+
NugetPackager,
|
|
11
|
+
ProjectTool,
|
|
12
|
+
toolsFactoryRepository
|
|
13
|
+
} from "./packager-tool-ze3fnf3s.js";
|
|
14
|
+
import {
|
|
15
|
+
NodeFileSystem
|
|
16
|
+
} from "./packager-tool-vgrswa8p.js";
|
|
17
|
+
import {
|
|
18
|
+
ProjectDimensions,
|
|
19
|
+
PackagerDimensions,
|
|
20
|
+
projectKey,
|
|
21
|
+
PROJECT_IDENTITY_LOOKUP_BUDGET_MS,
|
|
22
|
+
withinProjectIdentityBudget,
|
|
23
|
+
catchError2
|
|
24
|
+
} from "./packager-tool-pxq0bwp0.js";
|
|
15
25
|
import {
|
|
16
|
-
|
|
26
|
+
carriedInstructions,
|
|
17
27
|
DebugTelemetryProvider,
|
|
18
28
|
NodeContextStorage,
|
|
19
|
-
PackagerDimensions,
|
|
20
29
|
TelemetryService,
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./packager-tool-apawc11t.js";
|
|
24
|
-
import {
|
|
25
|
-
catchError
|
|
26
|
-
} from "./packager-tool-t7ahhaer.js";
|
|
27
|
-
import {
|
|
28
|
-
NodeFileSystem
|
|
29
|
-
} from "./packager-tool-myhbp761.js";
|
|
30
|
-
import"./packager-tool-1yh8g550.js";
|
|
30
|
+
isProjectTelemetryDisabled
|
|
31
|
+
} from "./packager-tool-8ed52y5r.js";
|
|
31
32
|
// ../packager/project-packager/src/i18n/locales/de.json
|
|
32
33
|
var de_default = {
|
|
33
34
|
solutionpackager: {
|
|
@@ -1416,7 +1417,9 @@ var globalLogHandler = (logMessage) => {
|
|
|
1416
1417
|
}
|
|
1417
1418
|
};
|
|
1418
1419
|
function setGlobalLogHandler(handler) {
|
|
1420
|
+
const previous = globalLogHandler;
|
|
1419
1421
|
globalLogHandler = handler;
|
|
1422
|
+
return previous;
|
|
1420
1423
|
}
|
|
1421
1424
|
|
|
1422
1425
|
class ToolLogger {
|
|
@@ -1517,13 +1520,6 @@ class BaseNodePackagerFactory {
|
|
|
1517
1520
|
}
|
|
1518
1521
|
}
|
|
1519
1522
|
// ../packager/project-packager/src/models/packager-parameters.ts
|
|
1520
|
-
var RulesConfigFileType;
|
|
1521
|
-
((RulesConfigFileType2) => {
|
|
1522
|
-
RulesConfigFileType2["Default"] = "Default";
|
|
1523
|
-
RulesConfigFileType2["AutomationOps"] = "AutomationOps";
|
|
1524
|
-
RulesConfigFileType2["Studio"] = "Studio";
|
|
1525
|
-
})(RulesConfigFileType ||= {});
|
|
1526
|
-
|
|
1527
1523
|
class PackagerParameters {
|
|
1528
1524
|
inputPath;
|
|
1529
1525
|
downloadUrl;
|
|
@@ -1557,12 +1553,7 @@ class ProjectValidateOptions extends ProjectRestoreOptions {
|
|
|
1557
1553
|
// ../packager/project-packager/src/models/project-build-options.ts
|
|
1558
1554
|
class ProjectBuildOptions extends ProjectValidateOptions {
|
|
1559
1555
|
outputType;
|
|
1560
|
-
|
|
1561
|
-
// ../packager/project-packager/src/models/project-cleanup-options.ts
|
|
1562
|
-
class ProjectCleanupOptions extends PackagerParameters {
|
|
1563
|
-
dryRun = false;
|
|
1564
|
-
skipImports = false;
|
|
1565
|
-
lockKey;
|
|
1556
|
+
activitiesRootCategory;
|
|
1566
1557
|
}
|
|
1567
1558
|
// ../packager/project-packager/src/models/project-pack-options.ts
|
|
1568
1559
|
class ProjectPackOptions extends ProjectBuildOptions {
|
|
@@ -1659,22 +1650,6 @@ class NodePackageSignService {
|
|
|
1659
1650
|
});
|
|
1660
1651
|
}
|
|
1661
1652
|
}
|
|
1662
|
-
// ../packager/project-packager/src/telemetry-names.ts
|
|
1663
|
-
var TelemetryNames;
|
|
1664
|
-
((TelemetryNames2) => {
|
|
1665
|
-
TelemetryNames2["ProjectToolPack"] = "ProjectPackager.Tool.Pack";
|
|
1666
|
-
TelemetryNames2["ProjectToolRestore"] = "ProjectPackager.Tool.Restore";
|
|
1667
|
-
TelemetryNames2["ProjectToolValidate"] = "ProjectPackager.Tool.Validate";
|
|
1668
|
-
TelemetryNames2["ProjectToolBuild"] = "ProjectPackager.Tool.Build";
|
|
1669
|
-
TelemetryNames2["ProjectToolCleanup"] = "ProjectPackager.Tool.Cleanup";
|
|
1670
|
-
TelemetryNames2["ProjectPackagerPack"] = "ProjectPackager.Pack";
|
|
1671
|
-
TelemetryNames2["ProjectPackagerRestore"] = "ProjectPackager.Restore";
|
|
1672
|
-
TelemetryNames2["ProjectPackagerValidate"] = "ProjectPackager.Validate";
|
|
1673
|
-
TelemetryNames2["ProjectPackagerBuild"] = "ProjectPackager.Build";
|
|
1674
|
-
TelemetryNames2["ProjectPackagerCleanup"] = "ProjectPackager.Cleanup";
|
|
1675
|
-
TelemetryNames2["ProjectPackagerProjectLoaded"] = "ProjectPackager.ProjectLoaded";
|
|
1676
|
-
})(TelemetryNames ||= {});
|
|
1677
|
-
|
|
1678
1653
|
// ../gov/aops-policy-sdk/generated/src/runtime.ts
|
|
1679
1654
|
var BASE_PATH = "http://localhost".replace(/\/+$/, "");
|
|
1680
1655
|
|
|
@@ -3294,7 +3269,7 @@ var package_default = {
|
|
|
3294
3269
|
name: "@uipath/project-packager",
|
|
3295
3270
|
author: "UiPath",
|
|
3296
3271
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
3297
|
-
version: "1.
|
|
3272
|
+
version: "1.206.0-preview.279",
|
|
3298
3273
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
3299
3274
|
type: "module",
|
|
3300
3275
|
main: "./dist/index.js",
|
|
@@ -3588,10 +3563,6 @@ async function resolveProducedNupkgsAsync(fileSystem, packagePath) {
|
|
|
3588
3563
|
|
|
3589
3564
|
// ../packager/project-packager/src/services/pack-service.ts
|
|
3590
3565
|
var PACKAGE_ID_TOO_LONG = "PACKAGE_ID_TOO_LONG";
|
|
3591
|
-
function isPackageIdTooLongError(error) {
|
|
3592
|
-
return error instanceof Error && error.code === PACKAGE_ID_TOO_LONG;
|
|
3593
|
-
}
|
|
3594
|
-
|
|
3595
3566
|
class PackService {
|
|
3596
3567
|
disallowedCharsRegex = /[^\p{L}\p{N}_.-]/gu;
|
|
3597
3568
|
spacesDotRegex = /[\s.]+/g;
|
|
@@ -3724,8 +3695,8 @@ class PackagerParametersValidator {
|
|
|
3724
3695
|
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, error);
|
|
3725
3696
|
}
|
|
3726
3697
|
} catch (error) {
|
|
3727
|
-
const
|
|
3728
|
-
const errorLog = `Governance file not found or inaccessible: ${validateOptions.governanceFilePath}. Error: ${
|
|
3698
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
3699
|
+
const errorLog = `Governance file not found or inaccessible: ${validateOptions.governanceFilePath}. Error: ${errorMessage}`;
|
|
3729
3700
|
this.logger.error(errorLog);
|
|
3730
3701
|
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, errorLog);
|
|
3731
3702
|
}
|
|
@@ -3848,6 +3819,7 @@ class ProjectPackOptionsBuilder {
|
|
|
3848
3819
|
policyFileType: parameters.validateOptions.governanceFileType,
|
|
3849
3820
|
outputPath: parameters.outputPath,
|
|
3850
3821
|
outputType: parameters.outputType,
|
|
3822
|
+
activitiesRootCategory: parameters.activitiesRootCategory,
|
|
3851
3823
|
projectType: project.type,
|
|
3852
3824
|
package: packageInfo,
|
|
3853
3825
|
skipDependencyOptimization: parameters.packOptions?.skipDependencyOptimization ?? false,
|
|
@@ -3873,6 +3845,8 @@ class ProjectPackOptionsValidator extends ProjectBuildOptionsValidator {
|
|
|
3873
3845
|
}
|
|
3874
3846
|
|
|
3875
3847
|
// ../packager/project-packager/src/services/project-tool-executor.ts
|
|
3848
|
+
var observerTimedOut = (phase) => () => new ToolLogger("ProjectToolExecutor", "ProjectActivity").debug(`project activity (${phase}) skipped: no answer within ${PROJECT_IDENTITY_LOOKUP_BUDGET_MS} ms`);
|
|
3849
|
+
|
|
3876
3850
|
class ProjectToolExecutor {
|
|
3877
3851
|
toolsFactory;
|
|
3878
3852
|
telemetry;
|
|
@@ -3881,36 +3855,44 @@ class ProjectToolExecutor {
|
|
|
3881
3855
|
this.telemetry = telemetry;
|
|
3882
3856
|
}
|
|
3883
3857
|
async restoreAsync(options, project, context, cancellationToken) {
|
|
3884
|
-
return await this.executeToolOperationAsync(project, context, (tool) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Restore" /* ProjectToolRestore */, project.Type, async () => tool.restoreAsync(options, cancellationToken),
|
|
3885
|
-
[PackagerDimensions.ProjectId]: project.Id,
|
|
3886
|
-
[PackagerDimensions.ProjectType]: project.Type
|
|
3887
|
-
}));
|
|
3858
|
+
return await this.executeToolOperationAsync(project, context, (tool, properties) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Restore" /* ProjectToolRestore */, project.Type, async () => tool.restoreAsync(options, cancellationToken), properties));
|
|
3888
3859
|
}
|
|
3889
3860
|
async validateAsync(options, project, context, cancellationToken) {
|
|
3890
|
-
return await this.executeToolOperationAsync(project, context, (tool) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Validate" /* ProjectToolValidate */, project.Type, async () => tool.validateAsync(options, cancellationToken),
|
|
3891
|
-
[PackagerDimensions.ProjectId]: project.Id,
|
|
3892
|
-
[PackagerDimensions.ProjectType]: project.Type
|
|
3893
|
-
}));
|
|
3861
|
+
return await this.executeToolOperationAsync(project, context, (tool, properties) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Validate" /* ProjectToolValidate */, project.Type, async () => tool.validateAsync(options, cancellationToken), properties));
|
|
3894
3862
|
}
|
|
3895
3863
|
async buildAsync(options, project, context, cancellationToken) {
|
|
3896
|
-
return await this.executeToolOperationAsync(project, context, (tool) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Build" /* ProjectToolBuild */, project.Type, async () => tool.buildAsync(options, cancellationToken),
|
|
3897
|
-
[PackagerDimensions.ProjectId]: project.Id,
|
|
3898
|
-
[PackagerDimensions.ProjectType]: project.Type
|
|
3899
|
-
}));
|
|
3864
|
+
return await this.executeToolOperationAsync(project, context, (tool, properties) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Build" /* ProjectToolBuild */, project.Type, async () => tool.buildAsync(options, cancellationToken), properties));
|
|
3900
3865
|
}
|
|
3901
3866
|
async packAsync(options, project, context, cancellationToken) {
|
|
3902
|
-
return await this.executeToolOperationAsync(project, context, async (tool) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Pack" /* ProjectToolPack */, project.Type, async () => tool.packAsync(options, cancellationToken),
|
|
3903
|
-
[PackagerDimensions.ProjectId]: project.Id,
|
|
3904
|
-
[PackagerDimensions.ProjectType]: project.Type
|
|
3905
|
-
}));
|
|
3867
|
+
return await this.executeToolOperationAsync(project, context, async (tool, properties) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Pack" /* ProjectToolPack */, project.Type, async () => tool.packAsync(options, cancellationToken), properties));
|
|
3906
3868
|
}
|
|
3907
3869
|
async cleanupAsync(options, project, context, cancellationToken) {
|
|
3908
|
-
return await this.executeToolOperationAsync(project, context, (tool) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Cleanup" /* ProjectToolCleanup */, project.Type, async () => tool.cleanupAsync(options, cancellationToken),
|
|
3909
|
-
[PackagerDimensions.ProjectId]: project.Id,
|
|
3910
|
-
[PackagerDimensions.ProjectType]: project.Type
|
|
3911
|
-
}));
|
|
3870
|
+
return await this.executeToolOperationAsync(project, context, (tool, properties) => this.telemetry.trackDependencyOperation("ProjectPackager.Tool.Cleanup" /* ProjectToolCleanup */, project.Type, async () => tool.cleanupAsync(options, cancellationToken), properties));
|
|
3912
3871
|
}
|
|
3913
3872
|
async executeToolOperationAsync(project, context, operation) {
|
|
3873
|
+
const solutionKey = context?.solutionId ? projectKey(context.solutionId) : undefined;
|
|
3874
|
+
const identity = solutionKey && !isProjectTelemetryDisabled() ? {
|
|
3875
|
+
[ProjectDimensions.SolutionKey]: solutionKey,
|
|
3876
|
+
[ProjectDimensions.SolutionProjectKey]: projectKey(project.Id)
|
|
3877
|
+
} : {};
|
|
3878
|
+
const properties = {
|
|
3879
|
+
[PackagerDimensions.ProjectId]: project.Id,
|
|
3880
|
+
[PackagerDimensions.ProjectType]: project.Type,
|
|
3881
|
+
...identity
|
|
3882
|
+
};
|
|
3883
|
+
return this.observeToolOperationAsync(project, context, (tool) => operation(tool, properties));
|
|
3884
|
+
}
|
|
3885
|
+
async observeToolOperationAsync(project, context, operation) {
|
|
3886
|
+
if (!context?.projectActivity) {
|
|
3887
|
+
return this.runToolOperationAsync(project, context, operation);
|
|
3888
|
+
}
|
|
3889
|
+
const observe = context.projectActivity;
|
|
3890
|
+
await withinProjectIdentityBudget(Promise.resolve().then(() => observe(project, "before", undefined, context.solutionId)).catch(() => {}), observerTimedOut("before"));
|
|
3891
|
+
const result = await this.runToolOperationAsync(project, context, operation);
|
|
3892
|
+
await withinProjectIdentityBudget(Promise.resolve().then(() => observe(project, "after", result.isSuccess, context.solutionId)).catch(() => {}), observerTimedOut("after"));
|
|
3893
|
+
return result;
|
|
3894
|
+
}
|
|
3895
|
+
async runToolOperationAsync(project, context, operation) {
|
|
3914
3896
|
try {
|
|
3915
3897
|
const tool = await this.toolsFactory.createProjectToolAsync(project, context);
|
|
3916
3898
|
try {
|
|
@@ -4060,7 +4042,7 @@ class ProjectPackager {
|
|
|
4060
4042
|
}, cancellationToken);
|
|
4061
4043
|
}
|
|
4062
4044
|
async buildProjectAsync(options, cancellationToken) {
|
|
4063
|
-
const [governanceError] = await
|
|
4045
|
+
const [governanceError] = await catchError2(this.governancePolicyService.resolveGovernancePolicyAsync(options.validateOptions, options.connection, cancellationToken));
|
|
4064
4046
|
if (governanceError) {
|
|
4065
4047
|
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, `Project build failed: ${governanceError.message}`, carriedInstructions(governanceError));
|
|
4066
4048
|
}
|
|
@@ -4086,6 +4068,7 @@ class ProjectPackager {
|
|
|
4086
4068
|
policyFileType: options.validateOptions.governanceFileType,
|
|
4087
4069
|
outputPath: options.outputPath,
|
|
4088
4070
|
outputType: options.outputType,
|
|
4071
|
+
activitiesRootCategory: options.activitiesRootCategory,
|
|
4089
4072
|
projectType: uiPathProject.Type
|
|
4090
4073
|
};
|
|
4091
4074
|
const context = this.createOperationContext(options, uiPathProject);
|
|
@@ -4129,9 +4112,9 @@ class ProjectPackager {
|
|
|
4129
4112
|
}
|
|
4130
4113
|
return result;
|
|
4131
4114
|
} catch (error) {
|
|
4132
|
-
const
|
|
4133
|
-
this.logger.error(`Processing error: ${
|
|
4134
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, `Project pack failed: ${
|
|
4115
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
4116
|
+
this.logger.error(`Processing error: ${errorMessage}`);
|
|
4117
|
+
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, `Project pack failed: ${errorMessage}`, carriedInstructions(error));
|
|
4135
4118
|
} finally {
|
|
4136
4119
|
await this.temporaryStorage.cleanup();
|
|
4137
4120
|
}
|
|
@@ -4196,9 +4179,9 @@ class ProjectPackager {
|
|
|
4196
4179
|
}
|
|
4197
4180
|
return operationResult;
|
|
4198
4181
|
} catch (error) {
|
|
4199
|
-
const
|
|
4200
|
-
this.logger.error(`Processing error: ${
|
|
4201
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, `Project ${operationName.toLowerCase()} failed: ${
|
|
4182
|
+
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
4183
|
+
this.logger.error(`Processing error: ${errorMessage}`);
|
|
4184
|
+
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, `Project ${operationName.toLowerCase()} failed: ${errorMessage}`);
|
|
4202
4185
|
} finally {
|
|
4203
4186
|
await this.temporaryStorage.cleanup();
|
|
4204
4187
|
}
|
|
@@ -4275,563 +4258,11 @@ async function createNodeProjectPackager(options) {
|
|
|
4275
4258
|
const factory = new NodeProjectPackagerFactory;
|
|
4276
4259
|
return factory.createAsync(options);
|
|
4277
4260
|
}
|
|
4278
|
-
// ../packager/project-packager/src/publish/models/publish-options.ts
|
|
4279
|
-
var PublishDestinationKind;
|
|
4280
|
-
((PublishDestinationKind2) => {
|
|
4281
|
-
PublishDestinationKind2["LocalFolder"] = "LocalFolder";
|
|
4282
|
-
PublishDestinationKind2["NugetFeed"] = "NugetFeed";
|
|
4283
|
-
PublishDestinationKind2["OrchestratorPersonalWorkspace"] = "OrchestratorPersonalWorkspace";
|
|
4284
|
-
PublishDestinationKind2["OrchestratorTenantProcesses"] = "OrchestratorTenantProcesses";
|
|
4285
|
-
PublishDestinationKind2["OrchestratorSharedLibraries"] = "OrchestratorSharedLibraries";
|
|
4286
|
-
PublishDestinationKind2["OrchestratorCustom"] = "OrchestratorCustom";
|
|
4287
|
-
})(PublishDestinationKind ||= {});
|
|
4288
|
-
|
|
4289
|
-
class ProjectPublishOptions {
|
|
4290
|
-
packagePaths;
|
|
4291
|
-
destination;
|
|
4292
|
-
constructor(packagePaths, destination) {
|
|
4293
|
-
this.packagePaths = packagePaths;
|
|
4294
|
-
this.destination = destination;
|
|
4295
|
-
}
|
|
4296
|
-
}
|
|
4297
|
-
// ../packager/project-packager/src/publish/services/local-folder-publisher.ts
|
|
4298
|
-
class LocalFolderPublisher {
|
|
4299
|
-
fileSystem;
|
|
4300
|
-
logger;
|
|
4301
|
-
constructor(fileSystem) {
|
|
4302
|
-
this.fileSystem = fileSystem;
|
|
4303
|
-
this.logger = new ToolLogger("ProjectPublisher", "LocalFolder");
|
|
4304
|
-
}
|
|
4305
|
-
async publishAsync(packagePaths, destination) {
|
|
4306
|
-
const overwrite = destination.overwrite ?? true;
|
|
4307
|
-
if (!destination.folderPath) {
|
|
4308
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.localFolderRequired"));
|
|
4309
|
-
}
|
|
4310
|
-
if (!await this.fileSystem.exists(destination.folderPath)) {
|
|
4311
|
-
await this.fileSystem.mkdir(destination.folderPath);
|
|
4312
|
-
}
|
|
4313
|
-
const written = [];
|
|
4314
|
-
for (const sourcePath of packagePaths) {
|
|
4315
|
-
const fileName = this.fileSystem.path.basename(sourcePath);
|
|
4316
|
-
const destPath = this.fileSystem.path.join(destination.folderPath, fileName);
|
|
4317
|
-
if (!overwrite && await this.fileSystem.exists(destPath)) {
|
|
4318
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.localFolderFileExists", { path: destPath }));
|
|
4319
|
-
}
|
|
4320
|
-
const data = await this.fileSystem.readFile(sourcePath);
|
|
4321
|
-
if (!data) {
|
|
4322
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.failedToReadPackage", { path: sourcePath }));
|
|
4323
|
-
}
|
|
4324
|
-
await this.fileSystem.writeFile(destPath, data);
|
|
4325
|
-
written.push(destPath);
|
|
4326
|
-
this.logger.info(`Copied package to ${destPath}`);
|
|
4327
|
-
}
|
|
4328
|
-
return new ToolResult("SUCCESS" /* Success */, undefined, written);
|
|
4329
|
-
}
|
|
4330
|
-
}
|
|
4331
|
-
|
|
4332
|
-
// ../packager/project-packager/src/publish/services/nuget-feed-publisher.ts
|
|
4333
|
-
var NUGET_V3_PACKAGE_PUBLISH_TYPE = "PackagePublish/2.0.0";
|
|
4334
|
-
|
|
4335
|
-
class NugetFeedPublisher {
|
|
4336
|
-
fileSystem;
|
|
4337
|
-
logger;
|
|
4338
|
-
constructor(fileSystem) {
|
|
4339
|
-
this.fileSystem = fileSystem;
|
|
4340
|
-
this.logger = new ToolLogger("ProjectPublisher", "NugetFeed");
|
|
4341
|
-
}
|
|
4342
|
-
async publishAsync(packagePaths, destination) {
|
|
4343
|
-
if (!destination.feedUrl) {
|
|
4344
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.nugetFeedUrlRequired"));
|
|
4345
|
-
}
|
|
4346
|
-
let pushUrl;
|
|
4347
|
-
try {
|
|
4348
|
-
pushUrl = await this.resolvePushUrl(destination.feedUrl, destination.apiKey);
|
|
4349
|
-
} catch (error) {
|
|
4350
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
4351
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.nugetPushUrlResolutionFailed", { feedUrl: destination.feedUrl, message }));
|
|
4352
|
-
}
|
|
4353
|
-
const published = [];
|
|
4354
|
-
for (const packagePath of packagePaths) {
|
|
4355
|
-
const data = await this.fileSystem.readFile(packagePath);
|
|
4356
|
-
if (!data) {
|
|
4357
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.failedToReadPackage", { path: packagePath }));
|
|
4358
|
-
}
|
|
4359
|
-
const fileName = this.fileSystem.path.basename(packagePath);
|
|
4360
|
-
const form = new FormData;
|
|
4361
|
-
form.append("package", new Blob([data], {
|
|
4362
|
-
type: "application/octet-stream"
|
|
4363
|
-
}), fileName);
|
|
4364
|
-
const headers = {};
|
|
4365
|
-
if (destination.apiKey) {
|
|
4366
|
-
headers["X-NuGet-ApiKey"] = destination.apiKey;
|
|
4367
|
-
}
|
|
4368
|
-
this.logger.info(`Pushing ${fileName} to ${pushUrl}`);
|
|
4369
|
-
const response = await fetch(pushUrl, {
|
|
4370
|
-
method: "PUT",
|
|
4371
|
-
headers,
|
|
4372
|
-
body: form
|
|
4373
|
-
});
|
|
4374
|
-
if (!response.ok) {
|
|
4375
|
-
const body = await this.safeReadBody(response);
|
|
4376
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.nugetPushFailed", {
|
|
4377
|
-
fileName,
|
|
4378
|
-
status: response.status,
|
|
4379
|
-
statusText: response.statusText,
|
|
4380
|
-
body: body ? ` - ${body}` : ""
|
|
4381
|
-
}));
|
|
4382
|
-
}
|
|
4383
|
-
published.push(packagePath);
|
|
4384
|
-
this.logger.info(`Pushed ${fileName} successfully.`);
|
|
4385
|
-
}
|
|
4386
|
-
return new ToolResult("SUCCESS" /* Success */, undefined, published);
|
|
4387
|
-
}
|
|
4388
|
-
async resolvePushUrl(feedUrl, apiKey) {
|
|
4389
|
-
let end = feedUrl.length;
|
|
4390
|
-
while (end > 0 && feedUrl.charCodeAt(end - 1) === 47)
|
|
4391
|
-
end--;
|
|
4392
|
-
const trimmed = feedUrl.slice(0, end);
|
|
4393
|
-
if (/\/api\/v2\/package\/?$/i.test(trimmed)) {
|
|
4394
|
-
return trimmed;
|
|
4395
|
-
}
|
|
4396
|
-
if (/\.json$/i.test(trimmed)) {
|
|
4397
|
-
return this.resolveFromServiceIndex(trimmed, apiKey);
|
|
4398
|
-
}
|
|
4399
|
-
return `${trimmed}/api/v2/package`;
|
|
4400
|
-
}
|
|
4401
|
-
async resolveFromServiceIndex(serviceIndexUrl, apiKey) {
|
|
4402
|
-
const headers = { Accept: "application/json" };
|
|
4403
|
-
if (apiKey) {
|
|
4404
|
-
headers["X-NuGet-ApiKey"] = apiKey;
|
|
4405
|
-
}
|
|
4406
|
-
const response = await fetch(serviceIndexUrl, { headers });
|
|
4407
|
-
if (!response.ok) {
|
|
4408
|
-
throw new Error(`service index returned ${response.status} ${response.statusText}`);
|
|
4409
|
-
}
|
|
4410
|
-
const index = await response.json();
|
|
4411
|
-
const resource = index.resources?.find((r) => r["@type"] === NUGET_V3_PACKAGE_PUBLISH_TYPE);
|
|
4412
|
-
if (!resource?.["@id"]) {
|
|
4413
|
-
throw new Error(`service index has no ${NUGET_V3_PACKAGE_PUBLISH_TYPE} resource`);
|
|
4414
|
-
}
|
|
4415
|
-
return resource["@id"];
|
|
4416
|
-
}
|
|
4417
|
-
async safeReadBody(response) {
|
|
4418
|
-
try {
|
|
4419
|
-
const text = await response.text();
|
|
4420
|
-
return text.slice(0, 500);
|
|
4421
|
-
} catch {
|
|
4422
|
-
return "";
|
|
4423
|
-
}
|
|
4424
|
-
}
|
|
4425
|
-
}
|
|
4426
|
-
|
|
4427
|
-
// ../packager/project-packager/src/publish/services/orchestrator-feed-types.ts
|
|
4428
|
-
var PackageFeedDtoPurposeEnum = {
|
|
4429
|
-
Undefined: "Undefined",
|
|
4430
|
-
Processes: "Processes",
|
|
4431
|
-
Libraries: "Libraries",
|
|
4432
|
-
PersonalWorkspace: "PersonalWorkspace",
|
|
4433
|
-
FolderHierarchy: "FolderHierarchy"
|
|
4434
|
-
};
|
|
4435
|
-
var PackageFeedDtoAuthenticationTypeEnum = {
|
|
4436
|
-
Secure: "Secure",
|
|
4437
|
-
ApiKey: "ApiKey",
|
|
4438
|
-
Basic: "Basic"
|
|
4439
|
-
};
|
|
4440
|
-
var ExtendedFolderDtoFeedTypeEnum = {
|
|
4441
|
-
Undefined: "Undefined",
|
|
4442
|
-
Processes: "Processes",
|
|
4443
|
-
Libraries: "Libraries",
|
|
4444
|
-
PersonalWorkspace: "PersonalWorkspace",
|
|
4445
|
-
FolderHierarchy: "FolderHierarchy"
|
|
4446
|
-
};
|
|
4447
|
-
|
|
4448
4261
|
// ../packager/project-packager/src/publish/services/orchestrator-feeds-service.ts
|
|
4449
|
-
var HEADER_TENANT_ID = "X-UIPATH-TenantId";
|
|
4450
|
-
var FEEDS_PATH = "/api/PackageFeeds/GetFeeds";
|
|
4451
|
-
var FOLDERS_PATH = "/api/FoldersNavigation/GetAllFoldersForCurrentUser";
|
|
4452
4262
|
var SDK_USER_AGENT = `${package_default.name.replace(/^@uipath\//, "")}/${package_default.version}`;
|
|
4453
|
-
|
|
4454
|
-
class OrchestratorFeedsService {
|
|
4455
|
-
logger;
|
|
4456
|
-
constructor() {
|
|
4457
|
-
this.logger = new ToolLogger("OrchestratorFeedsService", "Feeds");
|
|
4458
|
-
}
|
|
4459
|
-
async getAccessibleFeedsAsync(connection) {
|
|
4460
|
-
this.ensureOrchestratorUrl(connection);
|
|
4461
|
-
this.logger.info(`Fetching accessible feeds from ${connection.orchestratorUrl}`);
|
|
4462
|
-
try {
|
|
4463
|
-
const json = await orchestratorGet(connection, FEEDS_PATH);
|
|
4464
|
-
return Array.isArray(json) ? json : [];
|
|
4465
|
-
} catch (error) {
|
|
4466
|
-
const { status, statusText, body } = await describeResponseError(error);
|
|
4467
|
-
throw new Error(translate.t("solutionpackager.publish.errors.getAccessibleFeedsFailed", { status, statusText, body }));
|
|
4468
|
-
}
|
|
4469
|
-
}
|
|
4470
|
-
async getFoldersForCurrentUserAsync(connection) {
|
|
4471
|
-
this.ensureOrchestratorUrl(connection);
|
|
4472
|
-
this.logger.info(`Fetching folders from ${connection.orchestratorUrl}`);
|
|
4473
|
-
try {
|
|
4474
|
-
const json = await orchestratorGet(connection, FOLDERS_PATH);
|
|
4475
|
-
return Array.isArray(json) ? json.map(mapExtendedFolder) : [];
|
|
4476
|
-
} catch (error) {
|
|
4477
|
-
const { status, statusText, body } = await describeResponseError(error);
|
|
4478
|
-
throw new Error(translate.t("solutionpackager.publish.errors.getFoldersForCurrentUserFailed", { status, statusText, body }));
|
|
4479
|
-
}
|
|
4480
|
-
}
|
|
4481
|
-
ensureOrchestratorUrl(connection) {
|
|
4482
|
-
if (!connection.orchestratorUrl) {
|
|
4483
|
-
throw new Error(translate.t("solutionpackager.publish.errors.orchestratorUrlRequired"));
|
|
4484
|
-
}
|
|
4485
|
-
}
|
|
4486
|
-
}
|
|
4487
|
-
function mapExtendedFolder(json) {
|
|
4488
|
-
return {
|
|
4489
|
-
isSelectable: json.IsSelectable,
|
|
4490
|
-
hasChildren: json.HasChildren,
|
|
4491
|
-
level: json.Level,
|
|
4492
|
-
key: json.Key,
|
|
4493
|
-
displayName: json.DisplayName,
|
|
4494
|
-
fullyQualifiedName: json.FullyQualifiedName,
|
|
4495
|
-
description: json.Description,
|
|
4496
|
-
folderType: json.FolderType,
|
|
4497
|
-
isPersonal: json.IsPersonal,
|
|
4498
|
-
provisionType: json.ProvisionType,
|
|
4499
|
-
permissionModel: json.PermissionModel,
|
|
4500
|
-
parentId: json.ParentId,
|
|
4501
|
-
parentKey: json.ParentKey,
|
|
4502
|
-
feedType: json.FeedType,
|
|
4503
|
-
id: json.Id
|
|
4504
|
-
};
|
|
4505
|
-
}
|
|
4506
|
-
|
|
4507
|
-
class OrchestratorResponseError extends Error {
|
|
4508
|
-
response;
|
|
4509
|
-
constructor(response) {
|
|
4510
|
-
super(`Orchestrator request failed with status ${response.status}.`);
|
|
4511
|
-
this.response = response;
|
|
4512
|
-
this.name = "OrchestratorResponseError";
|
|
4513
|
-
}
|
|
4514
|
-
}
|
|
4515
|
-
async function orchestratorGet(connection, relativePath) {
|
|
4516
|
-
const url = `${normalizeOrchestratorBasePath(connection.orchestratorUrl)}${relativePath}`;
|
|
4517
|
-
const response = await fetch(url, {
|
|
4518
|
-
method: "GET",
|
|
4519
|
-
headers: buildHeaders(connection)
|
|
4520
|
-
});
|
|
4521
|
-
if (!response.ok) {
|
|
4522
|
-
throw new OrchestratorResponseError(response);
|
|
4523
|
-
}
|
|
4524
|
-
const text = await response.text();
|
|
4525
|
-
if (text === "" || text === "null") {
|
|
4526
|
-
return null;
|
|
4527
|
-
}
|
|
4528
|
-
return JSON.parse(text);
|
|
4529
|
-
}
|
|
4530
|
-
function buildHeaders(connection) {
|
|
4531
|
-
const headers = {};
|
|
4532
|
-
if (connection.accessToken) {
|
|
4533
|
-
headers.Authorization = `Bearer ${connection.accessToken}`;
|
|
4534
|
-
}
|
|
4535
|
-
if (connection.tenantId) {
|
|
4536
|
-
headers[HEADER_TENANT_ID] = connection.tenantId;
|
|
4537
|
-
}
|
|
4538
|
-
return addSdkUserAgentHeader(headers, SDK_USER_AGENT);
|
|
4539
|
-
}
|
|
4540
|
-
function normalizeOrchestratorBasePath(orchestratorUrl) {
|
|
4541
|
-
let end = orchestratorUrl.length;
|
|
4542
|
-
while (end > 0 && orchestratorUrl.charCodeAt(end - 1) === 47)
|
|
4543
|
-
end--;
|
|
4544
|
-
const trimmed = orchestratorUrl.slice(0, end);
|
|
4545
|
-
return /\/orchestrator_$/i.test(trimmed) ? trimmed : `${trimmed}/orchestrator_`;
|
|
4546
|
-
}
|
|
4547
|
-
async function describeResponseError(error) {
|
|
4548
|
-
const response = error?.response;
|
|
4549
|
-
if (response) {
|
|
4550
|
-
let body = "";
|
|
4551
|
-
try {
|
|
4552
|
-
body = (await response.text()).slice(0, 500);
|
|
4553
|
-
} catch {
|
|
4554
|
-
body = "";
|
|
4555
|
-
}
|
|
4556
|
-
return {
|
|
4557
|
-
status: response.status,
|
|
4558
|
-
statusText: response.statusText,
|
|
4559
|
-
body: body ? ` - ${body}` : ""
|
|
4560
|
-
};
|
|
4561
|
-
}
|
|
4562
|
-
const cause = error?.cause;
|
|
4563
|
-
const message = cause instanceof Error ? cause.message : error instanceof Error ? error.message : String(error);
|
|
4564
|
-
return { status: "?", statusText: message, body: "" };
|
|
4565
|
-
}
|
|
4566
|
-
|
|
4567
|
-
// ../packager/project-packager/src/publish/services/orchestrator-publisher.ts
|
|
4568
|
-
var HEADER_FOLDER_ID = "X-UIPATH-OrganizationUnitId";
|
|
4569
|
-
var HEADER_TENANT_ID2 = "X-UIPATH-TenantId";
|
|
4570
|
-
var HEADER_NUGET_API_KEY = "X-NuGet-ApiKey";
|
|
4571
|
-
var ORCHESTRATOR_RELATIVE_URL = "/orchestrator_";
|
|
4572
|
-
var PROCESSES_UPLOAD_PATH = "/odata/Processes/UiPath.Server.Configuration.OData.UploadPackage";
|
|
4573
|
-
var LIBRARIES_UPLOAD_PATH = "/odata/Libraries/UiPath.Server.Configuration.OData.UploadPackage";
|
|
4574
|
-
|
|
4575
|
-
class OrchestratorPublisher {
|
|
4576
|
-
fileSystem;
|
|
4577
|
-
logger;
|
|
4578
|
-
feedsService;
|
|
4579
|
-
constructor(fileSystem, feedsService) {
|
|
4580
|
-
this.fileSystem = fileSystem;
|
|
4581
|
-
this.logger = new ToolLogger("ProjectPublisher", "Orchestrator");
|
|
4582
|
-
this.feedsService = feedsService ?? new OrchestratorFeedsService;
|
|
4583
|
-
}
|
|
4584
|
-
async publishAsync(packagePaths, destination) {
|
|
4585
|
-
if (packagePaths.length === 0) {
|
|
4586
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.orchestratorNoPackages"));
|
|
4587
|
-
}
|
|
4588
|
-
if (destination.kind === "OrchestratorCustom" /* OrchestratorCustom */) {
|
|
4589
|
-
if (!destination.publishUrl) {
|
|
4590
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.orchestratorCustomPublishUrlRequired"));
|
|
4591
|
-
}
|
|
4592
|
-
this.logger.info(`Publishing ${packagePaths.length} package(s) to ${destination.publishUrl} (custom)`);
|
|
4593
|
-
return this.postPackages(packagePaths, destination.publishUrl, this.buildCustomHeaders(destination));
|
|
4594
|
-
}
|
|
4595
|
-
if (!destination.connectionInfo?.cloudUrl) {
|
|
4596
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.orchestratorCloudUrlRequired"));
|
|
4597
|
-
}
|
|
4598
|
-
const orchestratorUrl = this.deriveOrchestratorUrl(destination.connectionInfo);
|
|
4599
|
-
let feed;
|
|
4600
|
-
try {
|
|
4601
|
-
feed = await this.resolveFeed(destination, orchestratorUrl);
|
|
4602
|
-
} catch (error) {
|
|
4603
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
4604
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.orchestratorFeedResolutionFailed", { message }));
|
|
4605
|
-
}
|
|
4606
|
-
const targetUrl = this.buildPublishUrl(orchestratorUrl, feed);
|
|
4607
|
-
const headers = this.buildHeaders(destination, feed);
|
|
4608
|
-
this.logger.info(`Publishing ${packagePaths.length} package(s) to ${targetUrl} (feed ${feed.name}, ${feed.purpose})`);
|
|
4609
|
-
return this.postPackages(packagePaths, targetUrl, headers);
|
|
4610
|
-
}
|
|
4611
|
-
async postPackages(packagePaths, targetUrl, headers) {
|
|
4612
|
-
const form = new FormData;
|
|
4613
|
-
for (const packagePath of packagePaths) {
|
|
4614
|
-
const data = await this.fileSystem.readFile(packagePath);
|
|
4615
|
-
if (!data) {
|
|
4616
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.failedToReadPackage", { path: packagePath }));
|
|
4617
|
-
}
|
|
4618
|
-
const fileName = this.fileSystem.path.basename(packagePath);
|
|
4619
|
-
form.append("file", new Blob([data], {
|
|
4620
|
-
type: "application/octet-stream"
|
|
4621
|
-
}), fileName);
|
|
4622
|
-
}
|
|
4623
|
-
const response = await fetch(targetUrl, {
|
|
4624
|
-
method: "POST",
|
|
4625
|
-
headers,
|
|
4626
|
-
body: form
|
|
4627
|
-
});
|
|
4628
|
-
if (!response.ok) {
|
|
4629
|
-
const body = await this.safeReadBody(response);
|
|
4630
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.orchestratorPublishFailed", {
|
|
4631
|
-
status: response.status,
|
|
4632
|
-
statusText: response.statusText,
|
|
4633
|
-
body: body ? ` - ${body}` : ""
|
|
4634
|
-
}));
|
|
4635
|
-
}
|
|
4636
|
-
this.logger.info("Orchestrator publish completed.");
|
|
4637
|
-
return new ToolResult("SUCCESS" /* Success */, undefined, packagePaths);
|
|
4638
|
-
}
|
|
4639
|
-
async resolveFeed(destination, orchestratorUrl) {
|
|
4640
|
-
const connection = {
|
|
4641
|
-
orchestratorUrl,
|
|
4642
|
-
accessToken: destination.connectionInfo.accessToken,
|
|
4643
|
-
tenantId: destination.connectionInfo.tenantId
|
|
4644
|
-
};
|
|
4645
|
-
const feeds = await this.feedsService.getAccessibleFeedsAsync(connection);
|
|
4646
|
-
if (destination.kind === "OrchestratorPersonalWorkspace" /* OrchestratorPersonalWorkspace */) {
|
|
4647
|
-
const folders = await this.feedsService.getFoldersForCurrentUserAsync(connection);
|
|
4648
|
-
const personalFolder = folders.find((f) => f.feedType === ExtendedFolderDtoFeedTypeEnum.PersonalWorkspace);
|
|
4649
|
-
if (!personalFolder) {
|
|
4650
|
-
const foldersDebug = folders.length === 0 ? "<none>" : folders.map((f) => `${f.displayName} (id=${f.id}, feedType=${f.feedType})`).join(", ");
|
|
4651
|
-
throw new Error(translate.t("solutionpackager.publish.errors.orchestratorPersonalWorkspaceFolderNotFound", { folders: foldersDebug }));
|
|
4652
|
-
}
|
|
4653
|
-
if (personalFolder.id == null) {
|
|
4654
|
-
throw new Error(`Personal-workspace folder "${personalFolder.displayName}" has no id; cannot resolve its feed.`);
|
|
4655
|
-
}
|
|
4656
|
-
const match2 = feeds.find((f) => f.folderId === personalFolder.id);
|
|
4657
|
-
if (!match2) {
|
|
4658
|
-
this.throwFeedNotFound(destination, feeds);
|
|
4659
|
-
}
|
|
4660
|
-
return match2;
|
|
4661
|
-
}
|
|
4662
|
-
const expectedPurpose = destination.kind === "OrchestratorSharedLibraries" /* OrchestratorSharedLibraries */ ? PackageFeedDtoPurposeEnum.Libraries : PackageFeedDtoPurposeEnum.Processes;
|
|
4663
|
-
const match = feeds.find((f) => f.purpose === expectedPurpose && f.folderId == null);
|
|
4664
|
-
if (!match) {
|
|
4665
|
-
this.throwFeedNotFound(destination, feeds);
|
|
4666
|
-
}
|
|
4667
|
-
return match;
|
|
4668
|
-
}
|
|
4669
|
-
throwFeedNotFound(destination, feeds) {
|
|
4670
|
-
const available = feeds.length === 0 ? "<none>" : feeds.map((f) => `${f.name} (purpose=${f.purpose}, folderId=${f.folderId ?? "null"})`).join(", ");
|
|
4671
|
-
throw new Error(translate.t("solutionpackager.publish.errors.orchestratorFeedNotFound", {
|
|
4672
|
-
kind: destination.kind,
|
|
4673
|
-
available
|
|
4674
|
-
}));
|
|
4675
|
-
}
|
|
4676
|
-
buildPublishUrl(orchestratorUrl, feed) {
|
|
4677
|
-
const baseUrl = feed.publishUrl ? feed.publishUrl : `${orchestratorUrl}${feed.purpose === PackageFeedDtoPurposeEnum.Libraries ? LIBRARIES_UPLOAD_PATH : PROCESSES_UPLOAD_PATH}`;
|
|
4678
|
-
const parsed = new URL(baseUrl);
|
|
4679
|
-
if (feed.id) {
|
|
4680
|
-
parsed.searchParams.set("feedId", feed.id);
|
|
4681
|
-
}
|
|
4682
|
-
return parsed.toString();
|
|
4683
|
-
}
|
|
4684
|
-
deriveOrchestratorUrl(connectionInfo) {
|
|
4685
|
-
const raw = connectionInfo.cloudUrl ?? "";
|
|
4686
|
-
let end = raw.length;
|
|
4687
|
-
while (end > 0 && raw.charCodeAt(end - 1) === 47)
|
|
4688
|
-
end--;
|
|
4689
|
-
return `${raw.slice(0, end)}${ORCHESTRATOR_RELATIVE_URL}`;
|
|
4690
|
-
}
|
|
4691
|
-
buildHeaders(destination, feed) {
|
|
4692
|
-
const headers = this.buildAuthHeaders(destination.connectionInfo);
|
|
4693
|
-
const folderHeader = destination.kind === "OrchestratorSharedLibraries" /* OrchestratorSharedLibraries */ ? destination.folderId : feed.folderId;
|
|
4694
|
-
if (folderHeader != null) {
|
|
4695
|
-
headers[HEADER_FOLDER_ID] = String(folderHeader);
|
|
4696
|
-
}
|
|
4697
|
-
if (feed.authenticationType === PackageFeedDtoAuthenticationTypeEnum.ApiKey && feed.apiKey) {
|
|
4698
|
-
headers[HEADER_NUGET_API_KEY] = feed.apiKey;
|
|
4699
|
-
}
|
|
4700
|
-
return headers;
|
|
4701
|
-
}
|
|
4702
|
-
buildCustomHeaders(destination) {
|
|
4703
|
-
const headers = this.buildAuthHeaders(destination.connectionInfo);
|
|
4704
|
-
if (destination.folderId != null) {
|
|
4705
|
-
headers[HEADER_FOLDER_ID] = String(destination.folderId);
|
|
4706
|
-
}
|
|
4707
|
-
if (destination.apiKey) {
|
|
4708
|
-
headers[HEADER_NUGET_API_KEY] = destination.apiKey;
|
|
4709
|
-
}
|
|
4710
|
-
return headers;
|
|
4711
|
-
}
|
|
4712
|
-
buildAuthHeaders(connectionInfo) {
|
|
4713
|
-
const headers = {};
|
|
4714
|
-
if (connectionInfo.accessToken) {
|
|
4715
|
-
headers.Authorization = `Bearer ${connectionInfo.accessToken}`;
|
|
4716
|
-
}
|
|
4717
|
-
if (connectionInfo.tenantId) {
|
|
4718
|
-
headers[HEADER_TENANT_ID2] = connectionInfo.tenantId;
|
|
4719
|
-
}
|
|
4720
|
-
return headers;
|
|
4721
|
-
}
|
|
4722
|
-
async safeReadBody(response) {
|
|
4723
|
-
try {
|
|
4724
|
-
const text = await response.text();
|
|
4725
|
-
return text.slice(0, 500);
|
|
4726
|
-
} catch {
|
|
4727
|
-
return "";
|
|
4728
|
-
}
|
|
4729
|
-
}
|
|
4730
|
-
}
|
|
4731
|
-
|
|
4732
|
-
// ../packager/project-packager/src/publish/services/project-publisher.ts
|
|
4733
|
-
class ProjectPublisher {
|
|
4734
|
-
fileSystem;
|
|
4735
|
-
logger;
|
|
4736
|
-
localFolderPublisher;
|
|
4737
|
-
nugetFeedPublisher;
|
|
4738
|
-
orchestratorPublisher;
|
|
4739
|
-
constructor(fileSystem, publishers) {
|
|
4740
|
-
this.fileSystem = fileSystem;
|
|
4741
|
-
this.logger = new ToolLogger("ProjectPublisher", "Publish");
|
|
4742
|
-
this.localFolderPublisher = publishers?.localFolder ?? new LocalFolderPublisher(fileSystem);
|
|
4743
|
-
this.nugetFeedPublisher = publishers?.nugetFeed ?? new NugetFeedPublisher(fileSystem);
|
|
4744
|
-
this.orchestratorPublisher = publishers?.orchestrator ?? new OrchestratorPublisher(fileSystem);
|
|
4745
|
-
}
|
|
4746
|
-
async publishAsync(options) {
|
|
4747
|
-
if (!options.packagePaths || options.packagePaths.length === 0) {
|
|
4748
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.atLeastOnePackage"));
|
|
4749
|
-
}
|
|
4750
|
-
for (const path of options.packagePaths) {
|
|
4751
|
-
if (!await this.fileSystem.exists(path)) {
|
|
4752
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.packageNotFound", { path }));
|
|
4753
|
-
}
|
|
4754
|
-
}
|
|
4755
|
-
try {
|
|
4756
|
-
const destination = options.destination;
|
|
4757
|
-
switch (destination.kind) {
|
|
4758
|
-
case "LocalFolder" /* LocalFolder */:
|
|
4759
|
-
return await this.localFolderPublisher.publishAsync(options.packagePaths, destination);
|
|
4760
|
-
case "NugetFeed" /* NugetFeed */:
|
|
4761
|
-
return await this.nugetFeedPublisher.publishAsync(options.packagePaths, destination);
|
|
4762
|
-
case "OrchestratorPersonalWorkspace" /* OrchestratorPersonalWorkspace */:
|
|
4763
|
-
case "OrchestratorTenantProcesses" /* OrchestratorTenantProcesses */:
|
|
4764
|
-
case "OrchestratorSharedLibraries" /* OrchestratorSharedLibraries */:
|
|
4765
|
-
case "OrchestratorCustom" /* OrchestratorCustom */:
|
|
4766
|
-
return await this.orchestratorPublisher.publishAsync(options.packagePaths, destination);
|
|
4767
|
-
default: {
|
|
4768
|
-
const exhaustive = destination;
|
|
4769
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, translate.t("solutionpackager.publish.errors.unknownDestination", { destination: JSON.stringify(exhaustive) }));
|
|
4770
|
-
}
|
|
4771
|
-
}
|
|
4772
|
-
} catch (error) {
|
|
4773
|
-
const message = error instanceof Error ? error.message : String(error);
|
|
4774
|
-
const localized = translate.t("solutionpackager.publish.errors.publishFailed", { message });
|
|
4775
|
-
this.logger.error(localized);
|
|
4776
|
-
return ToolResult.error("INTERNAL_ERROR" /* InternalError */, localized);
|
|
4777
|
-
}
|
|
4778
|
-
}
|
|
4779
|
-
}
|
|
4780
|
-
|
|
4781
|
-
// ../packager/project-packager/src/publish/node-project-publisher-factory.ts
|
|
4782
|
-
class NodeProjectPublisherFactory extends BaseNodePackagerFactory {
|
|
4783
|
-
async createAsync(config) {
|
|
4784
|
-
const logger = new ToolLogger("ProjectPublisherFactory", "Create");
|
|
4785
|
-
this.configureLanguage(config);
|
|
4786
|
-
this.configureLogHandler(config);
|
|
4787
|
-
logger.info("Creating ProjectPublisher instance...");
|
|
4788
|
-
const fileSystem = this.getOrCreateFileSystem(config);
|
|
4789
|
-
this.getOrCreateTelemetryService(config);
|
|
4790
|
-
const projectPublisher = new ProjectPublisher(fileSystem);
|
|
4791
|
-
logger.info("ProjectPublisher created successfully.");
|
|
4792
|
-
return projectPublisher;
|
|
4793
|
-
}
|
|
4794
|
-
}
|
|
4795
|
-
async function createNodeProjectPublisher(options) {
|
|
4796
|
-
const factory = new NodeProjectPublisherFactory;
|
|
4797
|
-
return factory.createAsync(options);
|
|
4798
|
-
}
|
|
4799
4263
|
export {
|
|
4800
|
-
BaseNodePackagerFactory,
|
|
4801
|
-
ConsoleTelemetryProvider,
|
|
4802
|
-
DebugTelemetryProvider,
|
|
4803
|
-
DotnetDiscoveryService,
|
|
4804
|
-
GovernancePolicyService,
|
|
4805
|
-
NodeContextStorage,
|
|
4806
|
-
NodePackageSignService,
|
|
4807
|
-
PACKAGE_ID_TOO_LONG,
|
|
4808
|
-
PackService,
|
|
4809
|
-
PackagerParameters,
|
|
4810
|
-
PackagerParametersValidator,
|
|
4811
|
-
ProjectBuildOptions,
|
|
4812
|
-
ProjectBuildOptionsValidator,
|
|
4813
|
-
ProjectCleanupOptions,
|
|
4814
|
-
ProjectLoader,
|
|
4815
4264
|
ProjectPackOptions,
|
|
4816
|
-
|
|
4817
|
-
ProjectPublishOptions,
|
|
4818
|
-
ProjectPublisher,
|
|
4819
|
-
ProjectRestoreOptions,
|
|
4820
|
-
ProjectToolExecutor,
|
|
4821
|
-
ProjectValidateOptions,
|
|
4822
|
-
ProjectValidateOptionsValidator,
|
|
4823
|
-
PublishDestinationKind,
|
|
4824
|
-
RulesConfigFileType,
|
|
4825
|
-
TelemetryNames,
|
|
4826
|
-
TelemetryService,
|
|
4827
|
-
ToolLogger,
|
|
4828
|
-
ToolsFactory,
|
|
4829
|
-
createNodeProjectPackager,
|
|
4830
|
-
createNodeProjectPublisher,
|
|
4831
|
-
isPackageIdTooLongError,
|
|
4832
|
-
resolveProducedNupkgsAsync,
|
|
4833
|
-
setGlobalLogHandler,
|
|
4834
|
-
signNupkgsAsync
|
|
4265
|
+
createNodeProjectPackager
|
|
4835
4266
|
};
|
|
4836
4267
|
|
|
4837
|
-
//# debugId=
|
|
4268
|
+
//# debugId=7B8E24C5C2B351AE64756E2164756E21
|