@uipath/maestro-builder-sdk 6.87.0 → 6.87.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/README.md +2 -0
- package/dist/api-index.md +5 -1
- package/dist/api-members.md +4 -0
- package/dist/bpmn/check-cli.js +38 -7
- package/dist/bpmn/source-types.d.ts +17 -0
- package/dist/bpmn/source-types.js +136 -0
- package/dist/bpmn-api.md +1201 -0
- package/dist/cli/commands/bpmn.js +3 -0
- package/dist/script-function-scope.d.ts +38 -0
- package/dist/script-function-scope.js +1 -1
- package/package.json +2 -2
|
@@ -35,6 +35,7 @@ export function registerBpmnCommands(program) {
|
|
|
35
35
|
.option('--bindings <file>', 'bindings.json path')
|
|
36
36
|
.addOption(retiredCompiledOption())
|
|
37
37
|
.option('--resources <file>', 'resource ledger that registry prepare writes (default .flow-sdk/resources.json)')
|
|
38
|
+
.option('--no-types', 'skip the TypeScript type check of the source')
|
|
38
39
|
.action(async (input, options) => {
|
|
39
40
|
let mode;
|
|
40
41
|
try {
|
|
@@ -51,6 +52,8 @@ export function registerBpmnCommands(program) {
|
|
|
51
52
|
const argv = [input];
|
|
52
53
|
if (options.graph)
|
|
53
54
|
argv.push('--graph');
|
|
55
|
+
if (options.types === false)
|
|
56
|
+
argv.push('--no-types');
|
|
54
57
|
addValue(argv, '--library', options.library);
|
|
55
58
|
addValue(argv, '--connectors-local', options.connectorsLocal);
|
|
56
59
|
addValue(argv, '--bindings', options.bindings);
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* script-function-scope — the names a `script(fn)` function takes from its module.
|
|
3
|
+
*
|
|
4
|
+
* `script(fn)` lowers a function from its `toString()` alone (core/script-function.ts),
|
|
5
|
+
* so it cannot see the module the function was written in. A free name off the
|
|
6
|
+
* runtime's list is refused there; one ON the list is accepted, because the
|
|
7
|
+
* runtime has a global of that name. If the author's module also declares or
|
|
8
|
+
* imports that name, the author's code calls the module's binding while the
|
|
9
|
+
* lowered body calls the runtime's: a helper named `escape` that HTML-escapes,
|
|
10
|
+
* or lodash's `escape`, becomes the Annex B global that URL-encodes. Nothing
|
|
11
|
+
* else notices: `check` and `validate` both pass.
|
|
12
|
+
*
|
|
13
|
+
* This pass closes that where the module IS visible: the CLIs that load a
|
|
14
|
+
* `.flow.ts` (compile, check, merge) have its path. It builds a program over the
|
|
15
|
+
* source, finds each `script(<function>)` call, follows the argument to its
|
|
16
|
+
* declaration (through imports between the author's files), and reports every
|
|
17
|
+
* name in the function that resolves to a binding outside it — a module
|
|
18
|
+
* declaration, an import, or an enclosing function's local. The lowering already
|
|
19
|
+
* refused such a name when it is off the runtime's list, so in practice this
|
|
20
|
+
* reports the collisions.
|
|
21
|
+
*
|
|
22
|
+
* The `script` call is recognised by its imported name, not by resolving the
|
|
23
|
+
* SDK package, because the CLI may supply the SDK from somewhere the source's
|
|
24
|
+
* own resolution cannot see (`sdk-resolve.ts`). A call through a re-exporting
|
|
25
|
+
* helper module is not recognised. A host that has no source file (the SDK run
|
|
26
|
+
* in a page) does not get this pass.
|
|
27
|
+
*/
|
|
28
|
+
import type * as TS from 'typescript';
|
|
1
29
|
/** One name a script function reads from outside itself. */
|
|
2
30
|
export interface ScriptFunctionCapture {
|
|
3
31
|
/** How the call is named in messages: `script(renderSafe)`. */
|
|
@@ -42,6 +70,16 @@ export interface ScriptFunctionScope {
|
|
|
42
70
|
* options passed by name) is the string form and is not a script function.
|
|
43
71
|
*/
|
|
44
72
|
export declare function scriptFunctionScope(file: string): ScriptFunctionScope;
|
|
73
|
+
/**
|
|
74
|
+
* A compiler host that resolves the SDK's own specifiers (the package name and
|
|
75
|
+
* its subpaths) from inside this package, as `sdk-resolve-hook.ts` does at run
|
|
76
|
+
* time. The author's folder may have no `node_modules` (a global install): a
|
|
77
|
+
* plain NodeNext program then cannot find the SDK's declarations, a Case
|
|
78
|
+
* task's `t` is `any`, and `.script(fn)` is not recognised. Package
|
|
79
|
+
* self-reference maps the name to the declarations beside this file. Any other
|
|
80
|
+
* specifier resolves as before.
|
|
81
|
+
*/
|
|
82
|
+
export declare function sdkResolvingHost(ts: typeof TS, options: TS.CompilerOptions): TS.CompilerHost;
|
|
45
83
|
/** A whitespace-free key for comparing function texts. */
|
|
46
84
|
export declare function functionTextKey(text: string): string;
|
|
47
85
|
/**
|
|
@@ -72,7 +72,7 @@ export function scriptFunctionScope(file) {
|
|
|
72
72
|
* self-reference maps the name to the declarations beside this file. Any other
|
|
73
73
|
* specifier resolves as before.
|
|
74
74
|
*/
|
|
75
|
-
function sdkResolvingHost(ts, options) {
|
|
75
|
+
export function sdkResolvingHost(ts, options) {
|
|
76
76
|
const host = ts.createCompilerHost(options);
|
|
77
77
|
const self = fileURLToPath(import.meta.url);
|
|
78
78
|
host.resolveModuleNameLiterals = (literals, containingFile, redirected, opts, containing) => literals.map((literal) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.87.
|
|
3
|
+
"version": "6.87.1",
|
|
4
4
|
"description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.uipath.com/maestro",
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
"@types/node": "^22.7.0",
|
|
111
111
|
"esbuild": "^0.28.1"
|
|
112
112
|
},
|
|
113
|
-
"gitref": "
|
|
113
|
+
"gitref": "0f035f2ff693d92e026d4287d7993fef4959f7d9"
|
|
114
114
|
}
|