@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,80 +1,108 @@
|
|
|
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
|
-
extractErrorMessageSync,
|
|
9
8
|
RESULTS,
|
|
9
|
+
extractErrorMessageSync,
|
|
10
10
|
logger,
|
|
11
11
|
OutputFormatter,
|
|
12
12
|
quoteForShell
|
|
13
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-bcsjm5hv.js";
|
|
14
14
|
import {
|
|
15
|
+
JS_EXPRESSION_PREFIX2,
|
|
15
16
|
isExpressionValue2,
|
|
16
17
|
decodeLiteral2,
|
|
17
18
|
getJsExpressionBody2,
|
|
19
|
+
DYNAMIC_EXTRACT_NODE_TYPE2,
|
|
20
|
+
stripIxpSchemaEditorDraft2,
|
|
21
|
+
readExtractionOutputSchema2,
|
|
18
22
|
instance2,
|
|
23
|
+
isContainerNodeType2,
|
|
19
24
|
DECISION_NODE_TYPE2,
|
|
20
25
|
AGENT_NODE_TYPES2,
|
|
21
26
|
isVoiceAgentNodeType2,
|
|
27
|
+
isAgentNodeType2,
|
|
22
28
|
SYNTHETIC_GATEWAY_OUTPUT_KEYS2,
|
|
29
|
+
collectWorkflowNodes2,
|
|
30
|
+
isDynamicExtractNodeType2,
|
|
31
|
+
isIdpProcessorReadOnly2,
|
|
32
|
+
readIdpProcessorKey2,
|
|
33
|
+
readIdpProcessorName2,
|
|
34
|
+
readIdpProcessorFolderPath2,
|
|
35
|
+
isPublishedIdpProcessorLink2,
|
|
36
|
+
variableToJsonSchema2,
|
|
23
37
|
isStartEventNode2
|
|
24
|
-
} from "./packager-tool-
|
|
38
|
+
} from "./packager-tool-t0e7fvqz.js";
|
|
25
39
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./packager-tool-
|
|
40
|
+
buildErrorHandle2
|
|
41
|
+
} from "./packager-tool-dmhmcav3.js";
|
|
28
42
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
43
|
+
readAuthoringProcessorKey2,
|
|
44
|
+
createFlowRefResolver2,
|
|
45
|
+
resolveWorkflowRefs2,
|
|
46
|
+
inlineFlowRefs2,
|
|
47
|
+
canonicalAgentInputPath2,
|
|
48
|
+
collectAgentInputLeaves2,
|
|
49
|
+
isBareProjectIdSource2,
|
|
50
|
+
agentResourceReader2,
|
|
51
|
+
inlineEntityBindingIssues2,
|
|
52
|
+
hydrateAgentNodeInputs2,
|
|
53
|
+
hydrateEscalationNodes2,
|
|
54
|
+
parseFlowSource2,
|
|
55
|
+
runDesignerRules2,
|
|
56
|
+
UI_ONLY_NODE_TYPES2,
|
|
57
|
+
previewIdIssues
|
|
58
|
+
} from "./packager-tool-n4fky033.js";
|
|
59
|
+
import {
|
|
60
|
+
resolveProjectFlowFile2
|
|
61
|
+
} from "./packager-tool-942v78s9.js";
|
|
62
|
+
import {
|
|
63
|
+
readSolutionInlineEntities2
|
|
64
|
+
} from "./packager-tool-gjjr2a2w.js";
|
|
31
65
|
import {
|
|
32
66
|
parse,
|
|
33
67
|
loadRegistry2
|
|
34
|
-
} from "./packager-tool-
|
|
68
|
+
} from "./packager-tool-f3htkspn.js";
|
|
35
69
|
import {
|
|
36
70
|
loadResourceKeyMap2,
|
|
37
71
|
findProjectsWithoutProcessResource2,
|
|
38
72
|
resourcesRefreshCommand2
|
|
39
|
-
} from "./packager-tool-
|
|
73
|
+
} from "./packager-tool-bn09xgy8.js";
|
|
40
74
|
import {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
inlineFlowRefs,
|
|
44
|
-
canonicalAgentInputPath,
|
|
45
|
-
collectAgentInputLeaves,
|
|
46
|
-
isBareProjectIdSource,
|
|
47
|
-
inlineEntityBindingIssues,
|
|
48
|
-
hydrateAgentNodeInputs,
|
|
49
|
-
parseFlowSource,
|
|
50
|
-
runDesignerRules
|
|
51
|
-
} from "./packager-tool-x4xdtsbp.js";
|
|
75
|
+
loadCurrentTenantNodes2
|
|
76
|
+
} from "./packager-tool-c8mn8jr0.js";
|
|
52
77
|
import {
|
|
53
|
-
|
|
54
|
-
|
|
78
|
+
ERROR_SOURCE_PORT,
|
|
79
|
+
parseVisibleInputKey,
|
|
80
|
+
isHandleVisible,
|
|
81
|
+
applyInstanceSourceHandles,
|
|
82
|
+
expandHandleIds,
|
|
83
|
+
isTemplatedHandleId,
|
|
84
|
+
portMatchesTemplate
|
|
85
|
+
} from "./packager-tool-vg16h3pk.js";
|
|
55
86
|
import {
|
|
56
87
|
findNodeDefinition,
|
|
57
|
-
|
|
58
|
-
} from "./packager-tool-
|
|
88
|
+
isRecord2
|
|
89
|
+
} from "./packager-tool-7re5d8aq.js";
|
|
59
90
|
import {
|
|
60
91
|
checkForwardMigration
|
|
61
|
-
} from "./packager-tool-
|
|
62
|
-
import {
|
|
63
|
-
readSolutionInlineEntities2
|
|
64
|
-
} from "./packager-tool-1rhch6b5.js";
|
|
92
|
+
} from "./packager-tool-ybn5fymq.js";
|
|
65
93
|
import {
|
|
66
94
|
INLINE_ACTIVITY_TYPE_PREFIX,
|
|
67
95
|
INLINE_ACTIVITY_SOURCE,
|
|
68
96
|
collectScriptRefs,
|
|
69
97
|
getInlineActivityConfiguration,
|
|
70
98
|
findOrchestratorConnectionField,
|
|
71
|
-
isProcessNode2,
|
|
72
99
|
resolveProcessTarget2,
|
|
73
100
|
collectNodeBindingResourceKeys2
|
|
74
|
-
} from "./packager-tool-
|
|
101
|
+
} from "./packager-tool-wk6jaz9m.js";
|
|
75
102
|
import {
|
|
76
|
-
|
|
77
|
-
|
|
103
|
+
MINT_MISSING_IDS,
|
|
104
|
+
validateExtractionSchemaDocument
|
|
105
|
+
} from "./packager-tool-bbq5kbb9.js";
|
|
78
106
|
import {
|
|
79
107
|
isConnectorTriggerType,
|
|
80
108
|
isConnectorWaitForEventType,
|
|
@@ -82,26 +110,55 @@ import {
|
|
|
82
110
|
connectorNodeValidator2,
|
|
83
111
|
readEssentialConfiguration,
|
|
84
112
|
crossNodeBindingValidator
|
|
85
|
-
} from "./packager-tool-
|
|
113
|
+
} from "./packager-tool-frt20zp9.js";
|
|
86
114
|
import {
|
|
87
115
|
containerBodyPorts
|
|
88
|
-
} from "./packager-tool-
|
|
116
|
+
} from "./packager-tool-ajx79m52.js";
|
|
89
117
|
import {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
applyInstanceSourceHandles,
|
|
94
|
-
expandHandleIds,
|
|
95
|
-
isTemplatedHandleId,
|
|
96
|
-
portMatchesTemplate
|
|
97
|
-
} from "./packager-tool-yewnsyag.js";
|
|
118
|
+
flowScopes,
|
|
119
|
+
graphVariableIds
|
|
120
|
+
} from "./packager-tool-p8ncdnsj.js";
|
|
98
121
|
import {
|
|
99
|
-
|
|
100
|
-
} from "./packager-tool-
|
|
122
|
+
isProcessNode
|
|
123
|
+
} from "./packager-tool-yx0hy6pt.js";
|
|
124
|
+
import {
|
|
125
|
+
isReadableExtractionSchema,
|
|
126
|
+
isLegacySchemaDocument
|
|
127
|
+
} from "./packager-tool-0x8g8b5r.js";
|
|
128
|
+
import {
|
|
129
|
+
CONNECTION_BINDING_RESOURCE2
|
|
130
|
+
} from "./packager-tool-9tv5cyhr.js";
|
|
101
131
|
import {
|
|
102
132
|
findNearestParentUipxFile2,
|
|
103
133
|
readSolutionManifest2
|
|
104
|
-
} from "./packager-tool-
|
|
134
|
+
} from "./packager-tool-mvzswn9n.js";
|
|
135
|
+
import {
|
|
136
|
+
VALID_BINDING_ID_REGEX,
|
|
137
|
+
invalidBindingIdMessage
|
|
138
|
+
} from "./packager-tool-7wpb19zf.js";
|
|
139
|
+
import {
|
|
140
|
+
isGuid
|
|
141
|
+
} from "./packager-tool-1yew22sn.js";
|
|
142
|
+
|
|
143
|
+
// src/services/binding-id-rule.ts
|
|
144
|
+
function validateBindingIds(bindings) {
|
|
145
|
+
if (!Array.isArray(bindings))
|
|
146
|
+
return [];
|
|
147
|
+
const issues = [];
|
|
148
|
+
for (const raw of bindings) {
|
|
149
|
+
const id = raw?.id;
|
|
150
|
+
if (typeof id !== "string" || VALID_BINDING_ID_REGEX.test(id)) {
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
const { message, instruction } = invalidBindingIdMessage(id, "comes back null at run time, with no error");
|
|
154
|
+
issues.push({
|
|
155
|
+
path: `bindings[${id}].id`,
|
|
156
|
+
severity: "error",
|
|
157
|
+
message: `[BINDING_ID_NOT_IDENTIFIER] ${message} ${instruction}`
|
|
158
|
+
});
|
|
159
|
+
}
|
|
160
|
+
return issues;
|
|
161
|
+
}
|
|
105
162
|
|
|
106
163
|
// src/services/connector-binding-validator.ts
|
|
107
164
|
var STATIC_CONNECTOR_KEYWORDS = [
|
|
@@ -405,7 +462,7 @@ async function ensureCatalogRegistered() {
|
|
|
405
462
|
if (catalogRegistered || !instance2.isInitialized)
|
|
406
463
|
return;
|
|
407
464
|
try {
|
|
408
|
-
const { registerFlowExpressionModelI18n } = await import("./localization-
|
|
465
|
+
const { registerFlowExpressionModelI18n } = await import("./localization-axzmx1mb.js");
|
|
409
466
|
registerFlowExpressionModelI18n(instance2);
|
|
410
467
|
} catch (error) {
|
|
411
468
|
logger.warn(`Expression type checking localization unavailable, falling back to English: ${extractErrorMessageSync(error)}`);
|
|
@@ -414,7 +471,7 @@ async function ensureCatalogRegistered() {
|
|
|
414
471
|
}
|
|
415
472
|
var headlessModule;
|
|
416
473
|
function loadHeadless() {
|
|
417
|
-
headlessModule ??= import("./headless-
|
|
474
|
+
headlessModule ??= import("./headless-23ywyx9h.js").then((mod) => {
|
|
418
475
|
logger.info(`Expression type checking: @uipath/flow-expression-model (TypeScript ${mod.HEADLESS_TYPESCRIPT_VERSION})`);
|
|
419
476
|
return mod;
|
|
420
477
|
}).catch((error) => {
|
|
@@ -447,6 +504,61 @@ async function validateExpressions(graph, pathPrefix, strict = false) {
|
|
|
447
504
|
}));
|
|
448
505
|
}
|
|
449
506
|
|
|
507
|
+
// src/services/flow-structure-checks.ts
|
|
508
|
+
function scopeLabel(subflowId) {
|
|
509
|
+
return subflowId === undefined ? "root" : `subflows[${subflowId}]`;
|
|
510
|
+
}
|
|
511
|
+
function scopePath(subflowId) {
|
|
512
|
+
return subflowId === undefined ? "" : `subflows[${subflowId}].`;
|
|
513
|
+
}
|
|
514
|
+
function validateNodeVariableIds(workflow) {
|
|
515
|
+
return flowScopes(workflow).flatMap((scope) => {
|
|
516
|
+
const variableIds = graphVariableIds(workflow, scope.subflowId);
|
|
517
|
+
return scope.nodes.filter((n) => variableIds.has(n.id)).map((n) => ({
|
|
518
|
+
path: `${scopePath(scope.subflowId)}nodes[${n.id}]`,
|
|
519
|
+
severity: "error",
|
|
520
|
+
message: `Node ID "${n.id}" is also a workflow variable ID. \`$vars.${n.id}\` would name both the variable and the node's outputs. Rename the node or the variable.`
|
|
521
|
+
}));
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
function validateParentIds(workflow) {
|
|
525
|
+
const issues = [];
|
|
526
|
+
for (const scope of flowScopes(workflow)) {
|
|
527
|
+
const nodes = scope.nodes;
|
|
528
|
+
for (const node of nodes) {
|
|
529
|
+
if (node.parentId === undefined)
|
|
530
|
+
continue;
|
|
531
|
+
const parent = nodes.find((n) => n.id === node.parentId);
|
|
532
|
+
if (parent && isContainerNodeType2(parent.type))
|
|
533
|
+
continue;
|
|
534
|
+
const problem = parent ? `"${parent.id}" is a ${parent.type} node, not a loop, do-while or error handler. A node inside a subflow belongs in subflows.${parent.id}.nodes with no parentId.` : `no node "${node.parentId}" exists in ${scopeLabel(scope.subflowId)}.`;
|
|
535
|
+
issues.push({
|
|
536
|
+
path: `${scopePath(scope.subflowId)}nodes[${node.id}].parentId`,
|
|
537
|
+
severity: "warning",
|
|
538
|
+
message: `Node "${node.id}" has parentId "${node.parentId}", but ${problem} The parentId is ignored and the node renders beside its siblings.`
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
return issues;
|
|
543
|
+
}
|
|
544
|
+
function validateAgentSources(workflow) {
|
|
545
|
+
const owners = new Map;
|
|
546
|
+
for (const scope of flowScopes(workflow)) {
|
|
547
|
+
for (const node of scope.nodes) {
|
|
548
|
+
const source = node.inputs?.source;
|
|
549
|
+
if (!isAgentNodeType2(node.type) || typeof source !== "string") {
|
|
550
|
+
continue;
|
|
551
|
+
}
|
|
552
|
+
owners.set(source, [...owners.get(source) ?? [], node.id]);
|
|
553
|
+
}
|
|
554
|
+
}
|
|
555
|
+
return [...owners].filter(([, ids]) => ids.length > 1).map(([source, ids]) => ({
|
|
556
|
+
path: `nodes[${ids[1]}].inputs.source`,
|
|
557
|
+
severity: "warning",
|
|
558
|
+
message: `Agent nodes ${ids.map((id) => `"${id}"`).join(", ")} share source "${source}". Give each inline agent node its own agent folder if they should differ: run \`uip agent init <flow-dir> --inline-in-flow\` for another and pass its ProjectId as --source.`
|
|
559
|
+
}));
|
|
560
|
+
}
|
|
561
|
+
|
|
450
562
|
// src/services/node-validators/activity-type-id-validator.ts
|
|
451
563
|
var activityTypeIdValidator = {
|
|
452
564
|
id: "activity-type-id",
|
|
@@ -840,6 +952,51 @@ function scanForUnprefixedExpressions(obj, path, issues) {
|
|
|
840
952
|
}
|
|
841
953
|
}
|
|
842
954
|
|
|
955
|
+
// src/services/node-validators/extract-schema-validator.ts
|
|
956
|
+
var extractSchemaValidator = {
|
|
957
|
+
id: "extract-schema",
|
|
958
|
+
appliesTo: (node) => node.type === DYNAMIC_EXTRACT_NODE_TYPE2,
|
|
959
|
+
validate: (node, _context) => {
|
|
960
|
+
const document = node.inputs?.schemaDocument;
|
|
961
|
+
if (document === undefined || document === null)
|
|
962
|
+
return [];
|
|
963
|
+
const base = `nodes[${node.id}].inputs.schemaDocument`;
|
|
964
|
+
if (isLegacySchemaDocument(document)) {
|
|
965
|
+
return [
|
|
966
|
+
{
|
|
967
|
+
path: base,
|
|
968
|
+
severity: "warning",
|
|
969
|
+
message: "This node's extraction schema uses the superseded " + "{ taxonomy, fieldTypes } shape. Author a current one " + "and write it with 'uip maestro flow nodes schema " + "set <file> --node-id <node-id> --schema @<path>', " + "which mints a fresh id for every entry, or open the " + "flow in Studio Web, which converts it in place."
|
|
970
|
+
}
|
|
971
|
+
];
|
|
972
|
+
}
|
|
973
|
+
if (!isReadableExtractionSchema(document)) {
|
|
974
|
+
if (readExtractionOutputSchema2(document) !== undefined) {
|
|
975
|
+
return [
|
|
976
|
+
{
|
|
977
|
+
path: base,
|
|
978
|
+
severity: "warning",
|
|
979
|
+
message: "This node's extraction schema is a bare JSON " + 'Schema, carrying no "prompt", no field types and ' + `none of the stable ids. ${MINT_MISSING_IDS}`
|
|
980
|
+
}
|
|
981
|
+
];
|
|
982
|
+
}
|
|
983
|
+
return [
|
|
984
|
+
{
|
|
985
|
+
path: base,
|
|
986
|
+
severity: "error",
|
|
987
|
+
message: "inputs.schemaDocument must be an object with " + '"prompt" (the overall instructions) and ' + '"outputSchema".'
|
|
988
|
+
}
|
|
989
|
+
];
|
|
990
|
+
}
|
|
991
|
+
const executable = stripIxpSchemaEditorDraft2(document);
|
|
992
|
+
return validateExtractionSchemaDocument(executable).map((issue) => ({
|
|
993
|
+
path: `${base}.${issue.path}`,
|
|
994
|
+
severity: issue.severity ?? "error",
|
|
995
|
+
message: issue.message
|
|
996
|
+
}));
|
|
997
|
+
}
|
|
998
|
+
};
|
|
999
|
+
|
|
843
1000
|
// src/services/node-validators/file-node-connection-validator.ts
|
|
844
1001
|
var configureHint = (nodeId, connectorKey) => `Run \`uip maestro flow nodes configure <flow> ${nodeId} --detail '{"connectionId":"<uuid>"}'\` with a ${connectorKey} connection.`;
|
|
845
1002
|
var fileNodeConnectionValidator = {
|
|
@@ -975,7 +1132,7 @@ var ixpNodeValidator = {
|
|
|
975
1132
|
issues.push({
|
|
976
1133
|
path: `${base}.inputs.fileRef`,
|
|
977
1134
|
severity: "error",
|
|
978
|
-
message: "inputs.fileRef must be a `$vars` reference, for " + "example to an upstream node output. Write it either " + "as the string `=js:$vars.<upstream>.output.<field>` " + 'or as `{ "type": "jsExpression", "expression": ' + '"$vars.<upstream>.output.<field>" }` (no `=js:` ' + "
|
|
1135
|
+
message: "inputs.fileRef must be a `$vars` reference, for " + "example to an upstream node output. Write it either " + "as the string `=js:$vars.<upstream>.output.<field>` " + 'or as `{ "type": "jsExpression", "expression": ' + '"$vars.<upstream>.output.<field>", "fieldType": ' + '"object" }` (no `=js:` prefix inside a jsExpression, ' + "and `fieldType` is required). Any other value, " + "including a `literal` value, reaches the runtime as " + "a literal and the upstream output never resolves."
|
|
979
1136
|
});
|
|
980
1137
|
}
|
|
981
1138
|
for (const port of ["output", "error"]) {
|
|
@@ -1022,7 +1179,7 @@ var jsExpressionSyntaxValidator = {
|
|
|
1022
1179
|
const issues = [];
|
|
1023
1180
|
const severity = context.strictBindings ? "error" : "warning";
|
|
1024
1181
|
if (node.type === "core.action.script") {
|
|
1025
|
-
scanScriptBody(node.id, node.inputs,
|
|
1182
|
+
scanScriptBody(node.id, node.inputs, issues);
|
|
1026
1183
|
return issues;
|
|
1027
1184
|
}
|
|
1028
1185
|
const rawDetail = node.inputs?.detail;
|
|
@@ -1045,17 +1202,23 @@ var jsExpressionSyntaxValidator = {
|
|
|
1045
1202
|
return issues;
|
|
1046
1203
|
}
|
|
1047
1204
|
};
|
|
1048
|
-
function scanScriptBody(nodeId, inputs,
|
|
1205
|
+
function scanScriptBody(nodeId, inputs, issues) {
|
|
1049
1206
|
if (!inputs)
|
|
1050
1207
|
return;
|
|
1051
1208
|
const rawScript = inputs.script;
|
|
1052
|
-
const
|
|
1053
|
-
if (typeof
|
|
1209
|
+
const authored = typeof rawScript === "string" ? rawScript : isExpressionValue2(rawScript) && rawScript.type === "literal" ? decodeLiteral2(rawScript) : undefined;
|
|
1210
|
+
if (typeof authored !== "string")
|
|
1054
1211
|
return;
|
|
1212
|
+
let script = authored;
|
|
1213
|
+
while (script.startsWith(JS_EXPRESSION_PREFIX2)) {
|
|
1214
|
+
script = script.slice(JS_EXPRESSION_PREFIX2.length);
|
|
1215
|
+
}
|
|
1216
|
+
if (script.startsWith("="))
|
|
1217
|
+
script = script.slice(1);
|
|
1055
1218
|
if (script.trim() === "")
|
|
1056
1219
|
return;
|
|
1057
1220
|
const error = syntaxErrorFrom(() => parse(script, {
|
|
1058
|
-
ecmaVersion:
|
|
1221
|
+
ecmaVersion: "latest",
|
|
1059
1222
|
sourceType: "script",
|
|
1060
1223
|
allowReturnOutsideFunction: true
|
|
1061
1224
|
}));
|
|
@@ -1063,7 +1226,7 @@ function scanScriptBody(nodeId, inputs, severity, issues) {
|
|
|
1063
1226
|
return;
|
|
1064
1227
|
issues.push({
|
|
1065
1228
|
path: `nodes[${nodeId}].inputs.script`,
|
|
1066
|
-
severity,
|
|
1229
|
+
severity: "error",
|
|
1067
1230
|
message: `Script body has a JavaScript syntax error: ${error.message}.`
|
|
1068
1231
|
});
|
|
1069
1232
|
}
|
|
@@ -1094,7 +1257,7 @@ function reportInvalidExpression(expression, path, severity, issues) {
|
|
|
1094
1257
|
return;
|
|
1095
1258
|
const error = syntaxErrorFrom(() => parse(`(${expression}
|
|
1096
1259
|
)`, {
|
|
1097
|
-
ecmaVersion:
|
|
1260
|
+
ecmaVersion: "latest",
|
|
1098
1261
|
sourceType: "script"
|
|
1099
1262
|
}));
|
|
1100
1263
|
if (!error)
|
|
@@ -1193,6 +1356,17 @@ function matches(name, rows, scope, resource, sameResource) {
|
|
|
1193
1356
|
const candidates = resource ? rows.filter((b) => sameResource(b.resource, resource)) : rows;
|
|
1194
1357
|
return candidates.some((b) => b.name === name && (!scope || b.resourceKey === scope));
|
|
1195
1358
|
}
|
|
1359
|
+
var connectionFix = (resource, rowResources) => {
|
|
1360
|
+
const rowsFix = `set the "resource" of the matching bindings[] rows to "${CONNECTION_BINDING_RESOURCE2}"`;
|
|
1361
|
+
const definitionFix = `set the definition's model.bindings.resource to "${CONNECTION_BINDING_RESOURCE2}"`;
|
|
1362
|
+
let manual = `${definitionFix} and ${rowsFix}`;
|
|
1363
|
+
if (resource === CONNECTION_BINDING_RESOURCE2)
|
|
1364
|
+
manual = rowsFix;
|
|
1365
|
+
else if (rowResources.every((r) => r === CONNECTION_BINDING_RESOURCE2)) {
|
|
1366
|
+
manual = definitionFix;
|
|
1367
|
+
}
|
|
1368
|
+
return ` Canonical casing is "${CONNECTION_BINDING_RESOURCE2}". Fix: ${manual}.`;
|
|
1369
|
+
};
|
|
1196
1370
|
var exact = (a, b) => a === b;
|
|
1197
1371
|
var folded = (a, b) => (a ?? "").toLowerCase() === (b ?? "").toLowerCase();
|
|
1198
1372
|
var unresolvedBindingPlaceholderValidator = {
|
|
@@ -1217,10 +1391,11 @@ var unresolvedBindingPlaceholderValidator = {
|
|
|
1217
1391
|
const casingOnly = resource !== undefined && matches(name, rows, scope, resource, folded);
|
|
1218
1392
|
let message;
|
|
1219
1393
|
if (casingOnly) {
|
|
1394
|
+
const otherRows = rows.filter((b) => b.name === name && b.resource !== resource && folded(b.resource, resource));
|
|
1220
1395
|
const rowCasings = [
|
|
1221
|
-
...new Set(
|
|
1396
|
+
...new Set(otherRows.map((b) => `"${b.resource}"`))
|
|
1222
1397
|
].join(", ");
|
|
1223
|
-
const canonical = isConnection(resource) ?
|
|
1398
|
+
const canonical = isConnection(resource) ? connectionFix(resource, otherRows.map((b) => b.resource)) : " Align the two casings.";
|
|
1224
1399
|
message = `[UNRESOLVED_BINDING] Node "${node.id}": placeholder "<bindings.${name}>" matches a binding only case-insensitively — the definition "${node.type}" declares model.bindings.resource "${resource}" but the matching bindings[] rows declare ${rowCasings}. Studio Web compares these exactly and refuses to publish ("${name}" is not configured).${canonical}`;
|
|
1225
1400
|
} else {
|
|
1226
1401
|
message = `[UNRESOLVED_BINDING] Node "${node.id}": placeholder "<bindings.${name}>" has no matching entry in the flow's bindings[] (need name "${name}"${resource ? `, resource "${resource}"` : ""}${scope ? `, resourceKey "${scope}"` : ""}). Studio Web refuses to publish ("${name}" is not configured) and the runtime would receive the literal placeholder. Re-bind the node's connection/resource so its bindings[] rows are written.`;
|
|
@@ -1242,6 +1417,7 @@ var defaultNodeValidators = [
|
|
|
1242
1417
|
connectorNodeValidator2,
|
|
1243
1418
|
crossNodeBindingValidator,
|
|
1244
1419
|
expressionPrefixValidator,
|
|
1420
|
+
extractSchemaValidator,
|
|
1245
1421
|
fileNodeConnectionValidator,
|
|
1246
1422
|
inlineActivityValidator,
|
|
1247
1423
|
jsExpressionSyntaxValidator,
|
|
@@ -1296,6 +1472,8 @@ var ARRAY_MEMBERS = new Set([
|
|
|
1296
1472
|
"with"
|
|
1297
1473
|
]);
|
|
1298
1474
|
var SCRIPT_NODE_TYPE = "core.action.script";
|
|
1475
|
+
var QUICK_FORM_NODE_TYPE = "uipath.human-in-the-loop.quick-form";
|
|
1476
|
+
var FORM_BINDING_PATH = /^inputs\.schema\.fields\[\d+\]\.binding$/;
|
|
1299
1477
|
var JS_EXPRESSION_TYPE = "jsExpression";
|
|
1300
1478
|
var DECISION_UNPOPULATED_OUTPUTS = new Set(SYNTHETIC_GATEWAY_OUTPUT_KEYS2);
|
|
1301
1479
|
function undefinedSafe(ref, k) {
|
|
@@ -1701,40 +1879,57 @@ function buildMustRun(flow, definitionOf, modelTypeOf) {
|
|
|
1701
1879
|
list.push(e.sourceNodeId);
|
|
1702
1880
|
incoming.set(e.targetNodeId, list);
|
|
1703
1881
|
}
|
|
1704
|
-
const
|
|
1705
|
-
const
|
|
1706
|
-
const mustRun = (id) => {
|
|
1707
|
-
const hit = memo.get(id);
|
|
1708
|
-
if (hit)
|
|
1709
|
-
return hit;
|
|
1710
|
-
if (visiting.has(id))
|
|
1711
|
-
return new Set;
|
|
1712
|
-
visiting.add(id);
|
|
1882
|
+
const sets = new Map;
|
|
1883
|
+
const evaluate = (id) => {
|
|
1713
1884
|
const ins = incoming.get(id) ?? [];
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
}
|
|
1885
|
+
if (ins.length === 0)
|
|
1886
|
+
return new Set([id]);
|
|
1887
|
+
const node = nodesById.get(id);
|
|
1888
|
+
const isJoin = node !== undefined && (node.type === "core.logic.merge" || modelTypeOf(node) === "bpmn:ParallelGateway");
|
|
1889
|
+
const known = ins.map((s) => sets.get(s));
|
|
1890
|
+
const result = new Set([id]);
|
|
1891
|
+
if (isJoin) {
|
|
1892
|
+
let anyKnown = false;
|
|
1893
|
+
for (const [i, k] of known.entries()) {
|
|
1894
|
+
if (k === undefined)
|
|
1895
|
+
continue;
|
|
1896
|
+
anyKnown = true;
|
|
1897
|
+
for (const x of k)
|
|
1898
|
+
result.add(x);
|
|
1899
|
+
result.add(ins[i]);
|
|
1730
1900
|
}
|
|
1901
|
+
return anyKnown ? result : undefined;
|
|
1731
1902
|
}
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1903
|
+
const narrowed = ins.map((s, i) => [s, known[i]]).filter(([, k]) => k !== undefined);
|
|
1904
|
+
if (narrowed.length === 0)
|
|
1905
|
+
return;
|
|
1906
|
+
const [[firstId, first], ...rest] = narrowed;
|
|
1907
|
+
const common = new Set([...first, firstId]);
|
|
1908
|
+
for (const [s, k] of rest) {
|
|
1909
|
+
const reach = new Set([...k, s]);
|
|
1910
|
+
for (const x of [...common])
|
|
1911
|
+
if (!reach.has(x))
|
|
1912
|
+
common.delete(x);
|
|
1913
|
+
}
|
|
1914
|
+
for (const x of common)
|
|
1915
|
+
result.add(x);
|
|
1916
|
+
return result;
|
|
1736
1917
|
};
|
|
1737
|
-
|
|
1918
|
+
let changed = true;
|
|
1919
|
+
while (changed) {
|
|
1920
|
+
changed = false;
|
|
1921
|
+
for (const n of flow.nodes) {
|
|
1922
|
+
const next = evaluate(n.id);
|
|
1923
|
+
const prev = sets.get(n.id);
|
|
1924
|
+
if (next === undefined)
|
|
1925
|
+
continue;
|
|
1926
|
+
if (prev && prev.size === next.size)
|
|
1927
|
+
continue;
|
|
1928
|
+
sets.set(n.id, next);
|
|
1929
|
+
changed = true;
|
|
1930
|
+
}
|
|
1931
|
+
}
|
|
1932
|
+
return (id) => sets.get(id) ?? new Set([id]);
|
|
1738
1933
|
}
|
|
1739
1934
|
function declaredOutputs(node, definition) {
|
|
1740
1935
|
const names = new Set;
|
|
@@ -1940,6 +2135,13 @@ function validateVarsReferences(flow, options = {}) {
|
|
|
1940
2135
|
});
|
|
1941
2136
|
continue;
|
|
1942
2137
|
}
|
|
2138
|
+
if (anc.size > 0 && node.type === QUICK_FORM_NODE_TYPE && FORM_BINDING_PATH.test(occurrence.fieldPath) && !undefinedSafe(ref, 0) && !mustRun(node.id).has(root)) {
|
|
2139
|
+
issues.push({
|
|
2140
|
+
path,
|
|
2141
|
+
severity: "warning",
|
|
2142
|
+
message: `Form "${reader}" binds "${ref.text}", but "${root}" runs only on some of the paths that reach "${node.id}" (a loop back into the form or a Decision/Switch branch skips it). ` + "On the other paths the binding evaluates against a null and task creation faults ([400300] Error evaluating expression in activity inputs). " + `Bind a node that runs on every path to the form, or read "${root}" null-safely in a Script upstream of the form and bind that Script's output.`
|
|
2143
|
+
});
|
|
2144
|
+
}
|
|
1943
2145
|
if (second !== undefined) {
|
|
1944
2146
|
const decisionIssue = decisionUnpopulatedOutputIssue({
|
|
1945
2147
|
producer,
|
|
@@ -1987,13 +2189,46 @@ function validateVarsReferences(flow, options = {}) {
|
|
|
1987
2189
|
}
|
|
1988
2190
|
|
|
1989
2191
|
// src/services/flow-validate-service.ts
|
|
2192
|
+
var PROMPT_TOKEN_OPEN = "{{";
|
|
2193
|
+
var PROMPT_TOKEN_CLOSE = "}}";
|
|
2194
|
+
var NODE_PATH_OPEN = "nodes[";
|
|
2195
|
+
var PROMPT_FIELD_SUFFIXES = [
|
|
2196
|
+
"].inputs.systemPrompt",
|
|
2197
|
+
"].inputs.userPrompt"
|
|
2198
|
+
];
|
|
2199
|
+
var WORD_CHAR = /\w/;
|
|
2200
|
+
function promptNodeIdFromPath(path) {
|
|
2201
|
+
for (let open = path.indexOf(NODE_PATH_OPEN);open !== -1; open = path.indexOf(NODE_PATH_OPEN, open + 1)) {
|
|
2202
|
+
if (open > 0 && WORD_CHAR.test(path[open - 1])) {
|
|
2203
|
+
continue;
|
|
2204
|
+
}
|
|
2205
|
+
const idStart = open + NODE_PATH_OPEN.length;
|
|
2206
|
+
const close = path.indexOf("]", idStart);
|
|
2207
|
+
if (close === -1) {
|
|
2208
|
+
return;
|
|
2209
|
+
}
|
|
2210
|
+
const isPromptField = PROMPT_FIELD_SUFFIXES.some((suffix) => path.startsWith(suffix, close));
|
|
2211
|
+
if (close > idStart && isPromptField) {
|
|
2212
|
+
return path.slice(idStart, close);
|
|
2213
|
+
}
|
|
2214
|
+
open = close;
|
|
2215
|
+
}
|
|
2216
|
+
return;
|
|
2217
|
+
}
|
|
1990
2218
|
function extractPromptVariables(content) {
|
|
1991
2219
|
const vars = new Set;
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
2220
|
+
let open = content.indexOf(PROMPT_TOKEN_OPEN);
|
|
2221
|
+
while (open !== -1) {
|
|
2222
|
+
const close = content.indexOf("}", open + PROMPT_TOKEN_OPEN.length);
|
|
2223
|
+
if (close === -1) {
|
|
2224
|
+
break;
|
|
2225
|
+
}
|
|
2226
|
+
if (content.startsWith(PROMPT_TOKEN_CLOSE, close)) {
|
|
2227
|
+
vars.add(content.slice(open + PROMPT_TOKEN_OPEN.length, close));
|
|
2228
|
+
open = content.indexOf(PROMPT_TOKEN_OPEN, close + PROMPT_TOKEN_CLOSE.length);
|
|
2229
|
+
continue;
|
|
2230
|
+
}
|
|
2231
|
+
open = content.indexOf(PROMPT_TOKEN_OPEN, close + 1);
|
|
1997
2232
|
}
|
|
1998
2233
|
return [...vars];
|
|
1999
2234
|
}
|
|
@@ -2223,8 +2458,8 @@ Validating: ${absolutePath}
|
|
|
2223
2458
|
throw new Error(`Could not read file: ${absolutePath}`);
|
|
2224
2459
|
}
|
|
2225
2460
|
const issues = [];
|
|
2226
|
-
const [, source] = await catchError2(
|
|
2227
|
-
const parsed =
|
|
2461
|
+
const [, source] = await catchError2(inlineFlowRefs2(this.fs, content, absolutePath, logger));
|
|
2462
|
+
const parsed = parseFlowSource2(source ?? content);
|
|
2228
2463
|
if (!parsed.ok) {
|
|
2229
2464
|
return {
|
|
2230
2465
|
success: false,
|
|
@@ -2237,16 +2472,24 @@ Validating: ${absolutePath}
|
|
|
2237
2472
|
const currentManifests = this.validateCurrentManifests ? await this.loadCurrentManifestMap() : new Map;
|
|
2238
2473
|
const flowDir = this.fs.path.dirname(absolutePath);
|
|
2239
2474
|
const hydrationDiagnoses = await this.resolveAgentPrompts(graph.nodes, flowDir);
|
|
2475
|
+
const readAgentResource = agentResourceReader2(this.fs, flowDir);
|
|
2476
|
+
await hydrateEscalationNodes2(graph, readAgentResource);
|
|
2240
2477
|
issues.push(...await this.validateForwardMigration(content, absolutePath));
|
|
2241
2478
|
issues.push(...this.validateGraph(graph, "", rawDefErrorHandling, currentManifests));
|
|
2242
2479
|
issues.push(...this.validateGlobalVariableUniqueness(workflow, ""));
|
|
2480
|
+
issues.push(...this.validateGlobalVariableTypes(workflow));
|
|
2243
2481
|
issues.push(...this.validateFileWideIdUniqueness(workflow));
|
|
2482
|
+
issues.push(...validateNodeVariableIds(workflow), ...validateParentIds(workflow), ...validateAgentSources(workflow));
|
|
2244
2483
|
issues.push(...this.validateGlobalTriggerBindings(workflow, ""));
|
|
2245
2484
|
issues.push(...this.validateTriggerScopedBareVarReads(workflow, ""));
|
|
2485
|
+
issues.push(...this.validateRootEntryPointIds(workflow));
|
|
2246
2486
|
issues.push(...this.validateUnboundInputGlobals(graph, ""));
|
|
2487
|
+
issues.push(...validateBindingIds(workflow.bindings));
|
|
2247
2488
|
issues.push(...this.validateResourceBindings(workflow));
|
|
2248
2489
|
issues.push(...this.validateConnectionIdReuse(workflow));
|
|
2249
2490
|
issues.push(...this.validateDuplicateProcessTargets(workflow));
|
|
2491
|
+
issues.push(...this.validateIdpProcessorAuthors(workflow));
|
|
2492
|
+
issues.push(...this.validateIdpProcessorsProvisioned(workflow));
|
|
2250
2493
|
issues.push(...await this.validateConnectorBindingShapes(workflow));
|
|
2251
2494
|
issues.push(...this.validateAgentInputBindings(graph, hydrationDiagnoses, ""));
|
|
2252
2495
|
issues.push(...this.validateAgentPromptInputRefs(graph, hydrationDiagnoses, ""));
|
|
@@ -2261,9 +2504,11 @@ Validating: ${absolutePath}
|
|
|
2261
2504
|
const subDiagnoses = await this.resolveAgentPrompts(subNodes, flowDir);
|
|
2262
2505
|
for (const [k, v] of subDiagnoses)
|
|
2263
2506
|
hydrationDiagnoses.set(k, v);
|
|
2507
|
+
const subEdges = entry.edges;
|
|
2508
|
+
await hydrateEscalationNodes2({ nodes: subNodes, edges: subEdges }, readAgentResource);
|
|
2264
2509
|
const subGraph = {
|
|
2265
2510
|
nodes: subNodes,
|
|
2266
|
-
edges:
|
|
2511
|
+
edges: subEdges,
|
|
2267
2512
|
definitions: workflow.definitions,
|
|
2268
2513
|
variables: entry.variables,
|
|
2269
2514
|
bindings: workflow.bindings
|
|
@@ -2305,7 +2550,7 @@ Validating: ${absolutePath}
|
|
|
2305
2550
|
return [];
|
|
2306
2551
|
let resolved;
|
|
2307
2552
|
try {
|
|
2308
|
-
({ resolved } = await
|
|
2553
|
+
({ resolved } = await resolveWorkflowRefs2(raw, createFlowRefResolver2(this.fs), absolutePath));
|
|
2309
2554
|
} catch {
|
|
2310
2555
|
return [];
|
|
2311
2556
|
}
|
|
@@ -2338,7 +2583,7 @@ Validating: ${absolutePath}
|
|
|
2338
2583
|
continue;
|
|
2339
2584
|
}
|
|
2340
2585
|
const sourceLocation = "inputs.source";
|
|
2341
|
-
if (!
|
|
2586
|
+
if (!isBareProjectIdSource2(source)) {
|
|
2342
2587
|
diagnoses.set(node.id, {
|
|
2343
2588
|
sourceLocation,
|
|
2344
2589
|
sourceId: source,
|
|
@@ -2379,12 +2624,12 @@ Validating: ${absolutePath}
|
|
|
2379
2624
|
diag.agentJsonUnparseable = true;
|
|
2380
2625
|
continue;
|
|
2381
2626
|
}
|
|
2382
|
-
|
|
2627
|
+
hydrateAgentNodeInputs2(node, agent);
|
|
2383
2628
|
const settings = agent.settings;
|
|
2384
2629
|
if (isVoiceAgentNodeType2(node.type)) {
|
|
2385
|
-
const voiceSettings =
|
|
2386
|
-
diag.voiceSettingsPresent =
|
|
2387
|
-
diag.isConversationalAgent =
|
|
2630
|
+
const voiceSettings = isRecord2(settings) ? settings.voice : undefined;
|
|
2631
|
+
diag.voiceSettingsPresent = isRecord2(voiceSettings);
|
|
2632
|
+
diag.isConversationalAgent = isRecord2(agent.metadata) && agent.metadata.isConversational === true;
|
|
2388
2633
|
}
|
|
2389
2634
|
const messages = agent.messages;
|
|
2390
2635
|
if (!Array.isArray(messages))
|
|
@@ -2424,11 +2669,11 @@ Validating: ${absolutePath}
|
|
|
2424
2669
|
const props = inputSchema.properties;
|
|
2425
2670
|
if (props && typeof props === "object") {
|
|
2426
2671
|
diag.declaredInputKeys = Object.keys(props);
|
|
2427
|
-
const leaves =
|
|
2672
|
+
const leaves = collectAgentInputLeaves2(inputSchema);
|
|
2428
2673
|
diag.declaredInputLeaves = leaves;
|
|
2429
2674
|
diag.declaredInputPaths = new Set([
|
|
2430
2675
|
...leaves.map((leaf) => leaf.path),
|
|
2431
|
-
...diag.declaredInputKeys.map(
|
|
2676
|
+
...diag.declaredInputKeys.map(canonicalAgentInputPath2)
|
|
2432
2677
|
]);
|
|
2433
2678
|
}
|
|
2434
2679
|
}
|
|
@@ -2548,7 +2793,7 @@ Validating: ${absolutePath}
|
|
|
2548
2793
|
const key = this.canonicalInputKey(raw);
|
|
2549
2794
|
if (key === undefined) {
|
|
2550
2795
|
malformed.push(raw);
|
|
2551
|
-
} else if (!declared.has(key) && !declaredPaths.has(
|
|
2796
|
+
} else if (!declared.has(key) && !declaredPaths.has(canonicalAgentInputPath2(key))) {
|
|
2552
2797
|
undeclared.push(key);
|
|
2553
2798
|
}
|
|
2554
2799
|
}
|
|
@@ -2711,14 +2956,12 @@ Validating: ${absolutePath}
|
|
|
2711
2956
|
enrichInlineAgentPromptIssues(issues, diagnoses, flowDir) {
|
|
2712
2957
|
if (diagnoses.size === 0)
|
|
2713
2958
|
return;
|
|
2714
|
-
const promptFieldRe = /\bnodes\[([^\]]+)\]\.inputs\.(systemPrompt|userPrompt)/;
|
|
2715
2959
|
for (const issue of issues) {
|
|
2716
2960
|
if (!issue.message.includes("REQUIRED_FIELD"))
|
|
2717
2961
|
continue;
|
|
2718
|
-
const
|
|
2719
|
-
if (
|
|
2962
|
+
const nodeId = promptNodeIdFromPath(issue.path);
|
|
2963
|
+
if (nodeId === undefined)
|
|
2720
2964
|
continue;
|
|
2721
|
-
const nodeId = m[1];
|
|
2722
2965
|
const diag = diagnoses.get(nodeId);
|
|
2723
2966
|
if (!diag)
|
|
2724
2967
|
continue;
|
|
@@ -2736,7 +2979,7 @@ Validating: ${absolutePath}
|
|
|
2736
2979
|
}));
|
|
2737
2980
|
issues.push(...this.validateEdgeHandles(graph, rawDefErrorHandling));
|
|
2738
2981
|
issues.push(...this.validateEdgeHandlesAgainstCurrentManifests(graph, currentManifests));
|
|
2739
|
-
issues.push(...
|
|
2982
|
+
issues.push(...runDesignerRules2(graph, {
|
|
2740
2983
|
isSubflow: Boolean(pathPrefix),
|
|
2741
2984
|
governanceEnforcements: this.governanceEnforcements,
|
|
2742
2985
|
availableModelNames: this.availableModelNames,
|
|
@@ -2898,6 +3141,26 @@ Validating: ${absolutePath}
|
|
|
2898
3141
|
}
|
|
2899
3142
|
return issues;
|
|
2900
3143
|
}
|
|
3144
|
+
validateGlobalVariableTypes(flow) {
|
|
3145
|
+
const issues = [];
|
|
3146
|
+
for (const v of flow.variables?.globals ?? []) {
|
|
3147
|
+
if (v.direction === "inout" || v.type === undefined)
|
|
3148
|
+
continue;
|
|
3149
|
+
const packaged = variableToJsonSchema2({
|
|
3150
|
+
id: v.id,
|
|
3151
|
+
direction: v.direction,
|
|
3152
|
+
type: v.type
|
|
3153
|
+
});
|
|
3154
|
+
if (packaged.type === "string" && v.type.toLowerCase() !== "string") {
|
|
3155
|
+
issues.push({
|
|
3156
|
+
path: `variables.globals[${v.id}].type`,
|
|
3157
|
+
message: `Variable "${v.id}" has type "${v.type}", which Flow does not recognize, so it is packaged as a plain string. Use a type such as string, number, integer, boolean, object, array or file.`,
|
|
3158
|
+
severity: "warning"
|
|
3159
|
+
});
|
|
3160
|
+
}
|
|
3161
|
+
}
|
|
3162
|
+
return issues;
|
|
3163
|
+
}
|
|
2901
3164
|
validateGlobalTriggerBindings(flow, pathPrefix) {
|
|
2902
3165
|
const issues = [];
|
|
2903
3166
|
const nodes = flow.nodes ?? [];
|
|
@@ -3044,7 +3307,7 @@ Validating: ${absolutePath}
|
|
|
3044
3307
|
}
|
|
3045
3308
|
async validateInlineEntityBindings(workflow, absolutePath) {
|
|
3046
3309
|
const inlineEntities = await readSolutionInlineEntities2(this.fs, absolutePath);
|
|
3047
|
-
return
|
|
3310
|
+
return inlineEntityBindingIssues2(workflow, inlineEntities, absolutePath);
|
|
3048
3311
|
}
|
|
3049
3312
|
validateResourceBindings(workflow) {
|
|
3050
3313
|
const issues = [];
|
|
@@ -3069,7 +3332,7 @@ Validating: ${absolutePath}
|
|
|
3069
3332
|
})))
|
|
3070
3333
|
];
|
|
3071
3334
|
for (const node of allNodes) {
|
|
3072
|
-
if (!
|
|
3335
|
+
if (!isProcessNode({ nodeType: node.type }))
|
|
3073
3336
|
continue;
|
|
3074
3337
|
const needed = collectNodeBindingResourceKeys2(node, bindings, definitions);
|
|
3075
3338
|
for (const key of needed) {
|
|
@@ -3098,7 +3361,10 @@ Validating: ${absolutePath}
|
|
|
3098
3361
|
list = [];
|
|
3099
3362
|
buckets.set(connId, list);
|
|
3100
3363
|
}
|
|
3101
|
-
|
|
3364
|
+
const connector = detail?.connector;
|
|
3365
|
+
if (typeof connector !== "string" || connector.length === 0)
|
|
3366
|
+
return;
|
|
3367
|
+
list.push({ nodeId: node.id, scope, connector });
|
|
3102
3368
|
}
|
|
3103
3369
|
for (const node of workflow.nodes) {
|
|
3104
3370
|
recordNode(node, "");
|
|
@@ -3109,18 +3375,99 @@ Validating: ${absolutePath}
|
|
|
3109
3375
|
}
|
|
3110
3376
|
}
|
|
3111
3377
|
for (const [connId, occurrences] of buckets) {
|
|
3112
|
-
|
|
3378
|
+
const connectors = [
|
|
3379
|
+
...new Set(occurrences.map((o) => o.connector))
|
|
3380
|
+
];
|
|
3381
|
+
if (connectors.length < 2)
|
|
3113
3382
|
continue;
|
|
3114
3383
|
const nodeList = occurrences.map((o) => `${o.scope}nodes[${o.nodeId}]`).join(", ");
|
|
3115
3384
|
const first = occurrences[0];
|
|
3116
3385
|
issues.push({
|
|
3117
3386
|
path: `${first.scope}nodes[${first.nodeId}].inputs.detail.connectionResourceId`,
|
|
3118
3387
|
severity: "warning",
|
|
3119
|
-
message: `Connection "${connId}" is
|
|
3388
|
+
message: `Connection "${connId}" is used by nodes of different connectors (${connectors.join(", ")}: ${nodeList}). A connection belongs to one connector; create one per connector.`
|
|
3120
3389
|
});
|
|
3121
3390
|
}
|
|
3122
3391
|
return issues;
|
|
3123
3392
|
}
|
|
3393
|
+
validateIdpProcessorsProvisioned(workflow) {
|
|
3394
|
+
const issues = [];
|
|
3395
|
+
const check = (node, scope) => {
|
|
3396
|
+
if (!isDynamicExtractNodeType2(node?.type))
|
|
3397
|
+
return;
|
|
3398
|
+
if (readIdpProcessorKey2(node?.inputs) !== undefined)
|
|
3399
|
+
return;
|
|
3400
|
+
const folderPath = readIdpProcessorFolderPath2(node?.inputs);
|
|
3401
|
+
if (folderPath !== undefined && readIdpProcessorName2(node?.inputs) !== undefined) {
|
|
3402
|
+
return;
|
|
3403
|
+
}
|
|
3404
|
+
const nodeId = typeof node.id === "string" ? node.id : "?";
|
|
3405
|
+
if (folderPath !== undefined) {
|
|
3406
|
+
issues.push({
|
|
3407
|
+
path: `${scope}nodes[${nodeId}].inputs.processorName`,
|
|
3408
|
+
severity: "error",
|
|
3409
|
+
message: `Extract document node '${nodeId}' names the processor folder '${folderPath}' but no processor name, and a folder alone does not resolve a processor, so the extraction has nothing to run and the instance faults. ` + "Set 'inputs.processorName' to the processor's name in that folder, or clear 'inputs.processorFolderPath' and give the node its own processor."
|
|
3410
|
+
});
|
|
3411
|
+
return;
|
|
3412
|
+
}
|
|
3413
|
+
issues.push({
|
|
3414
|
+
path: `${scope}nodes[${nodeId}].inputs.processorKey`,
|
|
3415
|
+
severity: "error",
|
|
3416
|
+
message: isIdpProcessorReadOnly2(node?.inputs) ? `Extract document node '${nodeId}' is marked read-only ('inputs.processorReadOnly') but names no processor to read, so the extraction has nothing to run and the instance faults. ` + "Set 'inputs.processorKey' to the authoring node's key, or remove 'inputs.processorReadOnly' and provision it as its own." : `Extract document node '${nodeId}' names no IDP processor, so the extraction has nothing to run and the instance faults. ` + "Provision one with 'uip maestro flow nodes provision <file> " + `--node-id ${nodeId}', then commit the .flow and the resource file it writes.`
|
|
3417
|
+
});
|
|
3418
|
+
};
|
|
3419
|
+
for (const node of collectWorkflowNodes2({ nodes: workflow.nodes })) {
|
|
3420
|
+
check(node, "");
|
|
3421
|
+
}
|
|
3422
|
+
if (typeof workflow.subflows === "object" && workflow.subflows !== null) {
|
|
3423
|
+
for (const [subflowId, subflow] of Object.entries(workflow.subflows)) {
|
|
3424
|
+
for (const node of collectWorkflowNodes2(subflow)) {
|
|
3425
|
+
check(node, `subflows[${subflowId}].`);
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3428
|
+
}
|
|
3429
|
+
return issues;
|
|
3430
|
+
}
|
|
3431
|
+
validateIdpProcessorAuthors(workflow) {
|
|
3432
|
+
const authorsByKey = new Map;
|
|
3433
|
+
const record = (node, scope) => {
|
|
3434
|
+
if (isPublishedIdpProcessorLink2(node.inputs))
|
|
3435
|
+
return;
|
|
3436
|
+
const processorKey = readAuthoringProcessorKey2(node);
|
|
3437
|
+
if (!processorKey)
|
|
3438
|
+
return;
|
|
3439
|
+
const authors = authorsByKey.get(processorKey) ?? [];
|
|
3440
|
+
authors.push({
|
|
3441
|
+
nodeId: typeof node.id === "string" ? node.id : "?",
|
|
3442
|
+
scope
|
|
3443
|
+
});
|
|
3444
|
+
authorsByKey.set(processorKey, authors);
|
|
3445
|
+
};
|
|
3446
|
+
for (const node of collectWorkflowNodes2({ nodes: workflow.nodes })) {
|
|
3447
|
+
record(node, "");
|
|
3448
|
+
}
|
|
3449
|
+
if (typeof workflow.subflows === "object" && workflow.subflows !== null) {
|
|
3450
|
+
for (const [subflowId, subflow] of Object.entries(workflow.subflows)) {
|
|
3451
|
+
for (const node of collectWorkflowNodes2(subflow)) {
|
|
3452
|
+
record(node, `subflows[${subflowId}].`);
|
|
3453
|
+
}
|
|
3454
|
+
}
|
|
3455
|
+
}
|
|
3456
|
+
const issues = [];
|
|
3457
|
+
for (const [processorKey, authors] of authorsByKey) {
|
|
3458
|
+
if (authors.length <= 1)
|
|
3459
|
+
continue;
|
|
3460
|
+
const authorList = authors.map((author) => `${author.scope}nodes[${author.nodeId}]`).join(", ");
|
|
3461
|
+
for (const author of authors) {
|
|
3462
|
+
issues.push({
|
|
3463
|
+
path: `${author.scope}nodes[${author.nodeId}].inputs.processorKey`,
|
|
3464
|
+
severity: "error",
|
|
3465
|
+
message: `IDP processor '${processorKey}' is authored by ${authors.length} Extract document nodes (${authorList}). ` + "A processor holds one extraction definition, so exactly one node may author it: " + "give the other nodes a fresh 'inputs.processorKey', or mark intentional copies " + "read-only with 'inputs.processorReadOnly': true."
|
|
3466
|
+
});
|
|
3467
|
+
}
|
|
3468
|
+
}
|
|
3469
|
+
return issues;
|
|
3470
|
+
}
|
|
3124
3471
|
validateDuplicateProcessTargets(workflow) {
|
|
3125
3472
|
const issues = [];
|
|
3126
3473
|
const subflows = workflow.subflows ?? {};
|
|
@@ -3167,6 +3514,30 @@ Validating: ${absolutePath}
|
|
|
3167
3514
|
}
|
|
3168
3515
|
return issues;
|
|
3169
3516
|
}
|
|
3517
|
+
validateRootEntryPointIds(flow) {
|
|
3518
|
+
const issues = [];
|
|
3519
|
+
for (const node of flow.nodes ?? []) {
|
|
3520
|
+
const isEntryPoint = isStartEventNode2({
|
|
3521
|
+
id: node.id,
|
|
3522
|
+
type: node.type,
|
|
3523
|
+
typeVersion: node.typeVersion ?? "1.0"
|
|
3524
|
+
});
|
|
3525
|
+
if (!isEntryPoint)
|
|
3526
|
+
continue;
|
|
3527
|
+
const entryPointId = node.inputs?.entryPointId;
|
|
3528
|
+
if (!entryPointId)
|
|
3529
|
+
continue;
|
|
3530
|
+
if (typeof entryPointId === "string" && isGuid(entryPointId)) {
|
|
3531
|
+
continue;
|
|
3532
|
+
}
|
|
3533
|
+
issues.push({
|
|
3534
|
+
path: `nodes[${node.id}].inputs.entryPointId`,
|
|
3535
|
+
severity: "error",
|
|
3536
|
+
message: `Trigger "${node.id}" has entryPointId ${JSON.stringify(entryPointId)}, which is not a GUID. \`flow publish\` fails because pack writes it to entry-points.json \`uniqueId\`, which must be a GUID. Set inputs.entryPointId to a GUID (for example the output of \`uuidgen\`) and keep it unchanged afterwards, since it is the package entry point. If the flow is built with the builder SDK, update @uipath/maestro-builder-sdk and recompile.`
|
|
3537
|
+
});
|
|
3538
|
+
}
|
|
3539
|
+
return issues;
|
|
3540
|
+
}
|
|
3170
3541
|
async validateConnectorBindingShapes(workflow) {
|
|
3171
3542
|
const catalog = await this.loadConnectorCatalogCached();
|
|
3172
3543
|
return validateConnectorBindings(workflow, catalog, {
|
|
@@ -3410,7 +3781,7 @@ Validating: ${absolutePath}
|
|
|
3410
3781
|
}
|
|
3411
3782
|
if (defEntry.supportsErrorHandling && !entry.source.has("error")) {
|
|
3412
3783
|
entry.source.set("error", {
|
|
3413
|
-
visible:
|
|
3784
|
+
visible: buildErrorHandle2().visible
|
|
3414
3785
|
});
|
|
3415
3786
|
}
|
|
3416
3787
|
const { sourceDeclared, customization } = applyInstanceSourceHandles(entry, node, {
|
|
@@ -3616,4 +3987,4 @@ function describeUnsatisfiableJoin(node, finding, graph) {
|
|
|
3616
3987
|
|
|
3617
3988
|
export { FlowValidateService2 };
|
|
3618
3989
|
|
|
3619
|
-
//# debugId=
|
|
3990
|
+
//# debugId=89E3C78E5505C29A64756E2164756E21
|