@uipath/flow-tool 1.206.0-preview.301 → 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 +10 -10
- 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-cp1mj80n.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-40wy8yrq.js → connector-service-8t5swsf9.js} +156 -76
- package/dist/{conversion-7O2PDOQB-gk051hmr.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-21ytyk41.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-y9zbshpm.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-nxx09kc3.js → en-ETY46SDS-RI6EZCN6-g3n0v4ff.js} +67 -3
- package/dist/{en-X6T4SP2Y-xe57av1w.js → en-ETY46SDS-yfqhqvbx.js} +66 -2
- package/dist/{en-WPCQ4JKF-5ep5egek.js → en-JZXY3PYE-9q1q9w7h.js} +4 -4
- package/dist/{en-LQHKFSEY-sb41hszq.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-5xa3wrpt.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-3c1tv7qa.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-2m1mkq5s.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-c18ma0n5.js → flow-eval-run-service-qdtz7ec7.js} +116 -119
- package/dist/{flow-eval-service-t2k2jk08.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-6mnnm5sy.js → flow-migrate-service-a8s4rmq6.js} +20 -20
- package/dist/{flow-pack-service-dhjq3p0y.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-ye0hwncb.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-41s8tnja.js → governance-fetcher-hkm1hvn0.js} +7 -7
- package/dist/{headless-41t9wwb7.js → headless-23ywyx9h.js} +390 -195
- package/dist/{hitl-service-sqkjfm9c.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-zfkp2s1d.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-p0hgkhy2.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-vjmjd3zd.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-yrx5rnw2.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-wxg003p8.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-z6tzver4.js → node-sync-service-6v7j8m4p.js} +22 -15
- package/dist/node-xzwyr0mf.js +172 -0
- package/dist/{packager-tool-rca9gsx5.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-17af18dp.js → packager-tool-asfftv7z.js} +330 -902
- package/dist/{packager-tool-xfjgm8hc.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-2my5q788.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-1dbnq9ja.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-pa5s7k5n.js → packager-tool-jf4m7sqc.js} +23 -9
- package/dist/{packager-tool-5ymna6e6.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-kj5yj5hj.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-zcb3xrfw.js → packager-tool-px52tjy2.js} +9 -7
- package/dist/{packager-tool-vh1hxa0j.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-q4trv6y6.js → packager-tool-tm4d12jb.js} +15328 -7171
- package/dist/{packager-tool-c7xq0z3e.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-q55qgk3p.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-dszagpmx.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-0vsqvfq1.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-5c7jp2r1.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-4yqpkc4n.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-q29q8pj0.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-g3gtam7g.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-qm6h620p.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-td09ft0v.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-yxbkns3a.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-n74g1tfv.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-cxe7jt1n.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-g6wtfw4w.js +0 -29
- package/dist/flow-eval-run-api-w4j8ra60.js +0 -9
- package/dist/flow-init-service-qvhyvq3k.js +0 -26
- package/dist/flow-io-tsxhjvk6.js +0 -24
- package/dist/flow-validate-service-dpjp0yv2.js +0 -46
- package/dist/input-reader-jjq3r7ry.js +0 -11
- package/dist/localization-erchshqr.js +0 -45
- package/dist/node-service-4392jxr2.js +0 -64
- package/dist/packager-tool-2sazb7th.js +0 -2
- package/dist/packager-tool-91kj5ry7.js +0 -18
- 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-f2g3pea6.js +0 -461
- package/dist/packager-tool-f7rk9xhv.js +0 -50
- package/dist/packager-tool-jd3v0bh1.js +0 -26
- package/dist/packager-tool-k3egwd1m.js +0 -15
- package/dist/packager-tool-n0y4dhj1.js +0 -56
- package/dist/packager-tool-q0f1dvtd.js +0 -40
- package/dist/packager-tool-wr7gn964.js +0 -2
- package/dist/ru-GSCT4ARZ-FTVCGQTL-vjy6j6vk.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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
catchError2
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-4hn7v05x.js";
|
|
4
4
|
import {
|
|
5
5
|
RESULTS,
|
|
6
6
|
logger
|
|
7
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-bcsjm5hv.js";
|
|
8
8
|
import {
|
|
9
9
|
MaestroHttpError2,
|
|
10
10
|
automationSolutionsGet2,
|
|
@@ -13,23 +13,171 @@ import {
|
|
|
13
13
|
debugPimsGet2,
|
|
14
14
|
debugPimsPost2,
|
|
15
15
|
studioWebPost2
|
|
16
|
-
} from "./packager-tool-
|
|
16
|
+
} from "./packager-tool-zgzpqfcs.js";
|
|
17
17
|
|
|
18
18
|
// ../maestro-sdk/src/debug-service.ts
|
|
19
19
|
import { randomUUID } from "node:crypto";
|
|
20
20
|
|
|
21
|
+
// ../executor/jit-debug-contract/src/index.ts
|
|
22
|
+
var FPS_DEBUG_MASTER = "debug.master";
|
|
23
|
+
var FPS_DEBUG_SOURCE = "debug.source";
|
|
24
|
+
var DEBUG_SOURCE_STUDIO_WEB = "studioweb";
|
|
25
|
+
var MAX_JIT_PROCESSES = 64;
|
|
26
|
+
var ORCHESTRATOR_PROJECT_TYPES = [
|
|
27
|
+
"Undefined",
|
|
28
|
+
"Process",
|
|
29
|
+
"ProcessLibrary",
|
|
30
|
+
"BusinessProcess",
|
|
31
|
+
"BusinessProcessLibrary",
|
|
32
|
+
"TestAutomationProcess",
|
|
33
|
+
"ProcessOrchestration",
|
|
34
|
+
"BusinessProcessOrchestration",
|
|
35
|
+
"WebApp",
|
|
36
|
+
"BusinessWebApp",
|
|
37
|
+
"Agent",
|
|
38
|
+
"BusinessAgent",
|
|
39
|
+
"Api",
|
|
40
|
+
"MCPServer",
|
|
41
|
+
"BusinessRules",
|
|
42
|
+
"CaseManagement",
|
|
43
|
+
"Flow",
|
|
44
|
+
"Function",
|
|
45
|
+
"FlowAutomate"
|
|
46
|
+
];
|
|
47
|
+
var READABLE_PROJECT_TYPES = new Set(ORCHESTRATOR_PROJECT_TYPES.map((type) => type.toLowerCase()));
|
|
48
|
+
|
|
49
|
+
class JitAssemblyError extends Error {
|
|
50
|
+
code;
|
|
51
|
+
projectName;
|
|
52
|
+
constructor(code, message, projectName) {
|
|
53
|
+
super(message);
|
|
54
|
+
this.code = code;
|
|
55
|
+
this.projectName = projectName;
|
|
56
|
+
this.name = "JitAssemblyError";
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function mergeJitProcessEntries(fpsProperties, entries) {
|
|
60
|
+
if (entries.length === 0) {
|
|
61
|
+
return fpsProperties ?? "{}";
|
|
62
|
+
}
|
|
63
|
+
const described = `Cannot add ${entries.length} process entr${entries.length === 1 ? "y" : "ies"}`;
|
|
64
|
+
const {
|
|
65
|
+
outer,
|
|
66
|
+
master,
|
|
67
|
+
processes: existing
|
|
68
|
+
} = parseFpsEnvelope(fpsProperties, described);
|
|
69
|
+
const total = existing.length + entries.length;
|
|
70
|
+
if (total > MAX_JIT_PROCESSES) {
|
|
71
|
+
throw new JitAssemblyError("TooManyProcesses", `${described}: the bag would hold ${total} processes; the limit is ${MAX_JIT_PROCESSES}.`);
|
|
72
|
+
}
|
|
73
|
+
master.processes = [...existing, ...entries.map(toWireEntry)];
|
|
74
|
+
outer[FPS_DEBUG_MASTER] = JSON.stringify(master);
|
|
75
|
+
if (!(FPS_DEBUG_SOURCE in outer)) {
|
|
76
|
+
outer[FPS_DEBUG_SOURCE] = DEBUG_SOURCE_STUDIO_WEB;
|
|
77
|
+
}
|
|
78
|
+
return JSON.stringify(outer);
|
|
79
|
+
}
|
|
80
|
+
function jitProcessNames(fpsProperties) {
|
|
81
|
+
const names = new Set;
|
|
82
|
+
let processes;
|
|
83
|
+
try {
|
|
84
|
+
({ processes } = parseFpsEnvelope(fpsProperties, "Cannot read process names"));
|
|
85
|
+
} catch {
|
|
86
|
+
return names;
|
|
87
|
+
}
|
|
88
|
+
for (const process of processes) {
|
|
89
|
+
if (isJsonObject(process) && typeof process.name === "string") {
|
|
90
|
+
names.add(process.name.toLowerCase());
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return names;
|
|
94
|
+
}
|
|
95
|
+
function parseFpsEnvelope(fpsProperties, described) {
|
|
96
|
+
const envelopeLength = (fpsProperties ?? "").length;
|
|
97
|
+
let outer;
|
|
98
|
+
let master;
|
|
99
|
+
try {
|
|
100
|
+
outer = fpsProperties ? JSON.parse(fpsProperties) : {};
|
|
101
|
+
const masterRaw = isJsonObject(outer) ? outer[FPS_DEBUG_MASTER] : undefined;
|
|
102
|
+
master = typeof masterRaw === "string" ? JSON.parse(masterRaw) : masterRaw === undefined ? {} : masterRaw;
|
|
103
|
+
} catch (error) {
|
|
104
|
+
throw new JitAssemblyError("MalformedFpsProperties", `${described}: the FpsProperties envelope (${envelopeLength} chars) is not valid JSON. ` + `Parse error: ${error instanceof Error ? error.name : "unknown"}.`);
|
|
105
|
+
}
|
|
106
|
+
if (!isJsonObject(outer) || !isJsonObject(master)) {
|
|
107
|
+
throw new JitAssemblyError("MalformedFpsProperties", `${described}: the FpsProperties envelope (${envelopeLength} chars) must be a JSON ` + `object whose ${FPS_DEBUG_MASTER} is also an object.`);
|
|
108
|
+
}
|
|
109
|
+
if (!(master.processes === undefined || Array.isArray(master.processes))) {
|
|
110
|
+
throw new JitAssemblyError("MalformedFpsProperties", `${described}: the ${FPS_DEBUG_MASTER} processes in the FpsProperties envelope ` + `(${envelopeLength} chars) must be an array.`);
|
|
111
|
+
}
|
|
112
|
+
return { outer, master, processes: master.processes ?? [] };
|
|
113
|
+
}
|
|
114
|
+
function toWireEntry(entry) {
|
|
115
|
+
if (!READABLE_PROJECT_TYPES.has(entry.projectType.toLowerCase())) {
|
|
116
|
+
throw new JitAssemblyError("UnknownProjectType", `Project '${entry.name}' has project type '${entry.projectType}', which Orchestrator ` + "cannot read, so a Run Job that targets it would start an ordinary job instead of " + "this project. Translate it to one of: " + `${ORCHESTRATOR_PROJECT_TYPES.join(", ")}.`, entry.name);
|
|
117
|
+
}
|
|
118
|
+
const wire = {
|
|
119
|
+
name: entry.name,
|
|
120
|
+
projectType: entry.projectType
|
|
121
|
+
};
|
|
122
|
+
assignDefined(wire, "executorInfo", entry.executorInfo);
|
|
123
|
+
assignDefined(wire, "folderKey", entry.folderKey);
|
|
124
|
+
assignDefined(wire, "entryPointPath", entry.entryPointPath);
|
|
125
|
+
assignDefined(wire, "requiresUserInteraction", entry.requiresUserInteraction);
|
|
126
|
+
assignDefined(wire, "targetFramework", entry.targetFramework);
|
|
127
|
+
assignDefined(wire, "remoteControlAccess", entry.remoteControlAccess);
|
|
128
|
+
assignDefined(wire, "targetRuntime", entry.targetRuntime);
|
|
129
|
+
assignDefined(wire, "isConversational", entry.isConversational);
|
|
130
|
+
const settings = toWireExecutionSettings(entry.executionSettings);
|
|
131
|
+
assignDefined(wire, "executionSettings", settings);
|
|
132
|
+
return wire;
|
|
133
|
+
}
|
|
134
|
+
function toWireExecutionSettings(settings) {
|
|
135
|
+
if (!settings) {
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
const wire = {};
|
|
139
|
+
assignDefined(wire, "runtimeType", settings.runtimeType);
|
|
140
|
+
assignDefined(wire, "machineTemplateName", settings.machineTemplateName);
|
|
141
|
+
assignDefined(wire, "hostMachineName", settings.hostMachineName);
|
|
142
|
+
assignDefined(wire, "serviceUserName", settings.serviceUserName);
|
|
143
|
+
assignDefined(wire, "runAsMe", settings.runAsMe);
|
|
144
|
+
return Object.keys(wire).length > 0 ? wire : undefined;
|
|
145
|
+
}
|
|
146
|
+
function isJsonObject(value) {
|
|
147
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
148
|
+
}
|
|
149
|
+
function assignDefined(target, key, value) {
|
|
150
|
+
if (value !== undefined) {
|
|
151
|
+
target[key] = value;
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
|
|
21
155
|
// ../maestro-sdk/src/debug-poll-retry.ts
|
|
22
156
|
var POLL_RETRY_DELAYS_MS = [5000, 1e4];
|
|
23
157
|
var isRetryablePollStatus = (httpStatus) => httpStatus === 403 || httpStatus >= 500;
|
|
24
|
-
|
|
25
|
-
|
|
158
|
+
function waitOrAbort(ms, signal) {
|
|
159
|
+
if (signal?.aborted)
|
|
160
|
+
return Promise.resolve();
|
|
161
|
+
return new Promise((resolve) => {
|
|
162
|
+
const onAbort = () => {
|
|
163
|
+
clearTimeout(timer);
|
|
164
|
+
resolve();
|
|
165
|
+
};
|
|
166
|
+
const timer = setTimeout(() => {
|
|
167
|
+
signal?.removeEventListener("abort", onAbort);
|
|
168
|
+
resolve();
|
|
169
|
+
}, ms);
|
|
170
|
+
signal?.addEventListener("abort", onAbort, { once: true });
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
async function withPollRetry(stage, poll, delays = POLL_RETRY_DELAYS_MS, signal) {
|
|
26
174
|
const totalAttempts = delays.length + 1;
|
|
27
175
|
const traceIds = [];
|
|
28
176
|
for (let attempt = 1;; attempt++) {
|
|
29
177
|
const [error, result] = await catchError2(poll());
|
|
30
178
|
if (!error)
|
|
31
179
|
return result;
|
|
32
|
-
if (!(error instanceof MaestroHttpError2) || !isRetryablePollStatus(error.httpStatus)) {
|
|
180
|
+
if (signal?.aborted || !(error instanceof MaestroHttpError2) || !isRetryablePollStatus(error.httpStatus)) {
|
|
33
181
|
throw error;
|
|
34
182
|
}
|
|
35
183
|
if (error.parsedTraceId)
|
|
@@ -41,7 +189,7 @@ async function withPollRetry(stage, poll, delays = POLL_RETRY_DELAYS_MS) {
|
|
|
41
189
|
throw error;
|
|
42
190
|
}
|
|
43
191
|
logger.warn(`${stage} returned HTTP ${error.httpStatus} (attempt ${attempt}/${totalAttempts}); retrying in ${retryDelay / 1000}s.`);
|
|
44
|
-
await
|
|
192
|
+
await waitOrAbort(retryDelay, signal);
|
|
45
193
|
}
|
|
46
194
|
}
|
|
47
195
|
|
|
@@ -49,12 +197,12 @@ async function withPollRetry(stage, poll, delays = POLL_RETRY_DELAYS_MS) {
|
|
|
49
197
|
var AGENT_TARGET_RUNTIME = "pythonAgent";
|
|
50
198
|
|
|
51
199
|
class FpsPropertiesInjectionError2 extends Error {
|
|
52
|
-
|
|
200
|
+
envelopeLength;
|
|
53
201
|
agentCount;
|
|
54
202
|
cause;
|
|
55
|
-
constructor(
|
|
56
|
-
super(`Cannot inject ${agentCount} inline agent(s): FpsProperties is not valid JSON.`);
|
|
57
|
-
this.
|
|
203
|
+
constructor(envelopeLength, agentCount, cause) {
|
|
204
|
+
super(cause instanceof Error ? cause.message : `Cannot inject ${agentCount} inline agent(s): FpsProperties is not valid JSON.`);
|
|
205
|
+
this.envelopeLength = envelopeLength;
|
|
58
206
|
this.agentCount = agentCount;
|
|
59
207
|
this.name = "FpsPropertiesInjectionError";
|
|
60
208
|
this.cause = cause;
|
|
@@ -80,11 +228,15 @@ function injectInlineAgentProcessEntries2(fpsProperties, inlineAgents, flowProje
|
|
|
80
228
|
}));
|
|
81
229
|
return appendProcessEntries(fpsProperties, entries, inlineAgents.length);
|
|
82
230
|
}
|
|
83
|
-
function injectSolutionProjectProcessEntries2(fpsProperties, solutionProjects) {
|
|
231
|
+
function injectSolutionProjectProcessEntries2(fpsProperties, solutionProjects, describedNames = jitProcessNames(fpsProperties)) {
|
|
84
232
|
if (!solutionProjects || solutionProjects.length === 0) {
|
|
85
233
|
return fpsProperties;
|
|
86
234
|
}
|
|
87
|
-
const
|
|
235
|
+
const undescribed = solutionProjects.filter((project) => !describedNames.has(project.name.toLowerCase()));
|
|
236
|
+
if (undescribed.length === 0) {
|
|
237
|
+
return fpsProperties;
|
|
238
|
+
}
|
|
239
|
+
const entries = undescribed.map((project) => ({
|
|
88
240
|
name: project.name,
|
|
89
241
|
projectType: project.projectType,
|
|
90
242
|
executorInfo: JSON.stringify(project.projectType === "BusinessRules" ? {
|
|
@@ -106,22 +258,16 @@ function injectSolutionProjectProcessEntries2(fpsProperties, solutionProjects) {
|
|
|
106
258
|
}
|
|
107
259
|
})
|
|
108
260
|
}));
|
|
109
|
-
return appendProcessEntries(fpsProperties, entries,
|
|
261
|
+
return appendProcessEntries(fpsProperties, entries, undescribed.length);
|
|
110
262
|
}
|
|
111
263
|
function appendProcessEntries(fpsProperties, entries, entryCount) {
|
|
112
264
|
try {
|
|
113
|
-
|
|
114
|
-
const masterRaw = outer["debug.master"];
|
|
115
|
-
const master = typeof masterRaw === "string" ? JSON.parse(masterRaw) : masterRaw ?? {};
|
|
116
|
-
const existing = Array.isArray(master.processes) ? master.processes : [];
|
|
117
|
-
master.processes = [...existing, ...entries];
|
|
118
|
-
outer["debug.master"] = JSON.stringify(master);
|
|
119
|
-
if (!("debug.source" in outer)) {
|
|
120
|
-
outer["debug.source"] = "studioweb";
|
|
121
|
-
}
|
|
122
|
-
return JSON.stringify(outer);
|
|
265
|
+
return mergeJitProcessEntries(fpsProperties, entries);
|
|
123
266
|
} catch (err) {
|
|
124
|
-
|
|
267
|
+
if (err instanceof JitAssemblyError && err.code === "MalformedFpsProperties") {
|
|
268
|
+
throw new FpsPropertiesInjectionError2((fpsProperties ?? "").length, entryCount, err);
|
|
269
|
+
}
|
|
270
|
+
throw err;
|
|
125
271
|
}
|
|
126
272
|
}
|
|
127
273
|
function extractStartEventId2(bpmnXml) {
|
|
@@ -168,7 +314,7 @@ class DebugProvisioningFailedError2 extends Error {
|
|
|
168
314
|
this.errors = errors;
|
|
169
315
|
}
|
|
170
316
|
}
|
|
171
|
-
var
|
|
317
|
+
var delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
172
318
|
async function waitForProjectProvisioning(config, solutionId, sessionId, timeoutMs, pollIntervalMs) {
|
|
173
319
|
const deadline = Date.now() + timeoutMs;
|
|
174
320
|
const path = `/api/v1/solutions/${encodeURIComponent(solutionId)}/projects/debug/status` + `?debugSessionId=${encodeURIComponent(sessionId)}`;
|
|
@@ -194,7 +340,7 @@ async function waitForProjectProvisioning(config, solutionId, sessionId, timeout
|
|
|
194
340
|
const remainingAfterPollMs = deadline - Date.now();
|
|
195
341
|
if (remainingAfterPollMs <= 0)
|
|
196
342
|
break;
|
|
197
|
-
await
|
|
343
|
+
await delay(Math.min(pollIntervalMs, remainingAfterPollMs));
|
|
198
344
|
}
|
|
199
345
|
throw new Error(`Timed out waiting for Studio Web resource provisioning after ${timeoutMs}ms.`);
|
|
200
346
|
}
|
|
@@ -225,7 +371,10 @@ async function prepareForCustomDebug2(params) {
|
|
|
225
371
|
};
|
|
226
372
|
}
|
|
227
373
|
async function getFolderInfoById2(config, folderId) {
|
|
228
|
-
const result = await orchestratorGet2(config, `/odata/Folders(${folderId})`, "get-folder-by-id");
|
|
374
|
+
const [error, result] = await catchError2(orchestratorGet2(config, `/odata/Folders(${folderId})`, "get-folder-by-id"));
|
|
375
|
+
if (error) {
|
|
376
|
+
return personalFolderById(config, folderId, error);
|
|
377
|
+
}
|
|
229
378
|
return {
|
|
230
379
|
key: result.Key,
|
|
231
380
|
id: result.Id,
|
|
@@ -234,8 +383,38 @@ async function getFolderInfoById2(config, folderId) {
|
|
|
234
383
|
parentKey: result.ParentKey
|
|
235
384
|
};
|
|
236
385
|
}
|
|
386
|
+
async function personalFolderById(config, folderId, notFound) {
|
|
387
|
+
if (!(notFound instanceof MaestroHttpError2) || notFound.httpStatus !== 404) {
|
|
388
|
+
throw notFound;
|
|
389
|
+
}
|
|
390
|
+
const [error, personal] = await catchError2(getPersonalFolderInfo2(config));
|
|
391
|
+
if (error || personal.id !== folderId) {
|
|
392
|
+
throw notFound;
|
|
393
|
+
}
|
|
394
|
+
return personal;
|
|
395
|
+
}
|
|
396
|
+
var NO_PERSONAL_ROBOT_STATUS = 409;
|
|
397
|
+
var NO_PERSONAL_ROBOT_ERROR_CODE = "1230";
|
|
398
|
+
var BEGIN_SESSION_RETRY_DELAYS_MS = [2000, 5000];
|
|
399
|
+
var isNoPersonalRobot = (error) => error instanceof MaestroHttpError2 && error.httpStatus === NO_PERSONAL_ROBOT_STATUS && error.parsedErrorCode === NO_PERSONAL_ROBOT_ERROR_CODE;
|
|
400
|
+
async function postBeginSession(config, body) {
|
|
401
|
+
const totalAttempts = BEGIN_SESSION_RETRY_DELAYS_MS.length + 1;
|
|
402
|
+
for (let attempt = 1;; attempt++) {
|
|
403
|
+
const [error, result] = await catchError2(orchestratorPost2(config, "/api/robotdebug/BeginSession", body, "begin-debug-session"));
|
|
404
|
+
if (!error)
|
|
405
|
+
return result;
|
|
406
|
+
if (!isNoPersonalRobot(error))
|
|
407
|
+
throw error;
|
|
408
|
+
const retryDelay = BEGIN_SESSION_RETRY_DELAYS_MS[attempt - 1];
|
|
409
|
+
if (retryDelay === undefined) {
|
|
410
|
+
throw error.recordAttempts(attempt, []);
|
|
411
|
+
}
|
|
412
|
+
logger.warn(`begin-debug-session returned HTTP 409 #1230 (attempt ${attempt}/${totalAttempts}); retrying in ${retryDelay / 1000}s.`);
|
|
413
|
+
await delay(retryDelay);
|
|
414
|
+
}
|
|
415
|
+
}
|
|
237
416
|
async function beginDebugSession2(config, inputArguments = "{}", options) {
|
|
238
|
-
const fpsProperties = injectSolutionProjectProcessEntries2(injectInlineAgentProcessEntries2(options?.fpsProperties, options?.inlineAgents, options?.flowProjectId), options?.solutionProjects);
|
|
417
|
+
const fpsProperties = injectSolutionProjectProcessEntries2(injectInlineAgentProcessEntries2(options?.fpsProperties, options?.inlineAgents, options?.flowProjectId), options?.solutionProjects, jitProcessNames(options?.fpsProperties));
|
|
239
418
|
const body = {
|
|
240
419
|
JobsCount: 1,
|
|
241
420
|
JobPriority: null,
|
|
@@ -249,7 +428,7 @@ async function beginDebugSession2(config, inputArguments = "{}", options) {
|
|
|
249
428
|
InputArguments: inputArguments,
|
|
250
429
|
...fpsProperties ? { FpsProperties: fpsProperties } : {}
|
|
251
430
|
};
|
|
252
|
-
const result = await
|
|
431
|
+
const result = await postBeginSession(config, body);
|
|
253
432
|
if (!result.jobKey) {
|
|
254
433
|
throw new Error("BeginSession returned success but no jobKey was provided");
|
|
255
434
|
}
|
|
@@ -311,7 +490,7 @@ async function createDebugInstance2(config, jobKey, solutionId, studioWebProject
|
|
|
311
490
|
break;
|
|
312
491
|
}
|
|
313
492
|
logger.warn(`create-debug-instance returned HTTP ${error.httpStatus} (attempt ${attempt}/${totalAttempts}); retrying in ${retryDelay / 1000}s.`);
|
|
314
|
-
await
|
|
493
|
+
await delay(retryDelay);
|
|
315
494
|
}
|
|
316
495
|
if (!lastError) {
|
|
317
496
|
throw new Error("create-debug-instance failed without an error.");
|
|
@@ -342,13 +521,15 @@ class DebugPollTimeoutError2 extends Error {
|
|
|
342
521
|
jobKey;
|
|
343
522
|
lastStatus;
|
|
344
523
|
timeoutSeconds;
|
|
524
|
+
lastReadError;
|
|
345
525
|
constructor(details) {
|
|
346
|
-
super(`Debug polling timed out after ${details.timeoutSeconds}s — instance ${details.instanceId} was still "${details.lastStatus}" (not a terminal status)`);
|
|
526
|
+
super(`Debug polling timed out after ${details.timeoutSeconds}s — instance ${details.instanceId} was still "${details.lastStatus}" (not a terminal status)` + (details.lastReadError ? `. The last status read failed: ${details.lastReadError}` : ""));
|
|
347
527
|
this.name = "DebugPollTimeoutError";
|
|
348
528
|
this.instanceId = details.instanceId;
|
|
349
529
|
this.jobKey = details.jobKey;
|
|
350
530
|
this.lastStatus = details.lastStatus;
|
|
351
531
|
this.timeoutSeconds = details.timeoutSeconds;
|
|
532
|
+
this.lastReadError = details.lastReadError;
|
|
352
533
|
}
|
|
353
534
|
}
|
|
354
535
|
function buildPollTimeoutFailureOutput2(err, inspectCommand) {
|
|
@@ -368,15 +549,97 @@ function buildPollTimeoutFailureOutput2(err, inspectCommand) {
|
|
|
368
549
|
}
|
|
369
550
|
};
|
|
370
551
|
}
|
|
371
|
-
|
|
552
|
+
|
|
553
|
+
class DebugCancelledError2 extends Error {
|
|
554
|
+
jobKey;
|
|
555
|
+
instanceId;
|
|
556
|
+
constructor(details = {}) {
|
|
557
|
+
super(details.jobKey ? `The run was cancelled. Orchestrator job ${details.jobKey} may still be running.` : "The run was cancelled before the debug session started.");
|
|
558
|
+
this.name = "DebugCancelledError";
|
|
559
|
+
this.jobKey = details.jobKey;
|
|
560
|
+
this.instanceId = details.instanceId;
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
function throwIfCancelled(signal, details) {
|
|
564
|
+
if (signal?.aborted) {
|
|
565
|
+
throw new DebugCancelledError2(details);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
var JOB_READ_TIMEOUT_MS = 30000;
|
|
569
|
+
function jobReadSignal(signal, deadline) {
|
|
570
|
+
const timeoutMs = deadline === undefined ? JOB_READ_TIMEOUT_MS : Math.max(0, Math.min(JOB_READ_TIMEOUT_MS, deadline - Date.now()));
|
|
571
|
+
const timeout = AbortSignal.timeout(timeoutMs);
|
|
572
|
+
return signal ? AbortSignal.any([signal, timeout]) : timeout;
|
|
573
|
+
}
|
|
574
|
+
function summarizeDebugIncidents(incidents) {
|
|
575
|
+
return incidents.map((inc) => {
|
|
576
|
+
const code = inc.errorCode ? `[${inc.errorCode}] ` : "";
|
|
577
|
+
const element = inc.elementId ? ` (element ${inc.elementId})` : "";
|
|
578
|
+
return `${code}${inc.errorMessage}${element}`;
|
|
579
|
+
});
|
|
580
|
+
}
|
|
581
|
+
function buildFaultedDebugFailureOutput2(run, options) {
|
|
582
|
+
const incidents = run.incidents ?? [];
|
|
583
|
+
const lines = summarizeDebugIncidents(incidents);
|
|
584
|
+
const inspect = options.inspectCommand ? `${options.inspectCommand} ${run.instanceId}` : undefined;
|
|
585
|
+
let Instructions;
|
|
586
|
+
if (incidents.length > 0) {
|
|
587
|
+
const detailHint = inspect ? `
|
|
588
|
+
Run '${inspect}' for the full backend payload (incidentId, errorDetails, AI summary).` : "";
|
|
589
|
+
const traceHint = incidents[0].traceId ? ` traceId=${incidents[0].traceId}.` : "";
|
|
590
|
+
Instructions = `Incident(s):
|
|
591
|
+
- ${lines.join(`
|
|
592
|
+
- `)}${detailHint}${traceHint}`;
|
|
593
|
+
} else if (inspect) {
|
|
594
|
+
const summaryHint = options.summaryCommand ? `, then '${options.summaryCommand}' to confirm whether the process recorded a tenant-level incident` : "";
|
|
595
|
+
Instructions = `Run '${inspect}' to inspect the backend payload${summaryHint}.`;
|
|
596
|
+
} else {
|
|
597
|
+
Instructions = "Open the run in Studio Web (Data.studioWebUrl) to see which element stopped it and why.";
|
|
598
|
+
}
|
|
599
|
+
const Context = {};
|
|
600
|
+
if (incidents[0]?.errorCode) {
|
|
601
|
+
Context.errorCode = incidents[0].errorCode;
|
|
602
|
+
}
|
|
603
|
+
if (incidents[0]?.traceId) {
|
|
604
|
+
Context.traceId = incidents[0].traceId;
|
|
605
|
+
}
|
|
606
|
+
return {
|
|
607
|
+
Result: RESULTS.Failure,
|
|
608
|
+
Code: options.code,
|
|
609
|
+
ErrorCode: "execution_failed",
|
|
610
|
+
Message: incidents.length ? `Debug session ${run.finalStatus}. ${lines[0]}` : `Debug session ${run.finalStatus}. No incident details returned by PIMS.`,
|
|
611
|
+
Instructions,
|
|
612
|
+
...Object.keys(Context).length > 0 ? { Context } : {},
|
|
613
|
+
Data: options.data
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
async function pollDebugInstanceStatus2(config, instanceId, callbacks, pollInterval = 2000, maxPolls = 300, jobKey, options) {
|
|
372
617
|
let pollCount = 0;
|
|
373
618
|
let lastStatus = "";
|
|
374
619
|
const canCheckOrchestratorJob = jobKey !== undefined && ORCHESTRATOR_JOB_KEY.test(jobKey);
|
|
375
620
|
if (jobKey !== undefined && !canCheckOrchestratorJob) {
|
|
376
621
|
logger.warn(`Skipping the Orchestrator job status fallback: "${jobKey}" is not a job key.`);
|
|
377
622
|
}
|
|
623
|
+
const signal = options?.signal;
|
|
378
624
|
while (pollCount < maxPolls) {
|
|
379
|
-
|
|
625
|
+
throwIfCancelled(signal, { jobKey, instanceId });
|
|
626
|
+
const [pollError, status] = await catchError2(withPollRetry("poll-instance-status", () => debugPimsGet2(config, `/api/v1/debug-instances/${instanceId}/element-executions`, "poll-instance-status", signal ? { signal } : undefined), undefined, signal));
|
|
627
|
+
throwIfCancelled(signal, { jobKey, instanceId });
|
|
628
|
+
if (pollError) {
|
|
629
|
+
if (options?.followJobWhenForbidden && canCheckOrchestratorJob && jobKey !== undefined && pollError instanceof MaestroHttpError2 && pollError.httpStatus === 403) {
|
|
630
|
+
logger.warn("PIMS refused the element status of this run (403), so element progress is not " + `available. Following Orchestrator job ${jobKey} until it ends.`);
|
|
631
|
+
return followOrchestratorJob(config, {
|
|
632
|
+
instanceId,
|
|
633
|
+
jobKey,
|
|
634
|
+
callbacks,
|
|
635
|
+
pollInterval,
|
|
636
|
+
remainingPolls: maxPolls - pollCount,
|
|
637
|
+
timeoutSeconds: maxPolls * pollInterval / 1000,
|
|
638
|
+
signal
|
|
639
|
+
});
|
|
640
|
+
}
|
|
641
|
+
throw pollError;
|
|
642
|
+
}
|
|
380
643
|
if (status.status !== lastStatus) {
|
|
381
644
|
lastStatus = status.status;
|
|
382
645
|
const elementExecutions = status.elementExecutions.map((e) => ({
|
|
@@ -396,7 +659,8 @@ async function pollDebugInstanceStatus2(config, instanceId, callbacks, pollInter
|
|
|
396
659
|
return status;
|
|
397
660
|
}
|
|
398
661
|
if (canCheckOrchestratorJob && pollCount > 0 && pollCount % 5 === 0) {
|
|
399
|
-
const [, jobResponse] = await catchError2(orchestratorGet2(config, `/odata/Jobs?$filter=Key eq ${jobKey}&$top=1`, "check-orchestrator-job-status"));
|
|
662
|
+
const [, jobResponse] = await catchError2(orchestratorGet2(config, `/odata/Jobs?$filter=Key eq ${jobKey}&$top=1`, "check-orchestrator-job-status", { signal: jobReadSignal(signal) }));
|
|
663
|
+
throwIfCancelled(signal, { jobKey, instanceId });
|
|
400
664
|
const jobState = jobResponse?.value?.[0]?.State;
|
|
401
665
|
if (jobState && ORCHESTRATOR_TERMINAL_STATUSES.includes(jobState)) {
|
|
402
666
|
const jobInfo = jobResponse?.value?.[0]?.Info ?? "";
|
|
@@ -404,7 +668,7 @@ async function pollDebugInstanceStatus2(config, instanceId, callbacks, pollInter
|
|
|
404
668
|
return { ...status, status: jobState };
|
|
405
669
|
}
|
|
406
670
|
}
|
|
407
|
-
await
|
|
671
|
+
await waitOrAbort(pollInterval, signal);
|
|
408
672
|
pollCount++;
|
|
409
673
|
}
|
|
410
674
|
throw new DebugPollTimeoutError2({
|
|
@@ -414,6 +678,46 @@ async function pollDebugInstanceStatus2(config, instanceId, callbacks, pollInter
|
|
|
414
678
|
timeoutSeconds: maxPolls * pollInterval / 1000
|
|
415
679
|
});
|
|
416
680
|
}
|
|
681
|
+
var JOB_READ_FINAL_STATUSES = new Set([401, 403, 404]);
|
|
682
|
+
async function followOrchestratorJob(config, run) {
|
|
683
|
+
let lastState = "";
|
|
684
|
+
let lastReadError;
|
|
685
|
+
const deadline = Date.now() + run.remainingPolls * run.pollInterval;
|
|
686
|
+
for (let poll = 0;poll < run.remainingPolls && Date.now() < deadline; poll++) {
|
|
687
|
+
throwIfCancelled(run.signal, run);
|
|
688
|
+
const [readError, jobResponse] = await catchError2(orchestratorGet2(config, `/odata/Jobs?$filter=Key eq ${run.jobKey}&$top=1`, "check-orchestrator-job-status", { signal: jobReadSignal(run.signal, deadline) }));
|
|
689
|
+
throwIfCancelled(run.signal, run);
|
|
690
|
+
if (readError instanceof MaestroHttpError2 && JOB_READ_FINAL_STATUSES.has(readError.httpStatus)) {
|
|
691
|
+
throw readError;
|
|
692
|
+
}
|
|
693
|
+
lastReadError = readError ? readError.message : undefined;
|
|
694
|
+
const state = jobResponse?.value?.[0]?.State;
|
|
695
|
+
if (state && state !== lastState) {
|
|
696
|
+
lastState = state;
|
|
697
|
+
run.callbacks?.onStatusChange?.(state, []);
|
|
698
|
+
}
|
|
699
|
+
if (state && ORCHESTRATOR_TERMINAL_STATUSES.includes(state)) {
|
|
700
|
+
const info = jobResponse?.value?.[0]?.Info ?? "";
|
|
701
|
+
logger.info(`Orchestrator job reached terminal status: ${state}${info ? ` — ${info}` : ""}`);
|
|
702
|
+
return {
|
|
703
|
+
instanceId: run.instanceId,
|
|
704
|
+
status: state,
|
|
705
|
+
startedTimeUtc: "",
|
|
706
|
+
completedTimeUtc: null,
|
|
707
|
+
traceId: null,
|
|
708
|
+
elementExecutions: []
|
|
709
|
+
};
|
|
710
|
+
}
|
|
711
|
+
await waitOrAbort(run.pollInterval, run.signal);
|
|
712
|
+
}
|
|
713
|
+
throw new DebugPollTimeoutError2({
|
|
714
|
+
instanceId: run.instanceId,
|
|
715
|
+
jobKey: run.jobKey,
|
|
716
|
+
lastStatus: lastState || "unknown",
|
|
717
|
+
timeoutSeconds: run.timeoutSeconds,
|
|
718
|
+
...lastReadError ? { lastReadError } : {}
|
|
719
|
+
});
|
|
720
|
+
}
|
|
417
721
|
async function fetchDebugInstanceIncidents2(config, instanceId) {
|
|
418
722
|
const result = await debugPimsGet2(config, `/api/v1/debug-instances/${instanceId}/incidents`, "get-debug-instance-incidents");
|
|
419
723
|
return result ?? [];
|
|
@@ -495,7 +799,7 @@ async function fetchDebugInstanceVariables2(config, instanceId, options) {
|
|
|
495
799
|
break;
|
|
496
800
|
}
|
|
497
801
|
logger.warn(`fetch-output-variables failed (attempt ${attempt}/${totalAttempts}): ${lastMessage}; retrying in ${retryDelay / 1000}s.`);
|
|
498
|
-
await
|
|
802
|
+
await delay(retryDelay);
|
|
499
803
|
}
|
|
500
804
|
throw new DebugVariablesFetchFailedError2({
|
|
501
805
|
message: lastMessage,
|
|
@@ -537,7 +841,8 @@ function buildStudioWebDesignerUrl2(params) {
|
|
|
537
841
|
return `${params.baseUrl}/${encodeURIComponent(params.organizationName)}` + `/studio_/designer/${encodeURIComponent(params.projectId)}` + `?solutionId=${encodeURIComponent(params.solutionId)}`;
|
|
538
842
|
}
|
|
539
843
|
async function uploadAndDebugSolution2(params) {
|
|
540
|
-
const { apiConfig } = params;
|
|
844
|
+
const { apiConfig, signal } = params;
|
|
845
|
+
throwIfCancelled(signal);
|
|
541
846
|
logger.info("Uploading solution to Studio Web...");
|
|
542
847
|
const importResult = await params.upload();
|
|
543
848
|
const solutionId = importResult.id;
|
|
@@ -555,6 +860,7 @@ async function uploadAndDebugSolution2(params) {
|
|
|
555
860
|
logger.info(`Solution uploaded — solutionId: ${solutionId}, projectId: ${studioWebProjectId}`);
|
|
556
861
|
logger.info(`Studio Web URL: ${studioWebUrl}`);
|
|
557
862
|
params.callbacks?.onStudioWebUrl?.(studioWebUrl);
|
|
863
|
+
throwIfCancelled(signal);
|
|
558
864
|
const folder = params.folder ?? await getPersonalFolderKey2(apiConfig);
|
|
559
865
|
apiConfig.folderKey = folder.key;
|
|
560
866
|
apiConfig.organizationUnitId = folder.id;
|
|
@@ -606,18 +912,21 @@ async function uploadAndDebugSolution2(params) {
|
|
|
606
912
|
}
|
|
607
913
|
logger.warn("Skipping prepareForCustomDebug — apiConfig.tenantId is not set. " + "Sub-jobs (api-workflow / agent / process orchestration) may fault with a missing debugSessionId.");
|
|
608
914
|
}
|
|
915
|
+
throwIfCancelled(signal);
|
|
609
916
|
logger.info("Beginning debug session in Orchestrator...");
|
|
610
917
|
const session = await beginDebugSession2(apiConfig, params.beginSessionPayload, {
|
|
611
918
|
inlineAgents,
|
|
612
919
|
flowProjectId: studioWebProjectId,
|
|
613
|
-
...solutionProjects ? { solutionProjects } : {}
|
|
920
|
+
...solutionProjects ? { solutionProjects } : {},
|
|
921
|
+
...params.fpsProperties ? { fpsProperties: params.fpsProperties } : {}
|
|
614
922
|
});
|
|
615
923
|
logger.info(`Debug session started — jobKey: ${session.jobKey}`);
|
|
924
|
+
throwIfCancelled(signal, { jobKey: session.jobKey });
|
|
616
925
|
logger.info("Creating debug instance in PIMS...");
|
|
617
926
|
const debugInstance = await createDebugInstance2(apiConfig, session.jobKey, debugSolutionId, debugProjectId, params.entryPoint, params.projectType);
|
|
618
927
|
logger.info(`Debug instance created — instanceId: ${debugInstance.instanceId}`);
|
|
619
928
|
logger.info("Polling for completion...");
|
|
620
|
-
const finalResponse = await pollDebugInstanceStatus2(apiConfig, debugInstance.instanceId, params.callbacks, params.pollInterval, params.maxPolls, session.jobKey);
|
|
929
|
+
const finalResponse = await pollDebugInstanceStatus2(apiConfig, debugInstance.instanceId, params.callbacks, params.pollInterval, params.maxPolls, session.jobKey, { followJobWhenForbidden: params.followJobWhenForbidden, signal });
|
|
621
930
|
const terminalStatusAt = Date.now();
|
|
622
931
|
const incidents = await resolveFaultIncidents2(apiConfig, debugInstance.instanceId, finalResponse.status);
|
|
623
932
|
return {
|
|
@@ -692,6 +1001,6 @@ async function patchConnectionOverwrites2(config, organizationName, solutionId,
|
|
|
692
1001
|
return successCount;
|
|
693
1002
|
}
|
|
694
1003
|
|
|
695
|
-
export { FpsPropertiesInjectionError2, injectInlineAgentProcessEntries2, injectSolutionProjectProcessEntries2, extractStartEventId2, getPersonalFolderKey2, getPersonalFolderInfo2, DebugProvisioningFailedError2, prepareForCustomDebug2, getFolderInfoById2, beginDebugSession2, DEBUG_MODE_MAP2, SIMULATION_MODE_MAP2, createDebugInstance2, DebugPollTimeoutError2, buildPollTimeoutFailureOutput2, pollDebugInstanceStatus2, fetchDebugInstanceIncidents2, DebugVariablesFetchFailedError2, fetchDebugInstanceVariables2, isFaultedDebugStatus2, isSuccessfulDebugStatus2, resolveFaultIncidents2, buildStudioWebDesignerUrl2, uploadAndDebugSolution2, patchConnectionOverwrites2 };
|
|
1004
|
+
export { FpsPropertiesInjectionError2, injectInlineAgentProcessEntries2, injectSolutionProjectProcessEntries2, extractStartEventId2, getPersonalFolderKey2, getPersonalFolderInfo2, DebugProvisioningFailedError2, prepareForCustomDebug2, getFolderInfoById2, beginDebugSession2, DEBUG_MODE_MAP2, SIMULATION_MODE_MAP2, createDebugInstance2, DebugPollTimeoutError2, buildPollTimeoutFailureOutput2, DebugCancelledError2, buildFaultedDebugFailureOutput2, pollDebugInstanceStatus2, fetchDebugInstanceIncidents2, DebugVariablesFetchFailedError2, fetchDebugInstanceVariables2, isFaultedDebugStatus2, isSuccessfulDebugStatus2, resolveFaultIncidents2, buildStudioWebDesignerUrl2, uploadAndDebugSolution2, patchConnectionOverwrites2 };
|
|
696
1005
|
|
|
697
|
-
//# debugId=
|
|
1006
|
+
//# debugId=15BA8FE4326FCD5F64756E2164756E21
|