@uipath/maestro-builder-sdk 6.86.8 → 6.86.9

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.
@@ -3322,9 +3322,11 @@ function emitRule(r, seed, ownerId, ids, resolver, site) {
3322
3322
  throw new CompileRefusal('RULE_STAGES_SINGULAR', `rule "${r.rule}" selects ${sids.length} stages, but this format writes one selectedStageId.`);
3323
3323
  out[CASE_FORMAT_PROFILE.selectedStageField] = CASE_FORMAT_PROFILE.selectedStageCardinality === 'singular' ? sids[0] : sids;
3324
3324
  }
3325
- if (r.rule === 'selected-tasks-completed') {
3326
- const names = r.tasks ?? [];
3327
- out.selectedTasksIds = names.map((n) => {
3325
+ // No `tasks` writes no `selectedTasksIds`, as Studio Web saves a rule gated
3326
+ // by its expression alone; the platform reads an absent list as an empty one
3327
+ // (its converter takes `selectedTasksIds ?? []`). `tasks: []` writes `[]`.
3328
+ if (r.rule === 'selected-tasks-completed' && r.tasks !== undefined) {
3329
+ out.selectedTasksIds = r.tasks.map((n) => {
3328
3330
  const tid = resolver.taskIdByKey.get(n);
3329
3331
  if (!tid)
3330
3332
  throw new CompileRefusal('UNKNOWN_TASK_REF', `rule "selected-tasks-completed" references unknown task "${n}".`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.86.8",
3
+ "version": "6.86.9",
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",
@@ -103,5 +103,5 @@
103
103
  "@types/node": "^22.7.0",
104
104
  "esbuild": "^0.28.1"
105
105
  },
106
- "gitref": "a0113ad6c8144e78d2bb8b9b33cb3c0e814fc51b"
106
+ "gitref": "7d6b129cbb00860c5b83d8983da924649474cf23"
107
107
  }