@uipath/maestro-builder-sdk 6.28.0 → 6.29.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/dist/api-index.md CHANGED
@@ -57,13 +57,13 @@ could hand you spans for a version you do not have.
57
57
  | `apiWorkflow` | function | `dist/core/actions.d.ts:1658-1692` | Actions | Invoke a deployed API workflow — a coded workflow published to Orchestrator, run as a serverless job rather than by a… |
58
58
  | `ApiWorkflowInputs` | interface | `dist/core/actions.d.ts:411-442` | Option shapes | 5 field(s) |
59
59
  | `AppRef` | interface | `dist/nodes/hitl/flow/spec.d.ts:140-185` | Supporting types | A deployed Action App that supplies a human task's form — the `'action-app'` variant's subject. |
60
- | `ArmBuilder` | class | `dist/flow-sdk.d.ts:1224-1247` | Builders | The sub-builder an ARM callback receives — a `StepList` that can also name itself with `.label(...)`. |
60
+ | `ArmBuilder` | class | `dist/flow-sdk.d.ts:1230-1253` | Builders | The sub-builder an ARM callback receives — a `StepList` that can also name itself with `.label(...)`. |
61
61
  | `AskedField` | interface | `dist/core/actions.d.ts:79-89` | Supporting types | A value the reviewer FILLS IN: read downstream with `out('<step>', '<id>')`. |
62
62
  | `batchTransform` | function | `dist/nodes/ai-patterns/flow/factories.d.ts:49-83` | Actions | Add AI-generated columns to a CSV — the platform's **Batch transform** node, `uipath.pattern.batch-transform` (service… |
63
63
  | `BatchTransformInputs` | interface | `dist/nodes/ai-patterns/flow/spec.d.ts:48-63` | Option shapes | 4 field(s) |
64
64
  | `BindingContribution` | interface | `dist/core/node-classes.d.ts:80-101` | Supporting types | A resource binding a contribution hoists to the flow's top-level `bindings` array — the shape the `.flow` format… |
65
65
  | `BuiltEntryPoint` | interface | `dist/flow-sdk.d.ts:719-731` | Supporting types | One additional flow root, built by `.entryPoint()`. |
66
- | `BuiltFlow` | interface | `dist/flow-sdk.d.ts:732-773` | Supporting types | 16 field(s) |
66
+ | `BuiltFlow` | interface | `dist/flow-sdk.d.ts:732-779` | Supporting types | 17 field(s) |
67
67
  | `BuiltinToolName` | type | `dist/core/actions.d.ts:1066-1067` | Supporting types | The three platform-shipped built-in tools (fixed registry types). |
68
68
  | `BuiltinToolRef` | interface | `dist/core/actions.d.ts:1199-1219` | Supporting types | A platform built-in tool. |
69
69
  | `BuiltInValidatorGuardrail` | interface | `dist/core/actions.d.ts:762-803` | Supporting types | A platform-shipped validator, configured by parameters. |
@@ -128,11 +128,11 @@ could hand you spans for a version you do not have.
128
128
  | `FilterCondition` | type | `dist/nodes/transform/flow/spec.d.ts:10-11` | Supporting types | Comparison a filter rule applies to a field. |
129
129
  | `FilterMatch` | type | `dist/nodes/transform/flow/spec.d.ts:8-9` | Supporting types | How a filter combines its rules: every rule must match, or any one. |
130
130
  | `FilterRule` | interface | `dist/nodes/transform/flow/spec.d.ts:12-24` | Supporting types | 3 field(s) |
131
- | `flow` | function | `dist/flow-sdk.d.ts:1572-1587` | Flow construction | Start building a flow with the given id. |
131
+ | `flow` | function | `dist/flow-sdk.d.ts:1618-1633` | Flow construction | Start building a flow with the given id. |
132
132
  | `FlowAction` | class | `dist/core/node-classes.d.ts:162-168` | Supporting types | A node placed as a step — pass an instance to `.step(name, …)`. |
133
133
  | `FlowActionSpec` | type | `dist/flow-sdk.d.ts:53-54` | Supporting types | What `.step()` accepts here: the shared actions plus this SDK's subflow. |
134
134
  | `FlowActionSpecs` | interface | `dist/core/actions.d.ts:1443-1520` | Supporting types | Every action kind, keyed by kind, to the body of its spec — the arm's fields other than `kind`. |
135
- | `FlowBuilder` | class | `dist/flow-sdk.d.ts:1248-1571` | Builders | 14 member(s) |
135
+ | `FlowBuilder` | class | `dist/flow-sdk.d.ts:1254-1617` | Builders | 15 member(s) |
136
136
  | `FlowLayout` | interface | `dist/flow-sdk.d.ts:705-718` | Supporting types | Designer layout for a flow, keyed by AUTHOR-level ids: node entries by step name (plus the trigger id and `end`), edge… |
137
137
  | `FlowNode` | class | `dist/core/node-classes.d.ts:126-161` | Supporting types | The abstract root of every definition-backed node the builder can place. |
138
138
  | `FlowResource` | class | `dist/core/node-classes.d.ts:176-183` | Supporting types | A node attached to another semantic node — an inline agent's tool, context, memory, or escalation. |
@@ -225,11 +225,11 @@ could hand you spans for a version you do not have.
225
225
  | `SendMessageInputs` | interface | `dist/nodes/conversation/flow/spec.d.ts:8-27` | Option shapes | 4 field(s) |
226
226
  | `ShownField` | interface | `dist/core/actions.d.ts:63-78` | Supporting types | A value the reviewer READS: shown on the form, filled in from the flow. |
227
227
  | `Step` | type | `dist/flow-sdk.d.ts:508-627` | Supporting types | |
228
- | `StepList` | class | `dist/flow-sdk.d.ts:774-1223` | Builders | Collects a sequence of steps. |
228
+ | `StepList` | class | `dist/flow-sdk.d.ts:780-1229` | Builders | Collects a sequence of steps. |
229
229
  | `STICKY_NOTE_COLORS` | const | `dist/flow-sdk.d.ts:658-663` | Flow construction | The designer's sticky-note palette. |
230
230
  | `StickyNote` | interface | `dist/flow-sdk.d.ts:670-704` | Supporting types | A canvas sticky note — free text pinned to the diagram, for the humans reading it. |
231
231
  | `StickyNoteColor` | type | `dist/flow-sdk.d.ts:664-669` | Supporting types | A sticky note's swatch. |
232
- | `subflow` | function | `dist/flow-sdk.d.ts:1588-1627` | Flow construction | Run another flow as one step, and read back what it returns. |
232
+ | `subflow` | function | `dist/flow-sdk.d.ts:1634-1673` | Flow construction | Run another flow as one step, and read back what it returns. |
233
233
  | `SubflowSpec` | interface | `dist/flow-sdk.d.ts:45-52` | Supporting types | A step that runs a child flow. |
234
234
  | `summarize` | function | `dist/nodes/ai-patterns/flow/factories.d.ts:8-48` | Actions | Summarize a document with citations — the platform's **Summarize** node. |
235
235
  | `SummarizeInputs` | interface | `dist/nodes/ai-patterns/flow/spec.d.ts:8-40` | Option shapes | 3 field(s) |
@@ -5,12 +5,12 @@
5
5
 
6
6
  # Maestro Builder SDK — member index
7
7
 
8
- **A lookup table of 1116 rows — match one name in it, do not read it.**
8
+ **A lookup table of 1118 rows — match one name in it, do not read it.**
9
9
  Grep or search for the member you have; the row it lands on is the whole
10
10
  answer. Reading top to bottom costs ~20x what the one row does and tells you
11
11
  nothing you asked for.
12
12
 
13
- Every field and method of every exported shape — 1116 across
13
+ Every field and method of every exported shape — 1118 across
14
14
  200 interfaces and classes — keyed by the MEMBER's own name.
15
15
 
16
16
  **Use this when the name you have is a field or a method**, which is usually
@@ -28,7 +28,7 @@ truncated summary would, for less. Read the span.
28
28
  Member names repeat across shapes (`name` is declared on 69 of them), so the
29
29
  `Declared on` column is what makes a match actionable. For the whole shape
30
30
  rather than the one field, look that name up in [`api-index.md`](api-index.md) —
31
- which is why its span is not repeated on all 1116 rows here.
31
+ which is why its span is not repeated on all 1118 rows here.
32
32
 
33
33
  **A name that misses both indexes is probably not part of the API.** The one
34
34
  that comes up is a RUNTIME output key — a human task's `Action`, a step's
@@ -66,7 +66,7 @@ not find it either.
66
66
  | `app` | property | `HumanTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1337-1338` |
67
67
  | `appSystemName` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:170-175` |
68
68
  | `appVersion` | property | `HumanTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1339-1340` |
69
- | `armLabel` | property | `ArmBuilder` | `dist/flow-sdk.d.ts:1236` |
69
+ | `armLabel` | property | `ArmBuilder` | `dist/flow-sdk.d.ts:1242` |
70
70
  | `assignee` | property | `HitlRecipient` | `dist/nodes/hitl/flow/spec.d.ts:52-63` |
71
71
  | `async` | property | `OrchestratorAsyncOpts` | `dist/bpmn/bpmn-sdk.d.ts:1281-1285` |
72
72
  | `atRiskPercentage` | property | `EscalationOpts` | `dist/case/case-sdk.d.ts:132-137` |
@@ -97,14 +97,14 @@ not find it either.
97
97
  | `body` | property | `TypedContextRow` | `dist/bpmn/typed-node.d.ts:176-181` |
98
98
  | `body` | property | `TypedInputRow` | `dist/bpmn/typed-node.d.ts:207-208` |
99
99
  | `boundaryEvent` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2239-2246` |
100
- | `branch` | method | `StepList` | `dist/flow-sdk.d.ts:973-991` |
100
+ | `branch` | method | `StepList` | `dist/flow-sdk.d.ts:979-997` |
101
101
  | `branches` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:25-30` |
102
- | `break` | method | `StepList` | `dist/flow-sdk.d.ts:1108-1117` |
102
+ | `break` | method | `StepList` | `dist/flow-sdk.d.ts:1114-1123` |
103
103
  | `breakEnabled` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:505-506` |
104
104
  | `breakEnabled` | property | `LoopOptions` | `dist/flow-sdk.d.ts:492-496` |
105
105
  | `build` | method | `BpmnBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3483-3488` |
106
106
  | `build` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1269-1274` |
107
- | `build` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1564-1570` |
107
+ | `build` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1610-1616` |
108
108
  | `businessRule` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2527-2573` |
109
109
  | `by` | property | `LookupResolution` | `dist/core/lookups.d.ts:164` |
110
110
  | `by` | property | `LookupSpec` | `dist/core/lookups.d.ts:27-28` |
@@ -172,7 +172,7 @@ not find it either.
172
172
  | `context` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:87` |
173
173
  | `contextRows` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1528-1535` |
174
174
  | `contextVerbatim` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1600-1605` |
175
- | `continue` | method | `StepList` | `dist/flow-sdk.d.ts:1118-1132` |
175
+ | `continue` | method | `StepList` | `dist/flow-sdk.d.ts:1124-1138` |
176
176
  | `contribute` | method | `FlowNode` | `dist/core/node-classes.d.ts:144-153` |
177
177
  | `conversationalAgent` | property | `FlowActionSpecs` | `dist/core/actions.d.ts:1479-1482` |
178
178
  | `conversationContext` | property | `FlowActionSpecs` | `dist/nodes/conversation/flow/spec.d.ts:55-58` |
@@ -208,7 +208,7 @@ not find it either.
208
208
  | `deferDate` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:48-49` |
209
209
  | `definition` | property | `NodeContribution` | `dist/core/node-classes.d.ts:111-112` |
210
210
  | `definitions` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:758-763` |
211
- | `definitions` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1464-1504` |
211
+ | `definitions` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1471-1511` |
212
212
  | `delay` | property | `FlowActionSpecs` | `dist/nodes/delay/flow/spec.d.ts:38-41` |
213
213
  | `dependsOn` | property | `LookupSpec` | `dist/core/lookups.d.ts:34-35` |
214
214
  | `description` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:1187` |
@@ -225,7 +225,7 @@ not find it either.
225
225
  | `description` | property | `CustomGuardrail` | `dist/core/actions.d.ts:755` |
226
226
  | `description` | property | `EscalationRef` | `dist/core/actions.d.ts:1349-1350` |
227
227
  | `description` | property | `EventTriggerOpts` | `dist/case/case-sdk.d.ts:241` |
228
- | `description` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1273-1280` |
228
+ | `description` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1280-1287` |
229
229
  | `description` | property | `HttpRequestToolRef` | `dist/core/actions.d.ts:1154` |
230
230
  | `description` | property | `IxpExtractInputs` | `dist/core/actions.d.ts:337-344` |
231
231
  | `description` | property | `IxpToolRef` | `dist/core/actions.d.ts:1327-1328` |
@@ -267,7 +267,7 @@ not find it either.
267
267
  | `document` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:252-256` |
268
268
  | `documentClassify` | property | `FlowActionSpecs` | `dist/nodes/document/flow/spec.d.ts:56-59` |
269
269
  | `documentId` | property | `DocValidationInputs` | `dist/nodes/hitl/flow/spec.d.ts:84-85` |
270
- | `doWhile` | method | `StepList` | `dist/flow-sdk.d.ts:1083-1107` |
270
+ | `doWhile` | method | `StepList` | `dist/flow-sdk.d.ts:1089-1113` |
271
271
  | `dueDate` | property | `QueueItemInputs` | `dist/nodes/queue/flow/spec.d.ts:50-51` |
272
272
  | `duration` | property | `TimerSpec` | `dist/bpmn/bpmn-sdk.d.ts:33-34` |
273
273
  | `dynamicExtract` | property | `FlowActionSpecs` | `dist/nodes/document/flow/spec.d.ts:60-63` |
@@ -291,12 +291,12 @@ not find it either.
291
291
  | `entity` | property | `DataServiceOpts` | `dist/bpmn/bpmn-sdk.d.ts:1090-1091` |
292
292
  | `entry` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:528` |
293
293
  | `entry` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:520` |
294
- | `entryPoint` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1339-1389` |
294
+ | `entryPoint` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1346-1396` |
295
295
  | `entryPointId` | property | `ProcessMetadata` | `dist/bpmn/bpmn-sdk.d.ts:534-539` |
296
296
  | `entryPoints` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:764-765` |
297
297
  | `entryWhen` | method | `StageBuilder` | `dist/case/case-sdk.d.ts:1004-1011` |
298
298
  | `entryWhen` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:947-956` |
299
- | `err` | method | `StepList` | `dist/flow-sdk.d.ts:782-807` |
299
+ | `err` | method | `StepList` | `dist/flow-sdk.d.ts:788-813` |
300
300
  | `error` | property | `BoundaryOpts` | `dist/bpmn/bpmn-sdk.d.ts:750-754` |
301
301
  | `error` | property | `EndOpts` | `dist/bpmn/bpmn-sdk.d.ts:696-706` |
302
302
  | `error` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:1842-1847` |
@@ -461,7 +461,7 @@ not find it either.
461
461
  | `inclusiveGateway` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2266-2273` |
462
462
  | `inlineAgent` | property | `FlowActionSpecs` | `dist/core/actions.d.ts:1491-1494` |
463
463
  | `input` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1160-1185` |
464
- | `input` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1505-1517` |
464
+ | `input` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1551-1563` |
465
465
  | `input` | property | `HumanTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1355-1356` |
466
466
  | `input` | property | `OrchestratorOpts` | `dist/bpmn/bpmn-sdk.d.ts:1241-1242` |
467
467
  | `input` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3068-3076` |
@@ -534,7 +534,7 @@ not find it either.
534
534
  | `kind` | property | `SubflowSpec` | `dist/flow-sdk.d.ts:47` |
535
535
  | `kind` | property | `WhenExpression` | `dist/case/case-sdk.d.ts:99-100` |
536
536
  | `kValue` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:1194-1195` |
537
- | `label` | method | `ArmBuilder` | `dist/flow-sdk.d.ts:1237-1246` |
537
+ | `label` | method | `ArmBuilder` | `dist/flow-sdk.d.ts:1243-1252` |
538
538
  | `label` | property | `AskedField` | `dist/core/actions.d.ts:83-84` |
539
539
  | `label` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:523` |
540
540
  | `label` | property | `InOutField` | `dist/core/actions.d.ts:99-100` |
@@ -548,7 +548,7 @@ not find it either.
548
548
  | `layout` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:646-647` |
549
549
  | `layout` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:754-755` |
550
550
  | `layout` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1139-1159` |
551
- | `layout` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1281-1291` |
551
+ | `layout` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1288-1298` |
552
552
  | `limit` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:95-100` |
553
553
  | `limit` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:503-504` |
554
554
  | `literal` | property | `Expr` | `dist/core/expr.d.ts:18` |
@@ -558,7 +558,7 @@ not find it either.
558
558
  | `lookups` | property | `ConnectorMeta` | `dist/core/connectors.d.ts:76-87` |
559
559
  | `loop` | property | `ActivityNodeFields` | `dist/bpmn/bpmn-sdk.d.ts:335-336` |
560
560
  | `loop` | property | `ActivityOpts` | `dist/bpmn/bpmn-sdk.d.ts:832-833` |
561
- | `loop` | method | `StepList` | `dist/flow-sdk.d.ts:1071-1082` |
561
+ | `loop` | method | `StepList` | `dist/flow-sdk.d.ts:1077-1088` |
562
562
  | `managed` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:37-67` |
563
563
  | `marksCaseComplete` | property | `BuiltCaseExitCondition` | `dist/case/case-sdk.d.ts:354` |
564
564
  | `marksStageComplete` | property | `BuiltExitCondition` | `dist/case/case-sdk.d.ts:321` |
@@ -647,7 +647,7 @@ not find it either.
647
647
  | `name` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:1840-1841` |
648
648
  | `name` | property | `EventTriggerOpts` | `dist/case/case-sdk.d.ts:240` |
649
649
  | `name` | property | `ExternalTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1499-1500` |
650
- | `name` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1265-1272` |
650
+ | `name` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1272-1279` |
651
651
  | `name` | property | `FlowOpts` | `dist/bpmn/bpmn-sdk.d.ts:1637-1638` |
652
652
  | `name` | property | `GatewayOpts` | `dist/bpmn/bpmn-sdk.d.ts:760-761` |
653
653
  | `name` | property | `HandlerOpts` | `dist/bpmn/bpmn-sdk.d.ts:1735-1736` |
@@ -709,11 +709,13 @@ not find it either.
709
709
  | `onError` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3259-3266` |
710
710
  | `onError` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3267-3274` |
711
711
  | `onError` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3275-3283` |
712
- | `onError` | method | `StepList` | `dist/flow-sdk.d.ts:862-922` |
712
+ | `onError` | method | `StepList` | `dist/flow-sdk.d.ts:868-928` |
713
713
  | `onMessage` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3302-3310` |
714
714
  | `onMessage` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3311-3319` |
715
715
  | `onTimer` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3284-3292` |
716
716
  | `onTimer` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3293-3301` |
717
+ | `openTails` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:773-778` |
718
+ | `openTails` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1512-1550` |
717
719
  | `operation` | property | `Aggregation` | `dist/nodes/transform/flow/spec.d.ts:37` |
718
720
  | `operation` | property | `ConnectorToolRef` | `dist/core/actions.d.ts:1230-1231` |
719
721
  | `operation` | property | `WaitConnectorPlaceholderSpec` | `dist/case/case-sdk.d.ts:368-369` |
@@ -727,7 +729,7 @@ not find it either.
727
729
  | `outcomes` | property | `EscalationRef` | `dist/core/actions.d.ts:1395-1400` |
728
730
  | `outcomes` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:211-225` |
729
731
  | `output` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1186-1198` |
730
- | `output` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1518-1553` |
732
+ | `output` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1564-1599` |
731
733
  | `output` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:90` |
732
734
  | `output` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3077-3085` |
733
735
  | `outputColumns` | property | `BatchTransformInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:56-60` |
@@ -763,7 +765,7 @@ not find it either.
763
765
  | `pageRange` | property | `DynamicExtractInputs` | `dist/nodes/document/flow/spec.d.ts:49-50` |
764
766
  | `pageRange` | property | `IxpExtractInputs` | `dist/core/actions.d.ts:326-327` |
765
767
  | `parallel` | property | `LoopOptions` | `dist/flow-sdk.d.ts:485-486` |
766
- | `parallel` | method | `StepList` | `dist/flow-sdk.d.ts:1035-1070` |
768
+ | `parallel` | method | `StepList` | `dist/flow-sdk.d.ts:1041-1076` |
767
769
  | `parallelGateway` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2256-2265` |
768
770
  | `parameters` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1479-1480` |
769
771
  | `parameters` | property | `HttpOpts` | `dist/bpmn/bpmn-sdk.d.ts:1140-1145` |
@@ -862,7 +864,7 @@ not find it either.
862
864
  | `retry` | property | `ActivityOpts` | `dist/bpmn/bpmn-sdk.d.ts:830-831` |
863
865
  | `retryable` | property | `ErrorMappingRow` | `dist/bpmn/bpmn-sdk.d.ts:308-309` |
864
866
  | `retryCount` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:109-123` |
865
- | `return` | method | `StepList` | `dist/flow-sdk.d.ts:1213-1222` |
867
+ | `return` | method | `StepList` | `dist/flow-sdk.d.ts:1219-1228` |
866
868
  | `returnCitations` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:34-39` |
867
869
  | `returns` | property | `AgentInputs` | `dist/core/actions.d.ts:641-660` |
868
870
  | `returns` | property | `ApiWorkflowInputs` | `dist/core/actions.d.ts:429-441` |
@@ -903,7 +905,7 @@ not find it either.
903
905
  | `schemaVersion` | method | `BpmnBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3375-3404` |
904
906
  | `schemaVersion` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:738-744` |
905
907
  | `schemaVersion` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1068-1094` |
906
- | `schemaVersion` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1424-1463` |
908
+ | `schemaVersion` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1431-1470` |
907
909
  | `scope` | property | `EscalationRecipient` | `dist/case/case-sdk.d.ts:121` |
908
910
  | `scopes` | property | `GuardrailSelector` | `dist/core/actions.d.ts:701` |
909
911
  | `script` | property | `FlowActionSpecs` | `dist/nodes/script/flow/spec.d.ts:47-50` |
@@ -975,16 +977,16 @@ not find it either.
975
977
  | `startName` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:1887-1888` |
976
978
  | `startPayload` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:1889-1890` |
977
979
  | `startProcess` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2459-2478` |
978
- | `step` | method | `StepList` | `dist/flow-sdk.d.ts:808-818` |
980
+ | `step` | method | `StepList` | `dist/flow-sdk.d.ts:814-824` |
979
981
  | `steps` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:729-730` |
980
982
  | `steps` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:748` |
981
- | `steps` | property | `StepList` | `dist/flow-sdk.d.ts:776` |
982
- | `stepSwitch` | method | `StepList` | `dist/flow-sdk.d.ts:819-861` |
983
- | `stepToList` | method | `StepList` | `dist/flow-sdk.d.ts:936-964` |
984
- | `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1164-1192` |
985
- | `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1193-1212` |
983
+ | `steps` | property | `StepList` | `dist/flow-sdk.d.ts:782` |
984
+ | `stepSwitch` | method | `StepList` | `dist/flow-sdk.d.ts:825-867` |
985
+ | `stepToList` | method | `StepList` | `dist/flow-sdk.d.ts:942-970` |
986
+ | `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1170-1198` |
987
+ | `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1199-1218` |
986
988
  | `stickyNotes` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:756-757` |
987
- | `stickyNotes` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1292-1317` |
989
+ | `stickyNotes` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1299-1324` |
988
990
  | `storageBucket` | property | `DocValidationInputs` | `dist/nodes/hitl/flow/spec.d.ts:82-83` |
989
991
  | `strategy` | property | `LookupSpec` | `dist/core/lookups.d.ts:33` |
990
992
  | `style` | property | `CaseNodeLayout` | `dist/case/case-sdk.d.ts:597-598` |
@@ -997,7 +999,7 @@ not find it either.
997
999
  | `subType` | property | `VarSpec` | `dist/flow-sdk.d.ts:84-85` |
998
1000
  | `summarize` | property | `FlowActionSpecs` | `dist/nodes/ai-patterns/flow/spec.d.ts:66-69` |
999
1001
  | `summary` | property | `CaseAppConfig` | `dist/case/case-sdk.d.ts:585-586` |
1000
- | `switch` | method | `StepList` | `dist/flow-sdk.d.ts:992-1034` |
1002
+ | `switch` | method | `StepList` | `dist/flow-sdk.d.ts:998-1040` |
1001
1003
  | `systemPrompt` | property | `ConversationalAgentInputs` | `dist/core/actions.d.ts:134-139` |
1002
1004
  | `systemPrompt` | property | `InlineAgentInputs` | `dist/core/actions.d.ts:814-863` |
1003
1005
  | `systemPrompt` | property | `VoiceAgentInputs` | `dist/core/actions.d.ts:221-226` |
@@ -1022,7 +1024,7 @@ not find it either.
1022
1024
  | `temperature` | property | `InlineAgentInputs` | `dist/core/actions.d.ts:924-925` |
1023
1025
  | `temperature` | property | `VoiceSettings` | `dist/core/actions.d.ts:213-214` |
1024
1026
  | `terminate` | property | `EndOpts` | `dist/bpmn/bpmn-sdk.d.ts:692-693` |
1025
- | `terminate` | method | `StepList` | `dist/flow-sdk.d.ts:1133-1163` |
1027
+ | `terminate` | method | `StepList` | `dist/flow-sdk.d.ts:1139-1169` |
1026
1028
  | `threshold` | property | `ContextIndexRef` | `dist/core/actions.d.ts:1438-1439` |
1027
1029
  | `timeCycle` | property | `BuiltTrigger` | `dist/case/case-sdk.d.ts:201-202` |
1028
1030
  | `timeout` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:91-108` |
@@ -1046,11 +1048,11 @@ not find it either.
1046
1048
  | `trigger` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:749-751` |
1047
1049
  | `trigger` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1224-1232` |
1048
1050
  | `trigger` | property | `EscalationOpts` | `dist/case/case-sdk.d.ts:128-129` |
1049
- | `trigger` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1318-1338` |
1051
+ | `trigger` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1325-1345` |
1050
1052
  | `trigger` | property | `StartOpts` | `dist/bpmn/bpmn-sdk.d.ts:624-671` |
1051
1053
  | `triggeredByEvent` | property | `SubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:976-977` |
1052
1054
  | `triggerId` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:766-772` |
1053
- | `triggerId` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1390-1409` |
1055
+ | `triggerId` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1397-1416` |
1054
1056
  | `triggerOptions` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:752-753` |
1055
1057
  | `triggers` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:644-645` |
1056
1058
  | `triggers` | property | `CaseLayout` | `dist/case/case-sdk.d.ts:620-621` |
@@ -1106,7 +1108,7 @@ not find it either.
1106
1108
  | `value` | property | `TypedInputRow` | `dist/bpmn/typed-node.d.ts:205-206` |
1107
1109
  | `values` | property | `DataFabricCreateInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:132-137` |
1108
1110
  | `var` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1199-1223` |
1109
- | `var` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1554-1563` |
1111
+ | `var` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1600-1609` |
1110
1112
  | `var` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3059-3067` |
1111
1113
  | `var` | property | `TaskOutputBinding` | `dist/case/case-sdk.d.ts:494-495` |
1112
1114
  | `var` | property | `TypedOutputRow` | `dist/bpmn/typed-node.d.ts:251-252` |
@@ -1129,7 +1131,7 @@ not find it either.
1129
1131
  | `version` | property | `ConnectorToolRef` | `dist/core/actions.d.ts:1232-1233` |
1130
1132
  | `version` | property | `EventSubscription` | `dist/core/actions.d.ts:2116` |
1131
1133
  | `version` | property | `ExternalTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1507-1508` |
1132
- | `version` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1410-1423` |
1134
+ | `version` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1417-1430` |
1133
1135
  | `version` | property | `NodeOptions` | `dist/flow-sdk.d.ts:397-404` |
1134
1136
  | `version` | property | `TriggerMeta` | `dist/core/connectors.d.ts:126` |
1135
1137
  | `version` | property | `TriggerOptions` | `dist/core/actions.d.ts:2073-2074` |
package/dist/decompile.js CHANGED
@@ -2861,6 +2861,8 @@ function emitChildFlow(name, child, ctx) {
2861
2861
  o: ctx.o,
2862
2862
  };
2863
2863
  const parts = [`${ctx.imp.use('flow')}(${tsLiteral(name)})`];
2864
+ // As for the root flow (emitFlow): every End is explicit, so nothing is implicit.
2865
+ parts.push('.openTails()');
2864
2866
  // Variables.
2865
2867
  const shape = (dir) => `{ ${globals.filter((g) => g.direction === dir).map((g) => `${key(g.name ?? g.id)}: ${declExpr(g, dir !== 'inout', ctx.imp)}`).join(', ')} }`;
2866
2868
  if (globals.some((g) => g.direction === 'in'))
@@ -3050,6 +3052,11 @@ export function decompile(flow, options = {}) {
3050
3052
  }
3051
3053
  if (runCarried.size > 0)
3052
3054
  e.line(d, `.definitions([${[...runCarried.values()].join(', ')}])`);
3055
+ // Every End in the file decompiles to an explicit `.return(...)` or
3056
+ // `.terminate(...)`, so the source needs no implicit End: one would only add
3057
+ // an End to a path the file leaves open (#1142). Always saying so, rather
3058
+ // than detecting open tails, keeps this from drifting from what serialize caps.
3059
+ e.line(d, '.openTails()');
3053
3060
  // Trigger nodes. One root is the default: the isDefaultEntryPoint carrier
3054
3061
  // when the file marks one (a multi-root flow always does), else `start`.
3055
3062
  // A node's TYPE is not enough: `uipath.connector.event.<key>.<event>` is a
@@ -288,6 +288,12 @@ export interface FlowNodeType<Spec> extends NodeType<Spec, FlowNodeContribution,
288
288
  * envelope is in `<step>.output` (instance 430d43ad-4583-40c0-8f74-b49d2c4904e4).
289
289
  */
290
290
  readonly errorEnvelope?: string;
291
+ /**
292
+ * `true`: a path that ends on this node is capped with an End even under
293
+ * `.openTails()`. A human task sets it: the product's `hitl-completed`
294
+ * rule wants an edge after the task.
295
+ */
296
+ readonly capsOpenTail?: boolean;
291
297
  /**
292
298
  * The exits the AUTHOR named on this step — an HTTP call's response branches,
293
299
  * and the port each leaves on — or why it has none to route. What
@@ -770,6 +770,12 @@ export interface BuiltFlow {
770
770
  * follows.
771
771
  */
772
772
  triggerId?: string;
773
+ /**
774
+ * `true` when `.openTails()` was called: a path that runs out of steps
775
+ * stops on its last node, with no End node added. Absent means the default —
776
+ * every such path is capped with an End.
777
+ */
778
+ openTails?: true;
773
779
  }
774
780
  /** Collects a sequence of steps. Used for the flow body and each branch/loop arm. */
775
781
  declare class StepList {
@@ -1261,6 +1267,7 @@ declare class FlowBuilder extends StepList {
1261
1267
  private _triggerOptions?;
1262
1268
  private _entryPoints;
1263
1269
  private _triggerId?;
1270
+ private _openTails;
1264
1271
  constructor(_id: string);
1265
1272
  /**
1266
1273
  * Set the flow's display name.
@@ -1502,6 +1509,45 @@ declare class FlowBuilder extends StepList {
1502
1509
  * @throws Error when a manifest is not a node manifest, or two differ for one `nodeType@version`.
1503
1510
  */
1504
1511
  definitions(manifests: readonly Record<string, unknown>[]): this;
1512
+ /**
1513
+ * Leave a path that runs out of steps open, instead of ending it on an End node.
1514
+ *
1515
+ * @remarks
1516
+ * By default compile caps every path that falls off the end of its
1517
+ * step list with a `core.control.end` node, and that End maps the flow's
1518
+ * outputs, so the run answers with them. The places this applies are the
1519
+ * flow's own body, a subflow's body, and an `.onError` / `.stepToList` body.
1520
+ *
1521
+ * `.openTails()` leaves such a path open: its last node simply has no outgoing edge.
1522
+ * It is the shape the classic CLI and the canvas write for a flow nobody gave
1523
+ * an End node, and `uip maestro flow validate` accepts it. `flow-decompile`
1524
+ * emits `.openTails()` for every file it decompiles (each End the file
1525
+ * has becomes an explicit `.return(...)`), so a no-edit decompile → compile →
1526
+ * merge does not add an End the author never drew.
1527
+ *
1528
+ * It changes only paths that fall off. `.return(...)`, `.terminate(...)`, a
1529
+ * `.stepSwitch` exit with no arm and a human-task outcome with
1530
+ * `action: 'End'` still emit their End. A human task that ends a path is
1531
+ * still capped with an End (the product's `hitl-completed` rule wants an edge
1532
+ * after it), so a file whose human task has no outgoing edge gains one on a
1533
+ * round trip. A path left open maps no outputs, so a flow that declares
1534
+ * `.output(...)` answers nothing on that path. Use `.return(...)` on the
1535
+ * paths that must answer.
1536
+ *
1537
+ * A subflow's child flow has its own setting; it does not inherit the
1538
+ * caller's.
1539
+ *
1540
+ * @example
1541
+ * **Keep a classic flow's open tail open**
1542
+ * ```ts
1543
+ * flow('notify')
1544
+ * .openTails()
1545
+ * .step('send', script({ code: 'return { sent: true };' }))
1546
+ * ```
1547
+ *
1548
+ * @returns This builder, so calls chain.
1549
+ */
1550
+ openTails(): this;
1505
1551
  /**
1506
1552
  * Declare the flow's inputs. Read them with `input('<name>')`.
1507
1553
  *
package/dist/flow-sdk.js CHANGED
@@ -909,6 +909,7 @@ class FlowBuilder extends StepList {
909
909
  _triggerOptions;
910
910
  _entryPoints = [];
911
911
  _triggerId;
912
+ _openTails = false;
912
913
  constructor(_id) {
913
914
  super();
914
915
  this._id = _id;
@@ -1211,6 +1212,48 @@ class FlowBuilder extends StepList {
1211
1212
  this._definitions = [...known.values()];
1212
1213
  return this;
1213
1214
  }
1215
+ /**
1216
+ * Leave a path that runs out of steps open, instead of ending it on an End node.
1217
+ *
1218
+ * @remarks
1219
+ * By default compile caps every path that falls off the end of its
1220
+ * step list with a `core.control.end` node, and that End maps the flow's
1221
+ * outputs, so the run answers with them. The places this applies are the
1222
+ * flow's own body, a subflow's body, and an `.onError` / `.stepToList` body.
1223
+ *
1224
+ * `.openTails()` leaves such a path open: its last node simply has no outgoing edge.
1225
+ * It is the shape the classic CLI and the canvas write for a flow nobody gave
1226
+ * an End node, and `uip maestro flow validate` accepts it. `flow-decompile`
1227
+ * emits `.openTails()` for every file it decompiles (each End the file
1228
+ * has becomes an explicit `.return(...)`), so a no-edit decompile → compile →
1229
+ * merge does not add an End the author never drew.
1230
+ *
1231
+ * It changes only paths that fall off. `.return(...)`, `.terminate(...)`, a
1232
+ * `.stepSwitch` exit with no arm and a human-task outcome with
1233
+ * `action: 'End'` still emit their End. A human task that ends a path is
1234
+ * still capped with an End (the product's `hitl-completed` rule wants an edge
1235
+ * after it), so a file whose human task has no outgoing edge gains one on a
1236
+ * round trip. A path left open maps no outputs, so a flow that declares
1237
+ * `.output(...)` answers nothing on that path. Use `.return(...)` on the
1238
+ * paths that must answer.
1239
+ *
1240
+ * A subflow's child flow has its own setting; it does not inherit the
1241
+ * caller's.
1242
+ *
1243
+ * @example
1244
+ * **Keep a classic flow's open tail open**
1245
+ * ```ts
1246
+ * flow('notify')
1247
+ * .openTails()
1248
+ * .step('send', script({ code: 'return { sent: true };' }))
1249
+ * ```
1250
+ *
1251
+ * @returns This builder, so calls chain.
1252
+ */
1253
+ openTails() {
1254
+ this._openTails = true;
1255
+ return this;
1256
+ }
1214
1257
  /**
1215
1258
  * Declare the flow's inputs. Read them with `input('<name>')`.
1216
1259
  *
@@ -1310,6 +1353,7 @@ class FlowBuilder extends StepList {
1310
1353
  ...(this._triggerOptions !== undefined ? { triggerOptions: this._triggerOptions } : {}),
1311
1354
  ...(this._entryPoints.length ? { entryPoints: this._entryPoints } : {}),
1312
1355
  ...(this._triggerId !== undefined ? { triggerId: this._triggerId } : {}),
1356
+ ...(this._openTails ? { openTails: true } : {}),
1313
1357
  };
1314
1358
  // First-level validation, intrinsic to running the SDK: catch a definitely-
1315
1359
  // broken expression HERE, before the model is serialized, rather than three
@@ -518,6 +518,7 @@ function hitlAt(typeName, version, factory) {
518
518
  return {
519
519
  kind: 'hitl', typeName, version, factory: 'hitl', definition: 'bundled',
520
520
  rawNode: { factory },
521
+ capsOpenTail: true,
521
522
  serialize: ({ inputs }, ctx) => {
522
523
  // How the task leaves its node — `hitlExitModel` (core/hitl-routing.ts)
523
524
  // has the product rule and what `.step()` means after each shape. An
package/dist/serialize.js CHANGED
@@ -3893,6 +3893,7 @@ function newScope(outputs, vars = [], backing = new Map(), backingReads = backin
3893
3893
  agentSchemas: [],
3894
3894
  stepNodeId: new Map(),
3895
3895
  pendingEdges: [],
3896
+ openTails: false,
3896
3897
  };
3897
3898
  }
3898
3899
  /**
@@ -4369,6 +4370,7 @@ export function serialize(built, opts = {}) {
4369
4370
  const subflows = {};
4370
4371
  const rootGlobals = emittableGlobals(built, `flow "${built.id}"`);
4371
4372
  const root = newScope(rootGlobals.outputs, rootGlobals.vars, rootGlobals.backing, rootGlobals.backingReads);
4373
+ root.openTails = built.openTails === true;
4372
4374
  // `input('x')` lowers eagerly to `$vars.start.output.x` — `start` being the
4373
4375
  // trigger node's default id. When the flow renames the trigger, register that
4374
4376
  // rename so the SAME pass that rewrites step-name references rewrites these
@@ -4532,6 +4534,21 @@ export function serialize(built, opts = {}) {
4532
4534
  addEdge(scope, t, id);
4533
4535
  return node;
4534
4536
  }
4537
+ /** Node ids whose type sets `capsOpenTail` (see {@link tailsToCap}). */
4538
+ const capsOpenTail = new Set();
4539
+ /**
4540
+ * The tails of a path that ran out of steps which still need an End node.
4541
+ *
4542
+ * All of them by default. Under `.openTails()` (#1142) only the tails
4543
+ * of a node whose type sets `capsOpenTail` (a human task: the product's
4544
+ * `hitl-completed` rule wants an edge after it). Every other tail is left
4545
+ * open, which is the shape the classic CLI and the canvas write.
4546
+ */
4547
+ function tailsToCap(scope, tails) {
4548
+ if (!scope.openTails)
4549
+ return [...tails];
4550
+ return tails.filter((t) => capsOpenTail.has(t.node));
4551
+ }
4535
4552
  /**
4536
4553
  * Emit a child flow into its own scope and register it under the calling
4537
4554
  * node's id — that key is how the format names a subflow body, and how
@@ -4559,6 +4576,7 @@ export function serialize(built, opts = {}) {
4559
4576
  function emitSubflowBodyIn(child, nodeId) {
4560
4577
  const childGlobals = emittableGlobals(child, `subflow "${nodeId}"`, 'subflow');
4561
4578
  const scope = newScope(childGlobals.outputs, childGlobals.vars, childGlobals.backing, childGlobals.backingReads);
4579
+ scope.openTails = child.openTails === true;
4562
4580
  // Claim this copy's node ids UP FRONT, so the rename map is complete before
4563
4581
  // the first expression renders. A child's step names are free the first
4564
4582
  // time it runs; if any of them is already taken — which is what a second
@@ -4589,8 +4607,9 @@ export function serialize(built, opts = {}) {
4589
4607
  const tails = emit(child.steps, [{ node: startId, port: 'output' }], scope);
4590
4608
  // Same as the root's implicit End — mapped against the SUBFLOW's own
4591
4609
  // outputs, which is the scope the product validates a subflow body in.
4592
- if (tails.length)
4593
- emitEnd(scope, uid(scope, 'end'), tails);
4610
+ const capped = tailsToCap(scope, tails);
4611
+ if (capped.length)
4612
+ emitEnd(scope, uid(scope, 'end'), capped);
4594
4613
  const globals = [];
4595
4614
  for (const inp of child.inputs)
4596
4615
  globals.push({ id: inp.name, name: inp.name, direction: 'in', type: inp.type, triggerNodeId: startId, ...varMeta(inp) });
@@ -4838,6 +4857,8 @@ export function serialize(built, opts = {}) {
4838
4857
  const impl = resolved.impl;
4839
4858
  const version = resolved.version;
4840
4859
  const id = stepUid(scope, step.name);
4860
+ if (impl.capsOpenTail)
4861
+ capsOpenTail.add(id);
4841
4862
  // As for every typed family: record the failure-envelope boundary before any
4842
4863
  // expression renders, so a handler reading this step resolves correctly.
4843
4864
  if (impl.errorEnvelope)
@@ -6017,9 +6038,10 @@ export function serialize(built, opts = {}) {
6017
6038
  // A body that runs out of steps ends the run on an End of its own (no
6018
6039
  // merge-back is inferred). That End maps the outputs like any other, so a
6019
6040
  // body that set them with `{ updates }` still answers (#742).
6020
- if (handlerTails.length) {
6041
+ const capped = tailsToCap(scope, handlerTails);
6042
+ if (capped.length) {
6021
6043
  const endId = uid(scope, `${source}${step.port === 'error' ? 'Error' : step.port.charAt(0).toUpperCase() + step.port.slice(1)}End`);
6022
- emitEnd(scope, endId, handlerTails, { parentId });
6044
+ emitEnd(scope, endId, capped, { parentId });
6023
6045
  }
6024
6046
  return router !== undefined ? [] : tails;
6025
6047
  }
@@ -6485,8 +6507,10 @@ export function serialize(built, opts = {}) {
6485
6507
  // The implicit End a flow falls off the bottom into still terminates the
6486
6508
  // flow, so it maps the flow's outputs — each to itself, since no `.return`
6487
6509
  // named a value here.
6488
- if (finalTails.length)
6489
- emitEnd(root, uid(root, 'end'), finalTails);
6510
+ // `.openTails()` leaves those tails open instead (#1142).
6511
+ const finalCapped = tailsToCap(root, finalTails);
6512
+ if (finalCapped.length)
6513
+ emitEnd(root, uid(root, 'end'), finalCapped);
6490
6514
  // ── Additional entry points (design §5.1) ────────────────────────────────
6491
6515
  // Emitted AFTER the shared body so their prefixes can join it by name. Once a
6492
6516
  // flow has more than one root, every root carries the platform's entry-point
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/maestro-builder-sdk",
3
- "version": "6.28.0",
3
+ "version": "6.29.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",
@@ -92,5 +92,5 @@
92
92
  "@types/node": "^22.7.0",
93
93
  "esbuild": "^0.28.1"
94
94
  },
95
- "gitref": "2129535cf7f13d90345db00a5d72d096c69fce04"
95
+ "gitref": "af71b0c21f732f056d19e802af1c987fd8528336"
96
96
  }