@uipath/maestro-builder-sdk 6.11.3 → 6.11.4
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 +4 -4
- package/dist/check.js +2 -1
- package/dist/registry/cache.d.ts +9 -0
- package/dist/registry/cache.js +9 -0
- package/dist/registry/path-cli.js +2 -2
- package/dist/registry/search-cli.js +6 -2
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -115,7 +115,7 @@ network calls. That is what `prepare` is for: it is the one verb that does talk
|
|
|
115
115
|
to the tenant. Run what `check` named, both fields at once:
|
|
116
116
|
|
|
117
117
|
```bash
|
|
118
|
-
|
|
118
|
+
uip maestro registry pull # once per machine: the connector library
|
|
119
119
|
|
|
120
120
|
npx flow-sdk registry prepare uipath-salesforce-slack --action send-message-to-user \
|
|
121
121
|
--resolve channel:profile.email=ada@example.com \
|
|
@@ -289,7 +289,7 @@ Keeping the names symbolic is what lets one flow move between connections: the
|
|
|
289
289
|
code says `slack`, and only `bindings.json` knows which Slack.
|
|
290
290
|
|
|
291
291
|
Discover ops and input shapes from the connector library that
|
|
292
|
-
`
|
|
292
|
+
`uip maestro registry pull` downloads and caches. A field the library does not
|
|
293
293
|
carry is connection-specific — that is the `prepare` case from the quick start.
|
|
294
294
|
|
|
295
295
|
The package also exposes the low-level materializer used by the UiPath CLI to
|
|
@@ -302,7 +302,7 @@ flow-registry-materialize \
|
|
|
302
302
|
--connectors ./connectors
|
|
303
303
|
```
|
|
304
304
|
|
|
305
|
-
Most callers want `
|
|
305
|
+
Most callers want `uip maestro registry pull`, which downloads the published
|
|
306
306
|
archive, verifies its checksum and then runs this transform. The low-level
|
|
307
307
|
command is for SDK development, build pipelines, and troubleshooting: it only
|
|
308
308
|
transforms local files that are already on disk.
|
|
@@ -322,7 +322,7 @@ The step-by-step authoring guides — `SKILL.md` for Flow, `SKILL-case.md`,
|
|
|
322
322
|
UiPath authoring skills catalog rather than here, so a coding agent and a human
|
|
323
323
|
read the same copy. The worked examples named by those guides travel with them.
|
|
324
324
|
|
|
325
|
-
The connector library is not bundled: `
|
|
325
|
+
The connector library is not bundled: `uip maestro registry pull` downloads it
|
|
326
326
|
and caches it per machine. The package does carry the curated overlay that pull
|
|
327
327
|
applies on top — corrections and the definitions the raw registry dump omits.
|
|
328
328
|
|
package/dist/check.js
CHANGED
|
@@ -1142,7 +1142,8 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
1142
1142
|
code: 'MOCK_HAS_NO_OUTPUT',
|
|
1143
1143
|
message: `Placeholder "${name}" publishes nothing, but "$vars.${name}${field ? '.' + field : ''}" reads it in "${step}". `
|
|
1144
1144
|
+ 'A mock() is a marker for a node that does not exist yet — its output is null at run time, always. '
|
|
1145
|
-
+ '
|
|
1145
|
+
+ 'Keep the placeholder while the real node does not exist, and have the reader use a value you supply instead (a flow input, as example/ClaimScaffold.flow.ts does). '
|
|
1146
|
+
+ 'Replace the placeholder only with the real node, once `registry search` finds it; a script returning fixed values is not the real node.',
|
|
1146
1147
|
step,
|
|
1147
1148
|
});
|
|
1148
1149
|
continue;
|
package/dist/registry/cache.d.ts
CHANGED
|
@@ -21,6 +21,15 @@
|
|
|
21
21
|
export declare const LIBRARY_JSON_DIR = "library-json";
|
|
22
22
|
export declare const LIBRARY_MARKDOWN_DIR = "library-md";
|
|
23
23
|
export declare const CURRENT_LINK = "current";
|
|
24
|
+
/**
|
|
25
|
+
* The command a message tells a person or agent to run when the cache is
|
|
26
|
+
* empty. It is `uip`, not `npx flow-sdk registry pull`: `uip maestro registry
|
|
27
|
+
* pull` runs this package's pull and fills the same cache, and it is the one
|
|
28
|
+
* command the authoring skill teaches. Each message used to spell the command
|
|
29
|
+
* out by hand, so they kept naming the SDK's own entry point after the skill
|
|
30
|
+
* moved to `uip`. Name it here once.
|
|
31
|
+
*/
|
|
32
|
+
export declare const PULL_COMMAND = "uip maestro registry pull";
|
|
24
33
|
/**
|
|
25
34
|
* Root of the library cache. `UIP_FLOW_SDK_LIBRARY_CACHE` overrides it.
|
|
26
35
|
*
|
package/dist/registry/cache.js
CHANGED
|
@@ -24,6 +24,15 @@ import { join } from "node:path";
|
|
|
24
24
|
export const LIBRARY_JSON_DIR = "library-json";
|
|
25
25
|
export const LIBRARY_MARKDOWN_DIR = "library-md";
|
|
26
26
|
export const CURRENT_LINK = "current";
|
|
27
|
+
/**
|
|
28
|
+
* The command a message tells a person or agent to run when the cache is
|
|
29
|
+
* empty. It is `uip`, not `npx flow-sdk registry pull`: `uip maestro registry
|
|
30
|
+
* pull` runs this package's pull and fills the same cache, and it is the one
|
|
31
|
+
* command the authoring skill teaches. Each message used to spell the command
|
|
32
|
+
* out by hand, so they kept naming the SDK's own entry point after the skill
|
|
33
|
+
* moved to `uip`. Name it here once.
|
|
34
|
+
*/
|
|
35
|
+
export const PULL_COMMAND = "uip maestro registry pull";
|
|
27
36
|
/**
|
|
28
37
|
* Root of the library cache. `UIP_FLOW_SDK_LIBRARY_CACHE` overrides it.
|
|
29
38
|
*
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reportResult } from '../cli-result.js';
|
|
2
2
|
import { join } from "node:path";
|
|
3
|
-
import { CURRENT_LINK, currentEntrySha, libraryCacheRoot, resolveCachedLibrary, resolveCachedMarkdown, } from "./cache.js";
|
|
3
|
+
import { CURRENT_LINK, PULL_COMMAND, currentEntrySha, libraryCacheRoot, resolveCachedLibrary, resolveCachedMarkdown, } from "./cache.js";
|
|
4
4
|
/**
|
|
5
5
|
* Say where the connector library is.
|
|
6
6
|
*
|
|
@@ -34,7 +34,7 @@ export async function run(argv) {
|
|
|
34
34
|
const single = (field, value) => {
|
|
35
35
|
reportResult({ [field]: value ?? null });
|
|
36
36
|
if (!value) {
|
|
37
|
-
console.error(
|
|
37
|
+
console.error(`No connector library in the cache yet. Run \`${PULL_COMMAND}\`.`);
|
|
38
38
|
return 1;
|
|
39
39
|
}
|
|
40
40
|
console.log(value);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reportResult } from '../cli-result.js';
|
|
2
2
|
import { readFile, stat } from "node:fs/promises";
|
|
3
|
-
import { resolveLibraryDir } from "./cache.js";
|
|
3
|
+
import { PULL_COMMAND, resolveLibraryDir } from "./cache.js";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
5
5
|
export const DEFAULT_SEARCH_LIMIT = 20;
|
|
6
6
|
const USAGE = "Usage: flow-sdk registry search [query] [--library <dir>] [--library-md <dir>] [--connector <key>] [--limit <n>]";
|
|
@@ -52,7 +52,7 @@ export async function searchRegistryOperations(options) {
|
|
|
52
52
|
content = await readFile(indexPath, "utf-8");
|
|
53
53
|
}
|
|
54
54
|
catch {
|
|
55
|
-
throw new Error(`Could not read ${indexPath}. Run
|
|
55
|
+
throw new Error(`Could not read ${indexPath}. Run \`${PULL_COMMAND}\`, or point` +
|
|
56
56
|
" --library at an extracted connector library.");
|
|
57
57
|
}
|
|
58
58
|
let parsed;
|
|
@@ -120,6 +120,10 @@ export async function run(argv) {
|
|
|
120
120
|
// verbs defaulted it was the inconsistency an author hit first.
|
|
121
121
|
const libraryPath = resolveLibraryDir(value(argv, "--library"));
|
|
122
122
|
if (!libraryPath) {
|
|
123
|
+
// Say why. A bare usage line here read as "no match" to an agent deciding
|
|
124
|
+
// between a connector and http(): it took the failed search for a miss.
|
|
125
|
+
console.error(`No connector library is cached. Run \`${PULL_COMMAND}\`, or pass` +
|
|
126
|
+
" --library <dir>.");
|
|
123
127
|
console.error(USAGE);
|
|
124
128
|
return 2;
|
|
125
129
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.11.
|
|
3
|
+
"version": "6.11.4",
|
|
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",
|
|
@@ -92,5 +92,5 @@
|
|
|
92
92
|
"@types/node": "^22.7.0",
|
|
93
93
|
"esbuild": "^0.28.1"
|
|
94
94
|
},
|
|
95
|
-
"gitref": "
|
|
95
|
+
"gitref": "8c18e5efb6f8dd4b2599f9591cabdff42feaf275"
|
|
96
96
|
}
|