@uipath/case-tool 1.206.0-preview.306 → 1.207.0-preview.307
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 +7 -90
- package/dist/THIRD-PARTY-NOTICES.md +164 -9
- package/dist/{authoring-wt5ngnjb.js → authoring-qqev46bh.js} +233 -63
- package/dist/{bindings-v2-x100hvcy.js → bindings-v2-wjgg92tj.js} +4 -4
- package/dist/{browser-strategy-627rrg7z.js → browser-strategy-qc6htsnf.js} +1 -1
- package/dist/{business-rule-export-pggs7x01.js → business-rule-export-56a4wtat.js} +2 -2
- package/dist/{carry-forward-gxsadrqb.js → carry-forward-tj5yrqf6.js} +6 -6
- package/dist/{case-api-a6v5beat.js → case-api-bfwmvkb8.js} +24 -28
- package/dist/{case-bindings-service-9zemt0r2.js → case-bindings-service-5r7c70kz.js} +5 -5
- package/dist/case-catalog-h4fjn6q3.js +304 -0
- package/dist/{case-debug-solution-projects-r60m9e6a.js → case-debug-solution-projects-b2rsts1n.js} +2 -2
- package/dist/{case-debug-studio-web-service-my6vezsd.js → case-debug-studio-web-service-39gj6045.js} +10 -9
- package/dist/{case-described-io-service-8dw21x2y.js → case-described-io-service-ddsvkz8w.js} +5 -5
- package/dist/{case-event-trigger-bindings-pmad4dev.js → case-event-trigger-bindings-8nd78j4e.js} +5 -5
- package/dist/{case-format-service-xjvnx3jd.js → case-format-service-4mzszgfb.js} +2 -2
- package/dist/case-pack-service-17rj6kqt.js +297 -0
- package/dist/{case-splice-service-8deak994.js → case-splice-service-tpp2syvn.js} +7 -7
- package/dist/{case-validate-service-pesq63n9.js → case-validate-service-m2kk0fme.js} +146 -38
- package/dist/{connector-enrichment-service-e0z27bhh.js → connector-enrichment-service-s5y68svm.js} +26 -25
- package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
- package/dist/{connector-lookup-service-rpmsy37q.js → connector-lookup-service-g5qw6a1n.js} +8 -8
- package/dist/{connector-task-shape-bgywpbqc.js → connector-task-shape-s2zny4gf.js} +3 -3
- package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
- package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-xrrajtht.js} +1277 -10
- package/dist/{debug-service-tm92ws5e.js → debug-service-hf2wb4tw.js} +9 -4
- package/dist/{embedded-file-reader-pxpwcq3n.js → embedded-file-reader-k94wt612.js} +16 -16
- package/dist/{en-LAVDF7IQ-yzy20n6d.js → en-5JIPZTS5-c68n8taw.js} +4 -2
- package/dist/{en-X6T4SP2Y-xm47mf18.js → en-ETY46SDS-far9tmsf.js} +66 -2
- package/dist/{enrichment-service-hzsn1aqp.js → enrichment-service-dm5kvwhy.js} +17 -17
- package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
- package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
- package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -10
- package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
- package/dist/{first-party-service-6b9ajm57.js → first-party-service-qfg2m05s.js} +1 -1
- package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-vzfmygd7.js} +1277 -10
- package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
- package/dist/{index-0m89asqv.js → index-59sh1kv0.js} +129 -76
- package/dist/index-b3n9b1bf.js +36 -0
- package/dist/{index-amqqhge1.js → index-ewg6ygg0.js} +1 -1
- package/dist/{index-j2gw61z0.js → index-r16ndadh.js} +3030 -764
- package/dist/{index-nj3axvya.js → index-rk82650j.js} +7 -5
- package/dist/{index-pg9wmyrf.js → index-t6fnts8a.js} +2 -2
- package/dist/index-wkmh1h6w.js +26 -0
- package/dist/{index-v8jen5rh.js → index-xy5fcn8e.js} +4 -4
- package/dist/{index-21kns9qg.js → index-y7v9rkq9.js} +1 -1
- package/dist/index.js +13 -11
- package/dist/init-entry-points-52kvvbg9.js +15 -0
- package/dist/input-reader-zr71xcm9.js +13 -0
- package/dist/integration-service-fetcher-n6d0dwba.js +68 -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/{known-types-gak9by1w.js → known-types-a5d0evdm.js} +2 -2
- package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
- package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
- package/dist/library-option-pbvkt66g.js +13 -0
- package/dist/{localSolutionDiscovery-9pj8mzye.js → localSolutionDiscovery-5sqz9dkr.js} +5 -5
- package/dist/manifest-rhee8kem.js +32 -0
- package/dist/{node-strategy-2mqzg36t.js → node-strategy-aaf2qe6c.js} +2 -2
- package/dist/{node-sync-service-zvwk08cj.js → node-sync-service-phye3746.js} +21 -15
- package/dist/{out-target-gtg3we44.js → out-target-02x6x6nk.js} +5 -5
- package/dist/{packager-tool-h2ar8xf8.js → packager-tool-00ck60cc.js} +25 -24
- package/dist/{packager-tool-388vyja1.js → packager-tool-0gmnk7sb.js} +2 -2
- package/dist/{packager-tool-fcektt1g.js → packager-tool-0nbcqyvp.js} +10 -9
- package/dist/{packager-tool-wg91yz70.js → packager-tool-1jtrz02q.js} +61 -11
- package/dist/packager-tool-1yew22sn.js +9 -0
- package/dist/{packager-tool-1hpd2gmh.js → packager-tool-225b9qhq.js} +1 -1
- package/dist/{packager-tool-p0rdmmvk.js → packager-tool-2xemp3b1.js} +2 -2
- package/dist/packager-tool-34ttsx9q.js +18 -0
- package/dist/{packager-tool-3zy717ga.js → packager-tool-36vkdb3h.js} +2 -2
- package/dist/{packager-tool-cqkbf2fg.js → packager-tool-3hzsw5r7.js} +906 -41
- package/dist/packager-tool-3k5j706w.js +73 -0
- package/dist/{packager-tool-8h6tqbps.js → packager-tool-41j8ppy2.js} +59 -34
- package/dist/{packager-tool-scy94jyb.js → packager-tool-4seehsme.js} +2 -72
- package/dist/{packager-tool-es77jvky.js → packager-tool-4w7nzx18.js} +360 -44
- package/dist/{packager-tool-4avchhz8.js → packager-tool-57970zfm.js} +12 -7
- package/dist/{packager-tool-bjt8b2nz.js → packager-tool-5s476jdt.js} +13 -13
- package/dist/{packager-tool-8n13ny0q.js → packager-tool-70a6y6t1.js} +3393 -3092
- package/dist/{packager-tool-0xj79bbd.js → packager-tool-8kcwawyg.js} +13 -4
- package/dist/{packager-tool-wy3a65rx.js → packager-tool-bw4fsdq4.js} +27 -13
- package/dist/{packager-tool-dn9d4ywm.js → packager-tool-c0pavv0s.js} +66 -10
- package/dist/packager-tool-c9h0rwgv.js +31 -0
- package/dist/{packager-tool-t8qx6hvn.js → packager-tool-dv2vtyg0.js} +4 -4
- package/dist/{packager-tool-3r23qsca.js → packager-tool-ef43cy32.js} +213 -231
- package/dist/{packager-tool-5w0gjcck.js → packager-tool-engs9gvj.js} +1 -1
- package/dist/{packager-tool-stdwmgvd.js → packager-tool-exrjwmew.js} +202 -83
- package/dist/{task-type-declaration-yhczvj05.js → packager-tool-f9n5mk1c.js} +8 -12
- package/dist/{packager-tool-b2q8m9pq.js → packager-tool-fspmvh6g.js} +5 -4
- package/dist/packager-tool-geh2qybm.js +179 -0
- package/dist/{packager-tool-17b466mr.js → packager-tool-hrd44w8g.js} +7561 -6408
- package/dist/{packager-tool-snesn0bt.js → packager-tool-j1etnthk.js} +19 -14
- package/dist/{packager-tool-k871wgpe.js → packager-tool-j53d4vv1.js} +18 -4
- package/dist/{packager-tool-6ewsbrnb.js → packager-tool-j8mnpsv8.js} +329 -149
- package/dist/{packager-tool-k9z8yg4f.js → packager-tool-jepvcpj7.js} +22 -8
- package/dist/{packager-tool-7x1tmb8a.js → packager-tool-jydreskq.js} +1 -1
- package/dist/{packager-tool-r5pha7xq.js → packager-tool-k08k9g2y.js} +9 -9
- package/dist/{packager-tool-bg3tdpva.js → packager-tool-kh9gs4d5.js} +4 -2
- package/dist/{packager-tool-8467kcz9.js → packager-tool-m7s4n455.js} +120 -13
- package/dist/{packager-tool-5ytjvsfb.js → packager-tool-mbm0kd8w.js} +22 -22
- package/dist/{packager-tool-q26hncjr.js → packager-tool-n3r5apbb.js} +4 -2
- package/dist/packager-tool-n6h4bz4d.js +22 -0
- package/dist/{packager-tool-4t71ya0d.js → packager-tool-nqz24dxf.js} +254 -69
- package/dist/{packager-tool-ad8v11jd.js → packager-tool-p4c1g2sj.js} +1032 -819
- package/dist/{packager-tool-z070caqq.js → packager-tool-p64w2wrt.js} +30 -8
- package/dist/{packager-tool-xd1wbvay.js → packager-tool-pq61r2f1.js} +1 -1
- package/dist/{packager-tool-65vr263d.js → packager-tool-qzyb1eac.js} +1 -1
- package/dist/{packager-tool-5dptce1y.js → packager-tool-rzxnm9yj.js} +2 -2
- package/dist/{packager-tool-jjkypwge.js → packager-tool-s8jxyjgj.js} +15 -4
- package/dist/{init-entry-points-5xzn81bb.js → packager-tool-t6xwkhht.js} +12 -10
- package/dist/packager-tool-vmfd007q.js +27 -0
- package/dist/packager-tool-wvf6b31h.js +50 -0
- package/dist/{packager-tool-cdvrca04.js → packager-tool-x9z4krtr.js} +1036 -259
- package/dist/{packager-tool-z1fw9a8v.js → packager-tool-y69796fy.js} +19 -11
- package/dist/{packager-tool-f93rmjxx.js → packager-tool-z3k461re.js} +191 -154
- package/dist/{packager-tool-9m7jbv7t.js → packager-tool-zbfwp75m.js} +4 -4
- package/dist/{packager-tool-pq9xv4vq.js → packager-tool-zte9svtn.js} +11 -4
- package/dist/packager-tool.js +2 -2
- package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-2hcb65bn.js} +39 -6
- package/dist/{project-artifacts-pfcn65cg.js → project-artifacts-jaj95t3d.js} +1 -1
- package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
- package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
- 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/{resolved-check-dz8eqrf6.js → resolved-check-kwgy875v.js} +1 -1
- package/dist/{resourcesSyncService-7j2m0tv0.js → resourcesSyncService-5gcxp8r5.js} +49 -26
- package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-9k2jjk88.js} +1271 -10
- package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
- package/dist/{rule-type-declaration-ze0saj5r.js → rule-type-declaration-a0fk7fe7.js} +12 -11
- package/dist/{sdd-convert-service-m8e615a1.js → sdd-convert-service-2ag3xjpj.js} +120 -621
- package/dist/{sdd-lookup-fwj6x364.js → sdd-lookup-wgm5ctnd.js} +2 -2
- package/dist/{sdd-resolve-service-dvg387wx.js → sdd-resolve-service-epygyb0n.js} +34 -6
- package/dist/{sdd-resolve-siblings-jc2788nm.js → sdd-resolve-siblings-bg4qmawq.js} +4 -4
- package/dist/solution-auth-yb1twb9d.js +11 -0
- package/dist/{solution-definition-helper-6zwd9hjs.js → solution-definition-helper-qjj01xh0.js} +1 -1
- package/dist/{solution-discovery-gfdqhgt2.js → solution-discovery-t0nkzpm3.js} +4 -4
- package/dist/{strict-case-rules-045kbjvv.js → strict-case-rules-x1sytx3e.js} +91 -46
- package/dist/{strict-entry-points-wd85a81g.js → strict-entry-points-anxeg692.js} +6 -6
- package/dist/strict-sdd-audit-z1bg2zr0.js +28 -0
- package/dist/taggable-variables-gc58xb0s.js +6094 -0
- package/dist/task-type-declaration-b0ejzhc6.js +15 -0
- package/dist/tool.js +13 -11
- package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -10
- package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
- package/dist/{trigger-enrichment-service-8nfz9p7h.js → trigger-enrichment-service-zn229s6b.js} +33 -32
- package/dist/{trigger-entry-point-id-4j9rk3kp.js → trigger-entry-point-id-hre2ewts.js} +1 -1
- package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
- package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -10
- package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
- package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -11
- package/package.json +2 -2
- package/dist/case-pack-service-adhg30nq.js +0 -167
- package/dist/index-9fxd19z9.js +0 -35
- package/dist/input-reader-pjt4a914.js +0 -10
- package/dist/packager-tool-v11fx4dk.js +0 -25
- package/dist/solution-auth-a1p22hq1.js +0 -11
- package/dist/strict-sdd-audit-6es2j6fs.js +0 -26
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem2
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-p64w2wrt.js";
|
|
4
4
|
import {
|
|
5
5
|
catchError2,
|
|
6
|
-
carriedErrorCode,
|
|
7
6
|
RESULTS,
|
|
7
|
+
carriedErrorCode,
|
|
8
8
|
Option,
|
|
9
9
|
getOutputSink,
|
|
10
10
|
pascalCaseDataKeys,
|
|
@@ -15,14 +15,16 @@ import {
|
|
|
15
15
|
legacySecondArg,
|
|
16
16
|
usageError,
|
|
17
17
|
addDeprecatedOptionAlias
|
|
18
|
-
} from "./packager-tool-
|
|
18
|
+
} from "./packager-tool-j8mnpsv8.js";
|
|
19
|
+
import {
|
|
20
|
+
resolveLibraryOption2,
|
|
21
|
+
connectorLibraryInPlay2
|
|
22
|
+
} from "./packager-tool-vmfd007q.js";
|
|
19
23
|
import {
|
|
20
24
|
NAME_BOUND_TASK_TYPES,
|
|
21
25
|
BINDING_REFERENCE_PREFIX
|
|
22
26
|
} from "./packager-tool-nfhtwa72.js";
|
|
23
|
-
import
|
|
24
|
-
resolveMaestroRegistry
|
|
25
|
-
} from "./packager-tool-3zy717ga.js";
|
|
27
|
+
import"./packager-tool-36vkdb3h.js";
|
|
26
28
|
|
|
27
29
|
// ../builder-sdk/src/node-runner.ts
|
|
28
30
|
import { spawn as spawn2 } from "node:child_process";
|
|
@@ -56,7 +58,17 @@ var FLOW_SDK_PACKAGE = {
|
|
|
56
58
|
var BPMN_CONNECTOR_OPTIONS_VERSION = "6.15.0";
|
|
57
59
|
var FLOW_MERGE_STRICT_VERSION = "6.20.0";
|
|
58
60
|
var FLOW_DECOMPILE_SCRIPTS_VERSION = "6.57.0";
|
|
61
|
+
var FLOW_CHECK_BASELINE_VERSION = "6.64.0";
|
|
62
|
+
var FLOW_MERGE_COMPILE_VERSION = "6.28.0";
|
|
63
|
+
var BPMN_MERGE_SOURCE_CAPABILITY = "bpmn-merge-source";
|
|
64
|
+
var BPMN_CHECK_BASELINE_CAPABILITY = "bpmn-check-baseline";
|
|
65
|
+
var CAPABILITY_SINCE = {
|
|
66
|
+
"prepare-resource": "6.73.0",
|
|
67
|
+
[BPMN_MERGE_SOURCE_CAPABILITY]: "6.95.0",
|
|
68
|
+
"fetch-definitions": "6.97.0"
|
|
69
|
+
};
|
|
59
70
|
var CASE_CONNECTOR_OPTIONS_VERSION = "6.18.1";
|
|
71
|
+
var FETCH_DEFINITIONS_CAPABILITY = "fetch-definitions";
|
|
60
72
|
function commandLabel(family, verb) {
|
|
61
73
|
return `uip maestro ${family} ${verb}`;
|
|
62
74
|
}
|
|
@@ -119,14 +131,24 @@ function failureReason(out, err) {
|
|
|
119
131
|
`).filter((line) => line.trim() !== "");
|
|
120
132
|
return lines.at(-1)?.trim() ?? out.trim();
|
|
121
133
|
}
|
|
122
|
-
|
|
134
|
+
var MISSING_BUILDER_API = [
|
|
135
|
+
/\bis not a function$/,
|
|
136
|
+
new RegExp(`The requested module '${FLOW_SDK_PACKAGE.name}(?:/[^']*)?' does not provide an export named '[^']+'$`)
|
|
137
|
+
];
|
|
138
|
+
function failureInstructions(detail, err, { version, found }, sourceCallsBuilderApi) {
|
|
139
|
+
if (sourceCallsBuilderApi && MISSING_BUILDER_API.some((reason) => reason.test(detail))) {
|
|
140
|
+
return `The source may call an API that ${FLOW_SDK_PACKAGE.name} ${version} does not have. Fix the call if it is misspelled; if it comes from a newer release, upgrade the SDK. ${upgradeInstructions(found)}`;
|
|
141
|
+
}
|
|
142
|
+
return err ? "Fix what the builder SDK reported (on stderr, and in Message), then retry." : "Fix what the builder SDK reported (see Message), then retry.";
|
|
143
|
+
}
|
|
144
|
+
function outcomeResult(outcome, label, sdk, sourceCallsBuilderApi) {
|
|
123
145
|
if (outcome.kind === "spawn-error") {
|
|
124
146
|
return {
|
|
125
147
|
ok: false,
|
|
126
148
|
exitCode: 1,
|
|
127
149
|
result: RESULTS.Failure,
|
|
128
150
|
message: `${label}: ${outcome.message}`,
|
|
129
|
-
instructions: outcome.instructions ?? (found === "host" ? `This host could not start ${FLOW_SDK_PACKAGE.name}. Report it to the host; retrying will fail the same way.` : "Check that node is on PATH, then retry.")
|
|
151
|
+
instructions: outcome.instructions ?? (sdk.found === "host" ? `This host could not start ${FLOW_SDK_PACKAGE.name}. Report it to the host; retrying will fail the same way.` : "Check that node is on PATH, then retry.")
|
|
130
152
|
};
|
|
131
153
|
}
|
|
132
154
|
const { exitCode, signal, out, err } = outcome;
|
|
@@ -140,7 +162,7 @@ function outcomeResult(outcome, label, found) {
|
|
|
140
162
|
exitCode,
|
|
141
163
|
result: RESULTS.Failure,
|
|
142
164
|
message: `${label}: ${detail}`,
|
|
143
|
-
instructions:
|
|
165
|
+
instructions: failureInstructions(detail, err, sdk, sourceCallsBuilderApi),
|
|
144
166
|
...out.trim() ? { data: stdoutAsData(out) } : {}
|
|
145
167
|
};
|
|
146
168
|
}
|
|
@@ -161,10 +183,22 @@ function upgradeInstructions(found) {
|
|
|
161
183
|
var LIBRARY_VERBS = new Set([
|
|
162
184
|
"flow compile",
|
|
163
185
|
"flow check",
|
|
186
|
+
"case compile",
|
|
187
|
+
"case check",
|
|
188
|
+
"case decompile",
|
|
189
|
+
"bpmn compile",
|
|
190
|
+
"bpmn check",
|
|
191
|
+
"bpmn decompile",
|
|
164
192
|
"registry search",
|
|
165
193
|
"registry describe",
|
|
166
194
|
"registry pull"
|
|
167
195
|
]);
|
|
196
|
+
var FETCHING_VERBS = new Set([
|
|
197
|
+
...LIBRARY_VERBS,
|
|
198
|
+
"flow decompile",
|
|
199
|
+
"flow merge",
|
|
200
|
+
"bpmn merge"
|
|
201
|
+
]);
|
|
168
202
|
function pullAnswer(sha256, libraryJson) {
|
|
169
203
|
const sink = getOutputSink();
|
|
170
204
|
sink.writeErr(`registry pull: connector library ${sha256.slice(0, 12)}… is ready.
|
|
@@ -173,6 +207,48 @@ function pullAnswer(sha256, libraryJson) {
|
|
|
173
207
|
`);
|
|
174
208
|
return { ok: true, data: { sha256, library: libraryJson } };
|
|
175
209
|
}
|
|
210
|
+
async function sdkCapability({
|
|
211
|
+
capabilities,
|
|
212
|
+
packageDir,
|
|
213
|
+
version
|
|
214
|
+
}, capability) {
|
|
215
|
+
if (capabilities !== undefined) {
|
|
216
|
+
return { has: capabilities.includes(capability), list: "reported" };
|
|
217
|
+
}
|
|
218
|
+
if (packageDir === undefined) {
|
|
219
|
+
const since = ownCapabilitySince(capability);
|
|
220
|
+
return {
|
|
221
|
+
has: since !== undefined && versionMeetsFloor(version, since),
|
|
222
|
+
list: "none"
|
|
223
|
+
};
|
|
224
|
+
}
|
|
225
|
+
const fs = getFileSystem2();
|
|
226
|
+
const text = await fs.readFile(fs.path.join(packageDir, "package.json"), "utf-8");
|
|
227
|
+
if (text === null)
|
|
228
|
+
return { has: false, list: "none" };
|
|
229
|
+
try {
|
|
230
|
+
const parsed = JSON.parse(text);
|
|
231
|
+
return Array.isArray(parsed.cliCapabilities) ? {
|
|
232
|
+
has: parsed.cliCapabilities.includes(capability),
|
|
233
|
+
list: "read"
|
|
234
|
+
} : { has: false, list: "none" };
|
|
235
|
+
} catch {
|
|
236
|
+
return { has: false, list: "none" };
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
function missingCapabilityReason(list, capability) {
|
|
240
|
+
if (list === "reported") {
|
|
241
|
+
return `does not (it reports no "${capability}" among its capabilities)`;
|
|
242
|
+
}
|
|
243
|
+
if (list === "read") {
|
|
244
|
+
return `does not (it lists no "${capability}" in its cliCapabilities)`;
|
|
245
|
+
}
|
|
246
|
+
const since = ownCapabilitySince(capability);
|
|
247
|
+
return since === undefined ? `reports no capabilities, and no release is known to ship "${capability}"` : `reports no capabilities; "${capability}" ships from ${since}`;
|
|
248
|
+
}
|
|
249
|
+
function ownCapabilitySince(capability) {
|
|
250
|
+
return Object.hasOwn(CAPABILITY_SINCE, capability) ? CAPABILITY_SINCE[capability] : undefined;
|
|
251
|
+
}
|
|
176
252
|
async function runFlowSdk({
|
|
177
253
|
family,
|
|
178
254
|
commandVerb,
|
|
@@ -180,7 +256,11 @@ async function runFlowSdk({
|
|
|
180
256
|
argv,
|
|
181
257
|
passthrough = [],
|
|
182
258
|
cwd,
|
|
183
|
-
requiresSdkVersion
|
|
259
|
+
requiresSdkVersion,
|
|
260
|
+
requiresSdkCapability,
|
|
261
|
+
sourceCallsBuilderApi = false,
|
|
262
|
+
requiresConnectorLibrary = false,
|
|
263
|
+
connectorLibraryGate
|
|
184
264
|
}) {
|
|
185
265
|
const workspace = cwd ?? getFileSystem2().env.cwd();
|
|
186
266
|
const label = commandLabel(family, commandVerb);
|
|
@@ -222,44 +302,74 @@ async function runFlowSdk({
|
|
|
222
302
|
instructions: upgradeInstructions(resolution.found)
|
|
223
303
|
};
|
|
224
304
|
}
|
|
225
|
-
|
|
305
|
+
const belowGate = (gate) => versionMeetsFloor(resolution.version, gate.version) ? undefined : {
|
|
306
|
+
ok: false,
|
|
307
|
+
exitCode: 1,
|
|
308
|
+
result: RESULTS.ConfigError,
|
|
309
|
+
message: `${label}: ${gate.because} needs ${FLOW_SDK_PACKAGE.name} >= ${gate.version}; found ${resolution.version}.`,
|
|
310
|
+
instructions: upgradeInstructions(resolution.found)
|
|
311
|
+
};
|
|
312
|
+
const belowVersion = requiresSdkVersion && belowGate(requiresSdkVersion);
|
|
313
|
+
if (belowVersion)
|
|
314
|
+
return belowVersion;
|
|
315
|
+
const capabilityCheck = requiresSdkCapability && await sdkCapability(resolution, requiresSdkCapability.capability);
|
|
316
|
+
if (requiresSdkCapability && capabilityCheck && !capabilityCheck.has) {
|
|
317
|
+
const since = resolution.capabilities === undefined && resolution.packageDir === undefined ? ownCapabilitySince(requiresSdkCapability.capability) : undefined;
|
|
226
318
|
return {
|
|
227
319
|
ok: false,
|
|
228
320
|
exitCode: 1,
|
|
229
321
|
result: RESULTS.ConfigError,
|
|
230
|
-
message: `${label}: ${
|
|
322
|
+
message: since !== undefined ? `${label}: ${requiresSdkCapability.because} needs ${FLOW_SDK_PACKAGE.name} >= ${since}; found ${resolution.version}.` : `${label}: ${requiresSdkCapability.because} needs a ${FLOW_SDK_PACKAGE.name} release that supports it; found ${resolution.version}, which ${missingCapabilityReason(capabilityCheck.list, requiresSdkCapability.capability)}.`,
|
|
231
323
|
instructions: upgradeInstructions(resolution.found)
|
|
232
324
|
};
|
|
233
325
|
}
|
|
234
326
|
let library;
|
|
235
327
|
const libraryJson = getFileSystem2().env.getenv("FLOW_SDK_LIBRARY_JSON");
|
|
236
|
-
const { INHERITED_AUTH_PROFILE_ENV, getActiveAuthProfile } = await import("./index-
|
|
328
|
+
const { INHERITED_AUTH_PROFILE_ENV, getActiveAuthProfile } = await import("./index-rk82650j.js");
|
|
237
329
|
const env = {
|
|
238
330
|
FLOW_SDK_INVOKED_AS,
|
|
239
331
|
[INHERITED_AUTH_PROFILE_ENV]: getActiveAuthProfile() ?? "",
|
|
240
332
|
...libraryJson ? { FLOW_SDK_LIBRARY_JSON: libraryJson } : {}
|
|
241
333
|
};
|
|
242
|
-
if (resolution.found === "host" && !libraryJson && LIBRARY_VERBS.has(`${family} ${sdkVerb}`)) {
|
|
243
|
-
const
|
|
334
|
+
if (resolution.found === "host" && !libraryJson && (requiresConnectorLibrary || LIBRARY_VERBS.has(`${family} ${sdkVerb}`))) {
|
|
335
|
+
const belowLibraryGate = connectorLibraryGate && belowGate(connectorLibraryGate);
|
|
336
|
+
if (belowLibraryGate)
|
|
337
|
+
return belowLibraryGate;
|
|
338
|
+
const connectorLibrary = await import("./connector-library-844myxz2.js");
|
|
244
339
|
const [error, loaded] = await catchError2(connectorLibrary.sessionConnectorLibrary(flowSdkRunnerOptions().libraryUrl));
|
|
245
|
-
|
|
340
|
+
const errorCode = error ? carriedErrorCode(error) ?? "unknown_error" : undefined;
|
|
341
|
+
const unreachable = error !== undefined && error.unreachable === true;
|
|
342
|
+
const fetches = unreachable && (await sdkCapability(resolution, FETCH_DEFINITIONS_CAPABILITY)).has;
|
|
343
|
+
if (error && !fetches) {
|
|
246
344
|
return {
|
|
247
345
|
ok: false,
|
|
248
346
|
exitCode: 1,
|
|
249
347
|
result: RESULTS.Failure,
|
|
250
|
-
errorCode
|
|
348
|
+
errorCode,
|
|
251
349
|
message: `${label}: could not get the connector library: ${error.message}`,
|
|
252
|
-
instructions: "Check that this host can reach the connector library download, then retry."
|
|
350
|
+
instructions: unreachable ? `Check that this host can reach the connector library download, then retry, or use a ${FLOW_SDK_PACKAGE.name} release that fetches connector definitions through uip: ${upgradeInstructions(resolution.found)}` : "Check that this host can reach the connector library download, then retry."
|
|
253
351
|
};
|
|
254
352
|
}
|
|
255
|
-
if (
|
|
353
|
+
if (error) {
|
|
354
|
+
getOutputSink().writeErr(`${label}: the connector library could not be downloaded (${error.message}); connector definitions are fetched through uip instead.
|
|
355
|
+
`);
|
|
356
|
+
} else if (family === "registry" && sdkVerb === "pull") {
|
|
256
357
|
return pullAnswer(loaded.sha256, connectorLibrary.LIBRARY_JSON);
|
|
358
|
+
} else {
|
|
359
|
+
library = connectorLibrary.libraryMount(loaded);
|
|
360
|
+
env.FLOW_SDK_LIBRARY_JSON = connectorLibrary.LIBRARY_JSON;
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
const noLibrary = resolution.found !== "host" && FETCHING_VERBS.has(`${family} ${sdkVerb}`) && !(family === "registry" && sdkVerb === "pull") && !await (await import("./library-option-pbvkt66g.js")).connectorLibraryInPlay(libraryFlag(argv));
|
|
364
|
+
if (noLibrary) {
|
|
365
|
+
const fetching = await sdkCapability(resolution, FETCH_DEFINITIONS_CAPABILITY);
|
|
366
|
+
if (!fetching.has) {
|
|
367
|
+
getOutputSink().writeErr(`${label}: no connector library is available, and ${FLOW_SDK_PACKAGE.name} ${resolution.version} cannot fetch connector definitions through uip. Connector steps need \`uip maestro registry pull\` first, or a newer SDK: ${upgradeInstructions(resolution.found)}
|
|
368
|
+
`);
|
|
257
369
|
}
|
|
258
|
-
library = connectorLibrary.libraryMount(loaded);
|
|
259
|
-
env.FLOW_SDK_LIBRARY_JSON = connectorLibrary.LIBRARY_JSON;
|
|
260
370
|
}
|
|
261
371
|
const runUipInProcess = inProcessUip();
|
|
262
|
-
const prepare = resolution.found === "host" && family === "registry" && sdkVerb === "prepare"
|
|
372
|
+
const prepare = resolution.found === "host" && runUipInProcess && (family === "registry" && sdkVerb === "prepare" || requiresConnectorLibrary || FETCHING_VERBS.has(`${family} ${sdkVerb}`)) ? (await import("./prepare-uip-2hcb65bn.js")).prepareUip(runUipInProcess) : undefined;
|
|
263
373
|
const sdkArgv = [...argv, "--json", ...passthrough];
|
|
264
374
|
const sink = getOutputSink();
|
|
265
375
|
const [runError, outcome] = await catchError2(() => runner.run(resolution, {
|
|
@@ -272,7 +382,7 @@ async function runFlowSdk({
|
|
|
272
382
|
}));
|
|
273
383
|
prepare?.close();
|
|
274
384
|
await prepare?.settled();
|
|
275
|
-
return outcomeResult(runError ? { kind: "spawn-error", message: runError.message } : outcome, label, resolution
|
|
385
|
+
return outcomeResult(runError ? { kind: "spawn-error", message: runError.message } : outcome, label, resolution, sourceCallsBuilderApi);
|
|
276
386
|
}
|
|
277
387
|
async function delegateToMaestroBuilderSdk(request) {
|
|
278
388
|
const result = await runFlowSdk(request);
|
|
@@ -314,6 +424,10 @@ async function delegateToMaestroBuilderSdk(request) {
|
|
|
314
424
|
});
|
|
315
425
|
return result.exitCode;
|
|
316
426
|
}
|
|
427
|
+
function libraryFlag(argv) {
|
|
428
|
+
const index = argv.indexOf("--library");
|
|
429
|
+
return index >= 0 ? argv[index + 1] : undefined;
|
|
430
|
+
}
|
|
317
431
|
|
|
318
432
|
// ../builder-sdk/src/npm-global-root.ts
|
|
319
433
|
import { spawn } from "node:child_process";
|
|
@@ -565,23 +679,6 @@ function sdkCliExample(family, verb, description, command, data) {
|
|
|
565
679
|
];
|
|
566
680
|
}
|
|
567
681
|
|
|
568
|
-
// ../builder-sdk/src/library-option.ts
|
|
569
|
-
async function resolveLibraryOption(explicit) {
|
|
570
|
-
if (explicit !== undefined)
|
|
571
|
-
return explicit;
|
|
572
|
-
if (getFileSystem2().env.getenv("FLOW_SDK_LIBRARY_JSON"))
|
|
573
|
-
return;
|
|
574
|
-
const registry = await resolveMaestroRegistry();
|
|
575
|
-
return registry?.libraryJson;
|
|
576
|
-
}
|
|
577
|
-
async function connectorLibraryInPlay(explicit) {
|
|
578
|
-
if (explicit !== undefined)
|
|
579
|
-
return true;
|
|
580
|
-
if (getFileSystem2().env.getenv("FLOW_SDK_LIBRARY_JSON"))
|
|
581
|
-
return true;
|
|
582
|
-
return (await resolveMaestroRegistry())?.libraryJson !== undefined;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
682
|
// ../builder-sdk/src/commands/check.ts
|
|
586
683
|
var CHECK_EXAMPLES = {
|
|
587
684
|
flow: { input: "Order.flow.ts" },
|
|
@@ -602,27 +699,52 @@ var CONNECTOR_GATES = {
|
|
|
602
699
|
var registerCheckCommand = (program, family) => {
|
|
603
700
|
const command = program.command("check <input>").description("Check a source file for authoring errors before compiling it.").option("--source", "Check authored TypeScript");
|
|
604
701
|
command.option("--library <dir>", "Connector library directory (defaults to $FLOW_SDK_LIBRARY_JSON, else the pulled library)").option("--connectors-local <dir>", "Connection-resolved connector overlay (default: ./connectors-local)");
|
|
605
|
-
if (family === "
|
|
702
|
+
if (family === "flow") {
|
|
703
|
+
command.option("--baseline <file>", "Original .flow the source was decompiled from; findings it already has on untouched nodes do not fail the check").option("--bindings <file>", "bindings.json path").option("--package <name...>", "Trust and load this node-type package for --baseline (repeatable)");
|
|
704
|
+
} else if (family === "bpmn") {
|
|
606
705
|
command.option("--graph", "Also print the resolved wiring: every element with the flows leaving it, implied edges marked ~>");
|
|
706
|
+
command.option("--baseline <file>", "Original .bpmn the source was decompiled from; findings it already has on untouched elements do not fail the check");
|
|
607
707
|
}
|
|
608
708
|
const example = CHECK_EXAMPLES[family];
|
|
609
709
|
command.examples(sdkCliExample(family, "check", `Check a ${family} source file before compiling it`, `uip maestro ${family} check ${example.input} --source`, CHECK_RESULT)).trackedAction(processContext, async (_input, options, cmd) => {
|
|
610
710
|
const parsed = [];
|
|
611
711
|
if (options.source)
|
|
612
712
|
parsed.push("--source");
|
|
613
|
-
addValue(parsed, "--library", await
|
|
713
|
+
addValue(parsed, "--library", await resolveLibraryOption2(options.library));
|
|
614
714
|
addValue(parsed, "--connectors-local", options.connectorsLocal);
|
|
615
715
|
if (options.graph)
|
|
616
716
|
parsed.push("--graph");
|
|
717
|
+
addValue(parsed, "--baseline", options.baseline);
|
|
718
|
+
addValue(parsed, "--bindings", options.bindings);
|
|
719
|
+
for (const name of options.package ?? [])
|
|
720
|
+
parsed.push("--package", name);
|
|
617
721
|
const { argv, passthrough } = delegateArgv(cmd, parsed);
|
|
618
722
|
const gate = CONNECTOR_GATES[family];
|
|
619
|
-
const gated = gate !== undefined && (options.connectorsLocal !== undefined || await
|
|
723
|
+
const gated = gate !== undefined && (options.connectorsLocal !== undefined || await connectorLibraryInPlay2(options.library));
|
|
724
|
+
const bpmnBaseline = family === "bpmn" && options.baseline !== undefined;
|
|
725
|
+
const baselineOptions = family !== "flow" ? [] : [
|
|
726
|
+
options.baseline !== undefined ? "--baseline" : undefined,
|
|
727
|
+
options.bindings !== undefined ? "--bindings" : undefined,
|
|
728
|
+
options.package !== undefined ? "--package" : undefined
|
|
729
|
+
].filter((flag) => flag !== undefined);
|
|
730
|
+
const requiresSdkVersion = baselineOptions.length > 0 ? {
|
|
731
|
+
version: FLOW_CHECK_BASELINE_VERSION,
|
|
732
|
+
because: `${baselineOptions.join(" and ")} on flow check`
|
|
733
|
+
} : gated ? gate : undefined;
|
|
620
734
|
const code = await delegateToMaestroBuilderSdk({
|
|
621
735
|
family,
|
|
622
736
|
commandVerb: "check",
|
|
623
737
|
argv,
|
|
738
|
+
sourceCallsBuilderApi: true,
|
|
624
739
|
...passthrough ? { passthrough } : {},
|
|
625
|
-
...
|
|
740
|
+
...requiresSdkVersion ? { requiresSdkVersion } : {},
|
|
741
|
+
...bpmnBaseline ? {
|
|
742
|
+
requiresSdkCapability: {
|
|
743
|
+
capability: BPMN_CHECK_BASELINE_CAPABILITY,
|
|
744
|
+
because: "--baseline on bpmn check"
|
|
745
|
+
}
|
|
746
|
+
} : {},
|
|
747
|
+
...gate ? { connectorLibraryGate: gate } : {}
|
|
626
748
|
});
|
|
627
749
|
if (code !== 0)
|
|
628
750
|
processContext.exit(code);
|
|
@@ -659,13 +781,13 @@ var registerCompileCommand = (program, family, hooks = {}) => {
|
|
|
659
781
|
const command = program.command("compile <source>").description(`Compile authored TypeScript to a ${family} artifact.`).option("-o, --output-file <file>", "Output artifact path").option("--library <dir>", "Connector library directory (defaults to the pulled registry)").option("--bindings <file>", "bindings.json path").option("--connectors-local <dir>", "Connection-resolved connector overlay (default: ./connectors-local)");
|
|
660
782
|
addDeprecatedOptionAlias(command, "--output <file>", "--output-file");
|
|
661
783
|
if (family === "flow") {
|
|
662
|
-
command.option("--no-check", "
|
|
784
|
+
command.option("--no-check", "Deprecated: does nothing on @uipath/maestro-builder-sdk >= 6.64.0, where compile no longer runs check (run `uip maestro flow check` first); skips compile's check on older SDKs");
|
|
663
785
|
}
|
|
664
786
|
const example = COMPILE_EXAMPLES[family];
|
|
665
787
|
command.examples(sdkCliExample(family, "compile", `Compile a ${family} source file to an artifact`, `uip maestro ${family} compile ${example.source} --output-file ${example.output}`, example.result)).trackedAction(processContext, async (_source, options, cmd) => {
|
|
666
788
|
const parsed = [];
|
|
667
789
|
addValue(parsed, "-o", options.outputFile);
|
|
668
|
-
addValue(parsed, "--library", await
|
|
790
|
+
addValue(parsed, "--library", await resolveLibraryOption2(options.library));
|
|
669
791
|
addValue(parsed, "--bindings", options.bindings);
|
|
670
792
|
addValue(parsed, "--connectors-local", options.connectorsLocal);
|
|
671
793
|
if (options.check === false)
|
|
@@ -675,6 +797,7 @@ var registerCompileCommand = (program, family, hooks = {}) => {
|
|
|
675
797
|
family,
|
|
676
798
|
commandVerb: "compile",
|
|
677
799
|
argv,
|
|
800
|
+
sourceCallsBuilderApi: true,
|
|
678
801
|
...passthrough ? { passthrough } : {},
|
|
679
802
|
...hooks.afterSuccess ? { afterSuccess: hooks.afterSuccess } : {},
|
|
680
803
|
...family === "bpmn" && options.connectorsLocal !== undefined ? {
|
|
@@ -740,7 +863,7 @@ var registerDecompileCommand = (program, family) => {
|
|
|
740
863
|
addValue(parsed, "-o", options.outputFile);
|
|
741
864
|
addValue(parsed, "--import", options.import);
|
|
742
865
|
if (family === "case") {
|
|
743
|
-
addValue(parsed, "--library", await
|
|
866
|
+
addValue(parsed, "--library", await resolveLibraryOption2(options.library));
|
|
744
867
|
}
|
|
745
868
|
if (options.strict)
|
|
746
869
|
parsed.push("--strict");
|
|
@@ -772,7 +895,7 @@ var registerDecompileCommand = (program, family) => {
|
|
|
772
895
|
var MERGE_EXAMPLES = {
|
|
773
896
|
flow: {
|
|
774
897
|
description: "Merge edited authored content into the original Flow artifact",
|
|
775
|
-
command: "uip maestro flow merge Edited.flow --original Original.flow --output-file Merged.flow --baseline
|
|
898
|
+
command: "uip maestro flow merge Edited.flow.ts --original Original.flow --output-file Merged.flow --baseline-from Original.flow",
|
|
776
899
|
result: { Path: "/work/Merged.flow", Nodes: 3, Edges: 2 }
|
|
777
900
|
},
|
|
778
901
|
case: {
|
|
@@ -781,13 +904,14 @@ var MERGE_EXAMPLES = {
|
|
|
781
904
|
result: { Path: "/work/merged.caseplan.json", Stages: 3 }
|
|
782
905
|
},
|
|
783
906
|
bpmn: {
|
|
784
|
-
description: "Merge
|
|
785
|
-
command: "uip maestro bpmn merge
|
|
907
|
+
description: "Merge the edited source back into the original BPMN artifact, in place, keeping untouched elements byte for byte",
|
|
908
|
+
command: "uip maestro bpmn merge Approval.bpmn.ts --original Approval.bpmn",
|
|
786
909
|
result: {
|
|
787
|
-
Path: "/work/
|
|
910
|
+
Path: "/work/Approval.bpmn",
|
|
788
911
|
Preserved: 5,
|
|
789
912
|
Authored: 1,
|
|
790
|
-
Removed: 0
|
|
913
|
+
Removed: 0,
|
|
914
|
+
Baseline: "derived"
|
|
791
915
|
}
|
|
792
916
|
}
|
|
793
917
|
};
|
|
@@ -795,10 +919,14 @@ var registerMergeCommand = (program, family) => {
|
|
|
795
919
|
const command = program.command("merge <edited>").description(`Merge an edited ${family} with its original artifact.`).option("--original <file>", "Original artifact to merge into (required)").option("-o, --output-file <file>", "Merged output path").allowExcessArguments(true);
|
|
796
920
|
addDeprecatedOptionAlias(command, "--output <file>", "--output-file");
|
|
797
921
|
if (family !== "case") {
|
|
798
|
-
command.option("--baseline <file>", "Compiled pristine decompile");
|
|
922
|
+
command.option("--baseline <file>", family === "bpmn" ? "Compiled pristine decompile (derived from --original when <edited> is a .bpmn.ts)" : "Compiled pristine decompile");
|
|
799
923
|
}
|
|
800
924
|
if (family === "flow") {
|
|
801
925
|
command.option("--strict", "Refuse when the no-edit round trip (--baseline) differs from the original");
|
|
926
|
+
command.option("--baseline-from <file>", "Build the baseline from this original .flow instead of --baseline");
|
|
927
|
+
}
|
|
928
|
+
if (family !== "case") {
|
|
929
|
+
command.option("--library <dir>", "Connector library for the compiles merge runs (defaults to the pulled registry)").option("--bindings <file>", "bindings.json for the compiles merge runs");
|
|
802
930
|
}
|
|
803
931
|
const example = MERGE_EXAMPLES[family];
|
|
804
932
|
command.examples(sdkCliExample(family, "merge", example.description, example.command, example.result)).trackedAction(processContext, async (first, options, cmd) => {
|
|
@@ -820,23 +948,65 @@ var registerMergeCommand = (program, family) => {
|
|
|
820
948
|
addValue(tail, "--baseline", options.baseline);
|
|
821
949
|
if (options.strict)
|
|
822
950
|
tail.push("--strict");
|
|
951
|
+
const editedSource = edited.endsWith(".ts");
|
|
952
|
+
const compiles = family !== "case" && (options.baselineFrom !== undefined || editedSource);
|
|
953
|
+
const compileArgs = family !== "case" ? await mergeCompileArgs(compiles, options) : [];
|
|
823
954
|
const code = await delegateToMaestroBuilderSdk({
|
|
824
955
|
family,
|
|
825
956
|
commandVerb: "merge",
|
|
826
|
-
argv: [
|
|
957
|
+
argv: [
|
|
958
|
+
edited,
|
|
959
|
+
"--original",
|
|
960
|
+
original,
|
|
961
|
+
...tail,
|
|
962
|
+
...compileArgs
|
|
963
|
+
],
|
|
827
964
|
...forwarded.length > 0 ? { passthrough: [...forwarded] } : {},
|
|
828
|
-
...
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
because: "--strict on flow merge"
|
|
832
|
-
}
|
|
833
|
-
} : {}
|
|
965
|
+
...compiles ? { requiresConnectorLibrary: true } : {},
|
|
966
|
+
...family === "flow" ? flowMergeSdkGate(compileArgs.length > 0, editedSource, options) : {},
|
|
967
|
+
...family === "bpmn" ? bpmnMergeSdkGate(compileArgs.length > 0, editedSource) : {}
|
|
834
968
|
});
|
|
835
969
|
if (code !== 0)
|
|
836
970
|
processContext.exit(code);
|
|
837
971
|
});
|
|
838
972
|
passThroughToSdk(command, { extraOperands: "allow" });
|
|
839
973
|
};
|
|
974
|
+
async function mergeCompileArgs(compiles, options) {
|
|
975
|
+
const argv = [];
|
|
976
|
+
addValue(argv, "--baseline-from", options.baselineFrom);
|
|
977
|
+
addValue(argv, "--library", compiles ? await resolveLibraryOption2(options.library) : options.library);
|
|
978
|
+
addValue(argv, "--bindings", options.bindings);
|
|
979
|
+
return argv;
|
|
980
|
+
}
|
|
981
|
+
function flowMergeSdkGate(sendsCompileArgs, editedSource, options) {
|
|
982
|
+
if (sendsCompileArgs || editedSource) {
|
|
983
|
+
return {
|
|
984
|
+
requiresSdkVersion: {
|
|
985
|
+
version: FLOW_MERGE_COMPILE_VERSION,
|
|
986
|
+
because: options.baselineFrom !== undefined || options.library !== undefined || options.bindings !== undefined ? "--baseline-from, --library or --bindings on flow merge" : "an edited .flow.ts on flow merge"
|
|
987
|
+
}
|
|
988
|
+
};
|
|
989
|
+
}
|
|
990
|
+
if (options.strict) {
|
|
991
|
+
return {
|
|
992
|
+
requiresSdkVersion: {
|
|
993
|
+
version: FLOW_MERGE_STRICT_VERSION,
|
|
994
|
+
because: "--strict on flow merge"
|
|
995
|
+
}
|
|
996
|
+
};
|
|
997
|
+
}
|
|
998
|
+
return {};
|
|
999
|
+
}
|
|
1000
|
+
function bpmnMergeSdkGate(sendsCompileArgs, editedSource) {
|
|
1001
|
+
if (!sendsCompileArgs && !editedSource)
|
|
1002
|
+
return {};
|
|
1003
|
+
return {
|
|
1004
|
+
requiresSdkCapability: {
|
|
1005
|
+
capability: BPMN_MERGE_SOURCE_CAPABILITY,
|
|
1006
|
+
because: editedSource ? "an edited .bpmn.ts on bpmn merge" : "--library or --bindings on bpmn merge"
|
|
1007
|
+
}
|
|
1008
|
+
};
|
|
1009
|
+
}
|
|
840
1010
|
// ../builder-sdk/src/index.ts
|
|
841
1011
|
if (!flowSdkRunner())
|
|
842
1012
|
registerFlowSdkRunner(nodeFlowSdkRunner);
|
|
@@ -847,13 +1017,13 @@ var syncCompiledCaseBindings = async (data) => {
|
|
|
847
1017
|
const path = typeof reported === "string" ? reported : undefined;
|
|
848
1018
|
if (path === undefined)
|
|
849
1019
|
return { ok: true };
|
|
850
|
-
const { bindingIdentity, bindingsV2PathFor, syncCaseBindings } = await import("./case-bindings-service-
|
|
1020
|
+
const { bindingIdentity, bindingsV2PathFor, syncCaseBindings } = await import("./case-bindings-service-5r7c70kz.js");
|
|
851
1021
|
const fs = getFileSystem2();
|
|
852
1022
|
const sidecar = bindingsV2PathFor(path);
|
|
853
1023
|
if (!await fs.exists(sidecar)) {
|
|
854
1024
|
return { ok: true };
|
|
855
1025
|
}
|
|
856
|
-
const { readBindingsV2Resources, serializeBindingsV2File } = await import("./bindings-v2-
|
|
1026
|
+
const { readBindingsV2Resources, serializeBindingsV2File } = await import("./bindings-v2-wjgg92tj.js");
|
|
857
1027
|
const read = async () => readBindingsV2Resources(await fs.readFile(sidecar, "utf-8") ?? "") ?? [];
|
|
858
1028
|
const sdkWritten = await read();
|
|
859
1029
|
const result = await syncCaseBindings(path);
|
|
@@ -914,4 +1084,4 @@ export {
|
|
|
914
1084
|
registerCaseAuthoringCommands
|
|
915
1085
|
};
|
|
916
1086
|
|
|
917
|
-
//# debugId=
|
|
1087
|
+
//# debugId=58347904F8219F9C64756E2164756E21
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
readBindingsV2Resources2,
|
|
7
7
|
diffBindingsV22,
|
|
8
8
|
hasBindingsV2Difference2
|
|
9
|
-
} from "./packager-tool-
|
|
9
|
+
} from "./packager-tool-qzyb1eac.js";
|
|
10
10
|
import"./packager-tool-68648y3j.js";
|
|
11
11
|
import {
|
|
12
12
|
BINDINGS_VERSION
|
|
13
|
-
} from "./packager-tool-
|
|
14
|
-
import"./packager-tool-
|
|
15
|
-
import"./packager-tool-
|
|
13
|
+
} from "./packager-tool-00ck60cc.js";
|
|
14
|
+
import"./packager-tool-j8mnpsv8.js";
|
|
15
|
+
import"./packager-tool-p64w2wrt.js";
|
|
16
16
|
export {
|
|
17
17
|
BINDINGS_V2_FILE_NAME2 as BINDINGS_V2_FILE_NAME,
|
|
18
18
|
CONNECTION_ID_PROPERTY2 as CONNECTION_ID_PROPERTY,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// src/services/business-rule-export.ts
|
|
2
2
|
async function readBusinessRuleEntryPointAsync(entry) {
|
|
3
|
-
const { getSolutionAuthContext } = await import("./solution-auth-
|
|
3
|
+
const { getSolutionAuthContext } = await import("./solution-auth-yb1twb9d.js");
|
|
4
4
|
const {
|
|
5
5
|
createResourceBuilderServices,
|
|
6
6
|
exportResourceDefinitionAsync,
|
|
7
7
|
getRemoteResourceClients,
|
|
8
8
|
readSpecEntryPoints,
|
|
9
9
|
toCatalogReference
|
|
10
|
-
} = await import("./index-
|
|
10
|
+
} = await import("./index-r16ndadh.js");
|
|
11
11
|
await getSolutionAuthContext({});
|
|
12
12
|
const { importer } = getRemoteResourceClients(await createResourceBuilderServices());
|
|
13
13
|
const folder = entry.folders?.[0];
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import"./packager-tool-1wgav5ma.js";
|
|
2
2
|
import"./packager-tool-yh8mmj3p.js";
|
|
3
|
-
import"./packager-tool-
|
|
4
|
-
import"./packager-tool-
|
|
3
|
+
import"./packager-tool-0nbcqyvp.js";
|
|
4
|
+
import"./packager-tool-p64w2wrt.js";
|
|
5
5
|
import {
|
|
6
6
|
catchError2
|
|
7
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-j8mnpsv8.js";
|
|
8
8
|
import {
|
|
9
9
|
carryCaseRoles,
|
|
10
10
|
carryCanvasNotes
|
|
11
|
-
} from "./packager-tool-
|
|
12
|
-
import"./packager-tool-
|
|
11
|
+
} from "./packager-tool-0gmnk7sb.js";
|
|
12
|
+
import"./packager-tool-engs9gvj.js";
|
|
13
13
|
|
|
14
14
|
// src/services/sdd-convert/previous-plan.ts
|
|
15
15
|
var readPlanAt = async (out) => {
|
|
16
|
-
const { getFileSystemAsync } = await import("./index-
|
|
16
|
+
const { getFileSystemAsync } = await import("./index-y7v9rkq9.js");
|
|
17
17
|
const fs = await getFileSystemAsync();
|
|
18
18
|
if (!await fs.exists(out))
|
|
19
19
|
return { plan: undefined };
|