@uipath/maestro-builder-sdk 6.104.1 → 6.105.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/bpmn/check-cli.js +2 -2
- package/dist/bpmn/decompile-cli.js +2 -3
- package/dist/bpmn/merge-cli.js +2 -3
- package/dist/case/decompile-cli.js +2 -3
- package/dist/check.js +3 -2
- package/dist/core/cli-library.d.ts +8 -0
- package/dist/core/cli-library.js +17 -3
- package/dist/core/library-cache.d.ts +7 -1
- package/dist/core/library-cache.js +23 -2
- package/dist/core/library.d.ts +1 -1
- package/dist/core/library.js +8 -3
- package/dist/core/refusals.d.ts +1 -0
- package/dist/core/refusals.js +1 -0
- package/dist/decompile-cli.js +6 -3
- package/dist/decompile-stamp.d.ts +7 -0
- package/dist/decompile-stamp.js +4 -1
- package/dist/flow-node-type.d.ts +2 -0
- package/dist/merge-cli.js +23 -8
- package/dist/nodes/connector/flow/node-type.js +9 -3
- package/dist/nodes/data-fabric/flow/check.d.ts +14 -0
- package/dist/nodes/data-fabric/flow/check.js +65 -0
- package/dist/nodes/data-fabric/flow/family.js +5 -2
- package/dist/registry/fetch/fetch-connectors.d.ts +8 -0
- package/dist/registry/fetch/fetch-connectors.js +32 -9
- package/dist/registry/fetch/fetch-definitions.d.ts +17 -0
- package/dist/registry/fetch/fetch-definitions.js +54 -9
- package/dist/registry/fetch/flow-requests.d.ts +16 -5
- package/dist/registry/fetch/flow-requests.js +28 -7
- package/dist/registry/fetch/with-fetched-definitions.d.ts +8 -0
- package/dist/registry/fetch/with-fetched-definitions.js +45 -18
- package/dist/registry/prepare/overlay.js +4 -1
- package/dist/registry/pull-cli.d.ts +6 -1
- package/dist/registry/pull-cli.js +33 -6
- package/dist/registry/search-cli.js +29 -4
- package/package.json +2 -2
|
@@ -156,6 +156,10 @@ export async function searchTenantOperations(options, client = defaultUipClient(
|
|
|
156
156
|
const key = catalogConnectorKey(nodeType);
|
|
157
157
|
if (key === null)
|
|
158
158
|
continue;
|
|
159
|
+
// A node the tenant lists but has gated off (a feature flag): describe and
|
|
160
|
+
// check could not fetch it, so it is not offered.
|
|
161
|
+
if (getCI(row, "AvailableOnTenant") === false)
|
|
162
|
+
continue;
|
|
159
163
|
if (connector && key.toLowerCase() !== connector)
|
|
160
164
|
continue;
|
|
161
165
|
const label = text(getCI(row, "DisplayName"));
|
|
@@ -176,14 +180,36 @@ export async function searchTenantOperations(options, client = defaultUipClient(
|
|
|
176
180
|
definitionPath: "",
|
|
177
181
|
});
|
|
178
182
|
}
|
|
179
|
-
const
|
|
183
|
+
const warnings = [getCI(envelope, "Warning")].filter((w) => typeof w === "string" && w.trim() !== "").map((w) => w.trim());
|
|
184
|
+
// The catalog lists operations, not the objects a generic operation takes, so
|
|
185
|
+
// a query naming an object can miss here where the library would hit.
|
|
186
|
+
if (matches.length === 0 && tokens.length > 0) {
|
|
187
|
+
warnings.push("The tenant's catalog names operations, not the objects a generic operation works on, " +
|
|
188
|
+
"so a query naming an object (\"salesforce contact\") can find nothing here. " +
|
|
189
|
+
"Search by the connector and operation (\"salesforce create record\") before treating this as a miss.");
|
|
190
|
+
}
|
|
180
191
|
return {
|
|
181
192
|
total: matches.length,
|
|
182
193
|
operations: matches.slice(0, options.limit ?? DEFAULT_SEARCH_LIMIT),
|
|
183
194
|
source: "tenant",
|
|
184
|
-
...(
|
|
195
|
+
...(warnings.length > 0 ? { warning: warnings.join(" ") } : {}),
|
|
185
196
|
};
|
|
186
197
|
}
|
|
198
|
+
/**
|
|
199
|
+
* Whether `dir` holds a library index. A reader that throws (outside Node with
|
|
200
|
+
* no host reader: READ_TEXT_UNAVAILABLE) reads as none, so the search answers
|
|
201
|
+
* from the tenant or says why, rather than rejecting.
|
|
202
|
+
*/
|
|
203
|
+
function hasIndex(dir) {
|
|
204
|
+
if (dir === undefined)
|
|
205
|
+
return false;
|
|
206
|
+
try {
|
|
207
|
+
return defaultReadText()(join(dir, "index.json")) !== undefined;
|
|
208
|
+
}
|
|
209
|
+
catch {
|
|
210
|
+
return false;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
187
213
|
function value(args, name) {
|
|
188
214
|
const index = args.indexOf(name);
|
|
189
215
|
return index >= 0 ? args[index + 1] : undefined;
|
|
@@ -198,8 +224,7 @@ export async function run(argv) {
|
|
|
198
224
|
// A named library, by `--library` or FLOW_SDK_LIBRARY_JSON, is searched (or
|
|
199
225
|
// refused) as it always was.
|
|
200
226
|
const named = explicit ?? (process.env.FLOW_SDK_LIBRARY_JSON || undefined);
|
|
201
|
-
const tenant = named === undefined && fetchDefinitionsEnabled()
|
|
202
|
-
&& (resolved === undefined || defaultReadText()(join(resolved, "index.json")) === undefined);
|
|
227
|
+
const tenant = named === undefined && fetchDefinitionsEnabled() && !hasIndex(resolved);
|
|
203
228
|
const libraryPath = tenant ? undefined : resolved;
|
|
204
229
|
if (!libraryPath && !tenant) {
|
|
205
230
|
// Say why. A bare usage line here read as "no match" to an agent deciding
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.105.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",
|
|
@@ -121,5 +121,5 @@
|
|
|
121
121
|
"@types/node": "^22.7.0",
|
|
122
122
|
"esbuild": "^0.28.1"
|
|
123
123
|
},
|
|
124
|
-
"gitref": "
|
|
124
|
+
"gitref": "187db960348287f6543d4824b9c5d9f865f86c7a"
|
|
125
125
|
}
|