@uipath/flow-tool 1.206.0-preview.303 → 1.207.0-preview.305
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 +13 -13
- 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-zg19e6vy.js → binding-service-qfbtg6qy.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-e99tdk52.js → connector-service-8t5swsf9.js} +156 -76
- package/dist/{conversion-7O2PDOQB-2677ata3.js → conversion-A2KZVSOA-s70m4p50.js} +256 -90
- package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
- package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-NX7YTOSY-4f0r23sx.js} +1282 -10
- package/dist/{de-2BEKRUMY-MD7L477H-nan48spf.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-ytvdz98e.js → edge-service-706zfmyb.js} +41 -31
- package/dist/{elk.bundled-phy0zc81.js → elk.bundled-pfmz610v.js} +1 -1
- package/dist/{en-LAVDF7IQ-ba7wzsxp.js → en-5JIPZTS5-v0f9wmd2.js} +4 -2
- package/dist/{en-X6T4SP2Y-FPGCJIFV-jgjgvnws.js → en-ETY46SDS-RI6EZCN6-g3n0v4ff.js} +67 -3
- package/dist/{en-X6T4SP2Y-xe57av1w.js → en-ETY46SDS-yfqhqvbx.js} +66 -2
- package/dist/{en-WPCQ4JKF-nr4tr5vp.js → en-JZXY3PYE-9q1q9w7h.js} +4 -4
- package/dist/{en-LQHKFSEY-vv8bbfdf.js → en-LQHKFSEY-j7gk3aaw.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-n0bw44wg.js → es-IYP2OLUY-7SKYGF6A-jp5kcwrd.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-zmw94959.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -15
- package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-D74A6FRL-1r3g7760.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/{flow-api-1hr7z6qc.js → flow-api-bmg7beey.js} +15 -12
- package/dist/{flow-debug-service-p5w8gj48.js → flow-debug-service-bppp59pe.js} +232 -156
- package/dist/flow-eval-node-target-hc9n1913.js +31 -0
- package/dist/flow-eval-run-api-g6sphtf3.js +11 -0
- package/dist/{flow-eval-run-service-ej6xg2jd.js → flow-eval-run-service-qdtz7ec7.js} +116 -119
- package/dist/{flow-eval-service-vf73ejad.js → flow-eval-service-mg7gveh3.js} +141 -337
- package/dist/{flow-init-sdk-source-vg1ckdrf.js → flow-init-sdk-source-t2q2w6v7.js} +5 -5
- package/dist/flow-init-service-0m5yp9fe.js +27 -0
- package/dist/flow-io-c8b17vbx.js +29 -0
- package/dist/{flow-migrate-service-fsxzyj9c.js → flow-migrate-service-a8s4rmq6.js} +20 -20
- package/dist/{flow-pack-service-09b385hw.js → flow-pack-service-jhr4rmsy.js} +89 -90
- package/dist/flow-validate-service-hpt8dqyr.js +49 -0
- package/dist/{fr-7LK3QUWT-a94yejcs.js → fr-EPBGOBOP-rs7qy97k.js} +19 -4
- package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-3ANDQPI3-993fw1pz.js} +1282 -10
- package/dist/{fr-7ZDL4MVO-CXMRZDOF-y6pa4ntx.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-v88cz998.js → governance-fetcher-hkm1hvn0.js} +7 -7
- package/dist/{headless-41t9wwb7.js → headless-23ywyx9h.js} +390 -195
- package/dist/{hitl-service-5symf9as.js → hitl-service-hs54d6tt.js} +11 -11
- package/dist/index-7enyyjxr.js +161 -0
- package/dist/{index-wss1mf5j.js → index-b02kt4sx.js} +114 -68
- package/dist/{index-qjarp6ky.js → index-cg965dhq.js} +34 -27
- package/dist/{index-t2f7scza.js → index-db1djbzm.js} +12 -8
- package/dist/{index-r44xc976.js → index-eyjrdzgx.js} +5 -5
- package/dist/{index-7fet3f0s.js → index-h67w2p9p.js} +3 -3
- package/dist/{index-f5kq7265.js → index-r6crd7tx.js} +6 -4
- package/dist/{index-ng011fzs.js → index-r6y07e14.js} +94 -74
- package/dist/{index-5pzp2qeb.js → index-v3w1930f.js} +18 -18
- package/dist/{index-d4bdedx3.js → index-ynw2efd8.js} +6 -4
- package/dist/{index-2methrrt.js → index-zemcat7k.js} +13 -11
- 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-pya7frj9.js → inline-entity-resolver-9esjm2e7.js} +11 -11
- package/dist/input-reader-3zvbsn6a.js +12 -0
- package/dist/integration-service-fetcher-h6er48b7.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-mrdn9rvy.js → ja-HTS2Q4YG-7Q6WUI6H-6e5nzy0t.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-479c9akr.js → ko-3JFGTMNY-VT6UQ3IS-5a2hnf97.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-bq7m24js.js +65 -0
- package/dist/{node-strategy-wrjxmbzt.js → node-strategy-2r78gtca.js} +2 -2
- package/dist/{node-sync-service-z3gjn1a6.js → node-sync-service-6v7j8m4p.js} +22 -15
- package/dist/node-xzwyr0mf.js +172 -0
- package/dist/{packager-tool-h44jmvjd.js → packager-tool-0g2grsn8.js} +2 -2
- package/dist/packager-tool-0x8g8b5r.js +25 -0
- package/dist/packager-tool-13mmsykc.js +125 -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-2devymwf.js +423 -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-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-54jdtyk4.js → packager-tool-7d6y5paj.js} +11 -11
- package/dist/{packager-tool-ac6rvny7.js → packager-tool-7re5d8aq.js} +1139 -466
- package/dist/{packager-tool-6an563h8.js → packager-tool-7wpb19zf.js} +10 -3
- package/dist/packager-tool-9tv5cyhr.js +16 -0
- package/dist/{packager-tool-7atc775f.js → packager-tool-ajx79m52.js} +1 -1
- package/dist/{packager-tool-96es3aqy.js → packager-tool-asfftv7z.js} +330 -902
- package/dist/{packager-tool-zx162jbb.js → packager-tool-b0prefcm.js} +489 -118
- 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-1qg04b7q.js → packager-tool-bzcphfa8.js} +4 -2
- package/dist/{node-vz9f9wqw.js → packager-tool-cpbsp04w.js} +189 -285
- package/dist/{packager-tool-gdpw0daf.js → packager-tool-dmhmcav3.js} +3773 -2625
- package/dist/{packager-tool-m1y5ah6s.js → packager-tool-f3htkspn.js} +215 -233
- package/dist/{packager-tool-710j2ga4.js → packager-tool-f4pvpaw2.js} +1123 -295
- package/dist/packager-tool-geh2qybm.js +179 -0
- package/dist/{packager-tool-1rhch6b5.js → packager-tool-gjjr2a2w.js} +66 -19
- package/dist/packager-tool-h0gzqmya.js +224 -0
- package/dist/packager-tool-h9f2vjwg.js +40 -0
- package/dist/{packager-tool-ndenq8jp.js → packager-tool-jf4m7sqc.js} +23 -9
- package/dist/{packager-tool-swn9mp69.js → packager-tool-jghqgdmm.js} +228 -487
- package/dist/{packager-tool-64r7e4ek.js → packager-tool-jjnfwfd4.js} +2 -2
- package/dist/packager-tool-kh1taypp.js +41 -0
- package/dist/{packager-tool-pdt4jmnw.js → packager-tool-m2h98d2z.js} +246 -61
- package/dist/packager-tool-m8avdf10.js +1060 -0
- package/dist/{packager-tool-g18z2qds.js → packager-tool-ma1z6nqe.js} +2 -2
- 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-p8ncdnsj.js +30 -0
- package/dist/{packager-tool-vdp3s2fb.js → packager-tool-px52tjy2.js} +9 -7
- package/dist/{packager-tool-rfs464c3.js → packager-tool-qf08dexq.js} +584 -651
- 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-swvgkcq7.js +5973 -0
- package/dist/{packager-tool-fzgfb0jt.js → packager-tool-t0e7fvqz.js} +1228 -759
- package/dist/{packager-tool-p123mtfx.js → packager-tool-tgawhrva.js} +58 -16
- package/dist/{packager-tool-s4zvbgvd.js → packager-tool-tm4d12jb.js} +15328 -7171
- package/dist/{packager-tool-8ra2qxqe.js → packager-tool-v7gxvkpx.js} +13 -13
- package/dist/{packager-tool-yewnsyag.js → packager-tool-vg16h3pk.js} +80 -6
- package/dist/packager-tool-w2eqf95v.js +16 -0
- package/dist/packager-tool-wvf6b31h.js +50 -0
- package/dist/{packager-tool-ejvmkxgg.js → packager-tool-wz5zmx67.js} +10 -10
- package/dist/packager-tool-xgh2t48c.js +255 -0
- package/dist/{packager-tool-w9bkq7zb.js → packager-tool-xgvp8a8g.js} +10 -10
- package/dist/{packager-tool-sehmpn8j.js → packager-tool-y84mhf89.js} +8 -8
- package/dist/packager-tool-ys7jsqhg.js +184 -0
- package/dist/{packager-tool-ze3fnf3s.js → packager-tool-zap4kd3z.js} +7 -2
- package/dist/{packager-tool-6g2ex7yf.js → packager-tool-zgm6kh18.js} +21 -21
- package/dist/{packager-tool-dr3zc9n9.js → packager-tool-zgzpqfcs.js} +13 -6
- package/dist/packager-tool.js +9 -9
- package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-8frvq826.js} +39 -6
- package/dist/provision-node-service-sxnfgrwy.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-1k5yafmz.js → pt-BR-7H7BP5DT-IOHWNCIU-pbdnhe7r.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-jge952w8.js → pt-QWGSZKMD-RTKSQCYA-80hp6e1q.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-bmkd7d2n.js → ro-B7G474JK-9k2jjk88.js} +1271 -15
- package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-Q3BAA4S3-t47bbx2a.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-cdcpfwx0.js +12 -0
- package/dist/schema-document-service-mknqzg7e.js +30 -0
- package/dist/{serialization-Z3UYT6BW-e1ks0ytt.js → serialization-7CB4AREI-6b7ng26y.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-discovery-wwwynadq.js → solution-discovery-v5qatmz2.js} +7 -7
- package/dist/taggable-variables-nc8td6er.js +134 -0
- package/dist/{tidy-service-0xqfd039.js → tidy-service-rsxb2h63.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-5ctjnkng.js} +1276 -10
- package/dist/{tr-7AIZZWZ6-ESAESUPL-0ehs3crp.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-wek1apw7.js → variable-service-95j5nyjh.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-phrmedm3.js} +1276 -10
- package/dist/{zh-CN-CN2ARPFS-NIQTWDK2-zmcqpd02.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-dg651ga1.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -16
- package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-ECGOEPYS-xxye2kfv.js} +1277 -11
- package/package.json +2 -2
- package/dist/flow-eval-node-target-xxzqch9z.js +0 -29
- package/dist/flow-eval-run-api-w4j8ra60.js +0 -9
- package/dist/flow-init-service-1zyc9wcd.js +0 -26
- package/dist/flow-io-27atafz4.js +0 -24
- package/dist/flow-validate-service-6erwscc6.js +0 -46
- package/dist/input-reader-jjq3r7ry.js +0 -11
- package/dist/localization-erchshqr.js +0 -45
- package/dist/node-service-qtpqs5en.js +0 -64
- 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-f9mgybn8.js +0 -18
- package/dist/packager-tool-jd3v0bh1.js +0 -26
- package/dist/packager-tool-k3egwd1m.js +0 -15
- package/dist/packager-tool-q0f1dvtd.js +0 -40
- package/dist/packager-tool-q756a7tg.js +0 -56
- package/dist/packager-tool-wr7gn964.js +0 -2
- package/dist/packager-tool-zw2zy3h2.js +0 -461
- package/dist/ru-GSCT4ARZ-FTVCGQTL-p9re6ys2.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,51 +1,42 @@
|
|
|
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-
|
|
7
|
-
import"./packager-tool-
|
|
8
|
-
import"./packager-tool-ze3fnf3s.js";
|
|
9
|
-
import"./packager-tool-fzgfb0jt.js";
|
|
6
|
+
} from "./packager-tool-4hn7v05x.js";
|
|
7
|
+
import"./packager-tool-bcsjm5hv.js";
|
|
10
8
|
import {
|
|
11
|
-
|
|
12
|
-
resolveWorkflowRefs,
|
|
13
|
-
isBareProjectIdSource
|
|
14
|
-
} from "./packager-tool-s4zvbgvd.js";
|
|
15
|
-
import"./packager-tool-2b0tn4p4.js";
|
|
16
|
-
import {
|
|
17
|
-
evaluatorTypeAliases,
|
|
18
|
-
isRecord,
|
|
19
|
-
slugify,
|
|
20
|
-
findEvalSet,
|
|
21
|
-
EvaluationCrud,
|
|
22
|
-
EvaluatorCrud,
|
|
23
|
-
EvalFileStore,
|
|
24
|
-
EvalFiles,
|
|
9
|
+
isRecord2,
|
|
25
10
|
resolveEvalApiConfig,
|
|
11
|
+
EvalService,
|
|
26
12
|
findMatchingDefinition
|
|
27
|
-
} from "./packager-tool-
|
|
13
|
+
} from "./packager-tool-7re5d8aq.js";
|
|
14
|
+
import"./packager-tool-t0e7fvqz.js";
|
|
15
|
+
import"./packager-tool-zap4kd3z.js";
|
|
16
|
+
import {
|
|
17
|
+
createFlowRefResolver2,
|
|
18
|
+
resolveWorkflowRefs2,
|
|
19
|
+
isBareProjectIdSource2
|
|
20
|
+
} from "./packager-tool-tm4d12jb.js";
|
|
21
|
+
import"./packager-tool-6azsz9h8.js";
|
|
28
22
|
import {
|
|
29
23
|
findFlowNode2,
|
|
30
24
|
isNodeEvalTarget2,
|
|
31
25
|
isDocumentEvalNode2,
|
|
32
26
|
readNodeTargetId2,
|
|
33
27
|
FlowAgentNodeSchemaReader2
|
|
34
|
-
} from "./packager-tool-
|
|
35
|
-
import"./packager-tool-
|
|
28
|
+
} from "./packager-tool-zgm6kh18.js";
|
|
29
|
+
import"./packager-tool-jf4m7sqc.js";
|
|
36
30
|
import {
|
|
37
31
|
FlowEvalPathResolver
|
|
38
|
-
} from "./packager-tool-
|
|
32
|
+
} from "./packager-tool-7d6y5paj.js";
|
|
33
|
+
import"./packager-tool-mvzswn9n.js";
|
|
34
|
+
import"./packager-tool-3sxg16ft.js";
|
|
35
|
+
import"./packager-tool-mm6a12y4.js";
|
|
39
36
|
import {
|
|
40
37
|
listTriggerNodeIds,
|
|
41
38
|
formatTriggerIdsHint
|
|
42
|
-
} from "./packager-tool-
|
|
43
|
-
import"./packager-tool-wr7gn964.js";
|
|
44
|
-
import"./packager-tool-2sazb7th.js";
|
|
45
|
-
import"./packager-tool-2n6eg5eq.js";
|
|
46
|
-
import"./packager-tool-14rdgz3c.js";
|
|
47
|
-
import"./packager-tool-jd3v0bh1.js";
|
|
48
|
-
import"./packager-tool-4g87fbz6.js";
|
|
39
|
+
} from "./packager-tool-40bxn7j2.js";
|
|
49
40
|
|
|
50
41
|
// src/services/flow-node-output-schema.ts
|
|
51
42
|
class FlowEvalOutputSchema {
|
|
@@ -77,12 +68,12 @@ function readFlowGlobalsAsOutputs(flowContent) {
|
|
|
77
68
|
} catch {
|
|
78
69
|
return outputs;
|
|
79
70
|
}
|
|
80
|
-
if (!
|
|
71
|
+
if (!isRecord2(parsed))
|
|
81
72
|
return outputs;
|
|
82
|
-
const variables =
|
|
73
|
+
const variables = isRecord2(parsed.variables) ? parsed.variables : undefined;
|
|
83
74
|
const globals = Array.isArray(variables?.globals) ? variables.globals : [];
|
|
84
75
|
for (const entry of globals) {
|
|
85
|
-
if (!
|
|
76
|
+
if (!isRecord2(entry))
|
|
86
77
|
continue;
|
|
87
78
|
if (entry.direction !== "out")
|
|
88
79
|
continue;
|
|
@@ -121,15 +112,15 @@ async function readResolvedFlow(fs, flowFilePath) {
|
|
|
121
112
|
} catch (error) {
|
|
122
113
|
throw new Error(`Could not parse ${flowFilePath}: ${error instanceof Error ? error.message : String(error)}`);
|
|
123
114
|
}
|
|
124
|
-
if (!
|
|
115
|
+
if (!isRecord2(parsed)) {
|
|
125
116
|
throw new Error(`Could not parse ${flowFilePath}: not a JSON object.`);
|
|
126
117
|
}
|
|
127
118
|
const missing = [];
|
|
128
|
-
const resolver =
|
|
119
|
+
const resolver = createFlowRefResolver2(fs, {
|
|
129
120
|
warn: (message) => missing.push(message)
|
|
130
121
|
});
|
|
131
|
-
const [refError, result] = await catchError2(
|
|
132
|
-
if (refError || missing.length > 0 || !result || !
|
|
122
|
+
const [refError, result] = await catchError2(resolveWorkflowRefs2(parsed, resolver, flowFilePath));
|
|
123
|
+
if (refError || missing.length > 0 || !result || !isRecord2(result.resolved)) {
|
|
133
124
|
const reason = refError ? refError.message : missing.length > 0 ? missing.join("; ") : "the resolved flow is not a JSON object";
|
|
134
125
|
throw new Error(`Could not resolve the $ref chunks of ${flowFilePath}: ${reason}`);
|
|
135
126
|
}
|
|
@@ -171,14 +162,14 @@ function scopesOfNode(flow, componentId) {
|
|
|
171
162
|
if (!Array.isArray(list))
|
|
172
163
|
return;
|
|
173
164
|
for (const n of list) {
|
|
174
|
-
if (
|
|
165
|
+
if (isRecord2(n) && n.id === componentId)
|
|
175
166
|
scopes.push(scope);
|
|
176
167
|
}
|
|
177
168
|
};
|
|
178
169
|
scan(flow.nodes, "nodes");
|
|
179
|
-
if (
|
|
170
|
+
if (isRecord2(flow.subflows)) {
|
|
180
171
|
for (const [key, sub] of Object.entries(flow.subflows)) {
|
|
181
|
-
if (
|
|
172
|
+
if (isRecord2(sub))
|
|
182
173
|
scan(sub.nodes, `subflows.${key}.nodes`);
|
|
183
174
|
}
|
|
184
175
|
}
|
|
@@ -190,13 +181,13 @@ function allNodes(flow) {
|
|
|
190
181
|
if (!Array.isArray(list))
|
|
191
182
|
return;
|
|
192
183
|
for (const n of list)
|
|
193
|
-
if (
|
|
184
|
+
if (isRecord2(n))
|
|
194
185
|
out.push(n);
|
|
195
186
|
};
|
|
196
187
|
push(flow.nodes);
|
|
197
|
-
if (
|
|
188
|
+
if (isRecord2(flow.subflows)) {
|
|
198
189
|
for (const sub of Object.values(flow.subflows)) {
|
|
199
|
-
if (
|
|
190
|
+
if (isRecord2(sub))
|
|
200
191
|
push(sub.nodes);
|
|
201
192
|
}
|
|
202
193
|
}
|
|
@@ -211,7 +202,7 @@ function suggestComponentIds(nodes, componentId) {
|
|
|
211
202
|
for (const n of nodes) {
|
|
212
203
|
if (typeof n.id !== "string")
|
|
213
204
|
continue;
|
|
214
|
-
const display =
|
|
205
|
+
const display = isRecord2(n.display) ? n.display : undefined;
|
|
215
206
|
const label = typeof display?.label === "string" ? display.label : "";
|
|
216
207
|
if (label === componentId || want !== "" && (squash(n.id) === want || squash(label) === want)) {
|
|
217
208
|
hits.push(n.id);
|
|
@@ -247,7 +238,7 @@ function extractNodeOutputSchema(flow, componentId, wrapAllOutputs) {
|
|
|
247
238
|
return { schema, nodeFound: true };
|
|
248
239
|
}
|
|
249
240
|
}
|
|
250
|
-
const outputs =
|
|
241
|
+
const outputs = isRecord2(node.outputs) ? node.outputs : undefined;
|
|
251
242
|
if (outputs && Object.keys(outputs).length > 0) {
|
|
252
243
|
if (!wrapAllOutputs && "output" in outputs) {
|
|
253
244
|
return { schema: outputs.output, nodeFound: true };
|
|
@@ -260,37 +251,37 @@ function extractNodeOutputSchema(flow, componentId, wrapAllOutputs) {
|
|
|
260
251
|
return { schema: undefined, nodeFound: true };
|
|
261
252
|
}
|
|
262
253
|
function extractConnectorOutputSchema(node) {
|
|
263
|
-
if (!
|
|
254
|
+
if (!isRecord2(node.inputs))
|
|
264
255
|
return;
|
|
265
256
|
const detail = node.inputs.detail;
|
|
266
257
|
let detailObj;
|
|
267
258
|
if (typeof detail === "string") {
|
|
268
259
|
try {
|
|
269
260
|
const parsed = JSON.parse(detail);
|
|
270
|
-
if (!
|
|
261
|
+
if (!isRecord2(parsed))
|
|
271
262
|
return;
|
|
272
263
|
detailObj = parsed;
|
|
273
264
|
} catch {
|
|
274
265
|
return;
|
|
275
266
|
}
|
|
276
|
-
} else if (
|
|
267
|
+
} else if (isRecord2(detail)) {
|
|
277
268
|
detailObj = detail;
|
|
278
269
|
} else {
|
|
279
270
|
return;
|
|
280
271
|
}
|
|
281
|
-
const config =
|
|
272
|
+
const config = isRecord2(detailObj.configuration) ? detailObj.configuration : undefined;
|
|
282
273
|
if (!config)
|
|
283
274
|
return;
|
|
284
|
-
const fieldsContainer =
|
|
275
|
+
const fieldsContainer = isRecord2(config.fieldsContainer) ? config.fieldsContainer : undefined;
|
|
285
276
|
if (!fieldsContainer)
|
|
286
277
|
return;
|
|
287
278
|
const schema = fieldsContainer.outputJsonSchema;
|
|
288
|
-
if (!schema || !
|
|
279
|
+
if (!schema || !isRecord2(schema))
|
|
289
280
|
return;
|
|
290
281
|
return schema;
|
|
291
282
|
}
|
|
292
283
|
function extractAgentOutputSchema(node) {
|
|
293
|
-
if (!
|
|
284
|
+
if (!isRecord2(node.inputs))
|
|
294
285
|
return;
|
|
295
286
|
const agentOutputVariables = node.inputs.agentOutputVariables;
|
|
296
287
|
if (!Array.isArray(agentOutputVariables) || agentOutputVariables.length === 0) {
|
|
@@ -298,10 +289,10 @@ function extractAgentOutputSchema(node) {
|
|
|
298
289
|
}
|
|
299
290
|
const properties = {};
|
|
300
291
|
for (const v of agentOutputVariables) {
|
|
301
|
-
if (!
|
|
292
|
+
if (!isRecord2(v) || typeof v.id !== "string")
|
|
302
293
|
continue;
|
|
303
294
|
const type = typeof v.type === "string" ? v.type : "string";
|
|
304
|
-
if (
|
|
295
|
+
if (isRecord2(v.schema)) {
|
|
305
296
|
properties[v.id] = v.schema;
|
|
306
297
|
} else {
|
|
307
298
|
properties[v.id] = { type };
|
|
@@ -323,20 +314,20 @@ function cleanOutputSchema(schema) {
|
|
|
323
314
|
return unwrapOutputProperty(stripped);
|
|
324
315
|
}
|
|
325
316
|
function stripAnnotations(value) {
|
|
326
|
-
if (!
|
|
317
|
+
if (!isRecord2(value))
|
|
327
318
|
return value;
|
|
328
319
|
const result = {};
|
|
329
320
|
for (const [k, v] of Object.entries(value)) {
|
|
330
321
|
if (ANNOTATION_KEYS.has(k))
|
|
331
322
|
continue;
|
|
332
|
-
result[k] = Array.isArray(v) ? v.map(stripAnnotations) :
|
|
323
|
+
result[k] = Array.isArray(v) ? v.map(stripAnnotations) : isRecord2(v) ? stripAnnotations(v) : v;
|
|
333
324
|
}
|
|
334
325
|
return result;
|
|
335
326
|
}
|
|
336
327
|
function unwrapOutputProperty(schema) {
|
|
337
|
-
if (!
|
|
328
|
+
if (!isRecord2(schema))
|
|
338
329
|
return schema;
|
|
339
|
-
const props =
|
|
330
|
+
const props = isRecord2(schema.properties) ? schema.properties : undefined;
|
|
340
331
|
if (!props || !("output" in props))
|
|
341
332
|
return schema;
|
|
342
333
|
return props.output;
|
|
@@ -381,15 +372,15 @@ class ChildSimulationSchemaReader {
|
|
|
381
372
|
reason: "The .flow file contains invalid JSON."
|
|
382
373
|
};
|
|
383
374
|
}
|
|
384
|
-
if (!
|
|
375
|
+
if (!isRecord2(parsed)) {
|
|
385
376
|
return {
|
|
386
377
|
parentFound: false,
|
|
387
378
|
reason: "The .flow file has an unexpected format."
|
|
388
379
|
};
|
|
389
380
|
}
|
|
390
|
-
const subflows =
|
|
391
|
-
const subflowNodes = subflows.flatMap((s) =>
|
|
392
|
-
const subflowEdges = subflows.flatMap((s) =>
|
|
381
|
+
const subflows = isRecord2(parsed.subflows) ? Object.values(parsed.subflows) : [];
|
|
382
|
+
const subflowNodes = subflows.flatMap((s) => isRecord2(s) && Array.isArray(s.nodes) ? s.nodes : []);
|
|
383
|
+
const subflowEdges = subflows.flatMap((s) => isRecord2(s) && Array.isArray(s.edges) ? s.edges : []);
|
|
393
384
|
const nodes = [
|
|
394
385
|
...Array.isArray(parsed.nodes) ? parsed.nodes : [],
|
|
395
386
|
...subflowNodes
|
|
@@ -399,7 +390,7 @@ class ChildSimulationSchemaReader {
|
|
|
399
390
|
...subflowEdges
|
|
400
391
|
];
|
|
401
392
|
const definitions = Array.isArray(parsed.definitions) ? parsed.definitions : [];
|
|
402
|
-
const parentNode = nodes.find((n) =>
|
|
393
|
+
const parentNode = nodes.find((n) => isRecord2(n) && n.id === parentComponentId);
|
|
403
394
|
if (!parentNode) {
|
|
404
395
|
return { parentFound: false };
|
|
405
396
|
}
|
|
@@ -419,7 +410,7 @@ class ChildSimulationSchemaReader {
|
|
|
419
410
|
}
|
|
420
411
|
}
|
|
421
412
|
async resolveSameSolutionSchema(flowFilePath, projectId, childComponentId) {
|
|
422
|
-
if (!
|
|
413
|
+
if (!isBareProjectIdSource2(projectId)) {
|
|
423
414
|
return {
|
|
424
415
|
parentFound: true,
|
|
425
416
|
errorDetail: `Project id "${projectId}" contains path separators.`
|
|
@@ -442,7 +433,7 @@ class ChildSimulationSchemaReader {
|
|
|
442
433
|
errorDetail: `agent.json for project "${projectId}" contains invalid JSON.`
|
|
443
434
|
};
|
|
444
435
|
}
|
|
445
|
-
if (!
|
|
436
|
+
if (!isRecord2(agent)) {
|
|
446
437
|
return {
|
|
447
438
|
parentFound: true,
|
|
448
439
|
errorDetail: `agent.json for project "${projectId}" has an unexpected format.`
|
|
@@ -460,7 +451,7 @@ class ChildSimulationSchemaReader {
|
|
|
460
451
|
errorDetail: authError.message
|
|
461
452
|
};
|
|
462
453
|
}
|
|
463
|
-
const { FlowEvalRunApi } = await import("./flow-eval-run-api-
|
|
454
|
+
const { FlowEvalRunApi } = await import("./flow-eval-run-api-g6sphtf3.js");
|
|
464
455
|
const api = new FlowEvalRunApi;
|
|
465
456
|
const [fetchError, components] = await catchError2(api.getSimulatableComponents(config, processKey, processVersion));
|
|
466
457
|
if (fetchError || !components) {
|
|
@@ -487,7 +478,7 @@ function isAgentNodeType(nodeType) {
|
|
|
487
478
|
function getAgentKind(node, definitions) {
|
|
488
479
|
const nodeType = typeof node.type === "string" ? node.type : undefined;
|
|
489
480
|
const definition = findDefinitionForNode(node, definitions);
|
|
490
|
-
const defType =
|
|
481
|
+
const defType = isRecord2(definition) && typeof definition.nodeType === "string" ? definition.nodeType : undefined;
|
|
491
482
|
const isAgent = isAgentNodeType(nodeType) || isAgentNodeType(defType);
|
|
492
483
|
if (!isAgent) {
|
|
493
484
|
return { kind: "unsupported" };
|
|
@@ -501,9 +492,9 @@ function getAgentKind(node, definitions) {
|
|
|
501
492
|
return { kind: "inlineCanvas" };
|
|
502
493
|
}
|
|
503
494
|
if (lowerType?.startsWith("uipath.core.agent.")) {
|
|
504
|
-
const defRecord =
|
|
505
|
-
const defModel =
|
|
506
|
-
const defBindings =
|
|
495
|
+
const defRecord = isRecord2(definition) ? definition : undefined;
|
|
496
|
+
const defModel = isRecord2(defRecord?.model) ? defRecord.model : undefined;
|
|
497
|
+
const defBindings = isRecord2(defModel?.bindings) ? defModel.bindings : undefined;
|
|
507
498
|
const resourceKey = typeof defBindings?.resourceKey === "string" ? defBindings.resourceKey : undefined;
|
|
508
499
|
const processKey = resourceKey ?? nodeType?.split(".").at(-1) ?? "";
|
|
509
500
|
if (!processKey)
|
|
@@ -514,13 +505,13 @@ function getAgentKind(node, definitions) {
|
|
|
514
505
|
return { kind: "unsupported" };
|
|
515
506
|
}
|
|
516
507
|
function readProjectId(node, definition) {
|
|
517
|
-
const inputs =
|
|
508
|
+
const inputs = isRecord2(node.inputs) ? node.inputs : undefined;
|
|
518
509
|
if (typeof inputs?.source === "string" && inputs.source.trim()) {
|
|
519
510
|
return inputs.source.trim();
|
|
520
511
|
}
|
|
521
|
-
const model =
|
|
522
|
-
const defRecord =
|
|
523
|
-
const defModel =
|
|
512
|
+
const model = isRecord2(node.model) ? node.model : undefined;
|
|
513
|
+
const defRecord = isRecord2(definition) ? definition : undefined;
|
|
514
|
+
const defModel = isRecord2(defRecord?.model) ? defRecord.model : undefined;
|
|
524
515
|
for (const candidate of [
|
|
525
516
|
model?.projectId,
|
|
526
517
|
defModel?.projectId,
|
|
@@ -538,13 +529,13 @@ function findDefinitionForNode(node, definitions) {
|
|
|
538
529
|
if (!nodeType)
|
|
539
530
|
return;
|
|
540
531
|
const typeVersion = typeof node.typeVersion === "string" ? node.typeVersion : undefined;
|
|
541
|
-
const recordDefs = definitions.filter(
|
|
532
|
+
const recordDefs = definitions.filter(isRecord2);
|
|
542
533
|
return findMatchingDefinition(nodeType, typeVersion, recordDefs);
|
|
543
534
|
}
|
|
544
535
|
function resolveInlineCanvasSchema(parentComponentId, childComponentId, nodes, edges, definitions) {
|
|
545
536
|
const childNodeIds = new Set;
|
|
546
537
|
for (const edge of edges) {
|
|
547
|
-
if (!
|
|
538
|
+
if (!isRecord2(edge))
|
|
548
539
|
continue;
|
|
549
540
|
const source = readStringField(edge, "sourceNodeId", "source");
|
|
550
541
|
if (source !== parentComponentId)
|
|
@@ -556,7 +547,7 @@ function resolveInlineCanvasSchema(parentComponentId, childComponentId, nodes, e
|
|
|
556
547
|
}
|
|
557
548
|
let childFound = false;
|
|
558
549
|
for (const n of nodes) {
|
|
559
|
-
if (!
|
|
550
|
+
if (!isRecord2(n))
|
|
560
551
|
continue;
|
|
561
552
|
if (typeof n.id !== "string" || !childNodeIds.has(n.id))
|
|
562
553
|
continue;
|
|
@@ -579,11 +570,11 @@ function resolveInlineCanvasSchema(parentComponentId, childComponentId, nodes, e
|
|
|
579
570
|
return { parentFound: true };
|
|
580
571
|
}
|
|
581
572
|
function matchesComponentId(node, componentId) {
|
|
582
|
-
const display =
|
|
573
|
+
const display = isRecord2(node.display) ? node.display : undefined;
|
|
583
574
|
const label = typeof display?.label === "string" ? display.label : undefined;
|
|
584
575
|
if (label && nameMatchesId(label, componentId))
|
|
585
576
|
return true;
|
|
586
|
-
const inputs =
|
|
577
|
+
const inputs = isRecord2(node.inputs) ? node.inputs : undefined;
|
|
587
578
|
const name = typeof inputs?.name === "string" ? inputs.name : undefined;
|
|
588
579
|
if (name && nameMatchesId(name, componentId))
|
|
589
580
|
return true;
|
|
@@ -594,16 +585,16 @@ function sanitizeToolName(name) {
|
|
|
594
585
|
}
|
|
595
586
|
function extractToolOutputSchema(node, definition) {
|
|
596
587
|
const nodeType = typeof node.type === "string" ? node.type : "";
|
|
597
|
-
const outputs =
|
|
588
|
+
const outputs = isRecord2(node.outputs) ? node.outputs : undefined;
|
|
598
589
|
if (outputs) {
|
|
599
|
-
const output =
|
|
590
|
+
const output = isRecord2(outputs.output) ? outputs.output : undefined;
|
|
600
591
|
if (output?.schema)
|
|
601
592
|
return output.schema;
|
|
602
593
|
if (Object.keys(outputs).length > 0) {
|
|
603
594
|
return cleanOutputSchema({ type: "object", properties: outputs });
|
|
604
595
|
}
|
|
605
596
|
}
|
|
606
|
-
const inputs =
|
|
597
|
+
const inputs = isRecord2(node.inputs) ? node.inputs : undefined;
|
|
607
598
|
if (inputs?.outputSchema)
|
|
608
599
|
return inputs.outputSchema;
|
|
609
600
|
if (nodeType.startsWith("uipath.connector.") || nodeType.startsWith(AGENT_TOOL_NODE_TYPE_PREFIX)) {
|
|
@@ -611,10 +602,10 @@ function extractToolOutputSchema(node, definition) {
|
|
|
611
602
|
if (schema)
|
|
612
603
|
return schema;
|
|
613
604
|
}
|
|
614
|
-
if (
|
|
615
|
-
const outputDef =
|
|
605
|
+
if (isRecord2(definition)) {
|
|
606
|
+
const outputDef = isRecord2(definition.outputDefinition) ? definition.outputDefinition : undefined;
|
|
616
607
|
if (outputDef) {
|
|
617
|
-
const outputEntry =
|
|
608
|
+
const outputEntry = isRecord2(outputDef.output) ? outputDef.output : undefined;
|
|
618
609
|
if (outputEntry?.schema)
|
|
619
610
|
return outputEntry.schema;
|
|
620
611
|
if (outputEntry)
|
|
@@ -637,32 +628,32 @@ function extractConnectorOutputSchema2(inputs) {
|
|
|
637
628
|
if (typeof detail === "string") {
|
|
638
629
|
try {
|
|
639
630
|
const parsed = JSON.parse(detail);
|
|
640
|
-
detailObj =
|
|
631
|
+
detailObj = isRecord2(parsed) ? parsed : undefined;
|
|
641
632
|
} catch {
|
|
642
633
|
return;
|
|
643
634
|
}
|
|
644
|
-
} else if (
|
|
635
|
+
} else if (isRecord2(detail)) {
|
|
645
636
|
detailObj = detail;
|
|
646
637
|
}
|
|
647
638
|
if (!detailObj)
|
|
648
639
|
return;
|
|
649
|
-
const config =
|
|
640
|
+
const config = isRecord2(detailObj.configuration) ? detailObj.configuration : undefined;
|
|
650
641
|
if (!config)
|
|
651
642
|
return;
|
|
652
|
-
const fieldsContainer =
|
|
643
|
+
const fieldsContainer = isRecord2(config.fieldsContainer) ? config.fieldsContainer : undefined;
|
|
653
644
|
if (!fieldsContainer)
|
|
654
645
|
return;
|
|
655
646
|
const schema = fieldsContainer.outputJsonSchema;
|
|
656
|
-
return
|
|
647
|
+
return isRecord2(schema) ? schema : undefined;
|
|
657
648
|
}
|
|
658
649
|
function findToolSchemaInResources(resources, childComponentId) {
|
|
659
650
|
for (const resource of resources) {
|
|
660
|
-
if (!
|
|
651
|
+
if (!isRecord2(resource))
|
|
661
652
|
continue;
|
|
662
|
-
const availableTools = resource.availableTools ?? (
|
|
653
|
+
const availableTools = resource.availableTools ?? (isRecord2(resource.inputs) ? resource.inputs.selectedTools : undefined);
|
|
663
654
|
if (Array.isArray(availableTools)) {
|
|
664
655
|
for (const tool of availableTools) {
|
|
665
|
-
if (!
|
|
656
|
+
if (!isRecord2(tool))
|
|
666
657
|
continue;
|
|
667
658
|
const toolName = typeof tool.name === "string" ? tool.name : undefined;
|
|
668
659
|
if (!toolName)
|
|
@@ -678,9 +669,9 @@ function findToolSchemaInResources(resources, childComponentId) {
|
|
|
678
669
|
const isToolLike = nodeType?.startsWith(AGENT_TOOL_NODE_TYPE_PREFIX) || resourceType === "tool" || resourceType === "mcp";
|
|
679
670
|
if (!isToolLike)
|
|
680
671
|
continue;
|
|
681
|
-
const display =
|
|
672
|
+
const display = isRecord2(resource.display) ? resource.display : undefined;
|
|
682
673
|
const label = typeof display?.label === "string" ? display.label : undefined;
|
|
683
|
-
const inputs =
|
|
674
|
+
const inputs = isRecord2(resource.inputs) ? resource.inputs : undefined;
|
|
684
675
|
const name = (inputs ? readStringField(inputs, "name") : undefined) ?? readStringField(resource, "name");
|
|
685
676
|
const candidateName = name ?? label;
|
|
686
677
|
if (!candidateName)
|
|
@@ -694,6 +685,7 @@ function findToolSchemaInResources(resources, childComponentId) {
|
|
|
694
685
|
}
|
|
695
686
|
return;
|
|
696
687
|
}
|
|
688
|
+
|
|
697
689
|
// src/services/flow-eval-input-schema.ts
|
|
698
690
|
class FlowEvalInputSchema {
|
|
699
691
|
fs;
|
|
@@ -731,13 +723,13 @@ function readFlowGlobalsAsInputs(flowContent) {
|
|
|
731
723
|
} catch {
|
|
732
724
|
return inputs;
|
|
733
725
|
}
|
|
734
|
-
if (!
|
|
726
|
+
if (!isRecord2(parsed)) {
|
|
735
727
|
return inputs;
|
|
736
728
|
}
|
|
737
|
-
const variables =
|
|
729
|
+
const variables = isRecord2(parsed.variables) ? parsed.variables : undefined;
|
|
738
730
|
const globals = Array.isArray(variables?.globals) ? variables.globals : [];
|
|
739
731
|
for (const entry of globals) {
|
|
740
|
-
if (!
|
|
732
|
+
if (!isRecord2(entry)) {
|
|
741
733
|
continue;
|
|
742
734
|
}
|
|
743
735
|
if (entry.direction !== "in" || typeof entry.id !== "string") {
|
|
@@ -767,57 +759,33 @@ function escapeRegex(value) {
|
|
|
767
759
|
return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
768
760
|
}
|
|
769
761
|
|
|
770
|
-
// src/services/flow-eval-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
class FlowEvalSetCrud {
|
|
762
|
+
// src/services/flow-eval-workflow-adapter.ts
|
|
763
|
+
class FlowWorkflowAdapter {
|
|
774
764
|
fs;
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
765
|
+
paths;
|
|
766
|
+
inputSchema;
|
|
767
|
+
outputSchema;
|
|
768
|
+
nodeOutputSchema;
|
|
769
|
+
componentLocator;
|
|
770
|
+
agentNodeSchema;
|
|
771
|
+
childSimulationSchema;
|
|
772
|
+
constructor(fs = getFileSystem(), paths = new FlowEvalPathResolver(fs)) {
|
|
778
773
|
this.fs = fs;
|
|
779
|
-
this.
|
|
780
|
-
this.
|
|
774
|
+
this.paths = paths;
|
|
775
|
+
this.inputSchema = new FlowEvalInputSchema(fs, paths);
|
|
776
|
+
this.outputSchema = new FlowEvalOutputSchema(fs, paths);
|
|
777
|
+
this.nodeOutputSchema = new SimulateFlowOutputSchemaReader(fs, paths);
|
|
778
|
+
this.componentLocator = new FlowComponentLocator(fs, paths);
|
|
779
|
+
this.agentNodeSchema = new FlowAgentNodeSchemaReader2(fs, paths);
|
|
780
|
+
this.childSimulationSchema = new ChildSimulationSchemaReader(fs, paths);
|
|
781
781
|
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
if (!root) {
|
|
785
|
-
return [];
|
|
786
|
-
}
|
|
787
|
-
return this.store.readJsonFiles(this.fs.path.join(root, "eval-sets"));
|
|
782
|
+
readNodeTargetId(set) {
|
|
783
|
+
return readNodeTargetId2(set);
|
|
788
784
|
}
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
const root = await this.pathResolver.resolveEvalRoot(projectPath, true);
|
|
792
|
-
const id = crypto.randomUUID();
|
|
793
|
-
const fileName = `evaluation-set-${slugify(options.name)}-${id.slice(0, 8)}.json`;
|
|
794
|
-
const evaluators = await this.store.readJsonFiles(this.fs.path.join(root, "evaluators"));
|
|
795
|
-
const now = new Date().toISOString();
|
|
796
|
-
const agentNodeId = await this.resolveAgentNodeTarget(resolvedProjectPath, options.entryPoint);
|
|
797
|
-
const selectedEntrypoint = options.entryPoint ?? await this.pathResolver.readDefaultEntryPointNodeId(resolvedProjectPath);
|
|
798
|
-
const evalSet = {
|
|
799
|
-
version: "1.0",
|
|
800
|
-
...agentNodeId !== undefined ? { schemaVersion: DATASET_SCHEMA_VERSION } : {},
|
|
801
|
-
id,
|
|
802
|
-
name: options.name,
|
|
803
|
-
evaluatorRefs: options.evaluatorRefs ?? evaluators.map((evaluator) => evaluator.fileName ?? `${evaluator.id}.json`),
|
|
804
|
-
evaluations: [],
|
|
805
|
-
...agentNodeId !== undefined ? {
|
|
806
|
-
target: {
|
|
807
|
-
kind: "agentNode",
|
|
808
|
-
nodeId: agentNodeId
|
|
809
|
-
},
|
|
810
|
-
nodeEval: true
|
|
811
|
-
} : {},
|
|
812
|
-
...selectedEntrypoint !== undefined ? { selectedEntrypoint } : {},
|
|
813
|
-
fileName,
|
|
814
|
-
createdAt: now,
|
|
815
|
-
updatedAt: now
|
|
816
|
-
};
|
|
817
|
-
await this.store.writeJsonFile(this.fs.path.join(root, "eval-sets", fileName), evalSet);
|
|
818
|
-
return evalSet;
|
|
785
|
+
resolveEvaluatorRefs(evaluators, tokens) {
|
|
786
|
+
return tokens ?? evaluators.map((evaluator) => evaluator.fileName ?? `${evaluator.id}.json`);
|
|
819
787
|
}
|
|
820
|
-
async
|
|
788
|
+
async classifyEntryPoint(resolvedProjectPath, entryPoint) {
|
|
821
789
|
if (entryPoint === undefined) {
|
|
822
790
|
return;
|
|
823
791
|
}
|
|
@@ -847,105 +815,14 @@ class FlowEvalSetCrud {
|
|
|
847
815
|
return;
|
|
848
816
|
}
|
|
849
817
|
async readFlowContent(resolvedProjectPath) {
|
|
850
|
-
const [findError, flowFilePath] = await catchError2(this.
|
|
818
|
+
const [findError, flowFilePath] = await catchError2(this.paths.findFlowFile(resolvedProjectPath));
|
|
851
819
|
if (findError || !flowFilePath) {
|
|
852
820
|
return;
|
|
853
821
|
}
|
|
854
822
|
const [readError, flowContent] = await catchError2(this.fs.readFile(flowFilePath, "utf-8"));
|
|
855
823
|
return readError ? undefined : String(flowContent);
|
|
856
824
|
}
|
|
857
|
-
async
|
|
858
|
-
const root = await this.pathResolver.resolveEvalRoot(projectPath, false);
|
|
859
|
-
if (!root) {
|
|
860
|
-
return false;
|
|
861
|
-
}
|
|
862
|
-
const evalSet = findEvalSet(await this.list(projectPath), idOrName);
|
|
863
|
-
if (!evalSet?.fileName) {
|
|
864
|
-
return false;
|
|
865
|
-
}
|
|
866
|
-
await this.store.remove(this.fs.path.join(root, "eval-sets", evalSet.fileName));
|
|
867
|
-
return true;
|
|
868
|
-
}
|
|
869
|
-
}
|
|
870
|
-
// src/services/flow-eval-service.ts
|
|
871
|
-
class FlowEvalService {
|
|
872
|
-
fs;
|
|
873
|
-
evaluators;
|
|
874
|
-
evalSets;
|
|
875
|
-
evaluations;
|
|
876
|
-
files;
|
|
877
|
-
inputSchema;
|
|
878
|
-
outputSchema;
|
|
879
|
-
nodeOutputSchema;
|
|
880
|
-
componentLocator;
|
|
881
|
-
agentNodeSchema;
|
|
882
|
-
childSimulationSchema;
|
|
883
|
-
constructor(fs = getFileSystem()) {
|
|
884
|
-
this.fs = fs;
|
|
885
|
-
const store = new EvalFileStore(fs);
|
|
886
|
-
const pathResolver = new FlowEvalPathResolver(fs);
|
|
887
|
-
this.evaluators = new EvaluatorCrud(fs, store, pathResolver);
|
|
888
|
-
this.evalSets = new FlowEvalSetCrud(fs, store, pathResolver);
|
|
889
|
-
this.evaluations = new EvaluationCrud(fs, store, pathResolver);
|
|
890
|
-
this.files = new EvalFiles(fs, pathResolver);
|
|
891
|
-
this.inputSchema = new FlowEvalInputSchema(fs, pathResolver);
|
|
892
|
-
this.outputSchema = new FlowEvalOutputSchema(fs, pathResolver);
|
|
893
|
-
this.nodeOutputSchema = new SimulateFlowOutputSchemaReader(fs, pathResolver);
|
|
894
|
-
this.componentLocator = new FlowComponentLocator(fs, pathResolver);
|
|
895
|
-
this.agentNodeSchema = new FlowAgentNodeSchemaReader2(fs, pathResolver);
|
|
896
|
-
this.childSimulationSchema = new ChildSimulationSchemaReader(fs, pathResolver);
|
|
897
|
-
}
|
|
898
|
-
listEvalSets(projectPath) {
|
|
899
|
-
return this.evalSets.list(projectPath);
|
|
900
|
-
}
|
|
901
|
-
listEvaluators(projectPath) {
|
|
902
|
-
return this.evaluators.list(projectPath);
|
|
903
|
-
}
|
|
904
|
-
addEvaluator(projectPath, options) {
|
|
905
|
-
return this.evaluators.add(projectPath, options);
|
|
906
|
-
}
|
|
907
|
-
removeEvaluator(projectPath, idOrName) {
|
|
908
|
-
return this.evaluators.remove(projectPath, idOrName);
|
|
909
|
-
}
|
|
910
|
-
addEvalSet(projectPath, options) {
|
|
911
|
-
return this.evalSets.add(projectPath, options);
|
|
912
|
-
}
|
|
913
|
-
removeEvalSet(projectPath, idOrName) {
|
|
914
|
-
return this.evalSets.remove(projectPath, idOrName);
|
|
915
|
-
}
|
|
916
|
-
async addEvaluation(projectPath, setIdOrName, options) {
|
|
917
|
-
const inputFiles = options.inputFiles ?? [];
|
|
918
|
-
for (const file of inputFiles) {
|
|
919
|
-
if (file.key in options.inputs) {
|
|
920
|
-
throw new Error(`Input "${file.key}" was provided in both --inputs and --input-file`);
|
|
921
|
-
}
|
|
922
|
-
}
|
|
923
|
-
const evalSet = findEvalSet(await this.evalSets.list(projectPath), setIdOrName);
|
|
924
|
-
const nodeTargetId = evalSet ? readNodeTargetId2(evalSet) : undefined;
|
|
925
|
-
if (nodeTargetId !== undefined) {
|
|
926
|
-
if (inputFiles.length > 0) {
|
|
927
|
-
throw new Error(`File inputs (--input-file) are not supported for node-scoped eval sets yet. Pass the value inline via --inputs, or use a flow-scoped eval set.`);
|
|
928
|
-
}
|
|
929
|
-
await this.validateAgentInputKeys(projectPath, nodeTargetId, options.inputs);
|
|
930
|
-
if (options.expectedOutput) {
|
|
931
|
-
await this.validateAgentOutputKeys(projectPath, nodeTargetId, options.expectedOutput);
|
|
932
|
-
}
|
|
933
|
-
} else {
|
|
934
|
-
await this.validateInputKeys(projectPath, options.inputs, inputFiles);
|
|
935
|
-
if (options.expectedOutput) {
|
|
936
|
-
await this.validateOutputKeys(projectPath, options.expectedOutput);
|
|
937
|
-
}
|
|
938
|
-
}
|
|
939
|
-
const inputs = { ...options.inputs };
|
|
940
|
-
for (const file of inputFiles) {
|
|
941
|
-
inputs[file.key] = await this.files.materialize(projectPath, file.sourcePath);
|
|
942
|
-
}
|
|
943
|
-
return this.evaluations.add(projectPath, setIdOrName, {
|
|
944
|
-
...options,
|
|
945
|
-
inputs
|
|
946
|
-
});
|
|
947
|
-
}
|
|
948
|
-
async validateInputKeys(projectPath, inputs, inputFiles) {
|
|
825
|
+
async validateFlowInputs(projectPath, inputs, inputFiles) {
|
|
949
826
|
const schema = await this.inputSchema.read(projectPath);
|
|
950
827
|
if (!schema.flowFound) {
|
|
951
828
|
return;
|
|
@@ -975,7 +852,19 @@ class FlowEvalService {
|
|
|
975
852
|
}
|
|
976
853
|
}
|
|
977
854
|
}
|
|
978
|
-
async
|
|
855
|
+
async validateFlowOutputs(projectPath, expectedOutput) {
|
|
856
|
+
const schema = await this.outputSchema.read(projectPath);
|
|
857
|
+
if (!schema.flowFound || schema.outputs.size === 0) {
|
|
858
|
+
return;
|
|
859
|
+
}
|
|
860
|
+
const flowFile = schema.flowFilePath ? this.fs.path.basename(schema.flowFilePath) : "the .flow file";
|
|
861
|
+
for (const key of Object.keys(expectedOutput)) {
|
|
862
|
+
if (!schema.outputs.has(key)) {
|
|
863
|
+
throw new Error(`Output key "${key}" is not declared as an output variable in the flow. Add it to variables.globals (direction: "out") in ${flowFile}.`);
|
|
864
|
+
}
|
|
865
|
+
}
|
|
866
|
+
}
|
|
867
|
+
async validateAgentInputs(projectPath, nodeTargetId, inputs) {
|
|
979
868
|
const schema = await this.agentNodeSchema.read(projectPath, nodeTargetId);
|
|
980
869
|
if (!schema.agentFound || schema.inputs.length === 0) {
|
|
981
870
|
return;
|
|
@@ -987,7 +876,7 @@ class FlowEvalService {
|
|
|
987
876
|
}
|
|
988
877
|
}
|
|
989
878
|
}
|
|
990
|
-
async
|
|
879
|
+
async validateAgentOutputs(projectPath, nodeTargetId, expectedOutput) {
|
|
991
880
|
const schema = await this.agentNodeSchema.read(projectPath, nodeTargetId);
|
|
992
881
|
if (!schema.agentFound || schema.outputs.size === 0) {
|
|
993
882
|
return;
|
|
@@ -998,114 +887,29 @@ class FlowEvalService {
|
|
|
998
887
|
}
|
|
999
888
|
}
|
|
1000
889
|
}
|
|
1001
|
-
async
|
|
1002
|
-
const
|
|
1003
|
-
if (!schema.flowFound || schema.outputs.size === 0) {
|
|
1004
|
-
return;
|
|
1005
|
-
}
|
|
1006
|
-
const flowFile = schema.flowFilePath ? this.fs.path.basename(schema.flowFilePath) : "the .flow file";
|
|
1007
|
-
for (const key of Object.keys(expectedOutput)) {
|
|
1008
|
-
if (!schema.outputs.has(key)) {
|
|
1009
|
-
throw new Error(`Output key "${key}" is not declared as an output variable in the flow. Add it to variables.globals (direction: "out") in ${flowFile}.`);
|
|
1010
|
-
}
|
|
1011
|
-
}
|
|
1012
|
-
}
|
|
1013
|
-
listEvaluations(projectPath, setIdOrName) {
|
|
1014
|
-
return this.evaluations.list(projectPath, setIdOrName);
|
|
1015
|
-
}
|
|
1016
|
-
removeEvaluation(projectPath, setIdOrName, evaluationIdOrName) {
|
|
1017
|
-
return this.evaluations.remove(projectPath, setIdOrName, evaluationIdOrName);
|
|
1018
|
-
}
|
|
1019
|
-
async addSimulation(projectPath, setIdOrName, evaluationIdOrName, simulation) {
|
|
1020
|
-
const located = await this.componentLocator.find(projectPath, simulation.componentId);
|
|
890
|
+
async locateComponent(projectPath, componentId) {
|
|
891
|
+
const located = await this.componentLocator.find(projectPath, componentId);
|
|
1021
892
|
if (located.flowRead && !located.found) {
|
|
1022
893
|
const hint = located.suggestions.length ? ` Did you mean ${located.suggestions.map((id) => `"${id}"`).join(" or ")}? A simulation targets the node's id, not its label.` : " Use a node id from the .flow (nodes[].id or subflows.<id>.nodes[].id).";
|
|
1023
|
-
throw new Error(`Component "${
|
|
1024
|
-
}
|
|
1025
|
-
if (simulation.simulationStrategy === "Llm" && simulation.outputSchema === undefined) {
|
|
1026
|
-
const resolved = await this.nodeOutputSchema.read(projectPath, simulation.componentId);
|
|
1027
|
-
if (!resolved.nodeFound) {
|
|
1028
|
-
throw new Error(`Component "${simulation.componentId}" not found in the flow. Verify the component ID.`);
|
|
1029
|
-
}
|
|
1030
|
-
if (!resolved.schema) {
|
|
1031
|
-
throw new Error(`Could not auto-resolve output schema for component "${simulation.componentId}". ` + `The node has no declared outputs.`);
|
|
1032
|
-
}
|
|
1033
|
-
simulation = { ...simulation, outputSchema: resolved.schema };
|
|
894
|
+
throw new Error(`Component "${componentId}" not found in the flow.${hint}`);
|
|
1034
895
|
}
|
|
1035
|
-
return this.evaluations.addSimulation(projectPath, setIdOrName, evaluationIdOrName, simulation);
|
|
1036
|
-
}
|
|
1037
|
-
listSimulations(projectPath, setIdOrName, evaluationIdOrName) {
|
|
1038
|
-
return this.evaluations.listSimulations(projectPath, setIdOrName, evaluationIdOrName);
|
|
1039
896
|
}
|
|
1040
|
-
|
|
1041
|
-
return this.
|
|
897
|
+
readSimulationOutputSchema(projectPath, componentId) {
|
|
898
|
+
return this.nodeOutputSchema.read(projectPath, componentId);
|
|
1042
899
|
}
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
if (childSimulation.outputSchema === undefined) {
|
|
1046
|
-
const resolved = await this.childSimulationSchema.read(projectPath, parentComponentId, childSimulation.componentId);
|
|
1047
|
-
if (resolved.schema) {
|
|
1048
|
-
childSimulation = {
|
|
1049
|
-
...childSimulation,
|
|
1050
|
-
outputSchema: resolved.schema
|
|
1051
|
-
};
|
|
1052
|
-
} else if (childSimulation.simulationStrategy === "Llm") {
|
|
1053
|
-
if (!resolved.parentFound) {
|
|
1054
|
-
const detail = resolved.reason ? ` ${resolved.reason}` : "";
|
|
1055
|
-
throw new Error(`Parent agent "${parentComponentId}" not found in the flow.${detail} Verify the parent component ID.`);
|
|
1056
|
-
}
|
|
1057
|
-
if (resolved.errorDetail) {
|
|
1058
|
-
throw new Error(`Could not auto-resolve output schema for "${childSimulation.componentId}" inside agent "${parentComponentId}": ${resolved.errorDetail}`);
|
|
1059
|
-
}
|
|
1060
|
-
throw new Error(`Could not auto-resolve output schema for "${childSimulation.componentId}" inside agent "${parentComponentId}". ` + `The tool has no declared outputs.`);
|
|
1061
|
-
} else if (childSimulation.simulationStrategy === "Static") {
|
|
1062
|
-
if (!resolved.parentFound) {
|
|
1063
|
-
const detail = resolved.reason ? ` ${resolved.reason}` : "";
|
|
1064
|
-
warning = `Parent agent "${parentComponentId}" not found in the flow.${detail} Mock value key validation was skipped.`;
|
|
1065
|
-
} else if (resolved.errorDetail) {
|
|
1066
|
-
warning = `Could not resolve output schema for "${childSimulation.componentId}": ${resolved.errorDetail}. ` + `Mock value key validation was skipped.`;
|
|
1067
|
-
}
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
if (childSimulation.simulationStrategy === "Static" && childSimulation.outputSchema !== undefined && childSimulation.mockValue !== undefined) {
|
|
1071
|
-
validateMockValueKeys(childSimulation.mockValue, childSimulation.outputSchema, childSimulation.componentId);
|
|
1072
|
-
}
|
|
1073
|
-
const simulation = await this.evaluations.addChildSimulation(projectPath, setIdOrName, evaluationIdOrName, parentComponentId, childSimulation);
|
|
1074
|
-
return { simulation, warning };
|
|
1075
|
-
}
|
|
1076
|
-
async listChildSimulations(projectPath, setIdOrName, evaluationIdOrName, parentComponentId) {
|
|
1077
|
-
const evalSet = await this.evaluations.list(projectPath, setIdOrName);
|
|
1078
|
-
const evaluation = evalSet.find((e) => e.id === evaluationIdOrName || e.name === evaluationIdOrName);
|
|
1079
|
-
if (!evaluation) {
|
|
1080
|
-
throw new Error(`Data point "${evaluationIdOrName}" not found`);
|
|
1081
|
-
}
|
|
1082
|
-
return this.evaluations.listChildSimulations(evaluation, parentComponentId);
|
|
1083
|
-
}
|
|
1084
|
-
removeChildSimulation(projectPath, setIdOrName, evaluationIdOrName, parentComponentId, childComponentId) {
|
|
1085
|
-
return this.evaluations.removeChildSimulation(projectPath, setIdOrName, evaluationIdOrName, parentComponentId, childComponentId);
|
|
1086
|
-
}
|
|
1087
|
-
static evaluatorTypeAliases() {
|
|
1088
|
-
return evaluatorTypeAliases();
|
|
900
|
+
readChildSimulationSchema(projectPath, parentComponentId, childComponentId) {
|
|
901
|
+
return this.childSimulationSchema.read(projectPath, parentComponentId, childComponentId);
|
|
1089
902
|
}
|
|
1090
903
|
}
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
}
|
|
1097
|
-
const properties = isRecord(outputSchema.properties) ? outputSchema.properties : undefined;
|
|
1098
|
-
if (!properties)
|
|
1099
|
-
return;
|
|
1100
|
-
const schemaKeys = new Set(Object.keys(properties));
|
|
1101
|
-
const mockKeys = Object.keys(mockValue);
|
|
1102
|
-
const unexpected = mockKeys.filter((k) => !schemaKeys.has(k));
|
|
1103
|
-
if (unexpected.length > 0) {
|
|
1104
|
-
throw new Error(`Mock value for "${componentId}" has keys not in the output schema: ${unexpected.join(", ")}. ` + `Expected keys: ${[...schemaKeys].join(", ")}`);
|
|
904
|
+
|
|
905
|
+
// src/services/flow-eval-service.ts
|
|
906
|
+
class FlowEvalService extends EvalService {
|
|
907
|
+
constructor(fs = getFileSystem()) {
|
|
908
|
+
super(fs, new FlowWorkflowAdapter(fs));
|
|
1105
909
|
}
|
|
1106
910
|
}
|
|
1107
911
|
export {
|
|
1108
912
|
FlowEvalService
|
|
1109
913
|
};
|
|
1110
914
|
|
|
1111
|
-
//# debugId=
|
|
915
|
+
//# debugId=D0357B9B3D792C1764756E2164756E21
|