@uipath/maestro-tool 1.202.2 → 1.203.0-preview.180
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 +8 -0
- package/dist/THIRD-PARTY-NOTICES.md +83 -290
- package/dist/{authoring-818595dq.js → authoring-at68vr5g.js} +7 -5
- package/dist/{authoring-6r3wx3fa.js → authoring-sh284a0x.js} +3 -3
- package/dist/{authoring-61hqf5em.js → authoring-szfy0rh1.js} +5 -5
- package/dist/{binding-service-643e69bb.js → binding-service-8a05gy4k.js} +37 -29
- package/dist/{bpmn-action-type-validator-kx36sqhe.js → bpmn-action-type-validator-8kvyvvcf.js} +2 -2
- package/dist/bpmn-binding-resolver-5scq28mc.js +145 -0
- package/dist/{bpmn-branch-y1m9f10n.js → bpmn-branch-t12a7jvf.js} +50 -44
- package/dist/bpmn-format-service-ay6jd9he.js +69 -0
- package/dist/{bpmn-refresh-service-ew545y06.js → bpmn-refresh-service-ak1ctkwg.js} +4 -4
- package/dist/{bpmn-update-metadata-service-jhahhjab.js → bpmn-update-metadata-service-hqe4edze.js} +6 -5
- package/dist/{bpmn-validate-service-6z2dj8ac.js → bpmn-validate-service-48sfy3a2.js} +3 -3
- package/dist/{case-api-4mstfkzf.js → case-api-e3fmq685.js} +6 -6
- package/dist/case-bindings-service-nswc6v0v.js +240 -0
- package/dist/case-debug-studio-web-service-58gtqznh.js +135 -0
- package/dist/case-format-service-6s5e1ckk.js +84 -0
- package/dist/{case-pack-service-v7wtb0qt.js → case-pack-service-sg435he1.js} +62 -11
- package/dist/{case-validate-service-bnpaf0zt.js → case-validate-service-7s69shsa.js} +1424 -42
- package/dist/{connector-enrichment-service-scrqnke3.js → connector-enrichment-service-9rqr3esj.js} +27 -26
- package/dist/{connector-lookup-service-hnk08t3m.js → connector-lookup-service-pencasp9.js} +5 -5
- package/dist/{connector-service-581bhxaj.js → connector-service-k4cgcv2b.js} +224 -56
- package/dist/{connector-task-spec-y2tcthz5.js → connector-task-spec-13ex0x0m.js} +27 -26
- package/dist/{conversion-FQTRFHRX-03xh3xbp.js → conversion-FQTRFHRX-0y9br7gw.js} +6 -5
- package/dist/de-FGHEJRCI-gn4cf5gh.js +2697 -0
- package/dist/de-MUJPA4EB-dpg7t2rw.js +173 -0
- package/dist/{debug-conversation-trigger-nj04k7s2.js → debug-conversation-trigger-wgzjaasj.js} +17 -14
- package/dist/{debug-http-client-c4teyma3.js → debug-http-client-7dvbwp96.js} +2 -2
- package/dist/{debug-service-m5jdyz3q.js → debug-service-8cwxhgww.js} +3 -3
- package/dist/{edge-service-vv2yfsn4.js → edge-service-szpsaezp.js} +17 -14
- package/dist/{index-yqfqxh2r.js → embedded-file-reader-0sjt4nkj.js} +96 -16641
- package/dist/{en-TBNO2WUV-rfe87pgh.js → en-BWGKA5OE-1qkvb9rn.js} +2 -2
- package/dist/en-FBPVNKFN-dqt573xn.js +138 -0
- package/dist/en-TBNO2WUV-9nan43e5.js +1936 -0
- package/dist/{enrichment-service-a65qt7y1.js → enrichment-service-7n1tf75p.js} +4 -4
- package/dist/es-7SE7HX2X-8yh1aj2y.js +173 -0
- package/dist/es-KR3ZSNMP-0cszm2n3.js +2697 -0
- package/dist/es-MX-2MYFZU7X-3rek4r73.js +173 -0
- package/dist/es-MX-XXZJGC4R-b4fbwe9d.js +2697 -0
- package/dist/first-party-service-srxaftkn.js +27 -0
- package/dist/{flow-api-vqvvs0q2.js → flow-api-4vkpbmt3.js} +7 -7
- package/dist/{flow-debug-service-vd7bdyhg.js → flow-debug-service-9tad5ckh.js} +66 -41
- package/dist/{flow-eval-node-target-mve3v55h.js → flow-eval-node-target-g222rh2e.js} +22 -15
- package/dist/flow-eval-run-api-hashjgq1.js +13 -0
- package/dist/{flow-eval-run-service-rt9kg4wx.js → flow-eval-run-service-btghb02r.js} +109 -224
- package/dist/{flow-eval-service-ededh59n.js → flow-eval-service-ma5psrsd.js} +346 -302
- package/dist/{flow-init-service-4ve9tr0t.js → flow-init-service-662zhfd3.js} +22 -18
- package/dist/{flow-io-2dd3sx38.js → flow-io-3cqz0svg.js} +16 -13
- package/dist/{flow-migrate-service-nbe6et60.js → flow-migrate-service-ehx7nmsr.js} +18 -14
- package/dist/{flow-pack-service-b2n877d8.js → flow-pack-service-a3w3489r.js} +43 -35
- package/dist/flow-validate-service-02e21w4d.js +3555 -0
- package/dist/fr-MDFKNZ4C-h4a122k9.js +173 -0
- package/dist/fr-Y6NPVODW-q5ef3htr.js +2697 -0
- package/dist/{governance-fetcher-at165287.js → governance-fetcher-7vxmap1e.js} +5 -4
- package/dist/{headless-85f2cys0.js → headless-627q5my5.js} +42909 -1756
- package/dist/{hitl-service-xn1bt80z.js → hitl-service-fn94tk6z.js} +16 -13
- package/dist/{index-hfsfzg4k.js → index-3arytfxn.js} +6 -4
- package/dist/{index-d1yqqk6q.js → index-55cym5j7.js} +6 -4
- package/dist/{index-0j6xww0f.js → index-9f94yk28.js} +3 -3
- package/dist/{index-1kgxzh8x.js → index-fz4ttsde.js} +14 -2
- package/dist/index-gvwc29bb.js +16742 -0
- package/dist/{index-mkgrn150.js → index-j1azsfr5.js} +36 -33
- package/dist/index-kmp9fmhb.js +25 -0
- package/dist/{index-938ee96p.js → index-rtg24r4x.js} +1 -1
- package/dist/index-tzccx5ym.js +2961 -0
- package/dist/{index-acd6bpqc.js → index-ymsd3pyx.js} +12 -15
- package/dist/index.js +3 -3
- package/dist/{input-reader-1wda1a2v.js → input-reader-7pzkcw6t.js} +1 -1
- package/dist/{input-reader-svafwk7x.js → input-reader-j8rvde4z.js} +1 -1
- package/dist/ja-Q5PXKJ2V-tzf2rvz2.js +2697 -0
- package/dist/ja-UTQEAP34-8e0q6swp.js +173 -0
- package/dist/known-types-8dhhqk35.js +19 -0
- package/dist/ko-AXCHW2OK-askct7f6.js +173 -0
- package/dist/ko-AYBDSRZG-am0h0m2r.js +2697 -0
- package/dist/{maestro-automate-entry-gwntzkvj.js → maestro-automate-entry-jehpbg37.js} +2 -2
- package/dist/{maestro-debug-service-dvh7qbx8.js → maestro-debug-service-xhtszkrc.js} +10 -10
- package/dist/{maestro-pack-service-fam5zdm3.js → maestro-pack-service-fkkc5g3v.js} +12 -6
- package/dist/{node-ks3095fb.js → node-p4bde6qy.js} +2344 -376
- package/dist/node-service-frvz67y3.js +83 -0
- package/dist/{node-sync-service-zwvm30qg.js → node-sync-service-wa2t7c65.js} +14 -14
- package/dist/{packager-tool-me5q0naa.js → packager-tool-095jzn8v.js} +16 -6
- package/dist/{packager-tool-y5f2qhfe.js → packager-tool-19030vpg.js} +32 -2
- package/dist/{packager-tool-gtqkcj4x.js → packager-tool-2c1rbj85.js} +310 -13
- package/dist/packager-tool-2q1mffef.js +261 -0
- package/dist/{flow-validate-service-0hxf5080.js → packager-tool-2xrng5ff.js} +1956 -3065
- package/dist/{packager-tool-8dgxmjzx.js → packager-tool-30ky51ca.js} +6 -3
- package/dist/{packager-tool-d5mjdpbf.js → packager-tool-4r35ye9r.js} +5 -4
- package/dist/packager-tool-53w8skv5.js +262 -0
- package/dist/{packager-tool-db4jm1rz.js → packager-tool-56gcg9de.js} +1 -1
- package/dist/{packager-tool-29eg86w6.js → packager-tool-6rsegsby.js} +6 -7
- package/dist/packager-tool-7msx23gd.js +13 -0
- package/dist/packager-tool-7q6z6npd.js +1937 -0
- package/dist/packager-tool-8qp60s20.js +12 -0
- package/dist/{packager-tool-s1r7krkp.js → packager-tool-9pccpz3r.js} +1 -1
- package/dist/{packager-tool-m351tkkr.js → packager-tool-c95fhhys.js} +30 -8
- package/dist/{packager-tool-kg5sxneg.js → packager-tool-cmzzh4f8.js} +72 -73
- package/dist/{packager-tool-ffvmys2r.js → packager-tool-cr0z8cbj.js} +5 -5
- package/dist/{packager-tool-8fkt71n4.js → packager-tool-cs1ec1da.js} +4 -3
- package/dist/{packager-tool-xatnrtwp.js → packager-tool-d2813z49.js} +9 -9
- package/dist/packager-tool-d88rqwk8.js +135 -0
- package/dist/{packager-tool-pm3qh1hy.js → packager-tool-dh5nppv4.js} +1 -1
- package/dist/packager-tool-dqxz5v18.js +486 -0
- package/dist/{packager-tool-r87gxwqa.js → packager-tool-e87tzg4y.js} +2 -2
- package/dist/{packager-tool-w9fd7vzs.js → packager-tool-f33sg3vr.js} +9 -9
- package/dist/{packager-tool-cj2ka9jr.js → packager-tool-fer9mdsq.js} +2 -2
- package/dist/{packager-tool-70eh7rpg.js → packager-tool-fm67whdy.js} +23 -5
- package/dist/packager-tool-fq7wtkd3.js +21012 -0
- package/dist/packager-tool-fvm2dddf.js +6297 -0
- package/dist/packager-tool-gdtpsdn7.js +342 -0
- package/dist/{packager-tool-ejyeka5x.js → packager-tool-gpwec9sp.js} +2 -2
- package/dist/{packager-tool-pap09zfh.js → packager-tool-h8x54cvx.js} +1 -1
- package/dist/{packager-tool-9vh3df76.js → packager-tool-hdmhxdch.js} +7 -7
- package/dist/packager-tool-hnyecbk6.js +88 -0
- package/dist/{packager-tool-mtbak8t4.js → packager-tool-j00gcgbs.js} +2 -2
- package/dist/packager-tool-j78fwwhq.js +16 -0
- package/dist/packager-tool-jysvpt8p.js +11 -0
- package/dist/{packager-tool-jfv7t0c8.js → packager-tool-kb554twx.js} +94 -94
- package/dist/{packager-tool-k4x5yn3p.js → packager-tool-khm7zsm8.js} +4 -1
- package/dist/packager-tool-kj0qc4f4.js +269 -0
- package/dist/{packager-tool-12636p2y.js → packager-tool-mcjjj1hk.js} +4 -4
- package/dist/{packager-tool-bftjhmqz.js → packager-tool-mfrdmqmt.js} +124 -2
- package/dist/{packager-tool-qgh5yaeh.js → packager-tool-mj89jhvb.js} +1 -1
- package/dist/{packager-tool-ve35117x.js → packager-tool-mjz4hma1.js} +5791 -176
- package/dist/packager-tool-paq9c70w.js +1332 -0
- package/dist/{packager-tool-d8v984ah.js → packager-tool-q2gwvnf5.js} +15 -56
- package/dist/{packager-tool-nmznynbj.js → packager-tool-qff6ang6.js} +1 -1
- package/dist/{packager-tool-j79gbsee.js → packager-tool-rg5pkkf0.js} +6 -6
- package/dist/{packager-tool-7309ymg1.js → packager-tool-s1466723.js} +10 -13
- package/dist/{packager-tool-54b4v7wp.js → packager-tool-te6rrpsz.js} +205 -195
- package/dist/packager-tool-vcjq9xkc.js +1895 -0
- package/dist/{packager-tool-w20r6n9v.js → packager-tool-vck7ct1e.js} +2877 -2221
- package/dist/{packager-tool-e8td7b01.js → packager-tool-vdc8r21p.js} +10328 -16610
- package/dist/{packager-tool-nxw5yzs7.js → packager-tool-vqcnvaae.js} +1 -1
- package/dist/{packager-tool-7rz102fw.js → packager-tool-wd01egnx.js} +1 -1
- package/dist/{packager-tool-gxqd24n0.js → packager-tool-wger1vt9.js} +7 -7
- package/dist/{packager-tool-a6yfnjgx.js → packager-tool-wynrdnqj.js} +1 -1
- package/dist/packager-tool-x0eamrk4.js +104577 -0
- package/dist/packager-tool-x92czn5x.js +208 -0
- package/dist/{packager-tool-am67sn1c.js → packager-tool-xtkgeccn.js} +1 -1
- package/dist/packager-tool-y59jhapb.js +10369 -0
- package/dist/{packager-tool-317z6dc1.js → packager-tool-ydg78w9z.js} +23 -23
- package/dist/{packager-tool-rr8hveb9.js → packager-tool-ygrrb1zh.js} +1 -1
- package/dist/{packager-tool-f0kd5kq4.js → packager-tool-yrsrzz1a.js} +127 -12
- package/dist/{packager-tool-d9dpx9wn.js → packager-tool-z185rq2a.js} +1 -1
- package/dist/{packager-tool-79gws1zn.js → packager-tool-z6nkdv48.js} +270 -24
- package/dist/{packager-tool-802qm7jy.js → packager-tool-zzxt99e4.js} +3 -3
- package/dist/packager-tool.js +75 -218
- package/dist/{project-artifacts-9z7atbk7.js → project-artifacts-h5cydk2n.js} +1 -1
- package/dist/{project-validator-0rkrfmj0.js → project-validator-ek97s27p.js} +1 -1
- package/dist/pt-3DIO5QWG-59b3f4bc.js +173 -0
- package/dist/pt-BR-TKHNHMET-dn6zxk1d.js +2697 -0
- package/dist/pt-BR-Y6K6XHXK-mp3hwhw1.js +173 -0
- package/dist/pt-ROXU257Y-yd80gx6s.js +2697 -0
- package/dist/{resourcesSyncService-3pajvveg.js → resourcesSyncService-7s92g1hm.js} +28 -27
- package/dist/ro-AVAWPKOO-42m6am1w.js +2697 -0
- package/dist/ro-BWR3ONRR-vzx3hy8a.js +173 -0
- package/dist/ru-GSCT4ARZ-jrxwev63.js +10 -0
- package/dist/ru-WBLQ5B2U-s4em88p0.js +10 -0
- package/dist/sdd-lookup-7h7j2h6v.js +48 -0
- package/dist/{serialization-BXU6AKAN-dk0sqx89.js → serialization-BXU6AKAN-0ghhrsja.js} +6 -5
- package/dist/{shared-utils-twgpb9ax.js → shared-utils-6z7gnnc8.js} +1 -1
- package/dist/{strict-case-rules-zxnq80zm.js → strict-case-rules-byym8cvc.js} +141 -109
- package/dist/strict-sdd-audit-v156c9e3.js +2520 -0
- package/dist/tidy-service-zyy7wxc0.js +39 -0
- package/dist/{tool-pxfafj3m.js → tool-dejjyv8m.js} +213 -51
- package/dist/{tool-td30zmyt.js → tool-v0r5qzcc.js} +106 -146
- package/dist/tool.js +3 -3
- package/dist/tr-5IIHSFW5-hw4cewew.js +173 -0
- package/dist/tr-JMIP7ZSL-fb67ft9w.js +2696 -0
- package/dist/{trigger-enrichment-service-t3wcd12r.js → trigger-enrichment-service-ak1nrz5t.js} +30 -29
- package/dist/{variable-service-2q705dsx.js → variable-service-t9gsp8xs.js} +16 -13
- package/dist/{wait-for-flow-job-sx0ht8sb.js → wait-for-flow-job-1s8ka07s.js} +7 -7
- package/dist/{xml-949787yf.js → xml-3rzcgm9z.js} +1359 -659
- package/dist/zh-CN-IFFXSEJS-tke4mzty.js +2697 -0
- package/dist/zh-CN-R2KU4U5L-tc1hat59.js +173 -0
- package/dist/zh-TW-GNKMELBF-j674515r.js +173 -0
- package/dist/zh-TW-IYBNYAMG-wcan0qpb.js +2697 -0
- package/package.json +3 -2
- package/dist/bpmn-format-service-r67afbny.js +0 -477
- package/dist/case-debug-studio-web-service-kj1797m8.js +0 -336
- package/dist/known-types-eq32py2n.js +0 -20
- package/dist/node-service-teagjd9n.js +0 -75
- package/dist/packager-tool-15bstxb6.js +0 -4192
- package/dist/packager-tool-1zpm7wts.js +0 -7217
- package/dist/packager-tool-7tjxtpfp.js +0 -106
- package/dist/packager-tool-ckhyvcn5.js +0 -58
- package/dist/packager-tool-dz506qqq.js +0 -2120
- package/dist/packager-tool-hpc2j0zw.js +0 -27
- package/dist/packager-tool-jjpc0yka.js +0 -304
- package/dist/packager-tool-xtv236p7.js +0 -73
- package/dist/strict-sdd-audit-zc0n5vj6.js +0 -1024
- package/dist/tidy-service-hc9gex0v.js +0 -36
- /package/dist/{localization-xecwjpe2.js → localization-y790z9vm.js} +0 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import {
|
|
2
|
+
NodeTypeNotEnabledError,
|
|
3
|
+
NodeTypeNotFoundError,
|
|
4
|
+
PROCESS_NODE_PREFIXES,
|
|
5
|
+
SourceRequiredError,
|
|
6
|
+
addNodeToFlow,
|
|
7
|
+
collectNodeBindingResourceKeys,
|
|
8
|
+
deleteNodeFromFlow,
|
|
9
|
+
ensureProcessBindings,
|
|
10
|
+
isProcessNode,
|
|
11
|
+
listNodesInFlow,
|
|
12
|
+
resolveProcessTarget,
|
|
13
|
+
resolveProcessTargetKey
|
|
14
|
+
} from "./packager-tool-q2gwvnf5.js";
|
|
15
|
+
import"./packager-tool-mfrdmqmt.js";
|
|
16
|
+
import"./packager-tool-7msx23gd.js";
|
|
17
|
+
import"./packager-tool-2xrng5ff.js";
|
|
18
|
+
import"./packager-tool-dqxz5v18.js";
|
|
19
|
+
import"./packager-tool-d2813z49.js";
|
|
20
|
+
import"./packager-tool-9pccpz3r.js";
|
|
21
|
+
import"./packager-tool-zzxt99e4.js";
|
|
22
|
+
import"./packager-tool-cr0z8cbj.js";
|
|
23
|
+
import"./packager-tool-ygrrb1zh.js";
|
|
24
|
+
import"./packager-tool-eypvc2kv.js";
|
|
25
|
+
import"./packager-tool-ydg78w9z.js";
|
|
26
|
+
import"./packager-tool-8qp60s20.js";
|
|
27
|
+
import"./packager-tool-fq7wtkd3.js";
|
|
28
|
+
import"./packager-tool-dh5nppv4.js";
|
|
29
|
+
import"./packager-tool-vck7ct1e.js";
|
|
30
|
+
import"./packager-tool-paq9c70w.js";
|
|
31
|
+
import"./packager-tool-4r35ye9r.js";
|
|
32
|
+
import"./packager-tool-yrsrzz1a.js";
|
|
33
|
+
import"./packager-tool-0gctz400.js";
|
|
34
|
+
import"./packager-tool-qa9gftnj.js";
|
|
35
|
+
import"./packager-tool-yc4kw997.js";
|
|
36
|
+
import"./packager-tool-095jzn8v.js";
|
|
37
|
+
import"./packager-tool-mj89jhvb.js";
|
|
38
|
+
import"./packager-tool-kb554twx.js";
|
|
39
|
+
import"./packager-tool-h8x54cvx.js";
|
|
40
|
+
import"./packager-tool-te6rrpsz.js";
|
|
41
|
+
import"./packager-tool-6rsegsby.js";
|
|
42
|
+
import"./packager-tool-wd01egnx.js";
|
|
43
|
+
import"./packager-tool-2513jrxr.js";
|
|
44
|
+
import"./packager-tool-khm7zsm8.js";
|
|
45
|
+
import"./packager-tool-vcjq9xkc.js";
|
|
46
|
+
import"./packager-tool-b803sdfp.js";
|
|
47
|
+
import"./packager-tool-nkrmjr3a.js";
|
|
48
|
+
import"./packager-tool-rs6jm14d.js";
|
|
49
|
+
import"./packager-tool-hk1gxnth.js";
|
|
50
|
+
import"./packager-tool-7q6z6npd.js";
|
|
51
|
+
import"./packager-tool-sc961w0q.js";
|
|
52
|
+
import"./packager-tool-gpwec9sp.js";
|
|
53
|
+
import"./packager-tool-vqcnvaae.js";
|
|
54
|
+
import"./packager-tool-gbgfwx8f.js";
|
|
55
|
+
import"./packager-tool-d88rqwk8.js";
|
|
56
|
+
import"./packager-tool-jysvpt8p.js";
|
|
57
|
+
import"./packager-tool-fvm2dddf.js";
|
|
58
|
+
import"./packager-tool-p79yh9ww.js";
|
|
59
|
+
import"./packager-tool-vdc8r21p.js";
|
|
60
|
+
import"./packager-tool-z83pga0z.js";
|
|
61
|
+
import"./packager-tool-6ejqwbw9.js";
|
|
62
|
+
import"./packager-tool-mcaf4ewf.js";
|
|
63
|
+
import"./packager-tool-z6nkdv48.js";
|
|
64
|
+
import"./packager-tool-0v3s8r01.js";
|
|
65
|
+
import"./packager-tool-4mna26cc.js";
|
|
66
|
+
import"./packager-tool-c23zrhj8.js";
|
|
67
|
+
import"./packager-tool-1yh8g550.js";
|
|
68
|
+
export {
|
|
69
|
+
NodeTypeNotEnabledError,
|
|
70
|
+
NodeTypeNotFoundError,
|
|
71
|
+
PROCESS_NODE_PREFIXES,
|
|
72
|
+
SourceRequiredError,
|
|
73
|
+
addNodeToFlow,
|
|
74
|
+
collectNodeBindingResourceKeys,
|
|
75
|
+
deleteNodeFromFlow,
|
|
76
|
+
ensureProcessBindings,
|
|
77
|
+
isProcessNode,
|
|
78
|
+
listNodesInFlow,
|
|
79
|
+
resolveProcessTarget,
|
|
80
|
+
resolveProcessTargetKey
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
//# debugId=D826C1461EE16A0964756E2164756E21
|
|
@@ -7,25 +7,25 @@ import {
|
|
|
7
7
|
searchNodeSummariesWithAvailability,
|
|
8
8
|
searchNodes,
|
|
9
9
|
searchNodesWithFilters
|
|
10
|
-
} from "./packager-tool-
|
|
11
|
-
import"./packager-tool-
|
|
12
|
-
import"./packager-tool-
|
|
13
|
-
import"./packager-tool-
|
|
14
|
-
import"./packager-tool-
|
|
15
|
-
import"./packager-tool-
|
|
10
|
+
} from "./packager-tool-ydg78w9z.js";
|
|
11
|
+
import"./packager-tool-8qp60s20.js";
|
|
12
|
+
import"./packager-tool-fq7wtkd3.js";
|
|
13
|
+
import"./packager-tool-dh5nppv4.js";
|
|
14
|
+
import"./packager-tool-vck7ct1e.js";
|
|
15
|
+
import"./packager-tool-paq9c70w.js";
|
|
16
|
+
import"./packager-tool-yrsrzz1a.js";
|
|
16
17
|
import"./packager-tool-0gctz400.js";
|
|
17
18
|
import"./packager-tool-qa9gftnj.js";
|
|
18
19
|
import"./packager-tool-yc4kw997.js";
|
|
19
|
-
import"./packager-tool-
|
|
20
|
-
import"./packager-tool-
|
|
21
|
-
import"./packager-tool-
|
|
20
|
+
import"./packager-tool-h8x54cvx.js";
|
|
21
|
+
import"./packager-tool-vcjq9xkc.js";
|
|
22
|
+
import"./packager-tool-7q6z6npd.js";
|
|
22
23
|
import"./packager-tool-sc961w0q.js";
|
|
23
|
-
import"./packager-tool-
|
|
24
|
-
import"./packager-tool-
|
|
25
|
-
import"./packager-tool-
|
|
24
|
+
import"./packager-tool-d88rqwk8.js";
|
|
25
|
+
import"./packager-tool-jysvpt8p.js";
|
|
26
|
+
import"./packager-tool-vdc8r21p.js";
|
|
27
|
+
import"./packager-tool-z6nkdv48.js";
|
|
26
28
|
import"./packager-tool-0v3s8r01.js";
|
|
27
|
-
import"./packager-tool-4mna26cc.js";
|
|
28
|
-
import"./packager-tool-c23zrhj8.js";
|
|
29
29
|
import"./packager-tool-1yh8g550.js";
|
|
30
30
|
export {
|
|
31
31
|
getNode,
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
orchestratorGet,
|
|
7
7
|
orchestratorPost,
|
|
8
8
|
studioWebPost
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-mj89jhvb.js";
|
|
10
10
|
import {
|
|
11
11
|
RESULTS,
|
|
12
12
|
catchError,
|
|
13
13
|
logger
|
|
14
|
-
} from "./packager-tool-
|
|
14
|
+
} from "./packager-tool-z6nkdv48.js";
|
|
15
15
|
|
|
16
16
|
// ../maestro-sdk/src/debug-service.ts
|
|
17
17
|
import { randomUUID } from "node:crypto";
|
|
@@ -56,7 +56,12 @@ function injectSolutionProjectProcessEntries(fpsProperties, solutionProjects) {
|
|
|
56
56
|
const entries = solutionProjects.map((project) => ({
|
|
57
57
|
name: project.name,
|
|
58
58
|
projectType: project.projectType,
|
|
59
|
-
executorInfo: JSON.stringify({
|
|
59
|
+
executorInfo: JSON.stringify(project.projectType === "Function" ? {
|
|
60
|
+
projectId: project.projectId,
|
|
61
|
+
command: "debug",
|
|
62
|
+
args: ["--attach=none"],
|
|
63
|
+
entryPoint: project.entryPoint
|
|
64
|
+
} : {
|
|
60
65
|
projectId: project.projectId,
|
|
61
66
|
debugArgs: {
|
|
62
67
|
debugMode: project.debugMode ?? DEBUG_MODE_MAP.Default,
|
|
@@ -274,6 +279,7 @@ var PIMS_TERMINAL_STATUSES = [
|
|
|
274
279
|
"Cancelled",
|
|
275
280
|
"Failed"
|
|
276
281
|
];
|
|
282
|
+
var ORCHESTRATOR_JOB_KEY = /^[0-9a-fA-F-]+$/;
|
|
277
283
|
var ORCHESTRATOR_TERMINAL_STATUSES = [
|
|
278
284
|
"Successful",
|
|
279
285
|
"Faulted",
|
|
@@ -320,6 +326,10 @@ function buildPollTimeoutFailureOutput(err, inspectCommand) {
|
|
|
320
326
|
async function pollDebugInstanceStatus(config, instanceId, callbacks, pollInterval = 2000, maxPolls = 300, jobKey) {
|
|
321
327
|
let pollCount = 0;
|
|
322
328
|
let lastStatus = "";
|
|
329
|
+
const canCheckOrchestratorJob = jobKey !== undefined && ORCHESTRATOR_JOB_KEY.test(jobKey);
|
|
330
|
+
if (jobKey !== undefined && !canCheckOrchestratorJob) {
|
|
331
|
+
logger.warn(`Skipping the Orchestrator job status fallback: "${jobKey}" is not a job key.`);
|
|
332
|
+
}
|
|
323
333
|
while (pollCount < maxPolls) {
|
|
324
334
|
const status = await debugPimsGet(config, `/api/v1/debug-instances/${instanceId}/element-executions`, "poll-instance-status");
|
|
325
335
|
if (status.status !== lastStatus) {
|
|
@@ -340,8 +350,8 @@ async function pollDebugInstanceStatus(config, instanceId, callbacks, pollInterv
|
|
|
340
350
|
logger.info(`Debug session reached terminal status: ${status.status}`);
|
|
341
351
|
return status;
|
|
342
352
|
}
|
|
343
|
-
if (
|
|
344
|
-
const [, jobResponse] = await catchError(orchestratorGet(config, `/odata/Jobs?$filter=Key eq
|
|
353
|
+
if (canCheckOrchestratorJob && pollCount > 0 && pollCount % 5 === 0) {
|
|
354
|
+
const [, jobResponse] = await catchError(orchestratorGet(config, `/odata/Jobs?$filter=Key eq ${jobKey}&$top=1`, "check-orchestrator-job-status"));
|
|
345
355
|
const jobState = jobResponse?.value?.[0]?.State;
|
|
346
356
|
if (jobState && ORCHESTRATOR_TERMINAL_STATUSES.includes(jobState)) {
|
|
347
357
|
const jobInfo = jobResponse?.value?.[0]?.Info ?? "";
|
|
@@ -599,4 +609,4 @@ async function patchConnectionOverwrites(config, organizationName, solutionId, s
|
|
|
599
609
|
|
|
600
610
|
export { FpsPropertiesInjectionError, injectInlineAgentProcessEntries, injectSolutionProjectProcessEntries, extractStartEventId, getPersonalFolderKey, getPersonalFolderInfo, prepareForCustomDebug, getFolderInfoById, beginDebugSession, DEBUG_MODE_MAP, SIMULATION_MODE_MAP, createDebugInstance, DebugPollTimeoutError, buildPollTimeoutFailureOutput, pollDebugInstanceStatus, fetchDebugInstanceIncidents, DebugVariablesFetchFailedError, fetchDebugInstanceVariables, isFaultedDebugStatus, isSuccessfulDebugStatus, resolveFaultIncidents, buildStudioWebDesignerUrl, uploadAndDebugSolution, patchConnectionOverwrites };
|
|
601
611
|
|
|
602
|
-
//# debugId=
|
|
612
|
+
//# debugId=F817DF346555CDD564756E2164756E21
|
|
@@ -49,6 +49,36 @@ function deriveOutcomeHandleIds(node) {
|
|
|
49
49
|
return [];
|
|
50
50
|
return outcomes.filter((o) => o != null && typeof o === "object" && typeof o.id === "string").map((o) => `outcome-${o.id}`);
|
|
51
51
|
}
|
|
52
|
+
function deriveHandleCustomizationSourceOverride(node) {
|
|
53
|
+
const customization = node.handleCustomization;
|
|
54
|
+
if (!customization || typeof customization !== "object")
|
|
55
|
+
return null;
|
|
56
|
+
const groups = customization.groups;
|
|
57
|
+
if (!Array.isArray(groups))
|
|
58
|
+
return null;
|
|
59
|
+
const positions = [];
|
|
60
|
+
const ids = [];
|
|
61
|
+
for (const group of groups) {
|
|
62
|
+
if (!group || typeof group !== "object")
|
|
63
|
+
continue;
|
|
64
|
+
const g = group;
|
|
65
|
+
if (typeof g.position === "string") {
|
|
66
|
+
positions.push(g.position);
|
|
67
|
+
}
|
|
68
|
+
const handles = g.handles;
|
|
69
|
+
if (!Array.isArray(handles))
|
|
70
|
+
continue;
|
|
71
|
+
for (const handle of handles) {
|
|
72
|
+
if (!handle || typeof handle !== "object")
|
|
73
|
+
continue;
|
|
74
|
+
const h = handle;
|
|
75
|
+
if (h.type === "source" && typeof h.id === "string") {
|
|
76
|
+
ids.push(h.id);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return ids.length > 0 ? { positions, sourceHandleIds: ids } : null;
|
|
81
|
+
}
|
|
52
82
|
function expandHandleIds(handle, node) {
|
|
53
83
|
if (!handle.repeat) {
|
|
54
84
|
return [handle.id];
|
|
@@ -82,6 +112,6 @@ function portMatchesTemplate(requestedPort, templateId) {
|
|
|
82
112
|
return pattern.test(requestedPort);
|
|
83
113
|
}
|
|
84
114
|
|
|
85
|
-
export { ERROR_SOURCE_PORT, enableErrorHandlingForErrorEdges, parseVisibleInputKey, isHandleVisible, deriveOutcomeHandleIds, expandHandleIds, isTemplatedHandleId, portMatchesTemplate };
|
|
115
|
+
export { ERROR_SOURCE_PORT, enableErrorHandlingForErrorEdges, parseVisibleInputKey, isHandleVisible, deriveOutcomeHandleIds, deriveHandleCustomizationSourceOverride, expandHandleIds, isTemplatedHandleId, portMatchesTemplate };
|
|
86
116
|
|
|
87
|
-
//# debugId=
|
|
117
|
+
//# debugId=2F25674933DFAE8564756E2164756E21
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
enableErrorHandlingForErrorEdges,
|
|
3
3
|
expandHandleIds
|
|
4
|
-
} from "./packager-tool-
|
|
4
|
+
} from "./packager-tool-19030vpg.js";
|
|
5
5
|
import {
|
|
6
6
|
readFlowWorkflow,
|
|
7
7
|
writeFlowWorkflow
|
|
8
|
-
} from "./packager-tool-
|
|
8
|
+
} from "./packager-tool-zzxt99e4.js";
|
|
9
9
|
import {
|
|
10
10
|
DEFAULT_LAYOUT_OPTIONS,
|
|
11
11
|
GRID_SPACING,
|
|
12
12
|
resolveHeight,
|
|
13
13
|
resolveWidth,
|
|
14
14
|
snapToGrid
|
|
15
|
-
} from "./packager-tool-
|
|
15
|
+
} from "./packager-tool-6rsegsby.js";
|
|
16
16
|
import {
|
|
17
17
|
generateNodeVariables
|
|
18
|
-
} from "./packager-tool-
|
|
18
|
+
} from "./packager-tool-vcjq9xkc.js";
|
|
19
19
|
import {
|
|
20
20
|
__require,
|
|
21
21
|
__toESM
|
|
@@ -437,11 +437,187 @@ var ElkLayoutEngine = class {
|
|
|
437
437
|
return { totalWidth: maxX - minX, totalHeight: maxY - minY, executionTime };
|
|
438
438
|
}
|
|
439
439
|
};
|
|
440
|
+
var SPINE_STRAIGHTNESS_PRIORITY = "1";
|
|
441
|
+
function findSpineEdgeIds(childIds, edges) {
|
|
442
|
+
if (childIds.length === 0 || edges.length === 0)
|
|
443
|
+
return /* @__PURE__ */ new Set;
|
|
444
|
+
const idSet = new Set(childIds);
|
|
445
|
+
const outDegree = new Map(childIds.map((id) => [id, 0]));
|
|
446
|
+
const inDegree = new Map(childIds.map((id) => [id, 0]));
|
|
447
|
+
for (const e of edges) {
|
|
448
|
+
const src = e.sources[0];
|
|
449
|
+
const tgt = e.targets[0];
|
|
450
|
+
if (!idSet.has(src) || !idSet.has(tgt) || src === tgt)
|
|
451
|
+
continue;
|
|
452
|
+
outDegree.set(src, (outDegree.get(src) ?? 0) + 1);
|
|
453
|
+
inDegree.set(tgt, (inDegree.get(tgt) ?? 0) + 1);
|
|
454
|
+
}
|
|
455
|
+
const spine = /* @__PURE__ */ new Set;
|
|
456
|
+
for (const e of edges) {
|
|
457
|
+
const src = e.sources[0];
|
|
458
|
+
const tgt = e.targets[0];
|
|
459
|
+
if (!idSet.has(src) || !idSet.has(tgt) || src === tgt)
|
|
460
|
+
continue;
|
|
461
|
+
if ((outDegree.get(src) ?? 0) === 1 && (inDegree.get(tgt) ?? 0) === 1) {
|
|
462
|
+
spine.add(e.id);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
return spine;
|
|
466
|
+
}
|
|
467
|
+
function buildTidyElkContainer(containerId, params) {
|
|
468
|
+
const directChildren = params.childrenByParent.get(containerId) ?? [];
|
|
469
|
+
const localEdges = params.edgesByParent.get(containerId) ?? [];
|
|
470
|
+
const elkChildren = directChildren.map((child) => {
|
|
471
|
+
if (child.isContainer)
|
|
472
|
+
return buildTidyElkContainer(child.id, params);
|
|
473
|
+
const oh = params.overhangById?.get(child.id);
|
|
474
|
+
return {
|
|
475
|
+
id: child.id,
|
|
476
|
+
width: child.width + (oh?.left ?? 0) + (oh?.right ?? 0),
|
|
477
|
+
height: child.height + (oh?.top ?? 0) + (oh?.bottom ?? 0)
|
|
478
|
+
};
|
|
479
|
+
});
|
|
480
|
+
const spineEdgeIds = findSpineEdgeIds(directChildren.map((c) => c.id), localEdges);
|
|
481
|
+
const annotatedEdges = localEdges.map((e) => spineEdgeIds.has(e.id) ? { ...e, layoutOptions: { ...e.layoutOptions, "org.eclipse.elk.layered.priority.straightness": SPINE_STRAIGHTNESS_PRIORITY } } : e);
|
|
482
|
+
return {
|
|
483
|
+
id: containerId,
|
|
484
|
+
width: params.fit.minWidth,
|
|
485
|
+
height: params.fit.minHeight,
|
|
486
|
+
layoutOptions: {
|
|
487
|
+
"elk.algorithm": "layered",
|
|
488
|
+
"elk.direction": params.direction,
|
|
489
|
+
"elk.padding": params.fit.elkPadding,
|
|
490
|
+
"elk.spacing.nodeNode": String(params.nodeSpacing),
|
|
491
|
+
"elk.layered.spacing.nodeNodeBetweenLayers": String(params.layerSpacing),
|
|
492
|
+
"elk.layered.nodePlacement.strategy": "BRANDES_KOEPF",
|
|
493
|
+
"elk.layered.nodePlacement.bk.fixedAlignment": "BALANCED",
|
|
494
|
+
"elk.layered.considerModelOrder.strategy": "NODES_AND_EDGES",
|
|
495
|
+
"elk.layered.crossingMinimization.forceNodeModelOrder": "true",
|
|
496
|
+
...params.orthogonalRouting ? { "elk.edgeRouting": "ORTHOGONAL" } : {},
|
|
497
|
+
"elk.hierarchyHandling": "SEPARATE_CHILDREN",
|
|
498
|
+
"elk.nodeSize.constraints": "MINIMUM_SIZE",
|
|
499
|
+
"elk.nodeSize.minimum": `(${params.fit.minWidth},${params.fit.minHeight})`
|
|
500
|
+
},
|
|
501
|
+
children: elkChildren,
|
|
502
|
+
edges: annotatedEdges
|
|
503
|
+
};
|
|
504
|
+
}
|
|
505
|
+
function clamp(value, lo, hi) {
|
|
506
|
+
if (hi < lo)
|
|
507
|
+
return lo;
|
|
508
|
+
return Math.min(hi, Math.max(lo, value));
|
|
509
|
+
}
|
|
510
|
+
function applyTidyContainerLayout(node, updates, containerOffsets, params) {
|
|
511
|
+
const { fit } = params;
|
|
512
|
+
const horizontal = params.direction === "RIGHT" || params.direction === "LEFT";
|
|
513
|
+
const children = node.children ?? [];
|
|
514
|
+
const isContainerElkNode = node.layoutOptions !== undefined;
|
|
515
|
+
if (children.length === 0) {
|
|
516
|
+
if (isContainerElkNode) {
|
|
517
|
+
const w = params.snapUp(Math.max(fit.minWidth, node.width ?? 0));
|
|
518
|
+
const h = params.snapUp(Math.max(fit.minHeight, node.height ?? 0));
|
|
519
|
+
updates.set(node.id, { width: w, height: h });
|
|
520
|
+
return { width: w, height: h };
|
|
521
|
+
}
|
|
522
|
+
return { width: node.width ?? params.defaultNodeSize, height: node.height ?? params.defaultNodeSize };
|
|
523
|
+
}
|
|
524
|
+
const childSizes = /* @__PURE__ */ new Map;
|
|
525
|
+
for (const child of children) {
|
|
526
|
+
childSizes.set(child.id, applyTidyContainerLayout(child, updates, containerOffsets, params));
|
|
527
|
+
}
|
|
528
|
+
const childAnchorAdjustments = horizontal && params.hooks?.resolveChildAnchorAdjustments ? params.hooks.resolveChildAnchorAdjustments(node.id, children, childSizes) : /* @__PURE__ */ new Map;
|
|
529
|
+
let minX = Number.POSITIVE_INFINITY;
|
|
530
|
+
let minY = Number.POSITIVE_INFINITY;
|
|
531
|
+
let maxX = 0;
|
|
532
|
+
let maxY = 0;
|
|
533
|
+
for (const child of children) {
|
|
534
|
+
const x = child.x ?? 0;
|
|
535
|
+
const y = (child.y ?? 0) + (childAnchorAdjustments.get(child.id) ?? 0);
|
|
536
|
+
const { width: w, height: h } = childSizes.get(child.id);
|
|
537
|
+
if (x < minX)
|
|
538
|
+
minX = x;
|
|
539
|
+
if (y < minY)
|
|
540
|
+
minY = y;
|
|
541
|
+
if (x + w > maxX)
|
|
542
|
+
maxX = x + w;
|
|
543
|
+
if (y + h > maxY)
|
|
544
|
+
maxY = y + h;
|
|
545
|
+
}
|
|
546
|
+
const bboxWidth = maxX - minX;
|
|
547
|
+
const bboxHeight = maxY - minY;
|
|
548
|
+
const finalWidth = params.snapUp(Math.max(fit.minWidth, bboxWidth + fit.paddingLeft + fit.paddingRight));
|
|
549
|
+
const baseHeight = params.snapUp(Math.max(fit.minHeight, bboxHeight + fit.paddingTop + fit.paddingBottom));
|
|
550
|
+
const dxTarget = (finalWidth - bboxWidth) / 2 - minX;
|
|
551
|
+
const dx = clamp(dxTarget, fit.paddingLeft - minX, finalWidth - fit.paddingRight - maxX);
|
|
552
|
+
const entryRailY = horizontal && params.hooks?.resolveEntryRail ? params.hooks.resolveEntryRail(node.id, children, childSizes, childAnchorAdjustments) : undefined;
|
|
553
|
+
let finalHeight = baseHeight;
|
|
554
|
+
let dy = clamp((finalHeight - bboxHeight) / 2 - minY, fit.paddingTop - minY, finalHeight - fit.paddingBottom - maxY);
|
|
555
|
+
if (typeof entryRailY === "number") {
|
|
556
|
+
finalHeight = params.snapUp(Math.max(baseHeight, 2 * (fit.paddingTop - minY + entryRailY), 2 * (maxY - entryRailY + fit.paddingBottom)));
|
|
557
|
+
dy = finalHeight / 2 - entryRailY;
|
|
558
|
+
}
|
|
559
|
+
containerOffsets.set(node.id, { dx, dy });
|
|
560
|
+
updates.set(node.id, { width: finalWidth, height: finalHeight });
|
|
561
|
+
for (const child of children) {
|
|
562
|
+
const size = childSizes.get(child.id);
|
|
563
|
+
const oh = params.overhangById?.get(child.id);
|
|
564
|
+
const offsetX = oh?.left ?? 0;
|
|
565
|
+
const offsetY = oh?.top ?? 0;
|
|
566
|
+
const realWidth = size.width - offsetX - (oh?.right ?? 0);
|
|
567
|
+
const realHeight = size.height - offsetY - (oh?.bottom ?? 0);
|
|
568
|
+
updates.set(child.id, {
|
|
569
|
+
position: {
|
|
570
|
+
x: snapToGrid((child.x ?? 0) + dx + offsetX),
|
|
571
|
+
y: snapToGrid((child.y ?? 0) + (childAnchorAdjustments.get(child.id) ?? 0) + dy + offsetY)
|
|
572
|
+
},
|
|
573
|
+
width: realWidth,
|
|
574
|
+
height: realHeight
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
return { width: finalWidth, height: finalHeight };
|
|
578
|
+
}
|
|
579
|
+
async function tidyContainerHierarchy(params) {
|
|
580
|
+
const root = buildTidyElkContainer(params.containerId, params);
|
|
581
|
+
const layouted = await params.layout(root);
|
|
582
|
+
const updates = /* @__PURE__ */ new Map;
|
|
583
|
+
const containerOffsets = /* @__PURE__ */ new Map;
|
|
584
|
+
applyTidyContainerLayout(layouted, updates, containerOffsets, params);
|
|
585
|
+
return { layouted, updates, containerOffsets };
|
|
586
|
+
}
|
|
587
|
+
function snapUpToGrid(value, gridSize = GRID_SPACING) {
|
|
588
|
+
return Math.ceil(value / gridSize) * gridSize;
|
|
589
|
+
}
|
|
590
|
+
var DEFAULT_INTERIOR_NODE_SPACING = 32;
|
|
591
|
+
var DEFAULT_INTERIOR_LAYER_SPACING = 64;
|
|
592
|
+
var DEFAULT_MIN_WIDTH = 560;
|
|
593
|
+
var DEFAULT_MIN_HEIGHT = 320;
|
|
594
|
+
var DEFAULT_PADDING_TOP = 96;
|
|
595
|
+
var DEFAULT_PADDING_BOTTOM = 48;
|
|
596
|
+
var DEFAULT_PADDING_LEFT = 144;
|
|
597
|
+
var DEFAULT_PADDING_RIGHT = 144;
|
|
598
|
+
function defaultContainerFit() {
|
|
599
|
+
return {
|
|
600
|
+
minWidth: DEFAULT_MIN_WIDTH,
|
|
601
|
+
minHeight: DEFAULT_MIN_HEIGHT,
|
|
602
|
+
paddingTop: DEFAULT_PADDING_TOP,
|
|
603
|
+
paddingBottom: DEFAULT_PADDING_BOTTOM,
|
|
604
|
+
paddingLeft: DEFAULT_PADDING_LEFT,
|
|
605
|
+
paddingRight: DEFAULT_PADDING_RIGHT,
|
|
606
|
+
elkPadding: `[top=${DEFAULT_PADDING_TOP},left=${DEFAULT_PADDING_LEFT},bottom=${DEFAULT_PADDING_BOTTOM},right=${DEFAULT_PADDING_RIGHT}]`
|
|
607
|
+
};
|
|
608
|
+
}
|
|
440
609
|
|
|
441
610
|
// ../flow-tool/src/services/tidy-service.ts
|
|
442
611
|
var COLLAPSED_NODE_SIZE = 96;
|
|
443
612
|
var EXPANDED_RECTANGLE_WIDTH = 288;
|
|
444
|
-
var CONTAINER_SIZE = {
|
|
613
|
+
var CONTAINER_SIZE = {
|
|
614
|
+
width: defaultContainerFit().minWidth,
|
|
615
|
+
height: defaultContainerFit().minHeight
|
|
616
|
+
};
|
|
617
|
+
function parentIdOf(node) {
|
|
618
|
+
const pid = node?.parentId;
|
|
619
|
+
return typeof pid === "string" && pid.length > 0 ? pid : undefined;
|
|
620
|
+
}
|
|
445
621
|
function expandedSizeForShape(shape) {
|
|
446
622
|
if (shape === "container") {
|
|
447
623
|
return { ...CONTAINER_SIZE };
|
|
@@ -625,6 +801,9 @@ function applyLayoutToNodes(nodes, layoutedNodes, shapeOf) {
|
|
|
625
801
|
let repositioned = 0;
|
|
626
802
|
let resized = 0;
|
|
627
803
|
for (const node of nodes) {
|
|
804
|
+
if (UI_ONLY_NODE_TYPES.has(node.type)) {
|
|
805
|
+
continue;
|
|
806
|
+
}
|
|
628
807
|
const newPos = positionMap.get(node.id);
|
|
629
808
|
if (!newPos)
|
|
630
809
|
continue;
|
|
@@ -634,9 +813,6 @@ function applyLayoutToNodes(nodes, layoutedNodes, shapeOf) {
|
|
|
634
813
|
node.ui.position = { x: newPos.x, y: newPos.y };
|
|
635
814
|
repositioned++;
|
|
636
815
|
}
|
|
637
|
-
if (UI_ONLY_NODE_TYPES.has(node.type)) {
|
|
638
|
-
continue;
|
|
639
|
-
}
|
|
640
816
|
const targetSize = expandedSizeForShape(shapeOf(node));
|
|
641
817
|
const currentSize = node.ui.size;
|
|
642
818
|
const sizeNeedsUpdate = currentSize?.width !== targetSize.width || currentSize?.height !== targetSize.height;
|
|
@@ -647,23 +823,140 @@ function applyLayoutToNodes(nodes, layoutedNodes, shapeOf) {
|
|
|
647
823
|
}
|
|
648
824
|
return { repositioned, resized };
|
|
649
825
|
}
|
|
826
|
+
function applyContainerLayout(nodes, childRelPositions, nodeSizes) {
|
|
827
|
+
let repositioned = 0;
|
|
828
|
+
let resized = 0;
|
|
829
|
+
for (const node of nodes) {
|
|
830
|
+
const rel = childRelPositions.get(node.id);
|
|
831
|
+
if (rel && (node.ui.position.x !== rel.x || node.ui.position.y !== rel.y)) {
|
|
832
|
+
node.ui.position = { x: rel.x, y: rel.y };
|
|
833
|
+
repositioned++;
|
|
834
|
+
}
|
|
835
|
+
const size = nodeSizes.get(node.id);
|
|
836
|
+
if (size && (node.ui.size?.width !== size.width || node.ui.size?.height !== size.height)) {
|
|
837
|
+
node.ui.size = size;
|
|
838
|
+
resized++;
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
return { repositioned, resized };
|
|
842
|
+
}
|
|
650
843
|
async function tidyNodesAndEdges(engine, nodes, edges, portResolver, shapeOf) {
|
|
651
844
|
if (nodes.length === 0) {
|
|
652
845
|
return { repositioned: 0, resized: 0 };
|
|
653
846
|
}
|
|
654
847
|
const allNodes = nodesToLayoutNodes(nodes, shapeOf);
|
|
655
848
|
const allEdges = edgesToLayoutEdges(edges);
|
|
849
|
+
const nodeIds = new Set(allNodes.map((n) => n.id));
|
|
850
|
+
const layoutNodeById = new Map(allNodes.map((n) => [n.id, n]));
|
|
851
|
+
const nodeInstanceOf = (id) => id === undefined ? undefined : layoutNodeById.get(id)?.data;
|
|
852
|
+
const isContainerId = (id) => {
|
|
853
|
+
const inst = nodeInstanceOf(id);
|
|
854
|
+
return inst !== undefined && shapeOf(inst) === "container";
|
|
855
|
+
};
|
|
856
|
+
const chainTerminates = (id) => {
|
|
857
|
+
const seen = new Set;
|
|
858
|
+
let cur = id;
|
|
859
|
+
while (cur !== undefined) {
|
|
860
|
+
if (seen.has(cur))
|
|
861
|
+
return false;
|
|
862
|
+
seen.add(cur);
|
|
863
|
+
const p = parentIdOf(nodeInstanceOf(cur));
|
|
864
|
+
if (p === undefined || !nodeIds.has(p))
|
|
865
|
+
return true;
|
|
866
|
+
cur = p;
|
|
867
|
+
}
|
|
868
|
+
return true;
|
|
869
|
+
};
|
|
870
|
+
const childrenByParent = new Map;
|
|
871
|
+
for (const n of allNodes) {
|
|
872
|
+
if (UI_ONLY_NODE_TYPES.has(n.type))
|
|
873
|
+
continue;
|
|
874
|
+
const pid = parentIdOf(n.data);
|
|
875
|
+
if (pid && pid !== n.id && nodeIds.has(pid) && isContainerId(pid) && chainTerminates(n.id)) {
|
|
876
|
+
const group = childrenByParent.get(pid);
|
|
877
|
+
if (group)
|
|
878
|
+
group.push(n);
|
|
879
|
+
else
|
|
880
|
+
childrenByParent.set(pid, [n]);
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
const containerChildIds = new Set([...childrenByParent.values()].flat().map((n) => n.id));
|
|
884
|
+
const interiorEdgesByParent = new Map;
|
|
885
|
+
for (const e of allEdges) {
|
|
886
|
+
const sp = parentIdOf(nodeInstanceOf(e.source));
|
|
887
|
+
const tp = parentIdOf(nodeInstanceOf(e.target));
|
|
888
|
+
if (sp && sp === tp) {
|
|
889
|
+
const list = interiorEdgesByParent.get(sp);
|
|
890
|
+
if (list)
|
|
891
|
+
list.push(e);
|
|
892
|
+
else
|
|
893
|
+
interiorEdgesByParent.set(sp, [e]);
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
const tidyChildrenByParent = new Map;
|
|
897
|
+
for (const [pid, kids] of childrenByParent) {
|
|
898
|
+
tidyChildrenByParent.set(pid, kids.map((k) => ({
|
|
899
|
+
id: k.id,
|
|
900
|
+
width: k.width ?? COLLAPSED_NODE_SIZE,
|
|
901
|
+
height: k.height ?? COLLAPSED_NODE_SIZE,
|
|
902
|
+
isContainer: childrenByParent.has(k.id)
|
|
903
|
+
})));
|
|
904
|
+
}
|
|
905
|
+
const elkEdgesByParent = new Map;
|
|
906
|
+
for (const [pid, es] of interiorEdgesByParent) {
|
|
907
|
+
elkEdgesByParent.set(pid, es.map((e) => ({
|
|
908
|
+
id: e.id,
|
|
909
|
+
sources: [e.source],
|
|
910
|
+
targets: [e.target]
|
|
911
|
+
})));
|
|
912
|
+
}
|
|
913
|
+
const childRelPositions = new Map;
|
|
914
|
+
const nodeSizes = new Map;
|
|
915
|
+
const topLevelContainerIds = [...childrenByParent.keys()].filter((id) => !containerChildIds.has(id));
|
|
916
|
+
for (const containerId of topLevelContainerIds) {
|
|
917
|
+
const { updates } = await tidyContainerHierarchy({
|
|
918
|
+
containerId,
|
|
919
|
+
childrenByParent: tidyChildrenByParent,
|
|
920
|
+
edgesByParent: elkEdgesByParent,
|
|
921
|
+
fit: defaultContainerFit(),
|
|
922
|
+
direction: "RIGHT",
|
|
923
|
+
nodeSpacing: DEFAULT_INTERIOR_NODE_SPACING,
|
|
924
|
+
layerSpacing: DEFAULT_INTERIOR_LAYER_SPACING,
|
|
925
|
+
orthogonalRouting: true,
|
|
926
|
+
snapUp: snapUpToGrid,
|
|
927
|
+
defaultNodeSize: COLLAPSED_NODE_SIZE,
|
|
928
|
+
layout: (root) => engine.layoutHierarchical(root)
|
|
929
|
+
});
|
|
930
|
+
for (const [id, upd] of updates) {
|
|
931
|
+
if (upd.position) {
|
|
932
|
+
childRelPositions.set(id, upd.position);
|
|
933
|
+
}
|
|
934
|
+
if (upd.width !== undefined && upd.height !== undefined) {
|
|
935
|
+
nodeSizes.set(id, { width: upd.width, height: upd.height });
|
|
936
|
+
}
|
|
937
|
+
}
|
|
938
|
+
}
|
|
656
939
|
const artifactChildIds = identifyArtifactChildIds(allEdges, portResolver, allNodes);
|
|
657
940
|
const collapsedIds = new Set(allNodes.filter((n) => n.data?.ui?.isCollapsed).map((n) => n.id));
|
|
658
941
|
const hiddenIds = collectArtifactDescendants(collapsedIds, allEdges, artifactChildIds);
|
|
659
|
-
const
|
|
660
|
-
const
|
|
942
|
+
const excludedIds = new Set([...hiddenIds, ...containerChildIds]);
|
|
943
|
+
const layoutNodes = allNodes.filter((n) => !excludedIds.has(n.id));
|
|
944
|
+
const layoutEdges = allEdges.filter((e) => !excludedIds.has(e.source) && !excludedIds.has(e.target));
|
|
661
945
|
const hiddenNodes = allNodes.filter((n) => hiddenIds.has(n.id));
|
|
946
|
+
for (const n of layoutNodes) {
|
|
947
|
+
const grown = nodeSizes.get(n.id);
|
|
948
|
+
if (grown) {
|
|
949
|
+
n.width = grown.width;
|
|
950
|
+
n.height = grown.height;
|
|
951
|
+
}
|
|
952
|
+
}
|
|
662
953
|
if (layoutNodes.length === 0) {
|
|
663
954
|
return { repositioned: 0, resized: 0 };
|
|
664
955
|
}
|
|
665
956
|
const preLayoutPositions = new Map(layoutNodes.map((n) => [n.id, { ...n.position }]));
|
|
666
|
-
const
|
|
957
|
+
const anchorCandidates = layoutNodes.filter((node) => !UI_ONLY_NODE_TYPES.has(node.type ?? ""));
|
|
958
|
+
const anchorPool = anchorCandidates.length > 0 ? anchorCandidates : layoutNodes;
|
|
959
|
+
const leftmostNode = anchorPool.reduce((left, node) => node.position.x < left.position.x ? node : left, anchorPool[0]);
|
|
667
960
|
const originalLeftX = leftmostNode.position.x;
|
|
668
961
|
const originalLeftY = leftmostNode.position.y;
|
|
669
962
|
const { nodes: layoutedNodes } = await engine.layout(layoutNodes, layoutEdges, { ...DEFAULT_LAYOUT_OPTIONS, animate: false }, portResolver);
|
|
@@ -678,7 +971,11 @@ async function tidyNodesAndEdges(engine, nodes, edges, portResolver, shapeOf) {
|
|
|
678
971
|
}
|
|
679
972
|
const hiddenUpdates = propagateHiddenArtifactPositions(layoutedNodes, preLayoutPositions, hiddenNodes, allEdges, artifactChildIds);
|
|
680
973
|
const allUpdated = [...layoutedNodes, ...hiddenUpdates];
|
|
681
|
-
|
|
974
|
+
const result = applyLayoutToNodes(nodes, allUpdated, shapeOf);
|
|
975
|
+
const nested = applyContainerLayout(nodes, childRelPositions, nodeSizes);
|
|
976
|
+
result.repositioned += nested.repositioned;
|
|
977
|
+
result.resized += nested.resized;
|
|
978
|
+
return result;
|
|
682
979
|
}
|
|
683
980
|
async function tidyFlow(filePath) {
|
|
684
981
|
const { workflow, refMap } = await readFlowWorkflow(filePath);
|
|
@@ -754,4 +1051,4 @@ function regenerateNodeVariables(workflow) {
|
|
|
754
1051
|
|
|
755
1052
|
export { UI_ONLY_NODE_TYPES, tidyFlow };
|
|
756
1053
|
|
|
757
|
-
//# debugId=
|
|
1054
|
+
//# debugId=7C51F0DC5FF85EC464756E2164756E21
|