@uipath/flow-tool 1.201.0 → 1.202.0-preview.136
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{authoring-7r6g06c7.js → authoring-wpa6d0vf.js} +74 -48
- package/dist/binding-service-dh91hw9e.js +141 -0
- package/dist/{browser-strategy-rkcvc6tn.js → browser-strategy-6atc7v8s.js} +3 -3
- package/dist/connector-service-d9ph9kx1.js +948 -0
- package/dist/{conversion-H2VEEYLB-ng48mbf7.js → conversion-QANACVCM-zs0hhfjv.js} +39 -33
- package/dist/{de-5KVP66U6-f7knj511.js → de-5KVP66U6-1bnf4zt5.js} +52 -52
- package/dist/de-6U7ECGHH-xwsw33fk.js +35 -0
- package/dist/{de-5HU6GFWV-4EZK6G7N-yrh21f52.js → de-7XQXX2DK-IDWR6CAR-n4z245kt.js} +857 -845
- package/dist/{de-5HU6GFWV-zheyw6d2.js → de-7XQXX2DK-tqdy5n2b.js} +857 -845
- package/dist/{de-HKTOVV4H-d5yw5j21.js → de-HKTOVV4H-pe9w0xn8.js} +46 -46
- package/dist/{de-XLT4QPIP-0rtw349w.js → de-XLT4QPIP-kj81dxjc.js} +9 -9
- package/dist/debug-conversation-trigger-452frzyz.js +41 -0
- package/dist/debug-http-client-wd6xb8v4.js +31 -0
- package/dist/debug-service-fvyexnb1.js +58 -0
- package/dist/edge-service-e77bndbe.js +162 -0
- package/dist/{elk.bundled-pydbzeez.js → elk.bundled-vpsbxz0p.js} +3 -3
- package/dist/{en-MABQK6C4-REWE2WG2-8dp4cqdg.js → en-5ZGC5VQ3-EWX7ILY7-rmtj70fk.js} +898 -898
- package/dist/{en-MABQK6C4-nkzq2j8t.js → en-5ZGC5VQ3-h581y30k.js} +897 -897
- package/dist/en-EPWMLP2N-2wvge238.js +28 -0
- package/dist/{en-UNT7BE26-rhh65jry.js → en-LQHKFSEY-vvbe8ve9.js} +13 -11
- package/dist/{en-P4AS26D7-szrzfxz1.js → en-P4AS26D7-zptp77bm.js} +45 -45
- package/dist/{en-4KXU7N7B-66fntxa2.js → en-X3S6IZ5J-nhkg6pwn.js} +54 -60
- package/dist/{es-MX-H2EAXLYI-qwnqt48x.js → es-MX-H2EAXLYI-j42kfkxy.js} +46 -46
- package/dist/es-MX-NHTIP5YM-ar6zfx95.js +35 -0
- package/dist/{es-MX-OKNDG2NH-c1k1s1tg.js → es-MX-OKNDG2NH-tcac6j4g.js} +9 -9
- package/dist/{es-MX-POESXYP2-UW6VP5QI-cd3a79g9.js → es-MX-U2VN3SZW-KYAJ2ONK-kdram1g1.js} +857 -845
- package/dist/{es-MX-POESXYP2-9538722k.js → es-MX-U2VN3SZW-anynsmd8.js} +857 -845
- package/dist/{es-MX-XAVLOQW3-9b3cp9n8.js → es-MX-XAVLOQW3-q00km2y7.js} +52 -52
- package/dist/{es-NQICVYSQ-aa9z3nhs.js → es-NQICVYSQ-3dtqgget.js} +9 -9
- package/dist/{es-O4PAV2CR-jwfaawwk.js → es-O4PAV2CR-0g23ve3v.js} +46 -46
- package/dist/es-PQ3RA33Q-y4kxhjfr.js +35 -0
- package/dist/{es-VFPNVMP5-thm0z9sr.js → es-VFPNVMP5-bx2c337j.js} +52 -52
- package/dist/{es-LUTYN7U7-IY5QWOUF-k2aefzc0.js → es-ZGCPPOME-24PJEGPV-rn86z9kn.js} +857 -845
- package/dist/{es-LUTYN7U7-ye5zn4sn.js → es-ZGCPPOME-8gazspjj.js} +857 -845
- package/dist/flow-api-wv8p8xbd.js +36 -0
- package/dist/flow-debug-service-tfbefas6.js +741 -0
- package/dist/flow-eval-node-target-c6wea7rz.js +44 -0
- package/dist/flow-eval-run-service-01kdky72.js +961 -0
- package/dist/flow-eval-service-ft8e16jz.js +1338 -0
- package/dist/flow-init-service-mva4crty.js +35 -0
- package/dist/flow-io-r318sjrw.js +36 -0
- package/dist/flow-migrate-service-rwcdx60q.js +119 -0
- package/dist/flow-pack-service-p4hxyj9e.js +280 -0
- package/dist/flow-validate-service-j25pxpwz.js +57 -0
- package/dist/{fr-5YRGHXF5-q6b63yg0.js → fr-5YRGHXF5-kz1ywpv6.js} +46 -46
- package/dist/{fr-E5MDO4EG-exvrs7ge.js → fr-E5MDO4EG-c3mkty2t.js} +52 -52
- package/dist/{fr-PFHIL7YZ-cxnshwa8.js → fr-PFHIL7YZ-2n589p47.js} +9 -9
- package/dist/fr-R4L3OAWI-30khpsmn.js +35 -0
- package/dist/{fr-LJIK56LW-STG6QR3T-cextvv8q.js → fr-T3G5GZCT-TU4IKBEG-k6xz1s1f.js} +857 -845
- package/dist/{fr-LJIK56LW-xf3xf2kh.js → fr-T3G5GZCT-y3f7xb1q.js} +857 -845
- package/dist/governance-fetcher-j9cx4f1d.js +391 -0
- package/dist/headless-h1myzz32.js +177196 -0
- package/dist/hitl-service-kvt5wms4.js +256 -0
- package/dist/index-1kgxzh8x.js +143 -0
- package/dist/index-4zrwgb3c.js +111 -0
- package/dist/index-ev4mdg5y.js +4801 -0
- package/dist/{index-er6vy3jk.js → index-eybzsdcc.js} +295 -317
- package/dist/{index-hsadteg4.js → index-h8cph72k.js} +4 -4
- package/dist/{index-p50kx6jv.js → index-k5tbd184.js} +276 -276
- package/dist/index-n33np76r.js +630 -0
- package/dist/{index-9f8q2ege.js → index-p3vk57z7.js} +27 -27
- package/dist/{index-dhcd9b82.js → index-w0z4s69j.js} +166 -81
- package/dist/index.js +29 -32
- package/dist/{index.umd.min-drpc57vn.js → index.umd.min-fqefd9kn.js} +3 -3
- package/dist/init.js +24 -25
- package/dist/input-reader-6pwhtp8v.js +11 -0
- package/dist/{ja-FGEGLBJ3-w9byjhze.js → ja-BI5K3JDZ-77zat4z2.js} +857 -845
- package/dist/{ja-FGEGLBJ3-MG3BSWXD-vq19zt2p.js → ja-BI5K3JDZ-GTIHISTZ-s6n3r2ab.js} +857 -845
- package/dist/{ja-DPO5PPLO-s2a7j3nj.js → ja-DPO5PPLO-mysfmznx.js} +52 -52
- package/dist/{ja-P4OSE367-8ywxep9a.js → ja-P4OSE367-srr3qypg.js} +9 -9
- package/dist/{ja-SDAPAVCR-943p5gx7.js → ja-SDAPAVCR-kg39dfap.js} +46 -46
- package/dist/ja-ZHKCBE5W-x73w6x3e.js +35 -0
- package/dist/{js-yaml-cggj6w7q.js → js-yaml-87cdx6bm.js} +27 -19
- package/dist/known-types-a20evmmg.js +20 -0
- package/dist/ko-6W7OGLLB-mnmqc584.js +35 -0
- package/dist/{ko-ITOPNIYI-qz39kamf.js → ko-ITOPNIYI-hmxd2asd.js} +52 -52
- package/dist/{ko-TUAK3G3A-s25w0ckg.js → ko-JOBF5V7N-4bv0mjje.js} +857 -845
- package/dist/{ko-TUAK3G3A-TBEBKOTM-ns78t2rv.js → ko-JOBF5V7N-O7T4HKIE-ape840y0.js} +857 -845
- package/dist/{ko-NAGOZLC3-wb3y9yhh.js → ko-NAGOZLC3-gaxxsnd2.js} +46 -46
- package/dist/{ko-PYOS2KJP-5sbj5bp8.js → ko-PYOS2KJP-e7dshyxy.js} +9 -9
- package/dist/localization-h8a53z6p.js +47 -0
- package/dist/{node-gd4469ea.js → node-cnrcrrb0.js} +7973 -7166
- package/dist/node-service-8g5x5d2y.js +70 -0
- package/dist/{node-strategy-8gzp67xs.js → node-strategy-gc4sg6a2.js} +132 -16
- package/dist/node-sync-service-e2reh33c.js +42 -0
- package/dist/{packager-tool-9qecd4wb.js → packager-tool-0gctz400.js} +5 -2
- package/dist/{packager-tool-1cb0d5e0.js → packager-tool-0v3s8r01.js} +2 -2
- package/dist/{packager-tool-wckvcay0.js → packager-tool-1yh8g550.js} +9 -7
- package/dist/packager-tool-27avrkyk.js +15 -0
- package/dist/packager-tool-2wefykg9.js +106 -0
- package/dist/packager-tool-4fhgws0x.js +757 -0
- package/dist/{packager-tool-7yjpwj92.js → packager-tool-4hx14snw.js} +49 -48
- package/dist/{packager-tool-3wygxefb.js → packager-tool-58q3tvh7.js} +10 -10
- package/dist/{packager-tool-cvwr40ax.js → packager-tool-5qaxht3k.js} +1425 -550
- package/dist/packager-tool-5z1eg3ea.js +33289 -0
- package/dist/{packager-tool-17cn3xb7.js → packager-tool-6m078z5s.js} +13388 -19366
- package/dist/packager-tool-7b6tpg7y.js +77 -0
- package/dist/packager-tool-7exrv6w7.js +23 -0
- package/dist/packager-tool-8dszjcg5.js +4892 -0
- package/dist/packager-tool-8j92afwp.js +58 -0
- package/dist/packager-tool-94w17vf8.js +85 -0
- package/dist/{packager-tool-vdd02vns.js → packager-tool-9bec251q.js} +543 -1493
- package/dist/packager-tool-a1hbfmws.js +399 -0
- package/dist/{packager-tool-tq9q9m77.js → packager-tool-a42jnpy5.js} +3 -9
- package/dist/packager-tool-abbtfk2v.js +54 -0
- package/dist/packager-tool-cdwpc9fh.js +4945 -0
- package/dist/packager-tool-e0p2zsyc.js +97 -0
- package/dist/packager-tool-eebq62fq.js +540 -0
- package/dist/{packager-tool-m6x5sczh.js → packager-tool-em5r6g6j.js} +14 -21
- package/dist/packager-tool-eypvc2kv.js +23 -0
- package/dist/packager-tool-f0kd5kq4.js +2327 -0
- package/dist/packager-tool-fjaa8d3v.js +289 -0
- package/dist/packager-tool-g0eha8ge.js +121 -0
- package/dist/packager-tool-g9y14b10.js +54 -0
- package/dist/packager-tool-gbgfwx8f.js +2 -0
- package/dist/packager-tool-jc34wvrw.js +64 -0
- package/dist/packager-tool-k99nf3pq.js +25 -0
- package/dist/{packager-tool-hr0xg6q8.js → packager-tool-kn91khp6.js} +17 -13
- package/dist/{packager-tool-jysvpt8p.js → packager-tool-m3wkcxf5.js} +2 -2
- package/dist/{packager-tool-78a3szsp.js → packager-tool-m5qfverj.js} +1720 -2014
- package/dist/packager-tool-mwvbq6ef.js +79 -0
- package/dist/packager-tool-nq4rcqqg.js +87 -0
- package/dist/packager-tool-nxx8naxv.js +4234 -0
- package/dist/{packager-tool-3y0k15sv.js → packager-tool-p9stswjj.js} +2858 -19342
- package/dist/packager-tool-r0xpcqwg.js +188 -0
- package/dist/packager-tool-raq2wbwp.js +18 -0
- package/dist/{packager-tool-y3dezh8k.js → packager-tool-rs6jm14d.js} +6 -4
- package/dist/packager-tool-s9ff3kk4.js +6 -0
- package/dist/{packager-tool-pbsghbmj.js → packager-tool-sykgshez.js} +2 -2
- package/dist/packager-tool-tf3d2y8z.js +31 -0
- package/dist/packager-tool-tn5e7wnb.js +384 -0
- package/dist/packager-tool-v2rkcehq.js +457 -0
- package/dist/packager-tool-v86fdwvs.js +262 -0
- package/dist/packager-tool-v9psxdy5.js +8185 -0
- package/dist/packager-tool-v9rrz038.js +602 -0
- package/dist/packager-tool-vpqyvh4c.js +304 -0
- package/dist/packager-tool-wcha0e5r.js +443 -0
- package/dist/{packager-tool-1gt6js73.js → packager-tool-xhzfwa5p.js} +6 -4
- package/dist/{packager-tool-5arsyj36.js → packager-tool-yc4kw997.js} +4 -2
- package/dist/{packager-tool-pkq70dec.js → packager-tool-ywqc9rtf.js} +31 -3
- package/dist/{packager-tool-0567pxpm.js → packager-tool-z9bfhmm5.js} +10 -10
- package/dist/{packager-tool-gmrwvnyh.js → packager-tool-zfrp8ecz.js} +8 -58
- package/dist/{packager-tool-3vdpx9ng.js → packager-tool-zke08y39.js} +1121 -1846
- package/dist/packager-tool.js +17 -17
- package/dist/{pt-7TR74ZMB-1g8my56g.js → pt-7TR74ZMB-bmphh4x2.js} +46 -46
- package/dist/{pt-BR-7XGDXRDJ-TR5D7JYL-533wvy7p.js → pt-BR-7DYX2YPT-LZYH4YFD-bx43vx3z.js} +857 -845
- package/dist/{pt-BR-7XGDXRDJ-espnkgrj.js → pt-BR-7DYX2YPT-fqxqzqtf.js} +857 -845
- package/dist/{pt-BR-BXURWX4W-dqr4dnf9.js → pt-BR-BXURWX4W-bwfcwhk1.js} +52 -52
- package/dist/{pt-BR-DXXSYJDO-bn84ewp7.js → pt-BR-DXXSYJDO-a2tp13v7.js} +46 -46
- package/dist/pt-BR-UQCYHKMJ-q78n7q70.js +35 -0
- package/dist/{pt-BR-Z3TUDJHM-n7ngej6s.js → pt-BR-Z3TUDJHM-8v73x9s7.js} +9 -9
- package/dist/pt-D6A6MVB2-yvxca8vz.js +35 -0
- package/dist/{pt-TMVOOITK-myha14p9.js → pt-HTXGGX6Y-97t21dty.js} +857 -845
- package/dist/{pt-TMVOOITK-H2ADYHSD-ezpggv33.js → pt-HTXGGX6Y-ZHQSDFKI-vehfxadc.js} +857 -845
- package/dist/{pt-KSBWHAVQ-hd52bpsz.js → pt-KSBWHAVQ-mhvhgr2p.js} +9 -9
- package/dist/{pt-YI4VE4YQ-v7gjeg82.js → pt-YI4VE4YQ-wdkn2dcf.js} +52 -52
- package/dist/ro-4TMBHS5M-jz0anpt6.js +35 -0
- package/dist/{ro-BJFER5OI-334n28rj.js → ro-BJFER5OI-83tq8vxh.js} +46 -46
- package/dist/{ro-2VALF3S5-NXBJUEZN-nqw1zs33.js → ro-KTNQ3MNU-XIE6YPQN-gen8p82z.js} +857 -845
- package/dist/{ro-2VALF3S5-cdz5afkr.js → ro-KTNQ3MNU-y08n1x5g.js} +857 -845
- package/dist/{ro-RKXZUG7Z-cm3xn3fj.js → ro-RKXZUG7Z-nndrrsq7.js} +52 -52
- package/dist/{ro-VZUZTAMR-tccygznf.js → ro-VZUZTAMR-f4q0g3em.js} +9 -9
- package/dist/{ru-GSCT4ARZ-qj8dm4dp.js → ru-GSCT4ARZ-1sa9wbr8.js} +1 -1
- package/dist/{ru-GSCT4ARZ-FTVCGQTL-5nh4jf2e.js → ru-GSCT4ARZ-FTVCGQTL-gee86v14.js} +1 -1
- package/dist/{ru-T73OPRTC-mp5gn7gs.js → ru-T73OPRTC-4knxw497.js} +1 -1
- package/dist/{ru-WBLQ5B2U-awt245ky.js → ru-WBLQ5B2U-8r3c7v6d.js} +1 -1
- package/dist/ru-WBLQ5B2U-kdey8qa4.js +10 -0
- package/dist/{ru-WBLQ5B2U-57ezmxzz.js → ru-WBLQ5B2U-wemdzdqd.js} +1 -1
- package/dist/{serialization-GAW7UFOK-9hkdmmd2.js → serialization-J5QK3HPY-bgewpt6f.js} +158 -152
- package/dist/services/expression-validator.d.ts +28 -0
- package/dist/services/flow-eval-schema/types.d.ts +17 -0
- package/dist/services/flow-validate-service.d.ts +26 -0
- package/dist/services/node-validators/js-expression-syntax-validator.d.ts +6 -3
- package/dist/services/tidy-service.d.ts +26 -0
- package/dist/services/vars-reference-rule.d.ts +156 -0
- package/dist/shared-utils-8xdq6f04.js +20 -0
- package/dist/tidy-service-ashgyfwj.js +34 -0
- package/dist/tool.js +30 -33
- package/dist/{tr-AA6O2WSR-ga1xnymp.js → tr-AA6O2WSR-86ba4bdf.js} +52 -52
- package/dist/tr-GSQQ6SOT-hv1gyeaa.js +35 -0
- package/dist/{tr-RQTZ2DMS-bpgd4kma.js → tr-RQTZ2DMS-w3cwv8s4.js} +46 -46
- package/dist/{tr-W4AVRSQ4-bt3qqqdy.js → tr-W4AVRSQ4-hjr81xzk.js} +9 -9
- package/dist/{tr-RIFCEXFH-BZS7S7QK-q465b62g.js → tr-XHSSPNK7-GW5KVXR3-2w3f1ss6.js} +857 -845
- package/dist/{tr-RIFCEXFH-hgkb4g8y.js → tr-XHSSPNK7-cmqyc4wd.js} +857 -845
- package/dist/utils/handle-expansion.d.ts +16 -0
- package/dist/validation.js +47 -27
- package/dist/variable-service-er7ph4br.js +152 -0
- package/dist/wait-for-flow-job-45p1a444.js +134 -0
- package/dist/{zh-CN-IP3FMXWM-H3JI2XUM-ta4yac7h.js → zh-CN-2EHQT23P-T5XRQCVS-ac17dpc1.js} +857 -845
- package/dist/{zh-CN-IP3FMXWM-1cfarhcp.js → zh-CN-2EHQT23P-mr63c4xz.js} +857 -845
- package/dist/{zh-CN-6YRAN57T-j7jp34ws.js → zh-CN-6YRAN57T-rd7x2tqs.js} +9 -9
- package/dist/zh-CN-EDFRBU32-vvj7tmaq.js +35 -0
- package/dist/{zh-CN-R2KLHXQV-wttmznep.js → zh-CN-R2KLHXQV-agqr45ds.js} +52 -52
- package/dist/{zh-CN-ZC6LT4IN-vty9mvv8.js → zh-CN-ZC6LT4IN-kbzvvzz5.js} +46 -46
- package/dist/zh-TW-HAICM6DE-rh7k3cq7.js +35 -0
- package/dist/{zh-TW-AGIDXIPF-R4XZRDJZ-cgxxz5k4.js → zh-TW-MGZCE5BT-P6FLIUAR-zmq07vhs.js} +857 -845
- package/dist/{zh-TW-AGIDXIPF-n6r6w7vy.js → zh-TW-MGZCE5BT-c4ekmrz9.js} +857 -845
- package/dist/{zh-TW-R7Y5KVMU-q81f4z2p.js → zh-TW-R7Y5KVMU-m61y07e3.js} +46 -46
- package/dist/{zh-TW-RJGCQANM-gqn0aca0.js → zh-TW-RJGCQANM-w0x3qc1p.js} +52 -52
- package/dist/{zh-TW-SO2245GN-m5kh88bg.js → zh-TW-SO2245GN-n2bn1gg4.js} +9 -9
- package/package.json +2 -2
- package/dist/de-5KVP66U6-t37qr521.js +0 -161
- package/dist/de-WMKOGI7B-6dc1zdnp.js +0 -143
- package/dist/en-4KXU7N7B-24v330b5.js +0 -118
- package/dist/en-X4DLPKLJ-1h9gj5c1.js +0 -110
- package/dist/es-BVPGJUWA-0k59eqfv.js +0 -143
- package/dist/es-MX-U6YL5KQX-k4qvpgd4.js +0 -143
- package/dist/es-MX-XAVLOQW3-47a405kf.js +0 -161
- package/dist/es-VFPNVMP5-6sftsdxe.js +0 -161
- package/dist/fr-E5MDO4EG-f3x1jeqw.js +0 -161
- package/dist/fr-EKTTDR7Z-m2t68j0m.js +0 -143
- package/dist/ja-DPO5PPLO-fmbg7zt2.js +0 -161
- package/dist/ja-Y2YBTXNN-5sszk2zv.js +0 -143
- package/dist/ko-ITOPNIYI-aqy82jk8.js +0 -161
- package/dist/ko-S33XAV26-rfsv9myd.js +0 -143
- package/dist/packager-tool-0sz8se22.js +0 -10671
- package/dist/packager-tool-8mqydhz8.js +0 -9850
- package/dist/packager-tool-p9j43p8h.js +0 -115
- package/dist/packager-tool-v74yk918.js +0 -107
- package/dist/packager-tool-xj0agqpk.js +0 -11
- package/dist/pt-BR-BXURWX4W-xzyndmrx.js +0 -161
- package/dist/pt-BR-JO45SCNI-mt93s33c.js +0 -143
- package/dist/pt-W3NA4LIZ-fwd1q4j0.js +0 -143
- package/dist/pt-YI4VE4YQ-521681zf.js +0 -161
- package/dist/ro-RKXZUG7Z-pdztdafr.js +0 -161
- package/dist/ro-WLKX6HF5-b9tj8q67.js +0 -143
- package/dist/ru-WBLQ5B2U-8xd4gpv2.js +0 -10
- package/dist/ru-WBLQ5B2U-mswqs9wc.js +0 -10
- package/dist/tr-3U2W2XCA-43ptfc0m.js +0 -143
- package/dist/tr-AA6O2WSR-bj9n80k8.js +0 -161
- package/dist/zh-CN-IPZYQR3P-egjmvyjf.js +0 -143
- package/dist/zh-CN-R2KLHXQV-x6gnk2n0.js +0 -161
- package/dist/zh-TW-RJGCQANM-tt8j5wv2.js +0 -161
- package/dist/zh-TW-YPVSQVGT-b378ztph.js +0 -143
|
@@ -0,0 +1,289 @@
|
|
|
1
|
+
import {
|
|
2
|
+
logger
|
|
3
|
+
} from "./packager-tool-5qaxht3k.js";
|
|
4
|
+
|
|
5
|
+
// ../maestro-sdk/src/debug-http-client.ts
|
|
6
|
+
function parseBackendErrorBody(body) {
|
|
7
|
+
if (!body)
|
|
8
|
+
return {};
|
|
9
|
+
let parsed;
|
|
10
|
+
try {
|
|
11
|
+
parsed = JSON.parse(body);
|
|
12
|
+
} catch {
|
|
13
|
+
return {};
|
|
14
|
+
}
|
|
15
|
+
if (!parsed || typeof parsed !== "object")
|
|
16
|
+
return {};
|
|
17
|
+
const obj = parsed;
|
|
18
|
+
const result = {};
|
|
19
|
+
if (typeof obj.message === "string")
|
|
20
|
+
result.message = obj.message;
|
|
21
|
+
if (typeof obj.errorCode === "number" || typeof obj.errorCode === "string") {
|
|
22
|
+
result.errorCode = String(obj.errorCode);
|
|
23
|
+
}
|
|
24
|
+
if (typeof obj.traceId === "string")
|
|
25
|
+
result.traceId = obj.traceId;
|
|
26
|
+
if (typeof obj.requestId === "string")
|
|
27
|
+
result.requestId = obj.requestId;
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
class MaestroHttpError extends Error {
|
|
32
|
+
service;
|
|
33
|
+
method;
|
|
34
|
+
endpoint;
|
|
35
|
+
url;
|
|
36
|
+
httpStatus;
|
|
37
|
+
statusText;
|
|
38
|
+
body;
|
|
39
|
+
stage;
|
|
40
|
+
parsedErrorCode;
|
|
41
|
+
parsedErrorMessage;
|
|
42
|
+
parsedTraceId;
|
|
43
|
+
parsedRequestId;
|
|
44
|
+
attempts;
|
|
45
|
+
traceIds;
|
|
46
|
+
constructor(details) {
|
|
47
|
+
super(MaestroHttpError.formatMessage(details));
|
|
48
|
+
this.name = "MaestroHttpError";
|
|
49
|
+
this.service = details.service;
|
|
50
|
+
this.method = details.method;
|
|
51
|
+
this.endpoint = details.endpoint;
|
|
52
|
+
this.url = details.url;
|
|
53
|
+
this.httpStatus = details.httpStatus;
|
|
54
|
+
this.statusText = details.statusText;
|
|
55
|
+
this.body = details.body;
|
|
56
|
+
this.stage = details.stage;
|
|
57
|
+
this.parsedErrorCode = details.parsedErrorCode;
|
|
58
|
+
this.parsedErrorMessage = details.parsedErrorMessage;
|
|
59
|
+
this.parsedTraceId = details.parsedTraceId;
|
|
60
|
+
this.parsedRequestId = details.parsedRequestId;
|
|
61
|
+
this.attempts = details.attempts;
|
|
62
|
+
this.traceIds = details.traceIds;
|
|
63
|
+
}
|
|
64
|
+
recordAttempts(attempts, traceIds) {
|
|
65
|
+
this.attempts = attempts;
|
|
66
|
+
this.traceIds = traceIds;
|
|
67
|
+
return this;
|
|
68
|
+
}
|
|
69
|
+
static formatMessage(d) {
|
|
70
|
+
const prefix = d.stage ? `Failed during ${d.stage}` : `${d.service} API request failed`;
|
|
71
|
+
const where = `${d.method} ${d.endpoint}`;
|
|
72
|
+
const traceSuffix = d.parsedTraceId ? ` (traceId=${d.parsedTraceId})` : "";
|
|
73
|
+
const messageSuffix = d.parsedErrorMessage ? ` — ${d.parsedErrorMessage}` : "";
|
|
74
|
+
return `${prefix}: ${d.httpStatus} ${d.statusText} on ${where}${traceSuffix}${messageSuffix}`;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
async function buildHttpErrorDetails(response, init) {
|
|
78
|
+
let body = "";
|
|
79
|
+
try {
|
|
80
|
+
body = await response.text();
|
|
81
|
+
} catch {}
|
|
82
|
+
const parsed = parseBackendErrorBody(body);
|
|
83
|
+
return {
|
|
84
|
+
service: init.service,
|
|
85
|
+
method: init.method,
|
|
86
|
+
endpoint: init.endpoint,
|
|
87
|
+
url: init.url,
|
|
88
|
+
httpStatus: response.status,
|
|
89
|
+
statusText: response.statusText,
|
|
90
|
+
body,
|
|
91
|
+
stage: init.stage,
|
|
92
|
+
parsedErrorCode: parsed.errorCode,
|
|
93
|
+
parsedErrorMessage: parsed.message,
|
|
94
|
+
parsedTraceId: parsed.traceId,
|
|
95
|
+
parsedRequestId: parsed.requestId
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function buildCommonHeaders(config, options) {
|
|
99
|
+
const headers = {
|
|
100
|
+
Authorization: `Bearer ${config.authToken}`,
|
|
101
|
+
Accept: "application/json"
|
|
102
|
+
};
|
|
103
|
+
if (options?.includeContentType !== false) {
|
|
104
|
+
headers["Content-Type"] = "application/json";
|
|
105
|
+
}
|
|
106
|
+
if (config.organizationUnitId) {
|
|
107
|
+
headers["X-UIPATH-OrganizationUnitId"] = config.organizationUnitId.toString();
|
|
108
|
+
}
|
|
109
|
+
if (config.folderKey) {
|
|
110
|
+
headers["x-uipath-folderkey"] = config.folderKey;
|
|
111
|
+
}
|
|
112
|
+
return headers;
|
|
113
|
+
}
|
|
114
|
+
function buildOrchestratorUrl(config, path) {
|
|
115
|
+
return `${config.baseUrl}/${config.organizationId}/${config.tenantName}/orchestrator_${path}`;
|
|
116
|
+
}
|
|
117
|
+
function buildPimsUrl(config, path) {
|
|
118
|
+
return `${config.baseUrl}/${config.organizationId}/${config.tenantId}/pims_${path}`;
|
|
119
|
+
}
|
|
120
|
+
function buildAutomationSolutionsUrl(config, path) {
|
|
121
|
+
return `${config.baseUrl}/${config.organizationId}/${config.tenantId}/automationsolutions_${path}`;
|
|
122
|
+
}
|
|
123
|
+
async function automationSolutionsGet(config, path, stage, signal) {
|
|
124
|
+
const url = buildAutomationSolutionsUrl(config, path);
|
|
125
|
+
const headers = buildCommonHeaders(config, { includeContentType: false });
|
|
126
|
+
if (config.tenantId) {
|
|
127
|
+
headers["X-UIPATH-TenantId"] = config.tenantId;
|
|
128
|
+
}
|
|
129
|
+
if (typeof process !== "undefined" && process.env?.DEBUG) {
|
|
130
|
+
logger.info(`DEBUG AUTOMATION SOLUTIONS GET: ${url}`);
|
|
131
|
+
}
|
|
132
|
+
const response = await fetch(url, { method: "GET", headers, signal });
|
|
133
|
+
if (!response.ok) {
|
|
134
|
+
throw new MaestroHttpError(await buildHttpErrorDetails(response, {
|
|
135
|
+
service: "automation-solutions",
|
|
136
|
+
method: "GET",
|
|
137
|
+
endpoint: path,
|
|
138
|
+
url,
|
|
139
|
+
stage
|
|
140
|
+
}));
|
|
141
|
+
}
|
|
142
|
+
return response.json();
|
|
143
|
+
}
|
|
144
|
+
async function orchestratorGet(config, path, stage) {
|
|
145
|
+
const url = buildOrchestratorUrl(config, path);
|
|
146
|
+
const headers = buildCommonHeaders(config);
|
|
147
|
+
if (typeof process !== "undefined" && process.env?.DEBUG) {
|
|
148
|
+
logger.info(`DEBUG GET: ${url}`);
|
|
149
|
+
}
|
|
150
|
+
const response = await fetch(url, { method: "GET", headers });
|
|
151
|
+
if (!response.ok) {
|
|
152
|
+
throw new MaestroHttpError(await buildHttpErrorDetails(response, {
|
|
153
|
+
service: "orchestrator",
|
|
154
|
+
method: "GET",
|
|
155
|
+
endpoint: path,
|
|
156
|
+
url,
|
|
157
|
+
stage
|
|
158
|
+
}));
|
|
159
|
+
}
|
|
160
|
+
return response.json();
|
|
161
|
+
}
|
|
162
|
+
async function orchestratorPost(config, path, body, stage) {
|
|
163
|
+
const url = buildOrchestratorUrl(config, path);
|
|
164
|
+
const headers = buildCommonHeaders(config);
|
|
165
|
+
if (typeof process !== "undefined" && process.env?.DEBUG) {
|
|
166
|
+
logger.info(`DEBUG POST: ${url}`);
|
|
167
|
+
}
|
|
168
|
+
const response = await fetch(url, {
|
|
169
|
+
method: "POST",
|
|
170
|
+
headers,
|
|
171
|
+
body: JSON.stringify(body)
|
|
172
|
+
});
|
|
173
|
+
if (!response.ok) {
|
|
174
|
+
throw new MaestroHttpError(await buildHttpErrorDetails(response, {
|
|
175
|
+
service: "orchestrator",
|
|
176
|
+
method: "POST",
|
|
177
|
+
endpoint: path,
|
|
178
|
+
url,
|
|
179
|
+
stage
|
|
180
|
+
}));
|
|
181
|
+
}
|
|
182
|
+
return response.json();
|
|
183
|
+
}
|
|
184
|
+
async function debugPimsGet(config, path, stage, options) {
|
|
185
|
+
const url = buildPimsUrl(config, path);
|
|
186
|
+
const headers = buildCommonHeaders(config, { includeContentType: false });
|
|
187
|
+
if (typeof process !== "undefined" && process.env?.DEBUG) {
|
|
188
|
+
logger.info(`DEBUG PIMS GET: ${url}`);
|
|
189
|
+
}
|
|
190
|
+
const response = await fetch(url, {
|
|
191
|
+
method: "GET",
|
|
192
|
+
headers,
|
|
193
|
+
...options?.signal ? { signal: options.signal } : {}
|
|
194
|
+
});
|
|
195
|
+
if (!response.ok) {
|
|
196
|
+
throw new MaestroHttpError(await buildHttpErrorDetails(response, {
|
|
197
|
+
service: "pims",
|
|
198
|
+
method: "GET",
|
|
199
|
+
endpoint: path,
|
|
200
|
+
url,
|
|
201
|
+
stage
|
|
202
|
+
}));
|
|
203
|
+
}
|
|
204
|
+
return response.json();
|
|
205
|
+
}
|
|
206
|
+
async function readOptionalJsonResponse(response) {
|
|
207
|
+
const text = await response.text();
|
|
208
|
+
return text ? JSON.parse(text) : {};
|
|
209
|
+
}
|
|
210
|
+
async function debugPimsWrite(config, path, body, method, stage) {
|
|
211
|
+
const url = buildPimsUrl(config, path);
|
|
212
|
+
const headers = buildCommonHeaders(config);
|
|
213
|
+
if (typeof process !== "undefined" && process.env?.DEBUG) {
|
|
214
|
+
logger.info(`DEBUG PIMS ${method}: ${url}`);
|
|
215
|
+
}
|
|
216
|
+
const response = await fetch(url, {
|
|
217
|
+
method,
|
|
218
|
+
headers,
|
|
219
|
+
body: JSON.stringify(body)
|
|
220
|
+
});
|
|
221
|
+
if (!response.ok) {
|
|
222
|
+
throw new MaestroHttpError(await buildHttpErrorDetails(response, {
|
|
223
|
+
service: "pims",
|
|
224
|
+
method,
|
|
225
|
+
endpoint: path,
|
|
226
|
+
url,
|
|
227
|
+
stage
|
|
228
|
+
}));
|
|
229
|
+
}
|
|
230
|
+
return readOptionalJsonResponse(response);
|
|
231
|
+
}
|
|
232
|
+
async function debugPimsPost(config, path, body, stage) {
|
|
233
|
+
return debugPimsWrite(config, path, body, "POST", stage);
|
|
234
|
+
}
|
|
235
|
+
async function debugPimsPut(config, path, body, stage) {
|
|
236
|
+
return debugPimsWrite(config, path, body, "PUT", stage);
|
|
237
|
+
}
|
|
238
|
+
async function debugPimsPatch(config, path, body, stage) {
|
|
239
|
+
return debugPimsWrite(config, path, body, "PATCH", stage);
|
|
240
|
+
}
|
|
241
|
+
async function studioWebPost(config, organizationName, path, body, extraHeaders, stage) {
|
|
242
|
+
const url = `${config.baseUrl}/${organizationName}/studio_/backend/api${path}`;
|
|
243
|
+
const headers = {
|
|
244
|
+
Authorization: `Bearer ${config.authToken}`,
|
|
245
|
+
...extraHeaders
|
|
246
|
+
};
|
|
247
|
+
if (typeof process !== "undefined" && process.env?.DEBUG) {
|
|
248
|
+
logger.info(`DEBUG STUDIO POST: ${url}`);
|
|
249
|
+
}
|
|
250
|
+
const isFormData = body instanceof FormData;
|
|
251
|
+
const response = await fetch(url, {
|
|
252
|
+
method: "POST",
|
|
253
|
+
headers: isFormData ? headers : { ...headers, "Content-Type": "application/json" },
|
|
254
|
+
body: isFormData ? body : JSON.stringify(body)
|
|
255
|
+
});
|
|
256
|
+
if (!response.ok) {
|
|
257
|
+
throw new MaestroHttpError(await buildHttpErrorDetails(response, {
|
|
258
|
+
service: "studio-web",
|
|
259
|
+
method: "POST",
|
|
260
|
+
endpoint: path,
|
|
261
|
+
url,
|
|
262
|
+
stage
|
|
263
|
+
}));
|
|
264
|
+
}
|
|
265
|
+
return response.json();
|
|
266
|
+
}
|
|
267
|
+
async function studioWebDelete(config, organizationName, path, stage) {
|
|
268
|
+
const url = `${config.baseUrl}/${organizationName}/studio_/backend/api${path}`;
|
|
269
|
+
const headers = {
|
|
270
|
+
Authorization: `Bearer ${config.authToken}`
|
|
271
|
+
};
|
|
272
|
+
if (typeof process !== "undefined" && process.env?.DEBUG) {
|
|
273
|
+
logger.info(`DEBUG STUDIO DELETE: ${url}`);
|
|
274
|
+
}
|
|
275
|
+
const response = await fetch(url, { method: "DELETE", headers });
|
|
276
|
+
if (!response.ok) {
|
|
277
|
+
throw new MaestroHttpError(await buildHttpErrorDetails(response, {
|
|
278
|
+
service: "studio-web",
|
|
279
|
+
method: "DELETE",
|
|
280
|
+
endpoint: path,
|
|
281
|
+
url,
|
|
282
|
+
stage
|
|
283
|
+
}));
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export { parseBackendErrorBody, MaestroHttpError, automationSolutionsGet, orchestratorGet, orchestratorPost, debugPimsGet, debugPimsPost, debugPimsPut, debugPimsPatch, studioWebPost, studioWebDelete };
|
|
288
|
+
|
|
289
|
+
//# debugId=4C72C920A6F1BEF764756E2164756E21
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import {
|
|
2
|
+
isRecord
|
|
3
|
+
} from "./packager-tool-8j92afwp.js";
|
|
4
|
+
import {
|
|
5
|
+
collectAgentInputLeaves,
|
|
6
|
+
isInlineAgentNodeType
|
|
7
|
+
} from "./packager-tool-6m078z5s.js";
|
|
8
|
+
import {
|
|
9
|
+
catchError
|
|
10
|
+
} from "./packager-tool-5qaxht3k.js";
|
|
11
|
+
|
|
12
|
+
// src/services/flow-eval-node-target.ts
|
|
13
|
+
function findFlowNode(flowContent, nodeId) {
|
|
14
|
+
const [parseError, parsed] = catchError(() => JSON.parse(flowContent));
|
|
15
|
+
if (parseError || !isRecord(parsed)) {
|
|
16
|
+
return { flowParsed: false };
|
|
17
|
+
}
|
|
18
|
+
const topLevel = Array.isArray(parsed.nodes) ? parsed.nodes : [];
|
|
19
|
+
const subflows = isRecord(parsed.subflows) ? Object.values(parsed.subflows) : [];
|
|
20
|
+
const nested = subflows.flatMap((subflow) => isRecord(subflow) && Array.isArray(subflow.nodes) ? subflow.nodes : []);
|
|
21
|
+
const node = [...topLevel, ...nested].find((candidate) => isRecord(candidate) && candidate.id === nodeId);
|
|
22
|
+
return { flowParsed: true, node };
|
|
23
|
+
}
|
|
24
|
+
function readAgentSourceId(node) {
|
|
25
|
+
const inputs = isRecord(node.inputs) ? node.inputs : undefined;
|
|
26
|
+
const source = inputs?.source;
|
|
27
|
+
if (typeof source !== "string") {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
const normalized = source.trim();
|
|
31
|
+
return normalized.length > 0 ? normalized : undefined;
|
|
32
|
+
}
|
|
33
|
+
function isNodeEvalTarget(node) {
|
|
34
|
+
const type = typeof node.type === "string" ? node.type.toLowerCase() : undefined;
|
|
35
|
+
return isInlineAgentNodeType(type) && readAgentSourceId(node) !== undefined;
|
|
36
|
+
}
|
|
37
|
+
var DOCUMENT_EVAL_NODE_TYPES = new Set([
|
|
38
|
+
"uipath.ixp.extract-document-builder",
|
|
39
|
+
"uipath.document.classify"
|
|
40
|
+
]);
|
|
41
|
+
function isDocumentEvalNode(node) {
|
|
42
|
+
const type = typeof node.type === "string" ? node.type.toLowerCase() : "";
|
|
43
|
+
return DOCUMENT_EVAL_NODE_TYPES.has(type);
|
|
44
|
+
}
|
|
45
|
+
function readNodeTargetId(set) {
|
|
46
|
+
if (set.target) {
|
|
47
|
+
return set.target.kind === "agentNode" ? set.target.nodeId : undefined;
|
|
48
|
+
}
|
|
49
|
+
if (set.nodeEval === true && set.targetKind === undefined) {
|
|
50
|
+
return set.selectedEntrypoint;
|
|
51
|
+
}
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
var NO_AGENT = {
|
|
55
|
+
agentFound: false,
|
|
56
|
+
inputs: [],
|
|
57
|
+
outputs: new Set
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
class FlowAgentNodeSchemaReader {
|
|
61
|
+
fs;
|
|
62
|
+
pathResolver;
|
|
63
|
+
constructor(fs, pathResolver) {
|
|
64
|
+
this.fs = fs;
|
|
65
|
+
this.pathResolver = pathResolver;
|
|
66
|
+
}
|
|
67
|
+
async read(projectPath, nodeId) {
|
|
68
|
+
const root = await this.pathResolver.resolveFlowProjectPath(projectPath);
|
|
69
|
+
const [flowError, flowFilePath] = await catchError(this.pathResolver.findFlowFile(root));
|
|
70
|
+
if (flowError || !flowFilePath) {
|
|
71
|
+
return NO_AGENT;
|
|
72
|
+
}
|
|
73
|
+
const [readError, flowContent] = await catchError(this.fs.readFile(flowFilePath, "utf-8"));
|
|
74
|
+
if (readError) {
|
|
75
|
+
return NO_AGENT;
|
|
76
|
+
}
|
|
77
|
+
const lookup = findFlowNode(String(flowContent), nodeId);
|
|
78
|
+
if (!lookup.node) {
|
|
79
|
+
return NO_AGENT;
|
|
80
|
+
}
|
|
81
|
+
const sourceId = readAgentSourceId(lookup.node);
|
|
82
|
+
if (sourceId === undefined || /[/\\.]/.test(sourceId)) {
|
|
83
|
+
return NO_AGENT;
|
|
84
|
+
}
|
|
85
|
+
const agentJsonPath = this.fs.path.join(this.fs.path.dirname(flowFilePath), sourceId, "agent.json");
|
|
86
|
+
const [agentReadError, raw] = await catchError(this.fs.readFile(agentJsonPath, "utf-8"));
|
|
87
|
+
if (agentReadError) {
|
|
88
|
+
return NO_AGENT;
|
|
89
|
+
}
|
|
90
|
+
const [parseError, agent] = catchError(() => JSON.parse(String(raw)));
|
|
91
|
+
if (parseError || !isRecord(agent)) {
|
|
92
|
+
return NO_AGENT;
|
|
93
|
+
}
|
|
94
|
+
return {
|
|
95
|
+
agentFound: true,
|
|
96
|
+
agentJsonPath,
|
|
97
|
+
inputs: collectAgentInputLeaves(agent.inputSchema),
|
|
98
|
+
outputs: readOutputKeys(agent.outputSchema)
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
function readOutputKeys(outputSchema) {
|
|
103
|
+
if (!isRecord(outputSchema) || !isRecord(outputSchema.properties)) {
|
|
104
|
+
return new Set;
|
|
105
|
+
}
|
|
106
|
+
return new Set(Object.keys(outputSchema.properties));
|
|
107
|
+
}
|
|
108
|
+
function readEvalSetScope(set) {
|
|
109
|
+
if (readNodeTargetId(set) !== undefined) {
|
|
110
|
+
return "node";
|
|
111
|
+
}
|
|
112
|
+
const kind = set.target?.kind ?? set.targetKind;
|
|
113
|
+
if (kind === "documentExtraction" || kind === "documentClassification") {
|
|
114
|
+
return "document";
|
|
115
|
+
}
|
|
116
|
+
return "flow";
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export { findFlowNode, readAgentSourceId, isNodeEvalTarget, isDocumentEvalNode, readNodeTargetId, FlowAgentNodeSchemaReader, readEvalSetScope };
|
|
120
|
+
|
|
121
|
+
//# debugId=D51E7B5AE34841EC64756E2164756E21
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import {
|
|
2
|
+
readStdin
|
|
3
|
+
} from "./packager-tool-5qaxht3k.js";
|
|
4
|
+
import {
|
|
5
|
+
getFileSystem
|
|
6
|
+
} from "./packager-tool-0v3s8r01.js";
|
|
7
|
+
|
|
8
|
+
// ../maestro-sdk/src/json-input.ts
|
|
9
|
+
async function readJsonFile(filePath) {
|
|
10
|
+
const fs = getFileSystem();
|
|
11
|
+
const resolved = fs.path.resolve(filePath);
|
|
12
|
+
if (!await fs.exists(resolved)) {
|
|
13
|
+
throw new Error(`File not found: ${resolved}`);
|
|
14
|
+
}
|
|
15
|
+
const content = await fs.readFile(resolved, "utf-8");
|
|
16
|
+
try {
|
|
17
|
+
return JSON.parse(content);
|
|
18
|
+
} catch (err) {
|
|
19
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
20
|
+
throw new Error(`Invalid JSON in '${resolved}': ${message}`);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
async function parseJsonInputOrFile(inputSource) {
|
|
24
|
+
if (inputSource.startsWith("@")) {
|
|
25
|
+
const filePath = inputSource.slice(1);
|
|
26
|
+
try {
|
|
27
|
+
return await readJsonFile(filePath);
|
|
28
|
+
} catch (err) {
|
|
29
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
30
|
+
throw new Error(`Failed to read input file '${filePath}': ${message}`);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
try {
|
|
34
|
+
return JSON.parse(inputSource);
|
|
35
|
+
} catch {
|
|
36
|
+
throw new Error(`Failed to parse inputs as JSON: ${inputSource}`);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
async function resolveJsonInput(opts) {
|
|
40
|
+
if (opts.inline !== undefined && opts.inline !== "") {
|
|
41
|
+
return parseJsonInputOrFile(opts.inline);
|
|
42
|
+
}
|
|
43
|
+
if (opts.allowStdin) {
|
|
44
|
+
const stdinData = await readStdin();
|
|
45
|
+
if (stdinData) {
|
|
46
|
+
return parseJsonInputOrFile(stdinData);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export { parseJsonInputOrFile, resolveJsonInput };
|
|
53
|
+
|
|
54
|
+
//# debugId=DFD3DCFE2F7E23A764756E2164756E21
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import {
|
|
2
|
+
catchError
|
|
3
|
+
} from "./packager-tool-5qaxht3k.js";
|
|
4
|
+
|
|
5
|
+
// src/services/flow-eval-file-store.ts
|
|
6
|
+
async function ensureDirectory(fs, path) {
|
|
7
|
+
if (await fs.exists(path)) {
|
|
8
|
+
return;
|
|
9
|
+
}
|
|
10
|
+
const parent = fs.path.dirname(path);
|
|
11
|
+
if (parent && parent !== path && !await fs.exists(parent)) {
|
|
12
|
+
await ensureDirectory(fs, parent);
|
|
13
|
+
}
|
|
14
|
+
const [error] = await catchError(fs.mkdir(path));
|
|
15
|
+
if (error && !await fs.exists(path)) {
|
|
16
|
+
throw error;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
class FlowEvalFileStore {
|
|
21
|
+
fs;
|
|
22
|
+
constructor(fs) {
|
|
23
|
+
this.fs = fs;
|
|
24
|
+
}
|
|
25
|
+
async readJsonFiles(dir) {
|
|
26
|
+
const [readDirError, files] = await catchError(this.fs.readdir(dir));
|
|
27
|
+
if (readDirError) {
|
|
28
|
+
return [];
|
|
29
|
+
}
|
|
30
|
+
const items = [];
|
|
31
|
+
for (const file of files) {
|
|
32
|
+
if (!file.endsWith(".json")) {
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
const filePath = this.fs.path.join(dir, file);
|
|
36
|
+
const [readError, raw] = await catchError(this.fs.readFile(filePath, "utf-8"));
|
|
37
|
+
if (readError) {
|
|
38
|
+
throw new Error(`Failed to read JSON file "${filePath}": ${readError.message}`);
|
|
39
|
+
}
|
|
40
|
+
if (raw === null) {
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
const [parseError, data] = catchError(() => JSON.parse(String(raw)));
|
|
44
|
+
if (parseError) {
|
|
45
|
+
throw new Error(`Invalid JSON in "${filePath}": ${parseError.message}`);
|
|
46
|
+
}
|
|
47
|
+
data.fileName = file;
|
|
48
|
+
items.push(data);
|
|
49
|
+
}
|
|
50
|
+
return items;
|
|
51
|
+
}
|
|
52
|
+
async writeJsonFile(path, value) {
|
|
53
|
+
await ensureDirectory(this.fs, this.fs.path.dirname(path));
|
|
54
|
+
await this.fs.writeFile(path, `${JSON.stringify(value, null, 2)}
|
|
55
|
+
`);
|
|
56
|
+
}
|
|
57
|
+
async remove(path) {
|
|
58
|
+
await this.fs.rm(path);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export { ensureDirectory, FlowEvalFileStore };
|
|
63
|
+
|
|
64
|
+
//# debugId=2DF0307602E51A6664756E2164756E21
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// ../../node_modules/@uipath/flow-expression-model/dist/chunk-27WH2HMG.js
|
|
2
|
+
var expressionDiagnostic_dollarHint_replacement = ". Use `$vars.<name>`, `$self.<field>`, or another defined variable.";
|
|
3
|
+
var schemaPanel_arrayItemType_description = "Array item type";
|
|
4
|
+
var scopeService_outputDescription_fallback = "Output from {{nodeLabel}}";
|
|
5
|
+
var scopeService_variableName_containsDotsError = "Variable name cannot contain dots";
|
|
6
|
+
var scopeService_variableName_containsSpacesError = "Variable name cannot contain spaces";
|
|
7
|
+
var scopeService_variableName_invalidCharactersError = "Variable name must contain only letters, numbers, and underscores";
|
|
8
|
+
var scopeService_variableName_reservedWordError = '"{{name}}" is a reserved word';
|
|
9
|
+
var scopeService_variableName_startsWithNumberError = "Variable name cannot start with a number";
|
|
10
|
+
var validation_expression_fileExpected_message = "This value must be a file. To use a remote file, download the file first with an action that outputs a file, then reference that output.";
|
|
11
|
+
var en_default = {
|
|
12
|
+
expressionDiagnostic_dollarHint_replacement,
|
|
13
|
+
schemaPanel_arrayItemType_description,
|
|
14
|
+
scopeService_outputDescription_fallback,
|
|
15
|
+
scopeService_variableName_containsDotsError,
|
|
16
|
+
scopeService_variableName_containsSpacesError,
|
|
17
|
+
scopeService_variableName_invalidCharactersError,
|
|
18
|
+
scopeService_variableName_reservedWordError,
|
|
19
|
+
scopeService_variableName_startsWithNumberError,
|
|
20
|
+
validation_expression_fileExpected_message
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
export { expressionDiagnostic_dollarHint_replacement, schemaPanel_arrayItemType_description, scopeService_outputDescription_fallback, scopeService_variableName_containsDotsError, scopeService_variableName_containsSpacesError, scopeService_variableName_invalidCharactersError, scopeService_variableName_reservedWordError, scopeService_variableName_startsWithNumberError, validation_expression_fileExpected_message, en_default };
|
|
24
|
+
|
|
25
|
+
//# debugId=B4EDE4DF5DC0FCCF64756E2164756E21
|
|
@@ -1,28 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
VALID_PROJECT_NAME_REGEX,
|
|
3
|
-
nodeModuleRegistry,
|
|
4
|
-
writeFlowWorkflow
|
|
5
|
-
} from "./packager-tool-3y0k15sv.js";
|
|
6
1
|
import {
|
|
7
2
|
prepareProjectLocation,
|
|
8
3
|
tryRegisterProjectInParentSolution
|
|
9
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-eebq62fq.js";
|
|
5
|
+
import {
|
|
6
|
+
writeFlowWorkflow
|
|
7
|
+
} from "./packager-tool-94w17vf8.js";
|
|
8
|
+
import {
|
|
9
|
+
createWorkflow
|
|
10
|
+
} from "./packager-tool-tn5e7wnb.js";
|
|
11
|
+
import {
|
|
12
|
+
VALID_PROJECT_NAME_REGEX
|
|
13
|
+
} from "./packager-tool-eypvc2kv.js";
|
|
10
14
|
import {
|
|
11
15
|
catchError
|
|
12
|
-
} from "./packager-tool-
|
|
16
|
+
} from "./packager-tool-5qaxht3k.js";
|
|
13
17
|
import {
|
|
14
18
|
getFileSystem
|
|
15
|
-
} from "./packager-tool-
|
|
19
|
+
} from "./packager-tool-0v3s8r01.js";
|
|
16
20
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./packager-tool-
|
|
21
|
+
nodeModuleRegistry
|
|
22
|
+
} from "./packager-tool-p9stswjj.js";
|
|
19
23
|
import {
|
|
20
24
|
__require
|
|
21
|
-
} from "./packager-tool-
|
|
25
|
+
} from "./packager-tool-1yh8g550.js";
|
|
22
26
|
|
|
23
27
|
// src/services/project-artifacts.ts
|
|
24
28
|
async function ensureProjectArtifacts(args) {
|
|
25
|
-
const { addProjectArtifactsToSolutionAsync } = await import("./index-
|
|
29
|
+
const { addProjectArtifactsToSolutionAsync } = await import("./index-w0z4s69j.js");
|
|
26
30
|
return addProjectArtifactsToSolutionAsync(args);
|
|
27
31
|
}
|
|
28
32
|
|
|
@@ -105,4 +109,4 @@ async function maybeGenerateProjectArtifacts(registration, projectName) {
|
|
|
105
109
|
|
|
106
110
|
export { flowInitAsync };
|
|
107
111
|
|
|
108
|
-
//# debugId=
|
|
112
|
+
//# debugId=EBC554606544E02D64756E2164756E21
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// ../../node_modules/@uipath/flow-
|
|
1
|
+
// ../../node_modules/@uipath/flow-expression-model/dist/chunk-QKQ47GQZ.js
|
|
2
2
|
var __glob = (map) => (path) => {
|
|
3
3
|
var fn = map[path];
|
|
4
4
|
if (fn)
|
|
@@ -8,4 +8,4 @@ var __glob = (map) => (path) => {
|
|
|
8
8
|
|
|
9
9
|
export { __glob };
|
|
10
10
|
|
|
11
|
-
//# debugId=
|
|
11
|
+
//# debugId=9F7CA621D9317B9F64756E2164756E21
|