@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,13 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-1db1wqdy.js";
|
|
4
4
|
import {
|
|
5
5
|
CommandDimensions,
|
|
6
6
|
ShipDimensions,
|
|
7
7
|
catchError2
|
|
8
|
-
} from "./packager-tool-
|
|
8
|
+
} from "./packager-tool-4hn7v05x.js";
|
|
9
9
|
import {
|
|
10
|
+
RESULTS,
|
|
10
11
|
carriedErrorCode,
|
|
12
|
+
carriedResult,
|
|
11
13
|
extractErrorDetails,
|
|
12
14
|
extractErrorMessage,
|
|
13
15
|
extractErrorMessageSync,
|
|
@@ -17,12 +19,12 @@ import {
|
|
|
17
19
|
parseAttachmentSpec,
|
|
18
20
|
resolveAttachmentInputs,
|
|
19
21
|
instructionsFor,
|
|
20
|
-
RESULTS,
|
|
21
22
|
classifiedFailure,
|
|
22
23
|
authContextFailure,
|
|
23
24
|
summarizePlatformBody,
|
|
24
25
|
Option,
|
|
25
26
|
logger,
|
|
27
|
+
exitCodeForResult,
|
|
26
28
|
Pagination,
|
|
27
29
|
apiPagination,
|
|
28
30
|
OutputFormatter,
|
|
@@ -33,19 +35,22 @@ import {
|
|
|
33
35
|
parseBoundedInt,
|
|
34
36
|
registerPackageMetadataOptions,
|
|
35
37
|
mapPackageMetadataOptions,
|
|
38
|
+
reportFailure,
|
|
36
39
|
ScreenLogger,
|
|
37
40
|
splitPackagedName,
|
|
38
41
|
trackShipSucceeded
|
|
39
|
-
} from "./packager-tool-
|
|
42
|
+
} from "./packager-tool-bcsjm5hv.js";
|
|
40
43
|
import {
|
|
41
44
|
registerRegistryCommand,
|
|
42
45
|
registerSharedDebugInstanceCommands,
|
|
43
46
|
registerSharedIncidentCommands,
|
|
47
|
+
resolveDebugFolder,
|
|
44
48
|
registerSharedInstanceCommands,
|
|
45
49
|
registerSharedProcessCommands,
|
|
46
50
|
registerSharedProcessesCommands
|
|
47
|
-
} from "./packager-tool-
|
|
51
|
+
} from "./packager-tool-f4pvpaw2.js";
|
|
48
52
|
import {
|
|
53
|
+
registerEvalCommands,
|
|
49
54
|
evaluatorTypeAliases,
|
|
50
55
|
resolveLoginConfig,
|
|
51
56
|
formatDuration,
|
|
@@ -54,23 +59,25 @@ import {
|
|
|
54
59
|
formatRemoteEvalRunRow,
|
|
55
60
|
isFailedRemoteRun,
|
|
56
61
|
isTerminalRemoteStatus,
|
|
62
|
+
rowsToCsv,
|
|
57
63
|
formatEvalSetRunRow
|
|
58
|
-
} from "./packager-tool-
|
|
64
|
+
} from "./packager-tool-7re5d8aq.js";
|
|
59
65
|
import {
|
|
60
66
|
pendingSecondsFor,
|
|
61
67
|
pendingStallInstructions,
|
|
62
68
|
DEFAULT_TIMEOUT_MS,
|
|
63
69
|
DEFAULT_INTERVAL_MS
|
|
64
70
|
} from "./packager-tool-8c7nddd1.js";
|
|
65
|
-
import {
|
|
66
|
-
VALID_RESOURCE_TYPES
|
|
67
|
-
} from "./packager-tool-k3egwd1m.js";
|
|
68
71
|
import {
|
|
69
72
|
package_default
|
|
70
|
-
} from "./packager-tool-
|
|
73
|
+
} from "./packager-tool-px52tjy2.js";
|
|
71
74
|
import {
|
|
72
|
-
|
|
73
|
-
|
|
75
|
+
SCHEMA_GROUP_NAME_MAX,
|
|
76
|
+
SCHEMA_INSTRUCTIONS_MAX
|
|
77
|
+
} from "./packager-tool-0x8g8b5r.js";
|
|
78
|
+
import {
|
|
79
|
+
VALID_RESOURCE_TYPES
|
|
80
|
+
} from "./packager-tool-9tv5cyhr.js";
|
|
74
81
|
import {
|
|
75
82
|
setAgentProjectMetadataReader2
|
|
76
83
|
} from "./packager-tool-q2f18crb.js";
|
|
@@ -79,7 +86,10 @@ import {
|
|
|
79
86
|
backendFailure,
|
|
80
87
|
genericObjectDiscoveryCommands,
|
|
81
88
|
addJobTracesOptions
|
|
82
|
-
} from "./packager-tool-
|
|
89
|
+
} from "./packager-tool-7wpb19zf.js";
|
|
90
|
+
import {
|
|
91
|
+
UnknownEntryPointError
|
|
92
|
+
} from "./packager-tool-40bxn7j2.js";
|
|
83
93
|
|
|
84
94
|
// src/utils/row-window.ts
|
|
85
95
|
function addRowWindowOptions(command) {
|
|
@@ -162,7 +172,7 @@ var BINDING_DELETE_EXAMPLES = [
|
|
|
162
172
|
var registerBindingCommand = (program) => {
|
|
163
173
|
const binding = program.command("bindings").alias("binding").description("Manage bindings in a Flow file");
|
|
164
174
|
addRowWindowOptions(binding.command("list")).description("List all bindings in a Flow file").argument("<file>", "Path to the .flow file").examples(BINDING_LIST_EXAMPLES).trackedAction(processContext, async (file, options) => {
|
|
165
|
-
const { listBindingsInFlow } = await import("./binding-service-
|
|
175
|
+
const { listBindingsInFlow } = await import("./binding-service-qfbtg6qy.js");
|
|
166
176
|
const [error, result] = await catchError2(listBindingsInFlow(file));
|
|
167
177
|
if (error) {
|
|
168
178
|
OutputFormatter.error({
|
|
@@ -186,7 +196,7 @@ var registerBindingCommand = (program) => {
|
|
|
186
196
|
});
|
|
187
197
|
binding.command("create").alias("add").description(`Add a binding to a Flow file.
|
|
188
198
|
` + `Valid resource types: ${VALID_RESOURCE_TYPES.join(", ")}`).argument("<file>", "Path to the .flow file").argument("<name>", "Binding display name").argument("<resource>", "Resource type").argument("<default-value>", "Default value for the binding").option("--resource-key <key>", "Resource catalog identifier").option("--property-attribute <attr>", "Target node property (e.g., name, folderPath, connection)").option("--resource-sub-type <type>", "Resource sub-classification (e.g., Agent, Process)").examples(BINDING_ADD_EXAMPLES).trackedAction(processContext, async (file, name, resource, defaultValue, options) => {
|
|
189
|
-
const { addBindingToFlow } = await import("./binding-service-
|
|
199
|
+
const { addBindingToFlow } = await import("./binding-service-qfbtg6qy.js");
|
|
190
200
|
const [error, result] = await catchError2(addBindingToFlow(file, name, resource, defaultValue, {
|
|
191
201
|
resourceKey: options.resourceKey,
|
|
192
202
|
propertyAttribute: options.propertyAttribute,
|
|
@@ -210,7 +220,7 @@ var registerBindingCommand = (program) => {
|
|
|
210
220
|
});
|
|
211
221
|
});
|
|
212
222
|
binding.command("delete").alias("remove").description("Remove all bindings with a given resource key from a Flow file").argument("<file>", "Path to the .flow file").argument("<resource-key>", "Resource key of the bindings to remove").examples(BINDING_DELETE_EXAMPLES).trackedAction(processContext, async (file, resourceKey) => {
|
|
213
|
-
const { deleteBindingFromFlow } = await import("./binding-service-
|
|
223
|
+
const { deleteBindingFromFlow } = await import("./binding-service-qfbtg6qy.js");
|
|
214
224
|
const [error, result] = await catchError2(deleteBindingFromFlow(file, resourceKey));
|
|
215
225
|
if (error) {
|
|
216
226
|
OutputFormatter.error({
|
|
@@ -231,7 +241,40 @@ var registerBindingCommand = (program) => {
|
|
|
231
241
|
});
|
|
232
242
|
});
|
|
233
243
|
};
|
|
234
|
-
|
|
244
|
+
// ../maestro-sdk/src/shared-commands/process-list-window.ts
|
|
245
|
+
var MAX_PROCESS_PAGE_SIZE = 1000;
|
|
246
|
+
var createProcessLimitOption = () => new Option("-l, --limit <number>", `Number of items to return (1-${MAX_PROCESS_PAGE_SIZE})`).argParser((raw) => parseBoundedInt(raw, "--limit", { min: 1, max: MAX_PROCESS_PAGE_SIZE }));
|
|
247
|
+
var createProcessOffsetOption = () => new Option("--offset <number>", "Number of items to skip (0-1000000)").argParser(parseOffset).default(0);
|
|
248
|
+
// ../maestro-sdk/src/shared-commands/release-pick.ts
|
|
249
|
+
var classified = (message, errorCode) => Object.assign(new Error(message), {
|
|
250
|
+
errorCode,
|
|
251
|
+
retry: "RetryWillNotFix"
|
|
252
|
+
});
|
|
253
|
+
var splitProcessKey = (processKey) => {
|
|
254
|
+
const separator = processKey.lastIndexOf(":");
|
|
255
|
+
if (separator === -1) {
|
|
256
|
+
return { key: processKey };
|
|
257
|
+
}
|
|
258
|
+
return {
|
|
259
|
+
key: processKey.slice(0, separator),
|
|
260
|
+
version: processKey.slice(separator + 1)
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
var releaseFilter = (request, quote) => request.releaseKey !== undefined ? `Key eq ${quote(request.releaseKey)}` : `ProcessKey eq ${quote(splitProcessKey(request.processKey).key)}`;
|
|
264
|
+
var sameText = (left, right) => left?.toLowerCase() === right.toLowerCase();
|
|
265
|
+
var pickRelease = (candidates, request) => {
|
|
266
|
+
const { processKey, releaseKey, folderKey, label } = request;
|
|
267
|
+
const { key, version } = splitProcessKey(processKey);
|
|
268
|
+
const matches = candidates.filter((candidate) => Boolean(candidate.key) && (releaseKey !== undefined ? sameText(candidate.key, releaseKey) : sameText(candidate.processKey, key) && (version === undefined || candidate.processVersion === version)));
|
|
269
|
+
const [release, ...extra] = matches;
|
|
270
|
+
if (release === undefined) {
|
|
271
|
+
throw classified(releaseKey !== undefined ? `No ${label} release with key '${releaseKey}' in folder ${folderKey}.` : `No ${label} release matches process key '${processKey}' in folder ${folderKey}.`, "not_found");
|
|
272
|
+
}
|
|
273
|
+
if (extra.length > 0) {
|
|
274
|
+
throw classified(`${matches.length} ${label} releases match process key '${processKey}' in folder ${folderKey}: ${matches.map((match) => `${match.processVersion} (${match.key})`).join(", ")}.`, "invalid_argument");
|
|
275
|
+
}
|
|
276
|
+
return release;
|
|
277
|
+
};
|
|
235
278
|
// src/commands/debug-summary.ts
|
|
236
279
|
function buildDebugSummary(result) {
|
|
237
280
|
const summary = {
|
|
@@ -266,7 +309,7 @@ function buildDebugSummary(result) {
|
|
|
266
309
|
var FULL_DEBUG_OUTPUT_DIR = ".flow-debug";
|
|
267
310
|
var FULL_DEBUG_OUTPUT_GITIGNORE = "# Written by `uip maestro flow debug --summary`: local debug records with tenant data.\n*\n";
|
|
268
311
|
async function writeFullDebugOutput(fs, projectPath, envelope) {
|
|
269
|
-
const { findNearestParentUipxFile } = await import("./index-
|
|
312
|
+
const { findNearestParentUipxFile } = await import("./index-zemcat7k.js");
|
|
270
313
|
const projectDir = fs.path.resolve(projectPath);
|
|
271
314
|
const discovery = await findNearestParentUipxFile(fs, projectDir);
|
|
272
315
|
const solutionDir = discovery.status === "found" ? fs.path.dirname(discovery.solutionFile) : fs.path.resolve(projectDir, "..");
|
|
@@ -328,6 +371,7 @@ function pickRetryHint(err) {
|
|
|
328
371
|
return (err.attempts ?? 1) > 1 ? "RetryWillNotFix" : "RetryAfter30Seconds";
|
|
329
372
|
}
|
|
330
373
|
var isRetriedPoll403 = (err) => err.httpStatus === 403 && err.stage === "poll-instance-status" && (err.attempts ?? 1) > 1;
|
|
374
|
+
var PREPARE_DEBUG_STAGE = "prepare-custom-debug";
|
|
331
375
|
function pickInstructions(err) {
|
|
332
376
|
const isOpaque5xx = err.httpStatus >= 500 && err.httpStatus < 600 && (err.parsedErrorCode === undefined || err.parsedErrorCode === "0");
|
|
333
377
|
if (isOpaque5xx) {
|
|
@@ -336,7 +380,7 @@ function pickInstructions(err) {
|
|
|
336
380
|
const traceHint = traceIds.length ? ` traceIds: ${traceIds.join(", ")}.` : "";
|
|
337
381
|
const escalationTraces = traceIds.length ? ` and traceIds: ${traceIds.join(", ")}` : "";
|
|
338
382
|
if ((err.attempts ?? 1) > 1) {
|
|
339
|
-
return `${err.method} ${err.endpoint} returned ${err.httpStatus} on all ${err.attempts} attempts ` + `during '${stage}', so the backend runtime is down rather than blipping. ` + `Do not re-run 'debug' — escalate to the owning service team with the endpoint${escalationTraces}
|
|
383
|
+
return `${err.method} ${err.endpoint} returned ${err.httpStatus} on all ${err.attempts} attempts ` + `during '${stage}', so the backend runtime is down rather than blipping. ` + `Do not re-run 'debug' — escalate to the owning service team with the endpoint${escalationTraces}.`;
|
|
340
384
|
}
|
|
341
385
|
return `The backend returned an unstructured ${err.httpStatus} during '${stage}'.${traceHint} ` + `This is often transient — wait ~30s and retry once. If it fails again, capture the traceId ` + `and ${err.method} ${err.endpoint} and escalate to the owning service team.`;
|
|
342
386
|
}
|
|
@@ -344,6 +388,9 @@ function pickInstructions(err) {
|
|
|
344
388
|
const traceIds = err.traceIds?.length ? ` traceIds: ${err.traceIds.join(", ")}.` : "";
|
|
345
389
|
return `${err.method} ${err.endpoint} returned 403 on all ${err.attempts} attempts during ` + `'poll-instance-status', after the run had started. PIMS answers 403 here when its ` + `authorization check times out, so this is usually not your login. Re-run 'debug' ` + `in ~30s. If it fails the same way again, run 'uip login' and verify the active ` + `tenant has access.${traceIds}`;
|
|
346
390
|
}
|
|
391
|
+
if (err.httpStatus === 403 && err.stage === PREPARE_DEBUG_STAGE) {
|
|
392
|
+
return `Studio Web starts a debug session only in your Personal Workspace, so debug cannot target another folder. ` + `Drop --folder-id, --folder-key and --folder-path; without them the account still needs Personal Workspace access. To run in another folder, deploy the solution there ` + `and start it with 'uip maestro flow process run'.`;
|
|
393
|
+
}
|
|
347
394
|
if (err.httpStatus === 401 || err.httpStatus === 403) {
|
|
348
395
|
return `Authentication/authorization rejected by ${err.method} ${err.endpoint}. ` + `Run 'uip login' and verify the active tenant has access.`;
|
|
349
396
|
}
|
|
@@ -360,23 +407,6 @@ function pickInstructions(err) {
|
|
|
360
407
|
const detail = err.parsedErrorMessage ? ` Backend reported: "${err.parsedErrorMessage}".` : "";
|
|
361
408
|
return `${err.method} ${err.endpoint} failed with HTTP ${err.httpStatus} during ` + `'${err.stage ?? "request"}'.${detail} Inspect the response body for details ` + `and retry once before reporting.`;
|
|
362
409
|
}
|
|
363
|
-
function summarizeIncidents(incidents) {
|
|
364
|
-
return incidents.map((inc) => {
|
|
365
|
-
const code = inc.errorCode ? `[${inc.errorCode}] ` : "";
|
|
366
|
-
const element = inc.elementId ? ` (element ${inc.elementId})` : "";
|
|
367
|
-
return `${code}${inc.errorMessage}${element}`;
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
function buildIncidentInstructions(incidents, instanceId) {
|
|
371
|
-
const lines = summarizeIncidents(incidents);
|
|
372
|
-
const first = incidents[0];
|
|
373
|
-
const traceHint = first?.traceId ? ` traceId=${first.traceId}.` : "";
|
|
374
|
-
const detailHint = `Run 'uip maestro flow debug-instances incidents ${instanceId}' for ` + `the full backend payload (incidentId, errorDetails, AI summary).`;
|
|
375
|
-
return `Incident(s):
|
|
376
|
-
- ${lines.join(`
|
|
377
|
-
- `)}
|
|
378
|
-
${detailHint}${traceHint}`;
|
|
379
|
-
}
|
|
380
410
|
function variablesRetryCommand(instanceId, error) {
|
|
381
411
|
const ids = error.expectedGlobals?.length ? error.expectedGlobals : error.missingGlobals;
|
|
382
412
|
const expect = ids?.length ? ` --expected-outputs ${ids.join(" ")}` : "";
|
|
@@ -387,7 +417,7 @@ var CONVERSATIONAL_DEBUG_WARNING = "This flow, which starts on a conversation tr
|
|
|
387
417
|
` + " 2. UiPath Maestro VS Code extension — open the flow and hit Debug.";
|
|
388
418
|
async function readProjectFlowNodes(projectPath) {
|
|
389
419
|
const [error, nodes] = await catchError2((async () => {
|
|
390
|
-
const { readFlowWorkflow, resolveProjectFlowFile } = await import("./flow-io-
|
|
420
|
+
const { readFlowWorkflow, resolveProjectFlowFile } = await import("./flow-io-c8b17vbx.js");
|
|
391
421
|
const flowFilePath = await resolveProjectFlowFile(projectPath);
|
|
392
422
|
const { workflow } = await readFlowWorkflow(flowFilePath);
|
|
393
423
|
return workflow.nodes ?? [];
|
|
@@ -398,6 +428,12 @@ async function readProjectFlowNodes(projectPath) {
|
|
|
398
428
|
}
|
|
399
429
|
return nodes;
|
|
400
430
|
}
|
|
431
|
+
function withLocalRewrite(output, update) {
|
|
432
|
+
if (!update)
|
|
433
|
+
return output;
|
|
434
|
+
const data = Array.isArray(output.Data) ? {} : output.Data;
|
|
435
|
+
return { ...output, Data: { ...data, LocalSolutionIdUpdated: update } };
|
|
436
|
+
}
|
|
401
437
|
var FLOW_DEBUG_EXAMPLES = [
|
|
402
438
|
{
|
|
403
439
|
Description: "Debug a local flow project via Studio Web",
|
|
@@ -469,10 +505,6 @@ var FLOW_DEBUG_EXAMPLES = [
|
|
|
469
505
|
var LOGIN_INSTRUCTIONS = "Run 'uip login' and select an organization, tenant, and folder with Studio Web access, then retry.";
|
|
470
506
|
var INPUT_INSTRUCTIONS = "Provide --inputs as a valid JSON object or a readable @file.json path.";
|
|
471
507
|
var NUMBER_OPTION_INSTRUCTIONS = "Use a positive numeric value. Provide --poll-interval in milliseconds and --timeout in seconds.";
|
|
472
|
-
var FOLDER_ID_INSTRUCTIONS = "Provide --folder-id as a positive integer (the Orchestrator folder Id, e.g. 12345).";
|
|
473
|
-
var FOLDER_TARGETING_INSTRUCTIONS = "Pass at most one of --folder-id, --folder-key, or --folder-path. Use 'uip or folders list' to discover values.";
|
|
474
|
-
var FOLDER_RESOLUTION_INSTRUCTIONS = "Provide a valid --folder-key (UUID) or --folder-path. Use 'uip or folders list' to confirm the key or path.";
|
|
475
|
-
var FOLDER_RESOLUTION_NETWORK_INSTRUCTIONS = "The folder lookup itself failed (network / Orchestrator API). Re-authenticate with 'uip login', verify connectivity, and retry.";
|
|
476
508
|
var DEBUG_FAILURE_INSTRUCTIONS = "Check that the flow project is valid, the selected folder is accessible, and Studio Web debug is available, then retry.";
|
|
477
509
|
async function openInBrowserOrWarn(url) {
|
|
478
510
|
const [openError] = await catchError2(async () => {
|
|
@@ -489,13 +521,6 @@ function buildHandoffInstructions(studioWebUrl) {
|
|
|
489
521
|
` + ` 1. Studio Web — open ${studioWebUrl}.
|
|
490
522
|
` + " 2. UiPath Maestro VS Code extension — open the flow and hit Debug.";
|
|
491
523
|
}
|
|
492
|
-
function isFolderInputError(err) {
|
|
493
|
-
if ("response" in err)
|
|
494
|
-
return false;
|
|
495
|
-
if (err.name === "FetchError")
|
|
496
|
-
return false;
|
|
497
|
-
return true;
|
|
498
|
-
}
|
|
499
524
|
function parsePositiveNumberOption(value, optionName) {
|
|
500
525
|
const parsed = Number(value);
|
|
501
526
|
if (!Number.isFinite(parsed) || parsed <= 0) {
|
|
@@ -506,23 +531,13 @@ function parsePositiveNumberOption(value, optionName) {
|
|
|
506
531
|
}
|
|
507
532
|
return { ok: true, value: parsed };
|
|
508
533
|
}
|
|
509
|
-
function parsePositiveIntegerOption(value, optionName) {
|
|
510
|
-
const parsed = Number(value);
|
|
511
|
-
if (!Number.isInteger(parsed) || parsed <= 0) {
|
|
512
|
-
return {
|
|
513
|
-
ok: false,
|
|
514
|
-
message: `${optionName} must be a positive integer.`
|
|
515
|
-
};
|
|
516
|
-
}
|
|
517
|
-
return { ok: true, value: parsed };
|
|
518
|
-
}
|
|
519
534
|
function registerDebugCommand(program) {
|
|
520
535
|
program.command("debug").description("Debug a flow project by uploading to Studio Web and running a debug session").argument("<project-path>", "Path to the flow project directory (must contain project.uiproj)").option("--folder-id <id>", "Orchestrator folder ID (OrganizationUnitId) as a positive integer. Mutually exclusive with --folder-key/--folder-path. Auto-detected if none are provided.").option("--folder-key <key>", "Orchestrator folder key (UUID). The CLI resolves it to the folder ID. Mutually exclusive with --folder-id/--folder-path.").option("--folder-path <path>", "Orchestrator folder path (e.g. 'Shared/Sub'). The CLI resolves it to the folder ID. Mutually exclusive with --folder-id/--folder-key.").option("--poll-interval <ms>", "Polling interval in milliseconds", "2000").option("--timeout <seconds>", "Maximum seconds to wait for debug completion").option("-i, --inputs <json>", "Input parameters as JSON string or @file.json").option("--entry-point <id>", "Entry point node id — a trigger node id from the .flow file. Defaults to the trigger marked isDefaultEntryPoint, else the first trigger").option("--attachment <name=path>", "Upload a file as a file-typed workflow input variable (repeatable). " + "Example: --attachment file1=./resume.pdf", appendOption, []).option("--summary", "Return only the run's status, its failed elements and the flow's declared outputs, " + "instead of every node's raw output. The full result, tenant data included, is written to " + "<solution>/.flow-debug/<project>.json (<project> relative to the solution; the folder's own " + ".gitignore ignores it; never packed or uploaded) and named in Data.fullOutputPath.").option("--open-in-browser", "Open the Studio Web URL in the browser once it is known.").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).examples(FLOW_DEBUG_EXAMPLES).trackedAction(processContext, async (projectPath, options) => {
|
|
521
|
-
const { getAuthContext } = await import("./index-
|
|
536
|
+
const { getAuthContext } = await import("./index-r6crd7tx.js");
|
|
522
537
|
const nodes = await readProjectFlowNodes(projectPath);
|
|
523
538
|
let isConversational = false;
|
|
524
539
|
if (nodes !== undefined) {
|
|
525
|
-
const { startsOnConversationTrigger } = await import("./debug-conversation-trigger-
|
|
540
|
+
const { startsOnConversationTrigger } = await import("./debug-conversation-trigger-j20ms2xc.js");
|
|
526
541
|
const [entryPointError, conversational] = catchError2(() => startsOnConversationTrigger({ nodes }, options.entryPoint));
|
|
527
542
|
if (entryPointError instanceof UnknownEntryPointError) {
|
|
528
543
|
OutputFormatter.error({
|
|
@@ -566,53 +581,10 @@ function registerDebugCommand(program) {
|
|
|
566
581
|
tenantName,
|
|
567
582
|
organizationName
|
|
568
583
|
} = auth;
|
|
569
|
-
const
|
|
570
|
-
|
|
571
|
-
options.folderKey !== undefined ? "--folder-key" : undefined,
|
|
572
|
-
options.folderPath !== undefined ? "--folder-path" : undefined
|
|
573
|
-
].filter((flag) => flag !== undefined);
|
|
574
|
-
if (folderTargetingFlags.length > 1) {
|
|
575
|
-
OutputFormatter.error({
|
|
576
|
-
Result: RESULTS.ValidationError,
|
|
577
|
-
Message: `Cannot combine ${folderTargetingFlags.join(", ")}.`,
|
|
578
|
-
Instructions: FOLDER_TARGETING_INSTRUCTIONS
|
|
579
|
-
});
|
|
580
|
-
processContext.exit(3);
|
|
584
|
+
const folderOutcome = await resolveDebugFolder(options);
|
|
585
|
+
if (folderOutcome.kind === "failed")
|
|
581
586
|
return;
|
|
582
|
-
|
|
583
|
-
let userProvidedFolderId;
|
|
584
|
-
if (options.folderId !== undefined) {
|
|
585
|
-
const parsed = parsePositiveIntegerOption(options.folderId, "--folder-id");
|
|
586
|
-
if (!parsed.ok) {
|
|
587
|
-
OutputFormatter.error({
|
|
588
|
-
Result: RESULTS.ValidationError,
|
|
589
|
-
Message: parsed.message,
|
|
590
|
-
Instructions: FOLDER_ID_INSTRUCTIONS
|
|
591
|
-
});
|
|
592
|
-
processContext.exit(3);
|
|
593
|
-
return;
|
|
594
|
-
}
|
|
595
|
-
userProvidedFolderId = parsed.value;
|
|
596
|
-
} else if (options.folderKey !== undefined || options.folderPath !== undefined) {
|
|
597
|
-
const { resolveFolder } = await import("./index-t2f7scza.js");
|
|
598
|
-
const [folderError, folder] = await catchError2(resolveFolder({
|
|
599
|
-
folderKey: options.folderKey,
|
|
600
|
-
folderPath: options.folderPath
|
|
601
|
-
}, { loginValidity: options.loginValidity }));
|
|
602
|
-
if (folderError || !folder) {
|
|
603
|
-
const inputProblem = !folderError || isFolderInputError(folderError);
|
|
604
|
-
const message = folderError ? `Could not resolve folder: ${folderError.message}` : "Folder targeting requested but no folder resolved.";
|
|
605
|
-
OutputFormatter.error({
|
|
606
|
-
Result: inputProblem ? RESULTS.ValidationError : RESULTS.Failure,
|
|
607
|
-
Message: message,
|
|
608
|
-
Instructions: inputProblem ? FOLDER_RESOLUTION_INSTRUCTIONS : FOLDER_RESOLUTION_NETWORK_INSTRUCTIONS
|
|
609
|
-
});
|
|
610
|
-
processContext.exit(inputProblem ? 3 : 1);
|
|
611
|
-
return;
|
|
612
|
-
}
|
|
613
|
-
userProvidedFolderId = folder.id;
|
|
614
|
-
logger.info(`Resolved folder '${folder.path}' to ID ${folder.id} (key ${folder.key}).`);
|
|
615
|
-
}
|
|
587
|
+
const userProvidedFolderId = folderOutcome.folderId;
|
|
616
588
|
const studioWebConfig = {
|
|
617
589
|
baseUrl,
|
|
618
590
|
organizationId,
|
|
@@ -631,20 +603,22 @@ function registerDebugCommand(program) {
|
|
|
631
603
|
FlowDebugMissingResourcesError,
|
|
632
604
|
FlowDebugService,
|
|
633
605
|
InboundVoiceDebugError,
|
|
606
|
+
InvalidSolutionManifestError,
|
|
634
607
|
MissingSolutionWrapperError,
|
|
635
608
|
UnregisteredProjectError
|
|
636
|
-
} = await import("./flow-debug-service-
|
|
637
|
-
const { UnboundInlineEntityError } = await import("./inline-entity-resolver-
|
|
638
|
-
const { MaestroHttpError } = await import("./debug-http-client-
|
|
609
|
+
} = await import("./flow-debug-service-bppp59pe.js");
|
|
610
|
+
const { UnboundInlineEntityError } = await import("./inline-entity-resolver-9esjm2e7.js");
|
|
611
|
+
const { MaestroHttpError } = await import("./debug-http-client-fypqjmfs.js");
|
|
639
612
|
const {
|
|
613
|
+
buildFaultedDebugFailureOutput,
|
|
640
614
|
buildPollTimeoutFailureOutput,
|
|
641
615
|
DebugPollTimeoutError,
|
|
642
616
|
isSuccessfulDebugStatus
|
|
643
|
-
} = await import("./debug-service-
|
|
617
|
+
} = await import("./debug-service-zv5hj0cx.js");
|
|
644
618
|
const {
|
|
645
619
|
buildSolutionUploadFailureOutput,
|
|
646
620
|
isSolutionUploadHttpError
|
|
647
|
-
} = await import("./index-
|
|
621
|
+
} = await import("./index-zemcat7k.js");
|
|
648
622
|
const service = new FlowDebugService;
|
|
649
623
|
const parsedPollInterval = parsePositiveNumberOption(options.pollInterval || "2000", "--poll-interval");
|
|
650
624
|
if (!parsedPollInterval.ok) {
|
|
@@ -673,7 +647,7 @@ function registerDebugCommand(program) {
|
|
|
673
647
|
}
|
|
674
648
|
let inputs;
|
|
675
649
|
if (options.inputs) {
|
|
676
|
-
const { parseFlowInputs } = await import("./flow-api-
|
|
650
|
+
const { parseFlowInputs } = await import("./flow-api-bmg7beey.js");
|
|
677
651
|
const [parseError, parsed] = await catchError2(parseFlowInputs(options.inputs));
|
|
678
652
|
if (parseError) {
|
|
679
653
|
OutputFormatter.error({
|
|
@@ -698,7 +672,7 @@ function registerDebugCommand(program) {
|
|
|
698
672
|
processContext.exit(1);
|
|
699
673
|
return;
|
|
700
674
|
}
|
|
701
|
-
const { uploadJobAttachment } = await import("./index-
|
|
675
|
+
const { uploadJobAttachment } = await import("./index-db1djbzm.js");
|
|
702
676
|
const [uploadError, resolved] = await catchError2(resolveAttachmentInputs(specs, (bytes, fileName) => uploadJobAttachment(bytes, fileName, {
|
|
703
677
|
tenant: tenantName
|
|
704
678
|
})));
|
|
@@ -730,6 +704,7 @@ function registerDebugCommand(program) {
|
|
|
730
704
|
...isConversational ? { uploadOnly: true } : {}
|
|
731
705
|
};
|
|
732
706
|
logger.info(`Starting Studio Web debug session for: ${projectPath}`);
|
|
707
|
+
let localSolutionIdUpdated;
|
|
733
708
|
const [executeError, result] = await catchError2(service.executeProjectViaStudioWeb(projectPath, studioWebConfig, {
|
|
734
709
|
onStatusChange: (st, executions) => {
|
|
735
710
|
const completed = executions.filter((e) => e.status === "Completed").length;
|
|
@@ -743,6 +718,9 @@ function registerDebugCommand(program) {
|
|
|
743
718
|
onIncident: (incidents) => {
|
|
744
719
|
logger.warn(`Incidents: ${JSON.stringify(incidents)}`);
|
|
745
720
|
},
|
|
721
|
+
onLocalSolutionIdUpdated: (update) => {
|
|
722
|
+
localSolutionIdUpdated = update;
|
|
723
|
+
},
|
|
746
724
|
onStudioWebUrl: (url) => {
|
|
747
725
|
if (options.openInBrowser !== true)
|
|
748
726
|
return;
|
|
@@ -765,7 +743,7 @@ function registerDebugCommand(program) {
|
|
|
765
743
|
processContext.exit(3);
|
|
766
744
|
return;
|
|
767
745
|
}
|
|
768
|
-
if (executeError instanceof InboundVoiceDebugError || executeError instanceof UnknownEntryPointError) {
|
|
746
|
+
if (executeError instanceof InboundVoiceDebugError || executeError instanceof UnknownEntryPointError || executeError instanceof InvalidSolutionManifestError) {
|
|
769
747
|
OutputFormatter.error({
|
|
770
748
|
Result: RESULTS.ValidationError,
|
|
771
749
|
Message: executeError.message,
|
|
@@ -807,24 +785,25 @@ function registerDebugCommand(program) {
|
|
|
807
785
|
}
|
|
808
786
|
});
|
|
809
787
|
} else if (executeError instanceof DebugPollTimeoutError) {
|
|
810
|
-
OutputFormatter.error(buildPollTimeoutFailureOutput(executeError, "uip maestro flow debug-instances incidents"));
|
|
788
|
+
OutputFormatter.error(withLocalRewrite(buildPollTimeoutFailureOutput(executeError, "uip maestro flow debug-instances incidents"), localSolutionIdUpdated));
|
|
811
789
|
} else if (executeError instanceof MaestroHttpError) {
|
|
812
|
-
OutputFormatter.error(buildHttpFailureOutput(executeError));
|
|
790
|
+
OutputFormatter.error(withLocalRewrite(buildHttpFailureOutput(executeError), localSolutionIdUpdated));
|
|
813
791
|
} else if (isSolutionUploadHttpError(executeError)) {
|
|
814
792
|
OutputFormatter.error(buildSolutionUploadFailureOutput(executeError, {
|
|
815
793
|
subject: "flow",
|
|
816
794
|
importCheckHint: "Run 'uip maestro flow validate' to confirm the project is well-formed."
|
|
817
795
|
}));
|
|
818
796
|
} else {
|
|
819
|
-
OutputFormatter.error({
|
|
797
|
+
OutputFormatter.error(withLocalRewrite({
|
|
820
798
|
Result: RESULTS.Failure,
|
|
821
799
|
Message: executeError.message,
|
|
822
800
|
Instructions: DEBUG_FAILURE_INSTRUCTIONS
|
|
823
|
-
});
|
|
801
|
+
}, localSolutionIdUpdated));
|
|
824
802
|
}
|
|
825
803
|
processContext.exit(1);
|
|
826
804
|
return;
|
|
827
805
|
}
|
|
806
|
+
const rewriteField = localSolutionIdUpdated ? { LocalSolutionIdUpdated: localSolutionIdUpdated } : {};
|
|
828
807
|
if ("uploadedOnly" in result) {
|
|
829
808
|
OutputFormatter.success({
|
|
830
809
|
Result: RESULTS.Success,
|
|
@@ -832,7 +811,8 @@ function registerDebugCommand(program) {
|
|
|
832
811
|
Data: {
|
|
833
812
|
solutionId: result.solutionId,
|
|
834
813
|
studioWebUrl: result.studioWebUrl,
|
|
835
|
-
handedOff: true
|
|
814
|
+
handedOff: true,
|
|
815
|
+
...rewriteField
|
|
836
816
|
},
|
|
837
817
|
Instructions: buildHandoffInstructions(result.studioWebUrl)
|
|
838
818
|
}, { preserveDataKeys: true });
|
|
@@ -853,7 +833,8 @@ function registerDebugCommand(program) {
|
|
|
853
833
|
variables: result.variables,
|
|
854
834
|
variablesError: result.variablesError,
|
|
855
835
|
variablesFetch: result.variablesFetch,
|
|
856
|
-
incidents: result.incidents
|
|
836
|
+
incidents: result.incidents,
|
|
837
|
+
...rewriteField
|
|
857
838
|
};
|
|
858
839
|
let data = fullData;
|
|
859
840
|
if (options.summary) {
|
|
@@ -869,7 +850,7 @@ function registerDebugCommand(program) {
|
|
|
869
850
|
} else {
|
|
870
851
|
summary.fullOutputPath = fullOutputPath;
|
|
871
852
|
}
|
|
872
|
-
data = summary;
|
|
853
|
+
data = { ...summary, ...rewriteField };
|
|
873
854
|
}
|
|
874
855
|
if (success) {
|
|
875
856
|
const instructions = result.variablesError ? `Debug completed with status: ${result.finalStatus}, but the output variables could not be read after ${result.variablesError.attempts} attempt(s): ${result.variablesError.message}. Data.${options.summary ? "outputs" : "variables"} is absent and Data.variablesError explains why — treat the outputs as UNKNOWN, not empty. ` + `Retry with ${variablesRetryCommand(result.instanceId, result.variablesError)}.` : `Debug completed with status: ${result.finalStatus}`;
|
|
@@ -882,32 +863,16 @@ function registerDebugCommand(program) {
|
|
|
882
863
|
processContext.exit(0);
|
|
883
864
|
return;
|
|
884
865
|
}
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
Context.errorCode = incidents[0].errorCode;
|
|
892
|
-
}
|
|
893
|
-
if (incidents[0]?.traceId) {
|
|
894
|
-
Context.traceId = incidents[0].traceId;
|
|
895
|
-
}
|
|
896
|
-
OutputFormatter.error({
|
|
897
|
-
Result: RESULTS.Failure,
|
|
898
|
-
Code: "FlowDebug",
|
|
899
|
-
Message,
|
|
900
|
-
Instructions,
|
|
901
|
-
...Object.keys(Context).length > 0 ? { Context } : {},
|
|
902
|
-
Data: data
|
|
903
|
-
});
|
|
866
|
+
OutputFormatter.error(buildFaultedDebugFailureOutput(result, {
|
|
867
|
+
code: "FlowDebug",
|
|
868
|
+
data,
|
|
869
|
+
inspectCommand: "uip maestro flow debug-instances incidents",
|
|
870
|
+
summaryCommand: "uip maestro flow incidents summary"
|
|
871
|
+
}));
|
|
904
872
|
processContext.exit(1);
|
|
905
873
|
});
|
|
906
874
|
}
|
|
907
|
-
|
|
908
|
-
var MAX_PROCESS_PAGE_SIZE = 1000;
|
|
909
|
-
var createProcessLimitOption = () => new Option("-l, --limit <number>", `Number of items to return (1-${MAX_PROCESS_PAGE_SIZE})`).argParser((raw) => parseBoundedInt(raw, "--limit", { min: 1, max: MAX_PROCESS_PAGE_SIZE }));
|
|
910
|
-
var createProcessOffsetOption = () => new Option("--offset <number>", "Number of items to skip (0-1000000)").argParser(parseOffset).default(0);
|
|
875
|
+
|
|
911
876
|
// src/commands/debug-instances.ts
|
|
912
877
|
var registerDebugInstancesCommand = (program) => {
|
|
913
878
|
registerSharedDebugInstanceCommands(program, {
|
|
@@ -1037,7 +1002,7 @@ function getDeleteEdgeInstructions(file) {
|
|
|
1037
1002
|
return `Check that "${file}" exists and run 'uip maestro flow edges list ${file}' to find a valid edge ID, then retry.`;
|
|
1038
1003
|
}
|
|
1039
1004
|
async function runDeleteEdge(file, edgeId, code) {
|
|
1040
|
-
const { deleteEdgeFromFlow } = await import("./edge-service-
|
|
1005
|
+
const { deleteEdgeFromFlow } = await import("./edge-service-706zfmyb.js");
|
|
1041
1006
|
const normalizedEdgeId = edgeId.trim();
|
|
1042
1007
|
const [error, result] = await catchError2(deleteEdgeFromFlow(file, normalizedEdgeId));
|
|
1043
1008
|
if (error) {
|
|
@@ -1060,7 +1025,7 @@ async function runDeleteEdge(file, edgeId, code) {
|
|
|
1060
1025
|
var registerEdgeCommand = (program) => {
|
|
1061
1026
|
const edge = program.command("edges").alias("edge").description("Manage edges in a Flow file");
|
|
1062
1027
|
addRowWindowOptions(edge.command("list")).description("List all edges in a Flow file").argument("<file>", "Path to the .flow file").examples(EDGE_LIST_EXAMPLES).trackedAction(processContext, async (file, options) => {
|
|
1063
|
-
const { listEdgesInFlow } = await import("./edge-service-
|
|
1028
|
+
const { listEdgesInFlow } = await import("./edge-service-706zfmyb.js");
|
|
1064
1029
|
const [error, result] = await catchError2(listEdgesInFlow(file));
|
|
1065
1030
|
if (error) {
|
|
1066
1031
|
OutputFormatter.error({
|
|
@@ -1083,7 +1048,7 @@ var registerEdgeCommand = (program) => {
|
|
|
1083
1048
|
});
|
|
1084
1049
|
});
|
|
1085
1050
|
edge.command("create").alias("add").description("Add an edge between two nodes in a Flow file").argument("<file>", "Path to the .flow file").argument("<source-id>", "ID of the source node").argument("<target-id>", "ID of the target node").option("--source-port <port>", `Source port name (defaults to the port the node's definition marks as default, else "output", else the node's only flow port)`).option("--target-port <port>", `Target port name (defaults to the port the node's definition marks as default, else "input", else the node's only flow port)`).examples(EDGE_ADD_EXAMPLES).trackedAction(processContext, async (file, sourceId, targetId, options) => {
|
|
1086
|
-
const { addEdgeToFlow } = await import("./edge-service-
|
|
1051
|
+
const { addEdgeToFlow } = await import("./edge-service-706zfmyb.js");
|
|
1087
1052
|
const [error, result] = await catchError2(addEdgeToFlow(file, sourceId, targetId, {
|
|
1088
1053
|
sourcePort: options.sourcePort,
|
|
1089
1054
|
targetPort: options.targetPort
|
|
@@ -1223,11 +1188,12 @@ function addTargetOptions(command) {
|
|
|
1223
1188
|
function addStartOptions(command) {
|
|
1224
1189
|
return addTargetOptions(command).option("--entry-point <entry>", "Entry point node id — a trigger node id from the .flow file. Defaults to the eval set's selectedEntrypoint").option("--folder-key <key>", "Orchestrator folder key. Uses the personal workspace if not provided.").option("--debug-mode <mode>", "Studio Web debug mode override", (value) => Number.parseInt(value, 10));
|
|
1225
1190
|
}
|
|
1226
|
-
function outputError(message, error) {
|
|
1191
|
+
function outputError(message, error, localSolutionIdUpdated) {
|
|
1227
1192
|
OutputFormatter.error({
|
|
1228
1193
|
Result: RESULTS.Failure,
|
|
1229
1194
|
Message: message,
|
|
1230
|
-
Instructions: error.message
|
|
1195
|
+
Instructions: error.message,
|
|
1196
|
+
...localSolutionIdUpdated ? { Data: { LocalSolutionIdUpdated: localSolutionIdUpdated } } : {}
|
|
1231
1197
|
});
|
|
1232
1198
|
processContext.exit(1);
|
|
1233
1199
|
}
|
|
@@ -1295,17 +1261,7 @@ async function exportRows(exportFormat, rows) {
|
|
|
1295
1261
|
}
|
|
1296
1262
|
if (exportFormat === "csv") {
|
|
1297
1263
|
const filePath = fs.path.resolve(`flow-eval-results-${timestamp}.csv`);
|
|
1298
|
-
|
|
1299
|
-
const csvRows = [
|
|
1300
|
-
headers.join(","),
|
|
1301
|
-
...rows.map((row) => headers.map((header) => {
|
|
1302
|
-
const value = String(row[header] ?? "");
|
|
1303
|
-
return value.includes(",") || value.includes('"') || value.includes(`
|
|
1304
|
-
`) ? `"${value.replace(/"/g, '""')}"` : value;
|
|
1305
|
-
}).join(","))
|
|
1306
|
-
];
|
|
1307
|
-
await fs.writeFile(filePath, csvRows.join(`
|
|
1308
|
-
`));
|
|
1264
|
+
await fs.writeFile(filePath, rowsToCsv(rows));
|
|
1309
1265
|
OutputFormatter.success({
|
|
1310
1266
|
Result: RESULTS.Success,
|
|
1311
1267
|
Code: "FlowEvalRunExported",
|
|
@@ -1324,16 +1280,20 @@ async function resolveRemoteTarget(service, options, config, requireSolutionId =
|
|
|
1324
1280
|
function registerEvalRunCommand(evalCmd) {
|
|
1325
1281
|
const runCmd = evalCmd.command("runs").alias("run").description("Run Flow evaluation sets in Studio Web");
|
|
1326
1282
|
addStartOptions(runCmd.command("start").description("Start a Studio Web evaluation run (Flow solution must be available in Studio Web)")).option("--wait", "Wait for the evaluation to complete and show results").option("--timeout <seconds>", "Timeout in seconds for --wait polling", (value) => Number.parseInt(value, 10)).examples(FLOW_EVAL_RUN_START_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
1283
|
+
let localSolutionIdUpdated;
|
|
1327
1284
|
const [error] = await catchError2((async () => {
|
|
1328
1285
|
const config = await resolveStudioWebConfig();
|
|
1329
|
-
const { FlowEvalRunService } = await import("./flow-eval-run-service-
|
|
1286
|
+
const { FlowEvalRunService } = await import("./flow-eval-run-service-qdtz7ec7.js");
|
|
1330
1287
|
const service = new FlowEvalRunService;
|
|
1331
1288
|
const result = await service.startRemoteEvalRun(options.path, options.set, config, {
|
|
1332
1289
|
solutionId: options.solutionId,
|
|
1333
1290
|
projectId: options.projectId,
|
|
1334
1291
|
entryPoint: options.entryPoint,
|
|
1335
1292
|
folderKey: options.folderKey,
|
|
1336
|
-
debugMode: options.debugMode
|
|
1293
|
+
debugMode: options.debugMode,
|
|
1294
|
+
onLocalSolutionIdUpdated: (update) => {
|
|
1295
|
+
localSolutionIdUpdated = update;
|
|
1296
|
+
}
|
|
1337
1297
|
});
|
|
1338
1298
|
OutputFormatter.success({
|
|
1339
1299
|
Result: RESULTS.Success,
|
|
@@ -1343,7 +1303,10 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
1343
1303
|
EvalSetName: result.evalSetName,
|
|
1344
1304
|
DataPoints: result.dataPoints,
|
|
1345
1305
|
Evaluators: result.evaluators,
|
|
1346
|
-
Status: result.status
|
|
1306
|
+
Status: result.status,
|
|
1307
|
+
...localSolutionIdUpdated ? {
|
|
1308
|
+
LocalSolutionIdUpdated: localSolutionIdUpdated
|
|
1309
|
+
} : {}
|
|
1347
1310
|
},
|
|
1348
1311
|
Instructions: options.wait ? "Waiting for completion..." : `Monitor with: uip maestro flow eval runs status ${result.evalSetRunId} --set "${options.set}" --path ${options.path}`
|
|
1349
1312
|
});
|
|
@@ -1352,13 +1315,13 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
1352
1315
|
}
|
|
1353
1316
|
})());
|
|
1354
1317
|
if (error) {
|
|
1355
|
-
outputError("Failed to start flow evaluation run", error);
|
|
1318
|
+
outputError("Failed to start flow evaluation run", error, localSolutionIdUpdated);
|
|
1356
1319
|
}
|
|
1357
1320
|
});
|
|
1358
1321
|
addTargetOptions(runCmd.command("status").description("Check the status of a Studio Web Flow evaluation run").argument("<eval-set-run-id>", "Evaluation set run ID")).examples(FLOW_EVAL_RUN_STATUS_EXAMPLES).trackedAction(processContext, async (evalSetRunId, options) => {
|
|
1359
1322
|
const [error] = await catchError2((async () => {
|
|
1360
1323
|
const config = await resolveStudioWebConfig();
|
|
1361
|
-
const { FlowEvalRunService } = await import("./flow-eval-run-service-
|
|
1324
|
+
const { FlowEvalRunService } = await import("./flow-eval-run-service-qdtz7ec7.js");
|
|
1362
1325
|
const service = new FlowEvalRunService;
|
|
1363
1326
|
const target = await resolveRemoteTarget(service, options, config);
|
|
1364
1327
|
const [run, evaluators] = await Promise.all([
|
|
@@ -1384,7 +1347,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
1384
1347
|
addTargetOptions(runCmd.command("results").description("Get detailed results for a Studio Web Flow evaluation run").argument("<eval-set-run-id>", "Evaluation set run ID")).option("--only-failed", "Show only failed or errored data points").option("--verbose", "Include evaluator justifications in output").option("--export-format <json|csv>", "Export results to file (json or csv)").examples(FLOW_EVAL_RUN_RESULTS_EXAMPLES).trackedAction(processContext, async (evalSetRunId, options) => {
|
|
1385
1348
|
const [error] = await catchError2((async () => {
|
|
1386
1349
|
const config = await resolveStudioWebConfig();
|
|
1387
|
-
const { FlowEvalRunService } = await import("./flow-eval-run-service-
|
|
1350
|
+
const { FlowEvalRunService } = await import("./flow-eval-run-service-qdtz7ec7.js");
|
|
1388
1351
|
const service = new FlowEvalRunService;
|
|
1389
1352
|
const target = await resolveRemoteTarget(service, options, config);
|
|
1390
1353
|
let evalRuns = await service.getRemoteEvalRuns(config, target.workloadId, evalSetRunId);
|
|
@@ -1418,7 +1381,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
1418
1381
|
addTargetOptions(addRowWindowOptions(runCmd.command("list")).description("List Studio Web evaluation runs for a Flow eval set")).examples(FLOW_EVAL_RUN_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
1419
1382
|
const [error] = await catchError2((async () => {
|
|
1420
1383
|
const config = await resolveStudioWebConfig();
|
|
1421
|
-
const { FlowEvalRunService } = await import("./flow-eval-run-service-
|
|
1384
|
+
const { FlowEvalRunService } = await import("./flow-eval-run-service-qdtz7ec7.js");
|
|
1422
1385
|
const service = new FlowEvalRunService;
|
|
1423
1386
|
const target = await resolveRemoteTarget(service, options, config);
|
|
1424
1387
|
const allRuns = await service.listRemoteEvalSetRuns(config, target.workloadId, target.evalSet.id);
|
|
@@ -1447,7 +1410,7 @@ function registerEvalRunCommand(evalCmd) {
|
|
|
1447
1410
|
addTargetOptions(runCmd.command("compare").description("Compare results of two Studio Web Flow evaluation runs").argument("<eval-set-run-id>", "First evaluation set run ID").requiredOption("--compare-to <id>", "Second evaluation set run ID to compare against")).examples(FLOW_EVAL_RUN_COMPARE_EXAMPLES).trackedAction(processContext, async (evalSetRunId, options) => {
|
|
1448
1411
|
const [error] = await catchError2((async () => {
|
|
1449
1412
|
const config = await resolveStudioWebConfig();
|
|
1450
|
-
const { FlowEvalRunService } = await import("./flow-eval-run-service-
|
|
1413
|
+
const { FlowEvalRunService } = await import("./flow-eval-run-service-qdtz7ec7.js");
|
|
1451
1414
|
const service = new FlowEvalRunService;
|
|
1452
1415
|
const target = await resolveRemoteTarget(service, options, config);
|
|
1453
1416
|
const [runsA, runsB, runMetaA, runMetaB] = await Promise.all([
|
|
@@ -1508,411 +1471,107 @@ function buildComparison(evalSetRunId, compareTo, runMetaA, runMetaB, runsA, run
|
|
|
1508
1471
|
|
|
1509
1472
|
// src/commands/eval.ts
|
|
1510
1473
|
var FLOW_EVAL_PATH_OPTION_DESCRIPTION2 = "Path to a Flow project directory, or a solution directory with exactly one Flow project";
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
}
|
|
1540
|
-
function parseCommaSeparated(value) {
|
|
1541
|
-
if (value === undefined) {
|
|
1542
|
-
return;
|
|
1543
|
-
}
|
|
1544
|
-
return value.split(",").map((item) => item.trim()).filter(Boolean);
|
|
1545
|
-
}
|
|
1546
|
-
function collectInputFile(value, previous) {
|
|
1547
|
-
return [...previous, value];
|
|
1548
|
-
}
|
|
1549
|
-
function parseInputFiles(raw) {
|
|
1550
|
-
return raw.map((entry) => {
|
|
1551
|
-
const eq = entry.indexOf("=");
|
|
1552
|
-
if (eq <= 0 || eq === entry.length - 1) {
|
|
1553
|
-
throw new Error(`--input-file must be "<key>=<path>" (got "${entry}")`);
|
|
1554
|
-
}
|
|
1555
|
-
const key = entry.slice(0, eq).trim();
|
|
1556
|
-
const sourcePath = entry.slice(eq + 1).trim();
|
|
1557
|
-
if (!key || !sourcePath) {
|
|
1558
|
-
throw new Error(`--input-file must be "<key>=<path>" (got "${entry}")`);
|
|
1559
|
-
}
|
|
1560
|
-
return { key, sourcePath };
|
|
1561
|
-
});
|
|
1562
|
-
}
|
|
1563
|
-
function outputError2(message, error) {
|
|
1564
|
-
OutputFormatter.error({
|
|
1565
|
-
Result: RESULTS.Failure,
|
|
1566
|
-
Message: message,
|
|
1567
|
-
Instructions: error.message
|
|
1568
|
-
});
|
|
1569
|
-
processContext.exit(1);
|
|
1570
|
-
}
|
|
1474
|
+
var FLOW_EVAL_CONFIG = {
|
|
1475
|
+
codePrefix: "FlowEval",
|
|
1476
|
+
evalDescription: "Manage and run Flow evaluation sets",
|
|
1477
|
+
evaluatorsDescription: "Manage Flow evaluators",
|
|
1478
|
+
evaluatorAddDescription: "Add an evaluator to the flow project",
|
|
1479
|
+
evaluatorListDescription: "List evaluators in a flow project",
|
|
1480
|
+
evaluatorRemoveDescription: "Remove an evaluator from a flow project",
|
|
1481
|
+
setEntryPointDescription: "Entry point node id — a trigger node id from the .flow file (not a BPMN path), stored as the eval set's selectedEntrypoint; defaults to the flow's trigger. An agent node id creates a node-scoped eval set (evaluates that node in isolation)",
|
|
1482
|
+
pathDescription: FLOW_EVAL_PATH_OPTION_DESCRIPTION2,
|
|
1483
|
+
evaluatorTypeAliases: evaluatorTypeAliases(),
|
|
1484
|
+
simulation: {
|
|
1485
|
+
childSimulations: true,
|
|
1486
|
+
outputSchemaOption: false,
|
|
1487
|
+
componentTypeDescription: "Component type (defaults to Node when --parent is used)",
|
|
1488
|
+
componentTypes: ["agent", "connector", "hitl", "Node"],
|
|
1489
|
+
parentDescription: "Parent agent component ID. When set, the simulation is added as a child tool simulation on the parent agent node.",
|
|
1490
|
+
parentListDescription: "Parent agent component ID. When set, lists child tool simulations on the parent agent node.",
|
|
1491
|
+
parentDeleteDescription: "Parent agent component ID. When set, removes a child tool simulation from the parent agent node."
|
|
1492
|
+
},
|
|
1493
|
+
loadService: async () => {
|
|
1494
|
+
const { FlowEvalService } = await import("./flow-eval-service-mg7gveh3.js");
|
|
1495
|
+
return new FlowEvalService;
|
|
1496
|
+
},
|
|
1497
|
+
loadNodeTarget: () => import("./flow-eval-node-target-hc9n1913.js"),
|
|
1498
|
+
addRowWindowOptions,
|
|
1499
|
+
rowWindow,
|
|
1500
|
+
registerRunCommands: registerEvalRunCommand
|
|
1501
|
+
};
|
|
1571
1502
|
function registerEvalCommand(program) {
|
|
1572
|
-
|
|
1573
|
-
registerEvaluatorCommands(evalCmd);
|
|
1574
|
-
registerEvalSetCommands(evalCmd);
|
|
1575
|
-
registerEvaluationCommands(evalCmd);
|
|
1576
|
-
registerSimulationCommands(evalCmd);
|
|
1577
|
-
registerEvalRunCommand(evalCmd);
|
|
1578
|
-
}
|
|
1579
|
-
function registerEvaluatorCommands(evalCmd) {
|
|
1580
|
-
const evaluator = evalCmd.command("evaluators").alias("evaluator").description("Manage Flow evaluators");
|
|
1581
|
-
evaluator.command("create").alias("add").description("Add an evaluator to the flow project").argument("<name>", "Evaluator name").requiredOption("--type <type>", `Evaluator type: ${evaluatorTypeAliases().join(", ")}`).option("--description <text>", "Evaluator description").option("--target-key <key>", "Target output key", "*").option("--model <model>", "LLM model for LLM judge evaluators").option("--prompt <prompt>", "Custom LLM judge prompt").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (name, options) => {
|
|
1582
|
-
const [error] = await catchError2((async () => {
|
|
1583
|
-
const { FlowEvalService } = await import("./flow-eval-service-vf73ejad.js");
|
|
1584
|
-
const service = new FlowEvalService;
|
|
1585
|
-
const created = await service.addEvaluator(options.path, {
|
|
1586
|
-
name,
|
|
1587
|
-
type: options.type,
|
|
1588
|
-
description: options.description,
|
|
1589
|
-
targetOutputKey: options.targetKey,
|
|
1590
|
-
model: options.model,
|
|
1591
|
-
prompt: options.prompt
|
|
1592
|
-
});
|
|
1593
|
-
OutputFormatter.success({
|
|
1594
|
-
Result: RESULTS.Success,
|
|
1595
|
-
Code: "FlowEvalEvaluatorAdd",
|
|
1596
|
-
Data: {
|
|
1597
|
-
Name: created.name,
|
|
1598
|
-
Id: created.id,
|
|
1599
|
-
Type: created.evaluatorTypeId,
|
|
1600
|
-
File: created.fileName
|
|
1601
|
-
}
|
|
1602
|
-
});
|
|
1603
|
-
})());
|
|
1604
|
-
if (error) {
|
|
1605
|
-
outputError2("Failed to add evaluator", error);
|
|
1606
|
-
}
|
|
1607
|
-
});
|
|
1608
|
-
addRowWindowOptions(evaluator.command("list")).description("List evaluators in a flow project").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (options) => {
|
|
1609
|
-
const [error] = await catchError2((async () => {
|
|
1610
|
-
const { FlowEvalService } = await import("./flow-eval-service-vf73ejad.js");
|
|
1611
|
-
const service = new FlowEvalService;
|
|
1612
|
-
const evaluators = await service.listEvaluators(options.path);
|
|
1613
|
-
const window = rowWindow(evaluators, options);
|
|
1614
|
-
OutputFormatter.success({
|
|
1615
|
-
Result: RESULTS.Success,
|
|
1616
|
-
Code: "FlowEvalEvaluatorList",
|
|
1617
|
-
Pagination: window.pagination,
|
|
1618
|
-
Data: window.rows.map((item) => ({
|
|
1619
|
-
Name: item.name ?? String(item.evaluatorConfig.name ?? ""),
|
|
1620
|
-
Id: item.id,
|
|
1621
|
-
Type: item.evaluatorTypeId,
|
|
1622
|
-
TargetKey: item.evaluatorConfig.targetOutputKey ?? "*",
|
|
1623
|
-
File: item.fileName
|
|
1624
|
-
}))
|
|
1625
|
-
});
|
|
1626
|
-
})());
|
|
1627
|
-
if (error) {
|
|
1628
|
-
outputError2("Failed to list evaluators", error);
|
|
1629
|
-
}
|
|
1630
|
-
});
|
|
1631
|
-
evaluator.command("delete").alias("remove").description("Remove an evaluator from a flow project").argument("<id>", "Evaluator ID, name, or file base name").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (id, options) => {
|
|
1632
|
-
const [error] = await catchError2((async () => {
|
|
1633
|
-
const { FlowEvalService } = await import("./flow-eval-service-vf73ejad.js");
|
|
1634
|
-
const service = new FlowEvalService;
|
|
1635
|
-
const removed = await service.removeEvaluator(options.path, id);
|
|
1636
|
-
if (!removed) {
|
|
1637
|
-
throw new Error(`Evaluator "${id}" not found`);
|
|
1638
|
-
}
|
|
1639
|
-
OutputFormatter.success({
|
|
1640
|
-
Result: RESULTS.Success,
|
|
1641
|
-
Code: "FlowEvalEvaluatorRemove",
|
|
1642
|
-
Data: { Status: "Evaluator removed", Id: id }
|
|
1643
|
-
});
|
|
1644
|
-
})());
|
|
1645
|
-
if (error) {
|
|
1646
|
-
outputError2("Failed to remove evaluator", error);
|
|
1647
|
-
}
|
|
1648
|
-
});
|
|
1649
|
-
}
|
|
1650
|
-
function registerEvalSetCommands(evalCmd) {
|
|
1651
|
-
const set = evalCmd.command("sets").alias("set").description("Manage evaluation sets");
|
|
1652
|
-
set.command("create").alias("add").description("Create an evaluation set").argument("<name>", "Evaluation set name").option("--evaluators <refs>", "Comma-separated evaluator IDs or file base names (default: all)").option("--entry-point <id>", "Entry point node id — a trigger node id from the .flow file (not a BPMN path), stored as the eval set's selectedEntrypoint; defaults to the flow's trigger. An agent node id creates a node-scoped eval set (evaluates that node in isolation)").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (name, options) => {
|
|
1653
|
-
const [error] = await catchError2((async () => {
|
|
1654
|
-
const { FlowEvalService } = await import("./flow-eval-service-vf73ejad.js");
|
|
1655
|
-
const { readEvalSetScope, readNodeTargetId } = await import("./flow-eval-node-target-xxzqch9z.js");
|
|
1656
|
-
const service = new FlowEvalService;
|
|
1657
|
-
const created = await service.addEvalSet(options.path, {
|
|
1658
|
-
name,
|
|
1659
|
-
evaluatorRefs: parseCommaSeparated(options.evaluators),
|
|
1660
|
-
entryPoint: options.entryPoint
|
|
1661
|
-
});
|
|
1662
|
-
const targetNode = readNodeTargetId(created);
|
|
1663
|
-
OutputFormatter.success({
|
|
1664
|
-
Result: RESULTS.Success,
|
|
1665
|
-
Code: "FlowEvalSetAdd",
|
|
1666
|
-
Data: {
|
|
1667
|
-
Name: created.name,
|
|
1668
|
-
Id: created.id,
|
|
1669
|
-
Evaluators: created.evaluatorRefs.length,
|
|
1670
|
-
File: created.fileName,
|
|
1671
|
-
Scope: readEvalSetScope(created),
|
|
1672
|
-
...targetNode !== undefined ? { TargetNode: targetNode } : {}
|
|
1673
|
-
}
|
|
1674
|
-
});
|
|
1675
|
-
})());
|
|
1676
|
-
if (error) {
|
|
1677
|
-
outputError2("Failed to create evaluation set", error);
|
|
1678
|
-
}
|
|
1679
|
-
});
|
|
1680
|
-
addRowWindowOptions(set.command("list")).description("List evaluation sets").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (options) => {
|
|
1681
|
-
const [error] = await catchError2((async () => {
|
|
1682
|
-
const { FlowEvalService } = await import("./flow-eval-service-vf73ejad.js");
|
|
1683
|
-
const { readEvalSetScope, readNodeTargetId } = await import("./flow-eval-node-target-xxzqch9z.js");
|
|
1684
|
-
const service = new FlowEvalService;
|
|
1685
|
-
const sets = await service.listEvalSets(options.path);
|
|
1686
|
-
const window = rowWindow(sets, options);
|
|
1687
|
-
OutputFormatter.success({
|
|
1688
|
-
Result: RESULTS.Success,
|
|
1689
|
-
Code: "FlowEvalSetList",
|
|
1690
|
-
Pagination: window.pagination,
|
|
1691
|
-
Data: window.rows.map((item) => {
|
|
1692
|
-
const targetNode = readNodeTargetId(item);
|
|
1693
|
-
return {
|
|
1694
|
-
Name: item.name,
|
|
1695
|
-
Id: item.id,
|
|
1696
|
-
DataPoints: item.evaluations.length,
|
|
1697
|
-
Evaluators: item.evaluatorRefs.length,
|
|
1698
|
-
File: item.fileName,
|
|
1699
|
-
Scope: readEvalSetScope(item),
|
|
1700
|
-
...targetNode !== undefined ? { TargetNode: targetNode } : {}
|
|
1701
|
-
};
|
|
1702
|
-
})
|
|
1703
|
-
});
|
|
1704
|
-
})());
|
|
1705
|
-
if (error) {
|
|
1706
|
-
outputError2("Failed to list evaluation sets", error);
|
|
1707
|
-
}
|
|
1708
|
-
});
|
|
1709
|
-
set.command("delete").alias("remove").description("Remove an evaluation set").argument("<id>", "Evaluation set ID, name, or file base name").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (id, options) => {
|
|
1710
|
-
const [error] = await catchError2((async () => {
|
|
1711
|
-
const { FlowEvalService } = await import("./flow-eval-service-vf73ejad.js");
|
|
1712
|
-
const service = new FlowEvalService;
|
|
1713
|
-
const removed = await service.removeEvalSet(options.path, id);
|
|
1714
|
-
if (!removed) {
|
|
1715
|
-
throw new Error(`Evaluation set "${id}" not found`);
|
|
1716
|
-
}
|
|
1717
|
-
OutputFormatter.success({
|
|
1718
|
-
Result: RESULTS.Success,
|
|
1719
|
-
Code: "FlowEvalSetRemove",
|
|
1720
|
-
Data: { Status: "Evaluation set removed", Id: id }
|
|
1721
|
-
});
|
|
1722
|
-
})());
|
|
1723
|
-
if (error) {
|
|
1724
|
-
outputError2("Failed to remove evaluation set", error);
|
|
1725
|
-
}
|
|
1726
|
-
});
|
|
1503
|
+
registerEvalCommands(program, FLOW_EVAL_CONFIG);
|
|
1727
1504
|
}
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
inputFiles,
|
|
1741
|
-
expectedOutput,
|
|
1742
|
-
criteria,
|
|
1743
|
-
searchText: options.searchText
|
|
1744
|
-
});
|
|
1745
|
-
OutputFormatter.success({
|
|
1746
|
-
Result: RESULTS.Success,
|
|
1747
|
-
Code: "FlowEvalAdd",
|
|
1748
|
-
Data: {
|
|
1749
|
-
Status: "Data point added",
|
|
1750
|
-
Name: evaluation.name,
|
|
1751
|
-
Id: evaluation.id,
|
|
1752
|
-
Set: options.set
|
|
1753
|
-
}
|
|
1754
|
-
});
|
|
1755
|
-
})());
|
|
1756
|
-
if (error) {
|
|
1757
|
-
outputError2("Failed to add evaluation data point", error);
|
|
1758
|
-
}
|
|
1759
|
-
});
|
|
1760
|
-
addRowWindowOptions(evalCmd.command("list")).description("List data points in an evaluation set").requiredOption("--set <name>", "Evaluation set name or ID").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (options) => {
|
|
1761
|
-
const [error] = await catchError2((async () => {
|
|
1762
|
-
const { FlowEvalService } = await import("./flow-eval-service-vf73ejad.js");
|
|
1763
|
-
const service = new FlowEvalService;
|
|
1764
|
-
const evaluations = await service.listEvaluations(options.path, options.set);
|
|
1765
|
-
const window = rowWindow(evaluations, options);
|
|
1766
|
-
OutputFormatter.success({
|
|
1767
|
-
Result: RESULTS.Success,
|
|
1768
|
-
Code: "FlowEvalList",
|
|
1769
|
-
Pagination: window.pagination,
|
|
1770
|
-
Data: window.rows.map((item) => ({
|
|
1771
|
-
Name: item.name,
|
|
1772
|
-
Id: item.id,
|
|
1773
|
-
Inputs: JSON.stringify(item.inputs),
|
|
1774
|
-
Expected: item.expectedOutput ? JSON.stringify(item.expectedOutput) : "-",
|
|
1775
|
-
Evaluators: Object.keys(item.evaluationCriterias ?? {}).length
|
|
1776
|
-
}))
|
|
1777
|
-
});
|
|
1778
|
-
})());
|
|
1779
|
-
if (error) {
|
|
1780
|
-
outputError2("Failed to list evaluation data points", error);
|
|
1781
|
-
}
|
|
1782
|
-
});
|
|
1783
|
-
evalCmd.command("delete").alias("remove").description("Remove a data point from an evaluation set").argument("<id>", "Data point ID or name").requiredOption("--set <name>", "Evaluation set name or ID").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (id, options) => {
|
|
1784
|
-
const [error] = await catchError2((async () => {
|
|
1785
|
-
const { FlowEvalService } = await import("./flow-eval-service-vf73ejad.js");
|
|
1786
|
-
const service = new FlowEvalService;
|
|
1787
|
-
const removed = await service.removeEvaluation(options.path, options.set, id);
|
|
1788
|
-
if (!removed) {
|
|
1789
|
-
throw new Error(`Data point "${id}" not found`);
|
|
1790
|
-
}
|
|
1791
|
-
OutputFormatter.success({
|
|
1792
|
-
Result: RESULTS.Success,
|
|
1793
|
-
Code: "FlowEvalRemove",
|
|
1794
|
-
Data: { Status: "Data point removed", Id: id }
|
|
1795
|
-
});
|
|
1796
|
-
})());
|
|
1797
|
-
if (error) {
|
|
1798
|
-
outputError2("Failed to remove evaluation data point", error);
|
|
1799
|
-
}
|
|
1800
|
-
});
|
|
1801
|
-
}
|
|
1802
|
-
function registerSimulationCommands(evalCmd) {
|
|
1803
|
-
const simulation = evalCmd.command("simulations").alias("simulation").description("Manage simulations on eval data points");
|
|
1804
|
-
simulation.command("create").alias("add").description("Add or update a simulation on a data point").argument("<component-id>", "Component ID to simulate").requiredOption("--set <name>", "Evaluation set name or ID").requiredOption("--data-point <id>", "Data point name or ID").requiredOption("--strategy <strategy>", "Simulation strategy: Static or Llm").option("--component-type <type>", "Component type (defaults to Node when --parent is used)").option("--component-description <text>", "Component description").option("--simulation-instructions <text>", "Simulation instructions (for Llm strategy)").option("--mock-value <json>", "Mock output value as JSON (for Static strategy)").option("--parent <component-id>", "Parent agent component ID. When set, the simulation is added as a child tool simulation on the parent agent node.").option("--path <path>", FLOW_EVAL_PATH_OPTION_DESCRIPTION2, ".").trackedAction(processContext, async (componentId, options) => {
|
|
1805
|
-
const [error] = await catchError2((async () => {
|
|
1806
|
-
const strategy = options.strategy;
|
|
1807
|
-
if (strategy !== "Static" && strategy !== "Llm") {
|
|
1808
|
-
throw new Error(`--strategy must be Static or Llm (got "${strategy}")`);
|
|
1809
|
-
}
|
|
1810
|
-
const componentType = options.componentType ?? (options.parent !== undefined ? "Node" : undefined);
|
|
1811
|
-
if (componentType === undefined) {
|
|
1812
|
-
throw new Error("--component-type is required (or use --parent to default to Node)");
|
|
1813
|
-
}
|
|
1814
|
-
if (strategy === "Static" && options.mockValue === undefined) {
|
|
1815
|
-
throw new Error("--mock-value is required for the Static strategy");
|
|
1816
|
-
}
|
|
1817
|
-
if (strategy === "Llm" && options.simulationInstructions === undefined) {
|
|
1818
|
-
throw new Error("--simulation-instructions is required for the Llm strategy");
|
|
1819
|
-
}
|
|
1820
|
-
const mockValue = options.mockValue !== undefined ? parseJsonValue(options.mockValue, "--mock-value") : undefined;
|
|
1821
|
-
const simulation = {
|
|
1822
|
-
componentId,
|
|
1823
|
-
componentType,
|
|
1824
|
-
componentDescription: options.componentDescription,
|
|
1825
|
-
simulationStrategy: strategy,
|
|
1826
|
-
simulationInstruction: options.simulationInstructions,
|
|
1827
|
-
mockValue
|
|
1828
|
-
};
|
|
1829
|
-
const { FlowEvalService } = await import("./flow-eval-service-vf73ejad.js");
|
|
1830
|
-
const service = new FlowEvalService;
|
|
1831
|
-
if (options.parent !== undefined) {
|
|
1832
|
-
const { simulation: created, warning } = await service.addChildSimulation(options.path, options.set, options.dataPoint, options.parent, simulation);
|
|
1833
|
-
const data = {
|
|
1834
|
-
ComponentId: created.componentId,
|
|
1835
|
-
ComponentType: created.componentType,
|
|
1836
|
-
Strategy: created.simulationStrategy,
|
|
1837
|
-
Parent: options.parent,
|
|
1838
|
-
DataPoint: options.dataPoint,
|
|
1839
|
-
Set: options.set
|
|
1840
|
-
};
|
|
1841
|
-
if (warning) {
|
|
1842
|
-
data.Warning = warning;
|
|
1843
|
-
OutputFormatter.log({ Warning: warning });
|
|
1844
|
-
}
|
|
1845
|
-
OutputFormatter.success({
|
|
1846
|
-
Result: RESULTS.Success,
|
|
1847
|
-
Code: "FlowEvalChildSimulationAdd",
|
|
1848
|
-
Data: data
|
|
1849
|
-
});
|
|
1850
|
-
} else {
|
|
1851
|
-
const created = await service.addSimulation(options.path, options.set, options.dataPoint, simulation);
|
|
1852
|
-
OutputFormatter.success({
|
|
1853
|
-
Result: RESULTS.Success,
|
|
1854
|
-
Code: "FlowEvalSimulationAdd",
|
|
1855
|
-
Data: {
|
|
1856
|
-
ComponentId: created.componentId,
|
|
1857
|
-
ComponentType: created.componentType,
|
|
1858
|
-
Strategy: created.simulationStrategy,
|
|
1859
|
-
DataPoint: options.dataPoint,
|
|
1860
|
-
Set: options.set
|
|
1861
|
-
}
|
|
1862
|
-
});
|
|
1505
|
+
|
|
1506
|
+
// src/commands/extraction.ts
|
|
1507
|
+
var EXTRACTION_CHECK_EXAMPLES = [
|
|
1508
|
+
{
|
|
1509
|
+
Description: "Check whether the Extract document node can run on the signed-in tenant",
|
|
1510
|
+
Command: "uip maestro flow extraction check",
|
|
1511
|
+
Output: {
|
|
1512
|
+
Code: "ExtractionCheckSuccess",
|
|
1513
|
+
Data: {
|
|
1514
|
+
Available: true,
|
|
1515
|
+
Status: "Available",
|
|
1516
|
+
Reason: "Document extraction is available on this tenant."
|
|
1863
1517
|
}
|
|
1864
|
-
})());
|
|
1865
|
-
if (error) {
|
|
1866
|
-
outputError2("Failed to add simulation", error);
|
|
1867
1518
|
}
|
|
1868
|
-
}
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1519
|
+
}
|
|
1520
|
+
];
|
|
1521
|
+
var CHECK_DESCRIPTION = `Report whether document extraction is usable on the signed-in tenant.
|
|
1522
|
+
` + "Run this before adding an Extract document node " + `(uipath.ixp.extract-document-builder) to a flow.
|
|
1523
|
+
|
|
1524
|
+
` + `Status is one of:
|
|
1525
|
+
` + ` Available the node can be added and will run
|
|
1526
|
+
` + " FeatureDisabled an administrator has to turn document extraction " + `on for this tenant
|
|
1527
|
+
` + ` ServiceUnavailable this environment serves no document extraction
|
|
1528
|
+
` + " ModelUnavailable extraction is on, but the tenant has no model to " + `extract with
|
|
1529
|
+
` + " Unknown a service answered, but not in a way that proves " + `anything either way
|
|
1530
|
+
|
|
1531
|
+
` + "Only Available means the node is worth adding. On any other status, say " + "so and stop, rather than adding the node and leaving the failure to run " + `time.
|
|
1532
|
+
` + "Nothing local can answer this: the node is not part of a tenant's node " + "catalogue, so neither 'registry' nor 'nodes create' reports whether a " + "tenant can run it.";
|
|
1533
|
+
var registerExtractionCommand = (program) => {
|
|
1534
|
+
const extraction = program.command("extraction").description("Check document extraction support on a tenant");
|
|
1535
|
+
extraction.command("check").description(CHECK_DESCRIPTION).addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", (value) => Number.parseInt(value, 10), 10).examples(EXTRACTION_CHECK_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
1536
|
+
const { getAuthContext } = await import("./index-r6crd7tx.js");
|
|
1537
|
+
const [authError, auth] = await catchError2(getAuthContext({
|
|
1538
|
+
ensureTokenValidityMinutes: options.loginValidity,
|
|
1539
|
+
tenant: options.tenant,
|
|
1540
|
+
requireOrganizationId: true,
|
|
1541
|
+
requireTenantName: true
|
|
1542
|
+
}));
|
|
1543
|
+
if (authError) {
|
|
1544
|
+
OutputFormatter.error(await authContextFailure(authError));
|
|
1545
|
+
processContext.exit(1);
|
|
1546
|
+
return;
|
|
1891
1547
|
}
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
Status: options.parent !== undefined ? "Child simulation removed" : "Simulation removed",
|
|
1906
|
-
ComponentId: componentId,
|
|
1907
|
-
...options.parent !== undefined ? { Parent: options.parent } : {}
|
|
1908
|
-
}
|
|
1909
|
-
});
|
|
1910
|
-
})());
|
|
1911
|
-
if (error) {
|
|
1912
|
-
outputError2("Failed to remove simulation", error);
|
|
1548
|
+
const { checkExtractionAvailability } = await import("./extraction-availability-service-h08mngty.js");
|
|
1549
|
+
const [probeError, availability] = await catchError2(checkExtractionAvailability({
|
|
1550
|
+
baseUrl: auth.baseUrl,
|
|
1551
|
+
organizationId: auth.organizationId,
|
|
1552
|
+
accessToken: auth.accessToken,
|
|
1553
|
+
tenantName: auth.tenantName,
|
|
1554
|
+
tenantId: auth.tenantId,
|
|
1555
|
+
tenantNamed: (options.tenant ?? "").length > 0,
|
|
1556
|
+
loginValidity: options.loginValidity
|
|
1557
|
+
}));
|
|
1558
|
+
if (probeError) {
|
|
1559
|
+
await reportFailure("Could not check document extraction support", probeError);
|
|
1560
|
+
return;
|
|
1913
1561
|
}
|
|
1562
|
+
OutputFormatter.success({
|
|
1563
|
+
Result: RESULTS.Success,
|
|
1564
|
+
Code: "ExtractionCheckSuccess",
|
|
1565
|
+
Data: {
|
|
1566
|
+
Available: availability.available,
|
|
1567
|
+
Status: availability.status,
|
|
1568
|
+
Reason: availability.reason,
|
|
1569
|
+
Tenant: auth.tenantName
|
|
1570
|
+
},
|
|
1571
|
+
Instructions: availability.available ? "Add an Extract document node with 'uip maestro flow nodes create'." : `${availability.reason} Tell the user, and do not add an Extract document node to the flow.`
|
|
1572
|
+
});
|
|
1914
1573
|
});
|
|
1915
|
-
}
|
|
1574
|
+
};
|
|
1916
1575
|
|
|
1917
1576
|
// src/commands/hitl.ts
|
|
1918
1577
|
var VALID_PRIORITIES = ["Low", "Medium", "High"];
|
|
@@ -2037,7 +1696,7 @@ var registerHitlCommand = (program) => {
|
|
|
2037
1696
|
}
|
|
2038
1697
|
schema = parsed;
|
|
2039
1698
|
}
|
|
2040
|
-
const { addHitlNode } = await import("./hitl-service-
|
|
1699
|
+
const { addHitlNode } = await import("./hitl-service-hs54d6tt.js");
|
|
2041
1700
|
const [error, result] = await catchError2(addHitlNode(file, {
|
|
2042
1701
|
schema,
|
|
2043
1702
|
priority: options.priority,
|
|
@@ -2070,7 +1729,8 @@ var registerHitlCommand = (program) => {
|
|
|
2070
1729
|
// src/commands/incidents.ts
|
|
2071
1730
|
var registerIncidentsCommand = (program) => {
|
|
2072
1731
|
registerSharedIncidentCommands(program, {
|
|
2073
|
-
toolLabel: "Flow"
|
|
1732
|
+
toolLabel: "Flow",
|
|
1733
|
+
processType: "Flow"
|
|
2074
1734
|
});
|
|
2075
1735
|
};
|
|
2076
1736
|
|
|
@@ -2130,8 +1790,8 @@ Packing or uploading the solution will sync solution resources automatically.`
|
|
|
2130
1790
|
];
|
|
2131
1791
|
var registerInitCommand = (program) => {
|
|
2132
1792
|
program.command("init").description("Create a new Flow project with boilerplate files. If run outside an existing solution, a parent '<name>Solution' is scaffolded automatically and the flow project is created inside it. If run inside an existing solution, the project is added to that solution.").argument("<name>", "Flow project name").option("--force", "Force initialization even if target directory exists and is not empty").option("--skip-solution-registration", "Do not auto-register this project in the surrounding solution").option("--automate", "Create a Maestro Automate project. Same Flow project and the same commands — it only changes the runtime profile written into operate.json.").option("--sdk-source [file]", "Also write the builder-SDK source: decompile the new .flow into <project>/.flow-sdk/<name>.flow.ts, or into [file] (relative to the current directory), creating its folder. Same as running 'uip maestro flow decompile <name>.flow -o <file> --no-pipeline' after init. Requires @uipath/maestro-builder-sdk.").examples(FLOW_INIT_EXAMPLES).trackedAction(processContext, async (name, options) => {
|
|
2133
|
-
const { flowInitAsync, FlowInitSdkSourceError } = await import("./flow-init-service-
|
|
2134
|
-
const { RuntimeProfile } = await import("./maestro-automate-entry-
|
|
1793
|
+
const { flowInitAsync, FlowInitSdkSourceError } = await import("./flow-init-service-0m5yp9fe.js");
|
|
1794
|
+
const { RuntimeProfile } = await import("./maestro-automate-entry-mrap5xmt.js");
|
|
2135
1795
|
const [error, result] = await catchError2(flowInitAsync(name, {
|
|
2136
1796
|
force: options.force,
|
|
2137
1797
|
skipRegistration: options.skipSolutionRegistration === true,
|
|
@@ -2291,7 +1951,7 @@ function formatFlowJob(job) {
|
|
|
2291
1951
|
function registerJobCommand(program) {
|
|
2292
1952
|
const jobCmd = program.command("jobs").alias("job").description("Manage Flow jobs");
|
|
2293
1953
|
jobCmd.command("list").description("List Flow jobs in a folder").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-key <key>", "Folder key (GUID, defaults to authenticated folder)").option("--state <state>", `Filter by job state (${VALID_JOB_STATES.join(", ")})`).option("--process-name <name>", "Filter by Flow process name (contains match)").option("-l, --limit <number>", "Number of items to return", DEFAULT_JOB_LIST_LIMIT).option("--offset <number>", "Number of items to skip", DEFAULT_JOB_LIST_OFFSET).option("--sort-by <field>", "Sort results by field (e.g., 'Id desc')", DEFAULT_JOB_LIST_ORDER_BY).option("--all-fields", "Return all fields from the API response instead of a curated summary").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", (value) => Number.parseInt(value, 10), 10).examples(FLOW_JOB_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
2294
|
-
const { getAuthContext } = await import("./index-
|
|
1954
|
+
const { getAuthContext } = await import("./index-r6crd7tx.js");
|
|
2295
1955
|
const normalizedOptions = {
|
|
2296
1956
|
tenant: normalizeOptionalOption(options.tenant),
|
|
2297
1957
|
folderKey: normalizeOptionalOption(options.folderKey),
|
|
@@ -2345,7 +2005,7 @@ function registerJobCommand(program) {
|
|
|
2345
2005
|
tenantId: auth.tenantId,
|
|
2346
2006
|
baseUrl: auth.baseUrl
|
|
2347
2007
|
};
|
|
2348
|
-
const { listFlowJobs } = await import("./flow-api-
|
|
2008
|
+
const { listFlowJobs } = await import("./flow-api-bmg7beey.js");
|
|
2349
2009
|
const [listError, jobs] = await catchError2(listFlowJobs(config, {
|
|
2350
2010
|
state,
|
|
2351
2011
|
processName: normalizedOptions.processName,
|
|
@@ -2377,7 +2037,7 @@ function registerJobCommand(program) {
|
|
|
2377
2037
|
});
|
|
2378
2038
|
const tracesCmd = jobCmd.command("traces").description("Stream traces for a running job").argument("<job-key>", "Job key (GUID from run command)");
|
|
2379
2039
|
addJobTracesOptions(tracesCmd).trackedAction(processContext, async (jobKey, options) => {
|
|
2380
|
-
const { getAuthContext } = await import("./index-
|
|
2040
|
+
const { getAuthContext } = await import("./index-r6crd7tx.js");
|
|
2381
2041
|
const [authError, auth] = await catchError2(getAuthContext({
|
|
2382
2042
|
ensureTokenValidityMinutes: options.loginValidity,
|
|
2383
2043
|
tenant: options.tenant,
|
|
@@ -2414,7 +2074,7 @@ function registerJobCommand(program) {
|
|
|
2414
2074
|
const pollSeconds = pollIntervalMs / 1000;
|
|
2415
2075
|
logger.info(`Streaming traces for job: ${jobKey}
|
|
2416
2076
|
Polling every ${pollSeconds}s...`);
|
|
2417
|
-
const { resolveFlowFolderId, streamJobTraces } = await import("./flow-api-
|
|
2077
|
+
const { resolveFlowFolderId, streamJobTraces } = await import("./flow-api-bmg7beey.js");
|
|
2418
2078
|
let folderId;
|
|
2419
2079
|
if (config.folderKey) {
|
|
2420
2080
|
const [folderError, resolvedId] = await catchError2(resolveFlowFolderId(config));
|
|
@@ -2467,7 +2127,7 @@ function registerJobCommand(program) {
|
|
|
2467
2127
|
processContext.exit(result.success ? 0 : 1);
|
|
2468
2128
|
});
|
|
2469
2129
|
jobCmd.command("status").description("Get detailed status of a Flow job").argument("<job-key>", "Job key (GUID from run command)").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--folder-key <key>", "Folder key (GUID from list command, defaults to authenticated folder)").option("--detailed", "Show full response with all fields").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).examples(FLOW_JOB_STATUS_EXAMPLES).trackedAction(processContext, async (jobKey, options) => {
|
|
2470
|
-
const { getAuthContext } = await import("./index-
|
|
2130
|
+
const { getAuthContext } = await import("./index-r6crd7tx.js");
|
|
2471
2131
|
const [authError, auth] = await catchError2(getAuthContext({
|
|
2472
2132
|
ensureTokenValidityMinutes: options.loginValidity,
|
|
2473
2133
|
tenant: options.tenant,
|
|
@@ -2490,7 +2150,7 @@ function registerJobCommand(program) {
|
|
|
2490
2150
|
tenantId: auth.tenantId,
|
|
2491
2151
|
baseUrl: auth.baseUrl
|
|
2492
2152
|
};
|
|
2493
|
-
const { getJobStatusDetailed } = await import("./flow-api-
|
|
2153
|
+
const { getJobStatusDetailed } = await import("./flow-api-bmg7beey.js");
|
|
2494
2154
|
const [statusError, status] = await catchError2(getJobStatusDetailed(config, jobKey));
|
|
2495
2155
|
if (statusError) {
|
|
2496
2156
|
OutputFormatter.error({
|
|
@@ -2574,7 +2234,7 @@ var FLOW_MIGRATE_EXAMPLES = [
|
|
|
2574
2234
|
];
|
|
2575
2235
|
var registerMigrateCommand = (program) => {
|
|
2576
2236
|
program.command("migrate").description("Migrate a .flow file to the current workflow and node schema versions").argument("<file>", "Path to the .flow file").option("--dry-run", "Show what would change without writing the file").option("--no-include-optional", "Skip optional node migrations (e.g. typeVersion normalization). Default: optional migrations are applied.").examples(FLOW_MIGRATE_EXAMPLES).trackedAction(processContext, async (file, options) => {
|
|
2577
|
-
const { migrateFlow } = await import("./flow-migrate-service-
|
|
2237
|
+
const { migrateFlow } = await import("./flow-migrate-service-a8s4rmq6.js");
|
|
2578
2238
|
const [error, result] = await catchError2(migrateFlow(file, {
|
|
2579
2239
|
dryRun: options.dryRun,
|
|
2580
2240
|
includeOptional: options.includeOptional
|
|
@@ -2611,6 +2271,158 @@ var registerMigrateCommand = (program) => {
|
|
|
2611
2271
|
});
|
|
2612
2272
|
};
|
|
2613
2273
|
|
|
2274
|
+
// src/commands/node-schema.ts
|
|
2275
|
+
function reportSchemaError(error) {
|
|
2276
|
+
OutputFormatter.error({
|
|
2277
|
+
Result: error.result,
|
|
2278
|
+
ErrorCode: error.code,
|
|
2279
|
+
Message: error.message,
|
|
2280
|
+
Instructions: error.instructions,
|
|
2281
|
+
...error.issues.length > 0 && {
|
|
2282
|
+
Data: {
|
|
2283
|
+
Issues: error.issues.map((issue) => ({
|
|
2284
|
+
Path: issue.path,
|
|
2285
|
+
Message: issue.message
|
|
2286
|
+
}))
|
|
2287
|
+
}
|
|
2288
|
+
}
|
|
2289
|
+
});
|
|
2290
|
+
processContext.exit(exitCodeForResult(error.result));
|
|
2291
|
+
}
|
|
2292
|
+
var NODE_SCHEMA_GET_EXAMPLES = [
|
|
2293
|
+
{
|
|
2294
|
+
Description: "Read an Extract document node's extraction schema",
|
|
2295
|
+
Command: "uip maestro flow nodes schema get Flow/Flow.flow --node-id extractDocument1",
|
|
2296
|
+
Output: {
|
|
2297
|
+
Code: "NodeSchemaGetSuccess",
|
|
2298
|
+
Data: {
|
|
2299
|
+
NodeId: "extractDocument1",
|
|
2300
|
+
Schema: {
|
|
2301
|
+
prompt: "Extract the invoice header and every line item.",
|
|
2302
|
+
outputSchema: {
|
|
2303
|
+
type: "object",
|
|
2304
|
+
properties: {},
|
|
2305
|
+
$defs: {}
|
|
2306
|
+
}
|
|
2307
|
+
},
|
|
2308
|
+
HasDraft: false
|
|
2309
|
+
}
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2312
|
+
];
|
|
2313
|
+
var NODE_SCHEMA_SET_EXAMPLES = [
|
|
2314
|
+
{
|
|
2315
|
+
Description: "Replace an Extract document node's extraction schema from a file",
|
|
2316
|
+
Command: "uip maestro flow nodes schema set Flow/Flow.flow --node-id extractDocument1 --schema @taxonomy.json",
|
|
2317
|
+
Output: {
|
|
2318
|
+
Code: "NodeSchemaSetSuccess",
|
|
2319
|
+
Data: {
|
|
2320
|
+
NodeId: "extractDocument1",
|
|
2321
|
+
Groups: 2,
|
|
2322
|
+
Fields: 7,
|
|
2323
|
+
FieldTypes: 6,
|
|
2324
|
+
GroupIdsPreserved: 2,
|
|
2325
|
+
GroupIdsMinted: 0,
|
|
2326
|
+
FieldIdsPreserved: 6,
|
|
2327
|
+
FieldIdsMinted: 1,
|
|
2328
|
+
DraftDiscarded: false
|
|
2329
|
+
}
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
];
|
|
2333
|
+
var SET_DESCRIPTION = "Replace the extraction schema of an Extract document node " + `(uipath.ixp.extract-document-builder).
|
|
2334
|
+
` + "The document is the whole schema, not a patch, and must be an object " + `with "prompt" (the overall instructions) and "outputSchema".
|
|
2335
|
+
` + 'A "config" is ignored: the model settings belong to the node, at ' + `inputs.modelConfig, and are edited there.
|
|
2336
|
+
|
|
2337
|
+
` + `STABLE IDS
|
|
2338
|
+
` + " Annotations and evaluator settings are stored against the " + `x-uipath-field-group-id and x-uipath-field-id of each entry.
|
|
2339
|
+
` + " Read the current schema with 'nodes schema get' and keep those ids on " + `the entries you are editing — including when you rename one.
|
|
2340
|
+
` + " An entry without an id takes the id of the entry of the same name it " + "replaces, unless the document already claims that id elsewhere, and is " + `given a new one otherwise.
|
|
2341
|
+
|
|
2342
|
+
` + `FIELD GROUPS
|
|
2343
|
+
` + " Each entry of outputSchema.properties is a field group: an array of " + `objects repeats, a plain object occurs once.
|
|
2344
|
+
` + ' Nesting is by name — a group named "Invoice > Line Items" sits under ' + `the group named "Invoice".
|
|
2345
|
+
` + ` Names are at most ${SCHEMA_GROUP_NAME_MAX} characters — for a nested ` + 'group that is the whole "Parent > Child" path — and instructions at ' + `most ${SCHEMA_INSTRUCTIONS_MAX}.`;
|
|
2346
|
+
var registerNodeSchemaCommands = (node) => {
|
|
2347
|
+
const schema = node.command("schema").description("Read and replace the extraction schema of an Extract document node");
|
|
2348
|
+
schema.command("get").description(`Read the extraction schema an Extract document node carries.
|
|
2349
|
+
` + "Prints the document as stored, so it can be edited and " + "written back with 'nodes schema set'.").argument("<file>", "Path to the .flow file").requiredOption("--node-id <node-id>", "ID of the Extract document node to read").examples(NODE_SCHEMA_GET_EXAMPLES).trackedAction(processContext, async (file, options) => {
|
|
2350
|
+
const nodeId = options.nodeId;
|
|
2351
|
+
const { getNodeSchema, SchemaCommandError } = await import("./schema-document-service-mknqzg7e.js");
|
|
2352
|
+
const [error, result] = await catchError2(getNodeSchema(file, nodeId.trim()));
|
|
2353
|
+
if (error) {
|
|
2354
|
+
if (error instanceof SchemaCommandError) {
|
|
2355
|
+
reportSchemaError(error);
|
|
2356
|
+
return;
|
|
2357
|
+
}
|
|
2358
|
+
await reportFailure("Error reading node schema", error);
|
|
2359
|
+
return;
|
|
2360
|
+
}
|
|
2361
|
+
OutputFormatter.success({
|
|
2362
|
+
Result: RESULTS.Success,
|
|
2363
|
+
Code: "NodeSchemaGetSuccess",
|
|
2364
|
+
Data: {
|
|
2365
|
+
NodeId: result.nodeId,
|
|
2366
|
+
Schema: result.schemaDocument,
|
|
2367
|
+
HasDraft: result.hasDraft,
|
|
2368
|
+
...result.hasDraft && {
|
|
2369
|
+
DraftIssueMessages: result.draftIssueMessages
|
|
2370
|
+
},
|
|
2371
|
+
...result.processorKey !== undefined && {
|
|
2372
|
+
ProcessorKey: result.processorKey
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
}, { preserveDataKeys: ["schema"] });
|
|
2376
|
+
});
|
|
2377
|
+
schema.command("set").description(SET_DESCRIPTION).argument("<file>", "Path to the .flow file").requiredOption("--node-id <node-id>", "ID of the Extract document node to write").requiredOption("--schema <json>", "The schema document as a JSON string or @file.json").option("--discard-draft", "Replace the schema even when the node carries an unsaved Schema " + "Editor draft, discarding that draft").examples(NODE_SCHEMA_SET_EXAMPLES).trackedAction(processContext, async (flowFile, options) => {
|
|
2378
|
+
const {
|
|
2379
|
+
DraftPolicy,
|
|
2380
|
+
SchemaCommandError,
|
|
2381
|
+
setNodeSchemaFromSource
|
|
2382
|
+
} = await import("./schema-document-service-mknqzg7e.js");
|
|
2383
|
+
const [error, result] = await catchError2(setNodeSchemaFromSource(flowFile, options.nodeId.trim(), options.schema, options.discardDraft === true ? DraftPolicy.DiscardDraft : DraftPolicy.RejectRequest));
|
|
2384
|
+
if (error) {
|
|
2385
|
+
if (error instanceof SchemaCommandError) {
|
|
2386
|
+
reportSchemaError(error);
|
|
2387
|
+
return;
|
|
2388
|
+
}
|
|
2389
|
+
await reportFailure("Error setting node schema", error);
|
|
2390
|
+
return;
|
|
2391
|
+
}
|
|
2392
|
+
OutputFormatter.success({
|
|
2393
|
+
Result: RESULTS.Success,
|
|
2394
|
+
Code: "NodeSchemaSetSuccess",
|
|
2395
|
+
Data: {
|
|
2396
|
+
NodeId: result.nodeId,
|
|
2397
|
+
Groups: result.groups,
|
|
2398
|
+
Fields: result.fields,
|
|
2399
|
+
FieldTypes: result.fieldTypes,
|
|
2400
|
+
GroupIdsPreserved: result.groupIdsPreserved,
|
|
2401
|
+
GroupIdsMinted: result.groupIdsMinted,
|
|
2402
|
+
FieldIdsPreserved: result.fieldIdsPreserved,
|
|
2403
|
+
FieldIdsMinted: result.fieldIdsMinted,
|
|
2404
|
+
...result.businessChecksDropped > 0 && {
|
|
2405
|
+
BusinessChecksDropped: result.businessChecksDropped
|
|
2406
|
+
},
|
|
2407
|
+
DraftDiscarded: result.draftDiscarded,
|
|
2408
|
+
...result.replacedLegacyDocument && {
|
|
2409
|
+
ReplacedLegacyDocument: true
|
|
2410
|
+
},
|
|
2411
|
+
...result.processorKey !== undefined && {
|
|
2412
|
+
ProcessorKey: result.processorKey,
|
|
2413
|
+
...result.processorResourceFile !== undefined && {
|
|
2414
|
+
ResourceFile: result.processorResourceFile
|
|
2415
|
+
},
|
|
2416
|
+
...result.processorResourcePending !== undefined && {
|
|
2417
|
+
ResourcePending: result.processorResourcePending
|
|
2418
|
+
},
|
|
2419
|
+
ProcessorSync: result.processorAuthoredHere ? "This node names a processor (inputs.processorKey), which holds its own copy of the schema and is what a published solution extracts with. 'uip solution pack' regenerates that copy from the node, so the deployed processor matches this schema." : "This node runs a processor it does not " + "define — a copy of another node's, or one " + "published to the tenant — and that " + "processor holds the schema the extraction actually runs. Packing does not rebuild it from this node, so the schema written here does not reach the deployed extraction."
|
|
2420
|
+
}
|
|
2421
|
+
}
|
|
2422
|
+
});
|
|
2423
|
+
});
|
|
2424
|
+
};
|
|
2425
|
+
|
|
2614
2426
|
// src/commands/node.ts
|
|
2615
2427
|
var NODE_ADD_EXAMPLES = [
|
|
2616
2428
|
{
|
|
@@ -2684,6 +2496,40 @@ var NODE_LIST_EXAMPLES = [
|
|
|
2684
2496
|
}
|
|
2685
2497
|
}
|
|
2686
2498
|
];
|
|
2499
|
+
var NODE_PROVISION_EXAMPLES = [
|
|
2500
|
+
{
|
|
2501
|
+
Description: "Give every Extract document node that has no processor one",
|
|
2502
|
+
Command: "uip maestro flow nodes provision Flow/Flow.flow",
|
|
2503
|
+
Output: {
|
|
2504
|
+
Code: "NodeProvisionSuccess",
|
|
2505
|
+
Data: {
|
|
2506
|
+
Provisioned: [
|
|
2507
|
+
{
|
|
2508
|
+
NodeId: "extractDocument1",
|
|
2509
|
+
ProcessorKey: "9e4a2a9f-1111-2222-3333-444455556666",
|
|
2510
|
+
ProcessorName: "Extract invoices",
|
|
2511
|
+
ResourceFile: "resources/solution_folder/idpProcessor/extraction/Extract_invoices.json"
|
|
2512
|
+
}
|
|
2513
|
+
]
|
|
2514
|
+
}
|
|
2515
|
+
}
|
|
2516
|
+
},
|
|
2517
|
+
{
|
|
2518
|
+
Description: "Provision one node",
|
|
2519
|
+
Command: "uip maestro flow nodes provision Flow/Flow.flow --node-id extractDocument1",
|
|
2520
|
+
Output: {
|
|
2521
|
+
Code: "NodeProvisionSuccess",
|
|
2522
|
+
Data: {
|
|
2523
|
+
Provisioned: [
|
|
2524
|
+
{
|
|
2525
|
+
NodeId: "extractDocument1",
|
|
2526
|
+
ProcessorKey: "9e4a2a9f-1111-2222-3333-444455556666"
|
|
2527
|
+
}
|
|
2528
|
+
]
|
|
2529
|
+
}
|
|
2530
|
+
}
|
|
2531
|
+
}
|
|
2532
|
+
];
|
|
2687
2533
|
var NODE_DELETE_EXAMPLES = [
|
|
2688
2534
|
{
|
|
2689
2535
|
Description: "Delete a node and its connections from a flow",
|
|
@@ -2740,7 +2586,7 @@ function getDeleteNodeInstructions(file) {
|
|
|
2740
2586
|
return `Check that "${file}" exists and run 'uip maestro flow nodes list ${file}' to find a valid node ID, then retry.`;
|
|
2741
2587
|
}
|
|
2742
2588
|
async function runDeleteNode(file, nodeId, code) {
|
|
2743
|
-
const { deleteNodeFromFlow } = await import("./node-service-
|
|
2589
|
+
const { deleteNodeFromFlow } = await import("./node-service-bq7m24js.js");
|
|
2744
2590
|
const normalizedNodeId = nodeId.trim();
|
|
2745
2591
|
const [error, result] = await catchError2(deleteNodeFromFlow(file, normalizedNodeId));
|
|
2746
2592
|
if (error) {
|
|
@@ -2770,7 +2616,7 @@ var registerNodeCommand = (program) => {
|
|
|
2770
2616
|
node.command("create").alias("add").description(`Add a node to a Flow file.
|
|
2771
2617
|
` + "For connector nodes (type uipath.connector), do NOT pass --input here — " + `run 'nodes configure' afterwards to supply connection and endpoint details.
|
|
2772
2618
|
Read file / Create file (core.action.file.*) also need 'nodes configure' to bind their Orchestrator connection; a connectionId passed in --input alone is not bound.
|
|
2773
|
-
Example: uip maestro flow nodes create flow.flow uipath.connector.jira.createIssue --label 'Create Jira Issue'`).argument("<file>", "Path to the .flow file").argument("<node-type>", "Node type identifier (e.g. core.trigger.manual)").option("-i, --input <json>", `JSON object of input values to set on the node (e.g. '{"script": "..."}')`).option("--position <x,y>", "Node position in the canvas (e.g. 250,150)").option("--label <label>", "Display label for the node").option("--source <uuid>", "Source UUID for nodes whose manifest declares a source dependency. Use the agent's ProjectId (inline agent nodes) or the resource id from the parent inline agent's resources[] (agent-tool resource nodes). Populates inputs.source.").option("--parent <node-id>", "Id of the existing node that should contain this node. Set when authoring a loop body whose containment cannot be " + "inferred from edges alone — typically the id of a " + "core.logic.loop node.").option("--metadata <file>", "Non-catalog activity only: the generated activity metadata (<Name>.json from 'uip is activities metadata generate'). The node definition is built from it instead of the registry; the node type must be uipath.connector.custom.<connector-key>.<slug>. Requires --scripts.").option("--scripts <dir>", "Non-catalog activity only: directory holding <scriptRef>.js for the action and every lookup the metadata references; the sources are embedded in the node. Requires --metadata.").examples(NODE_ADD_EXAMPLES).trackedAction(processContext, async (file, nodeType, options) => {
|
|
2619
|
+
Example: uip maestro flow nodes create flow.flow uipath.connector.jira.createIssue --label 'Create Jira Issue'`).argument("<file>", "Path to the .flow file").argument("<node-type>", "Node type identifier (e.g. core.trigger.manual)").option("-i, --input <json>", `JSON object of input values to set on the node (e.g. '{"script": "..."}')`).option("--position <x,y>", "Node position in the canvas (e.g. 250,150)").option("--label <label>", "Display label for the node").option("--id <id>", "Exact id for the node, used as given. Without it the id is the camel-cased label plus a number. Must be unused in the flow.").option("--source <uuid>", "Source UUID for nodes whose manifest declares a source dependency. Use the agent's ProjectId (inline agent nodes) or the resource id from the parent inline agent's resources[] (agent-tool resource nodes). Populates inputs.source. Inline agent nodes default to the project's only inline agent folder when there is exactly one.").option("--parent <node-id>", "Id of the existing node that should contain this node. Set when authoring a loop body whose containment cannot be " + "inferred from edges alone — typically the id of a " + "core.logic.loop node. A core.subflow id puts the node inside that subflow.").option("--metadata <file>", "Non-catalog activity only: the generated activity metadata (<Name>.json from 'uip is activities metadata generate'). The node definition is built from it instead of the registry; the node type must be uipath.connector.custom.<connector-key>.<slug>. Requires --scripts.").option("--scripts <dir>", "Non-catalog activity only: directory holding <scriptRef>.js for the action and every lookup the metadata references; the sources are embedded in the node. Requires --metadata.").examples(NODE_ADD_EXAMPLES).trackedAction(processContext, async (file, nodeType, options) => {
|
|
2774
2620
|
if (options.metadata === undefined !== (options.scripts === undefined)) {
|
|
2775
2621
|
OutputFormatter.error({
|
|
2776
2622
|
Result: RESULTS.Failure,
|
|
@@ -2824,24 +2670,28 @@ Example: uip maestro flow nodes create flow.flow uipath.connector.jira.createIss
|
|
|
2824
2670
|
const {
|
|
2825
2671
|
addNodeToFlow,
|
|
2826
2672
|
InlineActivityError,
|
|
2673
|
+
NodeIdError,
|
|
2827
2674
|
NodeTypeNotEnabledError,
|
|
2828
2675
|
NodeTypeNotFoundError,
|
|
2829
2676
|
SourceRequiredError
|
|
2830
|
-
} = await import("./node-service-
|
|
2677
|
+
} = await import("./node-service-bq7m24js.js");
|
|
2831
2678
|
const [error, result] = await catchError2(addNodeToFlow(file, nodeType, {
|
|
2832
2679
|
position,
|
|
2833
2680
|
label: options.label,
|
|
2681
|
+
id: options.id,
|
|
2834
2682
|
inputs,
|
|
2835
2683
|
source: options.source,
|
|
2836
2684
|
parent: options.parent,
|
|
2837
2685
|
inlineActivity
|
|
2838
2686
|
}));
|
|
2839
2687
|
if (error) {
|
|
2840
|
-
if (error instanceof NodeTypeNotEnabledError || error instanceof NodeTypeNotFoundError || error instanceof SourceRequiredError || error instanceof InlineActivityError) {
|
|
2688
|
+
if (error instanceof NodeTypeNotEnabledError || error instanceof NodeTypeNotFoundError || error instanceof SourceRequiredError || error instanceof NodeIdError || error instanceof InlineActivityError) {
|
|
2841
2689
|
OutputFormatter.error({
|
|
2842
2690
|
Result: RESULTS.Failure,
|
|
2843
2691
|
Message: error.message,
|
|
2844
|
-
Instructions: error.instructions
|
|
2692
|
+
Instructions: error.instructions,
|
|
2693
|
+
...error instanceof NodeTypeNotEnabledError ? { ErrorCode: error.errorCode } : {},
|
|
2694
|
+
...error instanceof NodeIdError ? { ErrorCode: "invalid_argument" } : {}
|
|
2845
2695
|
});
|
|
2846
2696
|
processContext.exit(1);
|
|
2847
2697
|
return;
|
|
@@ -2863,6 +2713,20 @@ Example: uip maestro flow nodes create flow.flow uipath.connector.jira.createIss
|
|
|
2863
2713
|
ScriptRef: result.inlineActivity.scriptRef,
|
|
2864
2714
|
Scripts: result.inlineActivity.scripts
|
|
2865
2715
|
}
|
|
2716
|
+
},
|
|
2717
|
+
...result.idpProcessor && {
|
|
2718
|
+
IdpProcessor: {
|
|
2719
|
+
ProcessorKey: result.idpProcessor.processorKey,
|
|
2720
|
+
...result.idpProcessor.processorName && {
|
|
2721
|
+
ProcessorName: result.idpProcessor.processorName
|
|
2722
|
+
},
|
|
2723
|
+
...result.idpProcessor.resourceFile && {
|
|
2724
|
+
ResourceFile: result.idpProcessor.resourceFile
|
|
2725
|
+
},
|
|
2726
|
+
...result.idpProcessor.resourcePending && {
|
|
2727
|
+
ResourcePending: result.idpProcessor.resourcePending
|
|
2728
|
+
}
|
|
2729
|
+
}
|
|
2866
2730
|
}
|
|
2867
2731
|
}
|
|
2868
2732
|
});
|
|
@@ -2872,11 +2736,11 @@ Example: uip maestro flow nodes create flow.flow uipath.connector.jira.createIss
|
|
|
2872
2736
|
` + `Use 'nodes list' to find the node ID.
|
|
2873
2737
|
|
|
2874
2738
|
CONNECTOR ACTIVITIES (type uipath.connector.*, NOT *.trigger.*)
|
|
2875
|
-
Required: connectionId, folderKey
|
|
2739
|
+
Required: connectionId, folderKey.
|
|
2876
2740
|
Generic activities (manifest activityType='Generic', e.g. *.insert-record,
|
|
2877
|
-
*.list-records) also require objectName. Discover with:
|
|
2741
|
+
*.list-records) also require method, endpoint and objectName. Discover with:
|
|
2878
2742
|
` + genericObjectDiscoveryCommands("<connector-key>", "<uuid>", "<op>").map((command) => ` ${command}
|
|
2879
|
-
`).join("") + ` Curated activities:
|
|
2743
|
+
`).join("") + ` Curated activities: method and endpoint default from the activity; pass them to override.
|
|
2880
2744
|
Optional: bodyParameters, queryParameters, pathParameters, filter,
|
|
2881
2745
|
customFieldsRequestDetails ({ objectActionName, parameterValues: [[k,v],...] });
|
|
2882
2746
|
Examples:
|
|
@@ -2960,28 +2824,28 @@ MANAGED HTTP NODES (type core.action.http.v2)
|
|
|
2960
2824
|
{ configureConnectorNode, InvalidDetailError },
|
|
2961
2825
|
{ ConnectionConnectorMismatchError }
|
|
2962
2826
|
] = await Promise.all([
|
|
2963
|
-
import("./connector-service-
|
|
2964
|
-
import("./index-
|
|
2827
|
+
import("./connector-service-8t5swsf9.js"),
|
|
2828
|
+
import("./index-cg965dhq.js")
|
|
2965
2829
|
]);
|
|
2966
2830
|
const [error, result] = await catchError2(configureConnectorNode(file, nodeId, parsed));
|
|
2967
2831
|
if (error) {
|
|
2968
2832
|
const callerError = error instanceof ConnectionConnectorMismatchError || error instanceof InvalidDetailError;
|
|
2969
|
-
|
|
2970
|
-
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
|
|
2833
|
+
if (!callerError) {
|
|
2834
|
+
const failure = await classifiedFailure("Error configuring node", error);
|
|
2835
|
+
OutputFormatter.error({
|
|
2836
|
+
...failure,
|
|
2837
|
+
Result: carriedResult(error) ?? failure.Result
|
|
2838
|
+
});
|
|
2839
|
+
processContext.exit(1);
|
|
2840
|
+
return;
|
|
2976
2841
|
}
|
|
2842
|
+
const mismatch = error instanceof ConnectionConnectorMismatchError;
|
|
2977
2843
|
OutputFormatter.error({
|
|
2978
2844
|
Result: RESULTS.Failure,
|
|
2979
|
-
Message: message,
|
|
2980
|
-
Instructions: instructions,
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
Retry: "RetryWillNotFix"
|
|
2984
|
-
}
|
|
2845
|
+
Message: mismatch ? error.message : "Invalid --detail",
|
|
2846
|
+
Instructions: mismatch ? error.instructions : error.message,
|
|
2847
|
+
ErrorCode: "invalid_argument",
|
|
2848
|
+
Retry: "RetryWillNotFix"
|
|
2985
2849
|
});
|
|
2986
2850
|
processContext.exit(1);
|
|
2987
2851
|
return;
|
|
@@ -3000,7 +2864,7 @@ MANAGED HTTP NODES (type core.action.http.v2)
|
|
|
3000
2864
|
});
|
|
3001
2865
|
});
|
|
3002
2866
|
addRowWindowOptions(node.command("list")).description("List all nodes in a Flow file").argument("<file>", "Path to the .flow file").examples(NODE_LIST_EXAMPLES).trackedAction(processContext, async (file, options) => {
|
|
3003
|
-
const { listNodesInFlow } = await import("./node-service-
|
|
2867
|
+
const { listNodesInFlow } = await import("./node-service-bq7m24js.js");
|
|
3004
2868
|
const [error, result] = await catchError2(listNodesInFlow(file));
|
|
3005
2869
|
if (error) {
|
|
3006
2870
|
OutputFormatter.error({
|
|
@@ -3028,6 +2892,45 @@ Use 'nodes list' to find the node ID.`).argument("<file>", "Path to the .flow fi
|
|
|
3028
2892
|
node.command("remove", { hidden: true }).description(`Remove a node from a Flow file.
|
|
3029
2893
|
Alias for 'nodes delete'. Automatically removes connected edges, orphaned bindings, orphaned definitions, and node variables owned by the removed node.
|
|
3030
2894
|
Use 'nodes list' to find the node ID.`).argument("<file>", "Path to the .flow file").argument("<node-id>", "ID of the node to remove").examples(NODE_REMOVE_EXAMPLES).trackedAction(processContext, async (file, nodeId) => runDeleteNode(file, nodeId, "NodeRemoveSuccess"));
|
|
2895
|
+
node.command("provision").description(`Give an Extract document node the processor it extracts through.
|
|
2896
|
+
` + "'nodes create' provisions as it goes, so this is for a node that has none — " + `authored before the CLI provisioned anything, or written by hand. 'flow validate' names this command when it finds one.
|
|
2897
|
+
Writes inputs.processorKey into the .flow, and the processor's resource file when the project is inside a solution. Commit both.
|
|
2898
|
+
Without --node-id, every Extract document node in the file that has no processor is provisioned; read-only mirrors and processors published to the tenant are left alone.`).argument("<file>", "Path to the .flow file").option("--node-id <node-id>", "Provision only this node instead of every Extract document node").examples(NODE_PROVISION_EXAMPLES).trackedAction(processContext, async (file, options) => {
|
|
2899
|
+
const { provisionNodes } = await import("./provision-node-service-sxnfgrwy.js");
|
|
2900
|
+
const { SchemaCommandError } = await import("./schema-document-service-mknqzg7e.js");
|
|
2901
|
+
const [error, result] = await catchError2(provisionNodes(file, options.nodeId?.trim()));
|
|
2902
|
+
if (error) {
|
|
2903
|
+
if (error instanceof SchemaCommandError) {
|
|
2904
|
+
reportSchemaError(error);
|
|
2905
|
+
return;
|
|
2906
|
+
}
|
|
2907
|
+
await reportFailure("Error provisioning the node's processor", error);
|
|
2908
|
+
return;
|
|
2909
|
+
}
|
|
2910
|
+
OutputFormatter.success({
|
|
2911
|
+
Result: RESULTS.Success,
|
|
2912
|
+
Code: "NodeProvisionSuccess",
|
|
2913
|
+
Data: {
|
|
2914
|
+
Provisioned: result.provisioned.map((entry) => ({
|
|
2915
|
+
NodeId: entry.nodeId,
|
|
2916
|
+
ProcessorKey: entry.processorKey,
|
|
2917
|
+
...entry.processorName && {
|
|
2918
|
+
ProcessorName: entry.processorName
|
|
2919
|
+
},
|
|
2920
|
+
...entry.resourceFile && {
|
|
2921
|
+
ResourceFile: entry.resourceFile
|
|
2922
|
+
},
|
|
2923
|
+
...entry.resourcePending && {
|
|
2924
|
+
ResourcePending: entry.resourcePending
|
|
2925
|
+
}
|
|
2926
|
+
})),
|
|
2927
|
+
...result.alreadyProvisioned.length > 0 && {
|
|
2928
|
+
AlreadyProvisioned: result.alreadyProvisioned
|
|
2929
|
+
}
|
|
2930
|
+
}
|
|
2931
|
+
});
|
|
2932
|
+
});
|
|
2933
|
+
registerNodeSchemaCommands(node);
|
|
3031
2934
|
};
|
|
3032
2935
|
|
|
3033
2936
|
// src/commands/pack.ts
|
|
@@ -3038,16 +2941,16 @@ var FLOW_PACK_EXAMPLES = [
|
|
|
3038
2941
|
Output: {
|
|
3039
2942
|
Code: "FlowPack",
|
|
3040
2943
|
Data: {
|
|
3041
|
-
Package: "my-flow-project.1.2.0
|
|
3042
|
-
Output: "./dist/my-flow-project.1.2.0.nupkg"
|
|
2944
|
+
Package: "my-flow-project.flow.Flow@1.2.0",
|
|
2945
|
+
Output: "./dist/my-flow-project.flow.Flow.1.2.0.nupkg"
|
|
3043
2946
|
}
|
|
3044
2947
|
}
|
|
3045
2948
|
}
|
|
3046
2949
|
];
|
|
3047
2950
|
var registerPackCommand = (program) => {
|
|
3048
|
-
const command = program.command("pack").description("Pack a Flow project into a .nupkg file").argument("<project-path>", "Path to the Flow project directory").argument("<output-path>", "Output directory where the .nupkg will be saved").option("-n, --name <name>", "Package
|
|
2951
|
+
const command = program.command("pack").description("Pack a Flow project into a .nupkg file").argument("<project-path>", "Path to the Flow project directory").argument("<output-path>", "Output directory where the .nupkg will be saved").option("-n, --name <name>", "Package id, used as given (default: <project folder name>.flow.Flow). Does not select the .flow file").option("-v, --version <version>", "Package version (default: 1.0.0)", "1.0.0");
|
|
3049
2952
|
registerPackageMetadataOptions(command).examples(FLOW_PACK_EXAMPLES).trackedAction(processContext, async (projectPath, outputPath, options) => {
|
|
3050
|
-
const { FlowPackService } = await import("./flow-pack-service-
|
|
2953
|
+
const { FlowPackService } = await import("./flow-pack-service-jhr4rmsy.js");
|
|
3051
2954
|
const service = new FlowPackService;
|
|
3052
2955
|
const exitCode = await service.execute(projectPath, {
|
|
3053
2956
|
output: outputPath,
|
|
@@ -3152,24 +3055,18 @@ function flowProcessRunErrorCode(error) {
|
|
|
3152
3055
|
return error.message.toLowerCase().includes("release key is required") ? "FlowReleaseKeyRequired" : undefined;
|
|
3153
3056
|
}
|
|
3154
3057
|
async function resolveRelease(config, processKey) {
|
|
3155
|
-
const
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
const
|
|
3162
|
-
const
|
|
3163
|
-
|
|
3164
|
-
throw new Error(byReleaseKey ? `No Flow release with key '${config.releaseKey}' in folder ${config.folderKey}.` : `No Flow release matches process key '${processKey}' in folder ${config.folderKey}.`);
|
|
3165
|
-
}
|
|
3166
|
-
if (extra.length > 0) {
|
|
3167
|
-
throw new Error(`${matches.length} Flow releases match process key '${processKey}' in folder ${config.folderKey}: ${matches.map((match) => `${match.processVersion} (${match.key})`).join(", ")}.`);
|
|
3168
|
-
}
|
|
3169
|
-
return release;
|
|
3058
|
+
const request = {
|
|
3059
|
+
processKey,
|
|
3060
|
+
releaseKey: config.releaseKey,
|
|
3061
|
+
folderKey: config.folderKey,
|
|
3062
|
+
label: "Flow"
|
|
3063
|
+
};
|
|
3064
|
+
const { escapeODataStringLiteral: esc, listFlowProcesses } = await import("./flow-api-bmg7beey.js");
|
|
3065
|
+
const processes = await listFlowProcesses(config, releaseFilter(request, (value) => `'${esc(value)}'`));
|
|
3066
|
+
return pickRelease(processes, request);
|
|
3170
3067
|
}
|
|
3171
3068
|
async function resolveFolderForList(options) {
|
|
3172
|
-
const { resolveFolder } = await import("./index-
|
|
3069
|
+
const { resolveFolder } = await import("./index-db1djbzm.js");
|
|
3173
3070
|
if (options.folderKey && options.folderPath) {
|
|
3174
3071
|
const [pathError, pathFolder] = await catchError2(resolveFolder({ folderPath: options.folderPath }, {
|
|
3175
3072
|
tenant: options.tenant,
|
|
@@ -3200,9 +3097,14 @@ async function resolveFolderForList(options) {
|
|
|
3200
3097
|
}
|
|
3201
3098
|
function registerProcessCommand(program) {
|
|
3202
3099
|
const processCmd = program.command("process").description("Manage Flow processes");
|
|
3203
|
-
registerSharedProcessCommands(processCmd, {
|
|
3100
|
+
registerSharedProcessCommands(processCmd, {
|
|
3101
|
+
toolLabel: "Flow",
|
|
3102
|
+
commandPrefix: "uip flow",
|
|
3103
|
+
assetType: "bpmn",
|
|
3104
|
+
expectedProcessType: "Flow"
|
|
3105
|
+
});
|
|
3204
3106
|
processCmd.command("list").description("List available Flow projects. The releaseActive and releaseLatest fields reflect Orchestrator release-level state (whether the release is marked active or the highest version on the manifest) and do not indicate whether the process is deployed or runnable.").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).addOption(createProcessLimitOption()).addOption(createProcessOffsetOption()).option("--filter <odata>", "Additional OData filter").option("-f, --folder-key <key>", "Folder key (GUID)").option("--folder-path <path>", "Folder path (e.g. 'Shared/Invoices'). Alternative to --folder-key.").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).examples(FLOW_PROCESS_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
3205
|
-
const { getAuthContext } = await import("./index-
|
|
3107
|
+
const { getAuthContext } = await import("./index-r6crd7tx.js");
|
|
3206
3108
|
if (options.folderKey === undefined && options.folderPath === undefined) {
|
|
3207
3109
|
OutputFormatter.error({
|
|
3208
3110
|
Result: RESULTS.ValidationError,
|
|
@@ -3243,7 +3145,7 @@ function registerProcessCommand(program) {
|
|
|
3243
3145
|
tenantName,
|
|
3244
3146
|
baseUrl: auth.baseUrl
|
|
3245
3147
|
};
|
|
3246
|
-
const { listFlowProcesses } = await import("./flow-api-
|
|
3148
|
+
const { listFlowProcesses } = await import("./flow-api-bmg7beey.js");
|
|
3247
3149
|
const [listError, processes] = await catchError2(listFlowProcesses(config, options.filter, {
|
|
3248
3150
|
limit: options.limit,
|
|
3249
3151
|
offset: options.offset
|
|
@@ -3273,7 +3175,7 @@ function registerProcessCommand(program) {
|
|
|
3273
3175
|
});
|
|
3274
3176
|
});
|
|
3275
3177
|
processCmd.command("get").description("Get Flow project schema and details").argument("<process-key>", "Process key (e.g., MyFlow.flow.Flow:1.0.0)").argument("<feed-id>", "Feed ID (from 'flow project list')").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).requiredOption("-f, --folder-key <key>", "Folder key (GUID)").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).examples(FLOW_PROCESS_GET_EXAMPLES).trackedAction(processContext, async (processKey, feedId, options) => {
|
|
3276
|
-
const { getAuthContext } = await import("./index-
|
|
3178
|
+
const { getAuthContext } = await import("./index-r6crd7tx.js");
|
|
3277
3179
|
const [authError, auth] = await catchError2(getAuthContext({
|
|
3278
3180
|
ensureTokenValidityMinutes: options.loginValidity,
|
|
3279
3181
|
tenant: options.tenant,
|
|
@@ -3296,7 +3198,7 @@ function registerProcessCommand(program) {
|
|
|
3296
3198
|
baseUrl: auth.baseUrl,
|
|
3297
3199
|
feedId
|
|
3298
3200
|
};
|
|
3299
|
-
const { getFlowEntryPoints } = await import("./flow-api-
|
|
3201
|
+
const { getFlowEntryPoints } = await import("./flow-api-bmg7beey.js");
|
|
3300
3202
|
const [entryPointsError, entryPoints] = await catchError2(getFlowEntryPoints(config));
|
|
3301
3203
|
if (entryPointsError) {
|
|
3302
3204
|
OutputFormatter.error({
|
|
@@ -3335,13 +3237,13 @@ function registerProcessCommand(program) {
|
|
|
3335
3237
|
});
|
|
3336
3238
|
});
|
|
3337
3239
|
processCmd.command("run").description("Run a Flow project with inputs").argument("<process-key>", "Process key (e.g., MyFlow.flow.Flow:1.0.0)").argument("<folder-key>", "Folder key (GUID)").option("-i, --inputs <json>", "Input parameters as JSON string or @file.json").option("--attachment <name=path>", "Upload a local file as a file-typed workflow input variable (repeatable). Example: --attachment file1=./resume.pdf", appendOption, []).addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--release-key <key>", "Release key (GUID, from list command)").option("--feed-id <id>", "Feed ID for package lookup (optional)").option("--robot-ids <ids>", "Comma-separated robot IDs (optional)").option("--entry-point <id>", "Entry point node id — a trigger node id from the .flow file. Defaults to the release's default entry point").option("--validate", "Validate inputs against project schema (basic: required fields + primitive types)").option("--login-validity <minutes>", "Minimum minutes before token expiration to trigger a refresh (default: 10)", parseInt, 10).option("--wait", "Block until the job reaches a terminal state (Successful, Faulted, Stopped)").option("--timeout <seconds>", "Maximum seconds to wait (0 = no timeout). Requires --wait.", String(DEFAULT_TIMEOUT_MS / 1000)).option("--poll-interval <seconds>", "Seconds between status checks. Requires --wait.", String(DEFAULT_INTERVAL_MS / 1000)).examples(FLOW_PROCESS_RUN_EXAMPLES).trackedAction(processContext, async (processKey, folderKey, options) => {
|
|
3338
|
-
const { getAuthContext } = await import("./index-
|
|
3240
|
+
const { getAuthContext } = await import("./index-r6crd7tx.js");
|
|
3339
3241
|
const {
|
|
3340
3242
|
parseFlowInputs,
|
|
3341
3243
|
resolveEntryPoint,
|
|
3342
3244
|
startFlowProjectJob,
|
|
3343
3245
|
validateFlowInputs
|
|
3344
|
-
} = await import("./flow-api-
|
|
3246
|
+
} = await import("./flow-api-bmg7beey.js");
|
|
3345
3247
|
const [authError, auth] = await catchError2(getAuthContext({
|
|
3346
3248
|
ensureTokenValidityMinutes: options.loginValidity,
|
|
3347
3249
|
tenant: options.tenant,
|
|
@@ -3368,7 +3270,7 @@ function registerProcessCommand(program) {
|
|
|
3368
3270
|
}
|
|
3369
3271
|
inputs = parsed;
|
|
3370
3272
|
} else {
|
|
3371
|
-
const { readStdin } = await import("./input-reader-
|
|
3273
|
+
const { readStdin } = await import("./input-reader-3zvbsn6a.js");
|
|
3372
3274
|
const [stdinError, stdinData] = await catchError2(readStdin());
|
|
3373
3275
|
if (stdinError) {
|
|
3374
3276
|
OutputFormatter.error({
|
|
@@ -3467,7 +3369,7 @@ function registerProcessCommand(program) {
|
|
|
3467
3369
|
processContext.exit(1);
|
|
3468
3370
|
return;
|
|
3469
3371
|
}
|
|
3470
|
-
const { uploadJobAttachment } = await import("./index-
|
|
3372
|
+
const { uploadJobAttachment } = await import("./index-db1djbzm.js");
|
|
3471
3373
|
const [uploadError, resolved] = await catchError2(resolveAttachmentInputs(specs, (bytes, fileName) => uploadJobAttachment(bytes, fileName, {
|
|
3472
3374
|
tenant: tenantName
|
|
3473
3375
|
})));
|
|
@@ -3593,7 +3495,7 @@ ${errorList}`,
|
|
|
3593
3495
|
processContext.exit(1);
|
|
3594
3496
|
return;
|
|
3595
3497
|
}
|
|
3596
|
-
const { handleFlowJobWait } = await import("./wait-for-flow-job-
|
|
3498
|
+
const { handleFlowJobWait } = await import("./wait-for-flow-job-k990nmdn.js");
|
|
3597
3499
|
await handleFlowJobWait(job.key, {
|
|
3598
3500
|
config,
|
|
3599
3501
|
timeoutMs,
|
|
@@ -3618,12 +3520,13 @@ var FLOW_PUBLISH_EXAMPLES = [
|
|
|
3618
3520
|
Output: {
|
|
3619
3521
|
Code: "FlowPublish",
|
|
3620
3522
|
Data: {
|
|
3621
|
-
Package: "my-flow-project@1.2.0",
|
|
3523
|
+
Package: "my-flow-project.flow.Flow@1.2.0",
|
|
3622
3524
|
PackagePath: "/tmp/flow-publish-1710000000000/my-flow-project.flow.Flow.1.2.0.nupkg",
|
|
3623
3525
|
Upload: [
|
|
3624
3526
|
{
|
|
3625
|
-
|
|
3626
|
-
|
|
3527
|
+
Key: "my-flow-project.flow.Flow.1.2.0.nupkg",
|
|
3528
|
+
Status: "OK",
|
|
3529
|
+
Body: '{"Id":"my-flow-project.flow.Flow","Version":"1.2.0"}'
|
|
3627
3530
|
}
|
|
3628
3531
|
]
|
|
3629
3532
|
}
|
|
@@ -3634,14 +3537,14 @@ function getDefaultOutputPath(fs = getFileSystem()) {
|
|
|
3634
3537
|
return fs.path.join(fs.env.tmpdir(), `flow-publish-${Date.now()}`);
|
|
3635
3538
|
}
|
|
3636
3539
|
var registerPublishCommand = (program) => {
|
|
3637
|
-
program.command("publish").description("Pack a Flow project and upload the resulting .nupkg to Orchestrator packages").argument("<project-path>", "Path to the Flow project directory").argument("[output-path]", "Output directory where the generated .nupkg will be saved").option("-n, --name <name>", "Package
|
|
3638
|
-
const { getAuthContext } = await import("./index-
|
|
3540
|
+
program.command("publish").description("Pack a Flow project and upload the resulting .nupkg to Orchestrator packages").argument("<project-path>", "Path to the Flow project directory").argument("[output-path]", "Output directory where the generated .nupkg will be saved").option("-n, --name <name>", "Package id, used as given (default: <project folder name>.flow.Flow). Does not select the .flow file").option("-v, --version <version>", "Package version (default: 1.0.0)", "1.0.0").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--feed-id <feedId>", "Feed ID (optional, defaults to tenant feed). Mutually exclusive with --folder-key/--folder-path.").option("--folder-key <key>", "Folder key (GUID) of an Orchestrator folder hierarchy feed. The CLI resolves the folder's feed ID automatically. Mutually exclusive with --feed-id and --folder-path.").option("--folder-path <path>", "Folder path (e.g. 'Shared/Sub') of an Orchestrator folder hierarchy feed. The CLI resolves the folder's feed ID automatically. Mutually exclusive with --feed-id and --folder-key.").examples(FLOW_PUBLISH_EXAMPLES).trackedAction(processContext, async (projectPath, outputPath, options) => {
|
|
3541
|
+
const { getAuthContext } = await import("./index-r6crd7tx.js");
|
|
3639
3542
|
const {
|
|
3640
3543
|
createApiClient,
|
|
3641
3544
|
PackageFeedsApi,
|
|
3642
3545
|
ProcessesApi,
|
|
3643
3546
|
resolveFolder
|
|
3644
|
-
} = await import("./index-
|
|
3547
|
+
} = await import("./index-db1djbzm.js");
|
|
3645
3548
|
const fs = getFileSystem();
|
|
3646
3549
|
const shouldCleanupOutput = outputPath === undefined;
|
|
3647
3550
|
const packageOutputPath = outputPath ?? getDefaultOutputPath(fs);
|
|
@@ -3714,13 +3617,24 @@ var registerPublishCommand = (program) => {
|
|
|
3714
3617
|
}
|
|
3715
3618
|
resolvedFeedId = folderFeedId;
|
|
3716
3619
|
}
|
|
3717
|
-
const { FlowPackService } = await import("./flow-pack-service-
|
|
3620
|
+
const { FlowPackService } = await import("./flow-pack-service-jhr4rmsy.js");
|
|
3718
3621
|
const service = new FlowPackService;
|
|
3719
3622
|
const [packError, packResult] = await catchError2(service.executeAsync(projectPath, {
|
|
3720
3623
|
output: packageOutputPath,
|
|
3721
3624
|
name: options.name,
|
|
3722
3625
|
version: options.version
|
|
3723
3626
|
}));
|
|
3627
|
+
const { AmbiguousFlowError } = await import("./index-7enyyjxr.js");
|
|
3628
|
+
if (packError instanceof AmbiguousFlowError) {
|
|
3629
|
+
OutputFormatter.error({
|
|
3630
|
+
Result: RESULTS.ValidationError,
|
|
3631
|
+
Message: "Flow publish failed",
|
|
3632
|
+
Instructions: packError.message,
|
|
3633
|
+
ErrorCode: "invalid_argument"
|
|
3634
|
+
});
|
|
3635
|
+
processContext.exit(3);
|
|
3636
|
+
return;
|
|
3637
|
+
}
|
|
3724
3638
|
if (packError) {
|
|
3725
3639
|
OutputFormatter.error({
|
|
3726
3640
|
Result: RESULTS.Failure,
|
|
@@ -3828,9 +3742,26 @@ var registerRegistryCommand2 = (program) => {
|
|
|
3828
3742
|
};
|
|
3829
3743
|
|
|
3830
3744
|
// src/commands/tidy.ts
|
|
3745
|
+
var DEFAULT_FLOW_TARGET = ".";
|
|
3831
3746
|
var registerTidyCommand = (program) => {
|
|
3832
|
-
program.command("format").description("Format a .flow file by auto-laying out nodes to prevent overlaps and arrange in a clean flow").argument("
|
|
3833
|
-
const {
|
|
3747
|
+
program.command("format").description("Format a .flow file (or a project directory containing one) by auto-laying out nodes to prevent overlaps and arrange in a clean flow").argument("[file]", "Path to the .flow file (or a project directory containing one). Default: the current directory").trackedAction(processContext, async (input) => {
|
|
3748
|
+
const { AmbiguousFlowError, resolveFlowTarget } = await import("./flow-io-c8b17vbx.js");
|
|
3749
|
+
const { tidyFlow } = await import("./tidy-service-rsxb2h63.js");
|
|
3750
|
+
const [resolveError, file] = await catchError2(resolveFlowTarget(input ?? DEFAULT_FLOW_TARGET));
|
|
3751
|
+
if (resolveError && !(resolveError instanceof AmbiguousFlowError)) {
|
|
3752
|
+
await reportFailure("Failed to tidy flow", resolveError);
|
|
3753
|
+
return;
|
|
3754
|
+
}
|
|
3755
|
+
if (resolveError) {
|
|
3756
|
+
OutputFormatter.error({
|
|
3757
|
+
Result: RESULTS.Failure,
|
|
3758
|
+
Message: "Failed to tidy flow",
|
|
3759
|
+
Instructions: resolveError.message,
|
|
3760
|
+
ErrorCode: "invalid_argument"
|
|
3761
|
+
});
|
|
3762
|
+
processContext.exit(1);
|
|
3763
|
+
return;
|
|
3764
|
+
}
|
|
3834
3765
|
const [error, result] = await catchError2(tidyFlow(file));
|
|
3835
3766
|
if (error) {
|
|
3836
3767
|
OutputFormatter.error({
|
|
@@ -3870,6 +3801,7 @@ var registerTidyCommand = (program) => {
|
|
|
3870
3801
|
|
|
3871
3802
|
// src/commands/validate.ts
|
|
3872
3803
|
var STRICT_EXPRESSIONS_DEFAULT = false;
|
|
3804
|
+
var DEFAULT_FLOW_TARGET2 = ".";
|
|
3873
3805
|
var FLOW_VALIDATE_EXAMPLES = [
|
|
3874
3806
|
{
|
|
3875
3807
|
Description: "Validate a .flow file against the flow schema",
|
|
@@ -3939,11 +3871,11 @@ var FLOW_VALIDATE_EXAMPLES = [
|
|
|
3939
3871
|
}
|
|
3940
3872
|
];
|
|
3941
3873
|
var registerValidateCommand = (program) => {
|
|
3942
|
-
program.command("validate").description("Validate a .flow file (or a project directory containing one) against the Flow schema").argument("
|
|
3874
|
+
program.command("validate").description("Validate a .flow file (or a project directory containing one) against the Flow schema").argument("[flow-file]", "Path to the .flow file (or a project directory containing one) to validate. Default: the current directory").option("--governance", "Validate agent nodes against organization governance policies (requires login)").option("--strict-bindings", "Fail validation when a Managed HTTP node (core.action.http.v2) carries a connector-shaped label but no Integration Service binding. Default: warn only.").option("--strict-expressions", "Fail validation when an expression or script body has a type error. The check always runs, using the shared Flow expression checker (the same engine the canvas runs); its findings are warnings by default. Default: warn only.").option("--force", "Refetch the current node manifests used by the stale-handle check instead of reading the cached copy (the cache `registry pull` writes, kept 30 minutes per tenant). The refetched manifests replace the cache, as `registry pull --force` does.").examples(FLOW_VALIDATE_EXAMPLES).trackedAction(processContext, async (flowFile, options) => {
|
|
3943
3875
|
let governanceEnforcements;
|
|
3944
3876
|
let availableModelNames;
|
|
3945
3877
|
if (options.governance) {
|
|
3946
|
-
const { fetchGovernanceData } = await import("./governance-fetcher-
|
|
3878
|
+
const { fetchGovernanceData } = await import("./governance-fetcher-hkm1hvn0.js");
|
|
3947
3879
|
const [error, data] = await catchError2(fetchGovernanceData());
|
|
3948
3880
|
if (error) {
|
|
3949
3881
|
OutputFormatter.error({
|
|
@@ -3957,7 +3889,7 @@ var registerValidateCommand = (program) => {
|
|
|
3957
3889
|
governanceEnforcements = data.enforcements;
|
|
3958
3890
|
availableModelNames = data.modelNames;
|
|
3959
3891
|
}
|
|
3960
|
-
const { FlowValidateService } = await import("./flow-validate-service-
|
|
3892
|
+
const { FlowValidateService } = await import("./flow-validate-service-hpt8dqyr.js");
|
|
3961
3893
|
const service = new FlowValidateService({
|
|
3962
3894
|
governanceEnforcements,
|
|
3963
3895
|
availableModelNames,
|
|
@@ -3966,7 +3898,7 @@ var registerValidateCommand = (program) => {
|
|
|
3966
3898
|
strictBindings: options.strictBindings === true,
|
|
3967
3899
|
strictExpressions: options.strictExpressions ?? STRICT_EXPRESSIONS_DEFAULT
|
|
3968
3900
|
});
|
|
3969
|
-
const exitCode = await service.execute(flowFile);
|
|
3901
|
+
const exitCode = await service.execute(flowFile ?? DEFAULT_FLOW_TARGET2);
|
|
3970
3902
|
if (exitCode) {
|
|
3971
3903
|
processContext.exit(exitCode);
|
|
3972
3904
|
}
|
|
@@ -4088,7 +4020,7 @@ function parseDefaultValue(value, type) {
|
|
|
4088
4020
|
var registerVariableCommand = (program) => {
|
|
4089
4021
|
const variable = program.command("variables").alias("variable").description("Manage variables in a Flow file");
|
|
4090
4022
|
variable.command("create").alias("add").description("Add a variable to a Flow file").argument("<file>", "Path to the .flow file").argument("<variable-id>", "Variable identifier (e.g. myInputVar)").requiredOption("-d, --direction <direction>", `Variable direction (${VALID_DIRECTIONS.join(", ")})`).option("-t, --type <type>", `Data type (${VALID_TYPES.join(", ")})`, "string").option("--default-value <value>", "Default value (parsed based on --type)").option("--description <text>", "Human-readable description").option("--schema <json>", "JSON schema for object/array types").option("--sub-type <subType>", "Sub-type for complex types").option("--trigger-node-id <nodeId>", "Trigger node an input variable belongs to (defaults to the flow's only trigger node; required when the flow has several)").examples(VARIABLE_ADD_EXAMPLES).trackedAction(processContext, async (file, variableId, options) => {
|
|
4091
|
-
const { validateIdentifier } = await import("./index-
|
|
4023
|
+
const { validateIdentifier } = await import("./index-ynw2efd8.js");
|
|
4092
4024
|
const identifierError = validateIdentifier(variableId, []);
|
|
4093
4025
|
if (identifierError) {
|
|
4094
4026
|
OutputFormatter.error({
|
|
@@ -4154,7 +4086,7 @@ var registerVariableCommand = (program) => {
|
|
|
4154
4086
|
}
|
|
4155
4087
|
schema = parsed;
|
|
4156
4088
|
}
|
|
4157
|
-
const { addVariableToFlow } = await import("./variable-service-
|
|
4089
|
+
const { addVariableToFlow } = await import("./variable-service-95j5nyjh.js");
|
|
4158
4090
|
const [error, variable] = await catchError2(addVariableToFlow(file, {
|
|
4159
4091
|
id: variableId,
|
|
4160
4092
|
direction: options.direction,
|
|
@@ -4183,7 +4115,7 @@ var registerVariableCommand = (program) => {
|
|
|
4183
4115
|
});
|
|
4184
4116
|
});
|
|
4185
4117
|
variable.command("delete").alias("remove").description("Remove a variable from a Flow file").argument("<file>", "Path to the .flow file").argument("<variable-id>", "Variable identifier to remove").examples(VARIABLE_DELETE_EXAMPLES).trackedAction(processContext, async (file, variableId) => {
|
|
4186
|
-
const { validateIdentifier } = await import("./index-
|
|
4118
|
+
const { validateIdentifier } = await import("./index-ynw2efd8.js");
|
|
4187
4119
|
const identifierError = validateIdentifier(variableId, []);
|
|
4188
4120
|
if (identifierError) {
|
|
4189
4121
|
OutputFormatter.error({
|
|
@@ -4194,7 +4126,7 @@ var registerVariableCommand = (program) => {
|
|
|
4194
4126
|
processContext.exit(1);
|
|
4195
4127
|
return;
|
|
4196
4128
|
}
|
|
4197
|
-
const { deleteVariableFromFlow } = await import("./variable-service-
|
|
4129
|
+
const { deleteVariableFromFlow } = await import("./variable-service-95j5nyjh.js");
|
|
4198
4130
|
const [error, deletedVariable] = await catchError2(deleteVariableFromFlow(file, variableId));
|
|
4199
4131
|
if (error) {
|
|
4200
4132
|
OutputFormatter.error({
|
|
@@ -4214,7 +4146,7 @@ var registerVariableCommand = (program) => {
|
|
|
4214
4146
|
});
|
|
4215
4147
|
});
|
|
4216
4148
|
addRowWindowOptions(variable.command("list")).description("List all variables in a Flow file").argument("<file>", "Path to the .flow file").examples(VARIABLE_LIST_EXAMPLES).trackedAction(processContext, async (file, options) => {
|
|
4217
|
-
const { listVariablesInFlow } = await import("./variable-service-
|
|
4149
|
+
const { listVariablesInFlow } = await import("./variable-service-95j5nyjh.js");
|
|
4218
4150
|
const [error, result] = await catchError2(listVariablesInFlow(file));
|
|
4219
4151
|
if (error) {
|
|
4220
4152
|
OutputFormatter.error({
|
|
@@ -4273,7 +4205,7 @@ var metadata2 = {
|
|
|
4273
4205
|
};
|
|
4274
4206
|
var registerCommands2 = async (program) => {
|
|
4275
4207
|
setAgentProjectMetadataReader2(agentProjectMetadataReader);
|
|
4276
|
-
const { registerFlowAuthoringCommands } = await import("./authoring-
|
|
4208
|
+
const { registerFlowAuthoringCommands } = await import("./authoring-f5ttjy3d.js");
|
|
4277
4209
|
registerFlowAuthoringCommands(program);
|
|
4278
4210
|
registerInitCommand(program);
|
|
4279
4211
|
registerPackCommand(program);
|
|
@@ -4282,6 +4214,7 @@ var registerCommands2 = async (program) => {
|
|
|
4282
4214
|
registerDebugCommand(program);
|
|
4283
4215
|
registerDebugInstancesCommand(program);
|
|
4284
4216
|
registerEvalCommand(program);
|
|
4217
|
+
registerExtractionCommand(program);
|
|
4285
4218
|
registerMigrateCommand(program);
|
|
4286
4219
|
registerNodeCommand(program);
|
|
4287
4220
|
registerEdgeCommand(program);
|
|
@@ -4299,4 +4232,4 @@ var registerCommands2 = async (program) => {
|
|
|
4299
4232
|
|
|
4300
4233
|
export { metadata2, registerCommands2 };
|
|
4301
4234
|
|
|
4302
|
-
//# debugId=
|
|
4235
|
+
//# debugId=1BA38AA1D3008F3B64756E2164756E21
|