@uipath/maestro-builder-sdk 6.11.6 → 6.12.1
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/api-index.md +83 -56
- package/dist/api-members.md +362 -261
- package/dist/bpmn/bpmn-expr-check.js +8 -1
- package/dist/bpmn/bpmn-sdk.d.ts +1026 -27
- package/dist/bpmn/bpmn-sdk.js +1328 -83
- package/dist/bpmn/check-cli.js +19 -4
- package/dist/bpmn/check.d.ts +1 -1
- package/dist/bpmn/check.js +529 -13
- package/dist/bpmn/connector.d.ts +2 -2
- package/dist/bpmn/connector.js +74 -37
- package/dist/bpmn/data-service.d.ts +124 -0
- package/dist/bpmn/data-service.js +98 -0
- package/dist/bpmn/decompile-cli.js +70 -8
- package/dist/bpmn/decompile.d.ts +71 -0
- package/dist/bpmn/decompile.js +845 -31
- package/dist/bpmn/graph.d.ts +69 -0
- package/dist/bpmn/graph.js +98 -0
- package/dist/bpmn/intsvc.js +2 -2
- package/dist/bpmn/known-methods.d.ts +15 -0
- package/dist/bpmn/known-methods.js +271 -0
- package/dist/bpmn/lift-verify.d.ts +40 -0
- package/dist/bpmn/lift-verify.js +133 -0
- package/dist/bpmn/serialize.d.ts +65 -1
- package/dist/bpmn/serialize.js +169 -22
- package/dist/bpmn/typed-node.d.ts +37 -6
- package/dist/bpmn/typed-node.js +81 -19
- package/dist/cli/commands/bpmn.js +7 -1
- package/dist/core-definitions.json +3 -2
- package/dist/index.d.ts +5 -2
- package/dist/index.js +3 -0
- package/package.json +2 -2
package/dist/bpmn/check-cli.js
CHANGED
|
@@ -3,24 +3,39 @@
|
|
|
3
3
|
* check-cli — fast static validation of a <Name>.bpmn.ts (no output file).
|
|
4
4
|
*
|
|
5
5
|
* Usage:
|
|
6
|
-
* node --experimental-strip-types check-cli.js <bpmn.ts | BaseName>
|
|
6
|
+
* node --experimental-strip-types check-cli.js <bpmn.ts | BaseName> [--graph]
|
|
7
7
|
*
|
|
8
8
|
* Exit 0 = clean; exit 1 = at least one error. Warnings print but do not fail.
|
|
9
|
+
* `--graph` also prints the resolved wiring to stdout — every element with the flows
|
|
10
|
+
* leaving it, implied edges marked — see graph.ts.
|
|
9
11
|
*/
|
|
10
|
-
import { reportDiagnostics } from '../cli-result.js';
|
|
12
|
+
import { reportDiagnostics, reportResult } from '../cli-result.js';
|
|
11
13
|
import { resolveBpmnFile, loadBuiltBpmn } from './load.js';
|
|
12
14
|
import { check } from './check.js';
|
|
15
|
+
import { graphModel, renderGraph } from './graph.js';
|
|
13
16
|
import { runWhenInvokedDirectly } from '../cli-run.js';
|
|
14
17
|
import { ensureTypeScriptRuntime } from '../node-runtime.js';
|
|
15
18
|
export async function run(argv) {
|
|
16
19
|
if (argv.length === 0 || argv[0] === '-h' || argv[0] === '--help') {
|
|
17
|
-
console.error('usage: check <bpmn.ts | BaseName>');
|
|
20
|
+
console.error('usage: check <bpmn.ts | BaseName> [--graph]');
|
|
18
21
|
return 2;
|
|
19
22
|
}
|
|
20
23
|
ensureTypeScriptRuntime();
|
|
21
|
-
const
|
|
24
|
+
const graph = argv.includes('--graph');
|
|
25
|
+
const input = argv.find((a) => !a.startsWith('--'));
|
|
26
|
+
if (input === undefined) {
|
|
27
|
+
console.error('usage: check <bpmn.ts | BaseName> [--graph]');
|
|
28
|
+
return 2;
|
|
29
|
+
}
|
|
30
|
+
const built = await loadBuiltBpmn(resolveBpmnFile(input));
|
|
22
31
|
const diags = check(built);
|
|
23
32
|
reportDiagnostics(diags);
|
|
33
|
+
if (graph) {
|
|
34
|
+
// The graph goes to stdout and the diagnostics to stderr, so a reviewer can
|
|
35
|
+
// diff the printed wiring on its own.
|
|
36
|
+
process.stdout.write(renderGraph(built));
|
|
37
|
+
reportResult({ graph: graphModel(built) });
|
|
38
|
+
}
|
|
24
39
|
for (const d of diags)
|
|
25
40
|
console.error(` ${d.level === 'error' ? '✗' : '⚠'} [${d.code}] ${d.message}`);
|
|
26
41
|
const errors = diags.filter((d) => d.level === 'error').length;
|
package/dist/bpmn/check.d.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* implicit join — the diagnostic is a `warning`, and its comment says which
|
|
16
16
|
* platform rule it corresponds to and how the two differ.
|
|
17
17
|
*/
|
|
18
|
-
import type
|
|
18
|
+
import { type BuiltBpmn } from './bpmn-sdk.js';
|
|
19
19
|
export interface Diagnostic {
|
|
20
20
|
level: 'error' | 'warning';
|
|
21
21
|
code: string;
|