@uipath/flow-tool 1.201.0-preview.133 → 1.202.0-preview.134

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 (234) hide show
  1. package/dist/{authoring-7r6g06c7.js → authoring-dcmray5j.js} +74 -48
  2. package/dist/binding-service-ftssy5j8.js +141 -0
  3. package/dist/{browser-strategy-rkcvc6tn.js → browser-strategy-6atc7v8s.js} +3 -3
  4. package/dist/connector-service-fsvcesfa.js +948 -0
  5. package/dist/{conversion-H2VEEYLB-ng48mbf7.js → conversion-QANACVCM-zs0hhfjv.js} +39 -33
  6. package/dist/{de-5KVP66U6-f7knj511.js → de-5KVP66U6-1bnf4zt5.js} +52 -52
  7. package/dist/de-6U7ECGHH-xwsw33fk.js +35 -0
  8. package/dist/{de-5HU6GFWV-4EZK6G7N-yrh21f52.js → de-7XQXX2DK-IDWR6CAR-n4z245kt.js} +857 -845
  9. package/dist/{de-5HU6GFWV-zheyw6d2.js → de-7XQXX2DK-tqdy5n2b.js} +857 -845
  10. package/dist/{de-HKTOVV4H-d5yw5j21.js → de-HKTOVV4H-pe9w0xn8.js} +46 -46
  11. package/dist/{de-XLT4QPIP-0rtw349w.js → de-XLT4QPIP-kj81dxjc.js} +9 -9
  12. package/dist/debug-conversation-trigger-xjcc5wtr.js +41 -0
  13. package/dist/debug-http-client-94tc1srs.js +31 -0
  14. package/dist/debug-service-kzqjmam7.js +58 -0
  15. package/dist/edge-service-kh32a63z.js +162 -0
  16. package/dist/{elk.bundled-pydbzeez.js → elk.bundled-vpsbxz0p.js} +3 -3
  17. package/dist/{en-MABQK6C4-REWE2WG2-8dp4cqdg.js → en-5ZGC5VQ3-EWX7ILY7-rmtj70fk.js} +898 -898
  18. package/dist/{en-MABQK6C4-nkzq2j8t.js → en-5ZGC5VQ3-h581y30k.js} +897 -897
  19. package/dist/en-EPWMLP2N-2wvge238.js +28 -0
  20. package/dist/{en-UNT7BE26-rhh65jry.js → en-LQHKFSEY-vvbe8ve9.js} +13 -11
  21. package/dist/{en-P4AS26D7-szrzfxz1.js → en-P4AS26D7-zptp77bm.js} +45 -45
  22. package/dist/{en-4KXU7N7B-66fntxa2.js → en-X3S6IZ5J-nhkg6pwn.js} +54 -60
  23. package/dist/{es-MX-H2EAXLYI-qwnqt48x.js → es-MX-H2EAXLYI-j42kfkxy.js} +46 -46
  24. package/dist/es-MX-NHTIP5YM-ar6zfx95.js +35 -0
  25. package/dist/{es-MX-OKNDG2NH-c1k1s1tg.js → es-MX-OKNDG2NH-tcac6j4g.js} +9 -9
  26. package/dist/{es-MX-POESXYP2-UW6VP5QI-cd3a79g9.js → es-MX-U2VN3SZW-KYAJ2ONK-kdram1g1.js} +857 -845
  27. package/dist/{es-MX-POESXYP2-9538722k.js → es-MX-U2VN3SZW-anynsmd8.js} +857 -845
  28. package/dist/{es-MX-XAVLOQW3-9b3cp9n8.js → es-MX-XAVLOQW3-q00km2y7.js} +52 -52
  29. package/dist/{es-NQICVYSQ-aa9z3nhs.js → es-NQICVYSQ-3dtqgget.js} +9 -9
  30. package/dist/{es-O4PAV2CR-jwfaawwk.js → es-O4PAV2CR-0g23ve3v.js} +46 -46
  31. package/dist/es-PQ3RA33Q-y4kxhjfr.js +35 -0
  32. package/dist/{es-VFPNVMP5-thm0z9sr.js → es-VFPNVMP5-bx2c337j.js} +52 -52
  33. package/dist/{es-LUTYN7U7-IY5QWOUF-k2aefzc0.js → es-ZGCPPOME-24PJEGPV-rn86z9kn.js} +857 -845
  34. package/dist/{es-LUTYN7U7-ye5zn4sn.js → es-ZGCPPOME-8gazspjj.js} +857 -845
  35. package/dist/flow-api-ceb6ex9z.js +36 -0
  36. package/dist/flow-debug-service-k8nmhy6h.js +741 -0
  37. package/dist/flow-eval-node-target-6xsgncx3.js +44 -0
  38. package/dist/flow-eval-run-service-g4a9fz4n.js +961 -0
  39. package/dist/flow-eval-service-3npsqpmq.js +1338 -0
  40. package/dist/flow-init-service-d06zcqj1.js +35 -0
  41. package/dist/flow-io-8makjhpp.js +36 -0
  42. package/dist/flow-migrate-service-4mg78e8e.js +119 -0
  43. package/dist/flow-pack-service-v96aee58.js +280 -0
  44. package/dist/flow-validate-service-6e3phcgw.js +57 -0
  45. package/dist/{fr-5YRGHXF5-q6b63yg0.js → fr-5YRGHXF5-kz1ywpv6.js} +46 -46
  46. package/dist/{fr-E5MDO4EG-exvrs7ge.js → fr-E5MDO4EG-c3mkty2t.js} +52 -52
  47. package/dist/{fr-PFHIL7YZ-cxnshwa8.js → fr-PFHIL7YZ-2n589p47.js} +9 -9
  48. package/dist/fr-R4L3OAWI-30khpsmn.js +35 -0
  49. package/dist/{fr-LJIK56LW-STG6QR3T-cextvv8q.js → fr-T3G5GZCT-TU4IKBEG-k6xz1s1f.js} +857 -845
  50. package/dist/{fr-LJIK56LW-xf3xf2kh.js → fr-T3G5GZCT-y3f7xb1q.js} +857 -845
  51. package/dist/governance-fetcher-c174x54w.js +391 -0
  52. package/dist/headless-h1myzz32.js +177196 -0
  53. package/dist/hitl-service-s0kqrxda.js +256 -0
  54. package/dist/index-1kgxzh8x.js +143 -0
  55. package/dist/index-4zrwgb3c.js +111 -0
  56. package/dist/index-8ebsw1we.js +4801 -0
  57. package/dist/{index-dhcd9b82.js → index-d5ddwgr3.js} +166 -81
  58. package/dist/{index-er6vy3jk.js → index-eybzsdcc.js} +295 -317
  59. package/dist/{index-hsadteg4.js → index-h8cph72k.js} +4 -4
  60. package/dist/index-hxxk3stj.js +630 -0
  61. package/dist/{index-p50kx6jv.js → index-k5tbd184.js} +276 -276
  62. package/dist/{index-9f8q2ege.js → index-p3vk57z7.js} +27 -27
  63. package/dist/index.js +29 -32
  64. package/dist/{index.umd.min-drpc57vn.js → index.umd.min-fqefd9kn.js} +3 -3
  65. package/dist/init.js +24 -25
  66. package/dist/input-reader-kcdbvd7q.js +11 -0
  67. package/dist/{ja-FGEGLBJ3-w9byjhze.js → ja-BI5K3JDZ-77zat4z2.js} +857 -845
  68. package/dist/{ja-FGEGLBJ3-MG3BSWXD-vq19zt2p.js → ja-BI5K3JDZ-GTIHISTZ-s6n3r2ab.js} +857 -845
  69. package/dist/{ja-DPO5PPLO-s2a7j3nj.js → ja-DPO5PPLO-mysfmznx.js} +52 -52
  70. package/dist/{ja-P4OSE367-8ywxep9a.js → ja-P4OSE367-srr3qypg.js} +9 -9
  71. package/dist/{ja-SDAPAVCR-943p5gx7.js → ja-SDAPAVCR-kg39dfap.js} +46 -46
  72. package/dist/ja-ZHKCBE5W-x73w6x3e.js +35 -0
  73. package/dist/{js-yaml-cggj6w7q.js → js-yaml-87tvr6f6.js} +16 -16
  74. package/dist/known-types-a20evmmg.js +20 -0
  75. package/dist/ko-6W7OGLLB-mnmqc584.js +35 -0
  76. package/dist/{ko-ITOPNIYI-qz39kamf.js → ko-ITOPNIYI-hmxd2asd.js} +52 -52
  77. package/dist/{ko-TUAK3G3A-s25w0ckg.js → ko-JOBF5V7N-4bv0mjje.js} +857 -845
  78. package/dist/{ko-TUAK3G3A-TBEBKOTM-ns78t2rv.js → ko-JOBF5V7N-O7T4HKIE-ape840y0.js} +857 -845
  79. package/dist/{ko-NAGOZLC3-wb3y9yhh.js → ko-NAGOZLC3-gaxxsnd2.js} +46 -46
  80. package/dist/{ko-PYOS2KJP-5sbj5bp8.js → ko-PYOS2KJP-e7dshyxy.js} +9 -9
  81. package/dist/localization-h8a53z6p.js +47 -0
  82. package/dist/node-service-362d7a6c.js +70 -0
  83. package/dist/{node-strategy-8gzp67xs.js → node-strategy-gc4sg6a2.js} +132 -16
  84. package/dist/node-sync-service-09x1zwp9.js +42 -0
  85. package/dist/{node-qyxvhbw6.js → node-x3a5p2p3.js} +7931 -7132
  86. package/dist/{packager-tool-9qecd4wb.js → packager-tool-0gctz400.js} +5 -2
  87. package/dist/{packager-tool-1cb0d5e0.js → packager-tool-0v3s8r01.js} +2 -2
  88. package/dist/{packager-tool-gasyxww9.js → packager-tool-1r8c83fc.js} +13388 -19366
  89. package/dist/{packager-tool-wckvcay0.js → packager-tool-1yh8g550.js} +9 -7
  90. package/dist/{packager-tool-cvwr40ax.js → packager-tool-226mh80j.js} +1425 -550
  91. package/dist/packager-tool-27avrkyk.js +15 -0
  92. package/dist/packager-tool-2vnjw67f.js +79 -0
  93. package/dist/packager-tool-2wefykg9.js +106 -0
  94. package/dist/{packager-tool-sf18719z.js → packager-tool-38ydychm.js} +17 -13
  95. package/dist/packager-tool-48f4ekg5.js +262 -0
  96. package/dist/{packager-tool-7yjpwj92.js → packager-tool-4hx14snw.js} +49 -48
  97. package/dist/{packager-tool-3wygxefb.js → packager-tool-58q3tvh7.js} +10 -10
  98. package/dist/packager-tool-5zrgh5vh.js +457 -0
  99. package/dist/packager-tool-633f58dt.js +8185 -0
  100. package/dist/packager-tool-7exrv6w7.js +23 -0
  101. package/dist/packager-tool-88cscbcz.js +757 -0
  102. package/dist/packager-tool-8aqtjswp.js +4234 -0
  103. package/dist/packager-tool-8j92afwp.js +58 -0
  104. package/dist/{packager-tool-vdd02vns.js → packager-tool-9bec251q.js} +543 -1493
  105. package/dist/packager-tool-a1hbfmws.js +399 -0
  106. package/dist/{packager-tool-tq9q9m77.js → packager-tool-a42jnpy5.js} +3 -9
  107. package/dist/packager-tool-abbtfk2v.js +54 -0
  108. package/dist/packager-tool-ae4jp7gn.js +121 -0
  109. package/dist/packager-tool-cabxfk33.js +540 -0
  110. package/dist/packager-tool-d1hvc3jz.js +54 -0
  111. package/dist/packager-tool-e0p2zsyc.js +97 -0
  112. package/dist/{packager-tool-m6x5sczh.js → packager-tool-em5r6g6j.js} +14 -21
  113. package/dist/packager-tool-eypvc2kv.js +23 -0
  114. package/dist/packager-tool-f0kd5kq4.js +2327 -0
  115. package/dist/packager-tool-gbgfwx8f.js +2 -0
  116. package/dist/packager-tool-gcy5q3jv.js +64 -0
  117. package/dist/packager-tool-h2qfyjf1.js +85 -0
  118. package/dist/packager-tool-h66mj8f4.js +33289 -0
  119. package/dist/{packager-tool-pkq70dec.js → packager-tool-h718nvz5.js} +31 -3
  120. package/dist/packager-tool-k99nf3pq.js +25 -0
  121. package/dist/packager-tool-kdasymdr.js +443 -0
  122. package/dist/{packager-tool-jysvpt8p.js → packager-tool-m3wkcxf5.js} +2 -2
  123. package/dist/{packager-tool-78a3szsp.js → packager-tool-m5qfverj.js} +1720 -2014
  124. package/dist/packager-tool-nq4rcqqg.js +87 -0
  125. package/dist/packager-tool-p6eyemwk.js +77 -0
  126. package/dist/{packager-tool-djagtpkt.js → packager-tool-p9stswjj.js} +2858 -19342
  127. package/dist/{packager-tool-y3dezh8k.js → packager-tool-rs6jm14d.js} +6 -4
  128. package/dist/{packager-tool-c42dp002.js → packager-tool-s36jpqhd.js} +2 -2
  129. package/dist/packager-tool-s9ff3kk4.js +6 -0
  130. package/dist/packager-tool-ss7cz4qx.js +289 -0
  131. package/dist/packager-tool-tf3d2y8z.js +31 -0
  132. package/dist/packager-tool-tn5e7wnb.js +384 -0
  133. package/dist/packager-tool-vpqyvh4c.js +304 -0
  134. package/dist/packager-tool-wnfbe9ra.js +188 -0
  135. package/dist/packager-tool-wzgne1ff.js +18 -0
  136. package/dist/{packager-tool-2xgc101h.js → packager-tool-x9wxe2bj.js} +1121 -1846
  137. package/dist/{packager-tool-1gt6js73.js → packager-tool-xhzfwa5p.js} +6 -4
  138. package/dist/packager-tool-xjbyd9mj.js +602 -0
  139. package/dist/packager-tool-xp46mzvq.js +4892 -0
  140. package/dist/{packager-tool-5arsyj36.js → packager-tool-yc4kw997.js} +4 -2
  141. package/dist/packager-tool-ywe4b330.js +4945 -0
  142. package/dist/{packager-tool-0567pxpm.js → packager-tool-z9bfhmm5.js} +10 -10
  143. package/dist/{packager-tool-gmrwvnyh.js → packager-tool-zfrp8ecz.js} +8 -58
  144. package/dist/packager-tool.js +17 -17
  145. package/dist/{pt-7TR74ZMB-1g8my56g.js → pt-7TR74ZMB-bmphh4x2.js} +46 -46
  146. package/dist/{pt-BR-7XGDXRDJ-TR5D7JYL-533wvy7p.js → pt-BR-7DYX2YPT-LZYH4YFD-bx43vx3z.js} +857 -845
  147. package/dist/{pt-BR-7XGDXRDJ-espnkgrj.js → pt-BR-7DYX2YPT-fqxqzqtf.js} +857 -845
  148. package/dist/{pt-BR-BXURWX4W-dqr4dnf9.js → pt-BR-BXURWX4W-bwfcwhk1.js} +52 -52
  149. package/dist/{pt-BR-DXXSYJDO-bn84ewp7.js → pt-BR-DXXSYJDO-a2tp13v7.js} +46 -46
  150. package/dist/pt-BR-UQCYHKMJ-q78n7q70.js +35 -0
  151. package/dist/{pt-BR-Z3TUDJHM-n7ngej6s.js → pt-BR-Z3TUDJHM-8v73x9s7.js} +9 -9
  152. package/dist/pt-D6A6MVB2-yvxca8vz.js +35 -0
  153. package/dist/{pt-TMVOOITK-myha14p9.js → pt-HTXGGX6Y-97t21dty.js} +857 -845
  154. package/dist/{pt-TMVOOITK-H2ADYHSD-ezpggv33.js → pt-HTXGGX6Y-ZHQSDFKI-vehfxadc.js} +857 -845
  155. package/dist/{pt-KSBWHAVQ-hd52bpsz.js → pt-KSBWHAVQ-mhvhgr2p.js} +9 -9
  156. package/dist/{pt-YI4VE4YQ-v7gjeg82.js → pt-YI4VE4YQ-wdkn2dcf.js} +52 -52
  157. package/dist/ro-4TMBHS5M-jz0anpt6.js +35 -0
  158. package/dist/{ro-BJFER5OI-334n28rj.js → ro-BJFER5OI-83tq8vxh.js} +46 -46
  159. package/dist/{ro-2VALF3S5-NXBJUEZN-nqw1zs33.js → ro-KTNQ3MNU-XIE6YPQN-gen8p82z.js} +857 -845
  160. package/dist/{ro-2VALF3S5-cdz5afkr.js → ro-KTNQ3MNU-y08n1x5g.js} +857 -845
  161. package/dist/{ro-RKXZUG7Z-cm3xn3fj.js → ro-RKXZUG7Z-nndrrsq7.js} +52 -52
  162. package/dist/{ro-VZUZTAMR-tccygznf.js → ro-VZUZTAMR-f4q0g3em.js} +9 -9
  163. package/dist/{ru-GSCT4ARZ-qj8dm4dp.js → ru-GSCT4ARZ-1sa9wbr8.js} +1 -1
  164. package/dist/{ru-GSCT4ARZ-FTVCGQTL-5nh4jf2e.js → ru-GSCT4ARZ-FTVCGQTL-gee86v14.js} +1 -1
  165. package/dist/{ru-T73OPRTC-mp5gn7gs.js → ru-T73OPRTC-4knxw497.js} +1 -1
  166. package/dist/{ru-WBLQ5B2U-awt245ky.js → ru-WBLQ5B2U-8r3c7v6d.js} +1 -1
  167. package/dist/ru-WBLQ5B2U-kdey8qa4.js +10 -0
  168. package/dist/{ru-WBLQ5B2U-57ezmxzz.js → ru-WBLQ5B2U-wemdzdqd.js} +1 -1
  169. package/dist/{serialization-GAW7UFOK-9hkdmmd2.js → serialization-J5QK3HPY-bgewpt6f.js} +158 -152
  170. package/dist/services/expression-validator.d.ts +28 -0
  171. package/dist/services/flow-eval-schema/types.d.ts +17 -0
  172. package/dist/services/flow-validate-service.d.ts +26 -0
  173. package/dist/services/node-validators/js-expression-syntax-validator.d.ts +6 -3
  174. package/dist/services/tidy-service.d.ts +26 -0
  175. package/dist/services/vars-reference-rule.d.ts +156 -0
  176. package/dist/shared-utils-jnsfb1v5.js +20 -0
  177. package/dist/tidy-service-6eyh886t.js +34 -0
  178. package/dist/tool.js +30 -33
  179. package/dist/{tr-AA6O2WSR-ga1xnymp.js → tr-AA6O2WSR-86ba4bdf.js} +52 -52
  180. package/dist/tr-GSQQ6SOT-hv1gyeaa.js +35 -0
  181. package/dist/{tr-RQTZ2DMS-bpgd4kma.js → tr-RQTZ2DMS-w3cwv8s4.js} +46 -46
  182. package/dist/{tr-W4AVRSQ4-bt3qqqdy.js → tr-W4AVRSQ4-hjr81xzk.js} +9 -9
  183. package/dist/{tr-RIFCEXFH-BZS7S7QK-q465b62g.js → tr-XHSSPNK7-GW5KVXR3-2w3f1ss6.js} +857 -845
  184. package/dist/{tr-RIFCEXFH-hgkb4g8y.js → tr-XHSSPNK7-cmqyc4wd.js} +857 -845
  185. package/dist/utils/handle-expansion.d.ts +16 -0
  186. package/dist/validation.js +47 -27
  187. package/dist/variable-service-6by7q33e.js +152 -0
  188. package/dist/wait-for-flow-job-zrhcm8we.js +134 -0
  189. package/dist/{zh-CN-IP3FMXWM-H3JI2XUM-ta4yac7h.js → zh-CN-2EHQT23P-T5XRQCVS-ac17dpc1.js} +857 -845
  190. package/dist/{zh-CN-IP3FMXWM-1cfarhcp.js → zh-CN-2EHQT23P-mr63c4xz.js} +857 -845
  191. package/dist/{zh-CN-6YRAN57T-j7jp34ws.js → zh-CN-6YRAN57T-rd7x2tqs.js} +9 -9
  192. package/dist/zh-CN-EDFRBU32-vvj7tmaq.js +35 -0
  193. package/dist/{zh-CN-R2KLHXQV-wttmznep.js → zh-CN-R2KLHXQV-agqr45ds.js} +52 -52
  194. package/dist/{zh-CN-ZC6LT4IN-vty9mvv8.js → zh-CN-ZC6LT4IN-kbzvvzz5.js} +46 -46
  195. package/dist/zh-TW-HAICM6DE-rh7k3cq7.js +35 -0
  196. package/dist/{zh-TW-AGIDXIPF-R4XZRDJZ-cgxxz5k4.js → zh-TW-MGZCE5BT-P6FLIUAR-zmq07vhs.js} +857 -845
  197. package/dist/{zh-TW-AGIDXIPF-n6r6w7vy.js → zh-TW-MGZCE5BT-c4ekmrz9.js} +857 -845
  198. package/dist/{zh-TW-R7Y5KVMU-q81f4z2p.js → zh-TW-R7Y5KVMU-m61y07e3.js} +46 -46
  199. package/dist/{zh-TW-RJGCQANM-gqn0aca0.js → zh-TW-RJGCQANM-w0x3qc1p.js} +52 -52
  200. package/dist/{zh-TW-SO2245GN-m5kh88bg.js → zh-TW-SO2245GN-n2bn1gg4.js} +9 -9
  201. package/package.json +2 -2
  202. package/dist/de-5KVP66U6-t37qr521.js +0 -161
  203. package/dist/de-WMKOGI7B-6dc1zdnp.js +0 -143
  204. package/dist/en-4KXU7N7B-24v330b5.js +0 -118
  205. package/dist/en-X4DLPKLJ-1h9gj5c1.js +0 -110
  206. package/dist/es-BVPGJUWA-0k59eqfv.js +0 -143
  207. package/dist/es-MX-U6YL5KQX-k4qvpgd4.js +0 -143
  208. package/dist/es-MX-XAVLOQW3-47a405kf.js +0 -161
  209. package/dist/es-VFPNVMP5-6sftsdxe.js +0 -161
  210. package/dist/fr-E5MDO4EG-f3x1jeqw.js +0 -161
  211. package/dist/fr-EKTTDR7Z-m2t68j0m.js +0 -143
  212. package/dist/ja-DPO5PPLO-fmbg7zt2.js +0 -161
  213. package/dist/ja-Y2YBTXNN-5sszk2zv.js +0 -143
  214. package/dist/ko-ITOPNIYI-aqy82jk8.js +0 -161
  215. package/dist/ko-S33XAV26-rfsv9myd.js +0 -143
  216. package/dist/packager-tool-0sz8se22.js +0 -10671
  217. package/dist/packager-tool-fgdsmd8k.js +0 -9850
  218. package/dist/packager-tool-p9j43p8h.js +0 -115
  219. package/dist/packager-tool-v74yk918.js +0 -107
  220. package/dist/packager-tool-xj0agqpk.js +0 -11
  221. package/dist/pt-BR-BXURWX4W-xzyndmrx.js +0 -161
  222. package/dist/pt-BR-JO45SCNI-mt93s33c.js +0 -143
  223. package/dist/pt-W3NA4LIZ-fwd1q4j0.js +0 -143
  224. package/dist/pt-YI4VE4YQ-521681zf.js +0 -161
  225. package/dist/ro-RKXZUG7Z-pdztdafr.js +0 -161
  226. package/dist/ro-WLKX6HF5-b9tj8q67.js +0 -143
  227. package/dist/ru-WBLQ5B2U-8xd4gpv2.js +0 -10
  228. package/dist/ru-WBLQ5B2U-mswqs9wc.js +0 -10
  229. package/dist/tr-3U2W2XCA-43ptfc0m.js +0 -143
  230. package/dist/tr-AA6O2WSR-bj9n80k8.js +0 -161
  231. package/dist/zh-CN-IPZYQR3P-egjmvyjf.js +0 -143
  232. package/dist/zh-CN-R2KLHXQV-x6gnk2n0.js +0 -161
  233. package/dist/zh-TW-RJGCQANM-tt8j5wv2.js +0 -161
  234. package/dist/zh-TW-YPVSQVGT-b378ztph.js +0 -143
@@ -0,0 +1,15 @@
1
+ // src/services/binding-resource-types.ts
2
+ var VALID_RESOURCE_TYPES = [
3
+ "connection",
4
+ "queue",
5
+ "process",
6
+ "folderKey",
7
+ "index",
8
+ "memorySpace",
9
+ "bucket",
10
+ "app"
11
+ ];
12
+
13
+ export { VALID_RESOURCE_TYPES };
14
+
15
+ //# debugId=1EBE786778F72E9364756E2164756E21
@@ -0,0 +1,79 @@
1
+ import {
2
+ getMigrationChain,
3
+ migrateWorkflowToFloor,
4
+ minimumSupportedVersion,
5
+ registerFlowMigrationsI18n,
6
+ runtimeMigrations,
7
+ runtimeVersion
8
+ } from "./packager-tool-1r8c83fc.js";
9
+ import {
10
+ instance
11
+ } from "./packager-tool-m5qfverj.js";
12
+
13
+ // src/services/flow-migration-check.ts
14
+ if (!instance.isInitialized) {
15
+ instance.init({
16
+ lng: "en",
17
+ fallbackLng: "en",
18
+ defaultNS: "validation",
19
+ resources: {},
20
+ interpolation: { escapeValue: false }
21
+ });
22
+ }
23
+ registerFlowMigrationsI18n(instance);
24
+ function captureMigrationIssues() {
25
+ const paths = [];
26
+ const tracker = {
27
+ trackError: (_error, _severity, details) => {
28
+ if (!("issues" in details))
29
+ return;
30
+ const issues = details.issues;
31
+ if (!Array.isArray(issues))
32
+ return;
33
+ for (const issue of issues) {
34
+ if (!issue || typeof issue !== "object")
35
+ continue;
36
+ if (!("path" in issue))
37
+ continue;
38
+ const path = issue.path;
39
+ if (Array.isArray(path) && path.length > 0) {
40
+ paths.push(path.map(String).join("."));
41
+ }
42
+ }
43
+ }
44
+ };
45
+ return { tracker, fieldPaths: () => [...new Set(paths)] };
46
+ }
47
+ function formatMigrationFailureMessage(step, rawMessage, fieldPaths) {
48
+ const parts = [`Workflow migration failed at ${step}: ${rawMessage}.`];
49
+ if (fieldPaths.length > 0) {
50
+ const shown = fieldPaths.slice(0, 10);
51
+ const extra = fieldPaths.length > shown.length ? `, +${fieldPaths.length - shown.length} more` : "";
52
+ parts.push(`Offending field(s): ${shown.join(", ")}${extra}.`);
53
+ }
54
+ parts.push("Fix the flagged field(s) or re-scaffold the affected node, then re-run.");
55
+ return parts.join(" ");
56
+ }
57
+ function checkForwardMigration(rawWorkflow) {
58
+ try {
59
+ getMigrationChain(runtimeMigrations, String(rawWorkflow.version ?? ""), runtimeVersion);
60
+ } catch {
61
+ return { ok: true };
62
+ }
63
+ const { tracker, fieldPaths } = captureMigrationIssues();
64
+ const result = migrateWorkflowToFloor(runtimeMigrations, rawWorkflow, runtimeVersion, minimumSupportedVersion, tracker);
65
+ if (!result.error)
66
+ return { ok: true };
67
+ const paths = fieldPaths();
68
+ return {
69
+ ok: false,
70
+ step: result.error.step,
71
+ rawMessage: result.error.message,
72
+ message: formatMigrationFailureMessage(result.error.step, result.error.message, paths),
73
+ fieldPaths: paths
74
+ };
75
+ }
76
+
77
+ export { captureMigrationIssues, formatMigrationFailureMessage, checkForwardMigration };
78
+
79
+ //# debugId=0E30F23E96D10D1C64756E2164756E21
@@ -0,0 +1,106 @@
1
+ // src/services/connector-node-types.ts
2
+ function isConnectorTriggerType(nodeType) {
3
+ return nodeType.startsWith("uipath.connector.trigger");
4
+ }
5
+ function isConnectorWaitForEventType(nodeType) {
6
+ return nodeType.startsWith("uipath.connector.event");
7
+ }
8
+ function isEventDrivenConnectorType(nodeType) {
9
+ return isConnectorTriggerType(nodeType) || isConnectorWaitForEventType(nodeType);
10
+ }
11
+
12
+ // src/services/node-validators/cross-node-binding-validator.ts
13
+ var IDENTIFIER_ROOT_RE = /(?<![.\w$])([A-Za-z_$][\w$]*)\.(?!\.)/g;
14
+ function findCrossNodeBindingReferences(value, nodeIds) {
15
+ if (nodeIds.size === 0)
16
+ return [];
17
+ const trimmed = value.trimStart();
18
+ if (!trimmed.startsWith("=js:"))
19
+ return [];
20
+ const body = trimmed.slice(4);
21
+ const referenced = new Set;
22
+ const fixedBody = body.replace(IDENTIFIER_ROOT_RE, (match, identifier) => {
23
+ if (!nodeIds.has(identifier))
24
+ return match;
25
+ referenced.add(identifier);
26
+ return `$vars.${match}`;
27
+ });
28
+ if (referenced.size === 0)
29
+ return [];
30
+ const fixedValue = `=js:${fixedBody}`;
31
+ return [...referenced].map((nodeId) => ({ nodeId, fixedValue }));
32
+ }
33
+ function crossNodeBindingMessage(originalValue, ref) {
34
+ return `Expression "${originalValue}" references node "${ref.nodeId}" without the "$vars." prefix — ` + `cross-node outputs resolve to undefined at runtime (the bare identifier reads as an ` + `undeclared local, not the runtime variable). Use "${ref.fixedValue}" instead. ` + "See uipath-maestro-flow skill — node-output-wiring.md (FPD-538).";
35
+ }
36
+ function scanContainerForCrossNodeBindings(obj, path, nodeIds, severity, issues) {
37
+ if (typeof obj === "string") {
38
+ for (const ref of findCrossNodeBindingReferences(obj, nodeIds)) {
39
+ issues.push({
40
+ path,
41
+ severity,
42
+ message: crossNodeBindingMessage(obj, ref)
43
+ });
44
+ }
45
+ return;
46
+ }
47
+ if (Array.isArray(obj)) {
48
+ for (let i = 0;i < obj.length; i++) {
49
+ scanContainerForCrossNodeBindings(obj[i], `${path}[${i}]`, nodeIds, severity, issues);
50
+ }
51
+ return;
52
+ }
53
+ if (obj && typeof obj === "object") {
54
+ for (const [key, value] of Object.entries(obj)) {
55
+ scanContainerForCrossNodeBindings(value, `${path}.${key}`, nodeIds, severity, issues);
56
+ }
57
+ }
58
+ }
59
+ var PARAMETER_CONTAINER_KEYS = [
60
+ "bodyParameters",
61
+ "queryParameters",
62
+ "pathParameters"
63
+ ];
64
+ function scanDetailForCrossNodeBindings(detail, nodeIds, severity = "warning") {
65
+ if (!detail || nodeIds.size === 0)
66
+ return [];
67
+ const issues = [];
68
+ for (const containerKey of PARAMETER_CONTAINER_KEYS) {
69
+ const container = detail[containerKey];
70
+ if (!container || typeof container !== "object" || Array.isArray(container)) {
71
+ continue;
72
+ }
73
+ scanContainerForCrossNodeBindings(container, `detail.${containerKey}`, nodeIds, severity, issues);
74
+ }
75
+ return issues;
76
+ }
77
+ var crossNodeBindingValidator = {
78
+ id: "cross-node-binding",
79
+ appliesTo: (node) => {
80
+ const t = node.type;
81
+ if (!t)
82
+ return false;
83
+ if (isEventDrivenConnectorType(t))
84
+ return false;
85
+ return t.startsWith("uipath.connector.") || t === "core.action.http" || t === "core.action.http.v2";
86
+ },
87
+ validate: (node, context) => {
88
+ const nodeIds = context.nodeIds ?? new Set;
89
+ if (nodeIds.size === 0)
90
+ return [];
91
+ const rawDetail = node.inputs?.detail;
92
+ if (!rawDetail || typeof rawDetail !== "object" || Array.isArray(rawDetail)) {
93
+ return [];
94
+ }
95
+ const severity = context.strictBindings ? "error" : "warning";
96
+ const issues = scanDetailForCrossNodeBindings(rawDetail, nodeIds, severity);
97
+ return issues.map((issue) => ({
98
+ ...issue,
99
+ path: `nodes[${node.id}].inputs.${issue.path}`
100
+ }));
101
+ }
102
+ };
103
+
104
+ export { isConnectorTriggerType, isConnectorWaitForEventType, isEventDrivenConnectorType, scanDetailForCrossNodeBindings, crossNodeBindingValidator };
105
+
106
+ //# debugId=27B3D26268A7A36764756E2164756E21
@@ -1,28 +1,32 @@
1
- import {
2
- VALID_PROJECT_NAME_REGEX,
3
- nodeModuleRegistry,
4
- writeFlowWorkflow
5
- } from "./packager-tool-djagtpkt.js";
6
1
  import {
7
2
  prepareProjectLocation,
8
3
  tryRegisterProjectInParentSolution
9
- } from "./packager-tool-0sz8se22.js";
4
+ } from "./packager-tool-cabxfk33.js";
5
+ import {
6
+ writeFlowWorkflow
7
+ } from "./packager-tool-h2qfyjf1.js";
8
+ import {
9
+ createWorkflow
10
+ } from "./packager-tool-tn5e7wnb.js";
11
+ import {
12
+ VALID_PROJECT_NAME_REGEX
13
+ } from "./packager-tool-eypvc2kv.js";
10
14
  import {
11
15
  catchError
12
- } from "./packager-tool-cvwr40ax.js";
16
+ } from "./packager-tool-226mh80j.js";
13
17
  import {
14
18
  getFileSystem
15
- } from "./packager-tool-1cb0d5e0.js";
19
+ } from "./packager-tool-0v3s8r01.js";
16
20
  import {
17
- createWorkflow
18
- } from "./packager-tool-gasyxww9.js";
21
+ nodeModuleRegistry
22
+ } from "./packager-tool-p9stswjj.js";
19
23
  import {
20
24
  __require
21
- } from "./packager-tool-wckvcay0.js";
25
+ } from "./packager-tool-1yh8g550.js";
22
26
 
23
27
  // src/services/project-artifacts.ts
24
28
  async function ensureProjectArtifacts(args) {
25
- const { addProjectArtifactsToSolutionAsync } = await import("./index-dhcd9b82.js");
29
+ const { addProjectArtifactsToSolutionAsync } = await import("./index-d5ddwgr3.js");
26
30
  return addProjectArtifactsToSolutionAsync(args);
27
31
  }
28
32
 
@@ -105,4 +109,4 @@ async function maybeGenerateProjectArtifacts(registration, projectName) {
105
109
 
106
110
  export { flowInitAsync };
107
111
 
108
- //# debugId=5364B2B1CFDDFE8864756E2164756E21
112
+ //# debugId=EBC554606544E02D64756E2164756E21
@@ -0,0 +1,262 @@
1
+ import {
2
+ ensureDirectory
3
+ } from "./packager-tool-gcy5q3jv.js";
4
+ import {
5
+ buildInlineAgentContract,
6
+ isInlineAgentNodeType,
7
+ operateRuntimeOptions,
8
+ readInlineAgentSource
9
+ } from "./packager-tool-1r8c83fc.js";
10
+ import {
11
+ catchError,
12
+ logger
13
+ } from "./packager-tool-226mh80j.js";
14
+ import {
15
+ EntryPointType,
16
+ ProjectType,
17
+ generateBindingsJson,
18
+ generateEntryPointsJson,
19
+ generateOperateJson,
20
+ getBindingResources,
21
+ getEntryPoints,
22
+ isConversationalOrVoiceAgentNodeType,
23
+ mergeBindingResources
24
+ } from "./packager-tool-m5qfverj.js";
25
+
26
+ // src/services/packaging-utils.ts
27
+ function fileNodesToPackagingNodes(nodes) {
28
+ return nodes.map((node) => ({
29
+ id: node.id,
30
+ type: node.type,
31
+ typeVersion: node.typeVersion ?? "1.0",
32
+ display: node.display,
33
+ inputs: node.inputs,
34
+ outputs: node.outputs,
35
+ ...node.model ? { model: node.model } : {}
36
+ }));
37
+ }
38
+ function isRecord(value) {
39
+ return typeof value === "object" && value !== null && !Array.isArray(value);
40
+ }
41
+ function toResourceList(value) {
42
+ if (!Array.isArray(value))
43
+ return;
44
+ const resources = value.filter(isRecord);
45
+ return resources.length === value.length ? resources : undefined;
46
+ }
47
+ function normalizePackagingBindingsJson(value) {
48
+ if (!isRecord(value))
49
+ return;
50
+ const resources = toResourceList(value.resources);
51
+ if (!resources)
52
+ return;
53
+ return {
54
+ ...value,
55
+ version: typeof value.version === "string" ? value.version : "2.0",
56
+ resources
57
+ };
58
+ }
59
+ function emptyPackagingBindingsJson() {
60
+ return { version: "2.0", resources: [] };
61
+ }
62
+ function mergePackagingBindingsJson(bindingsJsons) {
63
+ const first = bindingsJsons.find((bindingsJson) => bindingsJson !== undefined);
64
+ return {
65
+ ...first ?? emptyPackagingBindingsJson(),
66
+ resources: mergeBindingResources(bindingsJsons.flatMap((bindingsJson) => bindingsJson?.resources ?? []))
67
+ };
68
+ }
69
+ var inlineAgentPackagerLogger = {
70
+ debug: (message) => logger.debug(message),
71
+ info: (message) => logger.info(message),
72
+ warn: (message) => logger.warn(message),
73
+ error: (message) => logger.error(message),
74
+ progress: (message) => logger.info(message),
75
+ log: (message, level) => {
76
+ if (level === "Error" /* Error */)
77
+ logger.error(message);
78
+ else if (level === "Warning" /* Warn */)
79
+ logger.warn(message);
80
+ else if (level === "Debug" /* Debug */)
81
+ logger.debug(message);
82
+ else
83
+ logger.info(message);
84
+ },
85
+ logMessage: (message) => inlineAgentPackagerLogger.log(message.message, message.logLevel)
86
+ };
87
+ async function createInlineAgentContract(fs, agentDir) {
88
+ const outputPath = fs.path.join(fs.env.tmpdir(), `.inline-agent-contract-${crypto.randomUUID()}`);
89
+ await fs.mkdir(outputPath);
90
+ try {
91
+ const built = await buildInlineAgentContract({
92
+ fileSystem: fs,
93
+ logger: inlineAgentPackagerLogger,
94
+ projectPath: agentDir,
95
+ outputPath
96
+ });
97
+ const bindingsJson = normalizePackagingBindingsJson(built.bindingsJson);
98
+ if (!bindingsJson) {
99
+ throw new Error("Agent packager returned an invalid binding contract");
100
+ }
101
+ return { agentJson: built.agentJson, bindingsJson };
102
+ } finally {
103
+ const [cleanupError] = await catchError(fs.rm(outputPath, { recursive: true }));
104
+ if (cleanupError) {
105
+ logger.debug(`Could not remove inline-agent contract directory ${outputPath}: ${cleanupError.message}`);
106
+ }
107
+ }
108
+ }
109
+ async function inlineAgentExists(fs, projectDir, source) {
110
+ const agentJsonPath = fs.path.join(projectDir, source, "agent.json");
111
+ return fs.exists(agentJsonPath);
112
+ }
113
+ async function packageInlineAgents(fs, projectDir, nodes) {
114
+ const result = [];
115
+ for (const node of nodes) {
116
+ if (!isInlineAgentNodeType(node.type))
117
+ continue;
118
+ const source = readInlineAgentSource(node);
119
+ if (!source)
120
+ continue;
121
+ if (/[/\\.]/.test(source))
122
+ continue;
123
+ if (!await inlineAgentExists(fs, projectDir, source))
124
+ continue;
125
+ const contract = await createInlineAgentContract(fs, fs.path.join(projectDir, source));
126
+ const inputSchema = contract.agentJson.inputSchema ?? {
127
+ type: "object",
128
+ properties: {}
129
+ };
130
+ const outputSchema = contract.agentJson.outputSchema ?? {
131
+ type: "object",
132
+ properties: {}
133
+ };
134
+ result.push({
135
+ source,
136
+ entryPoint: {
137
+ filePath: `content/${source}/agent.json`,
138
+ uniqueId: contract.agentJson.projectId ?? source,
139
+ type: EntryPointType.Agent,
140
+ input: inputSchema,
141
+ output: outputSchema,
142
+ displayName: contract.agentJson.name ?? "Agent"
143
+ },
144
+ agentJson: contract.agentJson,
145
+ bindingsJson: contract.bindingsJson
146
+ });
147
+ logger.info(`Packaged inline agent "${source}" for entry-points`);
148
+ }
149
+ return result;
150
+ }
151
+ async function stageInlineAgentPackageFiles(fs, sourceProjectPath, stagingProjectDir, inlineAgents, formatLogMessage) {
152
+ for (const agent of inlineAgents) {
153
+ const srcDir = fs.path.join(sourceProjectPath, agent.source);
154
+ const destDir = fs.path.join(stagingProjectDir, agent.source);
155
+ if (fs.path.resolve(srcDir) !== fs.path.resolve(destDir) && await fs.exists(srcDir)) {
156
+ await fs.copyDirectory(srcDir, destDir);
157
+ }
158
+ const agentBuilderDir = fs.path.join(destDir, ".agent-builder");
159
+ await ensureDirectory(fs, agentBuilderDir);
160
+ await fs.writeFile(fs.path.join(agentBuilderDir, "agent.json"), JSON.stringify({
161
+ ...agent.agentJson,
162
+ resources: agent.agentJson.resources ?? [],
163
+ features: agent.agentJson.features ?? []
164
+ }, null, 2));
165
+ await fs.writeFile(fs.path.join(agentBuilderDir, "bindings.json"), `${JSON.stringify(agent.bindingsJson ?? emptyPackagingBindingsJson(), null, 2)}
166
+ `);
167
+ logger.info(formatLogMessage(agent.source));
168
+ }
169
+ }
170
+ function buildInlineAgentDescriptors(nodes) {
171
+ const out = [];
172
+ for (const node of nodes) {
173
+ if (!isInlineAgentNodeType(node.type))
174
+ continue;
175
+ const source = readInlineAgentSource(node);
176
+ if (!source)
177
+ continue;
178
+ const label = node.display?.label ?? "Agent";
179
+ out.push({
180
+ name: label,
181
+ agentProjectId: source,
182
+ isConversational: isConversationalOrVoiceAgentNodeType(node.type),
183
+ entryPointPath: `${source}/agent.json`
184
+ });
185
+ }
186
+ return out;
187
+ }
188
+ async function writePackagingArtifacts(fs, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions = [], options = {}) {
189
+ const { entryPoints } = await writePackagingArtifactsDetailed(fs, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions, options);
190
+ return entryPoints;
191
+ }
192
+ async function writePackagingArtifactsDetailed(fs, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions = [], options = {}) {
193
+ const flowEntryPoints = getEntryPoints(bpmnFileName, packagingNodes, variables, definitions, ProjectType.Flow);
194
+ const entryPoints = [
195
+ ...flowEntryPoints,
196
+ ...options.additionalEntryPoints ?? []
197
+ ];
198
+ await fs.writeFile(fs.path.join(projectDir, "entry-points.json"), `${JSON.stringify(generateEntryPointsJson(entryPoints), null, 2)}
199
+ `);
200
+ const bindingResources = getBindingResources(packagingNodes, bindings, definitions);
201
+ const bindingsJson = normalizePackagingBindingsJson(generateBindingsJson(bindingResources)) ?? emptyPackagingBindingsJson();
202
+ const stagedBindingsJson = mergePackagingBindingsJson([
203
+ bindingsJson,
204
+ ...options.additionalBindingsJsons ?? []
205
+ ]);
206
+ await fs.writeFile(fs.path.join(projectDir, "bindings_v2.json"), `${JSON.stringify(stagedBindingsJson, null, 2)}
207
+ `);
208
+ const mainEntryPoint = `/${bpmnFileName}#${startEventId}`;
209
+ const operateJson = generateOperateJson(projectId, mainEntryPoint, operateRuntimeOptions(packagingNodes));
210
+ await fs.writeFile(fs.path.join(projectDir, "operate.json"), `${JSON.stringify(operateJson, null, 2)}
211
+ `);
212
+ const packageDescriptorJson = options.packageDescriptorJson ?? {
213
+ $schema: "https://cloud.uipath.com/draft/2024-12/package-descriptor",
214
+ files: {
215
+ "operate.json": "operate.json",
216
+ "entry-points.json": "entry-points.json",
217
+ "bindings.json": "bindings_v2.json",
218
+ [bpmnFileName]: bpmnFileName,
219
+ ...flowFileName ? { [flowFileName]: flowFileName } : {}
220
+ }
221
+ };
222
+ await fs.writeFile(fs.path.join(projectDir, "package-descriptor.json"), `${JSON.stringify(packageDescriptorJson, null, 2)}
223
+ `);
224
+ return { entryPoints, bindingsJson: stagedBindingsJson };
225
+ }
226
+ function backfillNodeModelsFromDefinitions(nodes, definitions) {
227
+ if (definitions.length === 0)
228
+ return nodes;
229
+ const definitionByType = new Map;
230
+ for (const def of definitions) {
231
+ if (def?.nodeType)
232
+ definitionByType.set(def.nodeType, def);
233
+ }
234
+ return nodes.map((n) => {
235
+ if (n.model)
236
+ return n;
237
+ const def = definitionByType.get(n.type);
238
+ if (!def?.model)
239
+ return n;
240
+ return { ...n, model: def.model };
241
+ });
242
+ }
243
+ async function regenerateBindingsFile(fs, flowFilePath) {
244
+ const absolutePath = fs.path.resolve(flowFilePath);
245
+ const projectDir = fs.path.dirname(absolutePath);
246
+ const content = await fs.readFile(absolutePath, "utf-8");
247
+ if (!content) {
248
+ throw new Error(`Could not read .flow file at ${absolutePath}`);
249
+ }
250
+ const [parseErr, flowData] = catchError(() => JSON.parse(content));
251
+ if (parseErr) {
252
+ throw new Error(`Failed to parse .flow file at ${absolutePath}: ${parseErr.message}`);
253
+ }
254
+ const packagingNodes = backfillNodeModelsFromDefinitions(fileNodesToPackagingNodes(flowData.nodes ?? []), flowData.definitions ?? []);
255
+ const bindingResources = getBindingResources(packagingNodes, flowData.bindings ?? [], flowData.definitions ?? []);
256
+ await fs.writeFile(fs.path.join(projectDir, "bindings_v2.json"), `${JSON.stringify(generateBindingsJson(bindingResources), null, 2)}
257
+ `);
258
+ }
259
+
260
+ export { fileNodesToPackagingNodes, packageInlineAgents, stageInlineAgentPackageFiles, buildInlineAgentDescriptors, writePackagingArtifacts, writePackagingArtifactsDetailed, regenerateBindingsFile };
261
+
262
+ //# debugId=D58F45C9E111C57064756E2164756E21
@@ -1,50 +1,3 @@
1
- // ../packager/packager-core/src/services/tools-factory-repository.ts
2
- class ToolsFactoryRepository {
3
- projectFactoryMap = new Map;
4
- solutionFactory = null;
5
- registerProjectToolFactory(factory) {
6
- for (const type of factory.supportedTypes) {
7
- const existing = this.projectFactoryMap.get(type);
8
- if (existing) {
9
- if (existing.constructor?.name !== factory.constructor?.name) {
10
- console.warn(`Tool factory conflict for project type '${type}': ` + `'${existing.constructor?.name}' already registered, ` + `ignoring '${factory.constructor?.name}'.`);
11
- }
12
- continue;
13
- }
14
- this.projectFactoryMap.set(type, factory);
15
- }
16
- }
17
- registerSolutionToolFactory(factory) {
18
- this.solutionFactory = factory;
19
- }
20
- getSolutionToolFactory() {
21
- if (!this.solutionFactory) {
22
- throw new Error("No solution tool factory is registered");
23
- }
24
- return this.solutionFactory;
25
- }
26
- canHandleProject(projectType) {
27
- return this.projectFactoryMap.has(projectType);
28
- }
29
- getProjectToolFactory(projectType) {
30
- const factory = this.projectFactoryMap.get(projectType);
31
- if (!factory) {
32
- throw new Error(`No tool factory found for project type '${projectType}'`);
33
- }
34
- return factory;
35
- }
36
- reset() {
37
- this.projectFactoryMap.clear();
38
- this.solutionFactory = null;
39
- }
40
- }
41
- var REGISTRY_KEY = Symbol.for("@uipath/solutionpackager-tool-core/toolsFactoryRepository");
42
- var _global = globalThis;
43
- if (!_global[REGISTRY_KEY]) {
44
- _global[REGISTRY_KEY] = new ToolsFactoryRepository;
45
- }
46
- var toolsFactoryRepository = _global[REGISTRY_KEY];
47
-
48
1
  // ../packager/packager-core/src/filesystem/path.ts
49
2
  class Path {
50
3
  static normalize(path) {
@@ -168,6 +121,54 @@ async function ensureProjectId(projectPath, fs) {
168
121
  }
169
122
  return crypto.randomUUID();
170
123
  }
124
+
125
+ // ../packager/packager-core/src/services/tools-factory-repository.ts
126
+ class ToolsFactoryRepository {
127
+ projectFactoryMap = new Map;
128
+ solutionFactory = null;
129
+ registerProjectToolFactory(factory) {
130
+ for (const type of factory.supportedTypes) {
131
+ const existing = this.projectFactoryMap.get(type);
132
+ if (existing) {
133
+ if (existing.constructor?.name !== factory.constructor?.name) {
134
+ console.warn(`Tool factory conflict for project type '${type}': ` + `'${existing.constructor?.name}' already registered, ` + `ignoring '${factory.constructor?.name}'.`);
135
+ }
136
+ continue;
137
+ }
138
+ this.projectFactoryMap.set(type, factory);
139
+ }
140
+ }
141
+ registerSolutionToolFactory(factory) {
142
+ this.solutionFactory = factory;
143
+ }
144
+ getSolutionToolFactory() {
145
+ if (!this.solutionFactory) {
146
+ throw new Error("No solution tool factory is registered");
147
+ }
148
+ return this.solutionFactory;
149
+ }
150
+ canHandleProject(projectType) {
151
+ return this.projectFactoryMap.has(projectType);
152
+ }
153
+ getProjectToolFactory(projectType) {
154
+ const factory = this.projectFactoryMap.get(projectType);
155
+ if (!factory) {
156
+ const known = [...this.projectFactoryMap.keys()].join(", ");
157
+ throw new Error(`Cannot pack project type '${projectType}': no packager is installed for it. ` + `Project types that can be packed: ${known || "none"}.`);
158
+ }
159
+ return factory;
160
+ }
161
+ reset() {
162
+ this.projectFactoryMap.clear();
163
+ this.solutionFactory = null;
164
+ }
165
+ }
166
+ var REGISTRY_KEY = Symbol.for("@uipath/solutionpackager-tool-core/toolsFactoryRepository");
167
+ var _global = globalThis;
168
+ if (!_global[REGISTRY_KEY]) {
169
+ _global[REGISTRY_KEY] = new ToolsFactoryRepository;
170
+ }
171
+ var toolsFactoryRepository = _global[REGISTRY_KEY];
171
172
  // ../packager/packager-core/src/i18n/types.ts
172
173
  function isPluralForm(value) {
173
174
  return typeof value === "object" && value !== null && "other" in value;
@@ -993,4 +994,4 @@ I18nManager.registerTranslations("zu", zu);
993
994
  I18nManager.setLocale("en");
994
995
  export { ensureProjectId, toolsFactoryRepository };
995
996
 
996
- //# debugId=E7E9643153503BFD64756E2164756E21
997
+ //# debugId=4DB39423849BB6D564756E2164756E21