@uipath/maestro-tool 1.201.0-preview.115 → 1.201.0-preview.122
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-de0qdv9t.js → authoring-amyhkfkn.js} +4 -3
- package/dist/{authoring-gqzd8ngc.js → authoring-bmr0pg2g.js} +4 -3
- package/dist/{authoring-0dk6xpfc.js → authoring-z9g5eh42.js} +4 -3
- package/dist/bpmn-refresh-service-m1y0cwfs.js +235 -0
- package/dist/case-pack-service-728c95dn.js +124 -0
- package/dist/{conversion-MQ7TJMHW-avnhwgjk.js → conversion-W6HMHBWW-44avwx80.js} +42 -34
- package/dist/{de-JT3SUGT4-msgpbdge.js → de-B2KIY5TC-81f703v3.js} +14 -5
- package/dist/{de-3RMZHIP6-1na18a74.js → de-K6MLR24N-00fjz82b.js} +474 -51
- package/dist/{de-3RMZHIP6-QW5DEMLQ-fw64syvn.js → de-K6MLR24N-5N5XGLH6-gbwpvdz4.js} +476 -53
- package/dist/{de-LVBY3VVG-tc58p3x6.js → de-WMKOGI7B-r1821wpe.js} +16 -7
- package/dist/de-XLT4QPIP-0rtw349w.js +32 -0
- package/dist/{en-JGJNQYMG-BSN3EE6C-mhg57v8h.js → en-ILA4HPE5-ALHGESZE-zrv4qss8.js} +267 -7
- package/dist/{en-JGJNQYMG-xq29xvhk.js → en-ILA4HPE5-fhwvq92r.js} +264 -4
- package/dist/{en-H54NJOH6-30ht8n64.js → en-P6PNWNTO-g1f6cjh5.js} +10 -4
- package/dist/{en-4UFXRW7N-mqabr9tf.js → en-X4DLPKLJ-dt1wtdm7.js} +17 -5
- package/dist/{es-GJOELELT-w1d3agm2.js → es-BBX4AUJX-h99fcr53.js} +14 -5
- package/dist/{es-CI4AE5B5-55sgqk64.js → es-BVPGJUWA-9gk2g9yb.js} +16 -7
- package/dist/{es-EYHYM5C4-RMLHZ2LF-s0fc3pd6.js → es-HTQSD352-YTAEDCE5-nhsbg581.js} +470 -47
- package/dist/{es-EYHYM5C4-3bajghda.js → es-HTQSD352-m9rr3f0g.js} +468 -45
- package/dist/{es-MX-AMZIGU27-5pembt6k.js → es-MX-3SP2SSV6-f20qspbr.js} +14 -5
- package/dist/{es-MX-QSQP2KWV-qvgkwvz2.js → es-MX-FOX525CG-87g500gr.js} +474 -51
- package/dist/{es-MX-QSQP2KWV-XR5DWKNF-kp7pk2s4.js → es-MX-FOX525CG-HLM27OEL-whr0t9v3.js} +476 -53
- package/dist/es-MX-OKNDG2NH-c1k1s1tg.js +32 -0
- package/dist/{es-MX-OLZNAYY5-30cmv1dx.js → es-MX-U6YL5KQX-ynwxdjr8.js} +16 -7
- package/dist/es-NQICVYSQ-aa9z3nhs.js +32 -0
- package/dist/{fr-FXFJQRD3-F5HV2VS7-pwdze89j.js → fr-54THJ4QH-IGABNGU6-fpzw2mba.js} +475 -52
- package/dist/{fr-FXFJQRD3-rfztd3e5.js → fr-54THJ4QH-d6ezjbhw.js} +473 -50
- package/dist/{fr-CCN6ZO5E-x2akzsjt.js → fr-EKTTDR7Z-bmpwp31r.js} +16 -7
- package/dist/{fr-LYFYWWCC-nn4reak0.js → fr-FSTBVVGK-t3y57xrb.js} +14 -5
- package/dist/fr-PFHIL7YZ-cxnshwa8.js +32 -0
- package/dist/{index-2dvhe3at.js → index-19xdja3f.js} +23 -1
- package/dist/index-6f701nk3.js +16491 -0
- package/dist/{index-mrht9sxd.js → index-8bsngk9y.js} +101787 -90880
- package/dist/{index-w23k88b5.js → index-p50kx6jv.js} +202 -64
- package/dist/index-xvy3chjw.js +33 -0
- package/dist/{index-y93b9sgy.js → index-z4fsz3f9.js} +57 -3
- package/dist/index.js +18 -14
- package/dist/{ja-IRXXIG6Q-b3att2bw.js → ja-FW33BJBW-htfk4d8t.js} +14 -5
- package/dist/{ja-G7NJYQ42-ve4gadd7.js → ja-MHUPLSWO-3qwy4jc0.js} +470 -47
- package/dist/{ja-G7NJYQ42-X76DVL7A-9p8b5115.js → ja-MHUPLSWO-CS3KE4Y3-mbtkzwd7.js} +472 -49
- package/dist/ja-P4OSE367-8ywxep9a.js +32 -0
- package/dist/{ja-O2NEV5D6-nt9rhd8c.js → ja-Y2YBTXNN-96cvy5av.js} +16 -7
- package/dist/{ko-M32WKZ3I-5td5jsw7.js → ko-PDO5AXNW-d653t4pc.js} +14 -5
- package/dist/ko-PYOS2KJP-5sbj5bp8.js +32 -0
- package/dist/{ko-7XWV2SEQ-chk3y7aj.js → ko-S33XAV26-cxf4dn2t.js} +16 -7
- package/dist/{ko-QDHECDTM-6WJAKMQI-0fpd4dqj.js → ko-XPJTXIKK-DNSW4KYQ-956vp61f.js} +469 -46
- package/dist/{ko-QDHECDTM-zmbqs9pr.js → ko-XPJTXIKK-w1hs4px7.js} +467 -44
- package/dist/{node-ked5b1gy.js → node-pddcw4qp.js} +9 -4
- package/dist/{node-strategy-fwj45942.js → node-strategy-8gzp67xs.js} +4 -4
- package/dist/{packager-tool-kvgt1s4z.js → packager-tool-03knb0er.js} +287 -22
- package/dist/packager-tool-0gpvnxvy.js +533 -0
- package/dist/{packager-tool-1yepbxq4.js → packager-tool-13zbtmhf.js} +124 -23
- package/dist/{packager-tool-973f0r2g.js → packager-tool-1yy9x4vk.js} +17 -5
- package/dist/{packager-tool-jqtspg41.js → packager-tool-3wf3tkrc.js} +11 -5
- package/dist/{packager-tool-dmnhzh9p.js → packager-tool-3yemmykf.js} +10159 -16866
- package/dist/packager-tool-62rhg72x.js +35898 -0
- package/dist/{packager-tool-m2vn3cep.js → packager-tool-6n706yfk.js} +49 -48
- package/dist/packager-tool-76xq3x08.js +10154 -0
- package/dist/packager-tool-8qnqz22v.js +15 -0
- package/dist/{packager-tool-00w2qnsw.js → packager-tool-b70x5ecn.js} +239 -33
- package/dist/{packager-tool-htc0z863.js → packager-tool-cqrsre00.js} +282 -27
- package/dist/{packager-tool-5fpetbc1.js → packager-tool-e0ktn9s5.js} +3257 -2669
- package/dist/{packager-tool-jxb33prs.js → packager-tool-g50rxa1m.js} +65 -21
- package/dist/{packager-tool-066fzdae.js → packager-tool-gh6pjm6h.js} +204 -128
- package/dist/{packager-tool-anfb35wg.js → packager-tool-h1fkw0s1.js} +6939 -3736
- package/dist/packager-tool-j96qf6qe.js +9285 -0
- package/dist/packager-tool-jpcm3xas.js +12 -0
- package/dist/{packager-tool-b7pdksch.js → packager-tool-mpwhb67r.js} +208 -544
- package/dist/packager-tool-psy06tjw.js +45 -0
- package/dist/{packager-tool-fr5b9qs6.js → packager-tool-pvgqbm48.js} +3 -3
- package/dist/{packager-tool-fj5bja81.js → packager-tool-z3v4jej7.js} +5 -104
- package/dist/packager-tool.js +140 -9
- package/dist/{pt-VXJT4WUJ-nwkc9k2p.js → pt-4JEPEAST-40npwxyw.js} +471 -48
- package/dist/{pt-VXJT4WUJ-M3IR7CL5-1f2ph8gm.js → pt-4JEPEAST-JO5WN33S-ccdbdab2.js} +473 -50
- package/dist/{pt-BR-Z4J3LEEO-cf33d2zv.js → pt-BR-JO45SCNI-4kbfnzc4.js} +16 -7
- package/dist/{pt-BR-57EHXZKB-8g83gr5g.js → pt-BR-LQH3RSBB-kyb4jmcw.js} +14 -5
- package/dist/{pt-BR-SADBLGXA-WG4Q265J-w9tshygt.js → pt-BR-TV7NR3ID-PDSSHRHU-nddwzj29.js} +472 -49
- package/dist/{pt-BR-SADBLGXA-yd89fdy2.js → pt-BR-TV7NR3ID-vgd26pj1.js} +470 -47
- package/dist/pt-BR-Z3TUDJHM-n7ngej6s.js +32 -0
- package/dist/{pt-VNM2XWHA-62z625rh.js → pt-JLZYSSXX-7jth254x.js} +14 -5
- package/dist/pt-KSBWHAVQ-hd52bpsz.js +32 -0
- package/dist/{pt-CRSN3TCU-txxbbcxm.js → pt-W3NA4LIZ-f02gapvs.js} +16 -7
- package/dist/{ro-RISZ75LL-zwztp9j5.js → ro-E2EBPQGT-vn573vcr.js} +14 -5
- package/dist/{ro-7JHKFGCH-H3RYKSCL-4w49rx4m.js → ro-RKJ74FV3-QS3I6XKJ-kb31d85k.js} +475 -52
- package/dist/{ro-7JHKFGCH-hbtkeqdr.js → ro-RKJ74FV3-qn0ey39v.js} +473 -50
- package/dist/ro-VZUZTAMR-tccygznf.js +32 -0
- package/dist/{ro-WMQEVD7D-6mtq0e6b.js → ro-WLKX6HF5-fcbe2zz8.js} +16 -7
- package/dist/ru-GSCT4ARZ-3TVTUGWP-bbg6360z.js +15 -0
- package/dist/{serialization-JNQMGOXW-3g31rma2.js → serialization-GTFWODSH-e6yv9561.js} +10 -8
- package/dist/{tool-fakm5dew.js → tool-7dr9zbas.js} +1048 -704
- package/dist/{tool-1kq24429.js → tool-sma0ddpb.js} +335 -212
- package/dist/tool.js +16 -12
- package/dist/{tr-UCMB7W3T-xmxp2naq.js → tr-3U2W2XCA-zg3zcmq3.js} +15 -6
- package/dist/tr-W4AVRSQ4-bt3qqqdy.js +32 -0
- package/dist/{tr-Q6IHBFK7-BEUWO5CI-29rgfwjy.js → tr-X7R6GQNB-VMEZAWRJ-vdbjqw23.js} +484 -61
- package/dist/{tr-Q6IHBFK7-zs9rsm1b.js → tr-X7R6GQNB-shwv16dz.js} +482 -59
- package/dist/{tr-AUPQF34V-y3dhtj0w.js → tr-ZUUSMHER-pfn5dq1r.js} +14 -5
- package/dist/zh-CN-6YRAN57T-j7jp34ws.js +32 -0
- package/dist/{zh-CN-3BPA3WIX-JDICNKGH-m87940q5.js → zh-CN-FEZ24J4A-LSEMG63K-db8kf6rm.js} +472 -49
- package/dist/{zh-CN-3BPA3WIX-c5ts2m5v.js → zh-CN-FEZ24J4A-q5b5x20w.js} +470 -47
- package/dist/{zh-CN-2QOHEFC5-ryjb2byk.js → zh-CN-IPZYQR3P-1h76csc4.js} +16 -7
- package/dist/{zh-CN-3INOX2E5-txhr8e18.js → zh-CN-YFKQ7HBX-w98q5zqf.js} +14 -5
- package/dist/{zh-TW-UI34YLZQ-j79rg6b7.js → zh-TW-CP5PCVEJ-wvbxf7c7.js} +14 -5
- package/dist/{zh-TW-QCJEQC5S-b1v637hd.js → zh-TW-GKSCT6NW-4n1yfre0.js} +464 -41
- package/dist/{zh-TW-QCJEQC5S-DQ3454QP-y8vvrebz.js → zh-TW-GKSCT6NW-JLMWTDAF-g2smq1gm.js} +466 -43
- package/dist/zh-TW-SO2245GN-m5kh88bg.js +32 -0
- package/dist/{zh-TW-Q5QSSTS6-6y7yjbbn.js → zh-TW-YPVSQVGT-wbybwpwt.js} +16 -7
- package/package.json +2 -2
- package/dist/bpmn-refresh-service-vksd8z0m.js +0 -451
- package/dist/de-CS2KUCZ6-j5a38g9p.js +0 -20
- package/dist/es-MX-3MRZG6V4-9z56akxp.js +0 -20
- package/dist/es-QBAGOKHO-b2azze22.js +0 -20
- package/dist/fr-HVOCQCNI-1zn75qzy.js +0 -20
- package/dist/ja-VYAZOLWC-nbagzgre.js +0 -20
- package/dist/ko-EZTVBPMZ-9qq2mrrz.js +0 -20
- package/dist/packager-tool-ahm4ymrp.js +0 -12
- package/dist/packager-tool-kkwtddht.js +0 -13822
- package/dist/pt-3TKAWGMJ-58y42w7x.js +0 -20
- package/dist/pt-BR-ASMQE3WA-9wb74cqx.js +0 -20
- package/dist/ro-A65KBZGL-qnwqqezz.js +0 -20
- package/dist/ru-GSCT4ARZ-YSDBAAM2-ha88ztsj.js +0 -15
- package/dist/tr-Z7YHMEX6-daq3vjbh.js +0 -20
- package/dist/zh-CN-W7FK4GLU-vn3n8fcq.js +0 -20
- package/dist/zh-TW-PHOEUN3F-t56cjsgw.js +0 -20
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
registerCheckCommand,
|
|
3
3
|
registerCompileCommand,
|
|
4
4
|
registerDecompileCommand
|
|
5
|
-
} from "./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
5
|
+
} from "./packager-tool-g50rxa1m.js";
|
|
6
|
+
import"./packager-tool-psy06tjw.js";
|
|
7
|
+
import"./packager-tool-gh6pjm6h.js";
|
|
7
8
|
import"./packager-tool-1cb0d5e0.js";
|
|
8
9
|
import"./packager-tool-wckvcay0.js";
|
|
9
10
|
|
|
@@ -17,4 +18,4 @@ export {
|
|
|
17
18
|
registerCaseAuthoringCommands
|
|
18
19
|
};
|
|
19
20
|
|
|
20
|
-
//# debugId=
|
|
21
|
+
//# debugId=78E7E6936790D36F64756E2164756E21
|
|
@@ -2,8 +2,9 @@ import {
|
|
|
2
2
|
registerCheckCommand,
|
|
3
3
|
registerCompileCommand,
|
|
4
4
|
registerTidyCommand
|
|
5
|
-
} from "./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
5
|
+
} from "./packager-tool-g50rxa1m.js";
|
|
6
|
+
import"./packager-tool-psy06tjw.js";
|
|
7
|
+
import"./packager-tool-gh6pjm6h.js";
|
|
7
8
|
import"./packager-tool-1cb0d5e0.js";
|
|
8
9
|
import"./packager-tool-wckvcay0.js";
|
|
9
10
|
|
|
@@ -17,4 +18,4 @@ export {
|
|
|
17
18
|
registerBpmnAuthoringCommands
|
|
18
19
|
};
|
|
19
20
|
|
|
20
|
-
//# debugId=
|
|
21
|
+
//# debugId=0CDCE196CF955D8A64756E2164756E21
|
|
@@ -3,8 +3,9 @@ import {
|
|
|
3
3
|
registerCompileCommand,
|
|
4
4
|
registerDecompileCommand,
|
|
5
5
|
registerMergeCommand
|
|
6
|
-
} from "./packager-tool-
|
|
7
|
-
import"./packager-tool-
|
|
6
|
+
} from "./packager-tool-g50rxa1m.js";
|
|
7
|
+
import"./packager-tool-psy06tjw.js";
|
|
8
|
+
import"./packager-tool-gh6pjm6h.js";
|
|
8
9
|
import"./packager-tool-1cb0d5e0.js";
|
|
9
10
|
import"./packager-tool-wckvcay0.js";
|
|
10
11
|
|
|
@@ -19,4 +20,4 @@ export {
|
|
|
19
20
|
registerFlowAuthoringCommands
|
|
20
21
|
};
|
|
21
22
|
|
|
22
|
-
//# debugId=
|
|
23
|
+
//# debugId=112658AC6F582E6364756E2164756E21
|
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BpmnValidateService
|
|
3
|
+
} from "./packager-tool-z3v4jej7.js";
|
|
4
|
+
import"./packager-tool-3yemmykf.js";
|
|
5
|
+
import"./packager-tool-psy06tjw.js";
|
|
6
|
+
import"./packager-tool-76xq3x08.js";
|
|
7
|
+
import {
|
|
8
|
+
extractErrorMessageSync,
|
|
9
|
+
isGuid
|
|
10
|
+
} from "./packager-tool-gh6pjm6h.js";
|
|
11
|
+
import"./packager-tool-9qecd4wb.js";
|
|
12
|
+
import"./packager-tool-qa9gftnj.js";
|
|
13
|
+
import {
|
|
14
|
+
getFileSystem
|
|
15
|
+
} from "./packager-tool-1cb0d5e0.js";
|
|
16
|
+
import"./packager-tool-5arsyj36.js";
|
|
17
|
+
import"./packager-tool-13zbtmhf.js";
|
|
18
|
+
import"./packager-tool-cqrsre00.js";
|
|
19
|
+
import"./packager-tool-sc961w0q.js";
|
|
20
|
+
import"./packager-tool-gbgfwx8f.js";
|
|
21
|
+
import"./packager-tool-e0ktn9s5.js";
|
|
22
|
+
import {
|
|
23
|
+
BPMN_PACKAGE_FILES,
|
|
24
|
+
buildBpmnPackageMetadata,
|
|
25
|
+
buildConnectionResources,
|
|
26
|
+
deriveBpmnEntryPoints,
|
|
27
|
+
formatBpmnPackageFile,
|
|
28
|
+
isJsonObject,
|
|
29
|
+
parseBpmnProcesses,
|
|
30
|
+
parseJson,
|
|
31
|
+
parseOptionalJson
|
|
32
|
+
} from "./packager-tool-j96qf6qe.js";
|
|
33
|
+
import"./packager-tool-1yy9x4vk.js";
|
|
34
|
+
import"./packager-tool-c23zrhj8.js";
|
|
35
|
+
import"./packager-tool-wckvcay0.js";
|
|
36
|
+
|
|
37
|
+
// src/services/bpmn-refresh-service.ts
|
|
38
|
+
class BpmnRefreshService {
|
|
39
|
+
fs;
|
|
40
|
+
createUuid;
|
|
41
|
+
constructor(fs = getFileSystem(), createUuid = () => crypto.randomUUID()) {
|
|
42
|
+
this.fs = fs;
|
|
43
|
+
this.createUuid = createUuid;
|
|
44
|
+
}
|
|
45
|
+
async execute(projectPath) {
|
|
46
|
+
const resolvedProjectPath = this.fs.path.resolve(projectPath);
|
|
47
|
+
const stats = await this.fs.stat(resolvedProjectPath);
|
|
48
|
+
if (!stats?.isDirectory()) {
|
|
49
|
+
throw new Error(`Maestro project directory does not exist: ${resolvedProjectPath}`);
|
|
50
|
+
}
|
|
51
|
+
const release = await this.fs.acquireLock(this.fs.path.join(resolvedProjectPath, ".bpmn-refresh"));
|
|
52
|
+
try {
|
|
53
|
+
const bpmnFile = await this.findBpmnFile(resolvedProjectPath);
|
|
54
|
+
await this.readProjectFile(resolvedProjectPath);
|
|
55
|
+
const bpmnPath = this.fs.path.join(resolvedProjectPath, bpmnFile);
|
|
56
|
+
const xml = await this.fs.readFile(bpmnPath, "utf-8");
|
|
57
|
+
if (!xml) {
|
|
58
|
+
throw new Error(`BPMN file is empty: ${bpmnPath}`);
|
|
59
|
+
}
|
|
60
|
+
const existing = await this.readGeneratedFiles(resolvedProjectPath);
|
|
61
|
+
const contents = await this.deriveFiles(bpmnFile, xml, existing);
|
|
62
|
+
await this.validateProject(resolvedProjectPath, bpmnFile, contents);
|
|
63
|
+
const planned = BPMN_PACKAGE_FILES.map((name) => ({
|
|
64
|
+
name,
|
|
65
|
+
path: this.fs.path.join(resolvedProjectPath, name),
|
|
66
|
+
content: contents[name],
|
|
67
|
+
previous: existing[name]
|
|
68
|
+
}));
|
|
69
|
+
const changed = planned.filter((file) => file.previous !== file.content);
|
|
70
|
+
await this.writeFilesWithRollback(changed);
|
|
71
|
+
return {
|
|
72
|
+
projectPath: resolvedProjectPath,
|
|
73
|
+
bpmnFile,
|
|
74
|
+
writtenFiles: changed.map((file) => file.name),
|
|
75
|
+
unchangedFiles: planned.filter((file) => file.previous === file.content).map((file) => file.name)
|
|
76
|
+
};
|
|
77
|
+
} finally {
|
|
78
|
+
await release();
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
async findBpmnFile(projectPath) {
|
|
82
|
+
const entries = await this.fs.readdir(projectPath);
|
|
83
|
+
const files = [];
|
|
84
|
+
for (const entry of entries.filter((name) => name.endsWith(".bpmn"))) {
|
|
85
|
+
if ((await this.fs.stat(this.fs.path.join(projectPath, entry)))?.isFile()) {
|
|
86
|
+
files.push(entry);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
files.sort((left, right) => left.localeCompare(right));
|
|
90
|
+
if (files.length !== 1) {
|
|
91
|
+
throw new Error(`Expected one BPMN file in ${projectPath}, found ${files.length}.`);
|
|
92
|
+
}
|
|
93
|
+
return files[0];
|
|
94
|
+
}
|
|
95
|
+
async readProjectFile(projectPath) {
|
|
96
|
+
const path = this.fs.path.join(projectPath, "project.uiproj");
|
|
97
|
+
const raw = await this.fs.readFile(path, "utf-8");
|
|
98
|
+
if (raw === null)
|
|
99
|
+
throw new Error(`Required file is missing: ${path}`);
|
|
100
|
+
const project = parseJson(raw, "project.uiproj");
|
|
101
|
+
if (project.ProjectType !== "ProcessOrchestration") {
|
|
102
|
+
throw new Error('project.uiproj must set "ProjectType" to "ProcessOrchestration".');
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async readGeneratedFiles(projectPath) {
|
|
106
|
+
const result = {};
|
|
107
|
+
for (const name of BPMN_PACKAGE_FILES) {
|
|
108
|
+
result[name] = await this.fs.readFile(this.fs.path.join(projectPath, name), "utf-8");
|
|
109
|
+
}
|
|
110
|
+
return result;
|
|
111
|
+
}
|
|
112
|
+
async deriveFiles(bpmnFile, xml, existing) {
|
|
113
|
+
const processes = await parseBpmnProcesses(xml);
|
|
114
|
+
const entryPoints = deriveBpmnEntryPoints(processes);
|
|
115
|
+
const existingMetadata = {
|
|
116
|
+
"entry-points.json": null,
|
|
117
|
+
"bindings_v2.json": null,
|
|
118
|
+
"operate.json": null,
|
|
119
|
+
"package-descriptor.json": null
|
|
120
|
+
};
|
|
121
|
+
for (const name of [
|
|
122
|
+
"entry-points.json",
|
|
123
|
+
"bindings_v2.json",
|
|
124
|
+
"operate.json"
|
|
125
|
+
]) {
|
|
126
|
+
existingMetadata[name] = parseOptionalJson(existing[name], name);
|
|
127
|
+
}
|
|
128
|
+
const existingOperate = existingMetadata["operate.json"];
|
|
129
|
+
const oldProjectId = existingOperate?.projectId;
|
|
130
|
+
const projectId = typeof oldProjectId === "string" && isGuid(oldProjectId) ? oldProjectId : this.createUuid();
|
|
131
|
+
if (!isGuid(projectId)) {
|
|
132
|
+
throw new Error(`Generated project id "${projectId}" must be a GUID.`);
|
|
133
|
+
}
|
|
134
|
+
const oldBindings = existingMetadata["bindings_v2.json"];
|
|
135
|
+
const existingResources = Array.isArray(oldBindings?.resources) ? oldBindings.resources.filter(isJsonObject) : [];
|
|
136
|
+
const resources = buildConnectionResources(processes, existingResources);
|
|
137
|
+
const metadata = buildBpmnPackageMetadata({
|
|
138
|
+
bpmnFile,
|
|
139
|
+
entryPoints,
|
|
140
|
+
projectId,
|
|
141
|
+
resources,
|
|
142
|
+
existing: existingMetadata
|
|
143
|
+
});
|
|
144
|
+
const contents = Object.fromEntries(BPMN_PACKAGE_FILES.map((name) => [
|
|
145
|
+
name,
|
|
146
|
+
formatBpmnPackageFile(metadata[name])
|
|
147
|
+
]));
|
|
148
|
+
return contents;
|
|
149
|
+
}
|
|
150
|
+
async validateProject(projectPath, bpmnFile, contents) {
|
|
151
|
+
const proposedFiles = new Map(BPMN_PACKAGE_FILES.map((name) => [
|
|
152
|
+
this.fs.path.join(projectPath, name),
|
|
153
|
+
contents[name]
|
|
154
|
+
]));
|
|
155
|
+
const fileSystem = proposedFileSystem(this.fs, proposedFiles);
|
|
156
|
+
const result = await new BpmnValidateService(fileSystem).validateFile(this.fs.path.join(projectPath, bpmnFile));
|
|
157
|
+
if (!result.success) {
|
|
158
|
+
const errors = result.issues.filter((issue) => issue.severity === "error").map((issue) => issue.ruleCode ? `${issue.ruleCode}: ${issue.message}` : issue.message);
|
|
159
|
+
throw new Error(`BPMN validation failed: ${errors.join("; ")}`);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
async writeFilesWithRollback(files) {
|
|
163
|
+
if (files.length === 0)
|
|
164
|
+
return;
|
|
165
|
+
const transactionId = this.createUuid();
|
|
166
|
+
const staged = files.map((file) => ({
|
|
167
|
+
...file,
|
|
168
|
+
stagingPath: `${file.path}.${transactionId}.tmp`,
|
|
169
|
+
rollbackPath: `${file.path}.${transactionId}.rollback`
|
|
170
|
+
}));
|
|
171
|
+
const written = [];
|
|
172
|
+
try {
|
|
173
|
+
for (const file of staged) {
|
|
174
|
+
await this.fs.writeFile(file.stagingPath, file.content);
|
|
175
|
+
}
|
|
176
|
+
for (const file of staged) {
|
|
177
|
+
await this.fs.rename(file.stagingPath, file.path);
|
|
178
|
+
written.push(file);
|
|
179
|
+
}
|
|
180
|
+
} catch (error) {
|
|
181
|
+
const rollbackErrors = [];
|
|
182
|
+
for (const file of [...written].reverse()) {
|
|
183
|
+
try {
|
|
184
|
+
await this.restoreFile(file);
|
|
185
|
+
} catch (rollbackError) {
|
|
186
|
+
rollbackErrors.push(`${file.name}: ${extractErrorMessageSync(rollbackError)}`);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
const rollbackMessage = rollbackErrors.length === 0 ? "" : ` Rollback also failed for ${rollbackErrors.join("; ")}.`;
|
|
190
|
+
throw new Error(`Could not update all BPMN package files: ${extractErrorMessageSync(error)}.${rollbackMessage}`);
|
|
191
|
+
} finally {
|
|
192
|
+
for (const file of staged) {
|
|
193
|
+
await this.fs.rm(file.stagingPath).catch(() => {
|
|
194
|
+
return;
|
|
195
|
+
});
|
|
196
|
+
await this.fs.rm(file.rollbackPath).catch(() => {
|
|
197
|
+
return;
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
async restoreFile(file) {
|
|
203
|
+
if (file.previous === null) {
|
|
204
|
+
await this.fs.rm(file.path);
|
|
205
|
+
return;
|
|
206
|
+
}
|
|
207
|
+
await this.fs.writeFile(file.rollbackPath, file.previous);
|
|
208
|
+
await this.fs.rename(file.rollbackPath, file.path);
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
function proposedFileSystem(fs, proposedFiles) {
|
|
212
|
+
return new Proxy(fs, {
|
|
213
|
+
get: (target, property, receiver) => {
|
|
214
|
+
if (property === "readFile") {
|
|
215
|
+
return async (path, options) => {
|
|
216
|
+
const proposed = proposedFiles.get(path);
|
|
217
|
+
if (proposed !== undefined) {
|
|
218
|
+
return options ? proposed : new TextEncoder().encode(proposed);
|
|
219
|
+
}
|
|
220
|
+
return options ? target.readFile(path, options) : target.readFile(path);
|
|
221
|
+
};
|
|
222
|
+
}
|
|
223
|
+
if (property === "exists") {
|
|
224
|
+
return (path) => proposedFiles.has(path) ? Promise.resolve(true) : target.exists(path);
|
|
225
|
+
}
|
|
226
|
+
const value = Reflect.get(target, property, receiver);
|
|
227
|
+
return typeof value === "function" ? value.bind(target) : value;
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
export {
|
|
232
|
+
BpmnRefreshService
|
|
233
|
+
};
|
|
234
|
+
|
|
235
|
+
//# debugId=8D2B7572BFE6BB9064756E2164756E21
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import {
|
|
2
|
+
loadCaseSchemaAsync
|
|
3
|
+
} from "./packager-tool-8qnqz22v.js";
|
|
4
|
+
import {
|
|
5
|
+
VALID_PACKAGE_NAME_REGEX
|
|
6
|
+
} from "./packager-tool-3yemmykf.js";
|
|
7
|
+
import"./packager-tool-psy06tjw.js";
|
|
8
|
+
import"./packager-tool-76xq3x08.js";
|
|
9
|
+
import {
|
|
10
|
+
catchError,
|
|
11
|
+
logger,
|
|
12
|
+
mapPackageMetadataOptions
|
|
13
|
+
} from "./packager-tool-gh6pjm6h.js";
|
|
14
|
+
import"./packager-tool-9qecd4wb.js";
|
|
15
|
+
import"./packager-tool-qa9gftnj.js";
|
|
16
|
+
import {
|
|
17
|
+
getFileSystem
|
|
18
|
+
} from "./packager-tool-1cb0d5e0.js";
|
|
19
|
+
import"./packager-tool-5arsyj36.js";
|
|
20
|
+
import"./packager-tool-13zbtmhf.js";
|
|
21
|
+
import {
|
|
22
|
+
NugetPackager,
|
|
23
|
+
ensureProjectId
|
|
24
|
+
} from "./packager-tool-6n706yfk.js";
|
|
25
|
+
import"./packager-tool-nkrmjr3a.js";
|
|
26
|
+
import"./packager-tool-cqrsre00.js";
|
|
27
|
+
import"./packager-tool-sc961w0q.js";
|
|
28
|
+
import"./packager-tool-gbgfwx8f.js";
|
|
29
|
+
import"./packager-tool-e0ktn9s5.js";
|
|
30
|
+
import"./packager-tool-1yy9x4vk.js";
|
|
31
|
+
import"./packager-tool-c23zrhj8.js";
|
|
32
|
+
import"./packager-tool-wckvcay0.js";
|
|
33
|
+
|
|
34
|
+
// ../case-tool/src/services/case-pack-service.ts
|
|
35
|
+
class CasePackService {
|
|
36
|
+
fs;
|
|
37
|
+
constructor() {
|
|
38
|
+
this.fs = getFileSystem();
|
|
39
|
+
}
|
|
40
|
+
async execute(projectPath, options) {
|
|
41
|
+
const absoluteProjectPath = this.fs.path.resolve(projectPath);
|
|
42
|
+
const absoluteOutputPath = this.fs.path.resolve(options.output);
|
|
43
|
+
const packageName = options.name || this.fs.path.basename(projectPath);
|
|
44
|
+
if (!VALID_PACKAGE_NAME_REGEX.test(packageName)) {
|
|
45
|
+
throw new Error(`Invalid package name "${packageName}". Package name can only contain letters, numbers, dots (.), underscores (_), and hyphens (-).`);
|
|
46
|
+
}
|
|
47
|
+
logger.info(`
|
|
48
|
+
Packing Case project...
|
|
49
|
+
`);
|
|
50
|
+
logger.info("Details:");
|
|
51
|
+
logger.info(` Project: ${absoluteProjectPath}`);
|
|
52
|
+
logger.info(` Package: ${packageName}@${options.version}`);
|
|
53
|
+
logger.info(` Output: ${absoluteOutputPath}`);
|
|
54
|
+
logger.info("");
|
|
55
|
+
await this.validate(absoluteProjectPath);
|
|
56
|
+
await this.convertCaseToBpmnIfNeeded(absoluteProjectPath);
|
|
57
|
+
await ensureProjectId(absoluteProjectPath, this.fs);
|
|
58
|
+
await this.fs.mkdir(absoluteOutputPath);
|
|
59
|
+
let tempDir;
|
|
60
|
+
try {
|
|
61
|
+
tempDir = await this.fs.getTempDir();
|
|
62
|
+
const stagingDir = this.fs.path.join(tempDir, "case-pack-staging");
|
|
63
|
+
await this.fs.mkdir(stagingDir);
|
|
64
|
+
await this.fs.copyDirectory(absoluteProjectPath, this.fs.path.join(stagingDir, "content"));
|
|
65
|
+
const packageId = `${packageName}.case.Case`;
|
|
66
|
+
const version = options.version || "1.0.0";
|
|
67
|
+
const nupkgPath = this.fs.path.join(absoluteOutputPath, `${packageId}.${version}.nupkg`);
|
|
68
|
+
const packager = new NugetPackager(this.fs);
|
|
69
|
+
const result = await packager.packAsync(stagingDir, {
|
|
70
|
+
id: packageId,
|
|
71
|
+
version,
|
|
72
|
+
tags: "Case",
|
|
73
|
+
...mapPackageMetadataOptions(options)
|
|
74
|
+
}, nupkgPath);
|
|
75
|
+
return {
|
|
76
|
+
packageName: `${packageName}@${options.version}`,
|
|
77
|
+
outputPath: result.outputPath
|
|
78
|
+
};
|
|
79
|
+
} finally {
|
|
80
|
+
if (tempDir) {
|
|
81
|
+
await catchError((async () => {
|
|
82
|
+
if (await this.fs.exists(tempDir)) {
|
|
83
|
+
await this.fs.rm(tempDir);
|
|
84
|
+
}
|
|
85
|
+
})());
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
async convertCaseToBpmnIfNeeded(projectPath) {
|
|
90
|
+
const caseFilePath = this.fs.path.join(projectPath, "caseplan.json");
|
|
91
|
+
if (!await this.fs.exists(caseFilePath)) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
logger.info("Converting case JSON to BPMN...");
|
|
95
|
+
const caseContent = String(await this.fs.readFile(caseFilePath, "utf-8"));
|
|
96
|
+
const { serializeCaseDiskJsonToBpmnAndRulesJson } = await loadCaseSchemaAsync();
|
|
97
|
+
const { bpmnXml: bpmn } = await serializeCaseDiskJsonToBpmnAndRulesJson(caseContent);
|
|
98
|
+
const bpmnFilePath = this.fs.path.join(projectPath, "caseplan.json.bpmn");
|
|
99
|
+
await this.fs.writeFile(bpmnFilePath, bpmn);
|
|
100
|
+
logger.info(`BPMN file written to ${bpmnFilePath}`);
|
|
101
|
+
}
|
|
102
|
+
async validate(projectPath) {
|
|
103
|
+
if (!await this.fs.exists(projectPath)) {
|
|
104
|
+
throw new Error(`Project path does not exist: ${projectPath}`);
|
|
105
|
+
}
|
|
106
|
+
const stats = await this.fs.stat(projectPath);
|
|
107
|
+
if (!stats?.isDirectory()) {
|
|
108
|
+
throw new Error(`Project path must be a directory: ${projectPath}`);
|
|
109
|
+
}
|
|
110
|
+
const descriptorPath = this.fs.path.join(projectPath, "package-descriptor.json");
|
|
111
|
+
if (!await this.fs.exists(descriptorPath)) {
|
|
112
|
+
throw new Error(`Missing package-descriptor.json in: ${projectPath}`);
|
|
113
|
+
}
|
|
114
|
+
const operatePath = this.fs.path.join(projectPath, "operate.json");
|
|
115
|
+
if (!await this.fs.exists(operatePath)) {
|
|
116
|
+
throw new Error(`Missing operate.json in: ${projectPath}`);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
export {
|
|
121
|
+
CasePackService
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
//# debugId=B44DF66BCDC6486764756E2164756E21
|
|
@@ -3,35 +3,34 @@ import {
|
|
|
3
3
|
buildConnectorHttpRequestDetail,
|
|
4
4
|
createNodeVariable,
|
|
5
5
|
findTerminalNodes,
|
|
6
|
-
getCollapsedSize,
|
|
7
6
|
getConnectorHttpRequestKey,
|
|
8
|
-
getExpandedShape,
|
|
9
7
|
getExpandedSize,
|
|
10
8
|
getLatestDefinitionByNodeType,
|
|
11
9
|
isContainerNodeManifest,
|
|
12
10
|
resolveNodeOutputTypeSchema
|
|
13
|
-
} from "./packager-tool-
|
|
11
|
+
} from "./packager-tool-h1fkw0s1.js";
|
|
14
12
|
import"./packager-tool-x8d8fpse.js";
|
|
15
|
-
import"./packager-tool-
|
|
16
|
-
import"./packager-tool-
|
|
17
|
-
import"./packager-tool-
|
|
13
|
+
import"./packager-tool-3wf3tkrc.js";
|
|
14
|
+
import"./packager-tool-03knb0er.js";
|
|
15
|
+
import"./packager-tool-pvgqbm48.js";
|
|
18
16
|
import {
|
|
19
17
|
init_esm_shims
|
|
20
|
-
} from "./packager-tool-
|
|
18
|
+
} from "./packager-tool-jpcm3xas.js";
|
|
21
19
|
import"./packager-tool-c19w8vg9.js";
|
|
22
20
|
import"./packager-tool-gbgfwx8f.js";
|
|
23
21
|
import {
|
|
24
22
|
MINIMUM_SUPPORTED_SCHEMA_VERSION,
|
|
25
23
|
generateNextId,
|
|
24
|
+
isLoopNodeType,
|
|
26
25
|
isSubflowNodeType
|
|
27
|
-
} from "./packager-tool-
|
|
28
|
-
import"./packager-tool-
|
|
26
|
+
} from "./packager-tool-e0ktn9s5.js";
|
|
27
|
+
import"./packager-tool-1yy9x4vk.js";
|
|
29
28
|
import"./packager-tool-c23zrhj8.js";
|
|
30
29
|
import {
|
|
31
30
|
__require
|
|
32
31
|
} from "./packager-tool-wckvcay0.js";
|
|
33
32
|
|
|
34
|
-
// ../../node_modules/@uipath/flow-converter/dist/conversion-
|
|
33
|
+
// ../../node_modules/@uipath/flow-converter/dist/conversion-W6HMHBWW.js
|
|
35
34
|
init_esm_shims();
|
|
36
35
|
init_esm_shims();
|
|
37
36
|
init_esm_shims();
|
|
@@ -192,12 +191,16 @@ init_esm_shims();
|
|
|
192
191
|
init_esm_shims();
|
|
193
192
|
var DEFAULT_TRIGGER_POSITION = { x: 256, y: 144 };
|
|
194
193
|
init_esm_shims();
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
194
|
+
function isPlainObject(value) {
|
|
195
|
+
return typeof value === "object" && value !== null && !Array.isArray(value);
|
|
196
|
+
}
|
|
197
|
+
function mergeManifestOutputOverInstance(instanceValue, manifestValue) {
|
|
198
|
+
if (manifestValue === undefined)
|
|
199
|
+
return instanceValue;
|
|
200
|
+
if (instanceValue === undefined)
|
|
201
|
+
return manifestValue;
|
|
202
|
+
return isPlainObject(instanceValue) && isPlainObject(manifestValue) ? { ...instanceValue, ...manifestValue } : manifestValue;
|
|
203
|
+
}
|
|
201
204
|
init_esm_shims();
|
|
202
205
|
init_esm_shims();
|
|
203
206
|
var connectorHttpRequestProcessor = (definition, ctx) => {
|
|
@@ -315,12 +318,18 @@ function buildSubflowPassThroughOutputDefinition(nodes, edges, manifestMap, node
|
|
|
315
318
|
if (terminalsWithOutputs.length === 1) {
|
|
316
319
|
const { outputDef } = terminalsWithOutputs[0];
|
|
317
320
|
for (const key of allKeys) {
|
|
321
|
+
if (isUnsafeKey(key))
|
|
322
|
+
continue;
|
|
318
323
|
result[key] = toSchemaType(outputDef[key]);
|
|
319
324
|
}
|
|
320
325
|
} else {
|
|
321
326
|
for (const key of allKeys) {
|
|
327
|
+
if (isUnsafeKey(key))
|
|
328
|
+
continue;
|
|
322
329
|
const properties = {};
|
|
323
330
|
for (const { node, outputDef } of terminalsWithOutputs) {
|
|
331
|
+
if (isUnsafeKey(node.id))
|
|
332
|
+
continue;
|
|
324
333
|
if (key in outputDef) {
|
|
325
334
|
properties[node.id] = toSchemaType(outputDef[key]);
|
|
326
335
|
}
|
|
@@ -330,6 +339,10 @@ function buildSubflowPassThroughOutputDefinition(nodes, edges, manifestMap, node
|
|
|
330
339
|
}
|
|
331
340
|
return result;
|
|
332
341
|
}
|
|
342
|
+
var UNSAFE_KEYS = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
|
|
343
|
+
function isUnsafeKey(key) {
|
|
344
|
+
return UNSAFE_KEYS.has(key);
|
|
345
|
+
}
|
|
333
346
|
function toSchemaType(def) {
|
|
334
347
|
const { source: _, var: _v, ...schema } = def ?? {};
|
|
335
348
|
return { type: "object", ...schema };
|
|
@@ -360,14 +373,14 @@ function computeSubflowEffectiveOutputDef(subflowNodeId, subflows, manifestMap,
|
|
|
360
373
|
}
|
|
361
374
|
if (outputDef) {
|
|
362
375
|
for (const [key, val] of Object.entries(outputDef)) {
|
|
376
|
+
if (isUnsafeKey(key))
|
|
377
|
+
continue;
|
|
363
378
|
outputKeys[key] = val;
|
|
364
379
|
}
|
|
365
380
|
}
|
|
366
381
|
}
|
|
367
382
|
return Object.keys(outputKeys).length > 0 ? outputKeys : undefined;
|
|
368
383
|
}
|
|
369
|
-
init_esm_shims();
|
|
370
|
-
var LOOP_NODE_TYPE = "core.logic.loop";
|
|
371
384
|
function sanitizeNodeLabelLocal(label) {
|
|
372
385
|
const words = label.split(/[^a-zA-Z0-9]+/).filter(Boolean);
|
|
373
386
|
if (words.length === 0)
|
|
@@ -504,9 +517,9 @@ function hydrateNodeData(node, definition, nodeVariables = [], subflowEntry, man
|
|
|
504
517
|
const instanceOutputs = node.outputs ?? {};
|
|
505
518
|
const effectiveOutputs = { ...manifestOutputs, ...nodeVariableOutputs, ...subflowOutputs };
|
|
506
519
|
for (const [key, value] of Object.entries(instanceOutputs)) {
|
|
507
|
-
if (
|
|
508
|
-
effectiveOutputs[key] =
|
|
509
|
-
} else
|
|
520
|
+
if (key in effectiveOutputs) {
|
|
521
|
+
effectiveOutputs[key] = mergeManifestOutputOverInstance(value, effectiveOutputs[key]);
|
|
522
|
+
} else {
|
|
510
523
|
effectiveOutputs[key] = value;
|
|
511
524
|
}
|
|
512
525
|
}
|
|
@@ -584,17 +597,11 @@ function workflowToXYFlow(workflow, manifestMap) {
|
|
|
584
597
|
const parentManifestDef = parentNode ? manifestMap.get(getManifestKey(parentNode.type, parentNode.typeVersion)) : undefined;
|
|
585
598
|
const parentFileDef = parentNode ? definitions.find((def) => def.nodeType === parentNode.type && def.version === parentNode.typeVersion) : undefined;
|
|
586
599
|
const parentDefinition = resolveDefinition(parentManifestDef, parentFileDef);
|
|
587
|
-
if (parentNode?.type
|
|
600
|
+
if (isLoopNodeType(parentNode?.type) && isContainerNodeManifest(parentDefinition)) {
|
|
588
601
|
base.parentId = node.parentId;
|
|
589
602
|
base.extent = "parent";
|
|
590
603
|
}
|
|
591
604
|
}
|
|
592
|
-
const isCollapsed = Boolean(node.ui?.collapsed);
|
|
593
|
-
if (isCollapsed && base.width !== undefined && base.height !== undefined) {
|
|
594
|
-
const collapsedSize = getCollapsedSize();
|
|
595
|
-
base.width = collapsedSize.width;
|
|
596
|
-
base.height = collapsedSize.height;
|
|
597
|
-
}
|
|
598
605
|
return base;
|
|
599
606
|
});
|
|
600
607
|
const orderedNodes = sortNodesParentFirst(nodes);
|
|
@@ -663,10 +670,10 @@ function xyFlowToWorkflow(workflowId, workflowVersion, workflowName, nodes, edge
|
|
|
663
670
|
const base = nodeToInstance(node);
|
|
664
671
|
const isCollapsed = Boolean(node.data.isCollapsed);
|
|
665
672
|
const instanceDisplay = node.data?.display || {};
|
|
666
|
-
const
|
|
673
|
+
const shape = instanceDisplay.shape;
|
|
667
674
|
const width = base.ui.size?.width;
|
|
668
675
|
const height = base.ui.size?.height;
|
|
669
|
-
const sizeValue =
|
|
676
|
+
const sizeValue = !width || !height ? getExpandedSize(shape) : { width, height };
|
|
670
677
|
return {
|
|
671
678
|
...base,
|
|
672
679
|
ui: {
|
|
@@ -676,7 +683,7 @@ function xyFlowToWorkflow(workflowId, workflowVersion, workflowName, nodes, edge
|
|
|
676
683
|
},
|
|
677
684
|
display: {
|
|
678
685
|
...base.display,
|
|
679
|
-
...
|
|
686
|
+
...shape !== undefined && { shape }
|
|
680
687
|
}
|
|
681
688
|
};
|
|
682
689
|
});
|
|
@@ -810,7 +817,7 @@ function applyGlobalInputOverrides(raw, inputs) {
|
|
|
810
817
|
}
|
|
811
818
|
}
|
|
812
819
|
}
|
|
813
|
-
var warmSerializationChunks = () => Promise.all([import("./index-
|
|
820
|
+
var warmSerializationChunks = () => Promise.all([import("./index-z4fsz3f9.js"), import("./serialization-GTFWODSH-e6yv9561.js")]);
|
|
814
821
|
async function flowJsonToBpmnXml(flowJson, options) {
|
|
815
822
|
const [{ fileFormatToInMemoryWorkflow }, { toXml }] = await warmSerializationChunks();
|
|
816
823
|
const raw = JSON.parse(flowJson);
|
|
@@ -822,7 +829,8 @@ async function flowJsonToBpmnXml(flowJson, options) {
|
|
|
822
829
|
}
|
|
823
830
|
const { nodes, edges, definitions, workflowVariables, bindings } = workflowToXYFlow(workflow, manifestMap);
|
|
824
831
|
return toXml(nodes, edges, definitions, bindings, workflowVariables, workflow.subflows, {
|
|
825
|
-
detached: options?.detached
|
|
832
|
+
detached: options?.detached,
|
|
833
|
+
voiceAgentDefinitions: options?.voiceAgentDefinitions
|
|
826
834
|
});
|
|
827
835
|
}
|
|
828
836
|
export {
|
|
@@ -843,4 +851,4 @@ export {
|
|
|
843
851
|
applyGlobalInputOverrides
|
|
844
852
|
};
|
|
845
853
|
|
|
846
|
-
//# debugId=
|
|
854
|
+
//# debugId=60CCA250311E9DEE64756E2164756E21
|