@uipath/flow-tool 1.205.0-preview.277 → 1.206.0-preview.279
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -12
- package/dist/THIRD-PARTY-NOTICES.md +74 -46
- package/dist/applicationinsights-web-8m26566f.js +17209 -0
- package/dist/authoring-x84r2a2j.js +23 -0
- package/dist/binding-service-s0wvr2xm.js +114 -0
- package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-gnftxwsf.js} +5 -6
- package/dist/connector-library-1yw5r47w.js +99 -0
- package/dist/{connector-service-kdg7mq7z.js → connector-service-r86mtxwn.js} +270 -275
- package/dist/{conversion-FQTRFHRX-e5wr281j.js → conversion-7O2PDOQB-3wwppx87.js} +477 -472
- package/dist/{de-FGHEJRCI-PK6WALXW-0dnvnmke.js → de-2BEKRUMY-MD7L477H-rj1rmtav.js} +425 -37
- package/dist/{de-WLW6KWOJ-2qnsqdtw.js → de-2BEKRUMY-x4dx0nn9.js} +190 -10
- package/dist/{de-VMMG2MN7-2ecwpg1b.js → de-3CU65EDB-r7r10am9.js} +82 -7
- package/dist/{de-UZI7FJDO-awjpqfz0.js → de-AI7ML6JM-km47f8k4.js} +20 -5
- package/dist/{de-B3EKCNFC-zdwybhh7.js → de-VQWT6L5Y-mch4qwyv.js} +38 -5
- package/dist/{de-XNTCMP5Z-xfkfqg20.js → de-XNTCMP5Z-nd4scb43.js} +1 -4
- package/dist/debug-conversation-trigger-3wzy90kj.js +23 -0
- package/dist/debug-http-client-zydr7tna.js +31 -0
- package/dist/debug-service-hdktqeek.js +60 -0
- package/dist/edge-service-zck3s9ss.js +267 -0
- package/dist/{elk.bundled-vpsbxz0p.js → elk.bundled-phy0zc81.js} +6860 -6860
- package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
- package/dist/en-LAVDF7IQ-ba7wzsxp.js +254 -0
- package/dist/en-LQHKFSEY-zf6a2myg.js +24 -0
- package/dist/en-U2NSIIZN-whenw6wh.js +58 -0
- package/dist/en-WPCQ4JKF-t3x07ggr.js +148 -0
- package/dist/en-X6T4SP2Y-FPGCJIFV-qdfapfzs.js +2756 -0
- package/dist/en-X6T4SP2Y-xe57av1w.js +2752 -0
- package/dist/{es-5THCNRFN-tqwyrdgy.js → es-7ZTQTGKN-11sj0yjx.js} +190 -10
- package/dist/{es-KR3ZSNMP-QLWVVWKJ-5egs0gj9.js → es-7ZTQTGKN-TXQBFYRA-bzh1e1gq.js} +422 -34
- package/dist/{es-EKHIPSW6-ya88nvm0.js → es-EKHIPSW6-asfceac2.js} +1 -4
- package/dist/{es-KEBF3AIM-g5rszh8f.js → es-EP563JWQ-1agj5n4e.js} +38 -5
- package/dist/{es-WY6FZ3HO-zksnn6dp.js → es-KHVY67FO-natcvmmm.js} +82 -7
- package/dist/{es-MX-5RELIXKI-jtjbcxbb.js → es-MX-7KJZPEQN-1fq0a9jr.js} +20 -5
- package/dist/{es-MX-ZP2LJ3V7-k4brnfa9.js → es-MX-F7ZEHSNE-gxpm47vv.js} +82 -7
- package/dist/{es-MX-XXZJGC4R-W6EEIHXR-c2m4yjpj.js → es-MX-IHGRIEWH-23X37OPS-7cqdzpcy.js} +425 -37
- package/dist/{es-MX-TWZBRAXK-gqd9swzw.js → es-MX-IHGRIEWH-g63p0gb4.js} +191 -11
- package/dist/{es-MX-OR6G2SFR-7yykk5ma.js → es-MX-OR6G2SFR-02t13sen.js} +1 -4
- package/dist/{es-MX-EL3CDS3F-sh84yvjr.js → es-MX-S2RFDGDE-x9r0tv30.js} +38 -5
- package/dist/{es-4UBUTCQA-t7hsackg.js → es-SPNKTD5Y-vw5cbgv5.js} +20 -5
- package/dist/filter-engine-dh9s90gb.js +10 -0
- package/dist/first-party-service-ahcc6xc6.js +8 -0
- package/dist/flow-api-d4dvmadm.js +38 -0
- package/dist/{flow-debug-service-0xn8fk4a.js → flow-debug-service-hy21ddd9.js} +151 -195
- package/dist/flow-eval-node-target-tdrwqca7.js +29 -0
- package/dist/flow-eval-run-api-w4j8ra60.js +9 -0
- package/dist/{flow-eval-run-service-dcj8p7n7.js → flow-eval-run-service-5en4ahyn.js} +125 -149
- package/dist/{flow-eval-service-6c0y5a3b.js → flow-eval-service-2j28ect1.js} +57 -81
- package/dist/{flow-init-sdk-source-xvdvkq7d.js → flow-init-sdk-source-xnr4bg25.js} +8 -11
- package/dist/flow-init-service-bj3ev9bz.js +26 -0
- package/dist/flow-io-9q6xk473.js +24 -0
- package/dist/{flow-migrate-service-9w8dgydd.js → flow-migrate-service-dkx85jj5.js} +33 -54
- package/dist/{flow-pack-service-5s2cthq4.js → flow-pack-service-58m51sp8.js} +79 -103
- package/dist/flow-validate-service-9a3zate4.js +46 -0
- package/dist/{fr-DPD4GHX3-exeypjwk.js → fr-7LK3QUWT-a94yejcs.js} +38 -5
- package/dist/{fr-Y6NPVODW-AS7T42TR-v4qe2tha.js → fr-7ZDL4MVO-CXMRZDOF-qjkg6y2r.js} +425 -37
- package/dist/{fr-CERONSRC-edpxhbmb.js → fr-7ZDL4MVO-pd27vwh6.js} +191 -11
- package/dist/{fr-VBM5WRC2-707ha692.js → fr-AXJGUT53-hdg3pmd4.js} +20 -5
- package/dist/{fr-PRMYCRDC-0bk078by.js → fr-I42FODC5-p80x5v4b.js} +83 -8
- package/dist/{fr-IHD66TVT-vfvmefbx.js → fr-IHD66TVT-eq8h0d6c.js} +1 -4
- package/dist/{governance-fetcher-mx8gr86x.js → governance-fetcher-h8hpcwyh.js} +17 -21
- package/dist/{headless-4x4v3sy6.js → headless-41t9wwb7.js} +2395 -43269
- package/dist/{hitl-service-d943rxgm.js → hitl-service-hccqhm63.js} +22 -42
- package/dist/index-4e3w8x62.js +31 -0
- package/dist/{index-fyc0k5dd.js → index-5pzp2qeb.js} +5350 -3271
- package/dist/index-5xh0cjag.js +82 -0
- package/dist/index-7fet3f0s.js +10 -0
- package/dist/index-d4bdedx3.js +32 -0
- package/dist/index-f5kq7265.js +24 -0
- package/dist/index-g2p2ww34.js +39 -0
- package/dist/index-ng011fzs.js +974 -0
- package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
- package/dist/{index-1b2je9n2.js → index-px95xmkg.js} +290 -268
- package/dist/index-tdwpejt6.js +22 -0
- package/dist/index-z2qk2qn6.js +24 -0
- package/dist/index.js +19 -28
- package/dist/index.umd.min-ttg1qc0x.js +7814 -0
- package/dist/init.js +22 -43
- package/dist/inline-entity-resolver-0neh2b43.js +25 -0
- package/dist/input-reader-zqaep7k7.js +11 -0
- package/dist/{ja-43QL7CGO-c3q8gre9.js → ja-C7GZV6YP-hvtbngr5.js} +20 -5
- package/dist/{ja-HFEQKCZF-hb2f25p8.js → ja-GI3OUHPZ-28fy60r0.js} +83 -8
- package/dist/{ja-JE5ZL7EY-hacj2m31.js → ja-JE5ZL7EY-607k4c7p.js} +1 -4
- package/dist/{ja-Q5PXKJ2V-BR5GRIDQ-fgqqpryf.js → ja-LGAM5HKR-NTPKIZEM-nv67917s.js} +422 -34
- package/dist/{ja-U2MCNHGT-gz0ap1jk.js → ja-LGAM5HKR-sgrtjqjh.js} +190 -10
- package/dist/ja-WY2W6733-ayr36h1f.js +71 -0
- package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
- package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/known-types-v9sxcq1c.js +13 -0
- package/dist/{ko-AYBDSRZG-G43C3XUW-kng13fsg.js → ko-7B4SUZB7-2SLI636D-grbtfrcv.js} +424 -36
- package/dist/{ko-XAUYQWDR-zp81gjp4.js → ko-7B4SUZB7-c8wr20sc.js} +190 -10
- package/dist/{ko-DJJRKCG5-5h3k9csc.js → ko-DJJRKCG5-4fekzjn4.js} +1 -4
- package/dist/{ko-LA5OSS5P-mq5h8sbk.js → ko-H2RGQWKJ-9696w762.js} +38 -5
- package/dist/{ko-TLL6Z6CD-wrt3n8a9.js → ko-Q24HSSL4-5vn55pte.js} +20 -5
- package/dist/{ko-B4SEC7QX-thq2wt6a.js → ko-RYKAL74T-10m4z8vw.js} +83 -8
- package/dist/localization-skqjy9nr.js +45 -0
- package/dist/maestro-automate-entry-d1v5q5mv.js +14 -0
- package/dist/{node-5ay0ddfj.js → node-0jy3qx5b.js} +69 -638
- package/dist/node-service-2nxpk751.js +64 -0
- package/dist/{node-strategy-1dmmhvf3.js → node-strategy-wrjxmbzt.js} +9 -12
- package/dist/node-sync-service-68vq10je.js +56 -0
- package/dist/packager-tool-14rdgz3c.js +55 -0
- package/dist/packager-tool-1rhch6b5.js +496 -0
- package/dist/packager-tool-21t17xzz.js +5073 -0
- package/dist/{packager-tool-pvhx9e12.js → packager-tool-2b0tn4p4.js} +58 -176
- package/dist/{packager-tool-xf9vf5nj.js → packager-tool-368bft50.js} +11 -11
- package/dist/{packager-tool-a5afh1dc.js → packager-tool-4fv0sq2h.js} +61 -67
- package/dist/packager-tool-4g87fbz6.js +273 -0
- package/dist/packager-tool-4zt1s51a.js +53 -0
- package/dist/{packager-tool-frjt46rb.js → packager-tool-508ka40b.js} +23 -23
- package/dist/{packager-tool-a5ywkf0w.js → packager-tool-5104bnpv.js} +22 -21
- package/dist/packager-tool-5dgpfh5e.js +1274 -0
- package/dist/packager-tool-5ve5ms3b.js +2393 -0
- package/dist/{packager-tool-dxgrhfq5.js → packager-tool-64r7e4ek.js} +8 -8
- package/dist/{packager-tool-kkwrd05c.js → packager-tool-65yf8zqb.js} +180 -1237
- package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
- package/dist/{packager-tool-hgfygxyj.js → packager-tool-6jpvvxyb.js} +27 -22
- package/dist/packager-tool-6vhefpmq.js +461 -0
- package/dist/{packager-tool-v9vpk48j.js → packager-tool-72xwbsmw.js} +441 -556
- package/dist/packager-tool-7atc775f.js +30 -0
- package/dist/packager-tool-7mxn3e7j.js +27 -0
- package/dist/{packager-tool-gpwnzqd9.js → packager-tool-7qtnffkc.js} +8 -7
- package/dist/{packager-tool-ymma2s85.js → packager-tool-8ba22j6n.js} +9 -6
- package/dist/{packager-tool-apawc11t.js → packager-tool-8ed52y5r.js} +1584 -1261
- package/dist/{packager-tool-143kcy6z.js → packager-tool-8n4bdvke.js} +13 -13
- package/dist/{packager-tool-p8gab24q.js → packager-tool-8qypzm9v.js} +424 -404
- package/dist/packager-tool-9217bxm2.js +6 -0
- package/dist/{packager-tool-zfrp8ecz.js → packager-tool-951nhh3e.js} +82 -82
- package/dist/{packager-tool-zjv3f1k3.js → packager-tool-99d2kj94.js} +8 -11
- package/dist/{packager-tool-z21c6mbp.js → packager-tool-a1h0q79w.js} +48 -48
- package/dist/{packager-tool-xk78j7dz.js → packager-tool-ac6rvny7.js} +52 -57
- package/dist/{packager-tool-3jkppykr.js → packager-tool-b2pkwwj1.js} +1273 -1300
- package/dist/{packager-tool-nhrc54tz.js → packager-tool-bbkkxbyq.js} +9 -8
- package/dist/{packager-tool-409n51pv.js → packager-tool-d07g2kpn.js} +7 -7
- package/dist/{packager-tool-8zzmg2f3.js → packager-tool-dx6sjbkd.js} +19 -19
- package/dist/{packager-tool-8g5931fz.js → packager-tool-em4ppegs.js} +36 -43
- package/dist/{packager-tool-zgsvggdr.js → packager-tool-f7rk9xhv.js} +4 -4
- package/dist/{packager-tool-jrnjzs5t.js → packager-tool-fzgfb0jt.js} +32175 -36281
- package/dist/{packager-tool-9rmaeaww.js → packager-tool-gdpw0daf.js} +25211 -11966
- package/dist/packager-tool-hk0fnvz5.js +14 -0
- package/dist/{packager-tool-dbsdy4xx.js → packager-tool-jd3v0bh1.js} +4 -4
- package/dist/{packager-tool-tqjfdpda.js → packager-tool-jmrhzfyj.js} +106 -80
- package/dist/{packager-tool-mgwzjh8c.js → packager-tool-kz3t4raw.js} +490 -246
- package/dist/{packager-tool-7bam8cjq.js → packager-tool-mdf7bws6.js} +53255 -27261
- package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
- package/dist/{packager-tool-nkrmjr3a.js → packager-tool-mphfxa9g.js} +125 -125
- package/dist/{packager-tool-kn86394c.js → packager-tool-p123mtfx.js} +66 -692
- package/dist/{packager-tool-t7ahhaer.js → packager-tool-pxq0bwp0.js} +208 -138
- package/dist/{packager-tool-j95w4fj3.js → packager-tool-q0f1dvtd.js} +11 -11
- package/dist/{packager-tool-8qp60s20.js → packager-tool-q2f18crb.js} +3 -3
- package/dist/packager-tool-q2kwk5bf.js +57 -0
- package/dist/{packager-tool-z502rf8m.js → packager-tool-rxqxza90.js} +192 -183
- package/dist/{packager-tool-vzezw19a.js → packager-tool-ryds9860.js} +33 -36
- package/dist/{packager-tool-ykbahxma.js → packager-tool-t17t9svg.js} +6 -6
- package/dist/{packager-tool-myhbp761.js → packager-tool-vgrswa8p.js} +53 -8
- package/dist/{packager-tool-7hw344bt.js → packager-tool-xb16e3tz.js} +5 -5
- package/dist/{packager-tool-1frs4sr4.js → packager-tool-yewnsyag.js} +37 -5
- package/dist/packager-tool-zdqbp34f.js +14 -0
- package/dist/{packager-tool-pacrqxv2.js → packager-tool-ze3fnf3s.js} +52 -34
- package/dist/packager-tool.js +12 -32
- package/dist/prepare-uip-ad7mfs8t.js +92 -0
- package/dist/{pt-3KUMINBZ-d0fexmny.js → pt-2RGHDOG4-gwe2ptvg.js} +38 -5
- package/dist/{pt-BR-3LGIH33I-tqbrd89y.js → pt-BR-3LGIH33I-hdf332je.js} +1 -4
- package/dist/{pt-BR-USP2T7GD-pedn77m1.js → pt-BR-BIUJXIPU-2sqzhr8y.js} +20 -5
- package/dist/{pt-BR-6VFBW5QT-hsck9gjj.js → pt-BR-IL3KLBID-m1mvqqzb.js} +83 -8
- package/dist/{pt-BR-WNNZTIMN-6fent688.js → pt-BR-JWHVZE6H-gvkknv49.js} +38 -5
- package/dist/{pt-BR-TKHNHMET-4Z5H4N5G-pzw3328h.js → pt-BR-PHLFHMXZ-JFPKUXIZ-gyb27t6e.js} +425 -37
- package/dist/{pt-BR-GNQNAAZ2-xadharv4.js → pt-BR-PHLFHMXZ-n6de4s7z.js} +191 -11
- package/dist/{pt-RMIAKZB4-t80exmp7.js → pt-MHX6JGAX-xfgvdqwg.js} +20 -5
- package/dist/{pt-ROXU257Y-OWZOS54V-ywap2t39.js → pt-N7ZTJT4W-GVODJMRX-p5b51p0b.js} +424 -36
- package/dist/{pt-TO2DARY2-ftcce1bv.js → pt-N7ZTJT4W-d6c67xcn.js} +190 -10
- package/dist/{pt-PFZXVOQH-qshq0b2m.js → pt-PFZXVOQH-xvcm5b61.js} +1 -4
- package/dist/{pt-WOTPKWPZ-1rxcy8hs.js → pt-VLA5IOHO-8t4pze0h.js} +83 -8
- package/dist/{ro-GHOBYW2S-4zevc9dy.js → ro-3RKJNGJZ-xqj14e3d.js} +20 -5
- package/dist/{ro-KMDT7LYJ-yhpnsdvw.js → ro-53TS7SWG-hnjx1c7b.js} +38 -5
- package/dist/{ro-AN5G62WQ-kcj00jwq.js → ro-AN5G62WQ-fzsv2ymm.js} +1 -4
- package/dist/{ro-AVAWPKOO-6WCG756B-v7pjv1hc.js → ro-FLNXVYJI-ZN43XZKK-2tajkc94.js} +422 -34
- package/dist/{ro-WUYJV6OW-a8d9qy1n.js → ro-FLNXVYJI-ytrwabg2.js} +190 -10
- package/dist/{ro-PB44YXML-zmhhwp5h.js → ro-IRNFX376-mh84zk3n.js} +82 -7
- package/dist/{ru-GSCT4ARZ-FTVCGQTL-gee86v14.js → ru-GSCT4ARZ-FTVCGQTL-v3d4ag31.js} +2 -4
- package/dist/ru-GSCT4ARZ-c2cfq4h1.js +7 -0
- package/dist/{ru-T73OPRTC-4knxw497.js → ru-T73OPRTC-50m7tty9.js} +1 -4
- package/dist/{ru-WBLQ5B2U-wemdzdqd.js → ru-WBLQ5B2U-5qpt0mvh.js} +1 -4
- package/dist/{ru-WBLQ5B2U-8r3c7v6d.js → ru-WBLQ5B2U-bf20yr5y.js} +1 -4
- package/dist/{ru-WBLQ5B2U-kdey8qa4.js → ru-WBLQ5B2U-w2wmp3xb.js} +1 -4
- package/dist/{serialization-BXU6AKAN-vdqyr29x.js → serialization-Z3UYT6BW-y9gb55mp.js} +1638 -761
- package/dist/services/extract-schema/default-schema-document.d.ts +31 -0
- package/dist/services/node-service.d.ts +6 -3
- package/dist/services/node-validators/file-node-connection-validator.d.ts +2 -0
- package/dist/services/node-validators/index.d.ts +1 -0
- package/dist/services/orchestrator-connection-field.d.ts +24 -0
- package/dist/services/packaging-utils.d.ts +2 -2
- package/dist/services/vars-reference-rule.d.ts +4 -3
- package/dist/solution-auth-j8x84n5z.js +11 -0
- package/dist/solution-discovery-vn4q32bf.js +38 -0
- package/dist/{tidy-service-c3xbcma6.js → tidy-service-m33hhtc7.js} +37 -55
- package/dist/tool.js +18 -27
- package/dist/{tr-JMIP7ZSL-G3QYPVT2-gswngwcr.js → tr-7AIZZWZ6-ESAESUPL-77g9b7jb.js} +422 -34
- package/dist/{tr-M3F5A6AU-bb0tg39m.js → tr-7AIZZWZ6-pdzp9n0p.js} +190 -10
- package/dist/{tr-SEC6RGZ4-0ttavjya.js → tr-EJKY7DVQ-rkctqva4.js} +83 -8
- package/dist/{tr-KHOCWWLF-8apf5y44.js → tr-KHOCWWLF-m9t24j5y.js} +1 -4
- package/dist/{tr-SC55DYHY-e4zgcd4t.js → tr-PIQY7JIT-2mkwk0kq.js} +38 -5
- package/dist/{tr-GDTLECMM-kngksm3r.js → tr-PQLUUHPC-qsb7btxn.js} +20 -5
- package/dist/utils/container-ports.d.ts +22 -0
- package/dist/utils/handle-expansion.d.ts +57 -3
- package/dist/utils/workflow-file-format.d.ts +14 -0
- package/dist/validation.js +44 -68
- package/dist/{variable-service-s0srgj90.js → variable-service-ea1erf93.js} +28 -49
- package/dist/{wait-for-flow-job-b0vj8828.js → wait-for-flow-job-a4xtda36.js} +29 -36
- package/dist/{zh-CN-MX7VIOF2-xznrtchf.js → zh-CN-4FH7E7UL-84y6j2ea.js} +82 -7
- package/dist/{zh-CN-4NI2EGMV-8g027vv3.js → zh-CN-4NI2EGMV-dt0wg0wh.js} +1 -4
- package/dist/{zh-CN-IFFXSEJS-MZQ4HU3Z-ge1ynmtz.js → zh-CN-CN2ARPFS-NIQTWDK2-b5c91fwn.js} +422 -34
- package/dist/{zh-CN-C5G4PC7C-ds9gkptg.js → zh-CN-CN2ARPFS-e0p2qrxf.js} +190 -10
- package/dist/{en-BPJVY3U7-xkpj5xc5.js → zh-CN-NIEVKROA-q4tbbwqz.js} +26 -7
- package/dist/{zh-CN-I5D7WHBD-ge92tbx9.js → zh-CN-OHNTHZRI-b0hjkfqn.js} +20 -5
- package/dist/{zh-TW-53SU6EH4-33x57egq.js → zh-TW-53SU6EH4-w0wz3nwg.js} +1 -4
- package/dist/{zh-TW-5SJ3GZT2-bsg054mw.js → zh-TW-5WQA6QTM-hns69sd4.js} +83 -8
- package/dist/{zh-TW-IYBNYAMG-J7FWTQTK-sx8d4ymg.js → zh-TW-7RUFEVFK-VKVRSVTP-jq2pcmar.js} +421 -33
- package/dist/{zh-TW-62HZIG6O-787kdwex.js → zh-TW-7RUFEVFK-qd7myw31.js} +190 -10
- package/dist/{zh-TW-2AVLM723-288pkc1z.js → zh-TW-E4D3Y6ZR-tn3bmzz5.js} +20 -5
- package/dist/{zh-TW-TN3MPNXL-jcgg2hcs.js → zh-TW-MSQM7YTT-m7r7nwnj.js} +38 -5
- package/package.json +2 -2
- package/dist/authoring-e1k40hyw.js +0 -24
- package/dist/binding-service-v1ejjevw.js +0 -157
- package/dist/de-FGHEJRCI-gn4cf5gh.js +0 -2697
- package/dist/de-MUJPA4EB-209jpeqe.js +0 -173
- package/dist/de-UZI7FJDO-mwvc4cxe.js +0 -200
- package/dist/debug-conversation-trigger-2crr9w4n.js +0 -30
- package/dist/debug-http-client-yqjzsnhw.js +0 -32
- package/dist/debug-service-nra3n02y.js +0 -61
- package/dist/edge-service-vq8cjh0x.js +0 -170
- package/dist/en-E454CJNK-ytfw06kj.js +0 -98
- package/dist/en-EJCBA3LK-0wb3b1xy.js +0 -146
- package/dist/en-EJCBA3LK-dtpdghgj.js +0 -146
- package/dist/en-GN2ZGWUE-03z2df4k.js +0 -136
- package/dist/en-LQHKFSEY-vvbe8ve9.js +0 -26
- package/dist/en-M7GQYBV2-5nfmpnfz.js +0 -2018
- package/dist/en-TBNO2WUV-77KTKLDE-4ktf0pqw.js +0 -1942
- package/dist/en-TBNO2WUV-9nan43e5.js +0 -1936
- package/dist/es-4UBUTCQA-m1ytpyx2.js +0 -200
- package/dist/es-7SE7HX2X-qda7whn6.js +0 -173
- package/dist/es-KR3ZSNMP-0cszm2n3.js +0 -2697
- package/dist/es-MX-2MYFZU7X-6v0q5rbn.js +0 -173
- package/dist/es-MX-5RELIXKI-9jhqtddc.js +0 -200
- package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +0 -2697
- package/dist/filter-engine-7ep90g7f.js +0 -11
- package/dist/first-party-service-srxaftkn.js +0 -27
- package/dist/flow-api-sat010z1.js +0 -42
- package/dist/flow-eval-node-target-b5xwf5gp.js +0 -52
- package/dist/flow-eval-run-api-xdygjzfv.js +0 -13
- package/dist/flow-init-service-z6xc9zsz.js +0 -47
- package/dist/flow-io-hf4szx79.js +0 -44
- package/dist/flow-validate-service-3974mcq1.js +0 -70
- package/dist/fr-MDFKNZ4C-qmypp92m.js +0 -173
- package/dist/fr-VBM5WRC2-63z7w4mh.js +0 -200
- package/dist/fr-Y6NPVODW-q5ef3htr.js +0 -2697
- package/dist/index-cexznmfe.js +0 -667
- package/dist/index-cg9qhfb1.js +0 -635
- package/dist/index-d090f35d.js +0 -66
- package/dist/index-gxcjq6ns.js +0 -110
- package/dist/index-kmp9fmhb.js +0 -25
- package/dist/index-nsn889vf.js +0 -27
- package/dist/index-sqhbn7ew.js +0 -157
- package/dist/index-wycgq0ff.js +0 -3178
- package/dist/index.umd.min-fqefd9kn.js +0 -7814
- package/dist/inline-entity-resolver-23tt0g1j.js +0 -45
- package/dist/input-reader-n7kzdrev.js +0 -12
- package/dist/ja-43QL7CGO-h6qfxfay.js +0 -200
- package/dist/ja-MDG4BKZQ-gayaca2c.js +0 -38
- package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +0 -2697
- package/dist/ja-UTQEAP34-hvyf683h.js +0 -173
- package/dist/known-types-r51zxb9g.js +0 -19
- package/dist/ko-AXCHW2OK-pkwdcbmx.js +0 -173
- package/dist/ko-AYBDSRZG-am0h0m2r.js +0 -2697
- package/dist/ko-TLL6Z6CD-ag6gjynr.js +0 -200
- package/dist/localization-d6gjmrsw.js +0 -47
- package/dist/maestro-automate-entry-6f9act3w.js +0 -22
- package/dist/node-service-0t16wfqk.js +0 -92
- package/dist/node-sync-service-w84f66pb.js +0 -61
- package/dist/packager-tool-0gctz400.js +0 -17
- package/dist/packager-tool-4mna26cc.js +0 -133
- package/dist/packager-tool-4x7tzvv0.js +0 -1176
- package/dist/packager-tool-53w8skv5.js +0 -262
- package/dist/packager-tool-6ejqwbw9.js +0 -26
- package/dist/packager-tool-6z1hsm2h.js +0 -143
- package/dist/packager-tool-79jnagb9.js +0 -5367
- package/dist/packager-tool-9era57c0.js +0 -28
- package/dist/packager-tool-9jxzgsxc.js +0 -14
- package/dist/packager-tool-c23zrhj8.js +0 -11
- package/dist/packager-tool-d6qf5qmb.js +0 -49
- package/dist/packager-tool-dw1bm5y7.js +0 -8809
- package/dist/packager-tool-e3yks66r.js +0 -95
- package/dist/packager-tool-e5hj89zm.js +0 -6
- package/dist/packager-tool-e87tzg4y.js +0 -1937
- package/dist/packager-tool-eypvc2kv.js +0 -23
- package/dist/packager-tool-gbgfwx8f.js +0 -2
- package/dist/packager-tool-hk1gxnth.js +0 -11
- package/dist/packager-tool-hxyjn885.js +0 -24
- package/dist/packager-tool-j78fwwhq.js +0 -16
- package/dist/packager-tool-jgfzfqjm.js +0 -53
- package/dist/packager-tool-jysvpt8p.js +0 -11
- package/dist/packager-tool-m3wkcxf5.js +0 -11
- package/dist/packager-tool-mcaf4ewf.js +0 -46
- package/dist/packager-tool-mgcz986r.js +0 -143
- package/dist/packager-tool-p79yh9ww.js +0 -97
- package/dist/packager-tool-paq9c70w.js +0 -1332
- package/dist/packager-tool-pcvhcn2k.js +0 -2019
- package/dist/packager-tool-qkn0c042.js +0 -1922
- package/dist/packager-tool-qszay16r.js +0 -180
- package/dist/packager-tool-rs6jm14d.js +0 -23
- package/dist/packager-tool-s7wb0s9n.js +0 -6297
- package/dist/packager-tool-sc961w0q.js +0 -16
- package/dist/packager-tool-skcjythd.js +0 -22085
- package/dist/packager-tool-t07ev0jj.js +0 -1083
- package/dist/packager-tool-xj0agqpk.js +0 -11
- package/dist/packager-tool-z83pga0z.js +0 -1942
- package/dist/pt-3DIO5QWG-hb763vct.js +0 -173
- package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +0 -2697
- package/dist/pt-BR-USP2T7GD-rppy42ym.js +0 -200
- package/dist/pt-BR-Y6K6XHXK-37a932vp.js +0 -173
- package/dist/pt-RMIAKZB4-67enhx3m.js +0 -200
- package/dist/pt-ROXU257Y-yd80gx6s.js +0 -2697
- package/dist/ro-AVAWPKOO-42m6am1w.js +0 -2697
- package/dist/ro-BWR3ONRR-jmap5ajd.js +0 -173
- package/dist/ro-GHOBYW2S-mhnqsgaa.js +0 -200
- package/dist/ru-GSCT4ARZ-1sa9wbr8.js +0 -10
- package/dist/ru-GSCT4ARZ-jrxwev63.js +0 -10
- package/dist/ru-WBLQ5B2U-dpqvtfwr.js +0 -10
- package/dist/ru-WBLQ5B2U-s4em88p0.js +0 -10
- package/dist/shared-utils-tqnx96mg.js +0 -21
- package/dist/solution-auth-8qz5pw7z.js +0 -14
- package/dist/solution-discovery-6t0z143v.js +0 -44
- package/dist/tr-5IIHSFW5-stsb3dar.js +0 -173
- package/dist/tr-GDTLECMM-k5fhmq13.js +0 -200
- package/dist/tr-JMIP7ZSL-fb67ft9w.js +0 -2696
- package/dist/zh-CN-I5D7WHBD-sr5h0a98.js +0 -200
- package/dist/zh-CN-IFFXSEJS-tke4mzty.js +0 -2697
- package/dist/zh-CN-OUMLDKDS-q3a1rr5c.js +0 -38
- package/dist/zh-CN-R2KU4U5L-q4yhc33t.js +0 -173
- package/dist/zh-TW-2AVLM723-xsmap3gk.js +0 -200
- package/dist/zh-TW-GNKMELBF-r4ay2475.js +0 -173
- package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +0 -2697
- /package/dist/{packager-tool-yc4kw997.js → packager-tool-1qg04b7q.js} +0 -0
- /package/dist/{packager-tool-cqtsj6yh.js → packager-tool-2sazb7th.js} +0 -0
- /package/dist/{packager-tool-s9ff3kk4.js → packager-tool-887wr6jm.js} +0 -0
- /package/dist/{packager-tool-aw9v0raw.js → packager-tool-8c7nddd1.js} +0 -0
- /package/dist/{packager-tool-9cq9atem.js → packager-tool-a9xgmn1q.js} +0 -0
- /package/dist/{packager-tool-4kr6g0zw.js → packager-tool-cvh1a0nm.js} +0 -0
- /package/dist/{packager-tool-27avrkyk.js → packager-tool-k3egwd1m.js} +0 -0
- /package/dist/{packager-tool-qa9gftnj.js → packager-tool-mxgybnmt.js} +0 -0
- /package/dist/{packager-tool-10vc8pq4.js → packager-tool-wr7gn964.js} +0 -0
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
isContainerNodeManifest
|
|
7
|
-
} from "./packager-tool-qszay16r.js";
|
|
8
|
-
import {
|
|
9
|
-
require_lib
|
|
10
|
-
} from "./packager-tool-zfrp8ecz.js";
|
|
11
|
-
import {
|
|
2
|
+
init_esm_shims,
|
|
3
|
+
MANIFEST_NAMESPACE,
|
|
4
|
+
instance,
|
|
5
|
+
NodeType2,
|
|
12
6
|
MANAGED_HTTP_NODE_TYPE,
|
|
13
|
-
MULTI_RECORD_RESULTS_KEY,
|
|
14
|
-
NodeType,
|
|
15
7
|
buildConnectorHttpRequestDetail,
|
|
16
|
-
|
|
17
|
-
|
|
8
|
+
normalizeConnectorHttpRequestDetail,
|
|
9
|
+
getLatestDefinitionByNodeType2,
|
|
10
|
+
getManifestKey2,
|
|
11
|
+
buildExtractDocumentBuilderNode2,
|
|
12
|
+
isPublishedIdpProcessorNodeType,
|
|
18
13
|
getConnectorHttpRequestKey,
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
getAgentToolConnectorHttpRequestKey,
|
|
15
|
+
MULTI_RECORD_RESULTS_KEY,
|
|
21
16
|
isMultiRecordRead,
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./packager-tool-
|
|
25
|
-
import
|
|
17
|
+
withFileShape,
|
|
18
|
+
findTerminalNodes
|
|
19
|
+
} from "./packager-tool-mdf7bws6.js";
|
|
20
|
+
import {
|
|
21
|
+
isUnsafeKey2,
|
|
22
|
+
isPlainObject2,
|
|
23
|
+
isContainerNodeType2,
|
|
24
|
+
supportsVariableUpdates2,
|
|
25
|
+
isSubflowNodeType2,
|
|
26
|
+
isConversationalOrVoiceAgentNodeType2,
|
|
27
|
+
isAgentNodeType2,
|
|
28
|
+
DYNAMIC_EXTRACT_NODE_TYPE2,
|
|
29
|
+
isHitlNodeType2,
|
|
30
|
+
readExtractionOutputSchema2,
|
|
31
|
+
isNodeUniqueId2
|
|
32
|
+
} from "./packager-tool-fzgfb0jt.js";
|
|
26
33
|
import {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./packager-tool-
|
|
38
|
-
import"./packager-tool-p79yh9ww.js";
|
|
39
|
-
import"./packager-tool-jrnjzs5t.js";
|
|
40
|
-
import"./packager-tool-z83pga0z.js";
|
|
34
|
+
isContainerNodeManifest,
|
|
35
|
+
getNodeDimensions,
|
|
36
|
+
toApiExtractionStrategy,
|
|
37
|
+
buildExtractionConfig,
|
|
38
|
+
IDP_PROCESSOR_KEY_INPUT,
|
|
39
|
+
IDP_PROCESSOR_READONLY_INPUT,
|
|
40
|
+
IDP_PROCESSOR_NAME_INPUT,
|
|
41
|
+
IDP_PROCESSOR_FOLDER_PATH_INPUT,
|
|
42
|
+
deriveIdpProcessorBindings,
|
|
43
|
+
SERVICES_NAMESPACE
|
|
44
|
+
} from "./packager-tool-6vhefpmq.js";
|
|
41
45
|
import {
|
|
42
|
-
|
|
43
|
-
} from "./packager-tool-
|
|
44
|
-
import"./packager-tool-mcaf4ewf.js";
|
|
45
|
-
import"./packager-tool-4mna26cc.js";
|
|
46
|
-
import"./packager-tool-c23zrhj8.js";
|
|
46
|
+
require_lib
|
|
47
|
+
} from "./packager-tool-951nhh3e.js";
|
|
47
48
|
import {
|
|
48
|
-
__require,
|
|
49
49
|
__toESM
|
|
50
|
-
} from "./packager-tool-
|
|
50
|
+
} from "./packager-tool-6an893wm.js";
|
|
51
51
|
|
|
52
|
-
// ../../node_modules/@uipath/flow-converter/dist/conversion-
|
|
52
|
+
// ../../node_modules/@uipath/flow-converter/dist/conversion-7O2PDOQB.js
|
|
53
53
|
var import_json5 = __toESM(require_lib(), 1);
|
|
54
54
|
init_esm_shims();
|
|
55
55
|
init_esm_shims();
|
|
56
56
|
init_esm_shims();
|
|
57
57
|
function findManifestByNodeType(map, nodeType) {
|
|
58
|
-
const latestDef =
|
|
58
|
+
const latestDef = getLatestDefinitionByNodeType2(nodeType);
|
|
59
59
|
if (latestDef) {
|
|
60
|
-
const found = map.get(
|
|
60
|
+
const found = map.get(getManifestKey2(nodeType, latestDef.version));
|
|
61
61
|
if (found)
|
|
62
62
|
return found;
|
|
63
63
|
}
|
|
@@ -71,8 +71,8 @@ function isArtifactHandle(nodeHandleId, nodeConfig) {
|
|
|
71
71
|
return Boolean(nodeHandleId && nodeConfig && nodeConfig.handleConfiguration.some((handleGroup) => handleGroup.handles.some((h) => h.id === nodeHandleId && h.handleType === "artifact")));
|
|
72
72
|
}
|
|
73
73
|
function shouldUseArtifactEdge(source, target, manifestMap) {
|
|
74
|
-
const sourceNodeConfig = manifestMap.get(
|
|
75
|
-
const targetNodeConfig = manifestMap.get(
|
|
74
|
+
const sourceNodeConfig = manifestMap.get(getManifestKey2(source.type, source.version));
|
|
75
|
+
const targetNodeConfig = manifestMap.get(getManifestKey2(target.type, target.version));
|
|
76
76
|
return Boolean(isArtifactHandle(source.sourceHandle, sourceNodeConfig) || isArtifactHandle(target.targetHandle, targetNodeConfig));
|
|
77
77
|
}
|
|
78
78
|
function resolveEdgeType(edge, nodes, manifestMap) {
|
|
@@ -89,6 +89,9 @@ function resolveEdgeType(edge, nodes, manifestMap) {
|
|
|
89
89
|
}
|
|
90
90
|
init_esm_shims();
|
|
91
91
|
init_esm_shims();
|
|
92
|
+
init_esm_shims();
|
|
93
|
+
var GRID_SPACING = 16;
|
|
94
|
+
init_esm_shims();
|
|
92
95
|
function getNodeParentId(node) {
|
|
93
96
|
const dataParentId = node?.data?.parentId;
|
|
94
97
|
return node?.parentId ?? (typeof dataParentId === "string" ? dataParentId : undefined);
|
|
@@ -129,9 +132,6 @@ function translateWaypoints(waypoints, offset) {
|
|
|
129
132
|
return [...waypoints];
|
|
130
133
|
return waypoints.map((w) => ({ ...w, x: w.x + offset.x, y: w.y + offset.y }));
|
|
131
134
|
}
|
|
132
|
-
function untranslateWaypoints(waypoints, offset) {
|
|
133
|
-
return translateWaypoints(waypoints, { x: -offset.x, y: -offset.y });
|
|
134
|
-
}
|
|
135
135
|
function getManualWaypoints(data) {
|
|
136
136
|
const waypoints = data?.waypoints;
|
|
137
137
|
return waypoints?.length ? waypoints : undefined;
|
|
@@ -154,6 +154,8 @@ function stripEdgeRouting(edge, keepManual = false) {
|
|
|
154
154
|
delete next.waypoints;
|
|
155
155
|
return { ...edge, data: next };
|
|
156
156
|
}
|
|
157
|
+
var LOOP_BACK_STEM_PX = 2 * GRID_SPACING;
|
|
158
|
+
var TIMEOUT_ROUTE_CLEARANCE_PX = GRID_SPACING / 2;
|
|
157
159
|
var STALE_ROUTE_SLACK_PX = 2000;
|
|
158
160
|
function dropStaleEdgeRoutes(edges, nodes) {
|
|
159
161
|
if (!edges.some((edge) => getManualWaypoints(edge.data) || getRoutedWaypoints(edge.data)))
|
|
@@ -221,7 +223,7 @@ function reconcileStaleHitlOutcomeEdges(edges, nodes) {
|
|
|
221
223
|
const realHandleIdsByNode = /* @__PURE__ */ new Map;
|
|
222
224
|
for (const node of nodes) {
|
|
223
225
|
const nodeType = node.data?.type ?? node.type ?? "";
|
|
224
|
-
if (!
|
|
226
|
+
if (!isHitlNodeType2(nodeType))
|
|
225
227
|
continue;
|
|
226
228
|
const outcomes = parseOutcomes(node.data?.inputs?.schema).filter((o) => typeof o.id === "string" && o.id.length > 0);
|
|
227
229
|
if (outcomes.length === 0)
|
|
@@ -256,44 +258,21 @@ function reconcileStaleHitlOutcomeEdges(edges, nodes) {
|
|
|
256
258
|
}
|
|
257
259
|
init_esm_shims();
|
|
258
260
|
var NO_OFFSET = { x: 0, y: 0 };
|
|
259
|
-
function
|
|
260
|
-
const
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
}
|
|
264
|
-
const waypoints = getManualWaypoints(edge.data);
|
|
265
|
-
const routedWaypoints = getRoutedWaypoints(edge.data);
|
|
266
|
-
const carriedUi = edge.data?.ui;
|
|
267
|
-
const ui = {
|
|
268
|
-
...carriedUi,
|
|
269
|
-
...waypoints && { waypoints: untranslateWaypoints(waypoints, offset) },
|
|
270
|
-
...routedWaypoints && { routedWaypoints: untranslateWaypoints(routedWaypoints, offset) }
|
|
271
|
-
};
|
|
272
|
-
return {
|
|
273
|
-
id: edge.id,
|
|
274
|
-
sourceNodeId: edge.source,
|
|
275
|
-
sourcePort: edge.sourceHandle || "default",
|
|
276
|
-
targetNodeId: edge.target,
|
|
277
|
-
targetPort: edge.targetHandle || "default",
|
|
278
|
-
...Object.keys(edgeData).length > 0 && { data: edgeData },
|
|
279
|
-
...Object.keys(ui).length > 0 && { ui }
|
|
280
|
-
};
|
|
281
|
-
}
|
|
282
|
-
function instanceToEdge(instance, type = "default", offset = NO_OFFSET) {
|
|
283
|
-
const { waypoints: _manual, routedWaypoints: _routed, ...carriedUi } = instance.ui ?? {};
|
|
284
|
-
const route = getManualWaypoints(instance.ui);
|
|
285
|
-
const routedRoute = getRoutedWaypoints(instance.ui);
|
|
261
|
+
function instanceToEdge(instance2, type = "default", offset = NO_OFFSET) {
|
|
262
|
+
const { waypoints: _manual, routedWaypoints: _routed, ...carriedUi } = instance2.ui ?? {};
|
|
263
|
+
const route = getManualWaypoints(instance2.ui);
|
|
264
|
+
const routedRoute = getRoutedWaypoints(instance2.ui);
|
|
286
265
|
const hasCarriedUi = Object.keys(carriedUi).length > 0;
|
|
287
266
|
return {
|
|
288
|
-
id:
|
|
289
|
-
source:
|
|
290
|
-
sourceHandle:
|
|
291
|
-
target:
|
|
292
|
-
targetHandle:
|
|
267
|
+
id: instance2.id,
|
|
268
|
+
source: instance2.sourceNodeId,
|
|
269
|
+
sourceHandle: instance2.sourcePort,
|
|
270
|
+
target: instance2.targetNodeId,
|
|
271
|
+
targetHandle: instance2.targetPort,
|
|
293
272
|
type,
|
|
294
|
-
...(
|
|
273
|
+
...(instance2.data || route || routedRoute || hasCarriedUi) && {
|
|
295
274
|
data: {
|
|
296
|
-
...
|
|
275
|
+
...instance2.data,
|
|
297
276
|
...hasCarriedUi && { ui: carriedUi },
|
|
298
277
|
...route && { waypoints: translateWaypoints(route, offset) },
|
|
299
278
|
...routedRoute && { routedWaypoints: translateWaypoints(routedRoute, offset) }
|
|
@@ -301,78 +280,43 @@ function instanceToEdge(instance, type = "default", offset = NO_OFFSET) {
|
|
|
301
280
|
}
|
|
302
281
|
};
|
|
303
282
|
}
|
|
304
|
-
function
|
|
305
|
-
const
|
|
306
|
-
const
|
|
307
|
-
const
|
|
308
|
-
const
|
|
309
|
-
const width = node.width ?? node.measured?.width;
|
|
310
|
-
const height = node.height ?? node.measured?.height;
|
|
311
|
-
const variableUpdates = node.data?.variableUpdates;
|
|
312
|
-
const parentId = node.data?.parentId;
|
|
313
|
-
const allOutputs = node.data?.outputs;
|
|
314
|
-
const instanceOutputs = allOutputs ? Object.fromEntries(Object.entries(allOutputs).filter(([, def]) => def?.source != null)) : undefined;
|
|
283
|
+
function instanceToNode(instance2, offset = { x: 0, y: 0 }) {
|
|
284
|
+
const position = instance2.ui?.position ?? { x: 0, y: 0 };
|
|
285
|
+
const color = instance2.inputs?.color;
|
|
286
|
+
const content = instance2.inputs?.content;
|
|
287
|
+
const variableUpdates = instance2.variableUpdates;
|
|
315
288
|
return {
|
|
316
|
-
id:
|
|
317
|
-
type:
|
|
318
|
-
typeVersion,
|
|
319
|
-
ui: {
|
|
320
|
-
...ui,
|
|
321
|
-
position: {
|
|
322
|
-
x: (node.position?.x ?? 0) - offset.x,
|
|
323
|
-
y: (node.position?.y ?? 0) - offset.y
|
|
324
|
-
},
|
|
325
|
-
...width && height ? { size: { width, height } } : {}
|
|
326
|
-
},
|
|
327
|
-
display,
|
|
328
|
-
inputs: {
|
|
329
|
-
...inputs,
|
|
330
|
-
...node.data?.color !== undefined && { color: node.data.color },
|
|
331
|
-
...node.data?.content !== undefined && { content: node.data.content }
|
|
332
|
-
},
|
|
333
|
-
...instanceOutputs && Object.keys(instanceOutputs).length > 0 && { outputs: instanceOutputs },
|
|
334
|
-
...variableUpdates && variableUpdates.length > 0 && supportsVariableUpdates(node.data?.type ?? node.type) && { variableUpdates },
|
|
335
|
-
...parentId && { parentId }
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
function instanceToNode(instance, offset = { x: 0, y: 0 }) {
|
|
339
|
-
const position = instance.ui?.position ?? { x: 0, y: 0 };
|
|
340
|
-
const color = instance.inputs?.color;
|
|
341
|
-
const content = instance.inputs?.content;
|
|
342
|
-
const variableUpdates = instance.variableUpdates;
|
|
343
|
-
return {
|
|
344
|
-
id: instance.id,
|
|
345
|
-
type: instance.type,
|
|
289
|
+
id: instance2.id,
|
|
290
|
+
type: instance2.type,
|
|
346
291
|
position: {
|
|
347
292
|
x: position.x + offset.x,
|
|
348
293
|
y: position.y + offset.y
|
|
349
294
|
},
|
|
350
|
-
...
|
|
351
|
-
width:
|
|
352
|
-
height:
|
|
295
|
+
...instance2.ui?.size && {
|
|
296
|
+
width: instance2.ui.size.width,
|
|
297
|
+
height: instance2.ui.size.height
|
|
353
298
|
},
|
|
354
299
|
data: {
|
|
355
|
-
type:
|
|
356
|
-
typeVersion:
|
|
357
|
-
display:
|
|
358
|
-
inputs:
|
|
359
|
-
ui:
|
|
300
|
+
type: instance2.type,
|
|
301
|
+
typeVersion: instance2.typeVersion,
|
|
302
|
+
display: instance2.display || {},
|
|
303
|
+
inputs: instance2.inputs || {},
|
|
304
|
+
ui: instance2.ui || {},
|
|
360
305
|
...color !== undefined && { color },
|
|
361
306
|
...content !== undefined && { content },
|
|
362
307
|
...variableUpdates && variableUpdates.length > 0 && { variableUpdates },
|
|
363
|
-
...
|
|
308
|
+
...instance2.parentId && { parentId: instance2.parentId },
|
|
309
|
+
...isNodeUniqueId2(instance2.uniqueId) && { uniqueId: instance2.uniqueId }
|
|
364
310
|
}
|
|
365
311
|
};
|
|
366
312
|
}
|
|
367
313
|
init_esm_shims();
|
|
368
314
|
init_esm_shims();
|
|
315
|
+
init_esm_shims();
|
|
369
316
|
var SCHEME = "uip-sw-local";
|
|
370
317
|
var SCHEME_PREFIX = `${SCHEME}://`;
|
|
371
318
|
var FOLDER_AUTHORITY = "Folder";
|
|
372
319
|
var FOLDER_PREFIX = `${SCHEME_PREFIX}${FOLDER_AUTHORITY}/`;
|
|
373
|
-
function isLocalSolutionUri(uri) {
|
|
374
|
-
return uri.startsWith(SCHEME_PREFIX);
|
|
375
|
-
}
|
|
376
320
|
init_esm_shims();
|
|
377
321
|
init_esm_shims();
|
|
378
322
|
init_esm_shims();
|
|
@@ -381,37 +325,112 @@ init_esm_shims();
|
|
|
381
325
|
init_esm_shims();
|
|
382
326
|
init_esm_shims();
|
|
383
327
|
init_esm_shims();
|
|
384
|
-
function createBinding(options) {
|
|
385
|
-
return {
|
|
386
|
-
id: generateNextId("b", 8),
|
|
387
|
-
name: options.name,
|
|
388
|
-
type: "string",
|
|
389
|
-
resource: options.resource,
|
|
390
|
-
resourceKey: options.resourceKey ?? options.resource,
|
|
391
|
-
...options.value && { default: options.value },
|
|
392
|
-
...options.propertyAttribute && { propertyAttribute: options.propertyAttribute },
|
|
393
|
-
...options.resourceSubType && { resourceSubType: options.resourceSubType }
|
|
394
|
-
};
|
|
395
|
-
}
|
|
396
|
-
function createBindingsFromManifest(manifest) {
|
|
397
|
-
const model = manifest.model;
|
|
398
|
-
const bindingsTemplate = model?.bindings;
|
|
399
|
-
if (!bindingsTemplate?.values)
|
|
400
|
-
return [];
|
|
401
|
-
return bindingsTemplate.values.map((v) => createBinding({
|
|
402
|
-
name: v.name,
|
|
403
|
-
value: v.default ?? "",
|
|
404
|
-
resource: bindingsTemplate.resource,
|
|
405
|
-
resourceKey: bindingsTemplate.resourceKey,
|
|
406
|
-
propertyAttribute: v.propertyAttribute,
|
|
407
|
-
resourceSubType: bindingsTemplate.resourceSubType
|
|
408
|
-
}));
|
|
409
|
-
}
|
|
410
328
|
init_esm_shims();
|
|
329
|
+
var t = instance.getFixedT(null, SERVICES_NAMESPACE);
|
|
411
330
|
init_esm_shims();
|
|
412
|
-
var DEFAULT_TRIGGER_POSITION = { x: 256, y: 144 };
|
|
413
331
|
init_esm_shims();
|
|
414
332
|
init_esm_shims();
|
|
333
|
+
init_esm_shims();
|
|
334
|
+
init_esm_shims();
|
|
335
|
+
init_esm_shims();
|
|
336
|
+
init_esm_shims();
|
|
337
|
+
init_esm_shims();
|
|
338
|
+
function inferSchemaFromValue2(value) {
|
|
339
|
+
if (value === null || value === undefined) {
|
|
340
|
+
return { type: "null" };
|
|
341
|
+
}
|
|
342
|
+
switch (typeof value) {
|
|
343
|
+
case "string":
|
|
344
|
+
return { type: "string" };
|
|
345
|
+
case "boolean":
|
|
346
|
+
return { type: "boolean" };
|
|
347
|
+
case "number":
|
|
348
|
+
return Number.isInteger(value) ? { type: "integer" } : { type: "number" };
|
|
349
|
+
}
|
|
350
|
+
if (Array.isArray(value)) {
|
|
351
|
+
return inferArraySchema(value);
|
|
352
|
+
}
|
|
353
|
+
if (typeof value === "object") {
|
|
354
|
+
return inferObjectSchema(value);
|
|
355
|
+
}
|
|
356
|
+
return {};
|
|
357
|
+
}
|
|
358
|
+
function inferArraySchema(value) {
|
|
359
|
+
if (value.length === 0) {
|
|
360
|
+
return { type: "array" };
|
|
361
|
+
}
|
|
362
|
+
const itemSchemas = value.map(inferSchemaFromValue2);
|
|
363
|
+
const items = mergeSchemas(itemSchemas);
|
|
364
|
+
return { type: "array", items };
|
|
365
|
+
}
|
|
366
|
+
function inferObjectSchema(value) {
|
|
367
|
+
const properties = {};
|
|
368
|
+
const required = [];
|
|
369
|
+
for (const [key, val] of Object.entries(value)) {
|
|
370
|
+
if (isUnsafeKey2(key))
|
|
371
|
+
continue;
|
|
372
|
+
properties[key] = inferSchemaFromValue2(val);
|
|
373
|
+
if (val !== null && val !== undefined) {
|
|
374
|
+
required.push(key);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
const schema = { type: "object", properties, additionalProperties: true };
|
|
378
|
+
if (required.length > 0) {
|
|
379
|
+
schema.required = required;
|
|
380
|
+
}
|
|
381
|
+
return schema;
|
|
382
|
+
}
|
|
383
|
+
function mergeSchemas(schemas) {
|
|
384
|
+
if (schemas.length === 0)
|
|
385
|
+
return {};
|
|
386
|
+
if (schemas.length === 1)
|
|
387
|
+
return schemas[0];
|
|
388
|
+
const types = new Set(schemas.map((s) => s.type).filter(Boolean));
|
|
389
|
+
if (types.size === 1) {
|
|
390
|
+
const type = [...types][0];
|
|
391
|
+
if (type !== "object" && type !== "array") {
|
|
392
|
+
return { type };
|
|
393
|
+
}
|
|
394
|
+
if (type === "object") {
|
|
395
|
+
const allProperties = {};
|
|
396
|
+
for (const schema of schemas) {
|
|
397
|
+
if (schema.properties) {
|
|
398
|
+
for (const [key, propSchema] of Object.entries(schema.properties)) {
|
|
399
|
+
if (!allProperties[key])
|
|
400
|
+
allProperties[key] = [];
|
|
401
|
+
allProperties[key].push(propSchema);
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
const mergedProperties = {};
|
|
406
|
+
for (const [key, propSchemas] of Object.entries(allProperties)) {
|
|
407
|
+
mergedProperties[key] = mergeSchemas(propSchemas);
|
|
408
|
+
}
|
|
409
|
+
const required = Object.keys(allProperties).filter((key) => allProperties[key].length === schemas.length);
|
|
410
|
+
const result = { type: "object", properties: mergedProperties, additionalProperties: true };
|
|
411
|
+
if (required.length > 0) {
|
|
412
|
+
result.required = required;
|
|
413
|
+
}
|
|
414
|
+
return result;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
const unique = deduplicateSchemas(schemas);
|
|
418
|
+
if (unique.length === 1)
|
|
419
|
+
return unique[0];
|
|
420
|
+
return { anyOf: unique };
|
|
421
|
+
}
|
|
422
|
+
function deduplicateSchemas(schemas) {
|
|
423
|
+
const seen = /* @__PURE__ */ new Set;
|
|
424
|
+
const result = [];
|
|
425
|
+
for (const schema of schemas) {
|
|
426
|
+
const key = JSON.stringify(schema);
|
|
427
|
+
if (!seen.has(key)) {
|
|
428
|
+
seen.add(key);
|
|
429
|
+
result.push(schema);
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
return result;
|
|
433
|
+
}
|
|
415
434
|
function buildAgentOutputEntry(v) {
|
|
416
435
|
const type = v.type || "string";
|
|
417
436
|
const entry = { type, description: v.description };
|
|
@@ -431,7 +450,7 @@ function buildAgentOutputEntry(v) {
|
|
|
431
450
|
return entry;
|
|
432
451
|
}
|
|
433
452
|
function mergeAgentOutputDefinition(nodeType, inputs, baseOutputDef) {
|
|
434
|
-
if (!nodeType || !
|
|
453
|
+
if (!nodeType || !isAgentNodeType2(nodeType))
|
|
435
454
|
return baseOutputDef;
|
|
436
455
|
const agentOutputVars = inputs?.agentOutputVariables;
|
|
437
456
|
if (!agentOutputVars || agentOutputVars.length === 0)
|
|
@@ -440,7 +459,7 @@ function mergeAgentOutputDefinition(nodeType, inputs, baseOutputDef) {
|
|
|
440
459
|
for (const v of agentOutputVars) {
|
|
441
460
|
outputProperties[v.id] = buildAgentOutputEntry(v);
|
|
442
461
|
}
|
|
443
|
-
const baseOutput =
|
|
462
|
+
const baseOutput = isConversationalOrVoiceAgentNodeType2(nodeType) ? baseOutputDef?.output : undefined;
|
|
444
463
|
const dynamicOutput = {
|
|
445
464
|
output: {
|
|
446
465
|
...baseOutput,
|
|
@@ -453,9 +472,9 @@ function mergeAgentOutputDefinition(nodeType, inputs, baseOutputDef) {
|
|
|
453
472
|
};
|
|
454
473
|
return { ...baseOutputDef, ...dynamicOutput };
|
|
455
474
|
}
|
|
456
|
-
var READ_ENTITY_NODE_TYPE =
|
|
457
|
-
var UPDATE_ENTITY_NODE_TYPE =
|
|
458
|
-
var CREATE_ENTITY_NODE_TYPE =
|
|
475
|
+
var READ_ENTITY_NODE_TYPE = NodeType2.DataFabricRead;
|
|
476
|
+
var UPDATE_ENTITY_NODE_TYPE = NodeType2.DataFabricUpdate;
|
|
477
|
+
var CREATE_ENTITY_NODE_TYPE = NodeType2.DataFabricCreate;
|
|
459
478
|
var DATA_FABRIC_SCHEMA_NODE_TYPES = /* @__PURE__ */ new Set([READ_ENTITY_NODE_TYPE, UPDATE_ENTITY_NODE_TYPE, CREATE_ENTITY_NODE_TYPE]);
|
|
460
479
|
function mergeReadEntityOutputDefinition(nodeType, inputs, baseOutputDef) {
|
|
461
480
|
if (!nodeType || !DATA_FABRIC_SCHEMA_NODE_TYPES.has(nodeType))
|
|
@@ -486,14 +505,38 @@ function readEntityRecordSchema(schema) {
|
|
|
486
505
|
return schema.items;
|
|
487
506
|
return schema;
|
|
488
507
|
}
|
|
508
|
+
function mergeExtractTaxonomyOutputDefinition(nodeType, inputs, baseOutputDef) {
|
|
509
|
+
if (nodeType !== DYNAMIC_EXTRACT_NODE_TYPE2)
|
|
510
|
+
return baseOutputDef;
|
|
511
|
+
const taxonomy = readExtractionOutputSchema2(inputs?.schemaDocument);
|
|
512
|
+
if (!taxonomy)
|
|
513
|
+
return baseOutputDef;
|
|
514
|
+
const output = baseOutputDef?.output;
|
|
515
|
+
if (!output)
|
|
516
|
+
return baseOutputDef;
|
|
517
|
+
const nested = isPlainObject2(output.schema) ? output.schema : undefined;
|
|
518
|
+
const shape = nested ?? output;
|
|
519
|
+
const declared = shape.properties?.taxonomy;
|
|
520
|
+
if (!declared)
|
|
521
|
+
return baseOutputDef;
|
|
522
|
+
const derived = {
|
|
523
|
+
...inferSchemaFromValue2(taxonomy),
|
|
524
|
+
...declared.description !== undefined && { description: declared.description }
|
|
525
|
+
};
|
|
526
|
+
const reshaped = { ...shape, properties: { ...shape.properties, taxonomy: derived } };
|
|
527
|
+
return {
|
|
528
|
+
...baseOutputDef,
|
|
529
|
+
output: nested ? { ...output, schema: reshaped } : reshaped
|
|
530
|
+
};
|
|
531
|
+
}
|
|
489
532
|
function resolveInstanceOutputDefinition(nodeType, inputs, baseOutputDef) {
|
|
490
|
-
return mergeReadEntityOutputDefinition(nodeType, inputs, mergeAgentOutputDefinition(nodeType, inputs, baseOutputDef));
|
|
533
|
+
return mergeExtractTaxonomyOutputDefinition(nodeType, inputs, mergeReadEntityOutputDefinition(nodeType, inputs, mergeAgentOutputDefinition(nodeType, inputs, baseOutputDef)));
|
|
491
534
|
}
|
|
492
|
-
var SCRIPT_NODE_TYPE =
|
|
535
|
+
var SCRIPT_NODE_TYPE = NodeType2.ActionScript;
|
|
493
536
|
var FILE_ID_KEY = "ID";
|
|
494
537
|
var FILE_PROBE_TYPE = `{ ${FILE_ID_KEY}?: any }`;
|
|
495
538
|
var FILE_ARRAY_PROBE_TYPE = `Array<${FILE_PROBE_TYPE}>`;
|
|
496
|
-
function
|
|
539
|
+
function isPlainObject22(value) {
|
|
497
540
|
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
498
541
|
}
|
|
499
542
|
function mergeManifestOutputOverInstance(instanceValue, manifestValue) {
|
|
@@ -501,7 +544,7 @@ function mergeManifestOutputOverInstance(instanceValue, manifestValue) {
|
|
|
501
544
|
return instanceValue;
|
|
502
545
|
if (instanceValue === undefined)
|
|
503
546
|
return manifestValue;
|
|
504
|
-
return
|
|
547
|
+
return isPlainObject22(instanceValue) && isPlainObject22(manifestValue) ? { ...instanceValue, ...manifestValue } : manifestValue;
|
|
505
548
|
}
|
|
506
549
|
function buildEffectiveNodeOutputs(args) {
|
|
507
550
|
const manifestOutputs = args.manifestOutputs ?? {};
|
|
@@ -514,11 +557,17 @@ function buildEffectiveNodeOutputs(args) {
|
|
|
514
557
|
if (manifestDefinesOutputs && !(outputId in manifestOutputs))
|
|
515
558
|
continue;
|
|
516
559
|
const declared = manifestOutputs[outputId];
|
|
517
|
-
const manifestOutput =
|
|
560
|
+
const manifestOutput = isPlainObject22(declared) ? declared : undefined;
|
|
561
|
+
const manifestShape = variable.schema ? { schema: variable.schema } : {
|
|
562
|
+
...manifestOutput?.schema && { schema: manifestOutput.schema },
|
|
563
|
+
...manifestOutput?.properties && { properties: manifestOutput.properties },
|
|
564
|
+
...manifestOutput?.items && { items: manifestOutput.items },
|
|
565
|
+
...manifestOutput?.required && { required: manifestOutput.required }
|
|
566
|
+
};
|
|
518
567
|
nodeVariableOutputs[outputId] = {
|
|
519
568
|
type: variable.type,
|
|
520
569
|
...variable.description && { description: variable.description },
|
|
521
|
-
...
|
|
570
|
+
...manifestShape,
|
|
522
571
|
...manifestOutput?.scope && { scope: manifestOutput.scope },
|
|
523
572
|
...manifestOutput?.source && { source: manifestOutput.source },
|
|
524
573
|
...manifestOutput?.var && { var: manifestOutput.var }
|
|
@@ -598,14 +647,14 @@ function buildSubflowPassThroughOutputDefinition(entry, manifestMap, options = {
|
|
|
598
647
|
if (entry.nodes.length === 0)
|
|
599
648
|
return {};
|
|
600
649
|
const terminalNodes = findTerminalNodes(entry.nodes, entry.edges, (n) => {
|
|
601
|
-
const manifest = manifestMap.get(
|
|
650
|
+
const manifest = manifestMap.get(getManifestKey2(n.type, n.typeVersion));
|
|
602
651
|
return manifest?.model?.type === "bpmn:StartEvent";
|
|
603
652
|
});
|
|
604
653
|
const terminalsWithOutputs = terminalNodes.map((n) => {
|
|
605
|
-
const manifest = manifestMap.get(
|
|
654
|
+
const manifest = manifestMap.get(getManifestKey2(n.type, n.typeVersion));
|
|
606
655
|
const manifestOutputDef = manifest?.outputDefinition;
|
|
607
656
|
let outputDef;
|
|
608
|
-
if (
|
|
657
|
+
if (isSubflowNodeType2(n.type)) {
|
|
609
658
|
outputDef = nodeOutputsMap?.get(n.id);
|
|
610
659
|
if ((!outputDef || Object.keys(outputDef).length === 0) && subflows) {
|
|
611
660
|
outputDef = computeSubflowEffectiveOutputDef(n.id, subflows, manifestMap);
|
|
@@ -620,7 +669,7 @@ function buildSubflowPassThroughOutputDefinition(entry, manifestMap, options = {
|
|
|
620
669
|
if (!outputDef || Object.keys(outputDef).length === 0)
|
|
621
670
|
return null;
|
|
622
671
|
return { node: n, outputDef };
|
|
623
|
-
}).filter((
|
|
672
|
+
}).filter((t22) => t22 !== null);
|
|
624
673
|
if (terminalsWithOutputs.length === 0)
|
|
625
674
|
return {};
|
|
626
675
|
const allKeys = /* @__PURE__ */ new Set;
|
|
@@ -633,17 +682,17 @@ function buildSubflowPassThroughOutputDefinition(entry, manifestMap, options = {
|
|
|
633
682
|
if (terminalsWithOutputs.length === 1) {
|
|
634
683
|
const { outputDef } = terminalsWithOutputs[0];
|
|
635
684
|
for (const key of allKeys) {
|
|
636
|
-
if (
|
|
685
|
+
if (isUnsafeKey2(key))
|
|
637
686
|
continue;
|
|
638
687
|
result[key] = toSchemaType(outputDef[key]);
|
|
639
688
|
}
|
|
640
689
|
} else {
|
|
641
690
|
for (const key of allKeys) {
|
|
642
|
-
if (
|
|
691
|
+
if (isUnsafeKey2(key))
|
|
643
692
|
continue;
|
|
644
693
|
const properties = {};
|
|
645
694
|
for (const { node, outputDef } of terminalsWithOutputs) {
|
|
646
|
-
if (
|
|
695
|
+
if (isUnsafeKey2(node.id))
|
|
647
696
|
continue;
|
|
648
697
|
if (key in outputDef) {
|
|
649
698
|
properties[node.id] = toSchemaType(outputDef[key]);
|
|
@@ -672,19 +721,19 @@ function computeSubflowEffectiveOutputDef(subflowNodeId, subflows, manifestMap,
|
|
|
672
721
|
return buildSubflowOutputDefinition(allGlobals);
|
|
673
722
|
}
|
|
674
723
|
const terminalNodes = findTerminalNodes(entry.nodes, entry.edges, (n) => {
|
|
675
|
-
const manifest = manifestMap.get(
|
|
724
|
+
const manifest = manifestMap.get(getManifestKey2(n.type, n.typeVersion));
|
|
676
725
|
return manifest?.model?.type === "bpmn:StartEvent";
|
|
677
726
|
});
|
|
678
727
|
const outputKeys = {};
|
|
679
728
|
for (const n of terminalNodes) {
|
|
680
|
-
const manifest = manifestMap.get(
|
|
681
|
-
let outputDef =
|
|
729
|
+
const manifest = manifestMap.get(getManifestKey2(n.type, n.typeVersion));
|
|
730
|
+
let outputDef = isSubflowNodeType2(n.type) ? computeSubflowEffectiveOutputDef(n.id, subflows, manifestMap, seen) : undefined;
|
|
682
731
|
if (!outputDef || Object.keys(outputDef).length === 0) {
|
|
683
732
|
outputDef = manifest?.outputDefinition;
|
|
684
733
|
}
|
|
685
734
|
if (outputDef) {
|
|
686
735
|
for (const [key, val] of Object.entries(outputDef)) {
|
|
687
|
-
if (
|
|
736
|
+
if (isUnsafeKey2(key))
|
|
688
737
|
continue;
|
|
689
738
|
outputKeys[key] = val;
|
|
690
739
|
}
|
|
@@ -694,6 +743,27 @@ function computeSubflowEffectiveOutputDef(subflowNodeId, subflows, manifestMap,
|
|
|
694
743
|
}
|
|
695
744
|
init_esm_shims();
|
|
696
745
|
init_esm_shims();
|
|
746
|
+
var agentToolConnectorHttpRequestProcessor = (definition, ctx) => {
|
|
747
|
+
const connectorKey = getAgentToolConnectorHttpRequestKey(definition);
|
|
748
|
+
if (!connectorKey)
|
|
749
|
+
return;
|
|
750
|
+
const builtin = ctx.getManifest(NodeType2.AgentToolBuiltinHttpRequest);
|
|
751
|
+
if (!builtin)
|
|
752
|
+
return;
|
|
753
|
+
return {
|
|
754
|
+
nodeType: builtin.nodeType,
|
|
755
|
+
manifest: {
|
|
756
|
+
...builtin,
|
|
757
|
+
display: {
|
|
758
|
+
...builtin.display,
|
|
759
|
+
icon: definition.display?.icon ?? builtin.display?.icon
|
|
760
|
+
},
|
|
761
|
+
inputDefaults: { ...builtin.inputDefaults, detail: buildConnectorHttpRequestDetail(connectorKey) }
|
|
762
|
+
},
|
|
763
|
+
normalizeInputs: (inputs) => ({ ...inputs, detail: normalizeConnectorHttpRequestDetail(inputs.detail, connectorKey) })
|
|
764
|
+
};
|
|
765
|
+
};
|
|
766
|
+
init_esm_shims();
|
|
697
767
|
var connectorHttpRequestProcessor = (definition, ctx) => {
|
|
698
768
|
const connectorKey = getConnectorHttpRequestKey(definition);
|
|
699
769
|
if (!connectorKey)
|
|
@@ -716,6 +786,126 @@ var connectorHttpRequestProcessor = (definition, ctx) => {
|
|
|
716
786
|
init_esm_shims();
|
|
717
787
|
init_esm_shims();
|
|
718
788
|
init_esm_shims();
|
|
789
|
+
var SUPPORTED_VENDORS = /* @__PURE__ */ new Set(["OpenAi", "VertexAi", "AwsBedrock", "NativeOpenAi"]);
|
|
790
|
+
var SUPPORTED_API_FLAVORS = /* @__PURE__ */ new Set(["OpenAiChatCompletions", "GeminiGenerateContent", "AwsBedrockInvoke", "AnthropicMessages"]);
|
|
791
|
+
function isSubmittable(row) {
|
|
792
|
+
if (row.isBlockedByPolicy === true)
|
|
793
|
+
return false;
|
|
794
|
+
if (row.vendor != null && !SUPPORTED_VENDORS.has(row.vendor))
|
|
795
|
+
return false;
|
|
796
|
+
if (row.apiFlavor != null && !SUPPORTED_API_FLAVORS.has(row.apiFlavor))
|
|
797
|
+
return false;
|
|
798
|
+
return true;
|
|
799
|
+
}
|
|
800
|
+
function isAttributionModelReachable(attributionCatalogue) {
|
|
801
|
+
if (attributionCatalogue === null)
|
|
802
|
+
return null;
|
|
803
|
+
return attributionCatalogue.some(isSubmittable);
|
|
804
|
+
}
|
|
805
|
+
init_esm_shims();
|
|
806
|
+
init_esm_shims();
|
|
807
|
+
init_esm_shims();
|
|
808
|
+
init_esm_shims();
|
|
809
|
+
init_esm_shims();
|
|
810
|
+
var DEFAULT_MODEL_CONFIG = {
|
|
811
|
+
kind: "gpt_ixp",
|
|
812
|
+
configuration_mode: "inline",
|
|
813
|
+
model_version: "gemini_2_5_flash",
|
|
814
|
+
execution_mode: "standard",
|
|
815
|
+
attribution_method: "word_ids",
|
|
816
|
+
attribution_model_version: "gemini-2.5-flash",
|
|
817
|
+
input_config: "none",
|
|
818
|
+
language_support: "latin",
|
|
819
|
+
layout_parsing: "none",
|
|
820
|
+
layout_model_version: null,
|
|
821
|
+
system_prompt_override: null,
|
|
822
|
+
frequency_penalty: null,
|
|
823
|
+
temperature: null,
|
|
824
|
+
top_p: null,
|
|
825
|
+
seed: null,
|
|
826
|
+
experimentalSettings: null,
|
|
827
|
+
flags: ["append_taxonomy_descriptions", "append_type_descriptions", "append_group_descriptions", "append_field_descriptions"]
|
|
828
|
+
};
|
|
829
|
+
var HELIX_3_0 = {
|
|
830
|
+
key: "helix_3_0",
|
|
831
|
+
label: "Helix 3.0",
|
|
832
|
+
modelFamily: "Helix",
|
|
833
|
+
shortVersion: "3.0",
|
|
834
|
+
isPreview: true,
|
|
835
|
+
isDefaultForFamily: true,
|
|
836
|
+
isDataResidencyCompliant: true
|
|
837
|
+
};
|
|
838
|
+
var EXTRACTION_MODELS = [
|
|
839
|
+
{
|
|
840
|
+
key: "gpt_4o_2024_05_13",
|
|
841
|
+
label: "gpt-4o",
|
|
842
|
+
modelFamily: "GPT",
|
|
843
|
+
shortVersion: "gpt-4o",
|
|
844
|
+
isPreview: false,
|
|
845
|
+
isDefaultForFamily: true,
|
|
846
|
+
isDataResidencyCompliant: true
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
key: "gpt_5_1_2025_11_13",
|
|
850
|
+
label: "gpt-5.1-2025-11-13",
|
|
851
|
+
modelFamily: "GPT",
|
|
852
|
+
shortVersion: "gpt-5.1-2025-11-13",
|
|
853
|
+
isPreview: true,
|
|
854
|
+
isDefaultForFamily: false,
|
|
855
|
+
isDataResidencyCompliant: false
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
key: "gpt_5_4_2026_03_05",
|
|
859
|
+
label: "gpt-5.4-2026-03-05",
|
|
860
|
+
modelFamily: "GPT",
|
|
861
|
+
shortVersion: "gpt-5.4-2026-03-05",
|
|
862
|
+
isPreview: true,
|
|
863
|
+
isDefaultForFamily: false,
|
|
864
|
+
isDataResidencyCompliant: false
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
key: "gemini_2_5_flash",
|
|
868
|
+
label: "Gemini 2.5 Flash",
|
|
869
|
+
modelFamily: "Gemini",
|
|
870
|
+
shortVersion: "2.5 Flash",
|
|
871
|
+
isPreview: false,
|
|
872
|
+
isDefaultForFamily: true,
|
|
873
|
+
isDataResidencyCompliant: true
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
key: "gemini_2_5_pro",
|
|
877
|
+
label: "Gemini 2.5 Pro",
|
|
878
|
+
modelFamily: "Gemini",
|
|
879
|
+
shortVersion: "2.5 Pro",
|
|
880
|
+
isPreview: true,
|
|
881
|
+
isDefaultForFamily: false,
|
|
882
|
+
isDataResidencyCompliant: false
|
|
883
|
+
},
|
|
884
|
+
{
|
|
885
|
+
key: "gemini_3_1_pro_preview",
|
|
886
|
+
label: "Gemini 3.1 Pro Preview",
|
|
887
|
+
modelFamily: "Gemini",
|
|
888
|
+
shortVersion: "3.1 Pro Preview",
|
|
889
|
+
isPreview: true,
|
|
890
|
+
isDefaultForFamily: false,
|
|
891
|
+
isDataResidencyCompliant: false
|
|
892
|
+
},
|
|
893
|
+
{
|
|
894
|
+
key: "gemini_3_1_flash_lite_preview",
|
|
895
|
+
label: "Gemini 3.1 Flash Lite",
|
|
896
|
+
modelFamily: "Gemini",
|
|
897
|
+
shortVersion: "3.1 Flash Lite",
|
|
898
|
+
isPreview: true,
|
|
899
|
+
isDefaultForFamily: false,
|
|
900
|
+
isDataResidencyCompliant: false
|
|
901
|
+
},
|
|
902
|
+
HELIX_3_0
|
|
903
|
+
];
|
|
904
|
+
var MODEL_FAMILIES = [...new Set(EXTRACTION_MODELS.map((o) => o.modelFamily))];
|
|
905
|
+
var DEFAULT_MODEL_FAMILY = EXTRACTION_MODELS.find((o) => o.key === DEFAULT_MODEL_CONFIG.model_version)?.modelFamily ?? MODEL_FAMILIES[0];
|
|
906
|
+
var defaultLanguageSupport = (ocrEngines) => ocrEngines?.some((engine) => engine.type === "auto") ? "auto" : "latin";
|
|
907
|
+
init_esm_shims();
|
|
908
|
+
init_esm_shims();
|
|
719
909
|
var TaxonomyFieldKindEnum = {
|
|
720
910
|
FieldGroup: "field_group",
|
|
721
911
|
Date: "Date",
|
|
@@ -764,15 +954,26 @@ var DEFAULT_FIELD_TYPES = SELECTABLE_FIELD_KINDS.filter((kind) => kind !== Taxon
|
|
|
764
954
|
}));
|
|
765
955
|
function getDefaultExtractionSchema() {
|
|
766
956
|
try {
|
|
767
|
-
return migrateLegacySchemaDocument({
|
|
957
|
+
return withCalendarDate(migrateLegacySchemaDocument({
|
|
768
958
|
taxonomy: { overallInstructions: "", lastModified: 0, fieldGroups: [] },
|
|
769
959
|
fieldTypes: DEFAULT_FIELD_TYPES,
|
|
770
960
|
businessChecks: []
|
|
771
|
-
});
|
|
961
|
+
}));
|
|
772
962
|
} catch {
|
|
773
963
|
return structuredClone(emptyExtractionSchema);
|
|
774
964
|
}
|
|
775
965
|
}
|
|
966
|
+
var DATE_FIELD_TYPE_ID = defaultFieldTypeId(TaxonomyFieldKindEnum.Date);
|
|
967
|
+
function withCalendarDate(schema) {
|
|
968
|
+
const definitions = schema.outputSchema.$defs;
|
|
969
|
+
const date = definitions?.[DATE_FIELD_TYPE_ID];
|
|
970
|
+
if (date?.format !== "timestamp")
|
|
971
|
+
return schema;
|
|
972
|
+
return {
|
|
973
|
+
...schema,
|
|
974
|
+
outputSchema: { ...schema.outputSchema, $defs: { ...definitions, [DATE_FIELD_TYPE_ID]: { ...date, format: "date" } } }
|
|
975
|
+
};
|
|
976
|
+
}
|
|
776
977
|
function toModelConfig(value) {
|
|
777
978
|
if (typeof value !== "object" || value === null || Array.isArray(value))
|
|
778
979
|
return;
|
|
@@ -784,6 +985,11 @@ function toModelConfig(value) {
|
|
|
784
985
|
execution_mode: str("execution_mode"),
|
|
785
986
|
attribution_method: str("attribution_method"),
|
|
786
987
|
input_config: str("input_config"),
|
|
988
|
+
language_support: str("language_support"),
|
|
989
|
+
layout_parsing: str("layout_parsing"),
|
|
990
|
+
layout_engine: str("layout_engine"),
|
|
991
|
+
layout_model_version: str("layout_model_version"),
|
|
992
|
+
attribution_model_version: str("attribution_model_version"),
|
|
787
993
|
system_prompt_override: str("system_prompt_override"),
|
|
788
994
|
frequency_penalty: num("frequency_penalty"),
|
|
789
995
|
temperature: num("temperature"),
|
|
@@ -792,24 +998,72 @@ function toModelConfig(value) {
|
|
|
792
998
|
flags: Array.isArray(raw.flags) ? raw.flags.filter((flag) => typeof flag === "string") : undefined
|
|
793
999
|
};
|
|
794
1000
|
}
|
|
795
|
-
|
|
796
|
-
if (
|
|
1001
|
+
function withDiscoveredLanguageSupport(modelConfig, ctx) {
|
|
1002
|
+
if (typeof modelConfig !== "object" || modelConfig === null || Array.isArray(modelConfig))
|
|
1003
|
+
return modelConfig;
|
|
1004
|
+
if (modelConfig.language_support !== "latin")
|
|
1005
|
+
return modelConfig;
|
|
1006
|
+
const languageSupport = defaultLanguageSupport(ctx.ocrEngines ?? null);
|
|
1007
|
+
return languageSupport === "latin" ? modelConfig : { ...modelConfig, language_support: languageSupport };
|
|
1008
|
+
}
|
|
1009
|
+
function withDiscoveredAttribution(modelConfig, ctx) {
|
|
1010
|
+
if (typeof modelConfig !== "object" || modelConfig === null || Array.isArray(modelConfig))
|
|
1011
|
+
return modelConfig;
|
|
1012
|
+
const config = modelConfig;
|
|
1013
|
+
if (config.attribution_method !== "word_ids")
|
|
1014
|
+
return modelConfig;
|
|
1015
|
+
if (toApiExtractionStrategy(config.execution_mode) !== "SingleExtract")
|
|
1016
|
+
return modelConfig;
|
|
1017
|
+
if (isAttributionModelReachable(ctx.attributionCatalogue ?? null) !== false)
|
|
1018
|
+
return modelConfig;
|
|
1019
|
+
return { ...config, attribution_method: "table_heuristic", attribution_model_version: null };
|
|
1020
|
+
}
|
|
1021
|
+
var ixpDefaultSchemaProcessor = (definition, ctx) => {
|
|
1022
|
+
if (definition.nodeType !== DYNAMIC_EXTRACT_NODE_TYPE2)
|
|
797
1023
|
return;
|
|
798
1024
|
const inputDefaults = definition.inputDefaults;
|
|
799
1025
|
if (inputDefaults?.schemaDocument !== undefined)
|
|
800
1026
|
return;
|
|
1027
|
+
if (inputDefaults?.[IDP_PROCESSOR_READONLY_INPUT] === true)
|
|
1028
|
+
return;
|
|
801
1029
|
const seeded = getDefaultExtractionSchema();
|
|
802
|
-
const
|
|
1030
|
+
const rawModelConfig = withDiscoveredAttribution(withDiscoveredLanguageSupport(inputDefaults?.modelConfig, ctx), ctx);
|
|
1031
|
+
const modelConfig = toModelConfig(rawModelConfig);
|
|
803
1032
|
const schemaDocument = modelConfig === undefined ? seeded : { ...seeded, config: buildExtractionConfig(modelConfig) };
|
|
804
1033
|
return {
|
|
805
1034
|
nodeType: definition.nodeType,
|
|
806
1035
|
manifest: {
|
|
807
1036
|
...definition,
|
|
808
|
-
inputDefaults: {
|
|
1037
|
+
inputDefaults: {
|
|
1038
|
+
...inputDefaults,
|
|
1039
|
+
...rawModelConfig === inputDefaults?.modelConfig ? {} : { modelConfig: rawModelConfig },
|
|
1040
|
+
schemaDocument
|
|
1041
|
+
}
|
|
809
1042
|
}
|
|
810
1043
|
};
|
|
811
1044
|
};
|
|
812
|
-
|
|
1045
|
+
init_esm_shims();
|
|
1046
|
+
var SEEDED_INPUTS = [IDP_PROCESSOR_KEY_INPUT, IDP_PROCESSOR_READONLY_INPUT, IDP_PROCESSOR_NAME_INPUT, IDP_PROCESSOR_FOLDER_PATH_INPUT];
|
|
1047
|
+
var publishedIdpProcessorProcessor = (definition, ctx) => {
|
|
1048
|
+
if (!isPublishedIdpProcessorNodeType(definition.nodeType))
|
|
1049
|
+
return;
|
|
1050
|
+
const rowInputs = definition.inputDefaults ?? {};
|
|
1051
|
+
const seeded = Object.fromEntries(SEEDED_INPUTS.map((name) => [name, rowInputs[name]]));
|
|
1052
|
+
const target = ctx.getManifest(DYNAMIC_EXTRACT_NODE_TYPE2) ?? buildExtractDocumentBuilderNode2();
|
|
1053
|
+
return {
|
|
1054
|
+
nodeType: DYNAMIC_EXTRACT_NODE_TYPE2,
|
|
1055
|
+
manifest: {
|
|
1056
|
+
...target,
|
|
1057
|
+
inputDefaults: { ...target.inputDefaults, schemaDocument: undefined, ...seeded }
|
|
1058
|
+
}
|
|
1059
|
+
};
|
|
1060
|
+
};
|
|
1061
|
+
var PROCESSORS = [
|
|
1062
|
+
connectorHttpRequestProcessor,
|
|
1063
|
+
agentToolConnectorHttpRequestProcessor,
|
|
1064
|
+
publishedIdpProcessorProcessor,
|
|
1065
|
+
ixpDefaultSchemaProcessor
|
|
1066
|
+
];
|
|
813
1067
|
function processManifest(definition, ctx) {
|
|
814
1068
|
if (!definition)
|
|
815
1069
|
return;
|
|
@@ -824,59 +1078,15 @@ function resolveEffectiveManifest(rawNodeType, rawDefinition, ctx) {
|
|
|
824
1078
|
const processed = processManifest(rawDefinition, ctx);
|
|
825
1079
|
return {
|
|
826
1080
|
nodeType: processed?.nodeType ?? rawNodeType,
|
|
827
|
-
manifest: processed?.manifest ?? rawDefinition
|
|
828
|
-
|
|
829
|
-
}
|
|
830
|
-
function sanitizeNodeLabelLocal(label) {
|
|
831
|
-
const words = label.split(/[^a-zA-Z0-9]+/).filter(Boolean);
|
|
832
|
-
if (words.length === 0)
|
|
833
|
-
return "node";
|
|
834
|
-
return words.map((word, index) => {
|
|
835
|
-
const lower = word.toLowerCase();
|
|
836
|
-
if (index === 0)
|
|
837
|
-
return lower;
|
|
838
|
-
return lower.charAt(0).toUpperCase() + lower.slice(1);
|
|
839
|
-
}).join("");
|
|
840
|
-
}
|
|
841
|
-
function lowerCaseFirstLetterLocal(str) {
|
|
842
|
-
if (!str)
|
|
843
|
-
return str;
|
|
844
|
-
return str.charAt(0).toLowerCase() + str.slice(1);
|
|
845
|
-
}
|
|
846
|
-
function generateNodeIdAndNameLocal(label, existingIds) {
|
|
847
|
-
const baseId = lowerCaseFirstLetterLocal(sanitizeNodeLabelLocal(label).replace("createNew", ""));
|
|
848
|
-
let index = 1;
|
|
849
|
-
let candidateId = `${baseId}${index}`;
|
|
850
|
-
while (existingIds.has(candidateId)) {
|
|
851
|
-
index++;
|
|
852
|
-
candidateId = `${baseId}${index}`;
|
|
853
|
-
}
|
|
854
|
-
return {
|
|
855
|
-
id: candidateId,
|
|
856
|
-
displayName: label ? index > 1 ? `${label} ${index}` : label : `Node${index > 1 ? ` ${index}` : ""}`
|
|
1081
|
+
manifest: processed?.manifest ?? rawDefinition,
|
|
1082
|
+
normalizeInputs: processed?.normalizeInputs
|
|
857
1083
|
};
|
|
858
1084
|
}
|
|
1085
|
+
var manifestT = instance.getFixedT(null, MANIFEST_NAMESPACE);
|
|
859
1086
|
function isInSolutionDefinition(fileDef) {
|
|
860
1087
|
const model = fileDef.model;
|
|
861
1088
|
return model?.isInSolution === true || !!model?.projectName || !!model?.projectId;
|
|
862
1089
|
}
|
|
863
|
-
var isSessionLocator = (value) => typeof value === "string" && isLocalSolutionUri(value);
|
|
864
|
-
function stripSessionScopedFields(value) {
|
|
865
|
-
if (Array.isArray(value)) {
|
|
866
|
-
return value.filter((entry) => !isSessionLocator(entry)).map((entry) => stripSessionScopedFields(entry));
|
|
867
|
-
}
|
|
868
|
-
if (value === null || typeof value !== "object") {
|
|
869
|
-
return value;
|
|
870
|
-
}
|
|
871
|
-
const result = {};
|
|
872
|
-
for (const [key, entry] of Object.entries(value)) {
|
|
873
|
-
if (isSessionLocator(entry)) {
|
|
874
|
-
continue;
|
|
875
|
-
}
|
|
876
|
-
result[key] = stripSessionScopedFields(entry);
|
|
877
|
-
}
|
|
878
|
-
return result;
|
|
879
|
-
}
|
|
880
1090
|
function resolveDefinition(manifestDef, fileDef) {
|
|
881
1091
|
const base = manifestDef ?? fileDef;
|
|
882
1092
|
if (!base)
|
|
@@ -893,32 +1103,6 @@ function resolveDefinition(manifestDef, fileDef) {
|
|
|
893
1103
|
}
|
|
894
1104
|
return base;
|
|
895
1105
|
}
|
|
896
|
-
function getInputDefaults(manifest) {
|
|
897
|
-
if (manifest.inputDefaults)
|
|
898
|
-
return structuredClone(manifest.inputDefaults);
|
|
899
|
-
if (manifest.inputDefinition)
|
|
900
|
-
return structuredClone(manifest.inputDefinition);
|
|
901
|
-
return {};
|
|
902
|
-
}
|
|
903
|
-
function mapDefinitionToNodeData(initialData, definition) {
|
|
904
|
-
const inputDefaults = getInputDefaults(definition);
|
|
905
|
-
const { canvasLabel: _strippedFromManifest, ...definitionDisplay } = definition.display;
|
|
906
|
-
const display = {
|
|
907
|
-
...definitionDisplay,
|
|
908
|
-
...initialData.display,
|
|
909
|
-
label: definition.display.label
|
|
910
|
-
};
|
|
911
|
-
const syntheticInstance = {
|
|
912
|
-
id: typeof initialData.nodeId === "string" ? initialData.nodeId : "",
|
|
913
|
-
type: definition.nodeType,
|
|
914
|
-
typeVersion: definition.version,
|
|
915
|
-
ui: { position: { x: 0, y: 0 } },
|
|
916
|
-
display,
|
|
917
|
-
inputs: inputDefaults,
|
|
918
|
-
loading: typeof initialData.loading === "boolean" ? initialData.loading : undefined
|
|
919
|
-
};
|
|
920
|
-
return hydrateNodeData(syntheticInstance, definition, []);
|
|
921
|
-
}
|
|
922
1106
|
function reconcileInputs(inputs, model, definition, node) {
|
|
923
1107
|
const out = { ...inputs };
|
|
924
1108
|
if (out.color === undefined && node?.color !== undefined)
|
|
@@ -962,11 +1146,12 @@ function hydrateNodeData(node, definition, nodeVariables = [], subflowEntry, man
|
|
|
962
1146
|
});
|
|
963
1147
|
const variableUpdates = node.variableUpdates;
|
|
964
1148
|
const projectId = node.projectId ?? definition?.model?.projectId;
|
|
965
|
-
const liveIcon = manifestMap ? manifestMap.get(
|
|
1149
|
+
const liveIcon = manifestMap ? manifestMap.get(getManifestKey2(node.type, node.typeVersion))?.display?.icon : definition?.display?.icon;
|
|
966
1150
|
const { icon: _staleIcon, ...displayRest } = node.display ?? {};
|
|
967
1151
|
const display = liveIcon ? { ...displayRest, icon: liveIcon } : displayRest;
|
|
968
1152
|
return {
|
|
969
1153
|
nodeId: node.id,
|
|
1154
|
+
...isNodeUniqueId2(node.uniqueId) && { uniqueId: node.uniqueId },
|
|
970
1155
|
type: node.type,
|
|
971
1156
|
typeVersion: node.typeVersion,
|
|
972
1157
|
display,
|
|
@@ -983,23 +1168,11 @@ function hydrateNodeData(node, definition, nodeVariables = [], subflowEntry, man
|
|
|
983
1168
|
...projectId && { projectId }
|
|
984
1169
|
};
|
|
985
1170
|
}
|
|
986
|
-
function instanceToHydratedNode(
|
|
987
|
-
const base = instanceToNode(
|
|
988
|
-
base.data = hydrateNodeData(
|
|
1171
|
+
function instanceToHydratedNode(instance2, definition, options = {}) {
|
|
1172
|
+
const base = instanceToNode(instance2, options.offset);
|
|
1173
|
+
base.data = hydrateNodeData(instance2, definition, options.nodeVariables ?? [], options.subflowEntry, options.manifestMap, options.subflows);
|
|
989
1174
|
return base;
|
|
990
1175
|
}
|
|
991
|
-
function xyFlowToPackagingNode(nodes) {
|
|
992
|
-
return nodes.map((n) => ({
|
|
993
|
-
id: n.id,
|
|
994
|
-
type: n.data.type,
|
|
995
|
-
typeVersion: n.data.typeVersion,
|
|
996
|
-
label: n.data.label,
|
|
997
|
-
name: n.data.name,
|
|
998
|
-
display: n.data.display,
|
|
999
|
-
inputs: n.data.inputs,
|
|
1000
|
-
outputs: n.data.outputs
|
|
1001
|
-
}));
|
|
1002
|
-
}
|
|
1003
1176
|
function workflowToXYFlow(workflow, manifestMap) {
|
|
1004
1177
|
const definitions = workflow.definitions;
|
|
1005
1178
|
const bindings = workflow.bindings || [];
|
|
@@ -1014,14 +1187,23 @@ function workflowToXYFlow(workflow, manifestMap) {
|
|
|
1014
1187
|
if (node.type === "stickyNote") {
|
|
1015
1188
|
return instanceToNode(node);
|
|
1016
1189
|
}
|
|
1017
|
-
const manifestDef = manifestMap.get(
|
|
1190
|
+
const manifestDef = manifestMap.get(getManifestKey2(node.type, node.typeVersion));
|
|
1018
1191
|
const fileDef = definitions.find((def) => def.nodeType === node.type && def.version === node.typeVersion);
|
|
1019
1192
|
const resolved = resolveDefinition(manifestDef, fileDef);
|
|
1020
|
-
const {
|
|
1193
|
+
const {
|
|
1194
|
+
nodeType: effectiveType,
|
|
1195
|
+
manifest: definition,
|
|
1196
|
+
normalizeInputs
|
|
1197
|
+
} = resolveEffectiveManifest(node.type, resolved, {
|
|
1021
1198
|
getManifest: (type) => findManifestByNodeType(manifestMap, type)
|
|
1022
1199
|
});
|
|
1023
|
-
let effectiveNode = effectiveType === node.type ? node : {
|
|
1024
|
-
|
|
1200
|
+
let effectiveNode = effectiveType === node.type ? node : {
|
|
1201
|
+
...node,
|
|
1202
|
+
type: effectiveType,
|
|
1203
|
+
typeVersion: definition?.version ?? node.typeVersion,
|
|
1204
|
+
...normalizeInputs ? { inputs: normalizeInputs(node.inputs ?? {}) } : {}
|
|
1205
|
+
};
|
|
1206
|
+
if (!supportsVariableUpdates2(effectiveType) && "variableUpdates" in effectiveNode) {
|
|
1025
1207
|
const { variableUpdates: _variableUpdates, ...withoutVariableUpdates } = effectiveNode;
|
|
1026
1208
|
effectiveNode = withoutVariableUpdates;
|
|
1027
1209
|
}
|
|
@@ -1033,10 +1215,10 @@ function workflowToXYFlow(workflow, manifestMap) {
|
|
|
1033
1215
|
});
|
|
1034
1216
|
if (node.parentId) {
|
|
1035
1217
|
const parentNode = workflow.nodes.find((candidate) => candidate.id === node.parentId);
|
|
1036
|
-
const parentManifestDef = parentNode ? manifestMap.get(
|
|
1218
|
+
const parentManifestDef = parentNode ? manifestMap.get(getManifestKey2(parentNode.type, parentNode.typeVersion)) : undefined;
|
|
1037
1219
|
const parentFileDef = parentNode ? definitions.find((def) => def.nodeType === parentNode.type && def.version === parentNode.typeVersion) : undefined;
|
|
1038
1220
|
const parentDefinition = resolveDefinition(parentManifestDef, parentFileDef);
|
|
1039
|
-
if (
|
|
1221
|
+
if (isContainerNodeType2(parentNode?.type) && isContainerNodeManifest(parentDefinition)) {
|
|
1040
1222
|
base.parentId = node.parentId;
|
|
1041
1223
|
base.extent = "parent";
|
|
1042
1224
|
}
|
|
@@ -1054,23 +1236,6 @@ function workflowToXYFlow(workflow, manifestMap) {
|
|
|
1054
1236
|
workflowVariables: pruneVariableUpdatesForNodes(orderedNodes, workflowVariables)
|
|
1055
1237
|
};
|
|
1056
1238
|
}
|
|
1057
|
-
function convertSubflowsToXYFlow(workflow, manifestMap) {
|
|
1058
|
-
if (!workflow.subflows)
|
|
1059
|
-
return;
|
|
1060
|
-
const result = {};
|
|
1061
|
-
for (const [nodeId, entry] of Object.entries(workflow.subflows)) {
|
|
1062
|
-
if (entry.nodes.length === 0) {
|
|
1063
|
-
continue;
|
|
1064
|
-
}
|
|
1065
|
-
const converted = workflowToXYFlow({ ...workflow, nodes: entry.nodes, edges: entry.edges, variables: entry.variables }, manifestMap);
|
|
1066
|
-
result[nodeId] = {
|
|
1067
|
-
nodes: converted.nodes,
|
|
1068
|
-
edges: converted.edges,
|
|
1069
|
-
variables: converted.workflowVariables
|
|
1070
|
-
};
|
|
1071
|
-
}
|
|
1072
|
-
return Object.keys(result).length > 0 ? result : undefined;
|
|
1073
|
-
}
|
|
1074
1239
|
function getNodeOrderParentId(node) {
|
|
1075
1240
|
return node.parentId ?? node.data?.parentId;
|
|
1076
1241
|
}
|
|
@@ -1110,46 +1275,6 @@ function sortNodesParentFirst(nodes) {
|
|
|
1110
1275
|
}
|
|
1111
1276
|
return sorted;
|
|
1112
1277
|
}
|
|
1113
|
-
function xyFlowToWorkflow(workflowId, workflowVersion, workflowName, nodes, edges, definitions, bindings = [], variables = { nodes: [], globals: [] }) {
|
|
1114
|
-
const orderedNodes = sortNodesParentFirst(nodes);
|
|
1115
|
-
const workflowNodes = orderedNodes.map((node) => {
|
|
1116
|
-
const base = nodeToInstance(node);
|
|
1117
|
-
const isCollapsed = Boolean(node.data.isCollapsed);
|
|
1118
|
-
const instanceDisplay = node.data?.display || {};
|
|
1119
|
-
const shape = instanceDisplay.shape;
|
|
1120
|
-
const width = base.ui.size?.width;
|
|
1121
|
-
const height = base.ui.size?.height;
|
|
1122
|
-
const sizeValue = !width || !height ? getExpandedSize(shape) : { width, height };
|
|
1123
|
-
return {
|
|
1124
|
-
...base,
|
|
1125
|
-
ui: {
|
|
1126
|
-
...base.ui,
|
|
1127
|
-
collapsed: isCollapsed,
|
|
1128
|
-
size: sizeValue
|
|
1129
|
-
},
|
|
1130
|
-
display: {
|
|
1131
|
-
...base.display,
|
|
1132
|
-
...shape !== undefined && { shape }
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
});
|
|
1136
|
-
const workflowEdges = edges.map((edge) => edgeToInstance(edge));
|
|
1137
|
-
const generatedVariables = generateNodeVariablesFromNodes(orderedNodes, variables, definitions);
|
|
1138
|
-
return {
|
|
1139
|
-
id: workflowId,
|
|
1140
|
-
version: workflowVersion,
|
|
1141
|
-
name: workflowName,
|
|
1142
|
-
nodes: workflowNodes,
|
|
1143
|
-
edges: workflowEdges,
|
|
1144
|
-
definitions,
|
|
1145
|
-
variables: {
|
|
1146
|
-
...generatedVariables.globals.length > 0 && { globals: generatedVariables.globals },
|
|
1147
|
-
...generatedVariables.nodes.length > 0 && { nodes: generatedVariables.nodes },
|
|
1148
|
-
...generatedVariables.variableUpdates && Object.keys(generatedVariables.variableUpdates).length > 0 && { variableUpdates: generatedVariables.variableUpdates }
|
|
1149
|
-
},
|
|
1150
|
-
...bindings && bindings.length > 0 && { bindings }
|
|
1151
|
-
};
|
|
1152
|
-
}
|
|
1153
1278
|
function getVariableUpdateNodeType(node) {
|
|
1154
1279
|
return (typeof node.data?.type === "string" ? node.data.type : undefined) ?? node.type;
|
|
1155
1280
|
}
|
|
@@ -1157,113 +1282,9 @@ function pruneVariableUpdatesForNodes(nodes, variables) {
|
|
|
1157
1282
|
if (!variables.variableUpdates)
|
|
1158
1283
|
return variables;
|
|
1159
1284
|
const nodeMap = new Map(nodes.map((node) => [node.id, node]));
|
|
1160
|
-
const variableUpdates = Object.fromEntries(Object.entries(variables.variableUpdates).filter(([nodeId, updates]) => nodeMap.has(nodeId) &&
|
|
1285
|
+
const variableUpdates = Object.fromEntries(Object.entries(variables.variableUpdates).filter(([nodeId, updates]) => nodeMap.has(nodeId) && supportsVariableUpdates2(getVariableUpdateNodeType(nodeMap.get(nodeId))) && Boolean(updates?.length)));
|
|
1161
1286
|
return { ...variables, variableUpdates };
|
|
1162
1287
|
}
|
|
1163
|
-
function pruneVariableUpdatesForSubflow(entry) {
|
|
1164
|
-
const nodes = entry.nodes.map((node) => {
|
|
1165
|
-
if (supportsVariableUpdates(node.type) || !("variableUpdates" in node))
|
|
1166
|
-
return node;
|
|
1167
|
-
const { variableUpdates: _variableUpdates, ...rest } = node;
|
|
1168
|
-
return rest;
|
|
1169
|
-
});
|
|
1170
|
-
return {
|
|
1171
|
-
...entry,
|
|
1172
|
-
nodes,
|
|
1173
|
-
variables: entry.variables ? pruneVariableUpdatesForNodes(nodes, entry.variables) : undefined
|
|
1174
|
-
};
|
|
1175
|
-
}
|
|
1176
|
-
function createWorkflowNodeFromManifest(manifest, id, position = { x: 0, y: 0 }, label) {
|
|
1177
|
-
const node = {
|
|
1178
|
-
id,
|
|
1179
|
-
type: manifest.nodeType,
|
|
1180
|
-
typeVersion: manifest.version,
|
|
1181
|
-
ui: { position },
|
|
1182
|
-
display: { label: label ?? manifest.display?.label ?? id },
|
|
1183
|
-
inputs: getInputDefaults(manifest)
|
|
1184
|
-
};
|
|
1185
|
-
if (manifest.model?.entryPointId) {
|
|
1186
|
-
node.inputs = { ...node.inputs, entryPointId: crypto.randomUUID() };
|
|
1187
|
-
}
|
|
1188
|
-
if (manifest.model?.source) {
|
|
1189
|
-
node.inputs = { ...node.inputs, source: crypto.randomUUID() };
|
|
1190
|
-
}
|
|
1191
|
-
return node;
|
|
1192
|
-
}
|
|
1193
|
-
function createEmptyWorkflow(id = crypto.randomUUID(), name = "Untitled Workflow", triggerManifest) {
|
|
1194
|
-
const nodes = [];
|
|
1195
|
-
let bindings = [];
|
|
1196
|
-
if (triggerManifest) {
|
|
1197
|
-
const label = triggerManifest.display?.label || triggerManifest.nodeType;
|
|
1198
|
-
const { id: newTriggerID, displayName } = generateNodeIdAndNameLocal(label, /* @__PURE__ */ new Set);
|
|
1199
|
-
const triggerNode = createWorkflowNodeFromManifest(triggerManifest, newTriggerID, { ...DEFAULT_TRIGGER_POSITION }, displayName);
|
|
1200
|
-
if (triggerNode.inputs?.entryPointId) {
|
|
1201
|
-
triggerNode.inputs.isDefaultEntryPoint = true;
|
|
1202
|
-
}
|
|
1203
|
-
nodes.push(triggerNode);
|
|
1204
|
-
bindings = createBindingsFromManifest(triggerManifest);
|
|
1205
|
-
}
|
|
1206
|
-
return {
|
|
1207
|
-
id,
|
|
1208
|
-
version: MINIMUM_SUPPORTED_SCHEMA_VERSION,
|
|
1209
|
-
name,
|
|
1210
|
-
nodes,
|
|
1211
|
-
edges: [],
|
|
1212
|
-
definitions: [],
|
|
1213
|
-
bindings
|
|
1214
|
-
};
|
|
1215
|
-
}
|
|
1216
|
-
function generateNodeVariablesFromNodes(nodes, variables, definitions = []) {
|
|
1217
|
-
const generatedNodeVariables = [];
|
|
1218
|
-
const contractResolvedIds = /* @__PURE__ */ new Set;
|
|
1219
|
-
const definitionOutputs = /* @__PURE__ */ new Map;
|
|
1220
|
-
for (const def of definitions) {
|
|
1221
|
-
if (def.outputDefinition && Object.keys(def.outputDefinition).length > 0) {
|
|
1222
|
-
definitionOutputs.set(def.nodeType, def.outputDefinition);
|
|
1223
|
-
}
|
|
1224
|
-
}
|
|
1225
|
-
for (const node of nodes) {
|
|
1226
|
-
const nodeOutputs = node.data?.outputs || {};
|
|
1227
|
-
const outputs = Object.keys(nodeOutputs).length > 0 ? nodeOutputs : definitionOutputs.get(node.type) ?? {};
|
|
1228
|
-
const nodeId = node.id;
|
|
1229
|
-
for (const [outputKey, outputDef] of Object.entries(outputs)) {
|
|
1230
|
-
if (outputDef && typeof outputDef === "object") {
|
|
1231
|
-
const def = outputDef;
|
|
1232
|
-
const resolved = node.type ? resolveNodeOutputTypeSchema(node.type, node.data?.inputs?.detail, outputKey) : undefined;
|
|
1233
|
-
if (resolved)
|
|
1234
|
-
contractResolvedIds.add(`${nodeId}.${outputKey}`);
|
|
1235
|
-
generatedNodeVariables.push(createNodeVariable({
|
|
1236
|
-
nodeId,
|
|
1237
|
-
outputId: outputKey,
|
|
1238
|
-
type: (resolved?.jsonSchemaType ?? def.type) || "string",
|
|
1239
|
-
subType: def.subType,
|
|
1240
|
-
description: def.description,
|
|
1241
|
-
schema: def.schema
|
|
1242
|
-
}));
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
}
|
|
1246
|
-
const globalVariables = variables.globals || [];
|
|
1247
|
-
const nodeVariables = variables.nodes || [];
|
|
1248
|
-
const nodeMap = new Map(nodes.map((n) => [n.id, n]));
|
|
1249
|
-
const validNodeVariables = nodeVariables.filter((v) => {
|
|
1250
|
-
const node = nodeMap.get(v.binding.nodeId);
|
|
1251
|
-
if (!node)
|
|
1252
|
-
return false;
|
|
1253
|
-
if (contractResolvedIds.has(v.id))
|
|
1254
|
-
return false;
|
|
1255
|
-
const nodeOutputs = node.data?.outputs || {};
|
|
1256
|
-
const outputs = Object.keys(nodeOutputs).length > 0 ? nodeOutputs : definitionOutputs.get(node.type) ?? {};
|
|
1257
|
-
return v.binding.outputId in outputs;
|
|
1258
|
-
});
|
|
1259
|
-
const allNodeVariables = [...validNodeVariables, ...generatedNodeVariables.filter((g) => !validNodeVariables.some((v) => v.id === g.id))];
|
|
1260
|
-
const variableUpdatesMap = pruneVariableUpdatesForNodes(nodes, variables).variableUpdates ?? {};
|
|
1261
|
-
return {
|
|
1262
|
-
globals: globalVariables,
|
|
1263
|
-
nodes: allNodeVariables,
|
|
1264
|
-
variableUpdates: variableUpdatesMap
|
|
1265
|
-
};
|
|
1266
|
-
}
|
|
1267
1288
|
function applyGlobalInputOverrides(raw, inputs) {
|
|
1268
1289
|
if (!inputs || Object.keys(inputs).length === 0)
|
|
1269
1290
|
return;
|
|
@@ -1276,7 +1297,7 @@ function applyGlobalInputOverrides(raw, inputs) {
|
|
|
1276
1297
|
}
|
|
1277
1298
|
}
|
|
1278
1299
|
}
|
|
1279
|
-
var warmSerializationChunks = () => Promise.all([import("./index-
|
|
1300
|
+
var warmSerializationChunks = () => Promise.all([import("./index-ng011fzs.js"), import("./serialization-Z3UYT6BW-y9gb55mp.js")]);
|
|
1280
1301
|
async function flowJsonToBpmnXml(flowJson, options) {
|
|
1281
1302
|
const [{ fileFormatToInMemoryWorkflow }, { toXml }] = await warmSerializationChunks();
|
|
1282
1303
|
const raw = JSON.parse(flowJson);
|
|
@@ -1284,35 +1305,19 @@ async function flowJsonToBpmnXml(flowJson, options) {
|
|
|
1284
1305
|
const workflow = fileFormatToInMemoryWorkflow(raw);
|
|
1285
1306
|
const manifestMap = /* @__PURE__ */ new Map;
|
|
1286
1307
|
for (const def of workflow.definitions ?? []) {
|
|
1287
|
-
manifestMap.set(
|
|
1308
|
+
manifestMap.set(getManifestKey2(def.nodeType, def.version ?? "1.0.0"), def);
|
|
1288
1309
|
}
|
|
1289
1310
|
const { nodes, edges, definitions, workflowVariables, bindings } = workflowToXYFlow(workflow, manifestMap);
|
|
1290
1311
|
const allBindings = [...bindings, ...deriveIdpProcessorBindings(workflow)];
|
|
1291
1312
|
return toXml(nodes, edges, definitions, allBindings, workflowVariables, workflow.subflows, {
|
|
1292
1313
|
detached: options?.detached,
|
|
1293
1314
|
voiceAgentDefinitions: options?.voiceAgentDefinitions,
|
|
1294
|
-
encoding: options?.encoding
|
|
1315
|
+
encoding: options?.encoding,
|
|
1316
|
+
flowJson: options?.embedFlowJson ? flowJson : undefined
|
|
1295
1317
|
});
|
|
1296
1318
|
}
|
|
1297
1319
|
export {
|
|
1298
|
-
|
|
1299
|
-
convertSubflowsToXYFlow,
|
|
1300
|
-
createEmptyWorkflow,
|
|
1301
|
-
createWorkflowNodeFromManifest,
|
|
1302
|
-
flowJsonToBpmnXml,
|
|
1303
|
-
generateNodeIdAndNameLocal,
|
|
1304
|
-
generateNodeVariablesFromNodes,
|
|
1305
|
-
instanceToHydratedNode,
|
|
1306
|
-
mapDefinitionToNodeData,
|
|
1307
|
-
pruneVariableUpdatesForNodes,
|
|
1308
|
-
pruneVariableUpdatesForSubflow,
|
|
1309
|
-
reconcileInputs,
|
|
1310
|
-
resolveDefinition,
|
|
1311
|
-
stripSessionScopedFields,
|
|
1312
|
-
warmSerializationChunks,
|
|
1313
|
-
workflowToXYFlow,
|
|
1314
|
-
xyFlowToPackagingNode,
|
|
1315
|
-
xyFlowToWorkflow
|
|
1320
|
+
flowJsonToBpmnXml
|
|
1316
1321
|
};
|
|
1317
1322
|
|
|
1318
|
-
//# debugId=
|
|
1323
|
+
//# debugId=EBA8A8907ECD56B864756E2164756E21
|