@uipath/maestro-builder-sdk 6.9.5 → 6.10.0
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 +18 -4
- package/dist/api-index.md +15 -15
- package/dist/api-members.md +14 -14
- package/dist/bpmn/check-cli.js +2 -0
- package/dist/bpmn/compile-cli.js +3 -1
- package/dist/bpmn/decompile-cli.js +3 -1
- package/dist/bpmn/merge-cli.js +3 -1
- package/dist/bpmn/tidy-cli.js +3 -0
- package/dist/case/check-cli.js +2 -0
- package/dist/case/compile-cli.js +3 -1
- package/dist/case/decompile-cli.js +3 -0
- package/dist/case/merge-cli.js +3 -1
- package/dist/check-cli.js +2 -0
- package/dist/check.js +2 -2
- package/dist/cli/commands/bpmn.js +13 -7
- package/dist/cli/commands/case.js +13 -7
- package/dist/cli/commands/flow.js +14 -10
- package/dist/cli/commands/registry.js +11 -3
- package/dist/cli/common.d.ts +36 -1
- package/dist/cli/common.js +89 -0
- package/dist/cli/index.js +40 -2
- package/dist/cli-result.d.ts +22 -0
- package/dist/cli-result.js +31 -0
- package/dist/compile-cli.js +12 -0
- package/dist/core/actions.d.ts +1 -2
- package/dist/core/actions.js +1 -2
- package/dist/core/cli-spelling.d.ts +5 -3
- package/dist/core/cli-spelling.js +8 -4
- package/dist/core/lookups.js +1 -1
- package/dist/decompile-cli.js +3 -0
- package/dist/merge-cli.js +3 -1
- package/dist/registry/generators/markdown/sections/choosing-object.js +1 -1
- package/dist/registry/generators/markdown/sections/example.js +2 -2
- package/dist/registry/generators/markdown/sections/lookups.js +1 -1
- package/dist/registry/generators/markdown/sections/schema-dynamic.js +3 -3
- package/dist/registry/library-build/cli.js +3 -0
- package/dist/registry/materialize-cli.js +7 -0
- package/dist/registry/path-cli.js +14 -7
- package/dist/registry/prepare/messages.js +4 -4
- package/dist/registry/prepare/pipeline.d.ts +2 -0
- package/dist/registry/prepare/pipeline.js +4 -2
- package/dist/registry/prepare-cli.js +6 -3
- package/dist/registry/pull-cli.js +10 -1
- package/dist/registry/search-cli.js +2 -0
- package/package.json +7 -2
|
@@ -49,6 +49,8 @@ import { retryOtherConnections } from "./retry.js";
|
|
|
49
49
|
import { repointSource } from "./source-import.js";
|
|
50
50
|
import { sourceBindingLabels } from "./source-labels.js";
|
|
51
51
|
import { isPlainObject, pyGet, pyOr, pyPathJoin, pyPathlibStr, pyStrAny, pyTruthy } from "./support.js";
|
|
52
|
+
/** Where prepare writes its overlay when `--out` is not given. */
|
|
53
|
+
export const DEFAULT_OVERLAY_DIR = "./connectors-local";
|
|
52
54
|
function memoryCaches() {
|
|
53
55
|
return { registry: new MemoryResponseCache(), is: new MemoryResponseCache(), connectors: new MemoryResponseCache() };
|
|
54
56
|
}
|
|
@@ -105,7 +107,7 @@ function chooseLabels(options, ports) {
|
|
|
105
107
|
const command = ports.prepareCommand ?? PREPARE_COMMAND;
|
|
106
108
|
const labels = sourceBindingLabels({
|
|
107
109
|
cwd: ports.cwd ?? process.cwd(),
|
|
108
|
-
out: options.out ??
|
|
110
|
+
out: options.out ?? DEFAULT_OVERLAY_DIR,
|
|
109
111
|
connectorKey: options.connectorKey,
|
|
110
112
|
source: options.source,
|
|
111
113
|
});
|
|
@@ -308,7 +310,7 @@ async function prepareOnConnection(options, ports, connected) {
|
|
|
308
310
|
const { connectorKey, action } = options;
|
|
309
311
|
const fieldPairs = options.fields ?? [];
|
|
310
312
|
const parentFields = parseFields(fieldPairs);
|
|
311
|
-
const outShown = options.out ??
|
|
313
|
+
const outShown = options.out ?? DEFAULT_OVERLAY_DIR;
|
|
312
314
|
const out = resolve(cwd, outShown);
|
|
313
315
|
const importSpecifier = options.importSpecifier ?? PACKAGE_NAME;
|
|
314
316
|
const jsonOnly = options.jsonOnly ?? false;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import { resolve } from 'node:path';
|
|
2
|
+
import { reportResult } from '../cli-result.js';
|
|
1
3
|
import { PACKAGE_NAME } from "../package-name.js";
|
|
2
4
|
import { exitCodeOf } from "./errors.js";
|
|
3
5
|
import { exitText } from "./prepare/messages.js";
|
|
4
|
-
import { prepareConnector as runPipeline } from "./prepare/pipeline.js";
|
|
6
|
+
import { DEFAULT_OVERLAY_DIR, prepareConnector as runPipeline } from "./prepare/pipeline.js";
|
|
5
7
|
import { consoleReporter } from "./reporter.js";
|
|
6
8
|
import { defaultUipClient } from "./uip/client.js";
|
|
7
9
|
// This mirrors the generator's own flags one for one, so a `--version` here is
|
|
@@ -12,7 +14,7 @@ import { defaultUipClient } from "./uip/client.js";
|
|
|
12
14
|
* relative path that only resolves inside a source checkout. */
|
|
13
15
|
const DEFAULT_CONNECTOR_IMPORT = PACKAGE_NAME;
|
|
14
16
|
const USAGE = [
|
|
15
|
-
"Usage: flow-sdk registry prepare <connector-key> <
|
|
17
|
+
"Usage: flow-sdk registry prepare <connector-key> --action <name> [--connection-id <id>]",
|
|
16
18
|
" [--connection <name>] [--bindings <file>] [--no-bindings]",
|
|
17
19
|
" [--object <name> | --all-objects] [-f NAME=VALUE ...]",
|
|
18
20
|
" [--resolve FIELD:BY=VALUE ...] [--refresh-lookups]",
|
|
@@ -180,7 +182,8 @@ export async function run(argv) {
|
|
|
180
182
|
}
|
|
181
183
|
}
|
|
182
184
|
try {
|
|
183
|
-
await prepareConnector(options);
|
|
185
|
+
const report = await prepareConnector(options);
|
|
186
|
+
reportResult({ connector: options.connectorKey, action: options.action, overlay: resolve(options.outPath ?? DEFAULT_OVERLAY_DIR), ...report });
|
|
184
187
|
return 0;
|
|
185
188
|
}
|
|
186
189
|
catch (error) {
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { reportResult } from '../cli-result.js';
|
|
1
2
|
import { createHash } from "node:crypto";
|
|
2
3
|
import { mkdir, readFile, rename, rm, stat, symlink, writeFile, } from "node:fs/promises";
|
|
3
|
-
import { join } from "node:path";
|
|
4
|
+
import { join, resolve } from "node:path";
|
|
4
5
|
import { CURRENT_LINK, LIBRARY_JSON_DIR, LIBRARY_MARKDOWN_DIR, cacheEntry, libraryCacheRoot, referencedConnectorKeys, } from "./cache.js";
|
|
5
6
|
import { extractLibrary } from "./extractor.js";
|
|
6
7
|
import { materializeRegistry } from "./materializer.js";
|
|
@@ -302,6 +303,14 @@ export async function run(argv) {
|
|
|
302
303
|
if (!value(argv, "--library")) {
|
|
303
304
|
await pointCurrentAt(cacheDir, sha256);
|
|
304
305
|
}
|
|
306
|
+
reportResult({
|
|
307
|
+
sha256,
|
|
308
|
+
library: resolve(libraryPath),
|
|
309
|
+
libraryMarkdown: resolve(markdownPath),
|
|
310
|
+
madeCurrent: !value(argv, "--library"),
|
|
311
|
+
connectors: resolve(connectorsPath),
|
|
312
|
+
generated: referenced,
|
|
313
|
+
});
|
|
305
314
|
console.error(`registry pull: ${sha256.slice(0, 12)}… ready in ${cacheDir}` +
|
|
306
315
|
(value(argv, "--library") ? "" : ` (current -> ${sha256.slice(0, 12)}…)`));
|
|
307
316
|
if (referenced.length > 0) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { reportResult } from '../cli-result.js';
|
|
1
2
|
import { readFile, stat } from "node:fs/promises";
|
|
2
3
|
import { resolveLibraryDir } from "./cache.js";
|
|
3
4
|
import { dirname, join } from "node:path";
|
|
@@ -149,6 +150,7 @@ export async function run(argv) {
|
|
|
149
150
|
connector: value(argv, "--connector"),
|
|
150
151
|
limit,
|
|
151
152
|
});
|
|
153
|
+
reportResult(result);
|
|
152
154
|
console.log(JSON.stringify(result, null, 2));
|
|
153
155
|
return 0;
|
|
154
156
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.10.0",
|
|
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",
|
|
@@ -55,6 +55,11 @@
|
|
|
55
55
|
"bpmn-merge": "./dist/bpmn/merge-cli.js",
|
|
56
56
|
"flow-registry-materialize": "./dist/registry/materialize-bin.js"
|
|
57
57
|
},
|
|
58
|
+
"cliCapabilities": [
|
|
59
|
+
"merge-original-option",
|
|
60
|
+
"prepare-action-option",
|
|
61
|
+
"json-result"
|
|
62
|
+
],
|
|
58
63
|
"files": [
|
|
59
64
|
"dist",
|
|
60
65
|
"lib/library-json.samples",
|
|
@@ -87,5 +92,5 @@
|
|
|
87
92
|
"@types/node": "^22.7.0",
|
|
88
93
|
"esbuild": "^0.28.1"
|
|
89
94
|
},
|
|
90
|
-
"gitref": "
|
|
95
|
+
"gitref": "d50db2eeec64253d691dc9512ee9e7027062665b"
|
|
91
96
|
}
|