@uipath/flow-tool 1.205.0-preview.277 → 1.206.0-preview.279

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/README.md +14 -12
  2. package/dist/THIRD-PARTY-NOTICES.md +74 -46
  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-kdg7mq7z.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-0xn8fk4a.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-dcj8p7n7.js → flow-eval-run-service-5en4ahyn.js} +125 -149
  47. package/dist/{flow-eval-service-6c0y5a3b.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-9w8dgydd.js → flow-migrate-service-dkx85jj5.js} +33 -54
  52. package/dist/{flow-pack-service-5s2cthq4.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-mx8gr86x.js → governance-fetcher-h8hpcwyh.js} +17 -21
  61. package/dist/{headless-4x4v3sy6.js → headless-41t9wwb7.js} +2395 -43269
  62. package/dist/{hitl-service-d943rxgm.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-5ay0ddfj.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-xf9vf5nj.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-a5ywkf0w.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-kkwrd05c.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-hgfygxyj.js → packager-tool-6jpvvxyb.js} +27 -22
  117. package/dist/packager-tool-6vhefpmq.js +461 -0
  118. package/dist/{packager-tool-v9vpk48j.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-gpwnzqd9.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-143kcy6z.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-zjv3f1k3.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-3jkppykr.js → packager-tool-b2pkwwj1.js} +1273 -1300
  132. package/dist/{packager-tool-nhrc54tz.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-mgwzjh8c.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-z502rf8m.js → packager-tool-rxqxza90.js} +192 -183
  152. package/dist/{packager-tool-vzezw19a.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-c3xbcma6.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-s0srgj90.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-v1ejjevw.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-vq8cjh0x.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-b5xwf5gp.js +0 -52
  249. package/dist/flow-eval-run-api-xdygjzfv.js +0 -13
  250. package/dist/flow-init-service-z6xc9zsz.js +0 -47
  251. package/dist/flow-io-hf4szx79.js +0 -44
  252. package/dist/flow-validate-service-3974mcq1.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-cexznmfe.js +0 -667
  257. package/dist/index-cg9qhfb1.js +0 -635
  258. package/dist/index-d090f35d.js +0 -66
  259. package/dist/index-gxcjq6ns.js +0 -110
  260. package/dist/index-kmp9fmhb.js +0 -25
  261. package/dist/index-nsn889vf.js +0 -27
  262. package/dist/index-sqhbn7ew.js +0 -157
  263. package/dist/index-wycgq0ff.js +0 -3178
  264. package/dist/index.umd.min-fqefd9kn.js +0 -7814
  265. package/dist/inline-entity-resolver-23tt0g1j.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-0t16wfqk.js +0 -92
  278. package/dist/node-sync-service-w84f66pb.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-79jnagb9.js +0 -5367
  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-dw1bm5y7.js +0 -8809
  291. package/dist/packager-tool-e3yks66r.js +0 -95
  292. package/dist/packager-tool-e5hj89zm.js +0 -6
  293. package/dist/packager-tool-e87tzg4y.js +0 -1937
  294. package/dist/packager-tool-eypvc2kv.js +0 -23
  295. package/dist/packager-tool-gbgfwx8f.js +0 -2
  296. package/dist/packager-tool-hk1gxnth.js +0 -11
  297. package/dist/packager-tool-hxyjn885.js +0 -24
  298. package/dist/packager-tool-j78fwwhq.js +0 -16
  299. package/dist/packager-tool-jgfzfqjm.js +0 -53
  300. package/dist/packager-tool-jysvpt8p.js +0 -11
  301. package/dist/packager-tool-m3wkcxf5.js +0 -11
  302. package/dist/packager-tool-mcaf4ewf.js +0 -46
  303. package/dist/packager-tool-mgcz986r.js +0 -143
  304. package/dist/packager-tool-p79yh9ww.js +0 -97
  305. package/dist/packager-tool-paq9c70w.js +0 -1332
  306. package/dist/packager-tool-pcvhcn2k.js +0 -2019
  307. package/dist/packager-tool-qkn0c042.js +0 -1922
  308. package/dist/packager-tool-qszay16r.js +0 -180
  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,1083 +0,0 @@
1
- import {
2
- METADATA_IDENTIFIER,
3
- METADATA_PREFIX,
4
- SELF_PREFIX,
5
- VARIABLE_PATH_IDENTIFIER_PATTERN,
6
- VARIABLE_PATH_PATTERN,
7
- VARIABLE_PATH_SELECTOR_PATTERN,
8
- VARS_IDENTIFIER,
9
- VARS_PREFIX
10
- } from "./packager-tool-7bam8cjq.js";
11
- import {
12
- FLAT_SEP,
13
- JS_EXPRESSION_PREFIX,
14
- JobAttachmentSchema,
15
- decodeLiteral,
16
- isAgentNodeType,
17
- isExpressionValue,
18
- isJobAttachmentRef,
19
- stripAutoDerivedFieldBindings,
20
- templateInterpolationBody
21
- } from "./packager-tool-s7wb0s9n.js";
22
- import {
23
- init_esm_shims
24
- } from "./packager-tool-6ejqwbw9.js";
25
-
26
- // ../../node_modules/@uipath/flow-converter/dist/chunk-KX2HWNFV.js
27
- init_esm_shims();
28
- var ITERATOR_FIELDS = [
29
- { member: "currentItem", field: "item", type: "any" },
30
- { member: "currentIteration", field: "loopCounter", type: "number" }
31
- ];
32
- init_esm_shims();
33
- var VARS_REGEX = new RegExp(`\\${VARS_PREFIX}\\b`, "g");
34
- var METADATA_REGEX = new RegExp(`\\${METADATA_PREFIX}\\b`, "g");
35
- var SELF_REGEX = new RegExp(`\\${SELF_PREFIX}\\b`, "g");
36
- var SCRIPT_TASK_NODE_TYPES = ["core.action.script"];
37
- var DATA_TRANSFORM_NODE_TYPES = [
38
- "core.action.transform",
39
- "core.action.transform.filter",
40
- "core.action.transform.map",
41
- "core.action.transform.group-by"
42
- ];
43
- function isScriptBodyPath(nodeType, path) {
44
- if (!nodeType)
45
- return false;
46
- if (SCRIPT_TASK_NODE_TYPES.includes(nodeType)) {
47
- return path.length === 2 && path[0] === "inputs" && path[1] === "script";
48
- }
49
- if (DATA_TRANSFORM_NODE_TYPES.includes(nodeType)) {
50
- return path.length === 5 && path[0] === "inputs" && path[1] === "operations" && typeof path[2] === "number" && path[3] === "config" && path[4] === "script";
51
- }
52
- return false;
53
- }
54
- function unwrapScriptBody(value) {
55
- let body;
56
- if (isExpressionValue(value)) {
57
- body = value.expression;
58
- } else if (typeof value === "string") {
59
- body = value;
60
- } else {
61
- return "";
62
- }
63
- while (body.startsWith(JS_EXPRESSION_PREFIX)) {
64
- body = body.slice(JS_EXPRESSION_PREFIX.length);
65
- }
66
- return body;
67
- }
68
- function transformScriptBody(value, nodeId) {
69
- if (typeof value !== "string" && !isExpressionValue(value))
70
- return value;
71
- return unwrapScriptBody(value).replace(VARS_REGEX, VARS_IDENTIFIER).replace(METADATA_REGEX, METADATA_IDENTIFIER).replace(SELF_REGEX, `${VARS_IDENTIFIER}.${nodeId}`);
72
- }
73
- function serializeTemplateInterpolations(expr) {
74
- if (!expr || expr.startsWith(JS_EXPRESSION_PREFIX) || expr.startsWith("="))
75
- return expr;
76
- const body = templateInterpolationBody(expr);
77
- return body === undefined ? expr : `${JS_EXPRESSION_PREFIX}\`${body}\``;
78
- }
79
- function transformExpression(expr, nodeId) {
80
- if (!expr)
81
- return expr;
82
- expr = serializeTemplateInterpolations(expr);
83
- expr = expr.replace(VARS_REGEX, VARS_IDENTIFIER).replace(METADATA_REGEX, METADATA_IDENTIFIER).replace(SELF_REGEX, `${VARS_IDENTIFIER}.${nodeId}`);
84
- if (expr.startsWith(JS_EXPRESSION_PREFIX)) {
85
- expr = `${JS_EXPRESSION_PREFIX}${parenthesizeObjectLiteral(expr.slice(JS_EXPRESSION_PREFIX.length))}`;
86
- }
87
- return expr;
88
- }
89
- function parenthesizeObjectLiteral(body) {
90
- const trimmed = body.trim();
91
- return trimmed.startsWith("{") && trimmed.endsWith("}") ? `(${trimmed})` : body;
92
- }
93
- function literalToJsExpressionBody(ev) {
94
- const literal = ev.expression;
95
- if (!literal)
96
- return "";
97
- switch (ev.fieldType) {
98
- case "number":
99
- case "boolean":
100
- case "null":
101
- case "array":
102
- return literal;
103
- case "object":
104
- return `(${literal})`;
105
- default:
106
- return literal;
107
- }
108
- }
109
- function serializeExpressionValueAsMappingSource(ev, nodeId) {
110
- if (ev.type === "jsExpression" || ev.fieldType === "string") {
111
- const out = serializeExpressionValue(ev, nodeId);
112
- return typeof out === "string" ? out : `${JS_EXPRESSION_PREFIX}${String(out)}`;
113
- }
114
- return `${JS_EXPRESSION_PREFIX}${literalToJsExpressionBody(ev)}`;
115
- }
116
- function serializeExpressionValue(ev, nodeId) {
117
- if (ev.type === "jsExpression") {
118
- let body = ev.expression;
119
- while (body.startsWith(JS_EXPRESSION_PREFIX)) {
120
- body = body.slice(JS_EXPRESSION_PREFIX.length);
121
- }
122
- const transformed = body.replace(VARS_REGEX, VARS_IDENTIFIER).replace(METADATA_REGEX, METADATA_IDENTIFIER).replace(SELF_REGEX, `${VARS_IDENTIFIER}.${nodeId}`);
123
- return `${JS_EXPRESSION_PREFIX}${parenthesizeObjectLiteral(transformed)}`;
124
- }
125
- if (ev.fieldType === "string") {
126
- return transformExpression(ev.expression, nodeId);
127
- }
128
- return decodeLiteral(ev);
129
- }
130
- function serializeExpressionsInPlace(obj, nodeId, nodeType, path = []) {
131
- if (obj == null || typeof obj !== "object")
132
- return;
133
- if (Array.isArray(obj)) {
134
- for (let i = 0;i < obj.length; i++) {
135
- const val = obj[i];
136
- path.push(i);
137
- if (isScriptBodyPath(nodeType, path)) {
138
- obj[i] = transformScriptBody(val, nodeId);
139
- } else if (isExpressionValue(val)) {
140
- obj[i] = serializeExpressionValue(val, nodeId);
141
- } else if (typeof val === "string") {
142
- obj[i] = transformExpression(val, nodeId);
143
- } else {
144
- serializeExpressionsInPlace(val, nodeId, nodeType, path);
145
- }
146
- path.pop();
147
- }
148
- return;
149
- }
150
- const record = obj;
151
- for (const key of Object.keys(record)) {
152
- const val = record[key];
153
- path.push(key);
154
- if (isScriptBodyPath(nodeType, path)) {
155
- record[key] = transformScriptBody(val, nodeId);
156
- } else if (isExpressionValue(val)) {
157
- record[key] = serializeExpressionValue(val, nodeId);
158
- } else if (typeof val === "string") {
159
- record[key] = transformExpression(val, nodeId);
160
- } else {
161
- serializeExpressionsInPlace(val, nodeId, nodeType, path);
162
- }
163
- path.pop();
164
- }
165
- }
166
- function transformNodeExpressions(node) {
167
- if (!node.data)
168
- return;
169
- serializeExpressionsInPlace(node.data, node.id, node.type ?? node.data.type);
170
- }
171
- function transformEdgeExpression(edge) {
172
- if (!edge.data)
173
- return;
174
- serializeExpressionsInPlace(edge.data, edge.preExpansionNodeId ?? edge.source);
175
- }
176
- init_esm_shims();
177
- var DEFAULT_AGENT_INPUT_ENCODING = "flat";
178
- init_esm_shims();
179
- var SCHEMA_CONTAINER_MARKER = "x-uipath-container";
180
- function getContainerChildProps(prop) {
181
- if (prop?.type !== "object")
182
- return;
183
- if (prop[SCHEMA_CONTAINER_MARKER] !== true)
184
- return;
185
- const childProps = prop.properties;
186
- if (!childProps || Object.keys(childProps).length === 0)
187
- return;
188
- return childProps;
189
- }
190
- init_esm_shims();
191
- var CONNECTOR_PARAM_BUCKET_KEYS = ["pathParameters", "queryParameters", "multipartParameters", "bodyParameters"];
192
- var extractAgentInputName = (source) => {
193
- if (!source)
194
- return;
195
- const trimmed = source.trim();
196
- const patterns = [
197
- /^\{\{\s*\$agent\.([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)\s*\}\}$/,
198
- /^=js:\s*\$agent\.([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)\s*$/,
199
- /^=js:\(\s*\$agent\.([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)\s*\)$/,
200
- /^=js:`\$\{\s*\$agent\.([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)\s*\}`$/,
201
- /^=\$agent\.([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)$/,
202
- /^\$agent\.([a-zA-Z_]\w*(?:\.[a-zA-Z_]\w*)*)$/
203
- ];
204
- for (const pattern of patterns) {
205
- const match = pattern.exec(trimmed);
206
- if (match)
207
- return match[1];
208
- }
209
- return;
210
- };
211
- var SINGLE_REF = String.raw`\$(?:vars|metadata|agent)\.[a-zA-Z_][\w.]*`;
212
- var SINGLE_BINDING_PATTERNS = [
213
- new RegExp(String.raw`^\{\{\s*${SINGLE_REF}\s*\}\}$`),
214
- new RegExp(String.raw`^=js:\s*${SINGLE_REF}\s*$`),
215
- new RegExp(String.raw`^=js:\(\s*${SINGLE_REF}\s*\)$`),
216
- new RegExp(String.raw`^=js:\`\$\{\s*${SINGLE_REF}\s*\}\`$`),
217
- new RegExp(`^=${SINGLE_REF}$`),
218
- new RegExp(`^${SINGLE_REF}$`)
219
- ];
220
- var SOURCE_TOKEN = /(?<!\w)\$(?:vars|metadata)\./;
221
- var isCompositeConnectorValue = (value) => {
222
- if (typeof value !== "string")
223
- return false;
224
- const referencesSource = SOURCE_TOKEN.test(value) || value.includes("$agent.");
225
- if (!referencesSource)
226
- return false;
227
- const trimmed = value.trim();
228
- return !SINGLE_BINDING_PATTERNS.some((pattern) => pattern.test(trimmed));
229
- };
230
- var COMPOSITE_CONNECTOR_INFIX = "__connectorArg__";
231
- var sanitizeSyntheticSegment = (s) => s.replace(/\W+/g, "_");
232
- var FILES_INPUT_PREFIX = "files_";
233
- var filesInputKey = (nodeId) => `${FILES_INPUT_PREFIX}${nodeId}`;
234
- var compositeConnectorInputKey = (nodeId, fieldName) => {
235
- const key = `${sanitizeSyntheticSegment(nodeId)}${COMPOSITE_CONNECTOR_INFIX}${sanitizeSyntheticSegment(fieldName)}`;
236
- return /^[a-zA-Z_]/.test(key) ? key : `_${key}`;
237
- };
238
- var isSyntheticAgentInputId = (id) => id.includes(COMPOSITE_CONNECTOR_INFIX) || id.startsWith(FILES_INPUT_PREFIX);
239
- var collectCompositeConnectorInputs = (node) => {
240
- const inputs = node.data?.inputs ?? node.inputs;
241
- const detail = inputs?.detail;
242
- if (!detail)
243
- return [];
244
- const out = [];
245
- for (const bucketKey of CONNECTOR_PARAM_BUCKET_KEYS) {
246
- const bucket = detail[bucketKey];
247
- if (!bucket || typeof bucket !== "object")
248
- continue;
249
- for (const [fieldName, value] of Object.entries(bucket)) {
250
- if (!isCompositeConnectorValue(value))
251
- continue;
252
- out.push({
253
- id: compositeConnectorInputKey(node.id, fieldName),
254
- type: "string",
255
- binding: value,
256
- description: `Composite connector binding for ${fieldName}`
257
- });
258
- }
259
- }
260
- return out;
261
- };
262
- init_esm_shims();
263
- init_esm_shims();
264
- init_esm_shims();
265
- init_esm_shims();
266
- init_esm_shims();
267
- init_esm_shims();
268
- init_esm_shims();
269
- function isLabeledWrapper(val) {
270
- return val != null && typeof val === "object" && !Array.isArray(val) && !isExpressionValue(val) && "value" in val;
271
- }
272
- function unwrapFlowExpression(val) {
273
- if (isLabeledWrapper(val))
274
- return unwrapFlowExpression(val.value);
275
- if (isExpressionValue(val))
276
- return val.expression;
277
- if (typeof val === "string")
278
- return val;
279
- return "";
280
- }
281
- init_esm_shims();
282
- init_esm_shims();
283
- init_esm_shims();
284
- init_esm_shims();
285
- init_esm_shims();
286
- init_esm_shims();
287
- var MODES = /* @__PURE__ */ new Set(["text-builder", "variable", "prompt"]);
288
- var asString = (raw) => typeof raw === "string" ? raw : "";
289
- var isValueSourceValue = (raw) => !!raw && typeof raw === "object" && !Array.isArray(raw) && MODES.has(raw.mode);
290
- function readValueSource(raw, options = {}) {
291
- const { defaultMode = "prompt", legacyString = "items" } = options;
292
- const empty = { mode: defaultMode, textValue: "", promptValue: "", argumentPath: "", items: [] };
293
- if (isValueSourceValue(raw)) {
294
- const v = raw;
295
- return {
296
- mode: v.mode,
297
- textValue: asString(v.textValue),
298
- promptValue: asString(v.promptValue),
299
- argumentPath: asString(v.argumentPath),
300
- items: Array.isArray(v.items) ? v.items : []
301
- };
302
- }
303
- if (Array.isArray(raw))
304
- return raw.length === 0 ? empty : { ...empty, mode: "text-builder", items: raw };
305
- if (typeof raw === "string" && raw !== "") {
306
- return legacyString === "promptValue" ? { ...empty, mode: "prompt", promptValue: raw } : { ...empty, mode: "text-builder", items: [raw] };
307
- }
308
- return empty;
309
- }
310
- function bindingSources(value) {
311
- if (value.mode === "text-builder")
312
- return value.items;
313
- if (value.mode === "variable" && value.argumentPath)
314
- return [value.argumentPath];
315
- return [];
316
- }
317
- var ANALYZE_FILES_INPUT_DESCRIPTION = "Combined file attachments for Analyze Files tool";
318
- var MUSTACHE_SOURCE_TOKEN_REGEX = new RegExp(String.raw`\{\{\s*\$(vars|metadata)\.(${VARIABLE_PATH_PATTERN})\s*\}\}`, "g");
319
- var RAW_SOURCE_TOKEN_REGEX = new RegExp(String.raw`(?<!\w)\$(vars|metadata)\.(${VARIABLE_PATH_PATTERN})`, "g");
320
- var MUSTACHE_INPUT_TOKEN_REGEX = new RegExp(String.raw`\{\{\s*\$agent\.(${VARIABLE_PATH_IDENTIFIER_PATTERN})(${VARIABLE_PATH_SELECTOR_PATTERN})\s*\}\}`, "g");
321
- var RAW_INPUT_TOKEN_REGEX = new RegExp(String.raw`(?<!\w)\$agent\.(${VARIABLE_PATH_IDENTIFIER_PATTERN})(${VARIABLE_PATH_SELECTOR_PATTERN})(?!\w)`, "g");
322
- var MUSTACHE_RUNTIME_INPUT_TOKEN_REGEX = new RegExp(String.raw`\{\{\s*input\.(${VARIABLE_PATH_IDENTIFIER_PATTERN})(${VARIABLE_PATH_SELECTOR_PATTERN})\s*\}\}`, "g");
323
- var SOURCE_BINDING_REGEX = new RegExp(String.raw`^\$?(vars|metadata)\.(${VARIABLE_PATH_PATTERN})$`);
324
- function encodeFlatName(prefix, path, encoding = DEFAULT_AGENT_INPUT_ENCODING) {
325
- if (encoding === "flat" || /\[\d+\]/.test(path)) {
326
- const segments2 = Array.from(path.matchAll(new RegExp(String.raw`${VARIABLE_PATH_IDENTIFIER_PATTERN}|\[(\d+)\]`, "g")), (match) => match[1] ?? match[0]);
327
- const parts2 = prefix === VARS_PREFIX ? segments2 : [METADATA_IDENTIFIER, ...segments2];
328
- return parts2.join(FLAT_SEP);
329
- }
330
- const segments = path.split(".").filter(Boolean);
331
- const parts = prefix === VARS_PREFIX ? segments : [METADATA_IDENTIFIER, ...segments];
332
- return parts.join(".");
333
- }
334
- function decodeFlatName(flatName) {
335
- if (flatName.includes(".")) {
336
- const dotIndex = flatName.indexOf(".");
337
- if (flatName.slice(0, dotIndex) === METADATA_IDENTIFIER) {
338
- return { prefix: METADATA_PREFIX, path: flatName.slice(dotIndex + 1) };
339
- }
340
- return { prefix: VARS_PREFIX, path: flatName };
341
- }
342
- const decodePath = (encoded) => encoded.split(FLAT_SEP).filter(Boolean).reduce((path, segment) => {
343
- if (/^\d+$/.test(segment))
344
- return `${path}[${segment}]`;
345
- if (!path)
346
- return segment;
347
- return `${path}.${segment}`;
348
- }, "");
349
- const metadataPrefix = `${METADATA_IDENTIFIER}${FLAT_SEP}`;
350
- if (flatName === METADATA_IDENTIFIER) {
351
- return { prefix: METADATA_PREFIX, path: "" };
352
- }
353
- if (flatName.startsWith(metadataPrefix)) {
354
- return { prefix: METADATA_PREFIX, path: decodePath(flatName.slice(metadataPrefix.length)) };
355
- }
356
- return { prefix: VARS_PREFIX, path: decodePath(flatName) };
357
- }
358
- function extractSourceRefs(text, encoding = DEFAULT_AGENT_INPUT_ENCODING) {
359
- if (!text || typeof text !== "string")
360
- return [];
361
- const refs = [];
362
- const seen = /* @__PURE__ */ new Set;
363
- const emit = (prefixId, path) => {
364
- const prefix = `$${prefixId}`;
365
- const flatName = encodeFlatName(prefix, path, encoding);
366
- if (seen.has(flatName))
367
- return;
368
- seen.add(flatName);
369
- refs.push({ prefix, path, flatName, binding: `=${prefix}.${path}` });
370
- };
371
- let match;
372
- MUSTACHE_SOURCE_TOKEN_REGEX.lastIndex = 0;
373
- while ((match = MUSTACHE_SOURCE_TOKEN_REGEX.exec(text)) !== null) {
374
- emit(match[1], match[2]);
375
- }
376
- RAW_SOURCE_TOKEN_REGEX.lastIndex = 0;
377
- while ((match = RAW_SOURCE_TOKEN_REGEX.exec(text)) !== null) {
378
- emit(match[1], match[2]);
379
- }
380
- return refs;
381
- }
382
- function rewriteInputTokensToSource(text, bindingsByFlatName) {
383
- if (!text || typeof text !== "string")
384
- return text;
385
- const resolveSource = (flatName) => {
386
- const explicit = bindingsByFlatName?.get(flatName);
387
- if (explicit) {
388
- const raw = explicit.startsWith("=") ? explicit.slice(1) : explicit;
389
- const prefixMatch = SOURCE_BINDING_REGEX.exec(raw);
390
- if (prefixMatch) {
391
- return { prefix: `$${prefixMatch[1]}`, path: prefixMatch[2] };
392
- }
393
- }
394
- return decodeFlatName(flatName);
395
- };
396
- let out = text.replace(MUSTACHE_INPUT_TOKEN_REGEX, (_full, flatName, selector) => {
397
- const decoded = resolveSource(flatName);
398
- if (!decoded.path)
399
- return `{{ ${decoded.prefix}${selector} }}`;
400
- return `{{ ${decoded.prefix}.${decoded.path}${selector} }}`;
401
- });
402
- out = out.replace(RAW_INPUT_TOKEN_REGEX, (_full, flatName, selector) => {
403
- const decoded = resolveSource(flatName);
404
- if (!decoded.path)
405
- return `${decoded.prefix}${selector}`;
406
- return `${decoded.prefix}.${decoded.path}${selector}`;
407
- });
408
- return out;
409
- }
410
- function rewriteRuntimeInputTokensToSource(text, bindings) {
411
- if (!text || typeof text !== "string")
412
- return text;
413
- const canvasForm = text.replace(MUSTACHE_RUNTIME_INPUT_TOKEN_REGEX, "{{ $$agent.$1$2 }}");
414
- return rewriteInputTokensToSource(canvasForm, bindings);
415
- }
416
- function buildBindingMap(inputVariables) {
417
- const map = /* @__PURE__ */ new Map;
418
- if (!inputVariables)
419
- return map;
420
- for (const v of inputVariables) {
421
- if (v.id && v.binding)
422
- map.set(v.id, v.binding);
423
- }
424
- return map;
425
- }
426
- var UnresolvedAgentInputTypeError = class extends Error {
427
- constructor(ref) {
428
- super(`Cannot resolve type for inline-agent input '${ref.flatName}' (from ${ref.prefix}.${ref.path}): no matching variable in workflow.variables.globals or workflow.variables.nodes. Declare the variable so the agent.json inputSchema can be typed.`);
429
- this.name = "UnresolvedAgentInputTypeError";
430
- this.ref = ref;
431
- }
432
- };
433
- var AmbiguousAgentInputRootError = class extends Error {
434
- constructor(ref, reason) {
435
- const stripIndex = (s) => s.replace(/\[\d+\]/g, "");
436
- const segments = ref.path.split(".");
437
- const offending = reason === "underscore" ? segments.map(stripIndex).find((s) => s.includes(FLAT_SEP)) ?? stripIndex(segments[0]) : stripIndex(segments[0]);
438
- super(reason === "metadata" ? `Inline-agent input references "$vars.${ref.path}", but a variable or node named "metadata" collides with the "$metadata" namespace once serialized and cannot round-trip. Rename it to something other than "metadata".` : `Inline-agent input references "$vars.${ref.path}", but the name "${offending}" contains "__", reserved as the agent-input encoding separator, so it cannot round-trip. Rename it to remove the double underscore.`);
439
- this.name = "AmbiguousAgentInputRootError";
440
- this.ref = ref;
441
- this.i18n = reason === "metadata" ? { key: "agentInputRefs_reservedMetadataRoot_message", params: { ref: ref.path }, ns: "validation" } : { key: "agentInputRefs_ambiguousUnderscoreRoot_message", params: { ref: ref.path, rootSegment: offending }, ns: "validation" };
442
- }
443
- };
444
- function detectAmbiguousAgentInputRoot(ref, encoding = DEFAULT_AGENT_INPUT_ENCODING) {
445
- if (ref.prefix !== VARS_PREFIX)
446
- return;
447
- const stripIndex = (s) => s.replace(/\[\d+\]/g, "");
448
- const segments = ref.path.split(".");
449
- if (stripIndex(segments[0]) === METADATA_IDENTIFIER)
450
- return "metadata";
451
- const flatEncoded = encoding === "flat" || /\[\d+\]/.test(ref.path);
452
- const segmentsToCheck = flatEncoded ? segments : [segments[0]];
453
- if (segmentsToCheck.some((s) => stripIndex(s).includes(FLAT_SEP)))
454
- return "underscore";
455
- return;
456
- }
457
- function assertNoAmbiguousAgentInputRoot(refs, encoding) {
458
- for (const ref of refs) {
459
- const reason = detectAmbiguousAgentInputRoot(ref, encoding);
460
- if (reason)
461
- throw new AmbiguousAgentInputRootError(ref, reason);
462
- }
463
- }
464
- function buildVariableLookup(globals, nodeVars, scoped = []) {
465
- const map = /* @__PURE__ */ new Map;
466
- for (const s of scoped)
467
- map.set(s.path, { type: s.type, schema: s.schema });
468
- for (const n of nodeVars)
469
- map.set(n.id, { type: n.type, schema: n.schema });
470
- for (const g of globals) {
471
- const key = g.direction === "in" && g.triggerNodeId ? `${g.triggerNodeId}.output.${g.id}` : g.id;
472
- map.set(key, { type: g.type, schema: g.schema });
473
- }
474
- return map;
475
- }
476
- var TRAILING_VARIABLE_PATH_SELECTOR_REGEX = new RegExp(String.raw`(?:\.(${VARIABLE_PATH_IDENTIFIER_PATTERN})|\[(\d+)\])$`);
477
- function removeTrailingPathSelector(path) {
478
- const selector = TRAILING_VARIABLE_PATH_SELECTOR_REGEX.exec(path);
479
- if (selector?.index === undefined)
480
- return;
481
- return {
482
- path: path.slice(0, selector.index),
483
- segment: selector[1] ?? Number(selector[2])
484
- };
485
- }
486
- function findLongestPrefixMatch(path, map) {
487
- let candidate = path;
488
- const reversedTail = [];
489
- while (candidate) {
490
- const entry = map.get(candidate);
491
- if (entry) {
492
- reversedTail.reverse();
493
- return { entry, tail: reversedTail };
494
- }
495
- const trailingSelector = removeTrailingPathSelector(candidate);
496
- if (!trailingSelector)
497
- return;
498
- reversedTail.push(trailingSelector.segment);
499
- candidate = trailingSelector.path;
500
- }
501
- return;
502
- }
503
- function asSchemaNode(value) {
504
- return value && typeof value === "object" ? value : undefined;
505
- }
506
- function getSchemaChild(node, segment) {
507
- if (typeof segment === "number")
508
- return node.items;
509
- const properties = asSchemaNode(node.properties);
510
- if (properties && segment in properties)
511
- return properties[segment];
512
- return node.additionalProperties;
513
- }
514
- function walkSchemaForLeaf(schema, segments) {
515
- let current = asSchemaNode(schema);
516
- for (const segment of segments) {
517
- if (!current)
518
- return;
519
- current = asSchemaNode(getSchemaChild(current, segment));
520
- }
521
- return current;
522
- }
523
- function buildAgentInputTypeResolver(workflowVariables, options) {
524
- const globals = workflowVariables?.globals ?? [];
525
- const nodeVars = workflowVariables?.nodes ?? [];
526
- const lookup = buildVariableLookup(globals, nodeVars, options?.scopedVariables);
527
- const warnedRefs = /* @__PURE__ */ new Set;
528
- return (ref) => {
529
- if (ref.prefix !== VARS_PREFIX)
530
- return "string";
531
- const result = findLongestPrefixMatch(ref.path, lookup);
532
- if (!result) {
533
- if (options?.onUnresolved === "fallback") {
534
- const refName = `${ref.prefix}.${ref.path}`;
535
- if (!warnedRefs.has(refName)) {
536
- warnedRefs.add(refName);
537
- console.warn(`[agent-cluster-rewrite] '${refName}' matches no workflow variable — emitting a typeless agent input`);
538
- }
539
- return normalizeJsonSchemaType("any");
540
- }
541
- throw new UnresolvedAgentInputTypeError(ref);
542
- }
543
- const { entry, tail } = result;
544
- if (tail.length === 0)
545
- return normalizeJsonSchemaType(entry.type);
546
- const schema = walkSchemaForLeaf(entry.schema, tail);
547
- const schemaType = typeof schema?.type === "string" ? schema.type : undefined;
548
- return normalizeJsonSchemaType(schemaType ?? "any");
549
- };
550
- }
551
- function normalizeJsonSchemaType(type) {
552
- if (type === "octet-stream")
553
- return "object";
554
- if (type === "any")
555
- return "any";
556
- return type;
557
- }
558
- function canPruneAgentInputs(inputs) {
559
- return typeof inputs?.systemPrompt === "string" || typeof inputs?.userPrompt === "string";
560
- }
561
- function canonicalLegacyId(entry, encoding) {
562
- const raw = entry.binding?.startsWith("=") ? entry.binding.slice(1) : entry.binding;
563
- if (!raw || !SOURCE_BINDING_REGEX.test(raw))
564
- return entry.id;
565
- const { prefix, path } = decodeFlatName(entry.id);
566
- return encodeFlatName(prefix, path, encoding);
567
- }
568
- function deriveLegacyEntry(entry, refByFlatName, resolveSourceType, pruneUnreferenced, encoding) {
569
- const id = canonicalLegacyId(entry, encoding);
570
- const ref = refByFlatName.get(id);
571
- if (!ref && pruneUnreferenced)
572
- return null;
573
- let resolvedType;
574
- if (ref && resolveSourceType) {
575
- try {
576
- resolvedType = resolveSourceType(ref);
577
- } catch (error) {
578
- if (!(error instanceof UnresolvedAgentInputTypeError))
579
- throw error;
580
- resolvedType = undefined;
581
- }
582
- }
583
- return {
584
- id,
585
- type: (resolvedType && resolvedType !== "any" ? resolvedType : entry.type) || "string",
586
- binding: entry.binding ?? "",
587
- description: entry.description ?? "",
588
- ...entry.schema ? { schema: entry.schema } : {}
589
- };
590
- }
591
- function deriveAgentInputVariables(refs, legacy, resolveSourceType, pruneUnreferenced, encoding = DEFAULT_AGENT_INPUT_ENCODING) {
592
- const result = [];
593
- const seen = /* @__PURE__ */ new Set;
594
- const refByFlatName = new Map(refs.map((r) => [r.flatName, r]));
595
- for (const entry of legacy ?? []) {
596
- if (!entry.id)
597
- continue;
598
- const derived = deriveLegacyEntry(entry, refByFlatName, resolveSourceType, pruneUnreferenced, encoding);
599
- if (!derived || seen.has(derived.id))
600
- continue;
601
- result.push(derived);
602
- seen.add(derived.id);
603
- }
604
- for (const ref of refs) {
605
- if (seen.has(ref.flatName))
606
- continue;
607
- result.push({
608
- id: ref.flatName,
609
- type: resolveSourceType?.(ref) ?? "string",
610
- binding: ref.binding,
611
- description: `Bound from ${ref.prefix}.${ref.path}`
612
- });
613
- seen.add(ref.flatName);
614
- }
615
- return result;
616
- }
617
- function scanSourceRefsDeep(values, encoding = DEFAULT_AGENT_INPUT_ENCODING) {
618
- const seen = /* @__PURE__ */ new Map;
619
- const visit = (v) => {
620
- if (v == null)
621
- return;
622
- if (typeof v === "string") {
623
- for (const ref of extractSourceRefs(v, encoding)) {
624
- if (!seen.has(ref.flatName))
625
- seen.set(ref.flatName, ref);
626
- }
627
- return;
628
- }
629
- if (Array.isArray(v)) {
630
- for (const item of v)
631
- visit(item);
632
- return;
633
- }
634
- if (typeof v === "object") {
635
- for (const item of Object.values(v))
636
- visit(item);
637
- }
638
- };
639
- for (const value of values)
640
- visit(value);
641
- return Array.from(seen.values());
642
- }
643
- var LOOP_MEMBER_TO_ITERATOR_FIELD = new Map(ITERATOR_FIELDS.map((f) => [f.member, f]));
644
- function tryBuildLoopBinding(ref, ancestorLoopInfo) {
645
- if (ref.prefix !== VARS_PREFIX)
646
- return;
647
- const segments = ref.path.split(".");
648
- if (segments.length < 2)
649
- return;
650
- const loopId = segments[0];
651
- const member = segments[1];
652
- const info = ancestorLoopInfo.get(loopId);
653
- if (!info)
654
- return;
655
- const tail = segments.slice(2).join(".");
656
- const suffix = tail ? `.${tail}` : "";
657
- let binding;
658
- let type;
659
- if (member === "collection") {
660
- if (!info.collectionExpr)
661
- return;
662
- binding = `${info.collectionExpr}${suffix}`;
663
- type = "array";
664
- } else {
665
- const mapping = LOOP_MEMBER_TO_ITERATOR_FIELD.get(member);
666
- if (!mapping)
667
- return;
668
- binding = `=iterator[${info.index}].${mapping.field}${suffix}`;
669
- type = mapping.type;
670
- }
671
- return {
672
- id: ref.flatName,
673
- type,
674
- binding,
675
- description: `Bound from ${ref.prefix}.${ref.path}`
676
- };
677
- }
678
- function partitionRefsByLoopBinding(refs, ancestorLoopInfo) {
679
- const loopVariables = [];
680
- const nonLoopRefs = [];
681
- if (!ancestorLoopInfo || ancestorLoopInfo.size === 0) {
682
- return { loopVariables, nonLoopRefs: [...refs] };
683
- }
684
- for (const ref of refs) {
685
- const loopEntry = tryBuildLoopBinding(ref, ancestorLoopInfo);
686
- if (loopEntry)
687
- loopVariables.push(loopEntry);
688
- else
689
- nonLoopRefs.push(ref);
690
- }
691
- return { loopVariables, nonLoopRefs };
692
- }
693
- function scanInputsWithoutAutoDerivedBindings(inputs) {
694
- const schema = inputs.schema;
695
- if (!schema || !Array.isArray(schema.fields))
696
- return inputs;
697
- const stripped = stripAutoDerivedFieldBindings(schema);
698
- return stripped === schema ? inputs : { ...inputs, schema: stripped };
699
- }
700
- function scanAgentClusterRefs(agent, nodesById, edges, resolveSourceType, ancestorLoopInfo, pruneUnreferenced, encoding = DEFAULT_AGENT_INPUT_ENCODING) {
701
- const inputs = agent.data?.inputs ?? {};
702
- const rawSystemPrompt = typeof inputs.systemPrompt === "string" ? inputs.systemPrompt : "";
703
- const rawUserPrompt = typeof inputs.userPrompt === "string" ? inputs.userPrompt : "";
704
- const canPrune = canPruneAgentInputs(inputs);
705
- const bindingMap = buildBindingMap(Array.isArray(inputs.agentInputVariables) ? inputs.agentInputVariables : undefined);
706
- const systemPrompt = rewriteRuntimeInputTokensToSource(rawSystemPrompt, bindingMap);
707
- const userPrompt = rewriteRuntimeInputTokensToSource(rawUserPrompt, bindingMap);
708
- const descendantInputs = [];
709
- for (const descId of collectArtifactDescendants(agent.id, edges)) {
710
- const descNode = nodesById.get(descId);
711
- if (descNode?.data?.inputs)
712
- descendantInputs.push(rewriteStringsDeep(scanInputsWithoutAutoDerivedBindings(descNode.data.inputs), (s) => rewriteRuntimeInputTokensToSource(s, bindingMap)));
713
- }
714
- const refs = scanSourceRefsDeep([systemPrompt, userPrompt, ...descendantInputs], encoding);
715
- assertNoAmbiguousAgentInputRoot(refs, encoding);
716
- const legacy = Array.isArray(inputs.agentInputVariables) ? inputs.agentInputVariables.filter((v) => !!v.id) : [];
717
- const { loopVariables, nonLoopRefs } = partitionRefsByLoopBinding(refs, ancestorLoopInfo);
718
- const standardVariables = deriveAgentInputVariables(nonLoopRefs, legacy, resolveSourceType, pruneUnreferenced && canPrune, encoding);
719
- const seen = new Set(standardVariables.map((v) => v.id));
720
- const variables = [...standardVariables];
721
- for (const v of loopVariables) {
722
- if (seen.has(v.id))
723
- continue;
724
- variables.push(v);
725
- seen.add(v.id);
726
- }
727
- return { refs, variables };
728
- }
729
- function collectInlineAgentClusterInputs(agentNodeId, nodes, edges, workflowVariables, encoding = DEFAULT_AGENT_INPUT_ENCODING) {
730
- const empty = { refs: [], variables: [] };
731
- const agent = nodes.find((n) => n.id === agentNodeId);
732
- if (!agent)
733
- return empty;
734
- const type = agent.data?.type ?? agent.type;
735
- if (!isAgentNodeType(type))
736
- return empty;
737
- const nodesById = new Map(nodes.map((n) => [n.id, n]));
738
- return scanAgentClusterRefs(agent, nodesById, edges, buildAgentInputTypeResolver(workflowVariables), undefined, undefined, encoding);
739
- }
740
- function collectInlineAgentInputsFromAgent(agent) {
741
- const refs = [];
742
- const variables = [];
743
- const properties = agent?.inputSchema?.properties;
744
- if (!properties)
745
- return { refs, variables };
746
- const emitLeaf = (flatName, prop) => {
747
- const type = isJobAttachmentRef(prop) ? "file" : prop?.type || "string";
748
- if (isSyntheticAgentInputId(flatName)) {
749
- variables.push({ id: flatName, type, binding: "", description: prop?.description ?? "" });
750
- return;
751
- }
752
- const { prefix, path } = decodeFlatName(flatName);
753
- const sourceForm = path ? `${prefix}.${path}` : prefix;
754
- const binding = `=${sourceForm}`;
755
- const description = prop?.description ?? `Bound from ${sourceForm}`;
756
- refs.push({ prefix, path, flatName, binding });
757
- variables.push({ id: flatName, type, binding, description });
758
- };
759
- const visit = (key, prop, pathPrefix) => {
760
- const flatName = pathPrefix ? `${pathPrefix}.${key}` : key;
761
- const childProps = getContainerChildProps(prop);
762
- if (childProps) {
763
- for (const [childKey, childProp] of Object.entries(childProps))
764
- visit(childKey, childProp, flatName);
765
- return;
766
- }
767
- emitLeaf(flatName, prop);
768
- };
769
- for (const [key, prop] of Object.entries(properties))
770
- visit(key, prop, "");
771
- return { refs, variables };
772
- }
773
- function collectArtifactDescendants(rootId, edges) {
774
- const artifactChildrenByParent = /* @__PURE__ */ new Map;
775
- for (const edge of edges) {
776
- if (edge.type !== "artifact")
777
- continue;
778
- const list = artifactChildrenByParent.get(edge.source) ?? [];
779
- list.push(edge.target);
780
- artifactChildrenByParent.set(edge.source, list);
781
- }
782
- const out = /* @__PURE__ */ new Set;
783
- const queue = [rootId];
784
- while (queue.length > 0) {
785
- const id = queue.shift();
786
- if (!id)
787
- break;
788
- const children = artifactChildrenByParent.get(id);
789
- if (!children)
790
- continue;
791
- for (const child of children) {
792
- if (out.has(child))
793
- continue;
794
- out.add(child);
795
- queue.push(child);
796
- }
797
- }
798
- return out;
799
- }
800
- var ANALYZEFILES_NODE_TYPE = "uipath.agent.resource.tool.builtin.analyzefiles";
801
- function isArrayTypedRef(ref, resolveSourceType, ancestorLoopInfo) {
802
- const loopEntry = ancestorLoopInfo ? tryBuildLoopBinding(ref, ancestorLoopInfo) : undefined;
803
- if (loopEntry)
804
- return loopEntry.type === "array";
805
- return resolveSourceType?.(ref) === "array";
806
- }
807
- function mergeAnalyzeFilesInputs(variables, agentId, nodesById, edges, encoding = DEFAULT_AGENT_INPUT_ENCODING, resolveSourceType, ancestorLoopInfo) {
808
- let descendants = collectArtifactDescendants(agentId, edges);
809
- if (descendants.size === 0) {
810
- descendants = new Set(edges.filter((e) => e.source === agentId).map((e) => e.target));
811
- }
812
- const supersededVarIds = /* @__PURE__ */ new Set;
813
- const syntheticVars = [];
814
- for (const descId of descendants) {
815
- const node = nodesById.get(descId);
816
- if (!node)
817
- continue;
818
- const nodeType = node.data?.type ?? node.type;
819
- if (nodeType !== ANALYZEFILES_NODE_TYPE)
820
- continue;
821
- const nodeInputs = node.data?.inputs ?? node.inputs;
822
- const attachments = readValueSource(nodeInputs?.itemsDescription);
823
- const rawItems = bindingSources(attachments);
824
- if (rawItems.length < 1)
825
- continue;
826
- const fileBindings = [];
827
- for (const item of rawItems) {
828
- const text = unwrapFlowExpression(item);
829
- if (!text.trim())
830
- continue;
831
- const refs = extractSourceRefs(text, encoding);
832
- for (const ref of refs) {
833
- supersededVarIds.add(ref.flatName);
834
- fileBindings.push(isArrayTypedRef(ref, resolveSourceType, ancestorLoopInfo) ? `...$vars.${ref.path}` : `$vars.${ref.path}`);
835
- }
836
- }
837
- if (fileBindings.length === 0)
838
- continue;
839
- const existingIds = new Set(variables.map((v) => v.id));
840
- let syntheticId = filesInputKey(descId);
841
- while (existingIds.has(syntheticId)) {
842
- syntheticId = `_${syntheticId}`;
843
- }
844
- syntheticVars.push({
845
- id: syntheticId,
846
- type: "array",
847
- binding: `=[${fileBindings.join(", ")}]`,
848
- description: ANALYZE_FILES_INPUT_DESCRIPTION,
849
- schema: {
850
- type: "array",
851
- items: { $ref: "#/definitions/job-attachment" },
852
- definitions: { "job-attachment": JobAttachmentSchema }
853
- }
854
- });
855
- }
856
- if (syntheticVars.length === 0)
857
- return variables;
858
- const filtered = variables.filter((v) => !supersededVarIds.has(v.id));
859
- return [...filtered, ...syntheticVars];
860
- }
861
- function mergeCompositeConnectorInputs(variables, agentId, nodesById, edges) {
862
- let descendants = collectArtifactDescendants(agentId, edges);
863
- if (descendants.size === 0) {
864
- descendants = new Set(edges.filter((e) => e.source === agentId).map((e) => e.target));
865
- }
866
- const existingIds = new Set(variables.map((v) => v.id));
867
- const synthetic = [];
868
- for (const descId of descendants) {
869
- const node = nodesById.get(descId);
870
- const nodeType = node?.data?.type ?? node?.type;
871
- if (!node || !nodeType?.startsWith("uipath.agent.resource.tool.connector"))
872
- continue;
873
- for (const input of collectCompositeConnectorInputs(node)) {
874
- if (existingIds.has(input.id))
875
- continue;
876
- existingIds.add(input.id);
877
- synthetic.push(input);
878
- }
879
- }
880
- return synthetic.length === 0 ? variables : [...variables, ...synthetic];
881
- }
882
- function deriveMergedAgentInputVariables(rawVariables, agentId, nodes, edges, encoding = DEFAULT_AGENT_INPUT_ENCODING, resolveSourceType) {
883
- const nodesById = new Map(nodes.map((n) => [n.id, n]));
884
- const withFiles = mergeAnalyzeFilesInputs(rawVariables, agentId, nodesById, edges, encoding, resolveSourceType);
885
- return mergeCompositeConnectorInputs(withFiles, agentId, nodesById, edges);
886
- }
887
- function preDeriveAgentInputDefinitions(nodes, edges, options = {}) {
888
- const { resolveSourceType, pruneUnreferenced, processedAgentIds, getAncestorLoops, encoding = DEFAULT_AGENT_INPUT_ENCODING } = options;
889
- const nodesById = /* @__PURE__ */ new Map;
890
- for (const n of nodes)
891
- nodesById.set(n.id, n);
892
- for (const agent of nodes) {
893
- const type = agent.data?.type ?? agent.type;
894
- if (!isAgentNodeType(type))
895
- continue;
896
- if (!agent.data)
897
- continue;
898
- if (processedAgentIds?.has(agent.id))
899
- continue;
900
- const ancestorLoops = getAncestorLoops?.(agent.id) ?? [];
901
- let ancestorLoopInfo;
902
- if (ancestorLoops.length > 0) {
903
- ancestorLoopInfo = /* @__PURE__ */ new Map;
904
- ancestorLoops.forEach((loop, idx) => ancestorLoopInfo.set(loop.id, { index: idx, collectionExpr: loop.collectionExpr }));
905
- }
906
- const { variables } = scanAgentClusterRefs(agent, nodesById, edges, resolveSourceType, ancestorLoopInfo, pruneUnreferenced, encoding);
907
- const withFiles = mergeAnalyzeFilesInputs(variables, agent.id, nodesById, edges, encoding, resolveSourceType, ancestorLoopInfo);
908
- const mergedVariables = mergeCompositeConnectorInputs(withFiles, agent.id, nodesById, edges);
909
- if (!agent.data.inputs)
910
- agent.data.inputs = {};
911
- agent.data.inputs.derivedInputDefinition = buildDerivedInputDefinition(mergedVariables, encoding);
912
- processedAgentIds?.add(agent.id);
913
- }
914
- }
915
- function toJsExpression(binding) {
916
- if (!binding)
917
- return binding;
918
- if (binding.startsWith("=js:"))
919
- return binding;
920
- if (binding.startsWith("="))
921
- return `=js:${binding.slice(1)}`;
922
- const template = serializeTemplateInterpolations(binding);
923
- if (template !== binding)
924
- return template;
925
- return `=js:${binding}`;
926
- }
927
- function bindingExprBody(binding) {
928
- if (!binding)
929
- return binding;
930
- if (binding.startsWith("=js:"))
931
- return binding.slice(4);
932
- if (binding.startsWith("="))
933
- return binding.slice(1);
934
- return binding;
935
- }
936
- function objectLiteralKey(key) {
937
- const isSafeIdent = /^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(key);
938
- if (isSafeIdent && key !== "__proto__")
939
- return key;
940
- return `[${JSON.stringify(key)}]`;
941
- }
942
- var ExprLeaf = class {
943
- constructor(body) {
944
- this.body = body;
945
- }
946
- };
947
- function insertValueLeaf(root, path, exprBody) {
948
- let node = root;
949
- for (let i = 0;i < path.length - 1; i++) {
950
- const existing = node.get(path[i]);
951
- if (existing instanceof ExprLeaf)
952
- return;
953
- if (existing) {
954
- node = existing;
955
- } else {
956
- const child = /* @__PURE__ */ new Map;
957
- node.set(path[i], child);
958
- node = child;
959
- }
960
- }
961
- const last = path.at(-1);
962
- if (node.get(last) instanceof Map)
963
- return;
964
- node.set(last, new ExprLeaf(exprBody));
965
- }
966
- function emitValueTree(node) {
967
- if (node instanceof ExprLeaf)
968
- return node.body;
969
- const parts = [];
970
- for (const [key, child] of node)
971
- parts.push(`${objectLiteralKey(key)}: ${emitValueTree(child)}`);
972
- return `{${parts.join(", ")}}`;
973
- }
974
- function buildRootObjectLiteral(entries) {
975
- const root = /* @__PURE__ */ new Map;
976
- for (const { path, exprBody } of [...entries].sort((a, b) => a.path.length - b.path.length)) {
977
- if (path.length > 0)
978
- insertValueLeaf(root, path, exprBody);
979
- }
980
- return emitValueTree(root);
981
- }
982
- function warnIfArrayRootDrop(rootType, id, root, segs) {
983
- if (rootType !== "array")
984
- return;
985
- console.warn(`[agent-cluster-rewrite] dropping agent input "${id}": root "${root}" is an array, so the runtime cannot navigate ".${segs.slice(1).join(".")}" off it. Bind "$vars.${id}" to a workflow variable instead.`);
986
- }
987
- function flatInputEntry(d) {
988
- if (!d.binding)
989
- return null;
990
- const entry = { name: d.id, value: toJsExpression(d.binding) };
991
- if (d.type && d.type !== "string")
992
- entry.type = d.type;
993
- return entry;
994
- }
995
- function buildDerivedInputDefinition(variables, encoding = DEFAULT_AGENT_INPUT_ENCODING) {
996
- return encoding === "flat" ? buildFlatInputDefinition(variables) : buildNestedInputDefinition(variables);
997
- }
998
- function buildFlatInputDefinition(variables) {
999
- const flat = [];
1000
- const seen = /* @__PURE__ */ new Set;
1001
- for (const d of variables) {
1002
- let name = d.id;
1003
- if (!isSyntheticAgentInputId(d.id)) {
1004
- const { prefix, path } = decodeFlatName(d.id);
1005
- name = encodeFlatName(prefix, path, "flat");
1006
- }
1007
- const entry = flatInputEntry({ ...d, id: name });
1008
- if (!entry || seen.has(entry.name))
1009
- continue;
1010
- seen.add(entry.name);
1011
- flat.push(entry);
1012
- }
1013
- return flat;
1014
- }
1015
- function buildNestedInputDefinition(variables) {
1016
- const rootOrder = [];
1017
- const rootGroups = /* @__PURE__ */ new Map;
1018
- const flat = [];
1019
- const wholeRoots = new Set(variables.filter((d) => !d.id.includes(".") && d.binding).map((d) => d.id));
1020
- const typeById = new Map(variables.map((d) => [d.id, d.type]));
1021
- for (const d of variables) {
1022
- const segs = d.id.split(".");
1023
- const root = segs[0];
1024
- if (segs.length === 1) {
1025
- const entry = flatInputEntry(d);
1026
- if (entry)
1027
- flat.push(entry);
1028
- continue;
1029
- }
1030
- if (wholeRoots.has(root)) {
1031
- warnIfArrayRootDrop(typeById.get(root), d.id, root, segs);
1032
- continue;
1033
- }
1034
- if (!d.binding)
1035
- continue;
1036
- let group = rootGroups.get(root);
1037
- if (!group) {
1038
- group = [];
1039
- rootGroups.set(root, group);
1040
- rootOrder.push(root);
1041
- }
1042
- group.push({ path: segs.slice(1), exprBody: bindingExprBody(d.binding) });
1043
- }
1044
- const nested = rootOrder.map((root) => ({
1045
- name: root,
1046
- type: "object",
1047
- value: `=js:(${buildRootObjectLiteral(rootGroups.get(root) ?? [])})`
1048
- }));
1049
- return [...nested, ...flat];
1050
- }
1051
- function rewriteStringsDeep(value, fn) {
1052
- if (value == null)
1053
- return value;
1054
- if (typeof value === "string")
1055
- return fn(value);
1056
- if (Array.isArray(value)) {
1057
- let changed = false;
1058
- const next = value.map((v) => {
1059
- const nv = rewriteStringsDeep(v, fn);
1060
- if (nv !== v)
1061
- changed = true;
1062
- return nv;
1063
- });
1064
- return changed ? next : value;
1065
- }
1066
- if (typeof value === "object") {
1067
- const entries = Object.entries(value);
1068
- let changed = false;
1069
- const next = {};
1070
- for (const [k, v] of entries) {
1071
- const nv = rewriteStringsDeep(v, fn);
1072
- if (nv !== v)
1073
- changed = true;
1074
- next[k] = nv;
1075
- }
1076
- return changed ? next : value;
1077
- }
1078
- return value;
1079
- }
1080
-
1081
- export { ITERATOR_FIELDS, SCRIPT_TASK_NODE_TYPES, DATA_TRANSFORM_NODE_TYPES, unwrapScriptBody, serializeTemplateInterpolations, transformExpression, serializeExpressionValueAsMappingSource, serializeExpressionValue, transformNodeExpressions, transformEdgeExpression, DEFAULT_AGENT_INPUT_ENCODING, SCHEMA_CONTAINER_MARKER, getContainerChildProps, CONNECTOR_PARAM_BUCKET_KEYS, extractAgentInputName, isCompositeConnectorValue, compositeConnectorInputKey, isSyntheticAgentInputId, collectCompositeConnectorInputs, encodeFlatName, decodeFlatName, rewriteInputTokensToSource, UnresolvedAgentInputTypeError, AmbiguousAgentInputRootError, detectAmbiguousAgentInputRoot, buildAgentInputTypeResolver, canPruneAgentInputs, deriveAgentInputVariables, scanSourceRefsDeep, collectInlineAgentClusterInputs, collectInlineAgentInputsFromAgent, collectArtifactDescendants, mergeCompositeConnectorInputs, deriveMergedAgentInputVariables, preDeriveAgentInputDefinitions, buildDerivedInputDefinition, rewriteStringsDeep };
1082
-
1083
- //# debugId=678BEB3000A25CC964756E2164756E21