@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.
Files changed (350) hide show
  1. package/README.md +14 -12
  2. package/dist/THIRD-PARTY-NOTICES.md +77 -49
  3. package/dist/applicationinsights-web-8m26566f.js +17209 -0
  4. package/dist/authoring-x84r2a2j.js +23 -0
  5. package/dist/binding-service-s0wvr2xm.js +114 -0
  6. package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-gnftxwsf.js} +5 -6
  7. package/dist/connector-library-1yw5r47w.js +99 -0
  8. package/dist/{connector-service-m08dysc2.js → connector-service-r86mtxwn.js} +270 -275
  9. package/dist/{conversion-FQTRFHRX-e5wr281j.js → conversion-7O2PDOQB-3wwppx87.js} +477 -472
  10. package/dist/{de-FGHEJRCI-PK6WALXW-0dnvnmke.js → de-2BEKRUMY-MD7L477H-rj1rmtav.js} +425 -37
  11. package/dist/{de-WLW6KWOJ-2qnsqdtw.js → de-2BEKRUMY-x4dx0nn9.js} +190 -10
  12. package/dist/{de-VMMG2MN7-2ecwpg1b.js → de-3CU65EDB-r7r10am9.js} +82 -7
  13. package/dist/{de-UZI7FJDO-awjpqfz0.js → de-AI7ML6JM-km47f8k4.js} +20 -5
  14. package/dist/{de-B3EKCNFC-zdwybhh7.js → de-VQWT6L5Y-mch4qwyv.js} +38 -5
  15. package/dist/{de-XNTCMP5Z-xfkfqg20.js → de-XNTCMP5Z-nd4scb43.js} +1 -4
  16. package/dist/debug-conversation-trigger-3wzy90kj.js +23 -0
  17. package/dist/debug-http-client-zydr7tna.js +31 -0
  18. package/dist/debug-service-hdktqeek.js +60 -0
  19. package/dist/edge-service-zck3s9ss.js +267 -0
  20. package/dist/{elk.bundled-vpsbxz0p.js → elk.bundled-phy0zc81.js} +6860 -6860
  21. package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
  22. package/dist/en-LAVDF7IQ-ba7wzsxp.js +254 -0
  23. package/dist/en-LQHKFSEY-zf6a2myg.js +24 -0
  24. package/dist/en-U2NSIIZN-whenw6wh.js +58 -0
  25. package/dist/en-WPCQ4JKF-t3x07ggr.js +148 -0
  26. package/dist/en-X6T4SP2Y-FPGCJIFV-qdfapfzs.js +2756 -0
  27. package/dist/en-X6T4SP2Y-xe57av1w.js +2752 -0
  28. package/dist/{es-5THCNRFN-tqwyrdgy.js → es-7ZTQTGKN-11sj0yjx.js} +190 -10
  29. package/dist/{es-KR3ZSNMP-QLWVVWKJ-5egs0gj9.js → es-7ZTQTGKN-TXQBFYRA-bzh1e1gq.js} +422 -34
  30. package/dist/{es-EKHIPSW6-ya88nvm0.js → es-EKHIPSW6-asfceac2.js} +1 -4
  31. package/dist/{es-KEBF3AIM-g5rszh8f.js → es-EP563JWQ-1agj5n4e.js} +38 -5
  32. package/dist/{es-WY6FZ3HO-zksnn6dp.js → es-KHVY67FO-natcvmmm.js} +82 -7
  33. package/dist/{es-MX-5RELIXKI-jtjbcxbb.js → es-MX-7KJZPEQN-1fq0a9jr.js} +20 -5
  34. package/dist/{es-MX-ZP2LJ3V7-k4brnfa9.js → es-MX-F7ZEHSNE-gxpm47vv.js} +82 -7
  35. package/dist/{es-MX-XXZJGC4R-W6EEIHXR-c2m4yjpj.js → es-MX-IHGRIEWH-23X37OPS-7cqdzpcy.js} +425 -37
  36. package/dist/{es-MX-TWZBRAXK-gqd9swzw.js → es-MX-IHGRIEWH-g63p0gb4.js} +191 -11
  37. package/dist/{es-MX-OR6G2SFR-7yykk5ma.js → es-MX-OR6G2SFR-02t13sen.js} +1 -4
  38. package/dist/{es-MX-EL3CDS3F-sh84yvjr.js → es-MX-S2RFDGDE-x9r0tv30.js} +38 -5
  39. package/dist/{es-4UBUTCQA-t7hsackg.js → es-SPNKTD5Y-vw5cbgv5.js} +20 -5
  40. package/dist/filter-engine-dh9s90gb.js +10 -0
  41. package/dist/first-party-service-ahcc6xc6.js +8 -0
  42. package/dist/flow-api-d4dvmadm.js +38 -0
  43. package/dist/{flow-debug-service-gc2ky1ve.js → flow-debug-service-hy21ddd9.js} +151 -195
  44. package/dist/flow-eval-node-target-tdrwqca7.js +29 -0
  45. package/dist/flow-eval-run-api-w4j8ra60.js +9 -0
  46. package/dist/{flow-eval-run-service-2cbr0jtw.js → flow-eval-run-service-5en4ahyn.js} +125 -149
  47. package/dist/{flow-eval-service-24jbkhhz.js → flow-eval-service-2j28ect1.js} +57 -81
  48. package/dist/{flow-init-sdk-source-xvdvkq7d.js → flow-init-sdk-source-xnr4bg25.js} +8 -11
  49. package/dist/flow-init-service-bj3ev9bz.js +26 -0
  50. package/dist/flow-io-9q6xk473.js +24 -0
  51. package/dist/{flow-migrate-service-t3pnd2r3.js → flow-migrate-service-dkx85jj5.js} +33 -54
  52. package/dist/{flow-pack-service-b910q207.js → flow-pack-service-58m51sp8.js} +79 -103
  53. package/dist/flow-validate-service-9a3zate4.js +46 -0
  54. package/dist/{fr-DPD4GHX3-exeypjwk.js → fr-7LK3QUWT-a94yejcs.js} +38 -5
  55. package/dist/{fr-Y6NPVODW-AS7T42TR-v4qe2tha.js → fr-7ZDL4MVO-CXMRZDOF-qjkg6y2r.js} +425 -37
  56. package/dist/{fr-CERONSRC-edpxhbmb.js → fr-7ZDL4MVO-pd27vwh6.js} +191 -11
  57. package/dist/{fr-VBM5WRC2-707ha692.js → fr-AXJGUT53-hdg3pmd4.js} +20 -5
  58. package/dist/{fr-PRMYCRDC-0bk078by.js → fr-I42FODC5-p80x5v4b.js} +83 -8
  59. package/dist/{fr-IHD66TVT-vfvmefbx.js → fr-IHD66TVT-eq8h0d6c.js} +1 -4
  60. package/dist/{governance-fetcher-ffvbtwbd.js → governance-fetcher-h8hpcwyh.js} +17 -21
  61. package/dist/{headless-4x4v3sy6.js → headless-41t9wwb7.js} +2395 -43269
  62. package/dist/{hitl-service-3m4ce3mt.js → hitl-service-hccqhm63.js} +22 -42
  63. package/dist/index-4e3w8x62.js +31 -0
  64. package/dist/{index-fyc0k5dd.js → index-5pzp2qeb.js} +5350 -3271
  65. package/dist/index-5xh0cjag.js +82 -0
  66. package/dist/index-7fet3f0s.js +10 -0
  67. package/dist/index-d4bdedx3.js +32 -0
  68. package/dist/index-f5kq7265.js +24 -0
  69. package/dist/index-g2p2ww34.js +39 -0
  70. package/dist/index-ng011fzs.js +974 -0
  71. package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
  72. package/dist/{index-1b2je9n2.js → index-px95xmkg.js} +290 -268
  73. package/dist/index-tdwpejt6.js +22 -0
  74. package/dist/index-z2qk2qn6.js +24 -0
  75. package/dist/index.js +19 -28
  76. package/dist/index.umd.min-ttg1qc0x.js +7814 -0
  77. package/dist/init.js +22 -43
  78. package/dist/inline-entity-resolver-0neh2b43.js +25 -0
  79. package/dist/input-reader-zqaep7k7.js +11 -0
  80. package/dist/{ja-43QL7CGO-c3q8gre9.js → ja-C7GZV6YP-hvtbngr5.js} +20 -5
  81. package/dist/{ja-HFEQKCZF-hb2f25p8.js → ja-GI3OUHPZ-28fy60r0.js} +83 -8
  82. package/dist/{ja-JE5ZL7EY-hacj2m31.js → ja-JE5ZL7EY-607k4c7p.js} +1 -4
  83. package/dist/{ja-Q5PXKJ2V-BR5GRIDQ-fgqqpryf.js → ja-LGAM5HKR-NTPKIZEM-nv67917s.js} +422 -34
  84. package/dist/{ja-U2MCNHGT-gz0ap1jk.js → ja-LGAM5HKR-sgrtjqjh.js} +190 -10
  85. package/dist/ja-WY2W6733-ayr36h1f.js +71 -0
  86. package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
  87. package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
  88. package/dist/known-types-v9sxcq1c.js +13 -0
  89. package/dist/{ko-AYBDSRZG-G43C3XUW-kng13fsg.js → ko-7B4SUZB7-2SLI636D-grbtfrcv.js} +424 -36
  90. package/dist/{ko-XAUYQWDR-zp81gjp4.js → ko-7B4SUZB7-c8wr20sc.js} +190 -10
  91. package/dist/{ko-DJJRKCG5-5h3k9csc.js → ko-DJJRKCG5-4fekzjn4.js} +1 -4
  92. package/dist/{ko-LA5OSS5P-mq5h8sbk.js → ko-H2RGQWKJ-9696w762.js} +38 -5
  93. package/dist/{ko-TLL6Z6CD-wrt3n8a9.js → ko-Q24HSSL4-5vn55pte.js} +20 -5
  94. package/dist/{ko-B4SEC7QX-thq2wt6a.js → ko-RYKAL74T-10m4z8vw.js} +83 -8
  95. package/dist/localization-skqjy9nr.js +45 -0
  96. package/dist/maestro-automate-entry-d1v5q5mv.js +14 -0
  97. package/dist/{node-xqc0h091.js → node-0jy3qx5b.js} +69 -638
  98. package/dist/node-service-2nxpk751.js +64 -0
  99. package/dist/{node-strategy-1dmmhvf3.js → node-strategy-wrjxmbzt.js} +9 -12
  100. package/dist/node-sync-service-68vq10je.js +56 -0
  101. package/dist/packager-tool-14rdgz3c.js +55 -0
  102. package/dist/packager-tool-1rhch6b5.js +496 -0
  103. package/dist/packager-tool-21t17xzz.js +5073 -0
  104. package/dist/{packager-tool-pvhx9e12.js → packager-tool-2b0tn4p4.js} +58 -176
  105. package/dist/{packager-tool-f9jxca9z.js → packager-tool-368bft50.js} +11 -11
  106. package/dist/{packager-tool-a5afh1dc.js → packager-tool-4fv0sq2h.js} +61 -67
  107. package/dist/packager-tool-4g87fbz6.js +273 -0
  108. package/dist/packager-tool-4zt1s51a.js +53 -0
  109. package/dist/{packager-tool-frjt46rb.js → packager-tool-508ka40b.js} +23 -23
  110. package/dist/{packager-tool-gbv6f0ac.js → packager-tool-5104bnpv.js} +22 -21
  111. package/dist/packager-tool-5dgpfh5e.js +1274 -0
  112. package/dist/packager-tool-5ve5ms3b.js +2393 -0
  113. package/dist/{packager-tool-dxgrhfq5.js → packager-tool-64r7e4ek.js} +8 -8
  114. package/dist/{packager-tool-h6pf3qxq.js → packager-tool-65yf8zqb.js} +180 -1237
  115. package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
  116. package/dist/{packager-tool-htrt75v4.js → packager-tool-6jpvvxyb.js} +27 -22
  117. package/dist/packager-tool-6vhefpmq.js +461 -0
  118. package/dist/{packager-tool-1nfbzy0h.js → packager-tool-72xwbsmw.js} +441 -556
  119. package/dist/packager-tool-7atc775f.js +30 -0
  120. package/dist/packager-tool-7mxn3e7j.js +27 -0
  121. package/dist/{packager-tool-wvmtp8zt.js → packager-tool-7qtnffkc.js} +8 -7
  122. package/dist/{packager-tool-ymma2s85.js → packager-tool-8ba22j6n.js} +9 -6
  123. package/dist/{packager-tool-apawc11t.js → packager-tool-8ed52y5r.js} +1584 -1261
  124. package/dist/{packager-tool-v11fm907.js → packager-tool-8n4bdvke.js} +13 -13
  125. package/dist/{packager-tool-p8gab24q.js → packager-tool-8qypzm9v.js} +424 -404
  126. package/dist/packager-tool-9217bxm2.js +6 -0
  127. package/dist/{packager-tool-zfrp8ecz.js → packager-tool-951nhh3e.js} +82 -82
  128. package/dist/{packager-tool-ap0zt7de.js → packager-tool-99d2kj94.js} +8 -11
  129. package/dist/{packager-tool-z21c6mbp.js → packager-tool-a1h0q79w.js} +48 -48
  130. package/dist/{packager-tool-xk78j7dz.js → packager-tool-ac6rvny7.js} +52 -57
  131. package/dist/{packager-tool-1d64q5s5.js → packager-tool-b2pkwwj1.js} +1273 -1300
  132. package/dist/{packager-tool-yetpbbey.js → packager-tool-bbkkxbyq.js} +9 -8
  133. package/dist/{packager-tool-409n51pv.js → packager-tool-d07g2kpn.js} +7 -7
  134. package/dist/{packager-tool-8zzmg2f3.js → packager-tool-dx6sjbkd.js} +19 -19
  135. package/dist/{packager-tool-8g5931fz.js → packager-tool-em4ppegs.js} +36 -43
  136. package/dist/{packager-tool-zgsvggdr.js → packager-tool-f7rk9xhv.js} +4 -4
  137. package/dist/{packager-tool-jrnjzs5t.js → packager-tool-fzgfb0jt.js} +32175 -36281
  138. package/dist/{packager-tool-9rmaeaww.js → packager-tool-gdpw0daf.js} +25211 -11966
  139. package/dist/packager-tool-hk0fnvz5.js +14 -0
  140. package/dist/{packager-tool-dbsdy4xx.js → packager-tool-jd3v0bh1.js} +4 -4
  141. package/dist/{packager-tool-tqjfdpda.js → packager-tool-jmrhzfyj.js} +106 -80
  142. package/dist/{packager-tool-2px5qqm4.js → packager-tool-kz3t4raw.js} +490 -246
  143. package/dist/{packager-tool-7bam8cjq.js → packager-tool-mdf7bws6.js} +53255 -27261
  144. package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
  145. package/dist/{packager-tool-nkrmjr3a.js → packager-tool-mphfxa9g.js} +125 -125
  146. package/dist/{packager-tool-kn86394c.js → packager-tool-p123mtfx.js} +66 -692
  147. package/dist/{packager-tool-t7ahhaer.js → packager-tool-pxq0bwp0.js} +208 -138
  148. package/dist/{packager-tool-j95w4fj3.js → packager-tool-q0f1dvtd.js} +11 -11
  149. package/dist/{packager-tool-8qp60s20.js → packager-tool-q2f18crb.js} +3 -3
  150. package/dist/packager-tool-q2kwk5bf.js +57 -0
  151. package/dist/{packager-tool-09rvpfjd.js → packager-tool-rxqxza90.js} +192 -183
  152. package/dist/{packager-tool-3m4ve01f.js → packager-tool-ryds9860.js} +33 -36
  153. package/dist/{packager-tool-ykbahxma.js → packager-tool-t17t9svg.js} +6 -6
  154. package/dist/{packager-tool-myhbp761.js → packager-tool-vgrswa8p.js} +53 -8
  155. package/dist/{packager-tool-7hw344bt.js → packager-tool-xb16e3tz.js} +5 -5
  156. package/dist/{packager-tool-1frs4sr4.js → packager-tool-yewnsyag.js} +37 -5
  157. package/dist/packager-tool-zdqbp34f.js +14 -0
  158. package/dist/{packager-tool-pacrqxv2.js → packager-tool-ze3fnf3s.js} +52 -34
  159. package/dist/packager-tool.js +12 -32
  160. package/dist/prepare-uip-ad7mfs8t.js +92 -0
  161. package/dist/{pt-3KUMINBZ-d0fexmny.js → pt-2RGHDOG4-gwe2ptvg.js} +38 -5
  162. package/dist/{pt-BR-3LGIH33I-tqbrd89y.js → pt-BR-3LGIH33I-hdf332je.js} +1 -4
  163. package/dist/{pt-BR-USP2T7GD-pedn77m1.js → pt-BR-BIUJXIPU-2sqzhr8y.js} +20 -5
  164. package/dist/{pt-BR-6VFBW5QT-hsck9gjj.js → pt-BR-IL3KLBID-m1mvqqzb.js} +83 -8
  165. package/dist/{pt-BR-WNNZTIMN-6fent688.js → pt-BR-JWHVZE6H-gvkknv49.js} +38 -5
  166. package/dist/{pt-BR-TKHNHMET-4Z5H4N5G-pzw3328h.js → pt-BR-PHLFHMXZ-JFPKUXIZ-gyb27t6e.js} +425 -37
  167. package/dist/{pt-BR-GNQNAAZ2-xadharv4.js → pt-BR-PHLFHMXZ-n6de4s7z.js} +191 -11
  168. package/dist/{pt-RMIAKZB4-t80exmp7.js → pt-MHX6JGAX-xfgvdqwg.js} +20 -5
  169. package/dist/{pt-ROXU257Y-OWZOS54V-ywap2t39.js → pt-N7ZTJT4W-GVODJMRX-p5b51p0b.js} +424 -36
  170. package/dist/{pt-TO2DARY2-ftcce1bv.js → pt-N7ZTJT4W-d6c67xcn.js} +190 -10
  171. package/dist/{pt-PFZXVOQH-qshq0b2m.js → pt-PFZXVOQH-xvcm5b61.js} +1 -4
  172. package/dist/{pt-WOTPKWPZ-1rxcy8hs.js → pt-VLA5IOHO-8t4pze0h.js} +83 -8
  173. package/dist/{ro-GHOBYW2S-4zevc9dy.js → ro-3RKJNGJZ-xqj14e3d.js} +20 -5
  174. package/dist/{ro-KMDT7LYJ-yhpnsdvw.js → ro-53TS7SWG-hnjx1c7b.js} +38 -5
  175. package/dist/{ro-AN5G62WQ-kcj00jwq.js → ro-AN5G62WQ-fzsv2ymm.js} +1 -4
  176. package/dist/{ro-AVAWPKOO-6WCG756B-v7pjv1hc.js → ro-FLNXVYJI-ZN43XZKK-2tajkc94.js} +422 -34
  177. package/dist/{ro-WUYJV6OW-a8d9qy1n.js → ro-FLNXVYJI-ytrwabg2.js} +190 -10
  178. package/dist/{ro-PB44YXML-zmhhwp5h.js → ro-IRNFX376-mh84zk3n.js} +82 -7
  179. package/dist/{ru-GSCT4ARZ-FTVCGQTL-gee86v14.js → ru-GSCT4ARZ-FTVCGQTL-v3d4ag31.js} +2 -4
  180. package/dist/ru-GSCT4ARZ-c2cfq4h1.js +7 -0
  181. package/dist/{ru-T73OPRTC-4knxw497.js → ru-T73OPRTC-50m7tty9.js} +1 -4
  182. package/dist/{ru-WBLQ5B2U-wemdzdqd.js → ru-WBLQ5B2U-5qpt0mvh.js} +1 -4
  183. package/dist/{ru-WBLQ5B2U-8r3c7v6d.js → ru-WBLQ5B2U-bf20yr5y.js} +1 -4
  184. package/dist/{ru-WBLQ5B2U-kdey8qa4.js → ru-WBLQ5B2U-w2wmp3xb.js} +1 -4
  185. package/dist/{serialization-BXU6AKAN-vdqyr29x.js → serialization-Z3UYT6BW-y9gb55mp.js} +1638 -761
  186. package/dist/services/extract-schema/default-schema-document.d.ts +31 -0
  187. package/dist/services/node-service.d.ts +6 -3
  188. package/dist/services/node-validators/file-node-connection-validator.d.ts +2 -0
  189. package/dist/services/node-validators/index.d.ts +1 -0
  190. package/dist/services/orchestrator-connection-field.d.ts +24 -0
  191. package/dist/services/packaging-utils.d.ts +2 -2
  192. package/dist/services/vars-reference-rule.d.ts +4 -3
  193. package/dist/solution-auth-j8x84n5z.js +11 -0
  194. package/dist/solution-discovery-vn4q32bf.js +38 -0
  195. package/dist/{tidy-service-hz61ypyj.js → tidy-service-m33hhtc7.js} +37 -55
  196. package/dist/tool.js +18 -27
  197. package/dist/{tr-JMIP7ZSL-G3QYPVT2-gswngwcr.js → tr-7AIZZWZ6-ESAESUPL-77g9b7jb.js} +422 -34
  198. package/dist/{tr-M3F5A6AU-bb0tg39m.js → tr-7AIZZWZ6-pdzp9n0p.js} +190 -10
  199. package/dist/{tr-SEC6RGZ4-0ttavjya.js → tr-EJKY7DVQ-rkctqva4.js} +83 -8
  200. package/dist/{tr-KHOCWWLF-8apf5y44.js → tr-KHOCWWLF-m9t24j5y.js} +1 -4
  201. package/dist/{tr-SC55DYHY-e4zgcd4t.js → tr-PIQY7JIT-2mkwk0kq.js} +38 -5
  202. package/dist/{tr-GDTLECMM-kngksm3r.js → tr-PQLUUHPC-qsb7btxn.js} +20 -5
  203. package/dist/utils/container-ports.d.ts +22 -0
  204. package/dist/utils/handle-expansion.d.ts +57 -3
  205. package/dist/utils/workflow-file-format.d.ts +14 -0
  206. package/dist/validation.js +44 -68
  207. package/dist/{variable-service-9ex4a93n.js → variable-service-ea1erf93.js} +28 -49
  208. package/dist/{wait-for-flow-job-b0vj8828.js → wait-for-flow-job-a4xtda36.js} +29 -36
  209. package/dist/{zh-CN-MX7VIOF2-xznrtchf.js → zh-CN-4FH7E7UL-84y6j2ea.js} +82 -7
  210. package/dist/{zh-CN-4NI2EGMV-8g027vv3.js → zh-CN-4NI2EGMV-dt0wg0wh.js} +1 -4
  211. package/dist/{zh-CN-IFFXSEJS-MZQ4HU3Z-ge1ynmtz.js → zh-CN-CN2ARPFS-NIQTWDK2-b5c91fwn.js} +422 -34
  212. package/dist/{zh-CN-C5G4PC7C-ds9gkptg.js → zh-CN-CN2ARPFS-e0p2qrxf.js} +190 -10
  213. package/dist/{en-BPJVY3U7-xkpj5xc5.js → zh-CN-NIEVKROA-q4tbbwqz.js} +26 -7
  214. package/dist/{zh-CN-I5D7WHBD-ge92tbx9.js → zh-CN-OHNTHZRI-b0hjkfqn.js} +20 -5
  215. package/dist/{zh-TW-53SU6EH4-33x57egq.js → zh-TW-53SU6EH4-w0wz3nwg.js} +1 -4
  216. package/dist/{zh-TW-5SJ3GZT2-bsg054mw.js → zh-TW-5WQA6QTM-hns69sd4.js} +83 -8
  217. package/dist/{zh-TW-IYBNYAMG-J7FWTQTK-sx8d4ymg.js → zh-TW-7RUFEVFK-VKVRSVTP-jq2pcmar.js} +421 -33
  218. package/dist/{zh-TW-62HZIG6O-787kdwex.js → zh-TW-7RUFEVFK-qd7myw31.js} +190 -10
  219. package/dist/{zh-TW-2AVLM723-288pkc1z.js → zh-TW-E4D3Y6ZR-tn3bmzz5.js} +20 -5
  220. package/dist/{zh-TW-TN3MPNXL-jcgg2hcs.js → zh-TW-MSQM7YTT-m7r7nwnj.js} +38 -5
  221. package/package.json +2 -2
  222. package/dist/authoring-e1k40hyw.js +0 -24
  223. package/dist/binding-service-0qffbxg7.js +0 -157
  224. package/dist/de-FGHEJRCI-gn4cf5gh.js +0 -2697
  225. package/dist/de-MUJPA4EB-209jpeqe.js +0 -173
  226. package/dist/de-UZI7FJDO-mwvc4cxe.js +0 -200
  227. package/dist/debug-conversation-trigger-2crr9w4n.js +0 -30
  228. package/dist/debug-http-client-yqjzsnhw.js +0 -32
  229. package/dist/debug-service-nra3n02y.js +0 -61
  230. package/dist/edge-service-y44f2rgd.js +0 -170
  231. package/dist/en-E454CJNK-ytfw06kj.js +0 -98
  232. package/dist/en-EJCBA3LK-0wb3b1xy.js +0 -146
  233. package/dist/en-EJCBA3LK-dtpdghgj.js +0 -146
  234. package/dist/en-GN2ZGWUE-03z2df4k.js +0 -136
  235. package/dist/en-LQHKFSEY-vvbe8ve9.js +0 -26
  236. package/dist/en-M7GQYBV2-5nfmpnfz.js +0 -2018
  237. package/dist/en-TBNO2WUV-77KTKLDE-4ktf0pqw.js +0 -1942
  238. package/dist/en-TBNO2WUV-9nan43e5.js +0 -1936
  239. package/dist/es-4UBUTCQA-m1ytpyx2.js +0 -200
  240. package/dist/es-7SE7HX2X-qda7whn6.js +0 -173
  241. package/dist/es-KR3ZSNMP-0cszm2n3.js +0 -2697
  242. package/dist/es-MX-2MYFZU7X-6v0q5rbn.js +0 -173
  243. package/dist/es-MX-5RELIXKI-9jhqtddc.js +0 -200
  244. package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +0 -2697
  245. package/dist/filter-engine-7ep90g7f.js +0 -11
  246. package/dist/first-party-service-srxaftkn.js +0 -27
  247. package/dist/flow-api-sat010z1.js +0 -42
  248. package/dist/flow-eval-node-target-cwxb4kfe.js +0 -52
  249. package/dist/flow-eval-run-api-xdygjzfv.js +0 -13
  250. package/dist/flow-init-service-k7k5vx2z.js +0 -47
  251. package/dist/flow-io-2qdyj5e0.js +0 -44
  252. package/dist/flow-validate-service-x2mbk3et.js +0 -70
  253. package/dist/fr-MDFKNZ4C-qmypp92m.js +0 -173
  254. package/dist/fr-VBM5WRC2-63z7w4mh.js +0 -200
  255. package/dist/fr-Y6NPVODW-q5ef3htr.js +0 -2697
  256. package/dist/index-cg9qhfb1.js +0 -635
  257. package/dist/index-d090f35d.js +0 -66
  258. package/dist/index-gxcjq6ns.js +0 -110
  259. package/dist/index-kmp9fmhb.js +0 -25
  260. package/dist/index-nsn889vf.js +0 -27
  261. package/dist/index-sqhbn7ew.js +0 -157
  262. package/dist/index-wycgq0ff.js +0 -3178
  263. package/dist/index-y1ym28vg.js +0 -667
  264. package/dist/index.umd.min-fqefd9kn.js +0 -7814
  265. package/dist/inline-entity-resolver-c854cqma.js +0 -45
  266. package/dist/input-reader-n7kzdrev.js +0 -12
  267. package/dist/ja-43QL7CGO-h6qfxfay.js +0 -200
  268. package/dist/ja-MDG4BKZQ-gayaca2c.js +0 -38
  269. package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +0 -2697
  270. package/dist/ja-UTQEAP34-hvyf683h.js +0 -173
  271. package/dist/known-types-r51zxb9g.js +0 -19
  272. package/dist/ko-AXCHW2OK-pkwdcbmx.js +0 -173
  273. package/dist/ko-AYBDSRZG-am0h0m2r.js +0 -2697
  274. package/dist/ko-TLL6Z6CD-ag6gjynr.js +0 -200
  275. package/dist/localization-d6gjmrsw.js +0 -47
  276. package/dist/maestro-automate-entry-6f9act3w.js +0 -22
  277. package/dist/node-service-d4xpqs0z.js +0 -92
  278. package/dist/node-sync-service-76b9e4r5.js +0 -61
  279. package/dist/packager-tool-0gctz400.js +0 -17
  280. package/dist/packager-tool-4mna26cc.js +0 -133
  281. package/dist/packager-tool-4x7tzvv0.js +0 -1176
  282. package/dist/packager-tool-53w8skv5.js +0 -262
  283. package/dist/packager-tool-6ejqwbw9.js +0 -26
  284. package/dist/packager-tool-6z1hsm2h.js +0 -143
  285. package/dist/packager-tool-7ja1b5hh.js +0 -8809
  286. package/dist/packager-tool-9era57c0.js +0 -28
  287. package/dist/packager-tool-9jxzgsxc.js +0 -14
  288. package/dist/packager-tool-c23zrhj8.js +0 -11
  289. package/dist/packager-tool-d6qf5qmb.js +0 -49
  290. package/dist/packager-tool-e3yks66r.js +0 -95
  291. package/dist/packager-tool-e5hj89zm.js +0 -6
  292. package/dist/packager-tool-e87tzg4y.js +0 -1937
  293. package/dist/packager-tool-eypvc2kv.js +0 -23
  294. package/dist/packager-tool-gbgfwx8f.js +0 -2
  295. package/dist/packager-tool-hk1gxnth.js +0 -11
  296. package/dist/packager-tool-hxyjn885.js +0 -24
  297. package/dist/packager-tool-j78fwwhq.js +0 -16
  298. package/dist/packager-tool-jgfzfqjm.js +0 -53
  299. package/dist/packager-tool-jysvpt8p.js +0 -11
  300. package/dist/packager-tool-m3wkcxf5.js +0 -11
  301. package/dist/packager-tool-mcaf4ewf.js +0 -46
  302. package/dist/packager-tool-mgcz986r.js +0 -143
  303. package/dist/packager-tool-p79yh9ww.js +0 -97
  304. package/dist/packager-tool-paq9c70w.js +0 -1332
  305. package/dist/packager-tool-pcvhcn2k.js +0 -2019
  306. package/dist/packager-tool-qkn0c042.js +0 -1922
  307. package/dist/packager-tool-qszay16r.js +0 -180
  308. package/dist/packager-tool-red2crtp.js +0 -5367
  309. package/dist/packager-tool-rs6jm14d.js +0 -23
  310. package/dist/packager-tool-s7wb0s9n.js +0 -6297
  311. package/dist/packager-tool-sc961w0q.js +0 -16
  312. package/dist/packager-tool-skcjythd.js +0 -22085
  313. package/dist/packager-tool-t07ev0jj.js +0 -1083
  314. package/dist/packager-tool-xj0agqpk.js +0 -11
  315. package/dist/packager-tool-z83pga0z.js +0 -1942
  316. package/dist/pt-3DIO5QWG-hb763vct.js +0 -173
  317. package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +0 -2697
  318. package/dist/pt-BR-USP2T7GD-rppy42ym.js +0 -200
  319. package/dist/pt-BR-Y6K6XHXK-37a932vp.js +0 -173
  320. package/dist/pt-RMIAKZB4-67enhx3m.js +0 -200
  321. package/dist/pt-ROXU257Y-yd80gx6s.js +0 -2697
  322. package/dist/ro-AVAWPKOO-42m6am1w.js +0 -2697
  323. package/dist/ro-BWR3ONRR-jmap5ajd.js +0 -173
  324. package/dist/ro-GHOBYW2S-mhnqsgaa.js +0 -200
  325. package/dist/ru-GSCT4ARZ-1sa9wbr8.js +0 -10
  326. package/dist/ru-GSCT4ARZ-jrxwev63.js +0 -10
  327. package/dist/ru-WBLQ5B2U-dpqvtfwr.js +0 -10
  328. package/dist/ru-WBLQ5B2U-s4em88p0.js +0 -10
  329. package/dist/shared-utils-tqnx96mg.js +0 -21
  330. package/dist/solution-auth-8qz5pw7z.js +0 -14
  331. package/dist/solution-discovery-6t0z143v.js +0 -44
  332. package/dist/tr-5IIHSFW5-stsb3dar.js +0 -173
  333. package/dist/tr-GDTLECMM-k5fhmq13.js +0 -200
  334. package/dist/tr-JMIP7ZSL-fb67ft9w.js +0 -2696
  335. package/dist/zh-CN-I5D7WHBD-sr5h0a98.js +0 -200
  336. package/dist/zh-CN-IFFXSEJS-tke4mzty.js +0 -2697
  337. package/dist/zh-CN-OUMLDKDS-q3a1rr5c.js +0 -38
  338. package/dist/zh-CN-R2KU4U5L-q4yhc33t.js +0 -173
  339. package/dist/zh-TW-2AVLM723-xsmap3gk.js +0 -200
  340. package/dist/zh-TW-GNKMELBF-r4ay2475.js +0 -173
  341. package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +0 -2697
  342. /package/dist/{packager-tool-yc4kw997.js → packager-tool-1qg04b7q.js} +0 -0
  343. /package/dist/{packager-tool-cqtsj6yh.js → packager-tool-2sazb7th.js} +0 -0
  344. /package/dist/{packager-tool-s9ff3kk4.js → packager-tool-887wr6jm.js} +0 -0
  345. /package/dist/{packager-tool-aw9v0raw.js → packager-tool-8c7nddd1.js} +0 -0
  346. /package/dist/{packager-tool-9cq9atem.js → packager-tool-a9xgmn1q.js} +0 -0
  347. /package/dist/{packager-tool-4kr6g0zw.js → packager-tool-cvh1a0nm.js} +0 -0
  348. /package/dist/{packager-tool-27avrkyk.js → packager-tool-k3egwd1m.js} +0 -0
  349. /package/dist/{packager-tool-qa9gftnj.js → packager-tool-mxgybnmt.js} +0 -0
  350. /package/dist/{packager-tool-10vc8pq4.js → packager-tool-wr7gn964.js} +0 -0
@@ -1,73 +1,12 @@
1
1
  import {
2
- resolveInlineEntity
3
- } from "./packager-tool-v11fm907.js";
4
- import {
5
- getConnectorInfo,
6
- getNode,
7
- isConnectorNode,
8
- isTenantManifestInvalidError
9
- } from "./packager-tool-2px5qqm4.js";
10
- import {
11
- explainNodeTypeWithoutProcessResource
12
- } from "./packager-tool-z21c6mbp.js";
13
- import {
14
- isKnownSdkNodeType
15
- } from "./packager-tool-409n51pv.js";
16
- import {
17
- findMatchingDefinition
18
- } from "./packager-tool-hxyjn885.js";
19
- import {
20
- ensureDirectory
21
- } from "./packager-tool-xk78j7dz.js";
22
- import {
23
- readFlowWorkflow,
24
- writeFlowWorkflow
25
- } from "./packager-tool-htrt75v4.js";
26
- import {
27
- bindingNodesOf,
28
- buildInlineAgentContract,
29
- createProcessBindings,
30
- entityScopeKey,
31
- extractProcessGuid,
32
- isEntityNodeType,
33
- isInlineAgentNodeType,
34
- operateRuntimeOptions,
35
- readInlineAgentSource
36
- } from "./packager-tool-7ja1b5hh.js";
37
- import {
38
- addBinding,
39
- addNode,
40
- createBinding,
41
- generateNodeIdAndName
42
- } from "./packager-tool-pvhx9e12.js";
43
- import {
44
- withRuntimeProfile
45
- } from "./packager-tool-jgfzfqjm.js";
46
- import {
47
- defaultEntryPointNodeId
48
- } from "./packager-tool-dbsdy4xx.js";
49
- import {
50
- EntryPointType,
51
- ProjectType,
52
- generateBindingsJson,
53
- generateEntryPointsJson,
54
- generateOperateJson,
55
- getBindingResources,
56
- getEntryPoints,
57
- isConversationalOrVoiceAgentNodeType,
58
- mergeBindingResources
59
- } from "./packager-tool-s7wb0s9n.js";
60
- import {
61
- UIPATH_HOME_DIR,
62
- logger
63
- } from "./packager-tool-apawc11t.js";
64
- import {
65
- catchError
66
- } from "./packager-tool-t7ahhaer.js";
2
+ catchError2
3
+ } from "./packager-tool-pxq0bwp0.js";
67
4
  import {
68
5
  getFileSystem
69
- } from "./packager-tool-myhbp761.js";
70
-
6
+ } from "./packager-tool-vgrswa8p.js";
7
+ import {
8
+ UIPATH_HOME_DIR2
9
+ } from "./packager-tool-8ed52y5r.js";
71
10
  // ../../node_modules/acorn/dist/acorn.mjs
72
11
  var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 78, 5, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 199, 7, 137, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 55, 9, 266, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 233, 0, 3, 0, 8, 1, 6, 0, 475, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
73
12
  var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 7, 25, 39, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 5, 57, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 24, 43, 261, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 33, 24, 3, 24, 45, 74, 6, 0, 67, 12, 65, 1, 2, 0, 15, 4, 10, 7381, 42, 31, 98, 114, 8702, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 208, 30, 2, 2, 2, 1, 2, 6, 3, 4, 10, 1, 225, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4381, 3, 5773, 3, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 8489];
@@ -151,7 +90,7 @@ function isIdentifierChar(code, astral) {
151
90
  }
152
91
  return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
153
92
  }
154
- var TokenType = function TokenType2(label, conf) {
93
+ var TokenType = function TokenType(label, conf) {
155
94
  if (conf === undefined)
156
95
  conf = {};
157
96
  this.label = label;
@@ -295,25 +234,25 @@ function codePointToString(code) {
295
234
  return String.fromCharCode((code >> 10) + 55296, (code & 1023) + 56320);
296
235
  }
297
236
  var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
298
- var Position = function Position2(line, col) {
237
+ var Position = function Position(line, col) {
299
238
  this.line = line;
300
239
  this.column = col;
301
240
  };
302
241
  Position.prototype.offset = function offset(n) {
303
242
  return new Position(this.line, this.column + n);
304
243
  };
305
- var SourceLocation = function SourceLocation2(p, start, end) {
244
+ var SourceLocation = function SourceLocation(p, start, end) {
306
245
  this.start = start;
307
246
  this.end = end;
308
247
  if (p.sourceFile !== null) {
309
248
  this.source = p.sourceFile;
310
249
  }
311
250
  };
312
- function getLineInfo(input, offset2) {
251
+ function getLineInfo(input, offset) {
313
252
  for (var line = 1, cur = 0;; ) {
314
- var nextBreak = nextLineBreak(input, cur, offset2);
253
+ var nextBreak = nextLineBreak(input, cur, offset);
315
254
  if (nextBreak < 0) {
316
- return new Position(line, offset2 - cur);
255
+ return new Position(line, offset - cur);
317
256
  }
318
257
  ++line;
319
258
  cur = nextBreak;
@@ -417,7 +356,7 @@ var BIND_LEXICAL = 2;
417
356
  var BIND_FUNCTION = 3;
418
357
  var BIND_SIMPLE_CATCH = 4;
419
358
  var BIND_OUTSIDE = 5;
420
- var Parser = function Parser2(options, input, startPos) {
359
+ var Parser = function Parser(options, input, startPos) {
421
360
  this.options = options = getOptions(options);
422
361
  this.sourceFile = options.sourceFile;
423
362
  this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
@@ -486,8 +425,8 @@ prototypeAccessors.inAsync.get = function() {
486
425
  };
487
426
  prototypeAccessors.canAwait.get = function() {
488
427
  for (var i = this.scopeStack.length - 1;i >= 0; i--) {
489
- var ref2 = this.scopeStack[i];
490
- var flags = ref2.flags;
428
+ var ref = this.scopeStack[i];
429
+ var flags = ref.flags;
491
430
  if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT)) {
492
431
  return false;
493
432
  }
@@ -507,8 +446,8 @@ prototypeAccessors.allowReturn.get = function() {
507
446
  return false;
508
447
  };
509
448
  prototypeAccessors.allowSuper.get = function() {
510
- var ref2 = this.currentThisScope();
511
- var flags = ref2.flags;
449
+ var ref = this.currentThisScope();
450
+ var flags = ref.flags;
512
451
  return (flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod;
513
452
  };
514
453
  prototypeAccessors.allowDirectSuper.get = function() {
@@ -519,8 +458,8 @@ prototypeAccessors.treatFunctionsAsVar.get = function() {
519
458
  };
520
459
  prototypeAccessors.allowNewDotTarget.get = function() {
521
460
  for (var i = this.scopeStack.length - 1;i >= 0; i--) {
522
- var ref2 = this.scopeStack[i];
523
- var flags = ref2.flags;
461
+ var ref = this.scopeStack[i];
462
+ var flags = ref.flags;
524
463
  if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) || flags & SCOPE_FUNCTION && !(flags & SCOPE_ARROW)) {
525
464
  return true;
526
465
  }
@@ -528,8 +467,8 @@ prototypeAccessors.allowNewDotTarget.get = function() {
528
467
  return false;
529
468
  };
530
469
  prototypeAccessors.allowUsing.get = function() {
531
- var ref2 = this.currentScope();
532
- var flags = ref2.flags;
470
+ var ref = this.currentScope();
471
+ var flags = ref.flags;
533
472
  if (flags & SCOPE_SWITCH) {
534
473
  return false;
535
474
  }
@@ -551,7 +490,7 @@ Parser.extend = function extend() {
551
490
  }
552
491
  return cls;
553
492
  };
554
- Parser.parse = function parse2(input, options) {
493
+ Parser.parse = function parse(input, options) {
555
494
  return new this(options, input).parse();
556
495
  };
557
496
  Parser.parseExpressionAt = function parseExpressionAt(input, pos, options) {
@@ -657,7 +596,7 @@ pp$9.expect = function(type) {
657
596
  pp$9.unexpected = function(pos) {
658
597
  this.raise(pos != null ? pos : this.start, "Unexpected token");
659
598
  };
660
- var DestructuringErrors = function DestructuringErrors2() {
599
+ var DestructuringErrors = function DestructuringErrors() {
661
600
  this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
662
601
  };
663
602
  pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
@@ -1522,9 +1461,9 @@ pp$8.enterClassBody = function() {
1522
1461
  return element.declared;
1523
1462
  };
1524
1463
  pp$8.exitClassBody = function() {
1525
- var ref2 = this.privateNameStack.pop();
1526
- var declared = ref2.declared;
1527
- var used = ref2.used;
1464
+ var ref = this.privateNameStack.pop();
1465
+ var declared = ref.declared;
1466
+ var used = ref.used;
1528
1467
  if (!this.options.checkPrivateFields) {
1529
1468
  return;
1530
1469
  }
@@ -2092,7 +2031,7 @@ pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {
2092
2031
  this.checkLValPattern(expr, bindingType, checkClashes);
2093
2032
  }
2094
2033
  };
2095
- var TokContext = function TokContext2(token, isExpr, preserveSpace, override, generator) {
2034
+ var TokContext = function TokContext(token, isExpr, preserveSpace, override, generator) {
2096
2035
  this.token = token;
2097
2036
  this.isExpr = !!isExpr;
2098
2037
  this.preserveSpace = !!preserveSpace;
@@ -2882,8 +2821,8 @@ pp$5.parseNew = function() {
2882
2821
  }
2883
2822
  return this.finishNode(node, "NewExpression");
2884
2823
  };
2885
- pp$5.parseTemplateElement = function(ref2) {
2886
- var isTagged = ref2.isTagged;
2824
+ pp$5.parseTemplateElement = function(ref) {
2825
+ var isTagged = ref.isTagged;
2887
2826
  var elem = this.startNode();
2888
2827
  if (this.type === types$1.invalidTemplate) {
2889
2828
  if (!isTagged) {
@@ -2905,10 +2844,10 @@ pp$5.parseTemplateElement = function(ref2) {
2905
2844
  elem.tail = this.type === types$1.backQuote;
2906
2845
  return this.finishNode(elem, "TemplateElement");
2907
2846
  };
2908
- pp$5.parseTemplate = function(ref2) {
2909
- if (ref2 === undefined)
2910
- ref2 = {};
2911
- var isTagged = ref2.isTagged;
2847
+ pp$5.parseTemplate = function(ref) {
2848
+ if (ref === undefined)
2849
+ ref = {};
2850
+ var isTagged = ref.isTagged;
2912
2851
  if (isTagged === undefined)
2913
2852
  isTagged = false;
2914
2853
  var node = this.startNode();
@@ -3187,10 +3126,10 @@ pp$5.parseExprList = function(close, allowTrailingComma, allowEmpty, refDestruct
3187
3126
  }
3188
3127
  return elts;
3189
3128
  };
3190
- pp$5.checkUnreserved = function(ref2) {
3191
- var start = ref2.start;
3192
- var end = ref2.end;
3193
- var name = ref2.name;
3129
+ pp$5.checkUnreserved = function(ref) {
3130
+ var start = ref.start;
3131
+ var end = ref.end;
3132
+ var name = ref.name;
3194
3133
  if (this.inGenerator && name === "yield") {
3195
3134
  this.raiseRecoverable(start, "Cannot use 'yield' as identifier inside a generator");
3196
3135
  }
@@ -3306,7 +3245,7 @@ pp$4.curPosition = function() {
3306
3245
  }
3307
3246
  };
3308
3247
  var pp$3 = Parser.prototype;
3309
- var Scope = function Scope2(flags) {
3248
+ var Scope = function Scope(flags) {
3310
3249
  this.flags = flags;
3311
3250
  this.var = [];
3312
3251
  this.lexical = [];
@@ -3385,7 +3324,7 @@ pp$3.currentThisScope = function() {
3385
3324
  }
3386
3325
  }
3387
3326
  };
3388
- var Node = function Node2(parser, pos, loc) {
3327
+ var Node = function Node(parser, pos, loc) {
3389
3328
  this.type = "";
3390
3329
  this.start = pos;
3391
3330
  this.end = 0;
@@ -3492,7 +3431,7 @@ var ecmaVersion;
3492
3431
  var i;
3493
3432
  var list;
3494
3433
  var pp$1 = Parser.prototype;
3495
- var BranchID = function BranchID2(parent, base) {
3434
+ var BranchID = function BranchID(parent, base) {
3496
3435
  this.parent = parent;
3497
3436
  this.base = base || this;
3498
3437
  };
@@ -3509,7 +3448,7 @@ BranchID.prototype.separatedFrom = function separatedFrom(alt) {
3509
3448
  BranchID.prototype.sibling = function sibling() {
3510
3449
  return new BranchID(this.parent, this.base);
3511
3450
  };
3512
- var RegExpValidationState = function RegExpValidationState2(parser) {
3451
+ var RegExpValidationState = function RegExpValidationState(parser) {
3513
3452
  this.parser = parser;
3514
3453
  this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
3515
3454
  this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
@@ -3548,34 +3487,34 @@ RegExpValidationState.prototype.reset = function reset(start, pattern, flags) {
3548
3487
  RegExpValidationState.prototype.raise = function raise(message) {
3549
3488
  this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
3550
3489
  };
3551
- RegExpValidationState.prototype.at = function at(i2, forceU) {
3490
+ RegExpValidationState.prototype.at = function at(i, forceU) {
3552
3491
  if (forceU === undefined)
3553
3492
  forceU = false;
3554
3493
  var s = this.source;
3555
3494
  var l = s.length;
3556
- if (i2 >= l) {
3495
+ if (i >= l) {
3557
3496
  return -1;
3558
3497
  }
3559
- var c = s.charCodeAt(i2);
3560
- if (!(forceU || this.switchU) || c <= 55295 || c >= 57344 || i2 + 1 >= l) {
3498
+ var c = s.charCodeAt(i);
3499
+ if (!(forceU || this.switchU) || c <= 55295 || c >= 57344 || i + 1 >= l) {
3561
3500
  return c;
3562
3501
  }
3563
- var next = s.charCodeAt(i2 + 1);
3502
+ var next = s.charCodeAt(i + 1);
3564
3503
  return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
3565
3504
  };
3566
- RegExpValidationState.prototype.nextIndex = function nextIndex(i2, forceU) {
3505
+ RegExpValidationState.prototype.nextIndex = function nextIndex(i, forceU) {
3567
3506
  if (forceU === undefined)
3568
3507
  forceU = false;
3569
3508
  var s = this.source;
3570
3509
  var l = s.length;
3571
- if (i2 >= l) {
3510
+ if (i >= l) {
3572
3511
  return l;
3573
3512
  }
3574
- var c = s.charCodeAt(i2), next;
3575
- if (!(forceU || this.switchU) || c <= 55295 || c >= 57344 || i2 + 1 >= l || (next = s.charCodeAt(i2 + 1)) < 56320 || next > 57343) {
3576
- return i2 + 1;
3513
+ var c = s.charCodeAt(i), next;
3514
+ if (!(forceU || this.switchU) || c <= 55295 || c >= 57344 || i + 1 >= l || (next = s.charCodeAt(i + 1)) < 56320 || next > 57343) {
3515
+ return i + 1;
3577
3516
  }
3578
- return i2 + 2;
3517
+ return i + 2;
3579
3518
  };
3580
3519
  RegExpValidationState.prototype.current = function current(forceU) {
3581
3520
  if (forceU === undefined)
@@ -3605,10 +3544,10 @@ RegExpValidationState.prototype.eatChars = function eatChars(chs, forceU) {
3605
3544
  if (forceU === undefined)
3606
3545
  forceU = false;
3607
3546
  var pos = this.pos;
3608
- for (var i2 = 0, list2 = chs;i2 < list2.length; i2 += 1) {
3609
- var ch = list2[i2];
3610
- var current2 = this.at(pos, forceU);
3611
- if (current2 === -1 || current2 !== ch) {
3547
+ for (var i = 0, list = chs;i < list.length; i += 1) {
3548
+ var ch = list[i];
3549
+ var current = this.at(pos, forceU);
3550
+ if (current === -1 || current !== ch) {
3612
3551
  return false;
3613
3552
  }
3614
3553
  pos = this.nextIndex(pos, forceU);
@@ -3621,12 +3560,12 @@ pp$1.validateRegExpFlags = function(state) {
3621
3560
  var flags = state.flags;
3622
3561
  var u = false;
3623
3562
  var v = false;
3624
- for (var i2 = 0;i2 < flags.length; i2++) {
3625
- var flag = flags.charAt(i2);
3563
+ for (var i = 0;i < flags.length; i++) {
3564
+ var flag = flags.charAt(i);
3626
3565
  if (validFlags.indexOf(flag) === -1) {
3627
3566
  this.raise(state.start, "Invalid regular expression flag");
3628
3567
  }
3629
- if (flags.indexOf(flag, i2 + 1) > -1) {
3568
+ if (flags.indexOf(flag, i + 1) > -1) {
3630
3569
  this.raise(state.start, "Duplicate regular expression flag");
3631
3570
  }
3632
3571
  if (flag === "u") {
@@ -3675,8 +3614,8 @@ pp$1.regexp_pattern = function(state) {
3675
3614
  if (state.maxBackReference > state.numCapturingParens) {
3676
3615
  state.raise("Invalid escape");
3677
3616
  }
3678
- for (var i2 = 0, list2 = state.backReferenceNames;i2 < list2.length; i2 += 1) {
3679
- var name = list2[i2];
3617
+ for (var i = 0, list = state.backReferenceNames;i < list.length; i += 1) {
3618
+ var name = list[i];
3680
3619
  if (!state.groupNames[name]) {
3681
3620
  state.raise("Invalid named capture referenced");
3682
3621
  }
@@ -3807,9 +3746,9 @@ pp$1.regexp_eatUncapturingGroup = function(state) {
3807
3746
  var addModifiers = this.regexp_eatModifiers(state);
3808
3747
  var hasHyphen = state.eat(45);
3809
3748
  if (addModifiers || hasHyphen) {
3810
- for (var i2 = 0;i2 < addModifiers.length; i2++) {
3811
- var modifier = addModifiers.charAt(i2);
3812
- if (addModifiers.indexOf(modifier, i2 + 1) > -1) {
3749
+ for (var i = 0;i < addModifiers.length; i++) {
3750
+ var modifier = addModifiers.charAt(i);
3751
+ if (addModifiers.indexOf(modifier, i + 1) > -1) {
3813
3752
  state.raise("Duplicate regular expression modifiers");
3814
3753
  }
3815
3754
  }
@@ -3913,8 +3852,8 @@ pp$1.regexp_groupSpecifier = function(state) {
3913
3852
  var known = state.groupNames[state.lastStringValue];
3914
3853
  if (known) {
3915
3854
  if (trackDisjunction) {
3916
- for (var i2 = 0, list2 = known;i2 < list2.length; i2 += 1) {
3917
- var altID = list2[i2];
3855
+ for (var i = 0, list = known;i < list.length; i += 1) {
3856
+ var altID = list[i];
3918
3857
  if (!altID.separatedFrom(state.branchID)) {
3919
3858
  state.raise("Duplicate capture group name");
3920
3859
  }
@@ -4574,7 +4513,7 @@ function isOctalDigit(ch) {
4574
4513
  pp$1.regexp_eatFixedHexDigits = function(state, length) {
4575
4514
  var start = state.pos;
4576
4515
  state.lastIntValue = 0;
4577
- for (var i2 = 0;i2 < length; ++i2) {
4516
+ for (var i = 0;i < length; ++i) {
4578
4517
  var ch = state.current();
4579
4518
  if (!isHexDigit(ch)) {
4580
4519
  state.pos = start;
@@ -4585,7 +4524,7 @@ pp$1.regexp_eatFixedHexDigits = function(state, length) {
4585
4524
  }
4586
4525
  return true;
4587
4526
  };
4588
- var Token = function Token2(p) {
4527
+ var Token = function Token(p) {
4589
4528
  this.type = p.type;
4590
4529
  this.value = p.value;
4591
4530
  this.start = p.start;
@@ -4854,8 +4793,8 @@ pp.readToken_eq_excl = function(code) {
4854
4793
  return this.finishOp(code === 61 ? types$1.eq : types$1.prefix, 1);
4855
4794
  };
4856
4795
  pp.readToken_question = function() {
4857
- var ecmaVersion2 = this.options.ecmaVersion;
4858
- if (ecmaVersion2 >= 11) {
4796
+ var ecmaVersion = this.options.ecmaVersion;
4797
+ if (ecmaVersion >= 11) {
4859
4798
  var next = this.input.charCodeAt(this.pos + 1);
4860
4799
  if (next === 46) {
4861
4800
  var next2 = this.input.charCodeAt(this.pos + 2);
@@ -4864,7 +4803,7 @@ pp.readToken_question = function() {
4864
4803
  }
4865
4804
  }
4866
4805
  if (next === 63) {
4867
- if (ecmaVersion2 >= 12) {
4806
+ if (ecmaVersion >= 12) {
4868
4807
  var next2$1 = this.input.charCodeAt(this.pos + 2);
4869
4808
  if (next2$1 === 61) {
4870
4809
  return this.finishOp(types$1.assign, 3);
@@ -4876,9 +4815,9 @@ pp.readToken_question = function() {
4876
4815
  return this.finishOp(types$1.question, 1);
4877
4816
  };
4878
4817
  pp.readToken_numberSign = function() {
4879
- var ecmaVersion2 = this.options.ecmaVersion;
4818
+ var ecmaVersion = this.options.ecmaVersion;
4880
4819
  var code = 35;
4881
- if (ecmaVersion2 >= 13) {
4820
+ if (ecmaVersion >= 13) {
4882
4821
  ++this.pos;
4883
4822
  code = this.fullCharCodeAtPos();
4884
4823
  if (isIdentifierStart(code, true) || code === 92) {
@@ -5028,7 +4967,7 @@ pp.readInt = function(radix, len, maybeLegacyOctalNumericLiteral) {
5028
4967
  var allowSeparators = this.options.ecmaVersion >= 12 && len === undefined;
5029
4968
  var isLegacyOctalNumericLiteral = maybeLegacyOctalNumericLiteral && this.input.charCodeAt(this.pos) === 48;
5030
4969
  var start = this.pos, total = 0, lastCode = 0;
5031
- for (var i2 = 0, e = len == null ? Infinity : len;i2 < e; ++i2, ++this.pos) {
4970
+ for (var i = 0, e = len == null ? Infinity : len;i < e; ++i, ++this.pos) {
5032
4971
  var code = this.input.charCodeAt(this.pos), val = undefined;
5033
4972
  if (allowSeparators && code === 95) {
5034
4973
  if (isLegacyOctalNumericLiteral) {
@@ -5037,7 +4976,7 @@ pp.readInt = function(radix, len, maybeLegacyOctalNumericLiteral) {
5037
4976
  if (lastCode === 95) {
5038
4977
  this.raiseRecoverable(this.pos, "Numeric separator must be exactly one underscore");
5039
4978
  }
5040
- if (i2 === 0) {
4979
+ if (i === 0) {
5041
4980
  this.raiseRecoverable(this.pos, "Numeric separator is not allowed at the first of digits");
5042
4981
  }
5043
4982
  lastCode = code;
@@ -5415,7 +5354,7 @@ Parser.acorn = {
5415
5354
  lineBreakG,
5416
5355
  nonASCIIwhitespace
5417
5356
  };
5418
- function parse3(input, options) {
5357
+ function parse(input, options) {
5419
5358
  return Parser.parse(input, options);
5420
5359
  }
5421
5360
 
@@ -5907,9 +5846,10 @@ var bpmn_spec_default = {
5907
5846
  binding: false,
5908
5847
  defaultValue: "v1",
5909
5848
  enum: [
5910
- "v1"
5849
+ "v1",
5850
+ "v2"
5911
5851
  ],
5912
- description: "Marks the Integration Service activity format used by this template"
5852
+ description: "Marks the Integration Service activity format: v1 for this template, v2 for an element from registry get --input-details"
5913
5853
  },
5914
5854
  {
5915
5855
  name: "connectorKey",
@@ -6156,96 +6096,138 @@ var bpmn_spec_default = {
6156
6096
  extensionTag: "uipath:activity",
6157
6097
  contextFields: [
6158
6098
  {
6159
- name: "mode",
6160
- displayName: "Mode",
6099
+ name: "connectorKey",
6100
+ displayName: "Connector key",
6161
6101
  type: "string",
6162
6102
  required: true,
6163
6103
  hidden: true,
6164
6104
  isPrimaryKey: false,
6165
6105
  binding: false,
6166
- defaultValue: "manual"
6106
+ defaultValue: "uipath-uipath-http"
6167
6107
  },
6168
6108
  {
6169
- name: "method",
6170
- displayName: "HTTP Method",
6109
+ name: "connection",
6110
+ displayName: "Connection",
6171
6111
  type: "string",
6172
- required: true,
6173
- hidden: false,
6112
+ required: false,
6113
+ hidden: true,
6114
+ isPrimaryKey: false,
6115
+ binding: true,
6116
+ description: "=bindings.<id> of the uipath-uipath-http connection binding: ImplicitConnection for a manual request, the target connection for a connector one"
6117
+ },
6118
+ {
6119
+ name: "resourceKey",
6120
+ displayName: "Connection resource key",
6121
+ type: "string",
6122
+ required: false,
6123
+ hidden: true,
6174
6124
  isPrimaryKey: false,
6175
6125
  binding: false,
6176
- defaultValue: "GET"
6126
+ description: "The target connection id for a connector request; empty for a manual one"
6177
6127
  },
6178
6128
  {
6179
- name: "url",
6180
- displayName: "URL",
6129
+ name: "folderKey",
6130
+ displayName: "Folder key",
6181
6131
  type: "string",
6182
- required: true,
6183
- hidden: false,
6132
+ required: false,
6133
+ hidden: true,
6184
6134
  isPrimaryKey: false,
6185
6135
  binding: true,
6186
- defaultValue: ""
6136
+ description: "=bindings.<id> of the target connection's folder binding, connector requests only"
6187
6137
  },
6188
6138
  {
6189
- name: "headers",
6190
- displayName: "Headers",
6191
- type: "json",
6139
+ name: "method",
6140
+ displayName: "Method",
6141
+ type: "string",
6192
6142
  required: false,
6193
- hidden: false,
6143
+ hidden: true,
6194
6144
  isPrimaryKey: false,
6195
- binding: true,
6196
- defaultValue: "{}"
6145
+ binding: false,
6146
+ defaultValue: "POST",
6147
+ description: "The node's own call to the HTTP connector, always POST; the request's method is in the body"
6197
6148
  },
6198
6149
  {
6199
- name: "parameters",
6200
- displayName: "Query Parameters",
6150
+ name: "path",
6151
+ displayName: "Path",
6152
+ type: "string",
6153
+ required: false,
6154
+ hidden: true,
6155
+ isPrimaryKey: false,
6156
+ binding: false,
6157
+ defaultValue: "/http-request"
6158
+ },
6159
+ {
6160
+ name: "objectName",
6161
+ displayName: "Object",
6162
+ type: "string",
6163
+ required: false,
6164
+ hidden: true,
6165
+ isPrimaryKey: false,
6166
+ binding: false,
6167
+ defaultValue: "http-request"
6168
+ },
6169
+ {
6170
+ name: "metadata",
6171
+ displayName: "Metadata",
6201
6172
  type: "json",
6202
6173
  required: false,
6203
- hidden: false,
6174
+ hidden: true,
6204
6175
  isPrimaryKey: false,
6205
- binding: true,
6176
+ binding: false,
6206
6177
  defaultValue: "{}"
6207
6178
  },
6208
6179
  {
6209
- name: "body",
6210
- displayName: "Request Body",
6211
- type: "json",
6180
+ name: "activityConfigurationVersion",
6181
+ displayName: "Activity configuration version",
6182
+ type: "string",
6212
6183
  required: false,
6213
- hidden: false,
6184
+ hidden: true,
6214
6185
  isPrimaryKey: false,
6215
- binding: true,
6216
- defaultValue: "null"
6186
+ binding: false,
6187
+ defaultValue: "v2",
6188
+ enum: [
6189
+ "v2"
6190
+ ]
6217
6191
  }
6218
6192
  ],
6219
6193
  inputPattern: "separateInputs",
6220
- outputSource: "=response",
6221
- outputType: "jsonSchema",
6222
- outputName: "response",
6194
+ outputSource: "=response.body",
6195
+ outputType: "object",
6196
+ outputName: "body",
6223
6197
  useRelativeSource: false,
6224
- bindingPattern: "none",
6198
+ bindingPattern: "connection",
6225
6199
  requiresDiscovery: false,
6226
- isDynamic: false,
6227
- designSchemaSharedWith: "Intsvc.HttpExecution",
6228
- xmlTemplate: `<bpmn:SendTask id="{id}" name="{name}">
6200
+ isDynamic: true,
6201
+ xmlTemplate: `<bpmn:sendTask id="{id}" name="{name}">
6229
6202
  <bpmn:extensionElements>
6230
6203
  <uipath:activity version="v1">
6231
6204
  <uipath:type value="Intsvc.UnifiedHttpRequest" version="v1" />
6232
6205
  <uipath:context>
6233
- <uipath:input name="mode" type="string" value="manual" />
6234
- <uipath:input name="method" type="string" value="GET" />
6235
- <uipath:input name="url" type="string" value="=bindings.{bindingId}" />
6236
- <uipath:input name="headers" type="json" value="=bindings.{bindingId}" />
6237
- <uipath:input name="parameters" type="json" value="=bindings.{bindingId}" />
6238
- <uipath:input name="body" type="json" value="=bindings.{bindingId}" />
6206
+ <uipath:input name="connectorKey" type="string" value="uipath-uipath-http" />
6207
+ <uipath:input name="connection" type="string" value="=bindings.{connectionBindingId}" />
6208
+ <uipath:input name="resourceKey" type="string" />
6209
+ <uipath:input name="method" type="string" value="POST" />
6210
+ <uipath:input name="path" type="string" value="/http-request" />
6211
+ <uipath:input name="objectName" type="string" value="http-request" />
6212
+ <uipath:input name="metadata" type="json"><![CDATA[{}]]></uipath:input>
6213
+ <uipath:input name="activityConfigurationVersion" type="string" value="v2" />
6239
6214
  </uipath:context>
6240
- <uipath:output name="response" type="jsonSchema" source="=response" var="{varId}" />
6215
+ <uipath:input name="pathParameters" type="json" target="pathParameters"><![CDATA[{}]]></uipath:input>
6216
+ <uipath:input name="queryParameters" type="json" target="queryParameters"><![CDATA[{}]]></uipath:input>
6217
+ <uipath:input name="body" type="json" target="body"><![CDATA[{"authentication":"manual","method":"GET","url":"https://example.com","headers":{},"query":{}}]]></uipath:input>
6218
+ <uipath:output name="body" type="object" source="=response.body" var="{varId}" />
6219
+ <uipath:output name="Error" type="jsonSchema" source="=Error" var="{errorVarId}" />
6241
6220
  </uipath:activity>
6242
6221
  </bpmn:extensionElements>
6243
6222
  <bpmn:incoming>{incomingEdge}</bpmn:incoming>
6244
6223
  <bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
6245
- </bpmn:SendTask>`,
6246
- inputNotes: "In the isExecution array. Despite the design schema having no jsonBody, inputs are managed by the IS connector framework and serialized as separate <uipath:input> elements. The design schema context fields (mode, method, url, headers, parameters, body) are used for the HttpRequestV2Properties panel.",
6247
- contextFieldNotes: "Context fields above come from the legacy design schema (shared with Intsvc.HttpExecution). In the FPS ImplementationSection, this type is routed through IntsvcActivityProperties (IS connector framework), NOT HttpRequestProperties. The IS connector auto-initializes with HTTP_ACTIVITY_CONFIG and manages context dynamically. When used via the uipath.http-request shortcut node, it uses HttpRequestV2Properties which manages these context fields directly.",
6248
- extensionTagNotes: "In isExecution array, uses uipath:activity. Shares design schema with Intsvc.HttpExecution but uses IS connector framework at runtime."
6224
+ </bpmn:sendTask>`,
6225
+ inputNotes: `The request lives in the one target="body" input: {authentication: "manual", method, url, headers, query, body} for a request that authenticates itself, or {authentication: "connector", targetConnector, connection, method, path, url, headers, query, body} for one that goes through a connector's connection. Build the whole node with \`uip maestro bpmn registry get Intsvc.UnifiedHttpRequest --input-details '<request>'\` (add --connection-id for connector mode): the template's metadata is empty, and Studio Web's designer needs the design-time configuration the V2 element carries.`,
6226
+ contextFieldNotes: "Studio Web always edits this node with its V2 (Unified Build) component, in V1 and V2 workflows alike. The connection binding is Studio Web's ImplicitConnection (resourceKey ImplicitConnection) for a manual request, or the target connection plus its folder binding for a connector one. Use this node for every new HTTP request; Intsvc.HttpExecution is the legacy node.",
6227
+ extensionTagNotes: "In the isExecution array, so it uses uipath:activity.",
6228
+ inputFields: [],
6229
+ inputName: "body",
6230
+ inputTarget: "body"
6249
6231
  },
6250
6232
  "Intsvc.WaitForEvent": {
6251
6233
  extensionType: "Intsvc.WaitForEvent",
@@ -10255,6 +10237,12 @@ var SCRIPT_RUNTIME_GLOBALS = new Set([
10255
10237
  var KNOWN_UIPATH_TAGS = new Set(SUPPORTED_UIPATH_EXTENSION_TAGS);
10256
10238
  var CALL_ACTIVITY_TYPES = Object.entries(BPMN_SPEC.extensionTypes).filter(([, contract]) => contract.bpmnElement === "bpmn:CallActivity").map(([type]) => type).sort((a, b) => a.localeCompare(b));
10257
10239
  var CALL_ACTIVITY_PAYLOAD_TAGS = new Set(Object.values(BPMN_SPEC.extensionTypes).filter((contract) => contract.bpmnElement === "bpmn:CallActivity").map((contract) => contract.extensionTag).filter((tag) => typeof tag === "string"));
10240
+ var VERSIONED_CONNECTOR_TYPES = new Set([
10241
+ "Intsvc.ActivityExecution",
10242
+ "Intsvc.EventTrigger",
10243
+ "Intsvc.WaitForEvent",
10244
+ "Intsvc.HttpExecution"
10245
+ ]);
10258
10246
  var FREE_TEXT_ELEMENTS = new Set(["documentation", "text"]);
10259
10247
  var VARIABLE_DECLARATION_NAMES = new Set(["input", "inputoutput", "output"]);
10260
10248
  var COLLAPSED_MULTI_INSTANCE_OUTPUT_CONTRACTS = new Set([
@@ -10269,1071 +10257,26 @@ var REGISTRY_FILE = "registry.json";
10269
10257
  var CACHE_EXPIRATION_MS = 30 * 60 * 1000;
10270
10258
  async function resolveStorageDir() {
10271
10259
  const fs = getFileSystem();
10272
- return fs.path.join(fs.env.homedir(), UIPATH_HOME_DIR, MAESTRO_REGISTRY_DIR);
10260
+ return fs.path.join(fs.env.homedir(), UIPATH_HOME_DIR2, MAESTRO_REGISTRY_DIR);
10273
10261
  }
10274
10262
  var RENAME_RETRYABLE_CODES = new Set(["EPERM", "EBUSY", "EACCES"]);
10275
- async function loadRegistry() {
10263
+ async function loadRegistry2() {
10276
10264
  const fs = getFileSystem();
10277
10265
  const dir = await resolveStorageDir();
10278
10266
  const registryPath = fs.path.join(dir, REGISTRY_FILE);
10279
10267
  if (!await fs.exists(registryPath)) {
10280
10268
  return null;
10281
10269
  }
10282
- const [readErr, content] = await catchError(fs.readFile(registryPath, "utf-8"));
10270
+ const [readErr, content] = await catchError2(fs.readFile(registryPath, "utf-8"));
10283
10271
  if (readErr || content === null) {
10284
10272
  return null;
10285
10273
  }
10286
- const [parseErr, parsed] = catchError(() => JSON.parse(content));
10274
+ const [parseErr, parsed] = catchError2(() => JSON.parse(content));
10287
10275
  if (parseErr) {
10288
10276
  return null;
10289
10277
  }
10290
10278
  return parsed;
10291
10279
  }
10292
- // src/services/connector-request-buckets.ts
10293
- var REQUEST_BUCKETS = [
10294
- "bodyParameters",
10295
- "queryParameters",
10296
- "pathParameters",
10297
- "eventParameters"
10298
- ];
10299
-
10300
- // src/services/inline-activity-service.ts
10301
- import { randomUUID } from "node:crypto";
10302
- var INLINE_ACTIVITY_TYPE_PREFIX = "uipath.connector.custom.";
10303
- var INLINE_ACTIVITY_SOURCE = "inline";
10304
- var INLINE_ACTIVITY_VERSION = "4.0.0";
10305
-
10306
- class InlineActivityError extends Error {
10307
- code = "InlineActivityInvalid";
10308
- instructions;
10309
- constructor(message, instructions) {
10310
- super(message);
10311
- this.name = "InlineActivityError";
10312
- this.instructions = instructions;
10313
- }
10314
- }
10315
- var asBag = (v) => v && typeof v === "object" && !Array.isArray(v) ? v : {};
10316
- var text = (v) => typeof v === "string" ? v : "";
10317
- function parseInlineActivityNodeType(nodeType) {
10318
- if (!nodeType.startsWith(INLINE_ACTIVITY_TYPE_PREFIX)) {
10319
- throw new InlineActivityError(`Node type "${nodeType}" is not a non-catalog activity type.`, `A non-catalog activity node type is "${INLINE_ACTIVITY_TYPE_PREFIX}<connector-key>.<activity-slug>", e.g. "${INLINE_ACTIVITY_TYPE_PREFIX}uipath-salesforce-slack.add-users-to-user-group".`);
10320
- }
10321
- const rest = nodeType.slice(INLINE_ACTIVITY_TYPE_PREFIX.length);
10322
- const dot = rest.indexOf(".");
10323
- const connectorKey = dot === -1 ? rest : rest.slice(0, dot);
10324
- const slug = dot === -1 ? "" : rest.slice(dot + 1);
10325
- if (!connectorKey || !slug) {
10326
- throw new InlineActivityError(`Node type "${nodeType}" is missing the connector key or the activity slug.`, `Use "${INLINE_ACTIVITY_TYPE_PREFIX}<connector-key>.<activity-slug>" — both parts are required.`);
10327
- }
10328
- return { connectorKey, slug };
10329
- }
10330
- async function readInlineActivityMetadata(metadataFile) {
10331
- const fs = getFileSystem();
10332
- const raw = await fs.readFile(metadataFile, "utf-8");
10333
- if (raw === null || raw === undefined) {
10334
- throw new InlineActivityError(`Activity metadata file not found: ${metadataFile}`, "Pass the <Name>.json that `uip is activities metadata generate` wrote.");
10335
- }
10336
- let parsed;
10337
- try {
10338
- parsed = JSON.parse(String(raw));
10339
- } catch (err) {
10340
- throw new InlineActivityError(`Activity metadata is not valid JSON (${metadataFile}): ${err instanceof Error ? err.message : String(err)}`, "Regenerate it with `uip is activities metadata generate <min-file>` — never hand-edit generated metadata.");
10341
- }
10342
- return assertInlineActivityMetadata(parsed, metadataFile);
10343
- }
10344
- function assertInlineActivityMetadata(value, where) {
10345
- const m = asBag(value);
10346
- const problems = [];
10347
- for (const key of ["name", "elementKey", "path"]) {
10348
- if (!text(m[key])) {
10349
- problems.push(`missing top-level "${key}"`);
10350
- }
10351
- }
10352
- const slots = asBag(asBag(m.metadata).method);
10353
- const verbs = Object.keys(slots);
10354
- if (verbs.length !== 1) {
10355
- problems.push(`metadata.method must have exactly one verb slot (got ${verbs.length})`);
10356
- } else {
10357
- const slot = asBag(slots[verbs[0]]);
10358
- for (const key of ["operation", "method", "path", "scriptRef"]) {
10359
- if (!text(slot[key])) {
10360
- problems.push(`method ${verbs[0]}: missing "${key}"`);
10361
- }
10362
- }
10363
- }
10364
- if (problems.length > 0) {
10365
- throw new InlineActivityError(`Activity metadata is not a v4 activity (${where}):
10366
- - ${problems.join(`
10367
- - `)}`, "Regenerate it with `uip is activities metadata generate <min-file>`; this command reads the file that writes.");
10368
- }
10369
- return m;
10370
- }
10371
- function verbSlotOf(metadata) {
10372
- const verb = Object.keys(metadata.metadata.method)[0];
10373
- return { verb, slot: metadata.metadata.method[verb] };
10374
- }
10375
- function collectScriptRefs(metadata) {
10376
- const { slot } = verbSlotOf(metadata);
10377
- const lookups = [];
10378
- const add = (ref2) => {
10379
- const r = text(ref2);
10380
- if (r && r !== slot.scriptRef && !lookups.includes(r)) {
10381
- lookups.push(r);
10382
- }
10383
- };
10384
- for (const p of slot.parameters ?? []) {
10385
- add(asBag(p.reference).scriptRef);
10386
- }
10387
- for (const f of Object.values(metadata.fields ?? {})) {
10388
- add(asBag(asBag(f).reference).scriptRef);
10389
- }
10390
- return { main: slot.scriptRef, lookups };
10391
- }
10392
- async function readInlineScripts(scriptsDir, refs) {
10393
- const fs = getFileSystem();
10394
- const scripts = {};
10395
- const missing = [];
10396
- for (const ref2 of refs) {
10397
- const file = fs.path.join(scriptsDir, `${ref2}.js`);
10398
- const source = await fs.readFile(file, "utf-8");
10399
- if (source === null || source === undefined) {
10400
- missing.push(file);
10401
- continue;
10402
- }
10403
- scripts[ref2] = String(source);
10404
- }
10405
- if (missing.length > 0) {
10406
- throw new InlineActivityError(`Action script(s) not found:
10407
- - ${missing.join(`
10408
- - `)}`, "Every scriptRef in the metadata — the main action and each lookup reference — needs a <scriptRef>.js in --scripts. Generate the missing script, or fix the scriptRef in the min-file and regenerate.");
10409
- }
10410
- return scripts;
10411
- }
10412
- function buildInlineActivityDefinition(args) {
10413
- const { nodeType, connectorKey, metadata, activityTypeId } = args;
10414
- const { slot } = verbSlotOf(metadata);
10415
- const label = metadata.displayName ?? metadata.name;
10416
- const description = metadata.description ?? "";
10417
- const configuration = {
10418
- connectorKey,
10419
- objectName: metadata.name,
10420
- httpMethod: slot.method,
10421
- activityType: "Curated",
10422
- activitySource: INLINE_ACTIVITY_SOURCE,
10423
- version: INLINE_ACTIVITY_VERSION,
10424
- operation: slot.operation,
10425
- supportsStreaming: false,
10426
- subType: "standard"
10427
- };
10428
- const manifest = {
10429
- nodeType,
10430
- version: INLINE_ACTIVITY_VERSION,
10431
- category: `connector.${connectorKey}`,
10432
- tags: ["connector", "activity", INLINE_ACTIVITY_SOURCE],
10433
- sortOrder: 1,
10434
- supportsErrorHandling: true,
10435
- description,
10436
- display: {
10437
- label,
10438
- description,
10439
- sourceDisplayName: connectorKey
10440
- },
10441
- handleConfiguration: [
10442
- {
10443
- position: "left",
10444
- handles: [
10445
- {
10446
- id: "input",
10447
- type: "target",
10448
- handleType: "input",
10449
- label: ""
10450
- }
10451
- ]
10452
- },
10453
- {
10454
- position: "right",
10455
- handles: [
10456
- {
10457
- id: "output",
10458
- type: "source",
10459
- handleType: "output",
10460
- label: ""
10461
- }
10462
- ]
10463
- }
10464
- ],
10465
- model: {
10466
- type: "bpmn:SendTask",
10467
- serviceType: "Intsvc.ActivityExecution",
10468
- bindings: {
10469
- resource: "Connection",
10470
- resourceKey: "",
10471
- values: [
10472
- {
10473
- name: `${connectorKey} connection`,
10474
- propertyAttribute: "ConnectionId"
10475
- },
10476
- { name: "FolderKey", propertyAttribute: "FolderKey" }
10477
- ]
10478
- },
10479
- context: [
10480
- { name: "connectorKey", type: "string", value: connectorKey },
10481
- { name: "operation", type: "string", value: slot.operation },
10482
- { name: "objectName", type: "string", value: metadata.name },
10483
- { name: "method", type: "string", value: slot.method },
10484
- {
10485
- name: "connection",
10486
- type: "string",
10487
- value: `<bindings.${connectorKey} connection>`
10488
- },
10489
- {
10490
- name: "folderKey",
10491
- type: "string",
10492
- value: "<bindings.FolderKey>"
10493
- },
10494
- {
10495
- name: "activityConfigurationVersion",
10496
- type: "string",
10497
- value: "v1"
10498
- },
10499
- {
10500
- name: "metadata",
10501
- type: "json",
10502
- body: {
10503
- telemetryData: {
10504
- connectorKey,
10505
- connectorName: label
10506
- },
10507
- inputMetadata: {},
10508
- errorState: { hasError: true }
10509
- }
10510
- }
10511
- ]
10512
- },
10513
- form: {
10514
- id: "connector-properties",
10515
- title: "Connector configuration",
10516
- sections: [
10517
- {
10518
- id: "connector",
10519
- title: "Connector",
10520
- collapsible: true,
10521
- defaultExpanded: true,
10522
- fields: [
10523
- {
10524
- label: "",
10525
- name: "inputs.detail",
10526
- type: "custom",
10527
- component: "dap-config",
10528
- componentProps: {
10529
- connectorDetail: {
10530
- uiPathActivityTypeId: activityTypeId,
10531
- displayName: label,
10532
- description,
10533
- configuration: JSON.stringify(configuration)
10534
- }
10535
- }
10536
- }
10537
- ]
10538
- }
10539
- ]
10540
- },
10541
- inputDefinition: {},
10542
- inputDefaults: {},
10543
- outputDefinition: {
10544
- output: {
10545
- type: "object",
10546
- description: "The return value of the connector.",
10547
- source: "=result.response",
10548
- var: "output"
10549
- }
10550
- },
10551
- debug: { runtime: "bpmnEngine" }
10552
- };
10553
- return manifest;
10554
- }
10555
- async function prepareInlineActivity(nodeType, input) {
10556
- const { connectorKey } = parseInlineActivityNodeType(nodeType);
10557
- const metadata = await readInlineActivityMetadata(input.metadataFile);
10558
- if (metadata.elementKey !== connectorKey) {
10559
- throw new InlineActivityError(`Node type names connector "${connectorKey}" but the metadata was generated for "${metadata.elementKey}".`, `Use "${INLINE_ACTIVITY_TYPE_PREFIX}${metadata.elementKey}.<activity-slug>", or regenerate the metadata for "${connectorKey}".`);
10560
- }
10561
- const { main, lookups } = collectScriptRefs(metadata);
10562
- const scripts = await readInlineScripts(input.scriptsDir, [
10563
- main,
10564
- ...lookups
10565
- ]);
10566
- const manifest = buildInlineActivityDefinition({
10567
- nodeType,
10568
- connectorKey,
10569
- metadata,
10570
- activityTypeId: randomUUID()
10571
- });
10572
- return {
10573
- manifest,
10574
- connectorKey,
10575
- configuration: { metadata, scriptRef: main, scripts }
10576
- };
10577
- }
10578
- function getInlineActivityConfiguration(node) {
10579
- const raw = node.inputs?.inlineActivityConfiguration;
10580
- if (!raw || typeof raw !== "object" || Array.isArray(raw)) {
10581
- return;
10582
- }
10583
- return raw;
10584
- }
10585
- function definitionConfigurationOf(definition) {
10586
- const form = asBag(definition.form);
10587
- for (const section of form.sections ?? []) {
10588
- for (const field of asBag(section).fields ?? []) {
10589
- const detail = asBag(asBag(asBag(field).componentProps).connectorDetail);
10590
- if (typeof detail.configuration === "string") {
10591
- return detail.configuration;
10592
- }
10593
- }
10594
- }
10595
- return;
10596
- }
10597
-
10598
- // src/services/packaging-utils.ts
10599
- function fileNodesToPackagingNodes(nodes) {
10600
- return nodes.map((node) => ({
10601
- id: node.id,
10602
- type: node.type,
10603
- typeVersion: node.typeVersion ?? "1.0",
10604
- display: node.display,
10605
- inputs: node.inputs,
10606
- outputs: node.outputs,
10607
- ...node.model ? { model: node.model } : {}
10608
- }));
10609
- }
10610
- function flowToPackagingNodes(workflow) {
10611
- return fileNodesToPackagingNodes(bindingNodesOf(workflow));
10612
- }
10613
- function isRecord(value) {
10614
- return typeof value === "object" && value !== null && !Array.isArray(value);
10615
- }
10616
- function toResourceList(value) {
10617
- if (!Array.isArray(value))
10618
- return;
10619
- const resources = value.filter(isRecord);
10620
- return resources.length === value.length ? resources : undefined;
10621
- }
10622
- function normalizePackagingBindingsJson(value) {
10623
- if (!isRecord(value))
10624
- return;
10625
- const resources = toResourceList(value.resources);
10626
- if (!resources)
10627
- return;
10628
- return {
10629
- ...value,
10630
- version: typeof value.version === "string" ? value.version : "2.0",
10631
- resources
10632
- };
10633
- }
10634
- function emptyPackagingBindingsJson() {
10635
- return { version: "2.0", resources: [] };
10636
- }
10637
- function mergePackagingBindingsJson(bindingsJsons) {
10638
- const first = bindingsJsons.find((bindingsJson) => bindingsJson !== undefined);
10639
- return {
10640
- ...first ?? emptyPackagingBindingsJson(),
10641
- resources: mergeBindingResources(bindingsJsons.flatMap((bindingsJson) => bindingsJson?.resources ?? []))
10642
- };
10643
- }
10644
- var inlineAgentPackagerLogger = {
10645
- debug: (message) => logger.debug(message),
10646
- info: (message) => logger.info(message),
10647
- warn: (message) => logger.warn(message),
10648
- error: (message) => logger.error(message),
10649
- progress: (message) => logger.info(message),
10650
- log: (message, level) => {
10651
- if (level === "Error" /* Error */)
10652
- logger.error(message);
10653
- else if (level === "Warning" /* Warn */)
10654
- logger.warn(message);
10655
- else if (level === "Debug" /* Debug */)
10656
- logger.debug(message);
10657
- else
10658
- logger.info(message);
10659
- },
10660
- logMessage: (message) => inlineAgentPackagerLogger.log(message.message, message.logLevel)
10661
- };
10662
- async function createInlineAgentContract(fs, agentDir) {
10663
- const outputPath = fs.path.join(fs.env.tmpdir(), `.inline-agent-contract-${crypto.randomUUID()}`);
10664
- await fs.mkdir(outputPath);
10665
- try {
10666
- const built = await buildInlineAgentContract({
10667
- fileSystem: fs,
10668
- logger: inlineAgentPackagerLogger,
10669
- projectPath: agentDir,
10670
- outputPath
10671
- });
10672
- const bindingsJson = normalizePackagingBindingsJson(built.bindingsJson);
10673
- if (!bindingsJson) {
10674
- throw new Error("Agent packager returned an invalid binding contract");
10675
- }
10676
- return { agentJson: built.agentJson, bindingsJson };
10677
- } finally {
10678
- const [cleanupError] = await catchError(fs.rm(outputPath, { recursive: true }));
10679
- if (cleanupError) {
10680
- logger.debug(`Could not remove inline-agent contract directory ${outputPath}: ${cleanupError.message}`);
10681
- }
10682
- }
10683
- }
10684
- async function inlineAgentExists(fs, projectDir, source) {
10685
- const agentJsonPath = fs.path.join(projectDir, source, "agent.json");
10686
- return fs.exists(agentJsonPath);
10687
- }
10688
- async function packageInlineAgents(fs, projectDir, nodes) {
10689
- const result = [];
10690
- for (const node of nodes) {
10691
- if (!isInlineAgentNodeType(node.type))
10692
- continue;
10693
- const source = readInlineAgentSource(node);
10694
- if (!source)
10695
- continue;
10696
- if (/[/\\.]/.test(source))
10697
- continue;
10698
- if (!await inlineAgentExists(fs, projectDir, source))
10699
- continue;
10700
- const contract = await createInlineAgentContract(fs, fs.path.join(projectDir, source));
10701
- const inputSchema = contract.agentJson.inputSchema ?? {
10702
- type: "object",
10703
- properties: {}
10704
- };
10705
- const outputSchema = contract.agentJson.outputSchema ?? {
10706
- type: "object",
10707
- properties: {}
10708
- };
10709
- result.push({
10710
- source,
10711
- entryPoint: {
10712
- filePath: `content/${source}/agent.json`,
10713
- uniqueId: contract.agentJson.projectId ?? source,
10714
- type: EntryPointType.Agent,
10715
- input: inputSchema,
10716
- output: outputSchema,
10717
- displayName: contract.agentJson.name ?? "Agent"
10718
- },
10719
- agentJson: contract.agentJson,
10720
- bindingsJson: contract.bindingsJson
10721
- });
10722
- logger.info(`Packaged inline agent "${source}" for entry-points`);
10723
- }
10724
- return result;
10725
- }
10726
- async function stageInlineAgentPackageFiles(fs, sourceProjectPath, stagingProjectDir, inlineAgents, formatLogMessage) {
10727
- for (const agent of inlineAgents) {
10728
- const srcDir = fs.path.join(sourceProjectPath, agent.source);
10729
- const destDir = fs.path.join(stagingProjectDir, agent.source);
10730
- if (fs.path.resolve(srcDir) !== fs.path.resolve(destDir) && await fs.exists(srcDir)) {
10731
- await fs.copyDirectory(srcDir, destDir);
10732
- }
10733
- const agentBuilderDir = fs.path.join(destDir, ".agent-builder");
10734
- await ensureDirectory(fs, agentBuilderDir);
10735
- await fs.writeFile(fs.path.join(agentBuilderDir, "agent.json"), JSON.stringify({
10736
- ...agent.agentJson,
10737
- resources: agent.agentJson.resources ?? [],
10738
- features: agent.agentJson.features ?? []
10739
- }, null, 2));
10740
- await fs.writeFile(fs.path.join(agentBuilderDir, "bindings.json"), `${JSON.stringify(agent.bindingsJson ?? emptyPackagingBindingsJson(), null, 2)}
10741
- `);
10742
- logger.info(formatLogMessage(agent.source));
10743
- }
10744
- }
10745
- function buildInlineAgentDescriptors(nodes) {
10746
- const out = [];
10747
- for (const node of nodes) {
10748
- if (!isInlineAgentNodeType(node.type))
10749
- continue;
10750
- const source = readInlineAgentSource(node);
10751
- if (!source)
10752
- continue;
10753
- const label = node.display?.label ?? "Agent";
10754
- out.push({
10755
- name: label,
10756
- agentProjectId: source,
10757
- isConversational: isConversationalOrVoiceAgentNodeType(node.type),
10758
- entryPointPath: `${source}/agent.json`
10759
- });
10760
- }
10761
- return out;
10762
- }
10763
- async function writePackagingArtifacts(fs, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions = [], options = {}) {
10764
- const { entryPoints } = await writePackagingArtifactsDetailed(fs, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions, options);
10765
- return entryPoints;
10766
- }
10767
- async function writePackagingArtifactsDetailed(fs, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions = [], options = {}) {
10768
- const startNodes = options.entryPointNodes ?? packagingNodes;
10769
- const flowEntryPoints = getEntryPoints(bpmnFileName, startNodes, variables, definitions, ProjectType.Flow);
10770
- const entryPoints = [
10771
- ...flowEntryPoints,
10772
- ...options.additionalEntryPoints ?? []
10773
- ];
10774
- await fs.writeFile(fs.path.join(projectDir, "entry-points.json"), `${JSON.stringify(generateEntryPointsJson(entryPoints), null, 2)}
10775
- `);
10776
- const bindingResources = getBindingResources(packagingNodes, bindings, definitions);
10777
- const bindingsJson = normalizePackagingBindingsJson(generateBindingsJson(bindingResources)) ?? emptyPackagingBindingsJson();
10778
- const stagedBindingsJson = mergePackagingBindingsJson([
10779
- bindingsJson,
10780
- ...options.additionalBindingsJsons ?? []
10781
- ]);
10782
- await fs.writeFile(fs.path.join(projectDir, "bindings_v2.json"), `${JSON.stringify(stagedBindingsJson, null, 2)}
10783
- `);
10784
- const mainEntryPoint = `/${bpmnFileName}#${defaultEntryPointNodeId(startNodes) ?? startEventId}`;
10785
- const operateJson = withRuntimeProfile(generateOperateJson(projectId, mainEntryPoint, operateRuntimeOptions(startNodes)), options.profile ?? "Standard" /* Standard */);
10786
- await fs.writeFile(fs.path.join(projectDir, "operate.json"), `${JSON.stringify(operateJson, null, 2)}
10787
- `);
10788
- const packageDescriptorJson = options.packageDescriptorJson ?? {
10789
- $schema: "https://cloud.uipath.com/draft/2024-12/package-descriptor",
10790
- files: {
10791
- "operate.json": "operate.json",
10792
- "entry-points.json": "entry-points.json",
10793
- "bindings.json": "bindings_v2.json",
10794
- [bpmnFileName]: bpmnFileName,
10795
- ...flowFileName ? { [flowFileName]: flowFileName } : {}
10796
- }
10797
- };
10798
- await fs.writeFile(fs.path.join(projectDir, "package-descriptor.json"), `${JSON.stringify(packageDescriptorJson, null, 2)}
10799
- `);
10800
- return { entryPoints, bindingsJson: stagedBindingsJson };
10801
- }
10802
- function backfillNodeModelsFromDefinitions(nodes, definitions) {
10803
- if (definitions.length === 0)
10804
- return nodes;
10805
- const definitionByType = new Map;
10806
- for (const def of definitions) {
10807
- if (def?.nodeType)
10808
- definitionByType.set(def.nodeType, def);
10809
- }
10810
- return nodes.map((n) => {
10811
- if (n.model)
10812
- return n;
10813
- const def = definitionByType.get(n.type);
10814
- if (!def?.model)
10815
- return n;
10816
- return { ...n, model: def.model };
10817
- });
10818
- }
10819
- async function regenerateBindingsFile(fs, flowFilePath) {
10820
- const absolutePath = fs.path.resolve(flowFilePath);
10821
- const projectDir = fs.path.dirname(absolutePath);
10822
- const [readErr, read] = await catchError(readFlowWorkflow(absolutePath, fs));
10823
- if (readErr) {
10824
- throw new Error(`Failed to read .flow file at ${absolutePath}: ${readErr.message}`);
10825
- }
10826
- const flowData = read.workflow;
10827
- const packagingNodes = backfillNodeModelsFromDefinitions(flowToPackagingNodes(flowData), flowData.definitions ?? []);
10828
- const bindingResources = getBindingResources(packagingNodes, flowData.bindings ?? [], flowData.definitions ?? []);
10829
- const flowBindingsJson = normalizePackagingBindingsJson(generateBindingsJson(bindingResources)) ?? emptyPackagingBindingsJson();
10830
- const [agentErr, inlineAgents] = await catchError(packageInlineAgents(fs, projectDir, flowData.nodes ?? []));
10831
- if (agentErr) {
10832
- logger.warn(`Wrote bindings_v2.json without inline agent tool bindings: ${agentErr.message}`);
10833
- }
10834
- await fs.writeFile(fs.path.join(projectDir, "bindings_v2.json"), `${JSON.stringify(mergePackagingBindingsJson([
10835
- flowBindingsJson,
10836
- ...(inlineAgents ?? []).map((agent) => agent.bindingsJson)
10837
- ]), null, 2)}
10838
- `);
10839
- }
10840
- // src/services/node-service.ts
10841
- class NodeTypeNotFoundError extends Error {
10842
- code = "NodeTypeNotFound";
10843
- instructions;
10844
- constructor(message, instructions) {
10845
- super(message);
10846
- this.name = "NodeTypeNotFoundError";
10847
- this.instructions = instructions;
10848
- }
10849
- }
10850
-
10851
- class NodeTypeNotEnabledError extends Error {
10852
- code = "NodeTypeNotEnabled";
10853
- instructions;
10854
- constructor(message, instructions) {
10855
- super(message);
10856
- this.name = "NodeTypeNotEnabledError";
10857
- this.instructions = instructions;
10858
- }
10859
- }
10860
-
10861
- class SourceRequiredError extends Error {
10862
- code = "SourceRequired";
10863
- instructions;
10864
- constructor(message, instructions) {
10865
- super(message);
10866
- this.name = "SourceRequiredError";
10867
- this.instructions = instructions;
10868
- }
10869
- }
10870
- var listNodesInFlow = async (filePath) => {
10871
- const { workflow } = await readFlowWorkflow(filePath);
10872
- const nodes = workflow.nodes.map((n) => ({
10873
- id: n.id,
10874
- type: n.type,
10875
- label: n.display.label ?? "",
10876
- position: n.ui.position
10877
- }));
10878
- return { nodes, count: nodes.length };
10879
- };
10880
- var PROCESS_NODE_PREFIXES = [
10881
- "uipath.core.rpa-workflow.",
10882
- "uipath.agent.resource.tool.process.",
10883
- "uipath.core.agent.",
10884
- "uipath.core.api-workflow."
10885
- ];
10886
- function isProcessNode(manifest) {
10887
- return PROCESS_NODE_PREFIXES.some((prefix) => manifest.nodeType?.startsWith(prefix));
10888
- }
10889
- function isEntityNode(manifest) {
10890
- return isEntityNodeType(manifest.nodeType);
10891
- }
10892
- function createEntityBindings(node) {
10893
- const entityConfig = node.inputs?.entityConfig;
10894
- const entityName = entityConfig?.entityName;
10895
- if (typeof entityName !== "string" || entityName === "")
10896
- return [];
10897
- const scopeKey = entityScopeKey(entityConfig);
10898
- if (!scopeKey)
10899
- return [];
10900
- const bindings = [
10901
- createBinding({
10902
- name: entityName,
10903
- value: entityName,
10904
- resource: "Entity",
10905
- resourceKey: scopeKey,
10906
- propertyAttribute: "name"
10907
- })
10908
- ];
10909
- const folderKey = entityConfig?._folderKey;
10910
- if (typeof folderKey === "string" && folderKey !== "") {
10911
- bindings.push(createBinding({
10912
- name: `${entityName}Folder`,
10913
- value: folderKey,
10914
- resource: "Entity",
10915
- resourceKey: scopeKey,
10916
- propertyAttribute: "folderKey"
10917
- }));
10918
- }
10919
- return bindings;
10920
- }
10921
- async function resolveEntityIdentity(filePath, node) {
10922
- const entityConfig = node.inputs?.entityConfig;
10923
- const entityName = entityConfig?.entityName;
10924
- if (entityConfig == null || typeof entityName !== "string" || entityName === "") {
10925
- return;
10926
- }
10927
- const entity = await resolveInlineEntity(getFileSystem(), filePath, entityName);
10928
- if (entity === undefined) {
10929
- return;
10930
- }
10931
- const current2 = entityScopeKey(entityConfig);
10932
- if (current2 !== "" && current2 !== entity.resourceKey) {
10933
- return;
10934
- }
10935
- entityConfig.entityName = entity.name;
10936
- if (current2 === "") {
10937
- entityConfig._resourceKey = entity.resourceKey;
10938
- entityConfig._folderKey = entity.folderId;
10939
- }
10940
- }
10941
- function resolveProcessTarget(node, definitions) {
10942
- if (!isProcessNode({ nodeType: node.type }))
10943
- return;
10944
- let subType = "Process";
10945
- if (definitions) {
10946
- const def = findMatchingDefinition(node.type, node.typeVersion, definitions);
10947
- const model = def?.model;
10948
- const defBindings = model?.bindings;
10949
- if (defBindings?.resourceSubType)
10950
- subType = defBindings.resourceSubType;
10951
- if (defBindings?.resourceKey) {
10952
- return { key: defBindings.resourceKey, subType };
10953
- }
10954
- }
10955
- return { key: extractProcessGuid(node.type), subType };
10956
- }
10957
- function resolveProcessTargetKey(node, definitions) {
10958
- return resolveProcessTarget(node, definitions)?.key;
10959
- }
10960
- function resolveProcessBindingsInContext(node, nameBinding, folderBinding) {
10961
- const model = node.model;
10962
- if (!model?.context)
10963
- return;
10964
- for (const entry of model.context) {
10965
- if (entry.name === "name" && typeof entry.value === "string") {
10966
- entry.default = nameBinding.default;
10967
- entry.value = `=bindings.${nameBinding.id}`;
10968
- } else if (entry.name === "folderPath" && typeof entry.value === "string") {
10969
- entry.default = folderBinding.default;
10970
- entry.value = `=bindings.${folderBinding.id}`;
10971
- }
10972
- }
10973
- }
10974
- var UNRESOLVED_BINDING_PATTERN = /^<bindings\.\w+>$/;
10975
- function ensureProcessBindings(workflow) {
10976
- const nodes = workflow.nodes;
10977
- const definitions = workflow.definitions ?? [];
10978
- let bindingsCreated = 0;
10979
- for (const node of nodes) {
10980
- if (!isProcessNode({ nodeType: node.type }))
10981
- continue;
10982
- const nodeModel = node.model;
10983
- const defModel = definitions.find((d) => d.nodeType === node.type)?.model;
10984
- const hasUnresolved = [nodeModel, defModel].some((m) => m?.context?.some((entry) => typeof entry.value === "string" && UNRESOLVED_BINDING_PATTERN.test(entry.value)));
10985
- if (!hasUnresolved)
10986
- continue;
10987
- const definition = definitions.find((d) => d.nodeType === node.type);
10988
- if (!definition)
10989
- continue;
10990
- const [err, bindings] = catchError(() => createProcessBindings(definition));
10991
- if (err) {
10992
- logger.warn(`Skipping binding resolution for node "${node.id}": ${err.message}`);
10993
- continue;
10994
- }
10995
- const { nameBinding, folderBinding } = bindings;
10996
- const beforeCount = workflow.bindings?.length ?? 0;
10997
- addBinding(workflow, nameBinding);
10998
- addBinding(workflow, folderBinding);
10999
- const storedBindings = workflow.bindings;
11000
- const storedName = storedBindings.find((b) => b.resourceKey === nameBinding.resourceKey && b.propertyAttribute === nameBinding.propertyAttribute) ?? nameBinding;
11001
- const storedFolder = storedBindings.find((b) => b.resourceKey === folderBinding.resourceKey && b.propertyAttribute === folderBinding.propertyAttribute) ?? folderBinding;
11002
- resolveProcessBindingsInContext(node, storedName, storedFolder);
11003
- if (defModel?.context) {
11004
- for (const entry of defModel.context) {
11005
- if (entry.name === "name" && typeof entry.value === "string" && UNRESOLVED_BINDING_PATTERN.test(entry.value)) {
11006
- entry.default = storedName.default;
11007
- entry.value = `=bindings.${storedName.id}`;
11008
- } else if (entry.name === "folderPath" && typeof entry.value === "string" && UNRESOLVED_BINDING_PATTERN.test(entry.value)) {
11009
- entry.default = storedFolder.default;
11010
- entry.value = `=bindings.${storedFolder.id}`;
11011
- }
11012
- }
11013
- }
11014
- const added = (workflow.bindings?.length ?? 0) - beforeCount;
11015
- bindingsCreated += added;
11016
- logger.info(`Resolved process bindings for node "${node.id}" (${node.type})`);
11017
- }
11018
- if (bindingsCreated > 0) {
11019
- logger.info(`ensureProcessBindings: created ${bindingsCreated} binding(s) for directly-authored nodes`);
11020
- }
11021
- return bindingsCreated;
11022
- }
11023
- var BINDING_REF_PATTERN = /^=bindings\.(.+)$/;
11024
- function collectNodeBindingRefs(node) {
11025
- const refs = new Set;
11026
- const addRef = (value) => {
11027
- if (typeof value !== "string")
11028
- return;
11029
- const match = value.match(BINDING_REF_PATTERN);
11030
- if (match)
11031
- refs.add(match[1]);
11032
- };
11033
- if (node.inputs) {
11034
- const inputs = node.inputs;
11035
- for (const value of Object.values(inputs))
11036
- addRef(value);
11037
- const detail = inputs.detail;
11038
- for (const bucket of REQUEST_BUCKETS) {
11039
- const values = detail?.[bucket];
11040
- if (values !== null && typeof values === "object") {
11041
- for (const value of Object.values(values))
11042
- addRef(value);
11043
- }
11044
- }
11045
- }
11046
- return refs;
11047
- }
11048
- function collectNodeBindingResourceKeys(node, bindings, definitions) {
11049
- const keys = new Set;
11050
- const processKey = resolveProcessTargetKey(node, definitions);
11051
- if (processKey) {
11052
- keys.add(processKey);
11053
- }
11054
- const inputs = node.inputs;
11055
- if (typeof inputs?.detail?.connectionResourceId === "string") {
11056
- keys.add(inputs.detail.connectionResourceId);
11057
- }
11058
- const entityKey = entityScopeKey(inputs?.entityConfig);
11059
- if (entityKey !== "") {
11060
- keys.add(entityKey);
11061
- }
11062
- const refs = collectNodeBindingRefs(node);
11063
- for (const binding of bindings) {
11064
- if (refs.has(binding.id)) {
11065
- keys.add(binding.resourceKey);
11066
- }
11067
- }
11068
- return keys;
11069
- }
11070
- var addNodeToFlow = async (filePath, nodeType, options = {}) => {
11071
- let inline;
11072
- if (options.inlineActivity) {
11073
- inline = await prepareInlineActivity(nodeType, options.inlineActivity);
11074
- } else if (nodeType.startsWith("uipath.connector.custom.")) {
11075
- throw new InlineActivityError(`Node type "${nodeType}" is a non-catalog activity, which the registry does not carry.`, "Pass --metadata <Name>.json and --scripts <dir> (the files `uip is activities metadata generate` and `script update` produced) so the definition is built locally.");
11076
- }
11077
- let manifest = inline?.manifest ?? null;
11078
- let registryErr;
11079
- if (!manifest) {
11080
- const [err, registryManifest] = await catchError(getNode(nodeType));
11081
- manifest = registryManifest ?? null;
11082
- registryErr = err;
11083
- if (err) {
11084
- logger.debug(`Registry node lookup failed for ${nodeType}: ${err.message}`);
11085
- }
11086
- }
11087
- let localErr = null;
11088
- if (!manifest) {
11089
- const [err, localManifest] = await catchError(getNode(nodeType, { local: true }));
11090
- manifest = localManifest ?? null;
11091
- if (err) {
11092
- localErr = err;
11093
- logger.warn(`In-solution node lookup failed for ${nodeType}: ${err.message}`);
11094
- }
11095
- }
11096
- if (!manifest && isTenantManifestInvalidError(registryErr)) {
11097
- throw registryErr;
11098
- }
11099
- if (!manifest) {
11100
- if (isKnownSdkNodeType(nodeType)) {
11101
- throw new NodeTypeNotEnabledError(`Node type '${nodeType}' is not enabled for this tenant.`, "Ask an admin to enable the feature flag for this node type, " + "or run `uip maestro flow registry list` to see every " + "known type with its `AvailableOnTenant` flag.");
11102
- }
11103
- const [, withoutProcessResource] = await catchError(explainNodeTypeWithoutProcessResource(nodeType));
11104
- if (withoutProcessResource) {
11105
- throw new NodeTypeNotFoundError(`Node type not found: ${nodeType}. ${withoutProcessResource.message}`, withoutProcessResource.instructions);
11106
- }
11107
- const details = [
11108
- registryErr && `Registry lookup failed: ${registryErr.message}`,
11109
- localErr && `In-solution lookup failed: ${localErr.message}`
11110
- ].filter(Boolean).join(". ");
11111
- const hint = details || "If this is an in-solution node, make sure you are running " + "from inside a solution directory (with a .uipx file in CWD, parent, or grandparent).";
11112
- throw new NodeTypeNotFoundError(`Node type not found: ${nodeType}. ${hint}`, "Run `uip maestro flow registry search <keyword>` to find the " + "correct node type, or `uip maestro flow registry list` " + "to see every known type (including ones not enabled on this tenant).");
11113
- }
11114
- if (manifest.model?.source === true) {
11115
- const fromFlag = typeof options.source === "string" && options.source.length > 0;
11116
- const inputsSourceCandidate = options.inputs?.source;
11117
- const fromInputs = typeof inputsSourceCandidate === "string" && inputsSourceCandidate.length > 0;
11118
- if (!fromFlag && !fromInputs) {
11119
- throw new SourceRequiredError(`Node type "${nodeType}" requires a source UUID at inputs.source. Pass --source <uuid>.`, "Use the agent's ProjectId (returned by " + '`uip agent init "<flow-dir>" --inline-in-flow`) for inline ' + "agent nodes, or the resource id declared in the parent " + "inline agent's `resources[]` for agent-tool resource nodes. " + '`--input \'{"source":"<uuid>"}\'` is also accepted.');
11120
- }
11121
- }
11122
- const { workflow, refMap } = await readFlowWorkflow(filePath);
11123
- if (inline) {
11124
- const existing = workflow.definitions.find((d) => d.nodeType === manifest.nodeType && d.version === manifest.version);
11125
- if (existing && definitionConfigurationOf(existing) !== definitionConfigurationOf(manifest)) {
11126
- throw new InlineActivityError(`"${nodeType}" is already defined in this flow with different activity metadata.`, "Use a different activity slug for this node type, or remove the existing nodes of this type first so the definition is rebuilt from the new metadata.");
11127
- }
11128
- }
11129
- const existingIds = new Set(workflow.nodes.map((n) => n.id));
11130
- const existingDefCount = workflow.definitions.length;
11131
- const { id, displayName } = generateNodeIdAndName(options.label ?? manifest.display.label, existingIds);
11132
- const bindingsBefore = workflow.bindings?.length ?? 0;
11133
- const node = addNode(workflow, manifest, id, options.position ?? { x: 0, y: 0 }, options.label ?? displayName);
11134
- const schema = manifest.inputDefinition;
11135
- if (manifest.inputDefaults === undefined && schema?.type === "object") {
11136
- for (const schemaKey of Object.keys(schema)) {
11137
- delete node.inputs[schemaKey];
11138
- }
11139
- }
11140
- let bindingsCreated = 0;
11141
- if (isProcessNode(manifest)) {
11142
- const { nameBinding, folderBinding } = createProcessBindings(manifest);
11143
- addBinding(workflow, nameBinding);
11144
- addBinding(workflow, folderBinding);
11145
- const storedBindings = workflow.bindings;
11146
- const storedName = storedBindings.find((b) => b.resourceKey === nameBinding.resourceKey && b.propertyAttribute === nameBinding.propertyAttribute) ?? nameBinding;
11147
- const storedFolder = storedBindings.find((b) => b.resourceKey === folderBinding.resourceKey && b.propertyAttribute === folderBinding.propertyAttribute) ?? folderBinding;
11148
- if (folderBinding.default === "" && storedFolder.default === undefined) {
11149
- storedFolder.default = "";
11150
- }
11151
- resolveProcessBindingsInContext(node, storedName, storedFolder);
11152
- bindingsCreated = (workflow.bindings?.length ?? 0) - bindingsBefore;
11153
- }
11154
- if (options.inputs && Object.keys(options.inputs).length > 0) {
11155
- node.inputs = { ...node.inputs ?? {}, ...options.inputs };
11156
- }
11157
- if (inline) {
11158
- node.inputs = {
11159
- ...node.inputs ?? {},
11160
- inlineActivityConfiguration: inline.configuration
11161
- };
11162
- }
11163
- if (isEntityNode(manifest)) {
11164
- await resolveEntityIdentity(filePath, node);
11165
- for (const entityBinding of createEntityBindings(node)) {
11166
- addBinding(workflow, entityBinding);
11167
- }
11168
- bindingsCreated = (workflow.bindings?.length ?? 0) - bindingsBefore;
11169
- }
11170
- const manifestModel = manifest.model;
11171
- if (manifestModel?.source === true) {
11172
- if (typeof options.source === "string" && options.source.length > 0) {
11173
- const inputs = node.inputs ?? {};
11174
- inputs.source = options.source;
11175
- node.inputs = inputs;
11176
- }
11177
- if (node.model) {
11178
- delete node.model;
11179
- }
11180
- }
11181
- if (typeof options.parent === "string" && options.parent.length > 0) {
11182
- const allNodes = workflow.nodes;
11183
- if (!allNodes.some((n) => n.id === options.parent)) {
11184
- throw new Error(`--parent value "${options.parent}" is not an existing node id in this flow. ` + "Run 'uip maestro flow nodes list <file>' to see valid ids.");
11185
- }
11186
- node.parentId = options.parent;
11187
- }
11188
- await writeFlowWorkflow(filePath, workflow, refMap);
11189
- if (isProcessNode(manifest) || isEntityNode(manifest)) {
11190
- const fs = getFileSystem();
11191
- const [regenErr] = await catchError(regenerateBindingsFile(fs, filePath));
11192
- if (regenErr) {
11193
- logger.warn(`Failed to regenerate bindings_v2.json after adding ${manifest.nodeType}: ${regenErr.message}`);
11194
- }
11195
- }
11196
- const definitionAdded = workflow.definitions.length > existingDefCount;
11197
- const variableCount = workflow.variables?.nodes?.length ?? 0;
11198
- const inlineActivity = inline ? {
11199
- scriptRef: inline.configuration.scriptRef,
11200
- scripts: Object.keys(inline.configuration.scripts)
11201
- } : undefined;
11202
- if (isConnectorNode(manifest)) {
11203
- const connInfo = getConnectorInfo(manifest);
11204
- return {
11205
- node,
11206
- definitionAdded,
11207
- bindingsCreated,
11208
- variableCount,
11209
- connectorInfo: connInfo ?? undefined,
11210
- ...inlineActivity && { inlineActivity }
11211
- };
11212
- } else {
11213
- return {
11214
- node,
11215
- definitionAdded,
11216
- bindingsCreated,
11217
- variableCount,
11218
- ...inlineActivity && { inlineActivity }
11219
- };
11220
- }
11221
- };
11222
- function removeConnectedEdges(workflow, nodeId) {
11223
- const edges = workflow.edges ?? [];
11224
- const before = edges.length;
11225
- workflow.edges = edges.filter((e) => e.sourceNodeId !== nodeId && e.targetNodeId !== nodeId);
11226
- return before - workflow.edges.length;
11227
- }
11228
- function subflowNodes(workflow) {
11229
- return Object.values(workflow.subflows ?? {}).flatMap((entry) => entry?.nodes ?? []);
11230
- }
11231
- function removeOrphanedBindings(workflow, deletedNodeKeys, remainingNodes, bindings) {
11232
- if (deletedNodeKeys.size === 0 || bindings.length === 0)
11233
- return 0;
11234
- const defs = workflow.definitions ?? [];
11235
- const remainingKeys = new Set;
11236
- for (const node of remainingNodes) {
11237
- for (const key of collectNodeBindingResourceKeys(node, bindings, defs)) {
11238
- remainingKeys.add(key);
11239
- }
11240
- }
11241
- const before = bindings.length;
11242
- workflow.bindings = bindings.filter((b) => !deletedNodeKeys.has(b.resourceKey) || remainingKeys.has(b.resourceKey));
11243
- return before - workflow.bindings.length;
11244
- }
11245
- function connectorConnectionBindingName(node, definitions) {
11246
- if (!node.type.startsWith("uipath.connector"))
11247
- return "";
11248
- const def = definitions.find((d) => d.nodeType === node.type);
11249
- const context = def?.model?.context;
11250
- const connectorKey = context?.find((c) => c.name === "connectorKey")?.value;
11251
- return typeof connectorKey === "string" && connectorKey.length > 0 ? `${connectorKey} connection` : "";
11252
- }
11253
- function removeOrphanedConnectorStub(workflow, deletedNode, remainingNodes, definitions) {
11254
- const stubName = connectorConnectionBindingName(deletedNode, definitions);
11255
- if (!stubName)
11256
- return 0;
11257
- const stillOwned = remainingNodes.some((n) => connectorConnectionBindingName(n, definitions) === stubName);
11258
- if (stillOwned)
11259
- return 0;
11260
- const bindings = workflow.bindings ?? [];
11261
- if (bindings.length === 0)
11262
- return 0;
11263
- const before = bindings.length;
11264
- workflow.bindings = bindings.filter((b) => !(b.resource?.toLowerCase() === "connection" && b.propertyAttribute === "ConnectionId" && !b.resourceKey && !b.default && b.name === stubName));
11265
- return before - workflow.bindings.length;
11266
- }
11267
- function removeOrphanedDefinitions(workflow, remainingNodes) {
11268
- const definitions = workflow.definitions ?? [];
11269
- const usedKeys = new Set(remainingNodes.map((n) => `${n.type}:${n.typeVersion}`));
11270
- const before = definitions.length;
11271
- workflow.definitions = definitions.filter((d) => usedKeys.has(`${d.nodeType}:${d.version}`));
11272
- return before - workflow.definitions.length;
11273
- }
11274
- function removeVariableUpdates(workflow, nodeId) {
11275
- const variables = workflow.variables;
11276
- if (!variables?.variableUpdates)
11277
- return 0;
11278
- const updates = variables.variableUpdates[nodeId];
11279
- if (!updates)
11280
- return 0;
11281
- const count = updates.length;
11282
- delete variables.variableUpdates[nodeId];
11283
- return count;
11284
- }
11285
- function removeNodeVariables(workflow, nodeId) {
11286
- const variables = workflow.variables;
11287
- if (!variables?.nodes)
11288
- return 0;
11289
- const before = variables.nodes.length;
11290
- variables.nodes = variables.nodes.filter((v) => v.binding.nodeId !== nodeId);
11291
- return before - variables.nodes.length;
11292
- }
11293
- var deleteNodeFromFlow = async (filePath, nodeId) => {
11294
- const { workflow, refMap } = await readFlowWorkflow(filePath);
11295
- const nodes = workflow.nodes;
11296
- const nodeIndex = nodes.findIndex((n) => n.id === nodeId);
11297
- if (nodeIndex === -1) {
11298
- const available = nodes.map((n) => n.id).join(", ") || "(none)";
11299
- throw new Error(`Node not found: "${nodeId}". Available node IDs: ${available}`);
11300
- }
11301
- const targetNode = nodes[nodeIndex];
11302
- const deletedWasProcessNode = isProcessNode({ nodeType: targetNode.type });
11303
- const deletedNode = {
11304
- id: targetNode.id,
11305
- type: targetNode.type,
11306
- label: targetNode.display.label ?? "",
11307
- position: targetNode.ui.position
11308
- };
11309
- const bindings = workflow.bindings ?? [];
11310
- const definitions = workflow.definitions ?? [];
11311
- const deletedNodeResourceKeys = collectNodeBindingResourceKeys(targetNode, bindings, definitions);
11312
- nodes.splice(nodeIndex, 1);
11313
- const edgesRemoved = removeConnectedEdges(workflow, nodeId);
11314
- const remainingNodes = [...nodes, ...subflowNodes(workflow)];
11315
- const bindingsRemoved = removeOrphanedBindings(workflow, deletedNodeResourceKeys, remainingNodes, bindings) + removeOrphanedConnectorStub(workflow, targetNode, remainingNodes, definitions);
11316
- const definitionsRemoved = removeOrphanedDefinitions(workflow, remainingNodes);
11317
- const variablesRemoved = removeNodeVariables(workflow, nodeId);
11318
- const variableUpdatesRemoved = removeVariableUpdates(workflow, nodeId);
11319
- await writeFlowWorkflow(filePath, workflow, refMap);
11320
- if (deletedWasProcessNode || bindingsRemoved > 0) {
11321
- const fs = getFileSystem();
11322
- const [regenErr] = await catchError(regenerateBindingsFile(fs, filePath));
11323
- if (regenErr) {
11324
- logger.warn(`Failed to regenerate bindings_v2.json after deleting ${targetNode.type}: ${regenErr.message}`);
11325
- }
11326
- }
11327
- return {
11328
- deletedNode,
11329
- edgesRemoved,
11330
- bindingsRemoved,
11331
- definitionsRemoved,
11332
- variablesRemoved,
11333
- variableUpdatesRemoved
11334
- };
11335
- };
11336
-
11337
- export { parse3 as parse, loadRegistry, REQUEST_BUCKETS, INLINE_ACTIVITY_TYPE_PREFIX, INLINE_ACTIVITY_SOURCE, InlineActivityError, collectScriptRefs, getInlineActivityConfiguration, fileNodesToPackagingNodes, flowToPackagingNodes, packageInlineAgents, stageInlineAgentPackageFiles, buildInlineAgentDescriptors, writePackagingArtifacts, writePackagingArtifactsDetailed, regenerateBindingsFile, NodeTypeNotFoundError, NodeTypeNotEnabledError, SourceRequiredError, listNodesInFlow, PROCESS_NODE_PREFIXES, isProcessNode, isEntityNode, createEntityBindings, resolveEntityIdentity, resolveProcessTarget, resolveProcessTargetKey, ensureProcessBindings, collectNodeBindingResourceKeys, addNodeToFlow, deleteNodeFromFlow };
10280
+ export { parse, loadRegistry2 };
11338
10281
 
11339
- //# debugId=62F4959BDDC99F5B64756E2164756E21
10282
+ //# debugId=1DD62EBAEFF841E264756E2164756E21