@uipath/flow-tool 1.201.0 → 1.202.0-preview.136
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/dist/{authoring-7r6g06c7.js → authoring-wpa6d0vf.js} +74 -48
- package/dist/binding-service-dh91hw9e.js +141 -0
- package/dist/{browser-strategy-rkcvc6tn.js → browser-strategy-6atc7v8s.js} +3 -3
- package/dist/connector-service-d9ph9kx1.js +948 -0
- package/dist/{conversion-H2VEEYLB-ng48mbf7.js → conversion-QANACVCM-zs0hhfjv.js} +39 -33
- package/dist/{de-5KVP66U6-f7knj511.js → de-5KVP66U6-1bnf4zt5.js} +52 -52
- package/dist/de-6U7ECGHH-xwsw33fk.js +35 -0
- package/dist/{de-5HU6GFWV-4EZK6G7N-yrh21f52.js → de-7XQXX2DK-IDWR6CAR-n4z245kt.js} +857 -845
- package/dist/{de-5HU6GFWV-zheyw6d2.js → de-7XQXX2DK-tqdy5n2b.js} +857 -845
- package/dist/{de-HKTOVV4H-d5yw5j21.js → de-HKTOVV4H-pe9w0xn8.js} +46 -46
- package/dist/{de-XLT4QPIP-0rtw349w.js → de-XLT4QPIP-kj81dxjc.js} +9 -9
- package/dist/debug-conversation-trigger-452frzyz.js +41 -0
- package/dist/debug-http-client-wd6xb8v4.js +31 -0
- package/dist/debug-service-fvyexnb1.js +58 -0
- package/dist/edge-service-e77bndbe.js +162 -0
- package/dist/{elk.bundled-pydbzeez.js → elk.bundled-vpsbxz0p.js} +3 -3
- package/dist/{en-MABQK6C4-REWE2WG2-8dp4cqdg.js → en-5ZGC5VQ3-EWX7ILY7-rmtj70fk.js} +898 -898
- package/dist/{en-MABQK6C4-nkzq2j8t.js → en-5ZGC5VQ3-h581y30k.js} +897 -897
- package/dist/en-EPWMLP2N-2wvge238.js +28 -0
- package/dist/{en-UNT7BE26-rhh65jry.js → en-LQHKFSEY-vvbe8ve9.js} +13 -11
- package/dist/{en-P4AS26D7-szrzfxz1.js → en-P4AS26D7-zptp77bm.js} +45 -45
- package/dist/{en-4KXU7N7B-66fntxa2.js → en-X3S6IZ5J-nhkg6pwn.js} +54 -60
- package/dist/{es-MX-H2EAXLYI-qwnqt48x.js → es-MX-H2EAXLYI-j42kfkxy.js} +46 -46
- package/dist/es-MX-NHTIP5YM-ar6zfx95.js +35 -0
- package/dist/{es-MX-OKNDG2NH-c1k1s1tg.js → es-MX-OKNDG2NH-tcac6j4g.js} +9 -9
- package/dist/{es-MX-POESXYP2-UW6VP5QI-cd3a79g9.js → es-MX-U2VN3SZW-KYAJ2ONK-kdram1g1.js} +857 -845
- package/dist/{es-MX-POESXYP2-9538722k.js → es-MX-U2VN3SZW-anynsmd8.js} +857 -845
- package/dist/{es-MX-XAVLOQW3-9b3cp9n8.js → es-MX-XAVLOQW3-q00km2y7.js} +52 -52
- package/dist/{es-NQICVYSQ-aa9z3nhs.js → es-NQICVYSQ-3dtqgget.js} +9 -9
- package/dist/{es-O4PAV2CR-jwfaawwk.js → es-O4PAV2CR-0g23ve3v.js} +46 -46
- package/dist/es-PQ3RA33Q-y4kxhjfr.js +35 -0
- package/dist/{es-VFPNVMP5-thm0z9sr.js → es-VFPNVMP5-bx2c337j.js} +52 -52
- package/dist/{es-LUTYN7U7-IY5QWOUF-k2aefzc0.js → es-ZGCPPOME-24PJEGPV-rn86z9kn.js} +857 -845
- package/dist/{es-LUTYN7U7-ye5zn4sn.js → es-ZGCPPOME-8gazspjj.js} +857 -845
- package/dist/flow-api-wv8p8xbd.js +36 -0
- package/dist/flow-debug-service-tfbefas6.js +741 -0
- package/dist/flow-eval-node-target-c6wea7rz.js +44 -0
- package/dist/flow-eval-run-service-01kdky72.js +961 -0
- package/dist/flow-eval-service-ft8e16jz.js +1338 -0
- package/dist/flow-init-service-mva4crty.js +35 -0
- package/dist/flow-io-r318sjrw.js +36 -0
- package/dist/flow-migrate-service-rwcdx60q.js +119 -0
- package/dist/flow-pack-service-p4hxyj9e.js +280 -0
- package/dist/flow-validate-service-j25pxpwz.js +57 -0
- package/dist/{fr-5YRGHXF5-q6b63yg0.js → fr-5YRGHXF5-kz1ywpv6.js} +46 -46
- package/dist/{fr-E5MDO4EG-exvrs7ge.js → fr-E5MDO4EG-c3mkty2t.js} +52 -52
- package/dist/{fr-PFHIL7YZ-cxnshwa8.js → fr-PFHIL7YZ-2n589p47.js} +9 -9
- package/dist/fr-R4L3OAWI-30khpsmn.js +35 -0
- package/dist/{fr-LJIK56LW-STG6QR3T-cextvv8q.js → fr-T3G5GZCT-TU4IKBEG-k6xz1s1f.js} +857 -845
- package/dist/{fr-LJIK56LW-xf3xf2kh.js → fr-T3G5GZCT-y3f7xb1q.js} +857 -845
- package/dist/governance-fetcher-j9cx4f1d.js +391 -0
- package/dist/headless-h1myzz32.js +177196 -0
- package/dist/hitl-service-kvt5wms4.js +256 -0
- package/dist/index-1kgxzh8x.js +143 -0
- package/dist/index-4zrwgb3c.js +111 -0
- package/dist/index-ev4mdg5y.js +4801 -0
- package/dist/{index-er6vy3jk.js → index-eybzsdcc.js} +295 -317
- package/dist/{index-hsadteg4.js → index-h8cph72k.js} +4 -4
- package/dist/{index-p50kx6jv.js → index-k5tbd184.js} +276 -276
- package/dist/index-n33np76r.js +630 -0
- package/dist/{index-9f8q2ege.js → index-p3vk57z7.js} +27 -27
- package/dist/{index-dhcd9b82.js → index-w0z4s69j.js} +166 -81
- package/dist/index.js +29 -32
- package/dist/{index.umd.min-drpc57vn.js → index.umd.min-fqefd9kn.js} +3 -3
- package/dist/init.js +24 -25
- package/dist/input-reader-6pwhtp8v.js +11 -0
- package/dist/{ja-FGEGLBJ3-w9byjhze.js → ja-BI5K3JDZ-77zat4z2.js} +857 -845
- package/dist/{ja-FGEGLBJ3-MG3BSWXD-vq19zt2p.js → ja-BI5K3JDZ-GTIHISTZ-s6n3r2ab.js} +857 -845
- package/dist/{ja-DPO5PPLO-s2a7j3nj.js → ja-DPO5PPLO-mysfmznx.js} +52 -52
- package/dist/{ja-P4OSE367-8ywxep9a.js → ja-P4OSE367-srr3qypg.js} +9 -9
- package/dist/{ja-SDAPAVCR-943p5gx7.js → ja-SDAPAVCR-kg39dfap.js} +46 -46
- package/dist/ja-ZHKCBE5W-x73w6x3e.js +35 -0
- package/dist/{js-yaml-cggj6w7q.js → js-yaml-87cdx6bm.js} +27 -19
- package/dist/known-types-a20evmmg.js +20 -0
- package/dist/ko-6W7OGLLB-mnmqc584.js +35 -0
- package/dist/{ko-ITOPNIYI-qz39kamf.js → ko-ITOPNIYI-hmxd2asd.js} +52 -52
- package/dist/{ko-TUAK3G3A-s25w0ckg.js → ko-JOBF5V7N-4bv0mjje.js} +857 -845
- package/dist/{ko-TUAK3G3A-TBEBKOTM-ns78t2rv.js → ko-JOBF5V7N-O7T4HKIE-ape840y0.js} +857 -845
- package/dist/{ko-NAGOZLC3-wb3y9yhh.js → ko-NAGOZLC3-gaxxsnd2.js} +46 -46
- package/dist/{ko-PYOS2KJP-5sbj5bp8.js → ko-PYOS2KJP-e7dshyxy.js} +9 -9
- package/dist/localization-h8a53z6p.js +47 -0
- package/dist/{node-gd4469ea.js → node-cnrcrrb0.js} +7973 -7166
- package/dist/node-service-8g5x5d2y.js +70 -0
- package/dist/{node-strategy-8gzp67xs.js → node-strategy-gc4sg6a2.js} +132 -16
- package/dist/node-sync-service-e2reh33c.js +42 -0
- package/dist/{packager-tool-9qecd4wb.js → packager-tool-0gctz400.js} +5 -2
- package/dist/{packager-tool-1cb0d5e0.js → packager-tool-0v3s8r01.js} +2 -2
- package/dist/{packager-tool-wckvcay0.js → packager-tool-1yh8g550.js} +9 -7
- package/dist/packager-tool-27avrkyk.js +15 -0
- package/dist/packager-tool-2wefykg9.js +106 -0
- package/dist/packager-tool-4fhgws0x.js +757 -0
- package/dist/{packager-tool-7yjpwj92.js → packager-tool-4hx14snw.js} +49 -48
- package/dist/{packager-tool-3wygxefb.js → packager-tool-58q3tvh7.js} +10 -10
- package/dist/{packager-tool-cvwr40ax.js → packager-tool-5qaxht3k.js} +1425 -550
- package/dist/packager-tool-5z1eg3ea.js +33289 -0
- package/dist/{packager-tool-17cn3xb7.js → packager-tool-6m078z5s.js} +13388 -19366
- package/dist/packager-tool-7b6tpg7y.js +77 -0
- package/dist/packager-tool-7exrv6w7.js +23 -0
- package/dist/packager-tool-8dszjcg5.js +4892 -0
- package/dist/packager-tool-8j92afwp.js +58 -0
- package/dist/packager-tool-94w17vf8.js +85 -0
- package/dist/{packager-tool-vdd02vns.js → packager-tool-9bec251q.js} +543 -1493
- package/dist/packager-tool-a1hbfmws.js +399 -0
- package/dist/{packager-tool-tq9q9m77.js → packager-tool-a42jnpy5.js} +3 -9
- package/dist/packager-tool-abbtfk2v.js +54 -0
- package/dist/packager-tool-cdwpc9fh.js +4945 -0
- package/dist/packager-tool-e0p2zsyc.js +97 -0
- package/dist/packager-tool-eebq62fq.js +540 -0
- package/dist/{packager-tool-m6x5sczh.js → packager-tool-em5r6g6j.js} +14 -21
- package/dist/packager-tool-eypvc2kv.js +23 -0
- package/dist/packager-tool-f0kd5kq4.js +2327 -0
- package/dist/packager-tool-fjaa8d3v.js +289 -0
- package/dist/packager-tool-g0eha8ge.js +121 -0
- package/dist/packager-tool-g9y14b10.js +54 -0
- package/dist/packager-tool-gbgfwx8f.js +2 -0
- package/dist/packager-tool-jc34wvrw.js +64 -0
- package/dist/packager-tool-k99nf3pq.js +25 -0
- package/dist/{packager-tool-hr0xg6q8.js → packager-tool-kn91khp6.js} +17 -13
- package/dist/{packager-tool-jysvpt8p.js → packager-tool-m3wkcxf5.js} +2 -2
- package/dist/{packager-tool-78a3szsp.js → packager-tool-m5qfverj.js} +1720 -2014
- package/dist/packager-tool-mwvbq6ef.js +79 -0
- package/dist/packager-tool-nq4rcqqg.js +87 -0
- package/dist/packager-tool-nxx8naxv.js +4234 -0
- package/dist/{packager-tool-3y0k15sv.js → packager-tool-p9stswjj.js} +2858 -19342
- package/dist/packager-tool-r0xpcqwg.js +188 -0
- package/dist/packager-tool-raq2wbwp.js +18 -0
- package/dist/{packager-tool-y3dezh8k.js → packager-tool-rs6jm14d.js} +6 -4
- package/dist/packager-tool-s9ff3kk4.js +6 -0
- package/dist/{packager-tool-pbsghbmj.js → packager-tool-sykgshez.js} +2 -2
- package/dist/packager-tool-tf3d2y8z.js +31 -0
- package/dist/packager-tool-tn5e7wnb.js +384 -0
- package/dist/packager-tool-v2rkcehq.js +457 -0
- package/dist/packager-tool-v86fdwvs.js +262 -0
- package/dist/packager-tool-v9psxdy5.js +8185 -0
- package/dist/packager-tool-v9rrz038.js +602 -0
- package/dist/packager-tool-vpqyvh4c.js +304 -0
- package/dist/packager-tool-wcha0e5r.js +443 -0
- package/dist/{packager-tool-1gt6js73.js → packager-tool-xhzfwa5p.js} +6 -4
- package/dist/{packager-tool-5arsyj36.js → packager-tool-yc4kw997.js} +4 -2
- package/dist/{packager-tool-pkq70dec.js → packager-tool-ywqc9rtf.js} +31 -3
- package/dist/{packager-tool-0567pxpm.js → packager-tool-z9bfhmm5.js} +10 -10
- package/dist/{packager-tool-gmrwvnyh.js → packager-tool-zfrp8ecz.js} +8 -58
- package/dist/{packager-tool-3vdpx9ng.js → packager-tool-zke08y39.js} +1121 -1846
- package/dist/packager-tool.js +17 -17
- package/dist/{pt-7TR74ZMB-1g8my56g.js → pt-7TR74ZMB-bmphh4x2.js} +46 -46
- package/dist/{pt-BR-7XGDXRDJ-TR5D7JYL-533wvy7p.js → pt-BR-7DYX2YPT-LZYH4YFD-bx43vx3z.js} +857 -845
- package/dist/{pt-BR-7XGDXRDJ-espnkgrj.js → pt-BR-7DYX2YPT-fqxqzqtf.js} +857 -845
- package/dist/{pt-BR-BXURWX4W-dqr4dnf9.js → pt-BR-BXURWX4W-bwfcwhk1.js} +52 -52
- package/dist/{pt-BR-DXXSYJDO-bn84ewp7.js → pt-BR-DXXSYJDO-a2tp13v7.js} +46 -46
- package/dist/pt-BR-UQCYHKMJ-q78n7q70.js +35 -0
- package/dist/{pt-BR-Z3TUDJHM-n7ngej6s.js → pt-BR-Z3TUDJHM-8v73x9s7.js} +9 -9
- package/dist/pt-D6A6MVB2-yvxca8vz.js +35 -0
- package/dist/{pt-TMVOOITK-myha14p9.js → pt-HTXGGX6Y-97t21dty.js} +857 -845
- package/dist/{pt-TMVOOITK-H2ADYHSD-ezpggv33.js → pt-HTXGGX6Y-ZHQSDFKI-vehfxadc.js} +857 -845
- package/dist/{pt-KSBWHAVQ-hd52bpsz.js → pt-KSBWHAVQ-mhvhgr2p.js} +9 -9
- package/dist/{pt-YI4VE4YQ-v7gjeg82.js → pt-YI4VE4YQ-wdkn2dcf.js} +52 -52
- package/dist/ro-4TMBHS5M-jz0anpt6.js +35 -0
- package/dist/{ro-BJFER5OI-334n28rj.js → ro-BJFER5OI-83tq8vxh.js} +46 -46
- package/dist/{ro-2VALF3S5-NXBJUEZN-nqw1zs33.js → ro-KTNQ3MNU-XIE6YPQN-gen8p82z.js} +857 -845
- package/dist/{ro-2VALF3S5-cdz5afkr.js → ro-KTNQ3MNU-y08n1x5g.js} +857 -845
- package/dist/{ro-RKXZUG7Z-cm3xn3fj.js → ro-RKXZUG7Z-nndrrsq7.js} +52 -52
- package/dist/{ro-VZUZTAMR-tccygznf.js → ro-VZUZTAMR-f4q0g3em.js} +9 -9
- package/dist/{ru-GSCT4ARZ-qj8dm4dp.js → ru-GSCT4ARZ-1sa9wbr8.js} +1 -1
- package/dist/{ru-GSCT4ARZ-FTVCGQTL-5nh4jf2e.js → ru-GSCT4ARZ-FTVCGQTL-gee86v14.js} +1 -1
- package/dist/{ru-T73OPRTC-mp5gn7gs.js → ru-T73OPRTC-4knxw497.js} +1 -1
- package/dist/{ru-WBLQ5B2U-awt245ky.js → ru-WBLQ5B2U-8r3c7v6d.js} +1 -1
- package/dist/ru-WBLQ5B2U-kdey8qa4.js +10 -0
- package/dist/{ru-WBLQ5B2U-57ezmxzz.js → ru-WBLQ5B2U-wemdzdqd.js} +1 -1
- package/dist/{serialization-GAW7UFOK-9hkdmmd2.js → serialization-J5QK3HPY-bgewpt6f.js} +158 -152
- package/dist/services/expression-validator.d.ts +28 -0
- package/dist/services/flow-eval-schema/types.d.ts +17 -0
- package/dist/services/flow-validate-service.d.ts +26 -0
- package/dist/services/node-validators/js-expression-syntax-validator.d.ts +6 -3
- package/dist/services/tidy-service.d.ts +26 -0
- package/dist/services/vars-reference-rule.d.ts +156 -0
- package/dist/shared-utils-8xdq6f04.js +20 -0
- package/dist/tidy-service-ashgyfwj.js +34 -0
- package/dist/tool.js +30 -33
- package/dist/{tr-AA6O2WSR-ga1xnymp.js → tr-AA6O2WSR-86ba4bdf.js} +52 -52
- package/dist/tr-GSQQ6SOT-hv1gyeaa.js +35 -0
- package/dist/{tr-RQTZ2DMS-bpgd4kma.js → tr-RQTZ2DMS-w3cwv8s4.js} +46 -46
- package/dist/{tr-W4AVRSQ4-bt3qqqdy.js → tr-W4AVRSQ4-hjr81xzk.js} +9 -9
- package/dist/{tr-RIFCEXFH-BZS7S7QK-q465b62g.js → tr-XHSSPNK7-GW5KVXR3-2w3f1ss6.js} +857 -845
- package/dist/{tr-RIFCEXFH-hgkb4g8y.js → tr-XHSSPNK7-cmqyc4wd.js} +857 -845
- package/dist/utils/handle-expansion.d.ts +16 -0
- package/dist/validation.js +47 -27
- package/dist/variable-service-er7ph4br.js +152 -0
- package/dist/wait-for-flow-job-45p1a444.js +134 -0
- package/dist/{zh-CN-IP3FMXWM-H3JI2XUM-ta4yac7h.js → zh-CN-2EHQT23P-T5XRQCVS-ac17dpc1.js} +857 -845
- package/dist/{zh-CN-IP3FMXWM-1cfarhcp.js → zh-CN-2EHQT23P-mr63c4xz.js} +857 -845
- package/dist/{zh-CN-6YRAN57T-j7jp34ws.js → zh-CN-6YRAN57T-rd7x2tqs.js} +9 -9
- package/dist/zh-CN-EDFRBU32-vvj7tmaq.js +35 -0
- package/dist/{zh-CN-R2KLHXQV-wttmznep.js → zh-CN-R2KLHXQV-agqr45ds.js} +52 -52
- package/dist/{zh-CN-ZC6LT4IN-vty9mvv8.js → zh-CN-ZC6LT4IN-kbzvvzz5.js} +46 -46
- package/dist/zh-TW-HAICM6DE-rh7k3cq7.js +35 -0
- package/dist/{zh-TW-AGIDXIPF-R4XZRDJZ-cgxxz5k4.js → zh-TW-MGZCE5BT-P6FLIUAR-zmq07vhs.js} +857 -845
- package/dist/{zh-TW-AGIDXIPF-n6r6w7vy.js → zh-TW-MGZCE5BT-c4ekmrz9.js} +857 -845
- package/dist/{zh-TW-R7Y5KVMU-q81f4z2p.js → zh-TW-R7Y5KVMU-m61y07e3.js} +46 -46
- package/dist/{zh-TW-RJGCQANM-gqn0aca0.js → zh-TW-RJGCQANM-w0x3qc1p.js} +52 -52
- package/dist/{zh-TW-SO2245GN-m5kh88bg.js → zh-TW-SO2245GN-n2bn1gg4.js} +9 -9
- package/package.json +2 -2
- package/dist/de-5KVP66U6-t37qr521.js +0 -161
- package/dist/de-WMKOGI7B-6dc1zdnp.js +0 -143
- package/dist/en-4KXU7N7B-24v330b5.js +0 -118
- package/dist/en-X4DLPKLJ-1h9gj5c1.js +0 -110
- package/dist/es-BVPGJUWA-0k59eqfv.js +0 -143
- package/dist/es-MX-U6YL5KQX-k4qvpgd4.js +0 -143
- package/dist/es-MX-XAVLOQW3-47a405kf.js +0 -161
- package/dist/es-VFPNVMP5-6sftsdxe.js +0 -161
- package/dist/fr-E5MDO4EG-f3x1jeqw.js +0 -161
- package/dist/fr-EKTTDR7Z-m2t68j0m.js +0 -143
- package/dist/ja-DPO5PPLO-fmbg7zt2.js +0 -161
- package/dist/ja-Y2YBTXNN-5sszk2zv.js +0 -143
- package/dist/ko-ITOPNIYI-aqy82jk8.js +0 -161
- package/dist/ko-S33XAV26-rfsv9myd.js +0 -143
- package/dist/packager-tool-0sz8se22.js +0 -10671
- package/dist/packager-tool-8mqydhz8.js +0 -9850
- package/dist/packager-tool-p9j43p8h.js +0 -115
- package/dist/packager-tool-v74yk918.js +0 -107
- package/dist/packager-tool-xj0agqpk.js +0 -11
- package/dist/pt-BR-BXURWX4W-xzyndmrx.js +0 -161
- package/dist/pt-BR-JO45SCNI-mt93s33c.js +0 -143
- package/dist/pt-W3NA4LIZ-fwd1q4j0.js +0 -143
- package/dist/pt-YI4VE4YQ-521681zf.js +0 -161
- package/dist/ro-RKXZUG7Z-pdztdafr.js +0 -161
- package/dist/ro-WLKX6HF5-b9tj8q67.js +0 -143
- package/dist/ru-WBLQ5B2U-8xd4gpv2.js +0 -10
- package/dist/ru-WBLQ5B2U-mswqs9wc.js +0 -10
- package/dist/tr-3U2W2XCA-43ptfc0m.js +0 -143
- package/dist/tr-AA6O2WSR-bj9n80k8.js +0 -161
- package/dist/zh-CN-IPZYQR3P-egjmvyjf.js +0 -143
- package/dist/zh-CN-R2KLHXQV-x6gnk2n0.js +0 -161
- package/dist/zh-TW-RJGCQANM-tt8j5wv2.js +0 -161
- package/dist/zh-TW-YPVSQVGT-b378ztph.js +0 -143
|
@@ -58,6 +58,22 @@ export declare function parseVisibleInputKey(visible: unknown): string | null;
|
|
|
58
58
|
* flag flows that actually work.
|
|
59
59
|
*/
|
|
60
60
|
export declare function isHandleVisible(handle: Pick<HandleEntry, "visible">, node: HandleExpansionNode): boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Derive the source handle IDs a node exposes from its declared outcomes.
|
|
63
|
+
*
|
|
64
|
+
* A Studio Web-authored HITL quick-form node keeps its buttons in
|
|
65
|
+
* `inputs.schema.outcomes` (e.g. `[{id:"approve"},{id:"reject"}]`). When a
|
|
66
|
+
* node has outcomes, the canvas wires each outgoing edge to a source handle
|
|
67
|
+
* `outcome-<outcomeId>` — one per outcome — but the static manifest only
|
|
68
|
+
* declares the single `completed` source handle. Without deriving these,
|
|
69
|
+
* `flow validate` rejects every multi-outcome edge as an "undeclared source
|
|
70
|
+
* handle" even though `flow debug` runs the flow fine (UV-16067).
|
|
71
|
+
*
|
|
72
|
+
* Returns `outcome-<id>` for every outcome that carries a string `id`, or an
|
|
73
|
+
* empty array when the node declares no outcomes — leaving the existing static
|
|
74
|
+
* `completed` handle as the only source for the single default outcome case.
|
|
75
|
+
*/
|
|
76
|
+
export declare function deriveOutcomeHandleIds(node: HandleExpansionNode): string[];
|
|
61
77
|
export declare function expandHandleIds(handle: HandleEntry, node: HandleExpansionNode): string[];
|
|
62
78
|
/**
|
|
63
79
|
* True when `id` still carries an unsubstituted `{...}` placeholder — i.e.
|
package/dist/validation.js
CHANGED
|
@@ -1,39 +1,59 @@
|
|
|
1
1
|
import {
|
|
2
2
|
FlowValidateService,
|
|
3
3
|
connectorNodeValidator
|
|
4
|
-
} from "./packager-tool-
|
|
5
|
-
import"./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
7
|
-
import"./packager-tool-
|
|
8
|
-
import"./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
10
|
-
import"./packager-tool-
|
|
4
|
+
} from "./packager-tool-zke08y39.js";
|
|
5
|
+
import"./packager-tool-4fhgws0x.js";
|
|
6
|
+
import"./packager-tool-mwvbq6ef.js";
|
|
7
|
+
import"./packager-tool-2wefykg9.js";
|
|
8
|
+
import"./packager-tool-nq4rcqqg.js";
|
|
9
|
+
import"./packager-tool-8j92afwp.js";
|
|
10
|
+
import"./packager-tool-v2rkcehq.js";
|
|
11
|
+
import"./packager-tool-v86fdwvs.js";
|
|
12
|
+
import"./packager-tool-jc34wvrw.js";
|
|
13
|
+
import"./packager-tool-4hx14snw.js";
|
|
14
|
+
import"./packager-tool-a1hbfmws.js";
|
|
15
|
+
import"./packager-tool-cdwpc9fh.js";
|
|
16
|
+
import"./packager-tool-g9y14b10.js";
|
|
17
|
+
import"./packager-tool-5z1eg3ea.js";
|
|
18
|
+
import"./packager-tool-v9rrz038.js";
|
|
19
|
+
import"./packager-tool-fjaa8d3v.js";
|
|
20
|
+
import"./packager-tool-v9psxdy5.js";
|
|
21
|
+
import"./packager-tool-ywqc9rtf.js";
|
|
22
|
+
import"./packager-tool-f0kd5kq4.js";
|
|
23
|
+
import"./packager-tool-0gctz400.js";
|
|
11
24
|
import"./packager-tool-qa9gftnj.js";
|
|
12
|
-
import"./packager-tool-
|
|
13
|
-
import"./packager-tool-
|
|
14
|
-
import"./packager-tool-
|
|
15
|
-
import"./packager-tool-
|
|
25
|
+
import"./packager-tool-yc4kw997.js";
|
|
26
|
+
import"./packager-tool-7exrv6w7.js";
|
|
27
|
+
import"./packager-tool-8dszjcg5.js";
|
|
28
|
+
import"./packager-tool-eebq62fq.js";
|
|
29
|
+
import"./packager-tool-94w17vf8.js";
|
|
30
|
+
import"./packager-tool-6m078z5s.js";
|
|
31
|
+
import"./packager-tool-tn5e7wnb.js";
|
|
32
|
+
import"./packager-tool-xhzfwa5p.js";
|
|
16
33
|
import"./packager-tool-nkrmjr3a.js";
|
|
17
|
-
import"./packager-tool-
|
|
34
|
+
import"./packager-tool-rs6jm14d.js";
|
|
18
35
|
import"./packager-tool-hk1gxnth.js";
|
|
19
|
-
import"./packager-tool-
|
|
20
|
-
import"./packager-tool-
|
|
21
|
-
import"./packager-tool-
|
|
22
|
-
import"./packager-tool-sc961w0q.js";
|
|
23
|
-
import"./packager-tool-m6x5sczh.js";
|
|
24
|
-
import"./packager-tool-vdd02vns.js";
|
|
25
|
-
import"./packager-tool-p9j43p8h.js";
|
|
26
|
-
import"./packager-tool-jysvpt8p.js";
|
|
27
|
-
import"./packager-tool-78a3szsp.js";
|
|
28
|
-
import"./packager-tool-0567pxpm.js";
|
|
36
|
+
import"./packager-tool-em5r6g6j.js";
|
|
37
|
+
import"./packager-tool-9bec251q.js";
|
|
38
|
+
import"./packager-tool-z9bfhmm5.js";
|
|
29
39
|
import"./packager-tool-6ejqwbw9.js";
|
|
30
40
|
import"./packager-tool-mcaf4ewf.js";
|
|
31
|
-
import"./packager-tool-
|
|
41
|
+
import"./packager-tool-eypvc2kv.js";
|
|
42
|
+
import"./packager-tool-5qaxht3k.js";
|
|
43
|
+
import"./packager-tool-0v3s8r01.js";
|
|
44
|
+
import"./packager-tool-p9stswjj.js";
|
|
45
|
+
import"./packager-tool-vpqyvh4c.js";
|
|
46
|
+
import"./packager-tool-gbgfwx8f.js";
|
|
47
|
+
import"./packager-tool-58q3tvh7.js";
|
|
48
|
+
import"./packager-tool-sc961w0q.js";
|
|
49
|
+
import"./packager-tool-m5qfverj.js";
|
|
50
|
+
import"./packager-tool-e0p2zsyc.js";
|
|
51
|
+
import"./packager-tool-a42jnpy5.js";
|
|
32
52
|
import"./packager-tool-c23zrhj8.js";
|
|
33
|
-
import"./packager-tool-
|
|
53
|
+
import"./packager-tool-1yh8g550.js";
|
|
34
54
|
export {
|
|
35
|
-
|
|
36
|
-
|
|
55
|
+
FlowValidateService,
|
|
56
|
+
connectorNodeValidator
|
|
37
57
|
};
|
|
38
58
|
|
|
39
|
-
//# debugId=
|
|
59
|
+
//# debugId=CDB8D9866CEE1AC364756E2164756E21
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readFlowWorkflow,
|
|
3
|
+
writeFlowWorkflow
|
|
4
|
+
} from "./packager-tool-94w17vf8.js";
|
|
5
|
+
import"./packager-tool-6m078z5s.js";
|
|
6
|
+
import {
|
|
7
|
+
addVariable
|
|
8
|
+
} from "./packager-tool-tn5e7wnb.js";
|
|
9
|
+
import"./packager-tool-xhzfwa5p.js";
|
|
10
|
+
import"./packager-tool-nkrmjr3a.js";
|
|
11
|
+
import"./packager-tool-rs6jm14d.js";
|
|
12
|
+
import"./packager-tool-hk1gxnth.js";
|
|
13
|
+
import"./packager-tool-em5r6g6j.js";
|
|
14
|
+
import"./packager-tool-9bec251q.js";
|
|
15
|
+
import"./packager-tool-z9bfhmm5.js";
|
|
16
|
+
import"./packager-tool-6ejqwbw9.js";
|
|
17
|
+
import"./packager-tool-mcaf4ewf.js";
|
|
18
|
+
import"./packager-tool-5qaxht3k.js";
|
|
19
|
+
import"./packager-tool-0v3s8r01.js";
|
|
20
|
+
import {
|
|
21
|
+
createWorkflowVariable
|
|
22
|
+
} from "./packager-tool-vpqyvh4c.js";
|
|
23
|
+
import"./packager-tool-gbgfwx8f.js";
|
|
24
|
+
import"./packager-tool-58q3tvh7.js";
|
|
25
|
+
import"./packager-tool-sc961w0q.js";
|
|
26
|
+
import {
|
|
27
|
+
isExpressionValue,
|
|
28
|
+
isStartEventNode
|
|
29
|
+
} from "./packager-tool-m5qfverj.js";
|
|
30
|
+
import"./packager-tool-e0p2zsyc.js";
|
|
31
|
+
import"./packager-tool-a42jnpy5.js";
|
|
32
|
+
import"./packager-tool-c23zrhj8.js";
|
|
33
|
+
import"./packager-tool-1yh8g550.js";
|
|
34
|
+
|
|
35
|
+
// src/services/variable-service.ts
|
|
36
|
+
var expressionText = (expression) => {
|
|
37
|
+
if (typeof expression === "string")
|
|
38
|
+
return expression;
|
|
39
|
+
if (isExpressionValue(expression))
|
|
40
|
+
return expression.expression;
|
|
41
|
+
return "";
|
|
42
|
+
};
|
|
43
|
+
var listVariablesInFlow = async (filePath) => {
|
|
44
|
+
const { workflow } = await readFlowWorkflow(filePath);
|
|
45
|
+
const globals = (workflow.variables?.globals ?? []).map((v) => ({
|
|
46
|
+
id: v.id,
|
|
47
|
+
type: v.type,
|
|
48
|
+
direction: v.direction,
|
|
49
|
+
...v.defaultValue !== undefined && { defaultValue: v.defaultValue },
|
|
50
|
+
...v.description !== undefined && { description: v.description },
|
|
51
|
+
...v.triggerNodeId !== undefined && {
|
|
52
|
+
triggerNodeId: v.triggerNodeId
|
|
53
|
+
}
|
|
54
|
+
}));
|
|
55
|
+
const nodes = (workflow.variables?.nodes ?? []).map((v) => ({
|
|
56
|
+
id: v.id,
|
|
57
|
+
type: v.type,
|
|
58
|
+
nodeId: v.binding.nodeId,
|
|
59
|
+
outputId: v.binding.outputId,
|
|
60
|
+
...v.description !== undefined && { description: v.description }
|
|
61
|
+
}));
|
|
62
|
+
const variables = [...globals, ...nodes];
|
|
63
|
+
return { variables, count: variables.length };
|
|
64
|
+
};
|
|
65
|
+
var resolveTriggerNodeId = (nodes, explicitTriggerNodeId) => {
|
|
66
|
+
const triggerNodes = nodes.filter((node) => isStartEventNode({
|
|
67
|
+
id: node.id,
|
|
68
|
+
type: node.type,
|
|
69
|
+
typeVersion: node.typeVersion ?? "1.0"
|
|
70
|
+
}));
|
|
71
|
+
if (explicitTriggerNodeId !== undefined) {
|
|
72
|
+
if (!nodes.some((node) => node.id === explicitTriggerNodeId)) {
|
|
73
|
+
const available = nodes.map((node) => node.id).join(", ");
|
|
74
|
+
throw new Error(available ? `Node '${explicitTriggerNodeId}' not found in the flow. Available nodes: ${available}` : `Node '${explicitTriggerNodeId}' not found. The flow has no nodes`);
|
|
75
|
+
}
|
|
76
|
+
if (!triggerNodes.some((node) => node.id === explicitTriggerNodeId)) {
|
|
77
|
+
const triggerIds = triggerNodes.map((node) => node.id).join(", ");
|
|
78
|
+
throw new Error(triggerIds ? `Node '${explicitTriggerNodeId}' is not a trigger node. Trigger nodes in this flow: ${triggerIds}` : `Node '${explicitTriggerNodeId}' is not a trigger node. The flow has no trigger nodes`);
|
|
79
|
+
}
|
|
80
|
+
return explicitTriggerNodeId;
|
|
81
|
+
}
|
|
82
|
+
if (triggerNodes.length === 0) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
if (triggerNodes.length > 1) {
|
|
86
|
+
const triggerIds = triggerNodes.map((node) => node.id).join(", ");
|
|
87
|
+
throw new Error(`Flow has multiple trigger nodes (${triggerIds}); each is a separate entry point. Pass --trigger-node-id <nodeId> to choose which one this input belongs to`);
|
|
88
|
+
}
|
|
89
|
+
return triggerNodes[0].id;
|
|
90
|
+
};
|
|
91
|
+
var addVariableToFlow = async (filePath, options) => {
|
|
92
|
+
if (options.triggerNodeId !== undefined && options.direction !== "in") {
|
|
93
|
+
throw new Error(`--trigger-node-id applies only to input variables (--direction in), but --direction is '${options.direction}'`);
|
|
94
|
+
}
|
|
95
|
+
const { workflow, refMap } = await readFlowWorkflow(filePath);
|
|
96
|
+
const globals = workflow.variables?.globals ?? [];
|
|
97
|
+
const duplicate = globals.find((v) => v.id === options.id);
|
|
98
|
+
if (duplicate) {
|
|
99
|
+
throw new Error(`Variable '${options.id}' already exists in the flow file`);
|
|
100
|
+
}
|
|
101
|
+
const triggerNodeId = options.direction === "in" ? resolveTriggerNodeId(workflow.nodes ?? [], options.triggerNodeId) : undefined;
|
|
102
|
+
const created = createWorkflowVariable({
|
|
103
|
+
id: options.id,
|
|
104
|
+
direction: options.direction,
|
|
105
|
+
type: options.type,
|
|
106
|
+
subType: options.subType,
|
|
107
|
+
defaultValue: options.defaultValue,
|
|
108
|
+
description: options.description,
|
|
109
|
+
schema: options.schema
|
|
110
|
+
});
|
|
111
|
+
const variable = triggerNodeId === undefined ? created : { ...created, triggerNodeId };
|
|
112
|
+
addVariable(workflow, variable);
|
|
113
|
+
await writeFlowWorkflow(filePath, workflow, refMap);
|
|
114
|
+
return variable;
|
|
115
|
+
};
|
|
116
|
+
var deleteVariableFromFlow = async (filePath, variableId) => {
|
|
117
|
+
const { workflow, refMap } = await readFlowWorkflow(filePath);
|
|
118
|
+
const globals = workflow.variables?.globals ?? [];
|
|
119
|
+
const target = globals.find((v) => v.id === variableId);
|
|
120
|
+
if (!target) {
|
|
121
|
+
const available = globals.map((v) => v.id).join(", ");
|
|
122
|
+
throw new Error(available ? `Variable '${variableId}' not found. Available variables: ${available}` : `Variable '${variableId}' not found. No variables exist in this flow file`);
|
|
123
|
+
}
|
|
124
|
+
const updatedGlobals = globals.filter((v) => v.id !== variableId);
|
|
125
|
+
let updatedVariableUpdates = workflow.variables?.variableUpdates;
|
|
126
|
+
if (updatedVariableUpdates) {
|
|
127
|
+
const cleaned = {};
|
|
128
|
+
for (const [nodeId, updates] of Object.entries(updatedVariableUpdates)) {
|
|
129
|
+
const varRefPattern = new RegExp(`\\$vars\\.${variableId}\\b`);
|
|
130
|
+
const filtered = updates.filter((u) => u.variableId !== variableId && !varRefPattern.test(expressionText(u.expression)));
|
|
131
|
+
if (filtered.length > 0) {
|
|
132
|
+
cleaned[nodeId] = filtered;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
updatedVariableUpdates = Object.keys(cleaned).length > 0 ? cleaned : undefined;
|
|
136
|
+
}
|
|
137
|
+
workflow.variables = {
|
|
138
|
+
...workflow.variables,
|
|
139
|
+
globals: updatedGlobals.length > 0 ? updatedGlobals : undefined,
|
|
140
|
+
variableUpdates: updatedVariableUpdates
|
|
141
|
+
};
|
|
142
|
+
await writeFlowWorkflow(filePath, workflow, refMap);
|
|
143
|
+
return target;
|
|
144
|
+
};
|
|
145
|
+
export {
|
|
146
|
+
addVariableToFlow,
|
|
147
|
+
deleteVariableFromFlow,
|
|
148
|
+
listVariablesInFlow,
|
|
149
|
+
resolveTriggerNodeId
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
//# debugId=48628F6C2A3679DC64756E2164756E21
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getJobStatusDetailed
|
|
3
|
+
} from "./packager-tool-wcha0e5r.js";
|
|
4
|
+
import {
|
|
5
|
+
DEFAULT_INTERVAL_MS,
|
|
6
|
+
DEFAULT_TIMEOUT_MS,
|
|
7
|
+
PENDING_NORMAL_SECONDS,
|
|
8
|
+
PENDING_STALLED_SECONDS,
|
|
9
|
+
pendingSecondsFor,
|
|
10
|
+
pendingStallInstructions
|
|
11
|
+
} from "./packager-tool-tf3d2y8z.js";
|
|
12
|
+
import"./packager-tool-g9y14b10.js";
|
|
13
|
+
import"./packager-tool-5z1eg3ea.js";
|
|
14
|
+
import"./packager-tool-v9rrz038.js";
|
|
15
|
+
import"./packager-tool-fjaa8d3v.js";
|
|
16
|
+
import"./packager-tool-f0kd5kq4.js";
|
|
17
|
+
import"./packager-tool-0gctz400.js";
|
|
18
|
+
import"./packager-tool-qa9gftnj.js";
|
|
19
|
+
import"./packager-tool-yc4kw997.js";
|
|
20
|
+
import"./packager-tool-eypvc2kv.js";
|
|
21
|
+
import {
|
|
22
|
+
OutputFormatter,
|
|
23
|
+
PollOutcome,
|
|
24
|
+
catchError,
|
|
25
|
+
isFailureStatus,
|
|
26
|
+
isTerminalStatus,
|
|
27
|
+
msToDuration,
|
|
28
|
+
pollUntil,
|
|
29
|
+
processContext
|
|
30
|
+
} from "./packager-tool-5qaxht3k.js";
|
|
31
|
+
import"./packager-tool-0v3s8r01.js";
|
|
32
|
+
import"./packager-tool-1yh8g550.js";
|
|
33
|
+
|
|
34
|
+
// src/utils/wait-for-flow-job.ts
|
|
35
|
+
function toIsoString(value) {
|
|
36
|
+
if (value == null) {
|
|
37
|
+
return "";
|
|
38
|
+
}
|
|
39
|
+
return value instanceof Date ? value.toISOString() : value;
|
|
40
|
+
}
|
|
41
|
+
async function waitForFlowJob(jobKey, options) {
|
|
42
|
+
return pollUntil({
|
|
43
|
+
fn: () => getJobStatusDetailed(options.config, jobKey),
|
|
44
|
+
until: (job) => isTerminalStatus(job.state),
|
|
45
|
+
getStatus: (job) => job.state,
|
|
46
|
+
label: `job ${jobKey}`,
|
|
47
|
+
logPrefix: "flow",
|
|
48
|
+
intervalMs: options.intervalMs ?? DEFAULT_INTERVAL_MS,
|
|
49
|
+
timeoutMs: options.timeoutMs ?? DEFAULT_TIMEOUT_MS,
|
|
50
|
+
signal: processContext.pollSignal
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
async function handleFlowJobWait(jobKey, options) {
|
|
54
|
+
const [waitError, result] = await catchError(waitForFlowJob(jobKey, options));
|
|
55
|
+
if (waitError) {
|
|
56
|
+
OutputFormatter.error({
|
|
57
|
+
Result: "Failure",
|
|
58
|
+
Message: "Error waiting for job",
|
|
59
|
+
Instructions: waitError.message
|
|
60
|
+
});
|
|
61
|
+
processContext.exit(1);
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
if (result.outcome === PollOutcome.Completed) {
|
|
65
|
+
if (!result.data) {
|
|
66
|
+
OutputFormatter.error({
|
|
67
|
+
Result: "Failure",
|
|
68
|
+
Message: `Job '${jobKey}' completed but returned no data.`,
|
|
69
|
+
Instructions: "Check job status manually."
|
|
70
|
+
});
|
|
71
|
+
processContext.exit(1);
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
const job = result.data;
|
|
75
|
+
if (isFailureStatus(job.state)) {
|
|
76
|
+
OutputFormatter.error({
|
|
77
|
+
Result: "Failure",
|
|
78
|
+
Message: `Job reached terminal failure state: ${job.state}`,
|
|
79
|
+
Instructions: job.info || "Check job logs for details."
|
|
80
|
+
});
|
|
81
|
+
processContext.exit(1);
|
|
82
|
+
return;
|
|
83
|
+
}
|
|
84
|
+
OutputFormatter.success({
|
|
85
|
+
Result: "Success",
|
|
86
|
+
Code: "FlowJobWaitComplete",
|
|
87
|
+
Data: {
|
|
88
|
+
Key: job.key,
|
|
89
|
+
State: job.state,
|
|
90
|
+
Duration: msToDuration(result.elapsedMs),
|
|
91
|
+
StartTime: toIsoString(job.startTime),
|
|
92
|
+
EndTime: toIsoString(job.endTime)
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
processContext.exit(0);
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const lastStatus = result.data?.state ?? "unknown";
|
|
99
|
+
const EXIT_CODES = {
|
|
100
|
+
[PollOutcome.Timeout]: 2,
|
|
101
|
+
[PollOutcome.Failed]: 1,
|
|
102
|
+
[PollOutcome.Interrupted]: 1,
|
|
103
|
+
[PollOutcome.Aborted]: 1
|
|
104
|
+
};
|
|
105
|
+
const messages = {
|
|
106
|
+
[PollOutcome.Timeout]: `Timed out after ${Math.round(result.elapsedMs / 1000)}s. Last status: ${lastStatus}`,
|
|
107
|
+
[PollOutcome.Failed]: `Polling failed: ${result.error?.message ?? "too many consecutive errors"}`,
|
|
108
|
+
[PollOutcome.Interrupted]: `Interrupted. Last status: ${lastStatus}`,
|
|
109
|
+
[PollOutcome.Aborted]: `Polling aborted for job '${jobKey}'.`
|
|
110
|
+
};
|
|
111
|
+
const pendingSeconds = result.outcome === PollOutcome.Timeout ? pendingSecondsFor(result.data?.state, result.data?.creationTime) : undefined;
|
|
112
|
+
const slowPendingSeconds = pendingSeconds !== undefined && pendingSeconds >= PENDING_NORMAL_SECONDS ? pendingSeconds : undefined;
|
|
113
|
+
const failure = {
|
|
114
|
+
Result: "Failure",
|
|
115
|
+
Message: messages[result.outcome] ?? `Polling failed for job '${jobKey}'.`,
|
|
116
|
+
Instructions: slowPendingSeconds !== undefined ? pendingStallInstructions(slowPendingSeconds) : result.outcome === PollOutcome.Timeout ? "Increase --timeout or check the job status manually." : "Check job logs for details."
|
|
117
|
+
};
|
|
118
|
+
if (result.outcome === PollOutcome.Timeout) {
|
|
119
|
+
failure.ErrorCode = "timeout";
|
|
120
|
+
if (pendingSeconds !== undefined && pendingSeconds >= PENDING_STALLED_SECONDS) {
|
|
121
|
+
failure.Retry = "RetryWillNotFix";
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
OutputFormatter.error(failure);
|
|
125
|
+
processContext.exit(EXIT_CODES[result.outcome] ?? 1);
|
|
126
|
+
}
|
|
127
|
+
export {
|
|
128
|
+
DEFAULT_INTERVAL_MS,
|
|
129
|
+
DEFAULT_TIMEOUT_MS,
|
|
130
|
+
handleFlowJobWait,
|
|
131
|
+
waitForFlowJob
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
//# debugId=B4069F720472708A64756E2164756E21
|