@uipath/flow-tool 1.206.0-preview.303 → 1.207.0-preview.305
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/THIRD-PARTY-NOTICES.md +13 -13
- package/dist/{applicationinsights-web-8m26566f.js → applicationinsights-web-c6epsatg.js} +1 -1
- package/dist/{authoring-az69rn0j.js → authoring-f5ttjy3d.js} +5 -5
- package/dist/{binding-service-zg19e6vy.js → binding-service-qfbtg6qy.js} +37 -34
- package/dist/{browser-strategy-gnftxwsf.js → browser-strategy-1nk8hgcf.js} +1 -1
- package/dist/case-catalog-h4fjn6q3.js +304 -0
- package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
- package/dist/{connector-service-e99tdk52.js → connector-service-8t5swsf9.js} +156 -76
- package/dist/{conversion-7O2PDOQB-2677ata3.js → conversion-A2KZVSOA-s70m4p50.js} +256 -90
- package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
- package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-NX7YTOSY-4f0r23sx.js} +1282 -10
- package/dist/{de-2BEKRUMY-MD7L477H-nan48spf.js → de-HF4GJ4EK-xrrajtht.js} +1277 -15
- package/dist/{de-VQWT6L5Y-mch4qwyv.js → de-IQ44WEAK-ayb953tp.js} +19 -4
- package/dist/{de-3CU65EDB-r7r10am9.js → de-T4OCQPNU-hrqdjart.js} +6 -6
- package/dist/{debug-conversation-trigger-62ebex43.js → debug-conversation-trigger-j20ms2xc.js} +4 -9
- package/dist/{debug-http-client-ykzhg1zx.js → debug-http-client-fypqjmfs.js} +6 -5
- package/dist/{debug-service-xq8vhrkq.js → debug-service-zv5hj0cx.js} +11 -6
- package/dist/{edge-service-ytvdz98e.js → edge-service-706zfmyb.js} +41 -31
- package/dist/{elk.bundled-phy0zc81.js → elk.bundled-pfmz610v.js} +1 -1
- package/dist/{en-LAVDF7IQ-ba7wzsxp.js → en-5JIPZTS5-v0f9wmd2.js} +4 -2
- package/dist/{en-X6T4SP2Y-FPGCJIFV-jgjgvnws.js → en-ETY46SDS-RI6EZCN6-g3n0v4ff.js} +67 -3
- package/dist/{en-X6T4SP2Y-xe57av1w.js → en-ETY46SDS-yfqhqvbx.js} +66 -2
- package/dist/{en-WPCQ4JKF-nr4tr5vp.js → en-JZXY3PYE-9q1q9w7h.js} +4 -4
- package/dist/{en-LQHKFSEY-vv8bbfdf.js → en-LQHKFSEY-j7gk3aaw.js} +1 -1
- package/dist/{en-U2NSIIZN-whenw6wh.js → en-T6VSEF3E-1hq4zfrt.js} +5 -3
- package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
- package/dist/{es-7ZTQTGKN-TXQBFYRA-n0bw44wg.js → es-IYP2OLUY-7SKYGF6A-jp5kcwrd.js} +1272 -11
- package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
- package/dist/{es-MX-S2RFDGDE-x9r0tv30.js → es-MX-A2DFN7CA-q5m62f60.js} +19 -4
- package/dist/{es-MX-IHGRIEWH-23X37OPS-zmw94959.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -15
- package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-D74A6FRL-1r3g7760.js} +1281 -10
- package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
- package/dist/{es-MX-F7ZEHSNE-gxpm47vv.js → es-MX-YQNHSXDT-fd5ybreb.js} +6 -6
- package/dist/{es-EP563JWQ-1agj5n4e.js → es-TNUPGHGG-886me0sq.js} +19 -4
- package/dist/{es-KHVY67FO-natcvmmm.js → es-YHECPVFB-7jsrxa01.js} +6 -6
- package/dist/extraction-availability-service-h08mngty.js +343 -0
- package/dist/{flow-api-1hr7z6qc.js → flow-api-bmg7beey.js} +15 -12
- package/dist/{flow-debug-service-p5w8gj48.js → flow-debug-service-bppp59pe.js} +232 -156
- package/dist/flow-eval-node-target-hc9n1913.js +31 -0
- package/dist/flow-eval-run-api-g6sphtf3.js +11 -0
- package/dist/{flow-eval-run-service-ej6xg2jd.js → flow-eval-run-service-qdtz7ec7.js} +116 -119
- package/dist/{flow-eval-service-vf73ejad.js → flow-eval-service-mg7gveh3.js} +141 -337
- package/dist/{flow-init-sdk-source-vg1ckdrf.js → flow-init-sdk-source-t2q2w6v7.js} +5 -5
- package/dist/flow-init-service-0m5yp9fe.js +27 -0
- package/dist/flow-io-c8b17vbx.js +29 -0
- package/dist/{flow-migrate-service-fsxzyj9c.js → flow-migrate-service-a8s4rmq6.js} +20 -20
- package/dist/{flow-pack-service-09b385hw.js → flow-pack-service-jhr4rmsy.js} +89 -90
- package/dist/flow-validate-service-hpt8dqyr.js +49 -0
- package/dist/{fr-7LK3QUWT-a94yejcs.js → fr-EPBGOBOP-rs7qy97k.js} +19 -4
- package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-3ANDQPI3-993fw1pz.js} +1282 -10
- package/dist/{fr-7ZDL4MVO-CXMRZDOF-y6pa4ntx.js → fr-NISALSPL-vzfmygd7.js} +1277 -15
- package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
- package/dist/{fr-I42FODC5-p80x5v4b.js → fr-W3AFCEDL-cjfr0xqp.js} +6 -6
- package/dist/{governance-fetcher-v88cz998.js → governance-fetcher-hkm1hvn0.js} +7 -7
- package/dist/{headless-41t9wwb7.js → headless-23ywyx9h.js} +390 -195
- package/dist/{hitl-service-5symf9as.js → hitl-service-hs54d6tt.js} +11 -11
- package/dist/index-7enyyjxr.js +161 -0
- package/dist/{index-wss1mf5j.js → index-b02kt4sx.js} +114 -68
- package/dist/{index-qjarp6ky.js → index-cg965dhq.js} +34 -27
- package/dist/{index-t2f7scza.js → index-db1djbzm.js} +12 -8
- package/dist/{index-r44xc976.js → index-eyjrdzgx.js} +5 -5
- package/dist/{index-7fet3f0s.js → index-h67w2p9p.js} +3 -3
- package/dist/{index-f5kq7265.js → index-r6crd7tx.js} +6 -4
- package/dist/{index-ng011fzs.js → index-r6y07e14.js} +94 -74
- package/dist/{index-5pzp2qeb.js → index-v3w1930f.js} +18 -18
- package/dist/{index-d4bdedx3.js → index-ynw2efd8.js} +6 -4
- package/dist/{index-2methrrt.js → index-zemcat7k.js} +13 -11
- package/dist/index.js +16 -14
- package/dist/{index.umd.min-ttg1qc0x.js → index.umd.min-5yxdz5j3.js} +1 -1
- package/dist/init.js +18 -17
- package/dist/{inline-entity-resolver-pya7frj9.js → inline-entity-resolver-9esjm2e7.js} +11 -11
- package/dist/input-reader-3zvbsn6a.js +12 -0
- package/dist/integration-service-fetcher-h6er48b7.js +65 -0
- package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
- package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
- package/dist/{ja-LGAM5HKR-NTPKIZEM-mrdn9rvy.js → ja-HTS2Q4YG-7Q6WUI6H-6e5nzy0t.js} +1278 -11
- package/dist/{ja-WY2W6733-ayr36h1f.js → ja-HWFIXC2V-gg9xvhsv.js} +19 -4
- package/dist/{ja-GI3OUHPZ-28fy60r0.js → ja-WOANIGX4-qnyzk2t8.js} +6 -6
- package/dist/{jmespath-wwym30dp.js → jmespath-dbsejrwn.js} +1 -1
- package/dist/json-input-pj18qjt0.js +17 -0
- package/dist/{known-types-v9sxcq1c.js → known-types-pen5h5kz.js} +4 -4
- package/dist/{ko-7B4SUZB7-2SLI636D-479c9akr.js → ko-3JFGTMNY-VT6UQ3IS-5a2hnf97.js} +1272 -11
- package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
- package/dist/{ko-H2RGQWKJ-9696w762.js → ko-L3BMYD3Q-exfhqfbh.js} +19 -4
- package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
- package/dist/{ko-RYKAL74T-10m4z8vw.js → ko-RMOVRC7M-whyynn7n.js} +6 -6
- package/dist/library-option-9fqvdh8v.js +14 -0
- package/dist/localization-axzmx1mb.js +45 -0
- package/dist/{maestro-automate-entry-d1v5q5mv.js → maestro-automate-entry-mrap5xmt.js} +2 -2
- package/dist/manifest-hmeqvk74.js +60 -0
- package/dist/node-service-bq7m24js.js +65 -0
- package/dist/{node-strategy-wrjxmbzt.js → node-strategy-2r78gtca.js} +2 -2
- package/dist/{node-sync-service-z3gjn1a6.js → node-sync-service-6v7j8m4p.js} +22 -15
- package/dist/node-xzwyr0mf.js +172 -0
- package/dist/{packager-tool-h44jmvjd.js → packager-tool-0g2grsn8.js} +2 -2
- package/dist/packager-tool-0x8g8b5r.js +25 -0
- package/dist/packager-tool-13mmsykc.js +125 -0
- package/dist/{packager-tool-vgrswa8p.js → packager-tool-1db1wqdy.js} +30 -8
- package/dist/packager-tool-1yew22sn.js +9 -0
- package/dist/packager-tool-2devymwf.js +423 -0
- package/dist/{packager-tool-14rdgz3c.js → packager-tool-3sxg16ft.js} +7 -7
- package/dist/packager-tool-40bxn7j2.js +63 -0
- package/dist/{packager-tool-6an893wm.js → packager-tool-4f4jp7ez.js} +3 -3
- package/dist/{packager-tool-pxq0bwp0.js → packager-tool-4hn7v05x.js} +16 -9
- package/dist/packager-tool-4skf6ak1.js +31 -0
- package/dist/{packager-tool-951nhh3e.js → packager-tool-5n1v6y3q.js} +1 -1
- package/dist/{packager-tool-2b0tn4p4.js → packager-tool-6azsz9h8.js} +7 -7
- package/dist/{packager-tool-54jdtyk4.js → packager-tool-7d6y5paj.js} +11 -11
- package/dist/{packager-tool-ac6rvny7.js → packager-tool-7re5d8aq.js} +1139 -466
- package/dist/{packager-tool-6an563h8.js → packager-tool-7wpb19zf.js} +10 -3
- package/dist/packager-tool-9tv5cyhr.js +16 -0
- package/dist/{packager-tool-7atc775f.js → packager-tool-ajx79m52.js} +1 -1
- package/dist/{packager-tool-96es3aqy.js → packager-tool-asfftv7z.js} +330 -902
- package/dist/{packager-tool-zx162jbb.js → packager-tool-b0prefcm.js} +489 -118
- package/dist/packager-tool-bbq5kbb9.js +318 -0
- package/dist/{packager-tool-xhrm7cgz.js → packager-tool-bcsjm5hv.js} +470 -315
- package/dist/{packager-tool-xdaxdc00.js → packager-tool-bn09xgy8.js} +14 -14
- package/dist/{packager-tool-1qg04b7q.js → packager-tool-bzcphfa8.js} +4 -2
- package/dist/{node-vz9f9wqw.js → packager-tool-cpbsp04w.js} +189 -285
- package/dist/{packager-tool-gdpw0daf.js → packager-tool-dmhmcav3.js} +3773 -2625
- package/dist/{packager-tool-m1y5ah6s.js → packager-tool-f3htkspn.js} +215 -233
- package/dist/{packager-tool-710j2ga4.js → packager-tool-f4pvpaw2.js} +1123 -295
- package/dist/packager-tool-geh2qybm.js +179 -0
- package/dist/{packager-tool-1rhch6b5.js → packager-tool-gjjr2a2w.js} +66 -19
- package/dist/packager-tool-h0gzqmya.js +224 -0
- package/dist/packager-tool-h9f2vjwg.js +40 -0
- package/dist/{packager-tool-ndenq8jp.js → packager-tool-jf4m7sqc.js} +23 -9
- package/dist/{packager-tool-swn9mp69.js → packager-tool-jghqgdmm.js} +228 -487
- package/dist/{packager-tool-64r7e4ek.js → packager-tool-jjnfwfd4.js} +2 -2
- package/dist/packager-tool-kh1taypp.js +41 -0
- package/dist/{packager-tool-pdt4jmnw.js → packager-tool-m2h98d2z.js} +246 -61
- package/dist/packager-tool-m8avdf10.js +1060 -0
- package/dist/{packager-tool-g18z2qds.js → packager-tool-ma1z6nqe.js} +2 -2
- package/dist/{packager-tool-9m5vba43.js → packager-tool-md1vcqh4.js} +233 -14
- package/dist/{packager-tool-4g87fbz6.js → packager-tool-mm6a12y4.js} +8 -8
- package/dist/{packager-tool-2n6eg5eq.js → packager-tool-mvzswn9n.js} +134 -68
- package/dist/packager-tool-p8ncdnsj.js +30 -0
- package/dist/{packager-tool-vdp3s2fb.js → packager-tool-px52tjy2.js} +9 -7
- package/dist/{packager-tool-rfs464c3.js → packager-tool-qf08dexq.js} +584 -651
- package/dist/{packager-tool-m126jzdd.js → packager-tool-qkdbfkev.js} +14 -11
- package/dist/{packager-tool-7mxn3e7j.js → packager-tool-qtz83h01.js} +4 -2
- package/dist/{packager-tool-hk0fnvz5.js → packager-tool-qx8wvedy.js} +1 -1
- package/dist/{packager-tool-q2kwk5bf.js → packager-tool-qyhvgenw.js} +6 -4
- package/dist/{packager-tool-6pyaaxzk.js → packager-tool-rcjtmknf.js} +351 -42
- package/dist/packager-tool-swvgkcq7.js +5973 -0
- package/dist/{packager-tool-fzgfb0jt.js → packager-tool-t0e7fvqz.js} +1228 -759
- package/dist/{packager-tool-p123mtfx.js → packager-tool-tgawhrva.js} +58 -16
- package/dist/{packager-tool-s4zvbgvd.js → packager-tool-tm4d12jb.js} +15328 -7171
- package/dist/{packager-tool-8ra2qxqe.js → packager-tool-v7gxvkpx.js} +13 -13
- package/dist/{packager-tool-yewnsyag.js → packager-tool-vg16h3pk.js} +80 -6
- package/dist/packager-tool-w2eqf95v.js +16 -0
- package/dist/packager-tool-wvf6b31h.js +50 -0
- package/dist/{packager-tool-ejvmkxgg.js → packager-tool-wz5zmx67.js} +10 -10
- package/dist/packager-tool-xgh2t48c.js +255 -0
- package/dist/{packager-tool-w9bkq7zb.js → packager-tool-xgvp8a8g.js} +10 -10
- package/dist/{packager-tool-sehmpn8j.js → packager-tool-y84mhf89.js} +8 -8
- package/dist/packager-tool-ys7jsqhg.js +184 -0
- package/dist/{packager-tool-ze3fnf3s.js → packager-tool-zap4kd3z.js} +7 -2
- package/dist/{packager-tool-6g2ex7yf.js → packager-tool-zgm6kh18.js} +21 -21
- package/dist/{packager-tool-dr3zc9n9.js → packager-tool-zgzpqfcs.js} +13 -6
- package/dist/packager-tool.js +9 -9
- package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-8frvq826.js} +39 -6
- package/dist/provision-node-service-sxnfgrwy.js +86 -0
- package/dist/{pt-2RGHDOG4-gwe2ptvg.js → pt-6RCFX6CY-v42k92ey.js} +19 -4
- package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
- package/dist/{pt-BR-PHLFHMXZ-JFPKUXIZ-1k5yafmz.js → pt-BR-7H7BP5DT-IOHWNCIU-pbdnhe7r.js} +1277 -11
- package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
- package/dist/{pt-BR-JWHVZE6H-gvkknv49.js → pt-BR-HDVM5NFA-azfx4gg9.js} +19 -4
- package/dist/{pt-BR-IL3KLBID-m1mvqqzb.js → pt-BR-HJIMGPPX-s18rb4vg.js} +6 -6
- package/dist/{pt-VLA5IOHO-8t4pze0h.js → pt-DZG5FPWK-6czrqk2t.js} +6 -6
- package/dist/{pt-N7ZTJT4W-GVODJMRX-jge952w8.js → pt-QWGSZKMD-RTKSQCYA-80hp6e1q.js} +1272 -11
- package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
- package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
- package/dist/{ro-FLNXVYJI-ZN43XZKK-bmkd7d2n.js → ro-B7G474JK-9k2jjk88.js} +1271 -15
- package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-Q3BAA4S3-t47bbx2a.js} +1276 -10
- package/dist/{ro-53TS7SWG-hnjx1c7b.js → ro-EEKX2X3R-tz9prn67.js} +19 -4
- package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
- package/dist/{ro-IRNFX376-mh84zk3n.js → ro-SX7RUXGR-kknxsr3g.js} +6 -6
- package/dist/ru-FNRVPXE5-7q150qf8.js +7 -0
- package/dist/ru-GSCT4ARZ-6OTD7JLB-cdcpfwx0.js +12 -0
- package/dist/schema-document-service-mknqzg7e.js +30 -0
- package/dist/{serialization-Z3UYT6BW-e1ks0ytt.js → serialization-7CB4AREI-6b7ng26y.js} +482 -6161
- package/dist/services/binding-id-rule.d.ts +13 -0
- package/dist/services/binding-resource-types.d.ts +12 -0
- package/dist/services/extract-schema/default-schema-document.d.ts +9 -4
- package/dist/services/extract-schema/types.d.ts +73 -0
- package/dist/services/extract-schema/validate-schema-document.d.ts +75 -0
- package/dist/services/flow-scopes.d.ts +15 -0
- package/dist/services/flow-structure-checks.d.ts +8 -0
- package/dist/services/flow-validate-service.d.ts +44 -11
- package/dist/services/idp-processor-provisioning.d.ts +35 -0
- package/dist/services/node-service.d.ts +17 -23
- package/dist/services/node-validators/extract-schema-validator.d.ts +13 -0
- package/dist/services/node-validators/index.d.ts +1 -0
- package/dist/services/node-validators/js-expression-syntax-validator.d.ts +2 -1
- package/dist/services/node-validators/types.d.ts +2 -7
- package/dist/services/vars-reference-rule.d.ts +6 -0
- package/dist/solution-auth-k0s83ake.js +11 -0
- package/dist/{solution-discovery-wwwynadq.js → solution-discovery-v5qatmz2.js} +7 -7
- package/dist/taggable-variables-nc8td6er.js +134 -0
- package/dist/{tidy-service-0xqfd039.js → tidy-service-rsxb2h63.js} +17 -18
- package/dist/tool.js +16 -14
- package/dist/{tr-PIQY7JIT-2mkwk0kq.js → tr-B6TLBSLH-1797wxkh.js} +19 -4
- package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-CEOTUJRD-5ctjnkng.js} +1276 -10
- package/dist/{tr-7AIZZWZ6-ESAESUPL-0ehs3crp.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -15
- package/dist/{tr-EJKY7DVQ-rkctqva4.js → tr-OUB57VJ6-52t7zdzb.js} +6 -6
- package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
- package/dist/utils/handle-expansion.d.ts +2 -2
- package/dist/validation.js +42 -39
- package/dist/{variable-service-wek1apw7.js → variable-service-95j5nyjh.js} +17 -12
- package/dist/{wait-for-flow-job-vy4t4tbj.js → wait-for-flow-job-k990nmdn.js} +15 -12
- package/dist/{zh-CN-NIEVKROA-q4tbbwqz.js → zh-CN-7KN22KSH-mwvgyym6.js} +19 -4
- package/dist/{zh-CN-4FH7E7UL-84y6j2ea.js → zh-CN-FKWWWLFR-n15rj6p8.js} +6 -6
- package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
- package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-BB2LRIMQ-phrmedm3.js} +1276 -10
- package/dist/{zh-CN-CN2ARPFS-NIQTWDK2-zmcqpd02.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -15
- package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
- package/dist/{zh-TW-5WQA6QTM-hns69sd4.js → zh-TW-52QTEYIZ-2mj7hy3e.js} +6 -6
- package/dist/{zh-TW-MSQM7YTT-m7r7nwnj.js → zh-TW-I7BH3XP2-7rb4xpzg.js} +19 -4
- package/dist/{zh-TW-7RUFEVFK-VKVRSVTP-dg651ga1.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -16
- package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-ECGOEPYS-xxye2kfv.js} +1277 -11
- package/package.json +2 -2
- package/dist/flow-eval-node-target-xxzqch9z.js +0 -29
- package/dist/flow-eval-run-api-w4j8ra60.js +0 -9
- package/dist/flow-init-service-1zyc9wcd.js +0 -26
- package/dist/flow-io-27atafz4.js +0 -24
- package/dist/flow-validate-service-6erwscc6.js +0 -46
- package/dist/input-reader-jjq3r7ry.js +0 -11
- package/dist/localization-erchshqr.js +0 -45
- package/dist/node-service-qtpqs5en.js +0 -64
- package/dist/packager-tool-2sazb7th.js +0 -2
- package/dist/packager-tool-9217bxm2.js +0 -6
- package/dist/packager-tool-cvh1a0nm.js +0 -16
- package/dist/packager-tool-d07g2kpn.js +0 -25
- package/dist/packager-tool-f7rk9xhv.js +0 -50
- package/dist/packager-tool-f9mgybn8.js +0 -18
- package/dist/packager-tool-jd3v0bh1.js +0 -26
- package/dist/packager-tool-k3egwd1m.js +0 -15
- package/dist/packager-tool-q0f1dvtd.js +0 -40
- package/dist/packager-tool-q756a7tg.js +0 -56
- package/dist/packager-tool-wr7gn964.js +0 -2
- package/dist/packager-tool-zw2zy3h2.js +0 -461
- package/dist/ru-GSCT4ARZ-FTVCGQTL-p9re6ys2.js +0 -12
- package/dist/ru-T73OPRTC-50m7tty9.js +0 -7
- package/dist/services/connector-request-buckets.d.ts +0 -1
- package/dist/services/flow-eval-file-store.d.ts +0 -1
- package/dist/services/inline-entity-resolver.d.ts +0 -22
- package/dist/services/packaging-utils.d.ts +0 -130
- package/dist/services/preview-id-rule.d.ts +0 -33
- package/dist/services/ui-only-node-types.d.ts +0 -1
- package/dist/solution-auth-j8x84n5z.js +0 -11
- package/dist/utils/flow-io.d.ts +0 -19
- package/dist/utils/workflow-file-format.d.ts +0 -14
|
@@ -1,135 +1,92 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-1db1wqdy.js";
|
|
4
4
|
import {
|
|
5
5
|
catchError2
|
|
6
|
-
} from "./packager-tool-
|
|
6
|
+
} from "./packager-tool-4hn7v05x.js";
|
|
7
7
|
import {
|
|
8
8
|
logger
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-bcsjm5hv.js";
|
|
10
10
|
import {
|
|
11
|
-
isConversationalOrVoiceAgentNodeType2,
|
|
12
|
-
isVoiceAgentNodeType2,
|
|
13
11
|
DYNAMIC_EXTRACT_NODE_TYPE2,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
generateOperateJson2,
|
|
19
|
-
generateBindingsJson2,
|
|
20
|
-
generateEntryPointsJson2,
|
|
21
|
-
mergeBindingResources2
|
|
22
|
-
} from "./packager-tool-fzgfb0jt.js";
|
|
12
|
+
isSubflowNodeType2,
|
|
13
|
+
isConversationalOrVoiceAgentNodeType2,
|
|
14
|
+
isVoiceAgentNodeType2
|
|
15
|
+
} from "./packager-tool-t0e7fvqz.js";
|
|
23
16
|
import {
|
|
24
17
|
createBinding2,
|
|
25
18
|
generateNodeIdAndName2,
|
|
19
|
+
normalizeIdentifier2,
|
|
20
|
+
validateIdentifier2,
|
|
26
21
|
addNode2,
|
|
27
22
|
addBinding2
|
|
28
|
-
} from "./packager-tool-
|
|
23
|
+
} from "./packager-tool-6azsz9h8.js";
|
|
24
|
+
import {
|
|
25
|
+
buildExtractDocumentBuilderNode2
|
|
26
|
+
} from "./packager-tool-dmhmcav3.js";
|
|
29
27
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
extractProcessGuid2,
|
|
29
|
+
createProcessBindings2,
|
|
30
|
+
isBareProjectIdSource2,
|
|
31
|
+
agentJsonReader2,
|
|
32
|
+
isInlineAgentNodeType2,
|
|
33
|
+
INLINE_AGENT_STRUCTURAL_INPUT_KEYS2,
|
|
34
|
+
agentOutputVariablesFromSchema2,
|
|
35
|
+
reconcileInlineAgentInputVariables2,
|
|
36
|
+
isEntityNodeType2,
|
|
37
|
+
entityScopeKey2
|
|
38
|
+
} from "./packager-tool-tm4d12jb.js";
|
|
32
39
|
import {
|
|
40
|
+
readFlowWorkflow2,
|
|
41
|
+
writeFlowWorkflow2
|
|
42
|
+
} from "./packager-tool-h9f2vjwg.js";
|
|
43
|
+
import {
|
|
44
|
+
resolveInlineEntity2
|
|
45
|
+
} from "./packager-tool-wz5zmx67.js";
|
|
46
|
+
import {
|
|
47
|
+
REQUEST_BUCKETS,
|
|
33
48
|
isConnectorNode2,
|
|
34
|
-
getConnectorInfo2
|
|
35
|
-
|
|
36
|
-
isTenantManifestUnavailableError2,
|
|
37
|
-
getNode2
|
|
38
|
-
} from "./packager-tool-96es3aqy.js";
|
|
49
|
+
getConnectorInfo2
|
|
50
|
+
} from "./packager-tool-asfftv7z.js";
|
|
39
51
|
import {
|
|
40
52
|
isKnownSdkNodeType2
|
|
41
|
-
} from "./packager-tool-
|
|
53
|
+
} from "./packager-tool-4skf6ak1.js";
|
|
42
54
|
import {
|
|
43
55
|
explainNodeTypeWithoutProcessResource2
|
|
44
|
-
} from "./packager-tool-
|
|
45
|
-
import {
|
|
46
|
-
buildInlineAgentContract,
|
|
47
|
-
extractProcessGuid,
|
|
48
|
-
createProcessBindings,
|
|
49
|
-
bindingNodesOf,
|
|
50
|
-
allNodesOf,
|
|
51
|
-
readInlineAgentSource,
|
|
52
|
-
isBareProjectIdSource,
|
|
53
|
-
agentJsonReader,
|
|
54
|
-
isInlineAgentNodeType,
|
|
55
|
-
INLINE_AGENT_STRUCTURAL_INPUT_KEYS,
|
|
56
|
-
agentOutputVariablesFromSchema,
|
|
57
|
-
reconcileInlineAgentInputVariables,
|
|
58
|
-
isEntityNodeType,
|
|
59
|
-
entityScopeKey,
|
|
60
|
-
operateRuntimeOptions
|
|
61
|
-
} from "./packager-tool-s4zvbgvd.js";
|
|
56
|
+
} from "./packager-tool-bn09xgy8.js";
|
|
62
57
|
import {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
} from "./packager-tool-ejvmkxgg.js";
|
|
58
|
+
isTenantManifestInvalidError2,
|
|
59
|
+
isTenantManifestUnavailableError2,
|
|
60
|
+
gatedNodeFailure2,
|
|
61
|
+
getNode2
|
|
62
|
+
} from "./packager-tool-m8avdf10.js";
|
|
69
63
|
import {
|
|
70
64
|
findNodeDefinition,
|
|
71
|
-
ensureDirectory,
|
|
72
65
|
findMatchingDefinition
|
|
73
|
-
} from "./packager-tool-
|
|
66
|
+
} from "./packager-tool-7re5d8aq.js";
|
|
74
67
|
import {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
} from "./packager-tool-
|
|
68
|
+
buildDefaultSchemaDocument,
|
|
69
|
+
provisionIdpProcessorForNode
|
|
70
|
+
} from "./packager-tool-ys7jsqhg.js";
|
|
78
71
|
import {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
"ft-inferred-text": {
|
|
98
|
-
title: "Inferred Text",
|
|
99
|
-
type: ["string", "null"]
|
|
100
|
-
},
|
|
101
|
-
"ft-date": {
|
|
102
|
-
title: "Date",
|
|
103
|
-
type: ["string", "null"],
|
|
104
|
-
format: "date"
|
|
105
|
-
},
|
|
106
|
-
"ft-number": {
|
|
107
|
-
title: "Number",
|
|
108
|
-
type: ["string", "null"],
|
|
109
|
-
format: "decimal"
|
|
110
|
-
},
|
|
111
|
-
"ft-monetary-quantity": {
|
|
112
|
-
title: "Monetary Quantity",
|
|
113
|
-
type: ["string", "null"],
|
|
114
|
-
format: "monetary"
|
|
115
|
-
},
|
|
116
|
-
"ft-boolean": {
|
|
117
|
-
title: "Boolean",
|
|
118
|
-
type: ["boolean", "null"]
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
function buildDefaultSchemaDocument() {
|
|
122
|
-
return {
|
|
123
|
-
prompt: "",
|
|
124
|
-
outputSchema: {
|
|
125
|
-
type: "object",
|
|
126
|
-
additionalProperties: false,
|
|
127
|
-
required: [],
|
|
128
|
-
properties: {},
|
|
129
|
-
$defs: structuredClone(DEFAULT_FIELD_TYPE_DEFINITIONS)
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
}
|
|
72
|
+
scopeOfNode,
|
|
73
|
+
allNodes,
|
|
74
|
+
graphVariableIds
|
|
75
|
+
} from "./packager-tool-p8ncdnsj.js";
|
|
76
|
+
import {
|
|
77
|
+
regenerateBindingsFile2,
|
|
78
|
+
isProcessNode,
|
|
79
|
+
resolveProcessBindingsInContext
|
|
80
|
+
} from "./packager-tool-13mmsykc.js";
|
|
81
|
+
import {
|
|
82
|
+
CONNECTION_BINDING_RESOURCE2
|
|
83
|
+
} from "./packager-tool-9tv5cyhr.js";
|
|
84
|
+
import {
|
|
85
|
+
findFlowProjectRoot2
|
|
86
|
+
} from "./packager-tool-3sxg16ft.js";
|
|
87
|
+
import {
|
|
88
|
+
generateNodeVariables3
|
|
89
|
+
} from "./packager-tool-mm6a12y4.js";
|
|
133
90
|
|
|
134
91
|
// src/services/inline-activity-service.ts
|
|
135
92
|
import { randomUUID } from "node:crypto";
|
|
@@ -300,7 +257,7 @@ function buildInlineActivityDefinition(args) {
|
|
|
300
257
|
type: "bpmn:SendTask",
|
|
301
258
|
serviceType: "Intsvc.ActivityExecution",
|
|
302
259
|
bindings: {
|
|
303
|
-
resource:
|
|
260
|
+
resource: CONNECTION_BINDING_RESOURCE2,
|
|
304
261
|
resourceKey: "",
|
|
305
262
|
values: [
|
|
306
263
|
{
|
|
@@ -456,257 +413,6 @@ function orchestratorConnectionKey(definitions, node) {
|
|
|
456
413
|
const id = node.inputs?.connectionId;
|
|
457
414
|
return typeof id === "string" && id.length > 0 ? id : undefined;
|
|
458
415
|
}
|
|
459
|
-
|
|
460
|
-
// src/services/packaging-utils.ts
|
|
461
|
-
function fileNodesToPackagingNodes(nodes) {
|
|
462
|
-
return nodes.map((node) => ({
|
|
463
|
-
id: node.id,
|
|
464
|
-
type: node.type,
|
|
465
|
-
typeVersion: node.typeVersion ?? "1.0",
|
|
466
|
-
display: node.display,
|
|
467
|
-
inputs: node.inputs,
|
|
468
|
-
outputs: node.outputs,
|
|
469
|
-
...node.model ? { model: node.model } : {}
|
|
470
|
-
}));
|
|
471
|
-
}
|
|
472
|
-
function flowToPackagingNodes(workflow) {
|
|
473
|
-
return fileNodesToPackagingNodes(bindingNodesOf(workflow));
|
|
474
|
-
}
|
|
475
|
-
function isRecord(value) {
|
|
476
|
-
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
477
|
-
}
|
|
478
|
-
function toResourceList(value) {
|
|
479
|
-
if (!Array.isArray(value))
|
|
480
|
-
return;
|
|
481
|
-
const resources = value.filter(isRecord);
|
|
482
|
-
return resources.length === value.length ? resources : undefined;
|
|
483
|
-
}
|
|
484
|
-
function normalizePackagingBindingsJson(value) {
|
|
485
|
-
if (!isRecord(value))
|
|
486
|
-
return;
|
|
487
|
-
const resources = toResourceList(value.resources);
|
|
488
|
-
if (!resources)
|
|
489
|
-
return;
|
|
490
|
-
return {
|
|
491
|
-
...value,
|
|
492
|
-
version: typeof value.version === "string" ? value.version : "2.0",
|
|
493
|
-
resources
|
|
494
|
-
};
|
|
495
|
-
}
|
|
496
|
-
function emptyPackagingBindingsJson() {
|
|
497
|
-
return { version: "2.0", resources: [] };
|
|
498
|
-
}
|
|
499
|
-
function mergePackagingBindingsJson(bindingsJsons) {
|
|
500
|
-
const first = bindingsJsons.find((bindingsJson) => bindingsJson !== undefined);
|
|
501
|
-
return {
|
|
502
|
-
...first ?? emptyPackagingBindingsJson(),
|
|
503
|
-
resources: mergeBindingResources2(bindingsJsons.flatMap((bindingsJson) => bindingsJson?.resources ?? []))
|
|
504
|
-
};
|
|
505
|
-
}
|
|
506
|
-
var inlineAgentPackagerLogger = {
|
|
507
|
-
debug: (message) => logger.debug(message),
|
|
508
|
-
info: (message) => logger.info(message),
|
|
509
|
-
warn: (message) => logger.warn(message),
|
|
510
|
-
error: (message) => logger.error(message),
|
|
511
|
-
progress: (message) => logger.info(message),
|
|
512
|
-
log: (message, level) => {
|
|
513
|
-
if (level === "Error" /* Error */)
|
|
514
|
-
logger.error(message);
|
|
515
|
-
else if (level === "Warning" /* Warn */)
|
|
516
|
-
logger.warn(message);
|
|
517
|
-
else if (level === "Debug" /* Debug */)
|
|
518
|
-
logger.debug(message);
|
|
519
|
-
else
|
|
520
|
-
logger.info(message);
|
|
521
|
-
},
|
|
522
|
-
logMessage: (message) => inlineAgentPackagerLogger.log(message.message, message.logLevel)
|
|
523
|
-
};
|
|
524
|
-
async function createInlineAgentContract(fs, agentDir) {
|
|
525
|
-
const outputPath = fs.path.join(fs.env.tmpdir(), `.inline-agent-contract-${crypto.randomUUID()}`);
|
|
526
|
-
await fs.mkdir(outputPath);
|
|
527
|
-
try {
|
|
528
|
-
const built = await buildInlineAgentContract({
|
|
529
|
-
fileSystem: fs,
|
|
530
|
-
logger: inlineAgentPackagerLogger,
|
|
531
|
-
projectPath: agentDir,
|
|
532
|
-
outputPath
|
|
533
|
-
});
|
|
534
|
-
const bindingsJson = normalizePackagingBindingsJson(built.bindingsJson);
|
|
535
|
-
if (!bindingsJson) {
|
|
536
|
-
throw new Error("Agent packager returned an invalid binding contract");
|
|
537
|
-
}
|
|
538
|
-
return { agentJson: built.agentJson, bindingsJson };
|
|
539
|
-
} finally {
|
|
540
|
-
const [cleanupError] = await catchError2(fs.rm(outputPath));
|
|
541
|
-
if (cleanupError) {
|
|
542
|
-
logger.debug(`Could not remove inline-agent contract directory ${outputPath}: ${cleanupError.message}`);
|
|
543
|
-
}
|
|
544
|
-
}
|
|
545
|
-
}
|
|
546
|
-
async function inlineAgentExists(fs, projectDir, source) {
|
|
547
|
-
const agentJsonPath = fs.path.join(projectDir, source, "agent.json");
|
|
548
|
-
return fs.exists(agentJsonPath);
|
|
549
|
-
}
|
|
550
|
-
async function packageInlineAgents(fs, projectDir, nodes) {
|
|
551
|
-
const result = [];
|
|
552
|
-
const seen = new Set;
|
|
553
|
-
for (const node of nodes) {
|
|
554
|
-
if (!isInlineAgentNodeType(node.type))
|
|
555
|
-
continue;
|
|
556
|
-
const source = readInlineAgentSource(node);
|
|
557
|
-
if (!source)
|
|
558
|
-
continue;
|
|
559
|
-
if (!isBareProjectIdSource(source))
|
|
560
|
-
continue;
|
|
561
|
-
if (seen.has(source))
|
|
562
|
-
continue;
|
|
563
|
-
seen.add(source);
|
|
564
|
-
if (!await inlineAgentExists(fs, projectDir, source))
|
|
565
|
-
continue;
|
|
566
|
-
const contract = await createInlineAgentContract(fs, fs.path.join(projectDir, source));
|
|
567
|
-
const inputSchema = contract.agentJson.inputSchema ?? {
|
|
568
|
-
type: "object",
|
|
569
|
-
properties: {}
|
|
570
|
-
};
|
|
571
|
-
const outputSchema = contract.agentJson.outputSchema ?? {
|
|
572
|
-
type: "object",
|
|
573
|
-
properties: {}
|
|
574
|
-
};
|
|
575
|
-
result.push({
|
|
576
|
-
source,
|
|
577
|
-
entryPoint: {
|
|
578
|
-
filePath: `content/${source}/agent.json`,
|
|
579
|
-
uniqueId: contract.agentJson.projectId ?? source,
|
|
580
|
-
type: EntryPointType2.Agent,
|
|
581
|
-
input: inputSchema,
|
|
582
|
-
output: outputSchema,
|
|
583
|
-
displayName: contract.agentJson.name ?? "Agent"
|
|
584
|
-
},
|
|
585
|
-
agentJson: contract.agentJson,
|
|
586
|
-
bindingsJson: contract.bindingsJson
|
|
587
|
-
});
|
|
588
|
-
logger.info(`Packaged inline agent "${source}" for entry-points`);
|
|
589
|
-
}
|
|
590
|
-
return result;
|
|
591
|
-
}
|
|
592
|
-
async function stageInlineAgentPackageFiles(fs, sourceProjectPath, stagingProjectDir, inlineAgents, formatLogMessage) {
|
|
593
|
-
for (const agent of inlineAgents) {
|
|
594
|
-
const srcDir = fs.path.join(sourceProjectPath, agent.source);
|
|
595
|
-
const destDir = fs.path.join(stagingProjectDir, agent.source);
|
|
596
|
-
if (fs.path.resolve(srcDir) !== fs.path.resolve(destDir) && await fs.exists(srcDir)) {
|
|
597
|
-
await fs.copyDirectory(srcDir, destDir);
|
|
598
|
-
}
|
|
599
|
-
const agentBuilderDir = fs.path.join(destDir, ".agent-builder");
|
|
600
|
-
await ensureDirectory(fs, agentBuilderDir);
|
|
601
|
-
await fs.writeFile(fs.path.join(agentBuilderDir, "agent.json"), JSON.stringify({
|
|
602
|
-
...agent.agentJson,
|
|
603
|
-
resources: agent.agentJson.resources ?? [],
|
|
604
|
-
features: agent.agentJson.features ?? []
|
|
605
|
-
}, null, 2));
|
|
606
|
-
await fs.writeFile(fs.path.join(agentBuilderDir, "bindings.json"), `${JSON.stringify(agent.bindingsJson ?? emptyPackagingBindingsJson(), null, 2)}
|
|
607
|
-
`);
|
|
608
|
-
logger.info(formatLogMessage(agent.source));
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
function buildInlineAgentDescriptors(nodes) {
|
|
612
|
-
const out = [];
|
|
613
|
-
const seen = new Set;
|
|
614
|
-
for (const node of nodes) {
|
|
615
|
-
if (!isInlineAgentNodeType(node.type))
|
|
616
|
-
continue;
|
|
617
|
-
const source = readInlineAgentSource(node);
|
|
618
|
-
if (!source)
|
|
619
|
-
continue;
|
|
620
|
-
if (seen.has(source))
|
|
621
|
-
continue;
|
|
622
|
-
seen.add(source);
|
|
623
|
-
const label = node.display?.label ?? "Agent";
|
|
624
|
-
out.push({
|
|
625
|
-
name: label,
|
|
626
|
-
agentProjectId: source,
|
|
627
|
-
isConversational: isConversationalOrVoiceAgentNodeType2(node.type),
|
|
628
|
-
entryPointPath: `${source}/agent.json`
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
return out;
|
|
632
|
-
}
|
|
633
|
-
async function writePackagingArtifacts(fs, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions = [], options = {}) {
|
|
634
|
-
const { entryPoints } = await writePackagingArtifactsDetailed(fs, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions, options);
|
|
635
|
-
return entryPoints;
|
|
636
|
-
}
|
|
637
|
-
async function writePackagingArtifactsDetailed(fs, projectDir, projectId, packagingNodes, bindings, variables, bpmnFileName, startEventId, flowFileName, definitions = [], options = {}) {
|
|
638
|
-
const startNodes = options.entryPointNodes ?? packagingNodes;
|
|
639
|
-
const flowEntryPoints = getEntryPoints2(bpmnFileName, startNodes, variables, definitions, ProjectType2.Flow);
|
|
640
|
-
const entryPoints = [
|
|
641
|
-
...flowEntryPoints,
|
|
642
|
-
...options.additionalEntryPoints ?? []
|
|
643
|
-
];
|
|
644
|
-
await fs.writeFile(fs.path.join(projectDir, "entry-points.json"), `${JSON.stringify(generateEntryPointsJson2(entryPoints), null, 2)}
|
|
645
|
-
`);
|
|
646
|
-
const bindingResources = getBindingResources2(packagingNodes, bindings, definitions);
|
|
647
|
-
const bindingsJson = normalizePackagingBindingsJson(generateBindingsJson2(bindingResources)) ?? emptyPackagingBindingsJson();
|
|
648
|
-
const stagedBindingsJson = mergePackagingBindingsJson([
|
|
649
|
-
bindingsJson,
|
|
650
|
-
...options.additionalBindingsJsons ?? []
|
|
651
|
-
]);
|
|
652
|
-
await fs.writeFile(fs.path.join(projectDir, "bindings_v2.json"), `${JSON.stringify(stagedBindingsJson, null, 2)}
|
|
653
|
-
`);
|
|
654
|
-
const mainEntryPoint = `/${bpmnFileName}#${defaultEntryPointNodeId(startNodes) ?? startEventId}`;
|
|
655
|
-
const operateJson = withRuntimeProfile2(generateOperateJson2(projectId, mainEntryPoint, operateRuntimeOptions(startNodes)), options.profile ?? "Standard" /* Standard */);
|
|
656
|
-
await fs.writeFile(fs.path.join(projectDir, "operate.json"), `${JSON.stringify(operateJson, null, 2)}
|
|
657
|
-
`);
|
|
658
|
-
const packageDescriptorJson = options.packageDescriptorJson ?? {
|
|
659
|
-
$schema: "https://cloud.uipath.com/draft/2024-12/package-descriptor",
|
|
660
|
-
files: {
|
|
661
|
-
"operate.json": "operate.json",
|
|
662
|
-
"entry-points.json": "entry-points.json",
|
|
663
|
-
"bindings.json": "bindings_v2.json",
|
|
664
|
-
[bpmnFileName]: bpmnFileName,
|
|
665
|
-
...flowFileName ? { [flowFileName]: flowFileName } : {}
|
|
666
|
-
}
|
|
667
|
-
};
|
|
668
|
-
await fs.writeFile(fs.path.join(projectDir, "package-descriptor.json"), `${JSON.stringify(packageDescriptorJson, null, 2)}
|
|
669
|
-
`);
|
|
670
|
-
return { entryPoints, bindingsJson: stagedBindingsJson };
|
|
671
|
-
}
|
|
672
|
-
function backfillNodeModelsFromDefinitions(nodes, definitions) {
|
|
673
|
-
if (definitions.length === 0)
|
|
674
|
-
return nodes;
|
|
675
|
-
const definitionByType = new Map;
|
|
676
|
-
for (const def of definitions) {
|
|
677
|
-
if (def?.nodeType)
|
|
678
|
-
definitionByType.set(def.nodeType, def);
|
|
679
|
-
}
|
|
680
|
-
return nodes.map((n) => {
|
|
681
|
-
if (n.model)
|
|
682
|
-
return n;
|
|
683
|
-
const def = definitionByType.get(n.type);
|
|
684
|
-
if (!def?.model)
|
|
685
|
-
return n;
|
|
686
|
-
return { ...n, model: def.model };
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
async function regenerateBindingsFile(fs, flowFilePath) {
|
|
690
|
-
const absolutePath = fs.path.resolve(flowFilePath);
|
|
691
|
-
const projectDir = fs.path.dirname(absolutePath);
|
|
692
|
-
const [readErr, read] = await catchError2(readFlowWorkflow2(absolutePath, fs));
|
|
693
|
-
if (readErr) {
|
|
694
|
-
throw new Error(`Failed to read .flow file at ${absolutePath}: ${readErr.message}`);
|
|
695
|
-
}
|
|
696
|
-
const flowData = read.workflow;
|
|
697
|
-
const packagingNodes = backfillNodeModelsFromDefinitions(flowToPackagingNodes(flowData), flowData.definitions ?? []);
|
|
698
|
-
const bindingResources = getBindingResources2(packagingNodes, flowData.bindings ?? [], flowData.definitions ?? []);
|
|
699
|
-
const flowBindingsJson = normalizePackagingBindingsJson(generateBindingsJson2(bindingResources)) ?? emptyPackagingBindingsJson();
|
|
700
|
-
const [agentErr, inlineAgents] = await catchError2(packageInlineAgents(fs, projectDir, allNodesOf(flowData)));
|
|
701
|
-
if (agentErr) {
|
|
702
|
-
logger.warn(`Wrote bindings_v2.json without inline agent tool bindings: ${agentErr.message}`);
|
|
703
|
-
}
|
|
704
|
-
await fs.writeFile(fs.path.join(projectDir, "bindings_v2.json"), `${JSON.stringify(mergePackagingBindingsJson([
|
|
705
|
-
flowBindingsJson,
|
|
706
|
-
...(inlineAgents ?? []).map((agent) => agent.bindingsJson)
|
|
707
|
-
]), null, 2)}
|
|
708
|
-
`);
|
|
709
|
-
}
|
|
710
416
|
// src/services/node-service.ts
|
|
711
417
|
class NodeTypeNotFoundError2 extends Error {
|
|
712
418
|
code = "NodeTypeNotFound";
|
|
@@ -721,10 +427,12 @@ class NodeTypeNotFoundError2 extends Error {
|
|
|
721
427
|
class NodeTypeNotEnabledError2 extends Error {
|
|
722
428
|
code = "NodeTypeNotEnabled";
|
|
723
429
|
instructions;
|
|
724
|
-
|
|
430
|
+
errorCode;
|
|
431
|
+
constructor(message, instructions, errorCode = "not_enabled") {
|
|
725
432
|
super(message);
|
|
726
433
|
this.name = "NodeTypeNotEnabledError";
|
|
727
434
|
this.instructions = instructions;
|
|
435
|
+
this.errorCode = errorCode;
|
|
728
436
|
}
|
|
729
437
|
}
|
|
730
438
|
|
|
@@ -737,9 +445,19 @@ class SourceRequiredError2 extends Error {
|
|
|
737
445
|
this.instructions = instructions;
|
|
738
446
|
}
|
|
739
447
|
}
|
|
448
|
+
|
|
449
|
+
class NodeIdError2 extends Error {
|
|
450
|
+
code = "InvalidNodeId";
|
|
451
|
+
instructions;
|
|
452
|
+
constructor(message, instructions) {
|
|
453
|
+
super(message);
|
|
454
|
+
this.name = "NodeIdError";
|
|
455
|
+
this.instructions = instructions;
|
|
456
|
+
}
|
|
457
|
+
}
|
|
740
458
|
var listNodesInFlow2 = async (filePath) => {
|
|
741
459
|
const { workflow } = await readFlowWorkflow2(filePath);
|
|
742
|
-
const nodes = workflow.
|
|
460
|
+
const nodes = allNodes(workflow).map((n) => ({
|
|
743
461
|
id: n.id,
|
|
744
462
|
type: n.type,
|
|
745
463
|
label: n.display.label ?? "",
|
|
@@ -747,24 +465,15 @@ var listNodesInFlow2 = async (filePath) => {
|
|
|
747
465
|
}));
|
|
748
466
|
return { nodes, count: nodes.length };
|
|
749
467
|
};
|
|
750
|
-
var PROCESS_NODE_PREFIXES = [
|
|
751
|
-
"uipath.core.rpa-workflow.",
|
|
752
|
-
"uipath.agent.resource.tool.process.",
|
|
753
|
-
"uipath.core.agent.",
|
|
754
|
-
"uipath.core.api-workflow."
|
|
755
|
-
];
|
|
756
|
-
function isProcessNode2(manifest) {
|
|
757
|
-
return PROCESS_NODE_PREFIXES.some((prefix) => manifest.nodeType?.startsWith(prefix));
|
|
758
|
-
}
|
|
759
468
|
function isEntityNode2(manifest) {
|
|
760
|
-
return
|
|
469
|
+
return isEntityNodeType2(manifest.nodeType);
|
|
761
470
|
}
|
|
762
471
|
function createEntityBindings2(node) {
|
|
763
472
|
const entityConfig = node.inputs?.entityConfig;
|
|
764
473
|
const entityName = entityConfig?.entityName;
|
|
765
474
|
if (typeof entityName !== "string" || entityName === "")
|
|
766
475
|
return [];
|
|
767
|
-
const scopeKey =
|
|
476
|
+
const scopeKey = entityScopeKey2(entityConfig);
|
|
768
477
|
if (!scopeKey)
|
|
769
478
|
return [];
|
|
770
479
|
const bindings = [
|
|
@@ -798,7 +507,7 @@ async function resolveEntityIdentity2(filePath, node) {
|
|
|
798
507
|
if (entity === undefined) {
|
|
799
508
|
return;
|
|
800
509
|
}
|
|
801
|
-
const current =
|
|
510
|
+
const current = entityScopeKey2(entityConfig);
|
|
802
511
|
if (current !== "" && current !== entity.resourceKey) {
|
|
803
512
|
return;
|
|
804
513
|
}
|
|
@@ -809,7 +518,7 @@ async function resolveEntityIdentity2(filePath, node) {
|
|
|
809
518
|
}
|
|
810
519
|
}
|
|
811
520
|
function resolveProcessTarget2(node, definitions) {
|
|
812
|
-
if (!
|
|
521
|
+
if (!isProcessNode({ nodeType: node.type }))
|
|
813
522
|
return;
|
|
814
523
|
let subType = "Process";
|
|
815
524
|
if (definitions) {
|
|
@@ -822,7 +531,7 @@ function resolveProcessTarget2(node, definitions) {
|
|
|
822
531
|
return { key: defBindings.resourceKey, subType };
|
|
823
532
|
}
|
|
824
533
|
}
|
|
825
|
-
return { key:
|
|
534
|
+
return { key: extractProcessGuid2(node.type), subType };
|
|
826
535
|
}
|
|
827
536
|
function resolveProcessTargetKey(node, definitions) {
|
|
828
537
|
return resolveProcessTarget2(node, definitions)?.key;
|
|
@@ -830,7 +539,7 @@ function resolveProcessTargetKey(node, definitions) {
|
|
|
830
539
|
async function writeInlineAgentStepFromAgent(node, filePath, outputsFromInput) {
|
|
831
540
|
const inputs = node.inputs;
|
|
832
541
|
for (const key of Object.keys(inputs)) {
|
|
833
|
-
if (!
|
|
542
|
+
if (!INLINE_AGENT_STRUCTURAL_INPUT_KEYS2.has(key) && !(key === "callContext" && isVoiceAgentNodeType2(node.type))) {
|
|
834
543
|
delete inputs[key];
|
|
835
544
|
}
|
|
836
545
|
}
|
|
@@ -839,82 +548,16 @@ async function writeInlineAgentStepFromAgent(node, filePath, outputsFromInput) {
|
|
|
839
548
|
return;
|
|
840
549
|
}
|
|
841
550
|
const fs = getFileSystem();
|
|
842
|
-
const projectRoot = await
|
|
843
|
-
const agent = await
|
|
551
|
+
const projectRoot = await findFlowProjectRoot2(fs, filePath);
|
|
552
|
+
const agent = await agentJsonReader2(fs, projectRoot)(source);
|
|
844
553
|
if (agent) {
|
|
845
554
|
const existing = Array.isArray(inputs.agentInputVariables) ? inputs.agentInputVariables : [];
|
|
846
|
-
inputs.agentInputVariables =
|
|
555
|
+
inputs.agentInputVariables = reconcileInlineAgentInputVariables2(existing, agent.inputSchema).variables;
|
|
847
556
|
const metadata = agent.metadata;
|
|
848
557
|
if (!outputsFromInput && inputs.agentOutputVariables !== undefined) {
|
|
849
|
-
inputs.agentOutputVariables =
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
function resolveProcessBindingsInContext(node, nameBinding, folderBinding) {
|
|
854
|
-
const model = node.model;
|
|
855
|
-
if (!model?.context)
|
|
856
|
-
return;
|
|
857
|
-
for (const entry of model.context) {
|
|
858
|
-
if (entry.name === "name" && typeof entry.value === "string") {
|
|
859
|
-
entry.default = nameBinding.default;
|
|
860
|
-
entry.value = `=bindings.${nameBinding.id}`;
|
|
861
|
-
} else if (entry.name === "folderPath" && typeof entry.value === "string") {
|
|
862
|
-
entry.default = folderBinding.default;
|
|
863
|
-
entry.value = `=bindings.${folderBinding.id}`;
|
|
864
|
-
}
|
|
865
|
-
}
|
|
866
|
-
}
|
|
867
|
-
var UNRESOLVED_BINDING_PATTERN = /^<bindings\.\w+>$/;
|
|
868
|
-
function ensureProcessBindings2(workflow) {
|
|
869
|
-
const nodes = workflow.nodes;
|
|
870
|
-
const definitions = workflow.definitions ?? [];
|
|
871
|
-
let bindingsCreated = 0;
|
|
872
|
-
for (const node of nodes) {
|
|
873
|
-
if (!isProcessNode2({ nodeType: node.type }))
|
|
874
|
-
continue;
|
|
875
|
-
const nodeModel = node.model;
|
|
876
|
-
const defModel = definitions.find((d) => d.nodeType === node.type)?.model;
|
|
877
|
-
const hasUnresolved = [nodeModel, defModel].some((m) => m?.context?.some((entry) => typeof entry.value === "string" && UNRESOLVED_BINDING_PATTERN.test(entry.value)));
|
|
878
|
-
if (!hasUnresolved)
|
|
879
|
-
continue;
|
|
880
|
-
const definition = definitions.find((d) => d.nodeType === node.type);
|
|
881
|
-
if (!definition)
|
|
882
|
-
continue;
|
|
883
|
-
const [err, bindings] = catchError2(() => createProcessBindings({
|
|
884
|
-
nodeType: node.type,
|
|
885
|
-
model: definition.model
|
|
886
|
-
}));
|
|
887
|
-
if (err) {
|
|
888
|
-
logger.warn(`Skipping binding resolution for node "${node.id}": ${err.message}`);
|
|
889
|
-
continue;
|
|
890
|
-
}
|
|
891
|
-
const { nameBinding, folderBinding } = bindings;
|
|
892
|
-
const beforeCount = workflow.bindings?.length ?? 0;
|
|
893
|
-
addBinding2(workflow, nameBinding);
|
|
894
|
-
addBinding2(workflow, folderBinding);
|
|
895
|
-
const storedBindings = workflow.bindings;
|
|
896
|
-
const storedName = storedBindings.find((b) => b.resourceKey === nameBinding.resourceKey && b.propertyAttribute === nameBinding.propertyAttribute) ?? nameBinding;
|
|
897
|
-
const storedFolder = storedBindings.find((b) => b.resourceKey === folderBinding.resourceKey && b.propertyAttribute === folderBinding.propertyAttribute) ?? folderBinding;
|
|
898
|
-
resolveProcessBindingsInContext(node, storedName, storedFolder);
|
|
899
|
-
if (defModel?.context) {
|
|
900
|
-
for (const entry of defModel.context) {
|
|
901
|
-
if (entry.name === "name" && typeof entry.value === "string" && UNRESOLVED_BINDING_PATTERN.test(entry.value)) {
|
|
902
|
-
entry.default = storedName.default;
|
|
903
|
-
entry.value = `=bindings.${storedName.id}`;
|
|
904
|
-
} else if (entry.name === "folderPath" && typeof entry.value === "string" && UNRESOLVED_BINDING_PATTERN.test(entry.value)) {
|
|
905
|
-
entry.default = storedFolder.default;
|
|
906
|
-
entry.value = `=bindings.${storedFolder.id}`;
|
|
907
|
-
}
|
|
908
|
-
}
|
|
558
|
+
inputs.agentOutputVariables = agentOutputVariablesFromSchema2(agent.outputSchema, metadata?.isConversational === true);
|
|
909
559
|
}
|
|
910
|
-
const added = (workflow.bindings?.length ?? 0) - beforeCount;
|
|
911
|
-
bindingsCreated += added;
|
|
912
|
-
logger.info(`Resolved process bindings for node "${node.id}" (${node.type})`);
|
|
913
560
|
}
|
|
914
|
-
if (bindingsCreated > 0) {
|
|
915
|
-
logger.info(`ensureProcessBindings: created ${bindingsCreated} binding(s) for directly-authored nodes`);
|
|
916
|
-
}
|
|
917
|
-
return bindingsCreated;
|
|
918
561
|
}
|
|
919
562
|
var BINDING_REF_PATTERN = /^=bindings\.(.+)$/;
|
|
920
563
|
function collectNodeBindingRefs(node) {
|
|
@@ -955,7 +598,7 @@ function collectNodeBindingResourceKeys2(node, bindings, definitions) {
|
|
|
955
598
|
if (fileNodeConnection) {
|
|
956
599
|
keys.add(fileNodeConnection);
|
|
957
600
|
}
|
|
958
|
-
const entityKey =
|
|
601
|
+
const entityKey = entityScopeKey2(inputs?.entityConfig);
|
|
959
602
|
if (entityKey !== "") {
|
|
960
603
|
keys.add(entityKey);
|
|
961
604
|
}
|
|
@@ -976,13 +619,15 @@ var addNodeToFlow2 = async (filePath, nodeType, options = {}) => {
|
|
|
976
619
|
}
|
|
977
620
|
let manifest = inline?.manifest ?? null;
|
|
978
621
|
let registryErr;
|
|
979
|
-
|
|
980
|
-
const [err,
|
|
981
|
-
manifest = registryManifest ?? null;
|
|
982
|
-
registryErr = err;
|
|
622
|
+
const lookUpRegistry = async (refreshOnMiss) => {
|
|
623
|
+
const [err, found] = await catchError2(getNode2(nodeType, { refreshOnMiss }));
|
|
983
624
|
if (err) {
|
|
984
625
|
logger.debug(`Registry node lookup failed for ${nodeType}: ${err.message}`);
|
|
985
626
|
}
|
|
627
|
+
return { found: found ?? null, err };
|
|
628
|
+
};
|
|
629
|
+
if (!manifest) {
|
|
630
|
+
({ found: manifest, err: registryErr } = await lookUpRegistry(false));
|
|
986
631
|
}
|
|
987
632
|
let localErr = null;
|
|
988
633
|
if (!manifest) {
|
|
@@ -993,15 +638,19 @@ var addNodeToFlow2 = async (filePath, nodeType, options = {}) => {
|
|
|
993
638
|
logger.warn(`In-solution node lookup failed for ${nodeType}: ${err.message}`);
|
|
994
639
|
}
|
|
995
640
|
}
|
|
641
|
+
if (!manifest && !registryErr) {
|
|
642
|
+
({ found: manifest, err: registryErr } = await lookUpRegistry(true));
|
|
643
|
+
}
|
|
996
644
|
if (!manifest && nodeType === DYNAMIC_EXTRACT_NODE_TYPE2) {
|
|
997
|
-
manifest =
|
|
645
|
+
manifest = buildExtractDocumentBuilderNode2();
|
|
998
646
|
}
|
|
999
647
|
if (!manifest && (isTenantManifestInvalidError2(registryErr) || isTenantManifestUnavailableError2(registryErr))) {
|
|
1000
648
|
throw registryErr;
|
|
1001
649
|
}
|
|
1002
650
|
if (!manifest) {
|
|
1003
651
|
if (isKnownSdkNodeType2(nodeType)) {
|
|
1004
|
-
|
|
652
|
+
const { message, instructions, errorCode } = await gatedNodeFailure2(nodeType);
|
|
653
|
+
throw new NodeTypeNotEnabledError2(message, instructions, errorCode);
|
|
1005
654
|
}
|
|
1006
655
|
const [, withoutProcessResource] = await catchError2(explainNodeTypeWithoutProcessResource2(nodeType));
|
|
1007
656
|
if (withoutProcessResource) {
|
|
@@ -1014,24 +663,38 @@ var addNodeToFlow2 = async (filePath, nodeType, options = {}) => {
|
|
|
1014
663
|
const hint = details || "If this is an in-solution node, make sure you are running " + "from inside a solution directory (with a .uipx file in CWD, parent, or grandparent).";
|
|
1015
664
|
throw new NodeTypeNotFoundError2(`Node type not found: ${nodeType}. ${hint}`, "Run `uip maestro flow registry search <keyword>` to find the " + "correct node type, or `uip maestro flow registry list` " + "to see every known type (including ones not enabled on this tenant).");
|
|
1016
665
|
}
|
|
666
|
+
const { workflow, refMap } = await readFlowWorkflow2(filePath);
|
|
667
|
+
let source = options.source;
|
|
1017
668
|
if (manifest.model?.source === true && nodeType !== DYNAMIC_EXTRACT_NODE_TYPE2) {
|
|
1018
|
-
const fromFlag = typeof options.source === "string" && options.source.length > 0;
|
|
1019
669
|
const inputsSourceCandidate = options.inputs?.source;
|
|
1020
670
|
const fromInputs = typeof inputsSourceCandidate === "string" && inputsSourceCandidate.length > 0;
|
|
1021
|
-
if (!
|
|
1022
|
-
|
|
671
|
+
if (!source && !fromInputs && isInlineAgentNodeType2(nodeType)) {
|
|
672
|
+
source = await soleInlineAgentSource(filePath, nodeType, workflow);
|
|
673
|
+
}
|
|
674
|
+
if (!source && !fromInputs) {
|
|
675
|
+
throw new SourceRequiredError2(`Node type "${nodeType}" requires a source UUID at inputs.source. Pass --source <uuid>.`, "Use the agent's ProjectId (returned by " + '`uip agent init "<flow-dir>" --inline-in-flow`) for inline ' + "agent nodes, or the resource id declared in the parent " + "inline agent's `resources[]` for agent-tool resource nodes. " + '`--input \'{"source":"<uuid>"}\'` is also accepted. ' + "An inline agent node needs no --source when the flow " + "project holds exactly one inline agent folder.");
|
|
1023
676
|
}
|
|
1024
677
|
}
|
|
1025
|
-
const { workflow, refMap } = await readFlowWorkflow2(filePath);
|
|
1026
678
|
if (inline) {
|
|
1027
679
|
const existing = workflow.definitions.find((d) => d.nodeType === manifest.nodeType && d.version === manifest.version);
|
|
1028
680
|
if (existing && definitionConfigurationOf(existing) !== definitionConfigurationOf(manifest)) {
|
|
1029
681
|
throw new InlineActivityError2(`"${nodeType}" is already defined in this flow with different activity metadata.`, "Use a different activity slug for this node type, or remove the existing nodes of this type first so the definition is rebuilt from the new metadata.");
|
|
1030
682
|
}
|
|
1031
683
|
}
|
|
1032
|
-
const existingIds = new Set(
|
|
684
|
+
const existingIds = new Set([
|
|
685
|
+
...allNodes(workflow).map((n) => n.id),
|
|
686
|
+
...graphVariableIds(workflow, targetSubflowId(workflow, options.parent))
|
|
687
|
+
]);
|
|
1033
688
|
const existingDefCount = workflow.definitions.length;
|
|
1034
|
-
const
|
|
689
|
+
const generated = generateNodeIdAndName2(options.label ?? manifest.display.label, existingIds);
|
|
690
|
+
const id = options.id === undefined ? generated.id : normalizeIdentifier2(options.id);
|
|
691
|
+
const displayName = options.id === undefined ? generated.displayName : manifest.display.label;
|
|
692
|
+
if (options.id !== undefined) {
|
|
693
|
+
const idError = validateIdentifier2(options.id, existingIds);
|
|
694
|
+
if (idError) {
|
|
695
|
+
throw new NodeIdError2(`--id "${options.id}" is not usable: ${idError}.`, "Pick another id, or omit --id to get one generated from the label. " + "Run 'uip maestro flow nodes list <file>' to see node ids in use, and 'uip maestro flow variable list <file>' for variable ids.");
|
|
696
|
+
}
|
|
697
|
+
}
|
|
1035
698
|
const bindingsBefore = workflow.bindings?.length ?? 0;
|
|
1036
699
|
const node = addNode2(workflow, manifest, id, options.position ?? { x: 0, y: 0 }, options.label ?? displayName);
|
|
1037
700
|
const schema = manifest.inputDefinition;
|
|
@@ -1041,8 +704,8 @@ var addNodeToFlow2 = async (filePath, nodeType, options = {}) => {
|
|
|
1041
704
|
}
|
|
1042
705
|
}
|
|
1043
706
|
let bindingsCreated = 0;
|
|
1044
|
-
if (
|
|
1045
|
-
const { nameBinding, folderBinding } =
|
|
707
|
+
if (isProcessNode(manifest)) {
|
|
708
|
+
const { nameBinding, folderBinding } = createProcessBindings2(manifest);
|
|
1046
709
|
addBinding2(workflow, nameBinding);
|
|
1047
710
|
addBinding2(workflow, folderBinding);
|
|
1048
711
|
const storedBindings = workflow.bindings;
|
|
@@ -1072,9 +735,9 @@ var addNodeToFlow2 = async (filePath, nodeType, options = {}) => {
|
|
|
1072
735
|
}
|
|
1073
736
|
const manifestModel = manifest.model;
|
|
1074
737
|
if (manifestModel?.source === true) {
|
|
1075
|
-
if (typeof
|
|
738
|
+
if (typeof source === "string" && source.length > 0) {
|
|
1076
739
|
const inputs = node.inputs ?? {};
|
|
1077
|
-
inputs.source =
|
|
740
|
+
inputs.source = source;
|
|
1078
741
|
node.inputs = inputs;
|
|
1079
742
|
}
|
|
1080
743
|
if (nodeType === DYNAMIC_EXTRACT_NODE_TYPE2) {
|
|
@@ -1088,14 +751,14 @@ var addNodeToFlow2 = async (filePath, nodeType, options = {}) => {
|
|
|
1088
751
|
if (node.model) {
|
|
1089
752
|
delete node.model;
|
|
1090
753
|
}
|
|
1091
|
-
if (
|
|
754
|
+
if (isInlineAgentNodeType2(node.type)) {
|
|
1092
755
|
await writeInlineAgentStepFromAgent(node, filePath, options.inputs?.agentOutputVariables !== undefined);
|
|
1093
756
|
}
|
|
1094
757
|
}
|
|
1095
758
|
if (nodeType === DYNAMIC_EXTRACT_NODE_TYPE2) {
|
|
1096
759
|
const inputs = node.inputs ?? {};
|
|
1097
760
|
if (inputs.schemaDocument === undefined) {
|
|
1098
|
-
inputs.schemaDocument = buildDefaultSchemaDocument();
|
|
761
|
+
inputs.schemaDocument = buildDefaultSchemaDocument(inputs.modelConfig);
|
|
1099
762
|
node.inputs = inputs;
|
|
1100
763
|
}
|
|
1101
764
|
}
|
|
@@ -1114,16 +777,18 @@ var addNodeToFlow2 = async (filePath, nodeType, options = {}) => {
|
|
|
1114
777
|
}
|
|
1115
778
|
}
|
|
1116
779
|
if (typeof options.parent === "string" && options.parent.length > 0) {
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
throw new Error(`--parent value "${options.parent}" is not an existing node id in this flow. ` + "Run 'uip maestro flow nodes list <file>' to see valid ids.");
|
|
780
|
+
if (!placeUnderParent(workflow, node, options.parent)) {
|
|
781
|
+
throw new NodeIdError2(`--parent value "${options.parent}" is not an existing node id in this flow.`, "Run 'uip maestro flow nodes list <file>' to see valid parent ids, or add the parent first.");
|
|
1120
782
|
}
|
|
1121
|
-
|
|
783
|
+
}
|
|
784
|
+
let idpProcessor;
|
|
785
|
+
if (nodeType === DYNAMIC_EXTRACT_NODE_TYPE2) {
|
|
786
|
+
idpProcessor = await provisionIdpProcessorForNode(filePath, node);
|
|
1122
787
|
}
|
|
1123
788
|
await writeFlowWorkflow2(filePath, workflow, refMap);
|
|
1124
|
-
if (
|
|
789
|
+
if (isProcessNode(manifest) || isEntityNode2(manifest) || nodeType === DYNAMIC_EXTRACT_NODE_TYPE2) {
|
|
1125
790
|
const fs = getFileSystem();
|
|
1126
|
-
const [regenErr] = await catchError2(
|
|
791
|
+
const [regenErr] = await catchError2(regenerateBindingsFile2(fs, filePath));
|
|
1127
792
|
if (regenErr) {
|
|
1128
793
|
logger.warn(`Failed to regenerate bindings_v2.json after adding ${manifest.nodeType}: ${regenErr.message}`);
|
|
1129
794
|
}
|
|
@@ -1150,7 +815,8 @@ var addNodeToFlow2 = async (filePath, nodeType, options = {}) => {
|
|
|
1150
815
|
definitionAdded,
|
|
1151
816
|
bindingsCreated,
|
|
1152
817
|
variableCount,
|
|
1153
|
-
...inlineActivity && { inlineActivity }
|
|
818
|
+
...inlineActivity && { inlineActivity },
|
|
819
|
+
...idpProcessor && { idpProcessor }
|
|
1154
820
|
};
|
|
1155
821
|
}
|
|
1156
822
|
};
|
|
@@ -1160,8 +826,62 @@ function removeConnectedEdges(workflow, nodeId) {
|
|
|
1160
826
|
workflow.edges = edges.filter((e) => e.sourceNodeId !== nodeId && e.targetNodeId !== nodeId);
|
|
1161
827
|
return before - workflow.edges.length;
|
|
1162
828
|
}
|
|
1163
|
-
function
|
|
1164
|
-
return Object.values(workflow.subflows ?? {})
|
|
829
|
+
function graphHolders(workflow) {
|
|
830
|
+
return [workflow, ...Object.values(workflow.subflows ?? {})];
|
|
831
|
+
}
|
|
832
|
+
function targetSubflowId(workflow, parentId) {
|
|
833
|
+
if (!parentId)
|
|
834
|
+
return;
|
|
835
|
+
const parentScope = scopeOfNode(workflow, parentId);
|
|
836
|
+
const parent = parentScope?.nodes.find((n) => n.id === parentId);
|
|
837
|
+
if (!parentScope || !parent)
|
|
838
|
+
return;
|
|
839
|
+
return isSubflowNodeType2(parent.type) ? parentId : parentScope.subflowId;
|
|
840
|
+
}
|
|
841
|
+
function placeUnderParent(workflow, node, parentId) {
|
|
842
|
+
const parentScope = scopeOfNode(workflow, parentId);
|
|
843
|
+
const parent = parentScope?.nodes.find((n) => n.id === parentId);
|
|
844
|
+
if (!parentScope || !parent)
|
|
845
|
+
return false;
|
|
846
|
+
const isSubflow = isSubflowNodeType2(parent.type);
|
|
847
|
+
if (!isSubflow)
|
|
848
|
+
node.parentId = parentId;
|
|
849
|
+
const destinationId = targetSubflowId(workflow, parentId);
|
|
850
|
+
if (destinationId === undefined)
|
|
851
|
+
return true;
|
|
852
|
+
const topLevel = workflow.nodes;
|
|
853
|
+
topLevel.splice(topLevel.indexOf(node), 1);
|
|
854
|
+
workflow.subflows ??= {};
|
|
855
|
+
const subflows = workflow.subflows;
|
|
856
|
+
subflows[destinationId] ??= { nodes: [], edges: [] };
|
|
857
|
+
subflows[destinationId].nodes.push(node);
|
|
858
|
+
const definitions = workflow.definitions;
|
|
859
|
+
for (const holder of [workflow, subflows[destinationId]]) {
|
|
860
|
+
holder.variables = {
|
|
861
|
+
...holder.variables,
|
|
862
|
+
nodes: generateNodeVariables3(holder.nodes, definitions)
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
return true;
|
|
866
|
+
}
|
|
867
|
+
async function soleInlineAgentSource(filePath, nodeType, workflow) {
|
|
868
|
+
const fs = getFileSystem();
|
|
869
|
+
const projectRoot = await findFlowProjectRoot2(fs, filePath);
|
|
870
|
+
const readAgent = agentJsonReader2(fs, projectRoot);
|
|
871
|
+
const claimed = new Set(allNodes(workflow).filter((n) => isInlineAgentNodeType2(n.type)).map((n) => n.inputs?.source));
|
|
872
|
+
const wantsConversational = isConversationalOrVoiceAgentNodeType2(nodeType);
|
|
873
|
+
const fits = [];
|
|
874
|
+
for (const entry of await fs.readdir(projectRoot)) {
|
|
875
|
+
if (!isBareProjectIdSource2(entry) || claimed.has(entry))
|
|
876
|
+
continue;
|
|
877
|
+
const agent = await readAgent(entry);
|
|
878
|
+
const metadata = agent?.metadata;
|
|
879
|
+
if (metadata?.isConversational === true === wantsConversational) {
|
|
880
|
+
if (agent)
|
|
881
|
+
fits.push(entry);
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
return fits.length === 1 ? fits[0] : undefined;
|
|
1165
885
|
}
|
|
1166
886
|
function removeOrphanedBindings(workflow, deletedNodeKeys, remainingNodes, bindings) {
|
|
1167
887
|
if (deletedNodeKeys.size === 0 || bindings.length === 0)
|
|
@@ -1206,8 +926,8 @@ function removeOrphanedDefinitions(workflow, remainingNodes) {
|
|
|
1206
926
|
workflow.definitions = definitions.filter((d) => usedKeys.has(`${d.nodeType}:${d.version}`));
|
|
1207
927
|
return before - workflow.definitions.length;
|
|
1208
928
|
}
|
|
1209
|
-
function removeVariableUpdates(
|
|
1210
|
-
const variables =
|
|
929
|
+
function removeVariableUpdates(holder, nodeId) {
|
|
930
|
+
const variables = holder.variables;
|
|
1211
931
|
if (!variables?.variableUpdates)
|
|
1212
932
|
return 0;
|
|
1213
933
|
const updates = variables.variableUpdates[nodeId];
|
|
@@ -1217,6 +937,20 @@ function removeVariableUpdates(workflow, nodeId) {
|
|
|
1217
937
|
delete variables.variableUpdates[nodeId];
|
|
1218
938
|
return count;
|
|
1219
939
|
}
|
|
940
|
+
function pruneSubflows(workflow, subflowNodeId) {
|
|
941
|
+
const subflows = workflow.subflows;
|
|
942
|
+
const entry = subflows?.[subflowNodeId];
|
|
943
|
+
if (!subflows || !entry)
|
|
944
|
+
return [];
|
|
945
|
+
delete subflows[subflowNodeId];
|
|
946
|
+
const removed = [...entry.nodes];
|
|
947
|
+
for (const inner of entry.nodes) {
|
|
948
|
+
if (isSubflowNodeType2(inner.type)) {
|
|
949
|
+
removed.push(...pruneSubflows(workflow, inner.id));
|
|
950
|
+
}
|
|
951
|
+
}
|
|
952
|
+
return removed;
|
|
953
|
+
}
|
|
1220
954
|
function removeNodeVariables(workflow, nodeId) {
|
|
1221
955
|
const variables = workflow.variables;
|
|
1222
956
|
if (!variables?.nodes)
|
|
@@ -1227,14 +961,15 @@ function removeNodeVariables(workflow, nodeId) {
|
|
|
1227
961
|
}
|
|
1228
962
|
var deleteNodeFromFlow2 = async (filePath, nodeId) => {
|
|
1229
963
|
const { workflow, refMap } = await readFlowWorkflow2(filePath);
|
|
1230
|
-
const nodes = workflow.nodes;
|
|
964
|
+
const nodes = scopeOfNode(workflow, nodeId)?.nodes ?? workflow.nodes;
|
|
1231
965
|
const nodeIndex = nodes.findIndex((n) => n.id === nodeId);
|
|
1232
966
|
if (nodeIndex === -1) {
|
|
1233
|
-
const available =
|
|
967
|
+
const available = allNodes(workflow).map((n) => n.id).join(", ") || "(none)";
|
|
1234
968
|
throw new Error(`Node not found: "${nodeId}". Available node IDs: ${available}`);
|
|
1235
969
|
}
|
|
1236
970
|
const targetNode = nodes[nodeIndex];
|
|
1237
|
-
const deletedWasProcessNode =
|
|
971
|
+
const deletedWasProcessNode = isProcessNode({ nodeType: targetNode.type });
|
|
972
|
+
const deletedWasExtractNode = targetNode.type === DYNAMIC_EXTRACT_NODE_TYPE2;
|
|
1238
973
|
const deletedNode = {
|
|
1239
974
|
id: targetNode.id,
|
|
1240
975
|
type: targetNode.type,
|
|
@@ -1245,16 +980,22 @@ var deleteNodeFromFlow2 = async (filePath, nodeId) => {
|
|
|
1245
980
|
const definitions = workflow.definitions ?? [];
|
|
1246
981
|
const deletedNodeResourceKeys = collectNodeBindingResourceKeys2(targetNode, bindings, definitions);
|
|
1247
982
|
nodes.splice(nodeIndex, 1);
|
|
1248
|
-
const
|
|
1249
|
-
const
|
|
1250
|
-
|
|
983
|
+
const prunedNodes = isSubflowNodeType2(targetNode.type) ? pruneSubflows(workflow, nodeId) : [];
|
|
984
|
+
for (const pruned of prunedNodes) {
|
|
985
|
+
for (const key of collectNodeBindingResourceKeys2(pruned, bindings, definitions)) {
|
|
986
|
+
deletedNodeResourceKeys.add(key);
|
|
987
|
+
}
|
|
988
|
+
}
|
|
989
|
+
const edgesRemoved = graphHolders(workflow).reduce((total, holder) => total + removeConnectedEdges(holder, nodeId), 0);
|
|
990
|
+
const remainingNodes = allNodes(workflow);
|
|
991
|
+
const bindingsRemoved = removeOrphanedBindings(workflow, deletedNodeResourceKeys, remainingNodes, bindings) + [targetNode, ...prunedNodes].reduce((total, node) => total + removeOrphanedConnectorStub(workflow, node, remainingNodes, definitions), 0);
|
|
1251
992
|
const definitionsRemoved = removeOrphanedDefinitions(workflow, remainingNodes);
|
|
1252
|
-
const variablesRemoved =
|
|
1253
|
-
const variableUpdatesRemoved =
|
|
993
|
+
const variablesRemoved = graphHolders(workflow).reduce((total, holder) => total + removeNodeVariables(holder, nodeId), 0);
|
|
994
|
+
const variableUpdatesRemoved = graphHolders(workflow).reduce((total, holder) => total + removeVariableUpdates(holder, nodeId), 0);
|
|
1254
995
|
await writeFlowWorkflow2(filePath, workflow, refMap);
|
|
1255
|
-
if (deletedWasProcessNode || bindingsRemoved > 0) {
|
|
996
|
+
if (deletedWasProcessNode || deletedWasExtractNode || bindingsRemoved > 0) {
|
|
1256
997
|
const fs = getFileSystem();
|
|
1257
|
-
const [regenErr] = await catchError2(
|
|
998
|
+
const [regenErr] = await catchError2(regenerateBindingsFile2(fs, filePath));
|
|
1258
999
|
if (regenErr) {
|
|
1259
1000
|
logger.warn(`Failed to regenerate bindings_v2.json after deleting ${targetNode.type}: ${regenErr.message}`);
|
|
1260
1001
|
}
|
|
@@ -1269,6 +1010,6 @@ var deleteNodeFromFlow2 = async (filePath, nodeId) => {
|
|
|
1269
1010
|
};
|
|
1270
1011
|
};
|
|
1271
1012
|
|
|
1272
|
-
export {
|
|
1013
|
+
export { INLINE_ACTIVITY_TYPE_PREFIX, INLINE_ACTIVITY_SOURCE, InlineActivityError2, collectScriptRefs, getInlineActivityConfiguration, findOrchestratorConnectionField, orchestratorConnectionKey, NodeTypeNotFoundError2, NodeTypeNotEnabledError2, SourceRequiredError2, NodeIdError2, listNodesInFlow2, isEntityNode2, createEntityBindings2, resolveEntityIdentity2, resolveProcessTarget2, collectNodeBindingResourceKeys2, addNodeToFlow2, deleteNodeFromFlow2 };
|
|
1273
1014
|
|
|
1274
|
-
//# debugId=
|
|
1015
|
+
//# debugId=03C1E2E34C98ABCB64756E2164756E21
|