@uipath/flow-tool 1.206.0-preview.306 → 1.207.0-preview.307
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/THIRD-PARTY-NOTICES.md +12 -12
- package/dist/{applicationinsights-web-8m26566f.js → applicationinsights-web-c6epsatg.js} +1 -1
- package/dist/{authoring-az69rn0j.js → authoring-f5ttjy3d.js} +5 -5
- package/dist/{binding-service-jdzw5h8a.js → binding-service-b4kes1cr.js} +37 -34
- package/dist/{browser-strategy-gnftxwsf.js → browser-strategy-1nk8hgcf.js} +1 -1
- package/dist/case-catalog-h4fjn6q3.js +304 -0
- package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
- package/dist/{connector-service-yq01bg3n.js → connector-service-xjszs9v3.js} +156 -76
- package/dist/{conversion-7O2PDOQB-xx5zfw6n.js → conversion-A2KZVSOA-313011c5.js} +256 -90
- package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
- package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-NX7YTOSY-xvwqrst4.js} +1282 -10
- package/dist/{de-2BEKRUMY-MD7L477H-7mwat6r6.js → de-HF4GJ4EK-xrrajtht.js} +1277 -15
- package/dist/{de-VQWT6L5Y-mch4qwyv.js → de-IQ44WEAK-ayb953tp.js} +19 -4
- package/dist/{de-3CU65EDB-r7r10am9.js → de-T4OCQPNU-hrqdjart.js} +6 -6
- package/dist/{debug-conversation-trigger-62ebex43.js → debug-conversation-trigger-j20ms2xc.js} +4 -9
- package/dist/{debug-http-client-ykzhg1zx.js → debug-http-client-fypqjmfs.js} +6 -5
- package/dist/{debug-service-xq8vhrkq.js → debug-service-zv5hj0cx.js} +11 -6
- package/dist/{edge-service-w5jbtehr.js → edge-service-8jrhdfvf.js} +41 -31
- package/dist/{elk.bundled-phy0zc81.js → elk.bundled-pfmz610v.js} +1 -1
- package/dist/{embedded-file-reader-pxpwcq3n.js → embedded-file-reader-k94wt612.js} +16 -16
- package/dist/{en-LAVDF7IQ-ba7wzsxp.js → en-5JIPZTS5-v0f9wmd2.js} +4 -2
- package/dist/{en-X6T4SP2Y-FPGCJIFV-wsbs6fqx.js → en-ETY46SDS-RI6EZCN6-x64e1cks.js} +67 -3
- package/dist/{en-X6T4SP2Y-xe57av1w.js → en-ETY46SDS-yfqhqvbx.js} +66 -2
- package/dist/{en-WPCQ4JKF-jnj0q4e1.js → en-JZXY3PYE-m54g0zx7.js} +4 -4
- package/dist/{en-LQHKFSEY-jz2knr92.js → en-LQHKFSEY-bypy1p39.js} +1 -1
- package/dist/{en-U2NSIIZN-whenw6wh.js → en-T6VSEF3E-1hq4zfrt.js} +5 -3
- package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
- package/dist/{es-7ZTQTGKN-TXQBFYRA-q5v6wcmn.js → es-IYP2OLUY-7SKYGF6A-rd9jrktp.js} +1272 -11
- package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
- package/dist/{es-MX-S2RFDGDE-x9r0tv30.js → es-MX-A2DFN7CA-q5m62f60.js} +19 -4
- package/dist/{es-MX-IHGRIEWH-23X37OPS-vx539dfs.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -15
- package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-D74A6FRL-y7xh0r57.js} +1281 -10
- package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
- package/dist/{es-MX-F7ZEHSNE-gxpm47vv.js → es-MX-YQNHSXDT-fd5ybreb.js} +6 -6
- package/dist/{es-EP563JWQ-1agj5n4e.js → es-TNUPGHGG-886me0sq.js} +19 -4
- package/dist/{es-KHVY67FO-natcvmmm.js → es-YHECPVFB-7jsrxa01.js} +6 -6
- package/dist/extraction-availability-service-h08mngty.js +343 -0
- package/dist/{first-party-service-6b9ajm57.js → first-party-service-qfg2m05s.js} +1 -1
- package/dist/{flow-api-1hr7z6qc.js → flow-api-bmg7beey.js} +15 -12
- package/dist/{flow-debug-service-vt2k0v46.js → flow-debug-service-jb9jxat1.js} +232 -156
- package/dist/flow-eval-node-target-scxb918a.js +31 -0
- package/dist/flow-eval-run-api-g6sphtf3.js +11 -0
- package/dist/{flow-eval-run-service-vh2041qg.js → flow-eval-run-service-n68xb9sk.js} +116 -119
- package/dist/{flow-eval-service-q2zp54gq.js → flow-eval-service-88qyrg7d.js} +141 -337
- package/dist/{flow-init-sdk-source-vg1ckdrf.js → flow-init-sdk-source-t2q2w6v7.js} +5 -5
- package/dist/flow-init-service-v6jvdmqa.js +27 -0
- package/dist/flow-io-4z79xnb3.js +29 -0
- package/dist/{flow-migrate-service-wgrz2msp.js → flow-migrate-service-gbdh07zh.js} +20 -20
- package/dist/{flow-pack-service-kze10925.js → flow-pack-service-gca3ekj7.js} +89 -90
- package/dist/flow-validate-service-z0z4ndn8.js +49 -0
- package/dist/{fr-7LK3QUWT-a94yejcs.js → fr-EPBGOBOP-rs7qy97k.js} +19 -4
- package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-3ANDQPI3-gjhmym96.js} +1282 -10
- package/dist/{fr-7ZDL4MVO-CXMRZDOF-b816xj36.js → fr-NISALSPL-vzfmygd7.js} +1277 -15
- package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
- package/dist/{fr-I42FODC5-p80x5v4b.js → fr-W3AFCEDL-cjfr0xqp.js} +6 -6
- package/dist/{governance-fetcher-y0q4m57j.js → governance-fetcher-26h7eqrk.js} +7 -7
- package/dist/{headless-41t9wwb7.js → headless-23ywyx9h.js} +390 -195
- package/dist/{hitl-service-8rvw1zsh.js → hitl-service-v94wsz1f.js} +11 -11
- package/dist/{index-wss1mf5j.js → index-9a52zr4w.js} +3033 -767
- package/dist/{index-t2f7scza.js → index-db1djbzm.js} +12 -8
- package/dist/{index-amqqhge1.js → index-ewg6ygg0.js} +1 -1
- package/dist/{index-r44xc976.js → index-eyjrdzgx.js} +5 -5
- package/dist/{index-7fet3f0s.js → index-h67w2p9p.js} +3 -3
- package/dist/index-kwrhrb9p.js +161 -0
- package/dist/{index-f5kq7265.js → index-r6crd7tx.js} +6 -4
- package/dist/{index-ng011fzs.js → index-r6y07e14.js} +94 -74
- package/dist/{index-vvf52vnn.js → index-re7r0ezw.js} +34 -27
- package/dist/{index-5y5pbdx5.js → index-sazh9ymk.js} +13 -11
- package/dist/{index-5pzp2qeb.js → index-v3w1930f.js} +18 -18
- package/dist/{index-d4bdedx3.js → index-ynw2efd8.js} +6 -4
- package/dist/index.js +16 -14
- package/dist/{index.umd.min-ttg1qc0x.js → index.umd.min-5yxdz5j3.js} +1 -1
- package/dist/init.js +18 -17
- package/dist/{inline-entity-resolver-aty0xw8s.js → inline-entity-resolver-r7ebmssg.js} +11 -11
- package/dist/input-reader-3zvbsn6a.js +12 -0
- package/dist/integration-service-fetcher-0vdd4pbb.js +65 -0
- package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
- package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
- package/dist/{ja-LGAM5HKR-NTPKIZEM-aaj773vd.js → ja-HTS2Q4YG-7Q6WUI6H-j8dkhe93.js} +1278 -11
- package/dist/{ja-WY2W6733-ayr36h1f.js → ja-HWFIXC2V-gg9xvhsv.js} +19 -4
- package/dist/{ja-GI3OUHPZ-28fy60r0.js → ja-WOANIGX4-qnyzk2t8.js} +6 -6
- package/dist/{jmespath-wwym30dp.js → jmespath-dbsejrwn.js} +1 -1
- package/dist/json-input-pj18qjt0.js +17 -0
- package/dist/{known-types-v9sxcq1c.js → known-types-pen5h5kz.js} +4 -4
- package/dist/{ko-7B4SUZB7-2SLI636D-khdzwz6c.js → ko-3JFGTMNY-VT6UQ3IS-z5n880em.js} +1272 -11
- package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
- package/dist/{ko-H2RGQWKJ-9696w762.js → ko-L3BMYD3Q-exfhqfbh.js} +19 -4
- package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
- package/dist/{ko-RYKAL74T-10m4z8vw.js → ko-RMOVRC7M-whyynn7n.js} +6 -6
- package/dist/library-option-9fqvdh8v.js +14 -0
- package/dist/localization-axzmx1mb.js +45 -0
- package/dist/{maestro-automate-entry-d1v5q5mv.js → maestro-automate-entry-mrap5xmt.js} +2 -2
- package/dist/manifest-hmeqvk74.js +60 -0
- package/dist/node-service-d6211mt9.js +65 -0
- package/dist/{node-strategy-wrjxmbzt.js → node-strategy-2r78gtca.js} +2 -2
- package/dist/{node-sync-service-6h12t41d.js → node-sync-service-6wbypdgb.js} +22 -15
- package/dist/node-w3wny6qw.js +172 -0
- package/dist/packager-tool-0x8g8b5r.js +25 -0
- package/dist/{packager-tool-vgrswa8p.js → packager-tool-1db1wqdy.js} +30 -8
- package/dist/packager-tool-1yew22sn.js +9 -0
- package/dist/{packager-tool-14rdgz3c.js → packager-tool-3sxg16ft.js} +7 -7
- package/dist/packager-tool-40bxn7j2.js +63 -0
- package/dist/{packager-tool-6an893wm.js → packager-tool-4f4jp7ez.js} +3 -3
- package/dist/packager-tool-4gh9ftn8.js +224 -0
- package/dist/{packager-tool-pxq0bwp0.js → packager-tool-4hn7v05x.js} +16 -9
- package/dist/packager-tool-4skf6ak1.js +31 -0
- package/dist/{packager-tool-951nhh3e.js → packager-tool-5n1v6y3q.js} +1 -1
- package/dist/{packager-tool-2b0tn4p4.js → packager-tool-6azsz9h8.js} +7 -7
- package/dist/{packager-tool-zydkpqta.js → packager-tool-6sqq0mzd.js} +330 -902
- package/dist/{packager-tool-54jdtyk4.js → packager-tool-7d6y5paj.js} +11 -11
- package/dist/{packager-tool-ac6rvny7.js → packager-tool-7re5d8aq.js} +1139 -466
- package/dist/{packager-tool-4w37xezc.js → packager-tool-7tmtjb7p.js} +13 -13
- package/dist/{packager-tool-6an563h8.js → packager-tool-7wpb19zf.js} +10 -3
- package/dist/packager-tool-8qc7ram5.js +16 -0
- package/dist/packager-tool-942v78s9.js +40 -0
- package/dist/packager-tool-9tv5cyhr.js +16 -0
- package/dist/{packager-tool-7atc775f.js → packager-tool-ajx79m52.js} +1 -1
- package/dist/{packager-tool-p7f12rkc.js → packager-tool-b14qj57y.js} +9 -7
- package/dist/packager-tool-bbq5kbb9.js +318 -0
- package/dist/{packager-tool-xhrm7cgz.js → packager-tool-bcsjm5hv.js} +470 -315
- package/dist/{packager-tool-xdaxdc00.js → packager-tool-bn09xgy8.js} +14 -14
- package/dist/{packager-tool-m30d5s5s.js → packager-tool-bv24wxxz.js} +24 -10
- package/dist/{packager-tool-1qg04b7q.js → packager-tool-bzcphfa8.js} +4 -2
- package/dist/packager-tool-c8mn8jr0.js +1060 -0
- package/dist/{packager-tool-gdpw0daf.js → packager-tool-dmhmcav3.js} +3773 -2625
- package/dist/{packager-tool-vb1ect63.js → packager-tool-e8bxpwdp.js} +21 -21
- package/dist/{packager-tool-m1y5ah6s.js → packager-tool-f3htkspn.js} +215 -233
- package/dist/{packager-tool-y1bcfvcs.js → packager-tool-frt20zp9.js} +2 -2
- package/dist/packager-tool-geh2qybm.js +179 -0
- package/dist/{packager-tool-1rhch6b5.js → packager-tool-gjjr2a2w.js} +66 -19
- package/dist/{packager-tool-v1q6601f.js → packager-tool-hyx81x30.js} +584 -651
- package/dist/{packager-tool-67h9vcvz.js → packager-tool-j6m8nkms.js} +1123 -295
- package/dist/{packager-tool-64r7e4ek.js → packager-tool-jjnfwfd4.js} +2 -2
- package/dist/packager-tool-kh1taypp.js +41 -0
- package/dist/{packager-tool-dc12ytg5.js → packager-tool-krr2x2ny.js} +10 -10
- package/dist/{packager-tool-pdt4jmnw.js → packager-tool-m2h98d2z.js} +246 -61
- package/dist/{packager-tool-9m5vba43.js → packager-tool-md1vcqh4.js} +233 -14
- package/dist/{packager-tool-4g87fbz6.js → packager-tool-mm6a12y4.js} +8 -8
- package/dist/{packager-tool-2n6eg5eq.js → packager-tool-mvzswn9n.js} +134 -68
- package/dist/{packager-tool-x4xdtsbp.js → packager-tool-n4fky033.js} +15328 -7171
- package/dist/{packager-tool-hyd7qpfw.js → packager-tool-npm5tzpt.js} +489 -118
- package/dist/packager-tool-p8ncdnsj.js +30 -0
- package/dist/{packager-tool-m126jzdd.js → packager-tool-qkdbfkev.js} +14 -11
- package/dist/{packager-tool-7mxn3e7j.js → packager-tool-qtz83h01.js} +4 -2
- package/dist/{packager-tool-hk0fnvz5.js → packager-tool-qx8wvedy.js} +1 -1
- package/dist/{packager-tool-q2kwk5bf.js → packager-tool-qyhvgenw.js} +6 -4
- package/dist/{packager-tool-6pyaaxzk.js → packager-tool-rcjtmknf.js} +351 -42
- package/dist/{packager-tool-jjkypwge.js → packager-tool-s8jxyjgj.js} +15 -4
- package/dist/packager-tool-swvgkcq7.js +5973 -0
- package/dist/{packager-tool-fzgfb0jt.js → packager-tool-t0e7fvqz.js} +1228 -759
- package/dist/packager-tool-t0zz0jtb.js +423 -0
- package/dist/{packager-tool-p123mtfx.js → packager-tool-tgawhrva.js} +58 -16
- package/dist/{packager-tool-yewnsyag.js → packager-tool-vg16h3pk.js} +80 -6
- package/dist/{packager-tool-dbc4hv4n.js → packager-tool-vtz6gvav.js} +8 -8
- package/dist/{packager-tool-f4t73ja0.js → packager-tool-wk6jaz9m.js} +228 -487
- package/dist/packager-tool-wvf6b31h.js +50 -0
- package/dist/packager-tool-xgh2t48c.js +255 -0
- package/dist/{packager-tool-w9bkq7zb.js → packager-tool-xgvp8a8g.js} +10 -10
- package/dist/{packager-tool-h1vt1vr2.js → packager-tool-ybn5fymq.js} +2 -2
- package/dist/packager-tool-yszyrt27.js +184 -0
- package/dist/packager-tool-yx0hy6pt.js +125 -0
- package/dist/{packager-tool-ze3fnf3s.js → packager-tool-zap4kd3z.js} +7 -2
- package/dist/{packager-tool-dr3zc9n9.js → packager-tool-zgzpqfcs.js} +13 -6
- package/dist/{node-tx150jvs.js → packager-tool-zrh55d4c.js} +190 -286
- package/dist/packager-tool.js +9 -9
- package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-8frvq826.js} +39 -6
- package/dist/provision-node-service-b8nkty72.js +86 -0
- package/dist/{pt-2RGHDOG4-gwe2ptvg.js → pt-6RCFX6CY-v42k92ey.js} +19 -4
- package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
- package/dist/{pt-BR-PHLFHMXZ-JFPKUXIZ-1cttmarb.js → pt-BR-7H7BP5DT-IOHWNCIU-kzbjgs8p.js} +1277 -11
- package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
- package/dist/{pt-BR-JWHVZE6H-gvkknv49.js → pt-BR-HDVM5NFA-azfx4gg9.js} +19 -4
- package/dist/{pt-BR-IL3KLBID-m1mvqqzb.js → pt-BR-HJIMGPPX-s18rb4vg.js} +6 -6
- package/dist/{pt-VLA5IOHO-8t4pze0h.js → pt-DZG5FPWK-6czrqk2t.js} +6 -6
- package/dist/{pt-N7ZTJT4W-GVODJMRX-ek3zjp9k.js → pt-QWGSZKMD-RTKSQCYA-j9wqwb10.js} +1272 -11
- package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
- package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
- package/dist/{ro-FLNXVYJI-ZN43XZKK-zrcvcsj5.js → ro-B7G474JK-9k2jjk88.js} +1271 -15
- package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-Q3BAA4S3-1ss8n5t0.js} +1276 -10
- package/dist/{ro-53TS7SWG-hnjx1c7b.js → ro-EEKX2X3R-tz9prn67.js} +19 -4
- package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
- package/dist/{ro-IRNFX376-mh84zk3n.js → ro-SX7RUXGR-kknxsr3g.js} +6 -6
- package/dist/ru-FNRVPXE5-7q150qf8.js +7 -0
- package/dist/ru-GSCT4ARZ-6OTD7JLB-j2ny4frk.js +12 -0
- package/dist/schema-document-service-007f2kw4.js +30 -0
- package/dist/{serialization-Z3UYT6BW-c994gtwh.js → serialization-7CB4AREI-b012f3vq.js} +482 -6161
- package/dist/services/binding-id-rule.d.ts +13 -0
- package/dist/services/binding-resource-types.d.ts +12 -0
- package/dist/services/extract-schema/default-schema-document.d.ts +9 -4
- package/dist/services/extract-schema/types.d.ts +73 -0
- package/dist/services/extract-schema/validate-schema-document.d.ts +75 -0
- package/dist/services/flow-scopes.d.ts +15 -0
- package/dist/services/flow-structure-checks.d.ts +8 -0
- package/dist/services/flow-validate-service.d.ts +44 -11
- package/dist/services/idp-processor-provisioning.d.ts +35 -0
- package/dist/services/node-service.d.ts +17 -23
- package/dist/services/node-validators/extract-schema-validator.d.ts +13 -0
- package/dist/services/node-validators/index.d.ts +1 -0
- package/dist/services/node-validators/js-expression-syntax-validator.d.ts +2 -1
- package/dist/services/node-validators/types.d.ts +2 -7
- package/dist/services/vars-reference-rule.d.ts +6 -0
- package/dist/solution-auth-k0s83ake.js +11 -0
- package/dist/{solution-definition-helper-6zwd9hjs.js → solution-definition-helper-qjj01xh0.js} +1 -1
- package/dist/{solution-discovery-wwwynadq.js → solution-discovery-v5qatmz2.js} +7 -7
- package/dist/taggable-variables-nc8td6er.js +134 -0
- package/dist/{tidy-service-g9qcarr9.js → tidy-service-ehhraxge.js} +17 -18
- package/dist/tool.js +16 -14
- package/dist/{tr-PIQY7JIT-2mkwk0kq.js → tr-B6TLBSLH-1797wxkh.js} +19 -4
- package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-CEOTUJRD-pv26erw5.js} +1276 -10
- package/dist/{tr-7AIZZWZ6-ESAESUPL-kgj5s586.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -15
- package/dist/{tr-EJKY7DVQ-rkctqva4.js → tr-OUB57VJ6-52t7zdzb.js} +6 -6
- package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
- package/dist/utils/handle-expansion.d.ts +2 -2
- package/dist/validation.js +42 -39
- package/dist/{variable-service-1s0z3e9j.js → variable-service-m8m88dy6.js} +17 -12
- package/dist/{wait-for-flow-job-vy4t4tbj.js → wait-for-flow-job-k990nmdn.js} +15 -12
- package/dist/{zh-CN-NIEVKROA-q4tbbwqz.js → zh-CN-7KN22KSH-mwvgyym6.js} +19 -4
- package/dist/{zh-CN-4FH7E7UL-84y6j2ea.js → zh-CN-FKWWWLFR-n15rj6p8.js} +6 -6
- package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
- package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-BB2LRIMQ-tj7kwma4.js} +1276 -10
- package/dist/{zh-CN-CN2ARPFS-NIQTWDK2-0t4qqqdc.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -15
- package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
- package/dist/{zh-TW-5WQA6QTM-hns69sd4.js → zh-TW-52QTEYIZ-2mj7hy3e.js} +6 -6
- package/dist/{zh-TW-MSQM7YTT-m7r7nwnj.js → zh-TW-I7BH3XP2-7rb4xpzg.js} +19 -4
- package/dist/{zh-TW-7RUFEVFK-VKVRSVTP-8zmewakq.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -16
- package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-ECGOEPYS-wv5068r9.js} +1277 -11
- package/package.json +2 -2
- package/dist/flow-eval-node-target-20cnm783.js +0 -29
- package/dist/flow-eval-run-api-w4j8ra60.js +0 -9
- package/dist/flow-init-service-4rvjej8m.js +0 -26
- package/dist/flow-io-e7t1s141.js +0 -24
- package/dist/flow-validate-service-wfkxyvkc.js +0 -46
- package/dist/input-reader-jjq3r7ry.js +0 -11
- package/dist/localization-erchshqr.js +0 -45
- package/dist/node-service-2mbw4sjk.js +0 -64
- package/dist/packager-tool-08dsxdz8.js +0 -56
- package/dist/packager-tool-2sazb7th.js +0 -2
- package/dist/packager-tool-9217bxm2.js +0 -6
- package/dist/packager-tool-cvh1a0nm.js +0 -16
- package/dist/packager-tool-d07g2kpn.js +0 -25
- package/dist/packager-tool-f7rk9xhv.js +0 -50
- package/dist/packager-tool-jd3v0bh1.js +0 -26
- package/dist/packager-tool-k3egwd1m.js +0 -15
- package/dist/packager-tool-mfj268wk.js +0 -18
- package/dist/packager-tool-q0f1dvtd.js +0 -40
- package/dist/packager-tool-wr7gn964.js +0 -2
- package/dist/packager-tool-z1w16vjv.js +0 -461
- package/dist/ru-GSCT4ARZ-FTVCGQTL-7d8rpmsn.js +0 -12
- package/dist/ru-T73OPRTC-50m7tty9.js +0 -7
- package/dist/services/connector-request-buckets.d.ts +0 -1
- package/dist/services/flow-eval-file-store.d.ts +0 -1
- package/dist/services/inline-entity-resolver.d.ts +0 -22
- package/dist/services/packaging-utils.d.ts +0 -130
- package/dist/services/preview-id-rule.d.ts +0 -33
- package/dist/services/ui-only-node-types.d.ts +0 -1
- package/dist/solution-auth-j8x84n5z.js +0 -11
- package/dist/utils/flow-io.d.ts +0 -19
- package/dist/utils/workflow-file-format.d.ts +0 -14
|
@@ -1,119 +1,104 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-1db1wqdy.js";
|
|
4
4
|
import {
|
|
5
5
|
catchError2
|
|
6
|
-
} from "./packager-tool-
|
|
6
|
+
} from "./packager-tool-4hn7v05x.js";
|
|
7
7
|
import {
|
|
8
8
|
logger
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-bcsjm5hv.js";
|
|
10
10
|
import {
|
|
11
11
|
isVoiceAgentNodeType2
|
|
12
|
-
} from "./packager-tool-
|
|
12
|
+
} from "./packager-tool-t0e7fvqz.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
isRecord2,
|
|
15
15
|
isUUID,
|
|
16
16
|
findEvalSet,
|
|
17
17
|
getLinkedEvaluators,
|
|
18
18
|
ensureDirectory,
|
|
19
19
|
EvalFileStore,
|
|
20
20
|
injectWorkloadId
|
|
21
|
-
} from "./packager-tool-
|
|
22
|
-
import"./packager-tool-
|
|
21
|
+
} from "./packager-tool-7re5d8aq.js";
|
|
22
|
+
import"./packager-tool-zap4kd3z.js";
|
|
23
23
|
import {
|
|
24
24
|
convertFlowToBpmn,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
allNodesOf2,
|
|
26
|
+
replaceExporterVersion2,
|
|
27
|
+
setPublishIntentOnInlineAgents2,
|
|
28
|
+
fileNodesToPackagingNodes2,
|
|
29
|
+
flowToPackagingNodes2,
|
|
30
|
+
writePackagingArtifactsDetailed2,
|
|
31
|
+
workflowToFileFormat,
|
|
32
|
+
assertNoPreviewIds
|
|
33
|
+
} from "./packager-tool-n4fky033.js";
|
|
34
|
+
import"./packager-tool-6azsz9h8.js";
|
|
30
35
|
import {
|
|
31
36
|
findFlowNode2,
|
|
32
37
|
readNodeTargetId2
|
|
33
|
-
} from "./packager-tool-
|
|
38
|
+
} from "./packager-tool-e8bxpwdp.js";
|
|
34
39
|
import {
|
|
35
40
|
buildSolutionPackageFromDir2,
|
|
36
41
|
getStudioWebSolutionProjects2,
|
|
37
42
|
uploadOrOverwriteSolution2
|
|
38
|
-
} from "./packager-tool-
|
|
43
|
+
} from "./packager-tool-bv24wxxz.js";
|
|
39
44
|
import {
|
|
40
45
|
FlowEvalRunApi2
|
|
41
|
-
} from "./packager-tool-
|
|
42
|
-
import"./packager-tool-dr3zc9n9.js";
|
|
46
|
+
} from "./packager-tool-qx8wvedy.js";
|
|
43
47
|
import {
|
|
44
48
|
extractStartEventId2,
|
|
45
49
|
getPersonalFolderKey2,
|
|
46
50
|
getPersonalFolderInfo2,
|
|
47
51
|
prepareForCustomDebug2,
|
|
48
52
|
patchConnectionOverwrites2
|
|
49
|
-
} from "./packager-tool-
|
|
53
|
+
} from "./packager-tool-rcjtmknf.js";
|
|
54
|
+
import"./packager-tool-wvf6b31h.js";
|
|
55
|
+
import"./packager-tool-zgzpqfcs.js";
|
|
50
56
|
import {
|
|
51
|
-
workflowToFileFormat,
|
|
52
57
|
readFlowWorkflow2,
|
|
53
58
|
writeFlowWorkflow2,
|
|
54
59
|
resolveProjectFlowFile2
|
|
55
|
-
} from "./packager-tool-
|
|
56
|
-
import"./packager-tool-
|
|
60
|
+
} from "./packager-tool-942v78s9.js";
|
|
61
|
+
import"./packager-tool-gjjr2a2w.js";
|
|
57
62
|
import {
|
|
58
63
|
assertInlineEntitiesBound2
|
|
59
|
-
} from "./packager-tool-
|
|
60
|
-
import"./packager-tool-gdpw0daf.js";
|
|
61
|
-
import"./packager-tool-zydkpqta.js";
|
|
62
|
-
import"./packager-tool-m1y5ah6s.js";
|
|
63
|
-
import"./packager-tool-1qg04b7q.js";
|
|
64
|
-
import"./packager-tool-p123mtfx.js";
|
|
65
|
-
import"./packager-tool-xb16e3tz.js";
|
|
66
|
-
import"./packager-tool-d07g2kpn.js";
|
|
67
|
-
import"./packager-tool-xdaxdc00.js";
|
|
68
|
-
import"./packager-tool-9m5vba43.js";
|
|
69
|
-
import"./packager-tool-67h9vcvz.js";
|
|
70
|
-
import {
|
|
71
|
-
fileNodesToPackagingNodes,
|
|
72
|
-
flowToPackagingNodes,
|
|
73
|
-
packageInlineAgents,
|
|
74
|
-
stageInlineAgentPackageFiles,
|
|
75
|
-
writePackagingArtifactsDetailed,
|
|
76
|
-
ensureProcessBindings2
|
|
77
|
-
} from "./packager-tool-f4t73ja0.js";
|
|
78
|
-
import"./packager-tool-9217bxm2.js";
|
|
64
|
+
} from "./packager-tool-krr2x2ny.js";
|
|
79
65
|
import {
|
|
80
66
|
readWorkflowId,
|
|
81
67
|
FlowEvalPathResolver,
|
|
82
68
|
readStartNodeId
|
|
83
|
-
} from "./packager-tool-
|
|
69
|
+
} from "./packager-tool-7d6y5paj.js";
|
|
84
70
|
import {
|
|
85
|
-
|
|
86
|
-
|
|
71
|
+
findRegisteredSolutionFile,
|
|
72
|
+
buildInvalidSolutionManifestInstructions,
|
|
73
|
+
readEnclosingSolution,
|
|
74
|
+
projectRelativeDir
|
|
75
|
+
} from "./packager-tool-kh1taypp.js";
|
|
87
76
|
import {
|
|
88
|
-
|
|
89
|
-
} from "./packager-tool-
|
|
77
|
+
writeResolvedFlow2
|
|
78
|
+
} from "./packager-tool-8qc7ram5.js";
|
|
90
79
|
import {
|
|
91
80
|
package_default
|
|
92
|
-
} from "./packager-tool-
|
|
81
|
+
} from "./packager-tool-b14qj57y.js";
|
|
93
82
|
import {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
import"./packager-tool-w9bkq7zb.js";
|
|
83
|
+
packageInlineAgents2,
|
|
84
|
+
stageInlineAgentPackageFiles2,
|
|
85
|
+
ensureProcessBindings
|
|
86
|
+
} from "./packager-tool-yx0hy6pt.js";
|
|
99
87
|
import {
|
|
88
|
+
toPortableRelativePath2,
|
|
100
89
|
readUipxFile2,
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
} from "./packager-tool-2n6eg5eq.js";
|
|
90
|
+
updateUipxSolutionId2
|
|
91
|
+
} from "./packager-tool-mvzswn9n.js";
|
|
104
92
|
import {
|
|
105
93
|
applyRuntimeProfile2,
|
|
106
|
-
|
|
107
|
-
} from "./packager-tool-
|
|
108
|
-
import"./packager-tool-
|
|
109
|
-
import
|
|
110
|
-
|
|
94
|
+
resolveRuntimeProfile2
|
|
95
|
+
} from "./packager-tool-3sxg16ft.js";
|
|
96
|
+
import"./packager-tool-mm6a12y4.js";
|
|
97
|
+
import {
|
|
98
|
+
formatTriggerIdsHint
|
|
99
|
+
} from "./packager-tool-40bxn7j2.js";
|
|
111
100
|
|
|
112
101
|
// src/services/flow-local-workspace-eval-preparer.ts
|
|
113
|
-
function toForwardSlash(path) {
|
|
114
|
-
return path.replace(/\\/g, "/");
|
|
115
|
-
}
|
|
116
|
-
|
|
117
102
|
class FlowLocalWorkspaceEvalPreparer {
|
|
118
103
|
fs;
|
|
119
104
|
constructor(fs) {
|
|
@@ -141,37 +126,37 @@ class FlowLocalWorkspaceEvalPreparer {
|
|
|
141
126
|
const bpmnFileName = `${flowBaseName}.bpmn`;
|
|
142
127
|
const { workflow } = await readFlowWorkflow2(flowFilePath);
|
|
143
128
|
await assertInlineEntitiesBound2(this.fs, flowFilePath, workflow);
|
|
144
|
-
|
|
129
|
+
ensureProcessBindings(workflow);
|
|
145
130
|
logger.info("Found .flow file, converting to BPMN for eval debug...");
|
|
146
131
|
const bpmnXml = await this.convertToBpmn(workflow);
|
|
147
|
-
const
|
|
132
|
+
const solution = await this.findEnclosingSolution(absoluteProjectPath);
|
|
133
|
+
const solutionDir = solution?.solutionDir ?? this.fs.path.resolve(absoluteProjectPath, "..");
|
|
134
|
+
const flowProjectRelDir = solution?.projectRelDir ?? this.fs.path.basename(absoluteProjectPath);
|
|
148
135
|
const stagingDir = this.fs.path.join(this.fs.env.tmpdir(), `.flow-eval-staging-${safeProjectName}-${Date.now()}`);
|
|
149
136
|
await this.fs.mkdir(stagingDir);
|
|
150
137
|
let uisPath;
|
|
151
138
|
try {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
logger.warn(`Could not read .uipx: ${uipxError.message}. Falling back to flow-only upload.`);
|
|
155
|
-
}
|
|
156
|
-
const flowProjectRelDir = this.resolveProjectRelativeDir(solutionDir, absoluteProjectPath, uipxResult?.uipx.Projects ?? []);
|
|
157
|
-
if (uipxResult) {
|
|
158
|
-
await this.fs.writeFile(this.fs.path.join(stagingDir, uipxResult.uipxFileName), JSON.stringify(uipxResult.uipx, null, 4));
|
|
139
|
+
if (solution) {
|
|
140
|
+
await this.fs.writeFile(this.fs.path.join(stagingDir, solution.uipxFileName), JSON.stringify(solution.uipx, null, 4));
|
|
159
141
|
} else {
|
|
160
142
|
await this.writeSingleProjectSolutionMetadata(stagingDir, safeProjectName, flowProjectRelDir);
|
|
161
143
|
}
|
|
162
144
|
await this.copySolutionResources(solutionDir, stagingDir);
|
|
163
|
-
await this.copySiblingProjects(solutionDir, stagingDir, flowProjectRelDir,
|
|
145
|
+
await this.copySiblingProjects(solutionDir, stagingDir, flowProjectRelDir, solution?.uipx.Projects ?? []);
|
|
164
146
|
const stagingProjectDir = this.fs.path.join(stagingDir, flowProjectRelDir);
|
|
165
147
|
await ensureDirectory(this.fs, stagingProjectDir);
|
|
166
148
|
await this.writeFlowProjectArtifacts(stagingProjectDir, projectFileContent, workflow, flowFileName, bpmnFileName, bpmnXml, flowBaseName, absoluteProjectPath);
|
|
167
149
|
logger.info("Building solution package for eval debug...");
|
|
168
150
|
uisPath = await buildSolutionPackageFromDir2(this.fs, stagingDir);
|
|
169
|
-
const solutionInfo = await findSolutionFile2(this.fs, absoluteProjectPath);
|
|
170
151
|
const apiConfig = this.createApiConfig(config);
|
|
171
152
|
const folder = await getPersonalFolderInfo2(apiConfig);
|
|
172
|
-
const importResult = await uploadOrOverwriteSolution2(apiConfig, config.organizationName, uisPath, existingSolutionIdOverride ??
|
|
153
|
+
const importResult = await uploadOrOverwriteSolution2(apiConfig, config.organizationName, uisPath, existingSolutionIdOverride ?? solution?.uipx.SolutionId, this.fs);
|
|
173
154
|
if (options.persistLocalMetadata ?? true) {
|
|
174
|
-
|
|
155
|
+
if (solution) {
|
|
156
|
+
const update = await updateUipxSolutionId2(this.fs, solution.solutionFile, importResult.id);
|
|
157
|
+
if (update)
|
|
158
|
+
options.onLocalSolutionIdUpdated?.(update);
|
|
159
|
+
}
|
|
175
160
|
await this.updateLocalWorkspaceMarker(solutionDir, importResult.id);
|
|
176
161
|
}
|
|
177
162
|
const patchedCount = await patchConnectionOverwrites2(apiConfig, config.organizationName, importResult.id, solutionDir, folder, this.fs);
|
|
@@ -204,14 +189,9 @@ class FlowLocalWorkspaceEvalPreparer {
|
|
|
204
189
|
}
|
|
205
190
|
assertNoPreviewIds(workflow);
|
|
206
191
|
const fileFormat = workflowToFileFormat(workflow);
|
|
207
|
-
|
|
192
|
+
setPublishIntentOnInlineAgents2(fileFormat);
|
|
208
193
|
const { bpmn } = await convertFlowToBpmn(JSON.stringify(fileFormat, null, 2));
|
|
209
|
-
return
|
|
210
|
-
}
|
|
211
|
-
resolveProjectRelativeDir(solutionDir, projectPath, projects) {
|
|
212
|
-
const projectRelativePath = toForwardSlash(this.fs.path.relative(solutionDir, this.fs.path.join(projectPath, "project.uiproj")));
|
|
213
|
-
const matchedProject = projects.find((project) => toForwardSlash(project.ProjectRelativePath) === projectRelativePath);
|
|
214
|
-
return toForwardSlash(this.fs.path.dirname(matchedProject?.ProjectRelativePath ?? projectRelativePath));
|
|
194
|
+
return replaceExporterVersion2(bpmn, package_default.version);
|
|
215
195
|
}
|
|
216
196
|
async writeSingleProjectSolutionMetadata(stagingDir, projectName, projectRelativeDir) {
|
|
217
197
|
const solutionId = crypto.randomUUID();
|
|
@@ -237,6 +217,14 @@ class FlowLocalWorkspaceEvalPreparer {
|
|
|
237
217
|
]
|
|
238
218
|
}, null, 4));
|
|
239
219
|
}
|
|
220
|
+
async findEnclosingSolution(projectDir) {
|
|
221
|
+
const [error, solution] = await catchError2((async () => readEnclosingSolution(this.fs, await findRegisteredSolutionFile(this.fs, projectDir), projectDir))());
|
|
222
|
+
if (error) {
|
|
223
|
+
logger.warn(`${error.message} Falling back to flow-only upload.`);
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
return solution;
|
|
227
|
+
}
|
|
240
228
|
async copySolutionResources(solutionDir, stagingDir) {
|
|
241
229
|
const resourcesDir = this.fs.path.join(solutionDir, "resources");
|
|
242
230
|
if (await this.fs.exists(resourcesDir)) {
|
|
@@ -245,7 +233,7 @@ class FlowLocalWorkspaceEvalPreparer {
|
|
|
245
233
|
}
|
|
246
234
|
async copySiblingProjects(solutionDir, stagingDir, flowProjectRelDir, projects) {
|
|
247
235
|
for (const project of projects) {
|
|
248
|
-
const projectDir =
|
|
236
|
+
const projectDir = toPortableRelativePath2(this.fs.path.dirname(toPortableRelativePath2(project.ProjectRelativePath)));
|
|
249
237
|
if (projectDir === flowProjectRelDir) {
|
|
250
238
|
continue;
|
|
251
239
|
}
|
|
@@ -263,22 +251,22 @@ class FlowLocalWorkspaceEvalPreparer {
|
|
|
263
251
|
await writeFlowWorkflow2(this.fs.path.join(stagingProjectDir, flowFileName), flowData);
|
|
264
252
|
await this.fs.writeFile(this.fs.path.join(stagingProjectDir, bpmnFileName), bpmnXml);
|
|
265
253
|
const startEventId = extractStartEventId2(bpmnXml);
|
|
266
|
-
const packagingNodes =
|
|
267
|
-
const entryPointNodes =
|
|
254
|
+
const packagingNodes = flowToPackagingNodes2(flowData);
|
|
255
|
+
const entryPointNodes = fileNodesToPackagingNodes2(flowData.nodes);
|
|
268
256
|
const bindings = flowData.bindings ?? [];
|
|
269
257
|
const workflowVariables = flowData.variables ?? {};
|
|
270
258
|
const definitions = flowData.definitions ?? [];
|
|
271
|
-
const profile = await
|
|
259
|
+
const profile = await resolveRuntimeProfile2(this.fs, sourceProjectPath);
|
|
272
260
|
await applyRuntimeProfile2(this.fs, stagingProjectDir, profile);
|
|
273
|
-
const inlineAgentPackages = await
|
|
274
|
-
await
|
|
261
|
+
const inlineAgentPackages = await packageInlineAgents2(this.fs, sourceProjectPath, allNodesOf2(flowData));
|
|
262
|
+
await writePackagingArtifactsDetailed2(this.fs, stagingProjectDir, flowData.id, packagingNodes, bindings, workflowVariables, bpmnFileName, startEventId, flowFileName, definitions, {
|
|
275
263
|
entryPointNodes,
|
|
276
264
|
additionalEntryPoints: inlineAgentPackages.map((agent) => agent.entryPoint),
|
|
277
265
|
additionalBindingsJsons: inlineAgentPackages.map((agent) => agent.bindingsJson),
|
|
278
266
|
profile
|
|
279
267
|
});
|
|
280
|
-
await
|
|
281
|
-
await
|
|
268
|
+
await writeResolvedFlow2(this.fs, stagingProjectDir, flowBaseName, flowData);
|
|
269
|
+
await stageInlineAgentPackageFiles2(this.fs, sourceProjectPath, stagingProjectDir, inlineAgentPackages, (source) => `Staged inline agent "${source}" for eval debug`);
|
|
282
270
|
}
|
|
283
271
|
createApiConfig(config) {
|
|
284
272
|
return {
|
|
@@ -315,15 +303,17 @@ var AGENT_TARGET_RUNTIME = "pythonAgent";
|
|
|
315
303
|
var INLINE_AGENT_PROJECT_TYPE = "Agent";
|
|
316
304
|
var INLINE_AGENT_DEBUG_EXECUTOR_COMMAND = "debug";
|
|
317
305
|
var INLINE_AGENT_DEBUG_ATTACH_NONE_ARG = "--attach=none";
|
|
318
|
-
function toForwardSlash2(path) {
|
|
319
|
-
return path.replace(/\\/g, "/");
|
|
320
|
-
}
|
|
321
306
|
function projectDirFromRelativePath(fs, relativePath) {
|
|
322
|
-
return
|
|
307
|
+
return toPortableRelativePath2(fs.path.dirname(toPortableRelativePath2(relativePath ?? "")));
|
|
323
308
|
}
|
|
324
|
-
function
|
|
325
|
-
const
|
|
326
|
-
|
|
309
|
+
async function findListedProject(fs, projects, solutionDir, projectRelDir, absoluteProjectPath) {
|
|
310
|
+
const dirOf = (project) => projectDirFromRelativePath(fs, project.ProjectRelativePath);
|
|
311
|
+
const exact = projects?.find((project) => dirOf(project) === projectRelDir);
|
|
312
|
+
if (exact || !projects?.length) {
|
|
313
|
+
return exact;
|
|
314
|
+
}
|
|
315
|
+
const registeredDir = await projectRelativeDir(fs, solutionDir, absoluteProjectPath, projects);
|
|
316
|
+
return projects.find((project) => dirOf(project) === registeredDir) ?? projects.find((project) => fs.path.basename(dirOf(project)) === fs.path.basename(absoluteProjectPath));
|
|
327
317
|
}
|
|
328
318
|
function readRecordValue(record, key) {
|
|
329
319
|
return record?.[key];
|
|
@@ -333,7 +323,7 @@ function firstString(values) {
|
|
|
333
323
|
}
|
|
334
324
|
function readFlowStringProperty(flowContent, property) {
|
|
335
325
|
const [parseError, parsed] = catchError2(() => JSON.parse(flowContent));
|
|
336
|
-
if (parseError || !
|
|
326
|
+
if (parseError || !isRecord2(parsed)) {
|
|
337
327
|
return;
|
|
338
328
|
}
|
|
339
329
|
const value = parsed[property];
|
|
@@ -389,15 +379,15 @@ function withInlineAgentExecutorInfo(project) {
|
|
|
389
379
|
}
|
|
390
380
|
function extractInlineAgentProjects(flowContent, currentProjectId) {
|
|
391
381
|
const parsed = JSON.parse(flowContent);
|
|
392
|
-
if (!
|
|
382
|
+
if (!isRecord2(parsed) || !Array.isArray(parsed.nodes)) {
|
|
393
383
|
return [];
|
|
394
384
|
}
|
|
395
385
|
const seen = new Set;
|
|
396
|
-
return parsed.nodes.filter(
|
|
386
|
+
return parsed.nodes.filter(isRecord2).flatMap((node) => {
|
|
397
387
|
const nodeType = typeof node.type === "string" ? node.type : "";
|
|
398
|
-
const model =
|
|
399
|
-
const inputs =
|
|
400
|
-
const display =
|
|
388
|
+
const model = isRecord2(node.model) ? node.model : undefined;
|
|
389
|
+
const inputs = isRecord2(node.inputs) ? node.inputs : undefined;
|
|
390
|
+
const display = isRecord2(node.display) ? node.display : undefined;
|
|
401
391
|
const serviceType = typeof model?.serviceType === "string" ? model.serviceType.toLowerCase() : "";
|
|
402
392
|
const lowerType = nodeType.toLowerCase();
|
|
403
393
|
const isAgent = lowerType.startsWith("uipath.agent") || serviceType.includes("agent");
|
|
@@ -440,26 +430,31 @@ class FlowEvalRunContextResolver {
|
|
|
440
430
|
}
|
|
441
431
|
async resolveTarget(projectPath, evalSet, options, requireSolutionId, config) {
|
|
442
432
|
const absoluteProjectPath = await this.pathResolver.resolveProjectPath(projectPath);
|
|
443
|
-
const
|
|
444
|
-
const
|
|
445
|
-
const
|
|
433
|
+
const [registrationError, solutionFile] = await catchError2(findRegisteredSolutionFile(this.fs, absoluteProjectPath));
|
|
434
|
+
const solutionDir = this.fs.path.dirname(solutionFile ?? absoluteProjectPath);
|
|
435
|
+
const projectRelDir = toPortableRelativePath2(this.fs.path.relative(solutionDir, absoluteProjectPath));
|
|
436
|
+
const [uipxError, uipxResult] = solutionFile ? await catchError2(readUipxFile2(this.fs, solutionDir)) : [registrationError, undefined];
|
|
446
437
|
const solutionStorage = await this.readSolutionStorage(solutionDir);
|
|
447
438
|
const localWorkspaceMarker = await this.readLocalWorkspaceMarker(solutionDir);
|
|
448
|
-
const uipxProject =
|
|
449
|
-
const storageProject =
|
|
439
|
+
const uipxProject = await findListedProject(this.fs, uipxResult?.uipx.Projects, solutionDir, projectRelDir, absoluteProjectPath);
|
|
440
|
+
const storageProject = await findListedProject(this.fs, solutionStorage?.Projects, solutionDir, projectRelDir, absoluteProjectPath);
|
|
450
441
|
const flowFilePath = await this.pathResolver.findFlowFile(absoluteProjectPath);
|
|
451
442
|
const flowContent = String(await this.fs.readFile(flowFilePath, "utf-8"));
|
|
452
443
|
const vsixLocalSolutionId = readVsixLocalSolutionId(flowContent);
|
|
453
444
|
const isVsixLocalProject = localWorkspaceMarker === undefined && vsixLocalSolutionId !== undefined;
|
|
454
445
|
const flowProjectId = readFlowProjectId(flowContent);
|
|
455
446
|
if (uipxError && !solutionStorage && !options.projectId && !isVsixLocalProject) {
|
|
456
|
-
throw new Error(
|
|
447
|
+
throw new Error(`Could not resolve Flow project metadata from a parent .uipx or SolutionStorage.json file. Use a flow project extracted with 'uip solution download --extract', or provide --project-id. ${uipxError.message}`);
|
|
457
448
|
}
|
|
458
449
|
const localProjectDebugId = await this.readLocalProjectId(absoluteProjectPath);
|
|
459
450
|
let studioWebProjectId = options.projectId ?? (localWorkspaceMarker ? storageProject?.CloudProjectId ?? storageProject?.ProjectId ?? uipxProject?.Id ?? localProjectDebugId : isVsixLocalProject ? flowProjectId ?? localProjectDebugId ?? storageProject?.CloudProjectId ?? storageProject?.ProjectId ?? uipxProject?.Id : localProjectDebugId ?? storageProject?.CloudProjectId ?? storageProject?.ProjectId ?? uipxProject?.Id);
|
|
460
451
|
const projectIdFromUipxManifest = options.projectId === undefined && localWorkspaceMarker === undefined && !isVsixLocalProject && localProjectDebugId === undefined && storageProject?.CloudProjectId === undefined && storageProject?.ProjectId === undefined && uipxProject?.Id !== undefined;
|
|
461
452
|
const isLocalWorkspace = localWorkspaceMarker !== undefined;
|
|
462
453
|
const solutionId = options.solutionId ?? (isLocalWorkspace ? localWorkspaceMarker.SolutionId ?? solutionStorage?.SolutionId ?? uipxResult?.uipx.SolutionId : isVsixLocalProject ? vsixLocalSolutionId ?? solutionStorage?.SolutionId ?? uipxResult?.uipx.SolutionId : solutionStorage?.SolutionId ?? uipxResult?.uipx.SolutionId);
|
|
454
|
+
if (uipxError && requireSolutionId && options.solutionId === undefined && options.projectId === undefined && !isLocalWorkspace && !isVsixLocalProject && solutionId !== undefined) {
|
|
455
|
+
const nextStep = solutionFile ? ` ${buildInvalidSolutionManifestInstructions(solutionFile)}` : "";
|
|
456
|
+
throw new Error(`Refusing to upload ${this.fs.path.basename(absoluteProjectPath)} alone over solution ${solutionId} from SolutionStorage.json, which would drop its other projects. ${uipxError.message}${nextStep}`);
|
|
457
|
+
}
|
|
463
458
|
if (!studioWebProjectId) {
|
|
464
459
|
throw new Error("Could not resolve Flow project ID. Provide --project-id or run from a project listed in the parent .uipx or SolutionStorage.json file.");
|
|
465
460
|
}
|
|
@@ -493,7 +488,7 @@ class FlowEvalRunContextResolver {
|
|
|
493
488
|
throw new Error("Could not resolve solution ID.");
|
|
494
489
|
}
|
|
495
490
|
const shouldPrepareLocalProject = !options.projectId && !options.solutionId;
|
|
496
|
-
const resolvedIds = shouldPrepareLocalProject ? await this.resolvePreparedDebugIds(target, config, options
|
|
491
|
+
const resolvedIds = shouldPrepareLocalProject ? await this.resolvePreparedDebugIds(target, config, options) : {
|
|
497
492
|
studioWebProjectId: target.studioWebProjectId,
|
|
498
493
|
solutionId: target.solutionId,
|
|
499
494
|
folderKey: options.folderKey ?? (await getPersonalFolderKey2({
|
|
@@ -516,9 +511,11 @@ class FlowEvalRunContextResolver {
|
|
|
516
511
|
debugMode: options.debugMode ?? (readNodeTargetId2(target.evalSet) !== undefined ? 3 : 1)
|
|
517
512
|
};
|
|
518
513
|
}
|
|
519
|
-
async resolvePreparedDebugIds(target, config,
|
|
520
|
-
const preparedProject = target.isVsixLocalProject ? await this.localWorkspacePreparer.prepare(target.projectPath, config, target.solutionId, { persistLocalMetadata: false }) : await this.localWorkspacePreparer.prepare(target.projectPath, config, target.solutionId
|
|
521
|
-
|
|
514
|
+
async resolvePreparedDebugIds(target, config, options) {
|
|
515
|
+
const preparedProject = target.isVsixLocalProject ? await this.localWorkspacePreparer.prepare(target.projectPath, config, target.solutionId, { persistLocalMetadata: false }) : await this.localWorkspacePreparer.prepare(target.projectPath, config, target.solutionId, {
|
|
516
|
+
onLocalSolutionIdUpdated: options.onLocalSolutionIdUpdated
|
|
517
|
+
});
|
|
518
|
+
const folderKey = options.folderKey ?? preparedProject.folderKey;
|
|
522
519
|
if (target.isVsixLocalProject) {
|
|
523
520
|
return {
|
|
524
521
|
studioWebProjectId: preparedProject.studioWebProjectId,
|
|
@@ -591,7 +588,7 @@ class FlowEvalRunContextResolver {
|
|
|
591
588
|
}
|
|
592
589
|
byId.set(id, {
|
|
593
590
|
id,
|
|
594
|
-
name: this.fs.path.basename(this.fs.path.dirname(project.ProjectRelativePath)),
|
|
591
|
+
name: this.fs.path.basename(this.fs.path.dirname(toPortableRelativePath2(project.ProjectRelativePath))),
|
|
595
592
|
type: project.Type
|
|
596
593
|
});
|
|
597
594
|
}
|
|
@@ -618,7 +615,7 @@ class FlowEvalRunContextResolver {
|
|
|
618
615
|
return;
|
|
619
616
|
}
|
|
620
617
|
const [parseError, parsed] = catchError2(() => JSON.parse(String(content)));
|
|
621
|
-
if (parseError || !
|
|
618
|
+
if (parseError || !isRecord2(parsed)) {
|
|
622
619
|
return;
|
|
623
620
|
}
|
|
624
621
|
return typeof parsed.projectId === "string" && isUUID(parsed.projectId) ? parsed.projectId : undefined;
|
|
@@ -647,10 +644,10 @@ class FlowEvalRunContextResolver {
|
|
|
647
644
|
}
|
|
648
645
|
const content = await this.fs.readFile(storagePath, "utf-8");
|
|
649
646
|
const parsed = JSON.parse(String(content));
|
|
650
|
-
if (!
|
|
647
|
+
if (!isRecord2(parsed)) {
|
|
651
648
|
throw new Error("SolutionStorage.json must be a JSON object");
|
|
652
649
|
}
|
|
653
|
-
const projects = Array.isArray(parsed.Projects) ? parsed.Projects.filter(
|
|
650
|
+
const projects = Array.isArray(parsed.Projects) ? parsed.Projects.filter(isRecord2).map((project) => ({
|
|
654
651
|
ProjectId: typeof project.ProjectId === "string" ? project.ProjectId : undefined,
|
|
655
652
|
ProjectRelativePath: typeof project.ProjectRelativePath === "string" ? project.ProjectRelativePath : undefined,
|
|
656
653
|
CloudProjectId: typeof project.CloudProjectId === "string" ? project.CloudProjectId : undefined
|
|
@@ -823,4 +820,4 @@ export {
|
|
|
823
820
|
FlowEvalRunService
|
|
824
821
|
};
|
|
825
822
|
|
|
826
|
-
//# debugId=
|
|
823
|
+
//# debugId=3A9F580916B8260A64756E2164756E21
|