@uipath/maestro-builder-sdk 6.16.10 → 6.16.11

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.
@@ -279,10 +279,21 @@ export function solutionConnectionIds(cwd, connectorKey) {
279
279
  * module's rule intact — ambiguity is never resolved by guessing.
280
280
  */
281
281
  export async function candidateConnections(client, connectorKey, name) {
282
+ // Both listings are always needed here, so they run at once: each is a `uip`
283
+ // process and a tenant round trip (~1 s each, measured in the n8n-vs-flow
284
+ // adhoc run of 2026-10-06), and neither depends on the other. Started in
285
+ // own-folder-then-tenant order, merged in that order, and a failure is
286
+ // reported in that order too — the result is what the sequential loop gave.
287
+ const settled = await Promise.allSettled([false, true].map((allFolders) => listConnections(client, { allFolders })));
288
+ const listings = settled.map((outcome) => {
289
+ if (outcome.status === "rejected")
290
+ throw outcome.reason;
291
+ return outcome.value;
292
+ });
282
293
  const ordered = [];
283
294
  const seen = new Set();
284
- for (const allFolders of [false, true]) {
285
- for (const row of enabledConnections(await listConnections(client, { allFolders }), connectorKey, name)) {
295
+ for (const listing of listings) {
296
+ for (const row of enabledConnections(listing, connectorKey, name)) {
286
297
  const identifier = pyStrAny(pyGet(row, "Id", ""));
287
298
  if (identifier && seen.has(identifier))
288
299
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.16.10",
3
+ "version": "6.16.11",
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": "2e666ec2dd9e7baa4716a2a0d21ee86484b0de89"
95
+ "gitref": "aa02ee7f33c547e57d862b3ad18c1983cb291ba3"
96
96
  }