@uipath/maestro-builder-sdk 6.32.1 → 6.32.3
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 +17 -17
- package/dist/api-members.md +76 -76
- package/dist/check.js +83 -15
- package/dist/decompile.js +6 -3
- package/dist/flow-sdk.d.ts +19 -8
- package/dist/flow-sdk.js +8 -0
- package/dist/flow-terminate-names.d.ts +9 -0
- package/dist/flow-terminate-names.js +17 -0
- package/dist/serialize.js +137 -5
- package/package.json +2 -2
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:1715-1749` | 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:468-499` | 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:
|
|
60
|
+
| `ArmBuilder` | class | `dist/flow-sdk.d.ts:1269-1292` | 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:126-141` | 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
|
-
| `BuiltEntryPoint` | interface | `dist/flow-sdk.d.ts:
|
|
66
|
-
| `BuiltFlow` | interface | `dist/flow-sdk.d.ts:
|
|
65
|
+
| `BuiltEntryPoint` | interface | `dist/flow-sdk.d.ts:733-745` | Supporting types | One additional flow root, built by `.entryPoint()`. |
|
|
66
|
+
| `BuiltFlow` | interface | `dist/flow-sdk.d.ts:746-793` | Supporting types | 17 field(s) |
|
|
67
67
|
| `BuiltinToolName` | type | `dist/core/actions.d.ts:1123-1124` | Supporting types | The three platform-shipped built-in tools (fixed registry types). |
|
|
68
68
|
| `BuiltinToolRef` | interface | `dist/core/actions.d.ts:1256-1276` | Supporting types | A platform built-in tool. |
|
|
69
69
|
| `BuiltInValidatorGuardrail` | interface | `dist/core/actions.d.ts:819-860` | Supporting types | A platform-shipped validator, configured by parameters. |
|
|
@@ -113,10 +113,10 @@ could hand you spans for a version you do not have.
|
|
|
113
113
|
| `documentClassify` | function | `dist/nodes/document/flow/factories.d.ts:8-16` | Actions | Classify a document into a document type (`uipath.document.classify`). |
|
|
114
114
|
| `DocumentClassifyInputs` | interface | `dist/nodes/document/flow/spec.d.ts:9-18` | Option shapes | 4 field(s) |
|
|
115
115
|
| `DocValidationInputs` | interface | `dist/nodes/hitl/flow/spec.d.ts:70-93` | Option shapes | The Document Validation task's subject — `variant: 'document-validation'` only. |
|
|
116
|
-
| `DoWhileOptions` | interface | `dist/flow-sdk.d.ts:
|
|
116
|
+
| `DoWhileOptions` | interface | `dist/flow-sdk.d.ts:512-521` | Option shapes | Do-while options. |
|
|
117
117
|
| `dynamicExtract` | function | `dist/nodes/document/flow/factories.d.ts:17-27` | Actions | Extract fields from a document with an INLINE schema — Dynamic Extract (`uipath.ixp.extract-document-builder`), the… |
|
|
118
118
|
| `DynamicExtractInputs` | interface | `dist/nodes/document/flow/spec.d.ts:19-53` | Option shapes | 5 field(s) |
|
|
119
|
-
| `EdgeRoute` | interface | `dist/flow-sdk.d.ts:
|
|
119
|
+
| `EdgeRoute` | interface | `dist/flow-sdk.d.ts:657-671` | Supporting types | One edge's route: user-dragged bends and/or the auto-router's waypoints. |
|
|
120
120
|
| `endCall` | function | `dist/core/actions.d.ts:1792-1799` | Actions | Hang up (`uipath.conversational.voice.end-call`). |
|
|
121
121
|
| `EndCallInputs` | interface | `dist/core/actions.d.ts:246-253` | Option shapes | 1 field(s) |
|
|
122
122
|
| `entryInput` | function | `dist/core/expr.d.ts:62-72` | Expressions and types | Reference an ENTRY POINT's scoped input: `entryInput('nightly', 'batchDate')` reads `$vars.nightly.output.batchDate` —… |
|
|
@@ -130,12 +130,12 @@ could hand you spans for a version you do not have.
|
|
|
130
130
|
| `FilterCondition` | type | `dist/nodes/transform/flow/spec.d.ts:10-11` | Supporting types | Comparison a filter rule applies to a field. |
|
|
131
131
|
| `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. |
|
|
132
132
|
| `FilterRule` | interface | `dist/nodes/transform/flow/spec.d.ts:12-24` | Supporting types | 3 field(s) |
|
|
133
|
-
| `flow` | function | `dist/flow-sdk.d.ts:
|
|
133
|
+
| `flow` | function | `dist/flow-sdk.d.ts:1657-1672` | Flow construction | Start building a flow with the given id. |
|
|
134
134
|
| `FlowAction` | class | `dist/core/node-classes.d.ts:162-168` | Supporting types | A node placed as a step — pass an instance to `.step(name, …)`. |
|
|
135
135
|
| `FlowActionSpec` | type | `dist/flow-sdk.d.ts:53-54` | Supporting types | What `.step()` accepts here: the shared actions plus this SDK's subflow. |
|
|
136
136
|
| `FlowActionSpecs` | interface | `dist/core/actions.d.ts:1500-1577` | Supporting types | Every action kind, keyed by kind, to the body of its spec — the arm's fields other than `kind`. |
|
|
137
|
-
| `FlowBuilder` | class | `dist/flow-sdk.d.ts:
|
|
138
|
-
| `FlowLayout` | interface | `dist/flow-sdk.d.ts:
|
|
137
|
+
| `FlowBuilder` | class | `dist/flow-sdk.d.ts:1293-1656` | Builders | 15 member(s) |
|
|
138
|
+
| `FlowLayout` | interface | `dist/flow-sdk.d.ts:719-732` | Supporting types | Designer layout for a flow, keyed by AUTHOR-level ids: node entries by step name (plus the trigger id and `end`), edge… |
|
|
139
139
|
| `FlowNode` | class | `dist/core/node-classes.d.ts:126-161` | Supporting types | The abstract root of every definition-backed node the builder can place. |
|
|
140
140
|
| `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. |
|
|
141
141
|
| `FlowTrigger` | class | `dist/core/node-classes.d.ts:169-175` | Supporting types | A node that starts the flow — pass an instance to `.trigger(…)`. |
|
|
@@ -184,12 +184,12 @@ could hand you spans for a version you do not have.
|
|
|
184
184
|
| `lookupSpecOf` | function | `dist/core/lookups.d.ts:199-206` | Generated descriptors | The LookupSpec for one field, or `undefined` when it earns no helper. |
|
|
185
185
|
| `LookupStrategy` | type | `dist/core/lookups.d.ts:1-10` | Generated descriptors | How `prepare` should retrieve the collection, chosen from the metadata. |
|
|
186
186
|
| `LookupToken` | interface | `dist/core/lookups.d.ts:37-52` | Generated descriptors | An unresolved lookup: what `.byEmail(…)` returns. |
|
|
187
|
-
| `LoopOptions` | interface | `dist/flow-sdk.d.ts:
|
|
187
|
+
| `LoopOptions` | interface | `dist/flow-sdk.d.ts:487-511` | Option shapes | Loop-specific options. |
|
|
188
188
|
| `manual` | function | `dist/flow-sdk.d.ts:181-190` | Flow construction | The manual trigger, explicitly. |
|
|
189
189
|
| `McpToolRef` | interface | `dist/core/actions.d.ts:1135-1163` | Supporting types | An MCP server the agent may call tools on. |
|
|
190
190
|
| `mock` | function | `dist/nodes/mock/flow/factories.d.ts:6-45` | Actions | Declare a PLACEHOLDER step — "a real node goes here later". |
|
|
191
191
|
| `NodeContribution` | interface | `dist/core/node-classes.d.ts:102-125` | Supporting types | One validated construct, returned by FlowNode.contribute. |
|
|
192
|
-
| `NodeLayout` | interface | `dist/flow-sdk.d.ts:
|
|
192
|
+
| `NodeLayout` | interface | `dist/flow-sdk.d.ts:642-656` | Supporting types | One node's designer layout: canvas position, and optionally size and collapsed state. |
|
|
193
193
|
| `NodeOptions` | interface | `dist/flow-sdk.d.ts:391-444` | Option shapes | Options shared by every builder method that creates a definition-backed node: `version` selects the exact node… |
|
|
194
194
|
| `onEvent` | function | `dist/flow-sdk.d.ts:191-229` | Flow construction | Start the flow when a connector event fires — e.g. an email arriving in a mailbox folder. |
|
|
195
195
|
| `onEvent` | function | `dist/flow-sdk.d.ts:230-237` | Flow construction | Stringly form, for an event with no prepared module. |
|
|
@@ -212,7 +212,7 @@ could hand you spans for a version you do not have.
|
|
|
212
212
|
| `resolvedValue` | function | `dist/core/lookups.d.ts:172-179` | Generated descriptors | The recorded id for a token, or `undefined`. |
|
|
213
213
|
| `resolveEventWhere` | function | `dist/core/lookups.d.ts:207-224` | Generated descriptors | An event subscription's `where` with every lookup token swapped for the id `registry prepare --resolve` recorded, or a… |
|
|
214
214
|
| `ReturnFieldType` | type | `dist/core/actions.d.ts:736-753` | Supporting types | A JSON-schema-ish type for one field of a step's declared `returns`. |
|
|
215
|
-
| `ReturnOptions` | interface | `dist/flow-sdk.d.ts:445-
|
|
215
|
+
| `ReturnOptions` | interface | `dist/flow-sdk.d.ts:445-486` | Option shapes | `.return(...)`-specific options. |
|
|
216
216
|
| `rpaWorkflow` | function | `dist/core/actions.d.ts:1670-1714` | Actions | Invoke a deployed RPA (robotic process automation) workflow — a classic UI-automation process, published to… |
|
|
217
217
|
| `RpaWorkflowInputs` | interface | `dist/core/actions.d.ts:409-467` | Option shapes | 7 field(s) |
|
|
218
218
|
| `SCHEDULE_PRESETS` | const | `dist/flow-sdk.d.ts:128-135` | Flow construction | The eight intervals the designer offers in its Frequency dropdown. |
|
|
@@ -227,12 +227,12 @@ could hand you spans for a version you do not have.
|
|
|
227
227
|
| `sendMessage` | function | `dist/nodes/conversation/flow/factories.d.ts:8-26` | Actions | Post an assistant message into a live conversation (`uipath.conversational.send-message`). |
|
|
228
228
|
| `SendMessageInputs` | interface | `dist/nodes/conversation/flow/spec.d.ts:8-27` | Option shapes | 4 field(s) |
|
|
229
229
|
| `ShownField` | interface | `dist/core/actions.d.ts:105-125` | Supporting types | A value the reviewer READS: shown on the form, filled in from the flow. |
|
|
230
|
-
| `Step` | type | `dist/flow-sdk.d.ts:
|
|
231
|
-
| `StepList` | class | `dist/flow-sdk.d.ts:
|
|
232
|
-
| `STICKY_NOTE_COLORS` | const | `dist/flow-sdk.d.ts:
|
|
233
|
-
| `StickyNote` | interface | `dist/flow-sdk.d.ts:
|
|
234
|
-
| `StickyNoteColor` | type | `dist/flow-sdk.d.ts:
|
|
235
|
-
| `subflow` | function | `dist/flow-sdk.d.ts:
|
|
230
|
+
| `Step` | type | `dist/flow-sdk.d.ts:522-641` | Supporting types | |
|
|
231
|
+
| `StepList` | class | `dist/flow-sdk.d.ts:794-1268` | Builders | Collects a sequence of steps. |
|
|
232
|
+
| `STICKY_NOTE_COLORS` | const | `dist/flow-sdk.d.ts:672-677` | Flow construction | The designer's sticky-note palette. |
|
|
233
|
+
| `StickyNote` | interface | `dist/flow-sdk.d.ts:684-718` | Supporting types | A canvas sticky note — free text pinned to the diagram, for the humans reading it. |
|
|
234
|
+
| `StickyNoteColor` | type | `dist/flow-sdk.d.ts:678-683` | Supporting types | A sticky note's swatch. |
|
|
235
|
+
| `subflow` | function | `dist/flow-sdk.d.ts:1673-1712` | Flow construction | Run another flow as one step, and read back what it returns. |
|
|
236
236
|
| `SubflowSpec` | interface | `dist/flow-sdk.d.ts:45-52` | Supporting types | A step that runs a child flow. |
|
|
237
237
|
| `summarize` | function | `dist/nodes/ai-patterns/flow/factories.d.ts:8-48` | Actions | Summarize a document with citations — the platform's **Summarize** node. |
|
|
238
238
|
| `SummarizeInputs` | interface | `dist/nodes/ai-patterns/flow/spec.d.ts:8-40` | Option shapes | 3 field(s) |
|
package/dist/api-members.md
CHANGED
|
@@ -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:
|
|
69
|
+
| `armLabel` | property | `ArmBuilder` | `dist/flow-sdk.d.ts:1281` |
|
|
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:
|
|
100
|
+
| `branch` | method | `StepList` | `dist/flow-sdk.d.ts:993-1011` |
|
|
101
101
|
| `branches` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:25-30` |
|
|
102
|
-
| `break` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
103
|
-
| `breakEnabled` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:
|
|
104
|
-
| `breakEnabled` | property | `LoopOptions` | `dist/flow-sdk.d.ts:
|
|
102
|
+
| `break` | method | `StepList` | `dist/flow-sdk.d.ts:1128-1137` |
|
|
103
|
+
| `breakEnabled` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:519-520` |
|
|
104
|
+
| `breakEnabled` | property | `LoopOptions` | `dist/flow-sdk.d.ts:506-510` |
|
|
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:
|
|
107
|
+
| `build` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1649-1655` |
|
|
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` |
|
|
@@ -126,13 +126,13 @@ not find it either.
|
|
|
126
126
|
| `code` | property | `ErrorDecl` | `dist/bpmn/bpmn-sdk.d.ts:439-440` |
|
|
127
127
|
| `code` | property | `ErrorMappingRow` | `dist/bpmn/bpmn-sdk.d.ts:299-307` |
|
|
128
128
|
| `code` | property | `ScriptInputs` | `dist/nodes/script/flow/spec.d.ts:8-9` |
|
|
129
|
-
| `collapsed` | property | `NodeLayout` | `dist/flow-sdk.d.ts:
|
|
129
|
+
| `collapsed` | property | `NodeLayout` | `dist/flow-sdk.d.ts:654-655` |
|
|
130
130
|
| `collection` | property | `LoopSpec` | `dist/bpmn/bpmn-sdk.d.ts:79-80` |
|
|
131
131
|
| `collection` | property | `TransformInputs` | `dist/nodes/transform/flow/spec.d.ts:85-95` |
|
|
132
|
-
| `color` | property | `StickyNote` | `dist/flow-sdk.d.ts:
|
|
132
|
+
| `color` | property | `StickyNote` | `dist/flow-sdk.d.ts:708-709` |
|
|
133
133
|
| `completeWhen` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1249-1259` |
|
|
134
134
|
| `completion` | property | `LoopSpec` | `dist/bpmn/bpmn-sdk.d.ts:85-86` |
|
|
135
|
-
| `completionCondition` | property | `LoopOptions` | `dist/flow-sdk.d.ts:
|
|
135
|
+
| `completionCondition` | property | `LoopOptions` | `dist/flow-sdk.d.ts:501-505` |
|
|
136
136
|
| `condition` | property | `BpmnFlow` | `dist/bpmn/bpmn-sdk.d.ts:350-351` |
|
|
137
137
|
| `condition` | property | `ErrorMappingRow` | `dist/bpmn/bpmn-sdk.d.ts:314-320` |
|
|
138
138
|
| `condition` | property | `FilterRule` | `dist/nodes/transform/flow/spec.d.ts:15` |
|
|
@@ -164,7 +164,7 @@ not find it either.
|
|
|
164
164
|
| `connectorKey` | property | `HttpOpts` | `dist/bpmn/bpmn-sdk.d.ts:1184-1190` |
|
|
165
165
|
| `connectorKey` | property | `WaitConnectorPlaceholderSpec` | `dist/case/case-sdk.d.ts:366-367` |
|
|
166
166
|
| `content` | property | `SendMessageInputs` | `dist/nodes/conversation/flow/spec.d.ts:20-21` |
|
|
167
|
-
| `content` | property | `StickyNote` | `dist/flow-sdk.d.ts:
|
|
167
|
+
| `content` | property | `StickyNote` | `dist/flow-sdk.d.ts:706-707` |
|
|
168
168
|
| `contentType` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:36` |
|
|
169
169
|
| `context` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1526-1527` |
|
|
170
170
|
| `context` | property | `ConversationalAgentSettings` | `dist/core/actions.d.ts:179-180` |
|
|
@@ -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:
|
|
175
|
+
| `continue` | method | `StepList` | `dist/flow-sdk.d.ts:1138-1152` |
|
|
176
176
|
| `contribute` | method | `FlowNode` | `dist/core/node-classes.d.ts:144-153` |
|
|
177
177
|
| `conversationalAgent` | property | `FlowActionSpecs` | `dist/core/actions.d.ts:1536-1539` |
|
|
178
178
|
| `conversationContext` | property | `FlowActionSpecs` | `dist/nodes/conversation/flow/spec.d.ts:55-58` |
|
|
@@ -207,13 +207,13 @@ not find it either.
|
|
|
207
207
|
| `defaultOf` | property | `PendingExit` | `dist/bpmn/bpmn-sdk.d.ts:1924-1925` |
|
|
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
|
-
| `definitions` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
211
|
-
| `definitions` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
210
|
+
| `definitions` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:772-777` |
|
|
211
|
+
| `definitions` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1510-1550` |
|
|
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:1244` |
|
|
215
215
|
| `description` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:633` |
|
|
216
|
-
| `description` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
216
|
+
| `description` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:749-750` |
|
|
217
217
|
| `description` | property | `BuiltinToolRef` | `dist/core/actions.d.ts:1264-1265` |
|
|
218
218
|
| `description` | property | `BuiltInValidatorGuardrail` | `dist/core/actions.d.ts:825` |
|
|
219
219
|
| `description` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:525` |
|
|
@@ -225,7 +225,7 @@ not find it either.
|
|
|
225
225
|
| `description` | property | `CustomGuardrail` | `dist/core/actions.d.ts:812` |
|
|
226
226
|
| `description` | property | `EscalationRef` | `dist/core/actions.d.ts:1406-1407` |
|
|
227
227
|
| `description` | property | `EventTriggerOpts` | `dist/case/case-sdk.d.ts:241` |
|
|
228
|
-
| `description` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
228
|
+
| `description` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1319-1326` |
|
|
229
229
|
| `description` | property | `HttpRequestToolRef` | `dist/core/actions.d.ts:1211` |
|
|
230
230
|
| `description` | property | `IxpExtractInputs` | `dist/core/actions.d.ts:394-401` |
|
|
231
231
|
| `description` | property | `IxpToolRef` | `dist/core/actions.d.ts:1384-1385` |
|
|
@@ -267,12 +267,12 @@ not find it either.
|
|
|
267
267
|
| `document` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:285-289` |
|
|
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:
|
|
270
|
+
| `doWhile` | method | `StepList` | `dist/flow-sdk.d.ts:1103-1127` |
|
|
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` |
|
|
274
274
|
| `dynamicFewShotLearning` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:1247-1248` |
|
|
275
|
-
| `edges` | property | `FlowLayout` | `dist/flow-sdk.d.ts:
|
|
275
|
+
| `edges` | property | `FlowLayout` | `dist/flow-sdk.d.ts:730-731` |
|
|
276
276
|
| `element` | property | `PlainTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1619-1620` |
|
|
277
277
|
| `element` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:80-81` |
|
|
278
278
|
| `elementId` | property | `BpmnVarDecl` | `dist/bpmn/bpmn-sdk.d.ts:378-385` |
|
|
@@ -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:
|
|
294
|
+
| `entryPoint` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1385-1435` |
|
|
295
295
|
| `entryPointId` | property | `ProcessMetadata` | `dist/bpmn/bpmn-sdk.d.ts:534-539` |
|
|
296
|
-
| `entryPoints` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
296
|
+
| `entryPoints` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:778-779` |
|
|
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:
|
|
299
|
+
| `err` | method | `StepList` | `dist/flow-sdk.d.ts:802-827` |
|
|
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` |
|
|
@@ -417,7 +417,7 @@ not find it either.
|
|
|
417
417
|
| `headers` | property | `HttpOpts` | `dist/bpmn/bpmn-sdk.d.ts:1138-1139` |
|
|
418
418
|
| `headers` | property | `HttpRequestToolRef` | `dist/core/actions.d.ts:1216-1220` |
|
|
419
419
|
| `height` | property | `CaseNodeLayout` | `dist/case/case-sdk.d.ts:606-607` |
|
|
420
|
-
| `height` | property | `StickyNote` | `dist/flow-sdk.d.ts:
|
|
420
|
+
| `height` | property | `StickyNote` | `dist/flow-sdk.d.ts:716-717` |
|
|
421
421
|
| `hidden` | property | `RegistryContextField` | `dist/bpmn/typed-node.d.ts:27` |
|
|
422
422
|
| `hidden` | property | `RegistryInputField` | `dist/bpmn/typed-node.d.ts:61` |
|
|
423
423
|
| `hitl` | property | `FlowActionSpecs` | `dist/nodes/hitl/flow/spec.d.ts:293-296` |
|
|
@@ -433,8 +433,8 @@ not find it either.
|
|
|
433
433
|
| `id` | property | `BpmnVarDecl` | `dist/bpmn/bpmn-sdk.d.ts:368-369` |
|
|
434
434
|
| `id` | property | `BuiltBpmn` | `dist/bpmn/bpmn-sdk.d.ts:491-492` |
|
|
435
435
|
| `id` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:624` |
|
|
436
|
-
| `id` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:
|
|
437
|
-
| `id` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
436
|
+
| `id` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:735-736` |
|
|
437
|
+
| `id` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:747` |
|
|
438
438
|
| `id` | property | `BuiltInValidatorGuardrail` | `dist/core/actions.d.ts:821-822` |
|
|
439
439
|
| `id` | property | `CaseAppSection` | `dist/case/case-sdk.d.ts:576-577` |
|
|
440
440
|
| `id` | property | `ContextIndexRef` | `dist/core/actions.d.ts:1475-1480` |
|
|
@@ -450,7 +450,7 @@ not find it either.
|
|
|
450
450
|
| `id` | property | `PinnedFlowId` | `dist/bpmn/bpmn-sdk.d.ts:1630-1631` |
|
|
451
451
|
| `id` | property | `SchemaEntry` | `dist/bpmn/bpmn-sdk.d.ts:1001-1002` |
|
|
452
452
|
| `id` | property | `ShownField` | `dist/core/actions.d.ts:107-108` |
|
|
453
|
-
| `id` | property | `StickyNote` | `dist/flow-sdk.d.ts:
|
|
453
|
+
| `id` | property | `StickyNote` | `dist/flow-sdk.d.ts:696-705` |
|
|
454
454
|
| `id` | property | `SwitchArm` | `dist/flow-sdk.d.ts:369-375` |
|
|
455
455
|
| `id` | property | `VarEntry` | `dist/bpmn/bpmn-sdk.d.ts:992-993` |
|
|
456
456
|
| `identifier` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:634` |
|
|
@@ -462,7 +462,7 @@ not find it either.
|
|
|
462
462
|
| `inclusiveGateway` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2266-2273` |
|
|
463
463
|
| `inlineAgent` | property | `FlowActionSpecs` | `dist/core/actions.d.ts:1548-1551` |
|
|
464
464
|
| `input` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1160-1185` |
|
|
465
|
-
| `input` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
465
|
+
| `input` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1590-1602` |
|
|
466
466
|
| `input` | property | `HumanTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1355-1356` |
|
|
467
467
|
| `input` | property | `OrchestratorOpts` | `dist/bpmn/bpmn-sdk.d.ts:1241-1242` |
|
|
468
468
|
| `input` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3068-3076` |
|
|
@@ -475,8 +475,8 @@ not find it either.
|
|
|
475
475
|
| `inputs` | property | `AgentInputs` | `dist/core/actions.d.ts:680-697` |
|
|
476
476
|
| `inputs` | property | `ApiWorkflowInputs` | `dist/core/actions.d.ts:481-485` |
|
|
477
477
|
| `inputs` | property | `AppRef` | `dist/nodes/hitl/flow/spec.d.ts:176-184` |
|
|
478
|
-
| `inputs` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:
|
|
479
|
-
| `inputs` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
478
|
+
| `inputs` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:741-742` |
|
|
479
|
+
| `inputs` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:759` |
|
|
480
480
|
| `inputs` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:516-517` |
|
|
481
481
|
| `inputs` | property | `ClientSideToolRef` | `dist/core/actions.d.ts:1196-1197` |
|
|
482
482
|
| `inputs` | property | `ExternalTaskOptions` | `dist/case/case-sdk.d.ts:399-400` |
|
|
@@ -535,7 +535,7 @@ not find it either.
|
|
|
535
535
|
| `kind` | property | `SubflowSpec` | `dist/flow-sdk.d.ts:47` |
|
|
536
536
|
| `kind` | property | `WhenExpression` | `dist/case/case-sdk.d.ts:99-100` |
|
|
537
537
|
| `kValue` | property | `AgentMemoryRef` | `dist/core/actions.d.ts:1251-1252` |
|
|
538
|
-
| `label` | method | `ArmBuilder` | `dist/flow-sdk.d.ts:
|
|
538
|
+
| `label` | method | `ArmBuilder` | `dist/flow-sdk.d.ts:1282-1291` |
|
|
539
539
|
| `label` | property | `AskedField` | `dist/core/actions.d.ts:130-131` |
|
|
540
540
|
| `label` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:523` |
|
|
541
541
|
| `label` | property | `FormFieldOption` | `dist/core/actions.d.ts:102-103` |
|
|
@@ -548,12 +548,12 @@ not find it either.
|
|
|
548
548
|
| `labels` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:228-229` |
|
|
549
549
|
| `lanes` | property | `BuiltStage` | `dist/case/case-sdk.d.ts:527` |
|
|
550
550
|
| `layout` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:646-647` |
|
|
551
|
-
| `layout` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
551
|
+
| `layout` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:768-769` |
|
|
552
552
|
| `layout` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1139-1159` |
|
|
553
|
-
| `layout` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
553
|
+
| `layout` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1327-1337` |
|
|
554
554
|
| `legacyCompleted` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:252-284` |
|
|
555
555
|
| `limit` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:95-100` |
|
|
556
|
-
| `limit` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:
|
|
556
|
+
| `limit` | property | `DoWhileOptions` | `dist/flow-sdk.d.ts:517-518` |
|
|
557
557
|
| `literal` | property | `Expr` | `dist/core/expr.d.ts:18` |
|
|
558
558
|
| `location` | property | `AgenticProcessInputsBase` | `dist/core/actions.d.ts:550-560` |
|
|
559
559
|
| `location` | property | `AgentInputs` | `dist/core/actions.d.ts:656-661` |
|
|
@@ -561,7 +561,7 @@ not find it either.
|
|
|
561
561
|
| `lookups` | property | `ConnectorMeta` | `dist/core/connectors.d.ts:76-87` |
|
|
562
562
|
| `loop` | property | `ActivityNodeFields` | `dist/bpmn/bpmn-sdk.d.ts:335-336` |
|
|
563
563
|
| `loop` | property | `ActivityOpts` | `dist/bpmn/bpmn-sdk.d.ts:832-833` |
|
|
564
|
-
| `loop` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
564
|
+
| `loop` | method | `StepList` | `dist/flow-sdk.d.ts:1091-1102` |
|
|
565
565
|
| `managed` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:37-67` |
|
|
566
566
|
| `marksCaseComplete` | property | `BuiltCaseExitCondition` | `dist/case/case-sdk.d.ts:354` |
|
|
567
567
|
| `marksStageComplete` | property | `BuiltExitCondition` | `dist/case/case-sdk.d.ts:321` |
|
|
@@ -630,7 +630,7 @@ not find it either.
|
|
|
630
630
|
| `name` | property | `BpmnVarDecl` | `dist/bpmn/bpmn-sdk.d.ts:370-371` |
|
|
631
631
|
| `name` | property | `BuiltBpmn` | `dist/bpmn/bpmn-sdk.d.ts:493-494` |
|
|
632
632
|
| `name` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:625` |
|
|
633
|
-
| `name` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
633
|
+
| `name` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:748` |
|
|
634
634
|
| `name` | property | `BuiltInValidatorGuardrail` | `dist/core/actions.d.ts:824` |
|
|
635
635
|
| `name` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:501-502` |
|
|
636
636
|
| `name` | property | `BuiltTrigger` | `dist/case/case-sdk.d.ts:198-199` |
|
|
@@ -650,7 +650,7 @@ not find it either.
|
|
|
650
650
|
| `name` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:1840-1841` |
|
|
651
651
|
| `name` | property | `EventTriggerOpts` | `dist/case/case-sdk.d.ts:240` |
|
|
652
652
|
| `name` | property | `ExternalTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1499-1500` |
|
|
653
|
-
| `name` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
653
|
+
| `name` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1311-1318` |
|
|
654
654
|
| `name` | property | `FlowOpts` | `dist/bpmn/bpmn-sdk.d.ts:1637-1638` |
|
|
655
655
|
| `name` | property | `GatewayOpts` | `dist/bpmn/bpmn-sdk.d.ts:760-761` |
|
|
656
656
|
| `name` | property | `HandlerOpts` | `dist/bpmn/bpmn-sdk.d.ts:1735-1736` |
|
|
@@ -678,7 +678,7 @@ not find it either.
|
|
|
678
678
|
| `name` | property | `RegistryOutput` | `dist/bpmn/typed-node.d.ts:72` |
|
|
679
679
|
| `name` | property | `RemoteA2aToolRef` | `dist/core/actions.d.ts:1171-1172` |
|
|
680
680
|
| `name` | property | `ResolvedEventTriggerOpts` | `dist/case/case-sdk.d.ts:266-267` |
|
|
681
|
-
| `name` | property | `ReturnOptions` | `dist/flow-sdk.d.ts:460-
|
|
681
|
+
| `name` | property | `ReturnOptions` | `dist/flow-sdk.d.ts:460-485` |
|
|
682
682
|
| `name` | property | `RpaWorkflowInputs` | `dist/core/actions.d.ts:421-422` |
|
|
683
683
|
| `name` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:844-845` |
|
|
684
684
|
| `name` | property | `SplitOpts` | `dist/bpmn/bpmn-sdk.d.ts:1830-1831` |
|
|
@@ -695,7 +695,7 @@ not find it either.
|
|
|
695
695
|
| `name` | property | `VarDecl` | `dist/flow-sdk.d.ts:60` |
|
|
696
696
|
| `name` | property | `VarOpts` | `dist/bpmn/bpmn-sdk.d.ts:1644-1645` |
|
|
697
697
|
| `nodes` | property | `BuiltBpmn` | `dist/bpmn/bpmn-sdk.d.ts:503-504` |
|
|
698
|
-
| `nodes` | property | `FlowLayout` | `dist/flow-sdk.d.ts:
|
|
698
|
+
| `nodes` | property | `FlowLayout` | `dist/flow-sdk.d.ts:728-729` |
|
|
699
699
|
| `nodes` | property | `ScopeStorage` | `dist/bpmn/bpmn-sdk.d.ts:1935-1936` |
|
|
700
700
|
| `nodeType` | property | `ConnectorMeta` | `dist/core/connectors.d.ts:62` |
|
|
701
701
|
| `nodeType` | property | `LookupResolution` | `dist/core/lookups.d.ts:162` |
|
|
@@ -712,13 +712,13 @@ not find it either.
|
|
|
712
712
|
| `onError` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3259-3266` |
|
|
713
713
|
| `onError` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3267-3274` |
|
|
714
714
|
| `onError` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3275-3283` |
|
|
715
|
-
| `onError` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
715
|
+
| `onError` | method | `StepList` | `dist/flow-sdk.d.ts:882-942` |
|
|
716
716
|
| `onMessage` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3302-3310` |
|
|
717
717
|
| `onMessage` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3311-3319` |
|
|
718
718
|
| `onTimer` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3284-3292` |
|
|
719
719
|
| `onTimer` | method | `ActivityBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3293-3301` |
|
|
720
|
-
| `openTails` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
721
|
-
| `openTails` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
720
|
+
| `openTails` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:787-792` |
|
|
721
|
+
| `openTails` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1551-1589` |
|
|
722
722
|
| `operation` | property | `Aggregation` | `dist/nodes/transform/flow/spec.d.ts:37` |
|
|
723
723
|
| `operation` | property | `ConnectorToolRef` | `dist/core/actions.d.ts:1287-1288` |
|
|
724
724
|
| `operation` | property | `WaitConnectorPlaceholderSpec` | `dist/case/case-sdk.d.ts:368-369` |
|
|
@@ -726,7 +726,7 @@ not find it either.
|
|
|
726
726
|
| `operator` | property | `DataFabricFilter` | `dist/nodes/data-fabric/flow/spec.d.ts:29-30` |
|
|
727
727
|
| `options` | property | `ActionField` | `dist/case/case-sdk.d.ts:445-449` |
|
|
728
728
|
| `options` | property | `AskedField` | `dist/core/actions.d.ts:134-138` |
|
|
729
|
-
| `options` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:
|
|
729
|
+
| `options` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:739-740` |
|
|
730
730
|
| `options` | property | `InOutField` | `dist/core/actions.d.ts:155-159` |
|
|
731
731
|
| `options` | property | `ShownField` | `dist/core/actions.d.ts:113-117` |
|
|
732
732
|
| `or` | property | `DataFabricFilter` | `dist/nodes/data-fabric/flow/spec.d.ts:38-50` |
|
|
@@ -735,7 +735,7 @@ not find it either.
|
|
|
735
735
|
| `outcomes` | property | `EscalationRef` | `dist/core/actions.d.ts:1452-1457` |
|
|
736
736
|
| `outcomes` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:211-225` |
|
|
737
737
|
| `output` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1186-1198` |
|
|
738
|
-
| `output` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
738
|
+
| `output` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1603-1638` |
|
|
739
739
|
| `output` | property | `RegistryTypeSpec` | `dist/bpmn/typed-node.d.ts:90` |
|
|
740
740
|
| `output` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3077-3085` |
|
|
741
741
|
| `outputColumns` | property | `BatchTransformInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:56-60` |
|
|
@@ -744,7 +744,7 @@ not find it either.
|
|
|
744
744
|
| `outputRows` | property | `ScriptTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:909-918` |
|
|
745
745
|
| `outputs` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:464-465` |
|
|
746
746
|
| `outputs` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1564-1565` |
|
|
747
|
-
| `outputs` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
747
|
+
| `outputs` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:760` |
|
|
748
748
|
| `outputs` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:518-519` |
|
|
749
749
|
| `outputs` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1483-1493` |
|
|
750
750
|
| `outputs` | property | `EventTriggerOpts` | `dist/case/case-sdk.d.ts:248-262` |
|
|
@@ -770,8 +770,8 @@ not find it either.
|
|
|
770
770
|
| `pageRange` | property | `DocumentClassifyInputs` | `dist/nodes/document/flow/spec.d.ts:12-13` |
|
|
771
771
|
| `pageRange` | property | `DynamicExtractInputs` | `dist/nodes/document/flow/spec.d.ts:49-50` |
|
|
772
772
|
| `pageRange` | property | `IxpExtractInputs` | `dist/core/actions.d.ts:383-384` |
|
|
773
|
-
| `parallel` | property | `LoopOptions` | `dist/flow-sdk.d.ts:
|
|
774
|
-
| `parallel` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
773
|
+
| `parallel` | property | `LoopOptions` | `dist/flow-sdk.d.ts:499-500` |
|
|
774
|
+
| `parallel` | method | `StepList` | `dist/flow-sdk.d.ts:1055-1090` |
|
|
775
775
|
| `parallelGateway` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2256-2265` |
|
|
776
776
|
| `parameters` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1479-1480` |
|
|
777
777
|
| `parameters` | property | `HttpOpts` | `dist/bpmn/bpmn-sdk.d.ts:1140-1145` |
|
|
@@ -790,7 +790,7 @@ not find it either.
|
|
|
790
790
|
| `pinnedFlowIds` | property | `SugarRegistry` | `dist/bpmn/bpmn-sdk.d.ts:1951-1958` |
|
|
791
791
|
| `plainTask` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2302-2331` |
|
|
792
792
|
| `position` | property | `CaseNodeLayout` | `dist/case/case-sdk.d.ts:592-596` |
|
|
793
|
-
| `position` | property | `NodeLayout` | `dist/flow-sdk.d.ts:
|
|
793
|
+
| `position` | property | `NodeLayout` | `dist/flow-sdk.d.ts:644-648` |
|
|
794
794
|
| `preservation` | property | `BuiltBpmn` | `dist/bpmn/bpmn-sdk.d.ts:511-512` |
|
|
795
795
|
| `preserve` | method | `BpmnBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3332-3347` |
|
|
796
796
|
| `priority` | property | `ActionSpecData` | `dist/case/case-sdk.d.ts:453` |
|
|
@@ -870,7 +870,7 @@ not find it either.
|
|
|
870
870
|
| `retry` | property | `ActivityOpts` | `dist/bpmn/bpmn-sdk.d.ts:830-831` |
|
|
871
871
|
| `retryable` | property | `ErrorMappingRow` | `dist/bpmn/bpmn-sdk.d.ts:308-309` |
|
|
872
872
|
| `retryCount` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:109-123` |
|
|
873
|
-
| `return` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
873
|
+
| `return` | method | `StepList` | `dist/flow-sdk.d.ts:1258-1267` |
|
|
874
874
|
| `returnCitations` | property | `SummarizeInputs` | `dist/nodes/ai-patterns/flow/spec.d.ts:34-39` |
|
|
875
875
|
| `returns` | property | `AgentInputs` | `dist/core/actions.d.ts:698-717` |
|
|
876
876
|
| `returns` | property | `ApiWorkflowInputs` | `dist/core/actions.d.ts:486-498` |
|
|
@@ -886,7 +886,7 @@ not find it either.
|
|
|
886
886
|
| `role` | property | `FlowNode` | `dist/core/node-classes.d.ts:142-143` |
|
|
887
887
|
| `role` | property | `FlowResource` | `dist/core/node-classes.d.ts:181-182` |
|
|
888
888
|
| `role` | property | `FlowTrigger` | `dist/core/node-classes.d.ts:173-174` |
|
|
889
|
-
| `routedWaypoints` | property | `EdgeRoute` | `dist/flow-sdk.d.ts:
|
|
889
|
+
| `routedWaypoints` | property | `EdgeRoute` | `dist/flow-sdk.d.ts:665-670` |
|
|
890
890
|
| `rpa` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:751-760` |
|
|
891
891
|
| `rpaWorkflow` | property | `FlowActionSpecs` | `dist/core/actions.d.ts:1512-1515` |
|
|
892
892
|
| `rule` | property | `CaseRule` | `dist/case/case-sdk.d.ts:80` |
|
|
@@ -909,9 +909,9 @@ not find it either.
|
|
|
909
909
|
| `schemas` | method | `BpmnBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3433-3443` |
|
|
910
910
|
| `schemas` | property | `BuiltBpmn` | `dist/bpmn/bpmn-sdk.d.ts:509-510` |
|
|
911
911
|
| `schemaVersion` | method | `BpmnBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3375-3404` |
|
|
912
|
-
| `schemaVersion` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
912
|
+
| `schemaVersion` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:752-758` |
|
|
913
913
|
| `schemaVersion` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1068-1094` |
|
|
914
|
-
| `schemaVersion` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
914
|
+
| `schemaVersion` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1470-1509` |
|
|
915
915
|
| `scope` | property | `EscalationRecipient` | `dist/case/case-sdk.d.ts:121` |
|
|
916
916
|
| `scopes` | property | `GuardrailSelector` | `dist/core/actions.d.ts:758` |
|
|
917
917
|
| `script` | property | `FlowActionSpecs` | `dist/nodes/script/flow/spec.d.ts:47-50` |
|
|
@@ -937,7 +937,7 @@ not find it either.
|
|
|
937
937
|
| `severity` | property | `ContributionDiagnostic` | `dist/core/node-classes.d.ts:31-32` |
|
|
938
938
|
| `shared` | property | `VarDecl` | `dist/flow-sdk.d.ts:69-70` |
|
|
939
939
|
| `shared` | property | `VarSpec` | `dist/flow-sdk.d.ts:94-126` |
|
|
940
|
-
| `size` | property | `NodeLayout` | `dist/flow-sdk.d.ts:
|
|
940
|
+
| `size` | property | `NodeLayout` | `dist/flow-sdk.d.ts:649-653` |
|
|
941
941
|
| `skip` | property | `BuiltTask` | `dist/case/case-sdk.d.ts:515` |
|
|
942
942
|
| `skip` | property | `DataFabricReadInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:101-102` |
|
|
943
943
|
| `skipCondition` | property | `ActivityNodeOpts` | `dist/bpmn/bpmn-sdk.d.ts:1598-1599` |
|
|
@@ -983,16 +983,16 @@ not find it either.
|
|
|
983
983
|
| `startName` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:1887-1888` |
|
|
984
984
|
| `startPayload` | property | `EventSubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:1889-1890` |
|
|
985
985
|
| `startProcess` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2459-2478` |
|
|
986
|
-
| `step` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
987
|
-
| `steps` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:
|
|
988
|
-
| `steps` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
989
|
-
| `steps` | property | `StepList` | `dist/flow-sdk.d.ts:
|
|
990
|
-
| `stepSwitch` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
991
|
-
| `stepToList` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
992
|
-
| `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
993
|
-
| `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
994
|
-
| `stickyNotes` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
995
|
-
| `stickyNotes` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
986
|
+
| `step` | method | `StepList` | `dist/flow-sdk.d.ts:828-838` |
|
|
987
|
+
| `steps` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:743-744` |
|
|
988
|
+
| `steps` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:762` |
|
|
989
|
+
| `steps` | property | `StepList` | `dist/flow-sdk.d.ts:796` |
|
|
990
|
+
| `stepSwitch` | method | `StepList` | `dist/flow-sdk.d.ts:839-881` |
|
|
991
|
+
| `stepToList` | method | `StepList` | `dist/flow-sdk.d.ts:956-984` |
|
|
992
|
+
| `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1192-1236` |
|
|
993
|
+
| `stepToRef` | method | `StepList` | `dist/flow-sdk.d.ts:1237-1257` |
|
|
994
|
+
| `stickyNotes` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:770-771` |
|
|
995
|
+
| `stickyNotes` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1338-1363` |
|
|
996
996
|
| `storageBucket` | property | `DocValidationInputs` | `dist/nodes/hitl/flow/spec.d.ts:82-83` |
|
|
997
997
|
| `strategy` | property | `LookupSpec` | `dist/core/lookups.d.ts:33` |
|
|
998
998
|
| `style` | property | `CaseNodeLayout` | `dist/case/case-sdk.d.ts:597-598` |
|
|
@@ -1005,7 +1005,7 @@ not find it either.
|
|
|
1005
1005
|
| `subType` | property | `VarSpec` | `dist/flow-sdk.d.ts:84-85` |
|
|
1006
1006
|
| `summarize` | property | `FlowActionSpecs` | `dist/nodes/ai-patterns/flow/spec.d.ts:66-69` |
|
|
1007
1007
|
| `summary` | property | `CaseAppConfig` | `dist/case/case-sdk.d.ts:585-586` |
|
|
1008
|
-
| `switch` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
1008
|
+
| `switch` | method | `StepList` | `dist/flow-sdk.d.ts:1012-1054` |
|
|
1009
1009
|
| `systemPrompt` | property | `ConversationalAgentInputs` | `dist/core/actions.d.ts:191-196` |
|
|
1010
1010
|
| `systemPrompt` | property | `InlineAgentInputs` | `dist/core/actions.d.ts:871-920` |
|
|
1011
1011
|
| `systemPrompt` | property | `VoiceAgentInputs` | `dist/core/actions.d.ts:278-283` |
|
|
@@ -1030,7 +1030,7 @@ not find it either.
|
|
|
1030
1030
|
| `temperature` | property | `InlineAgentInputs` | `dist/core/actions.d.ts:981-982` |
|
|
1031
1031
|
| `temperature` | property | `VoiceSettings` | `dist/core/actions.d.ts:270-271` |
|
|
1032
1032
|
| `terminate` | property | `EndOpts` | `dist/bpmn/bpmn-sdk.d.ts:692-693` |
|
|
1033
|
-
| `terminate` | method | `StepList` | `dist/flow-sdk.d.ts:
|
|
1033
|
+
| `terminate` | method | `StepList` | `dist/flow-sdk.d.ts:1153-1191` |
|
|
1034
1034
|
| `threshold` | property | `ContextIndexRef` | `dist/core/actions.d.ts:1495-1496` |
|
|
1035
1035
|
| `timeCycle` | property | `BuiltTrigger` | `dist/case/case-sdk.d.ts:201-202` |
|
|
1036
1036
|
| `timeout` | property | `HttpInputsBase` | `dist/nodes/http/flow/spec.d.ts:91-108` |
|
|
@@ -1050,16 +1050,16 @@ not find it either.
|
|
|
1050
1050
|
| `tools` | property | `InlineAgentInputs` | `dist/core/actions.d.ts:1072-1094` |
|
|
1051
1051
|
| `transform` | property | `FlowActionSpecs` | `dist/nodes/transform/flow/spec.d.ts:111-114` |
|
|
1052
1052
|
| `transformation` | property | `FieldMapping` | `dist/nodes/transform/flow/spec.d.ts:30-31` |
|
|
1053
|
-
| `trigger` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:
|
|
1054
|
-
| `trigger` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
1053
|
+
| `trigger` | property | `BuiltEntryPoint` | `dist/flow-sdk.d.ts:737-738` |
|
|
1054
|
+
| `trigger` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:763-765` |
|
|
1055
1055
|
| `trigger` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1224-1232` |
|
|
1056
1056
|
| `trigger` | property | `EscalationOpts` | `dist/case/case-sdk.d.ts:128-129` |
|
|
1057
|
-
| `trigger` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
1057
|
+
| `trigger` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1364-1384` |
|
|
1058
1058
|
| `trigger` | property | `StartOpts` | `dist/bpmn/bpmn-sdk.d.ts:624-671` |
|
|
1059
1059
|
| `triggeredByEvent` | property | `SubProcessOpts` | `dist/bpmn/bpmn-sdk.d.ts:976-977` |
|
|
1060
|
-
| `triggerId` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
1061
|
-
| `triggerId` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
1062
|
-
| `triggerOptions` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
1060
|
+
| `triggerId` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:780-786` |
|
|
1061
|
+
| `triggerId` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1436-1455` |
|
|
1062
|
+
| `triggerOptions` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:766-767` |
|
|
1063
1063
|
| `triggers` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:644-645` |
|
|
1064
1064
|
| `triggers` | property | `CaseLayout` | `dist/case/case-sdk.d.ts:620-621` |
|
|
1065
1065
|
| `type` | property | `ActionField` | `dist/case/case-sdk.d.ts:435-436` |
|
|
@@ -1115,7 +1115,7 @@ not find it either.
|
|
|
1115
1115
|
| `value` | property | `TypedInputRow` | `dist/bpmn/typed-node.d.ts:205-206` |
|
|
1116
1116
|
| `values` | property | `DataFabricCreateInputs` | `dist/nodes/data-fabric/flow/spec.d.ts:132-137` |
|
|
1117
1117
|
| `var` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1199-1223` |
|
|
1118
|
-
| `var` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
1118
|
+
| `var` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1639-1648` |
|
|
1119
1119
|
| `var` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3059-3067` |
|
|
1120
1120
|
| `var` | property | `TaskOutputBinding` | `dist/case/case-sdk.d.ts:494-495` |
|
|
1121
1121
|
| `var` | property | `TypedOutputRow` | `dist/bpmn/typed-node.d.ts:251-252` |
|
|
@@ -1125,12 +1125,12 @@ not find it either.
|
|
|
1125
1125
|
| `variant` | property | `HitlInputs` | `dist/nodes/hitl/flow/spec.d.ts:187-191` |
|
|
1126
1126
|
| `variant` | property | `TransformInputs` | `dist/nodes/transform/flow/spec.d.ts:96-105` |
|
|
1127
1127
|
| `vars` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:640` |
|
|
1128
|
-
| `vars` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
1128
|
+
| `vars` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:761` |
|
|
1129
1129
|
| `vars` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:3086-3111` |
|
|
1130
1130
|
| `vars` | property | `ScopeStorage` | `dist/bpmn/bpmn-sdk.d.ts:1939-1940` |
|
|
1131
1131
|
| `varSchema` | property | `TypedOutputRow` | `dist/bpmn/typed-node.d.ts:257-271` |
|
|
1132
1132
|
| `version` | property | `BuiltCase` | `dist/case/case-sdk.d.ts:626-632` |
|
|
1133
|
-
| `version` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:
|
|
1133
|
+
| `version` | property | `BuiltFlow` | `dist/flow-sdk.d.ts:751` |
|
|
1134
1134
|
| `version` | method | `CaseBuilder` | `dist/case/case-sdk.d.ts:1057-1067` |
|
|
1135
1135
|
| `version` | property | `ConnectorEventOpts` | `dist/bpmn/bpmn-sdk.d.ts:1435-1436` |
|
|
1136
1136
|
| `version` | property | `ConnectorMeta` | `dist/core/connectors.d.ts:63` |
|
|
@@ -1138,7 +1138,7 @@ not find it either.
|
|
|
1138
1138
|
| `version` | property | `ConnectorToolRef` | `dist/core/actions.d.ts:1289-1290` |
|
|
1139
1139
|
| `version` | property | `EventSubscription` | `dist/core/actions.d.ts:2173` |
|
|
1140
1140
|
| `version` | property | `ExternalTaskOpts` | `dist/bpmn/bpmn-sdk.d.ts:1507-1508` |
|
|
1141
|
-
| `version` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:
|
|
1141
|
+
| `version` | method | `FlowBuilder` | `dist/flow-sdk.d.ts:1456-1469` |
|
|
1142
1142
|
| `version` | property | `NodeOptions` | `dist/flow-sdk.d.ts:397-404` |
|
|
1143
1143
|
| `version` | property | `TriggerMeta` | `dist/core/connectors.d.ts:126` |
|
|
1144
1144
|
| `version` | property | `TriggerOptions` | `dist/core/actions.d.ts:2130-2131` |
|
|
@@ -1155,13 +1155,13 @@ not find it either.
|
|
|
1155
1155
|
| `waitForEvent` | method | `ScopeBuilder` | `dist/bpmn/bpmn-sdk.d.ts:2688-2729` |
|
|
1156
1156
|
| `waitForMessage` | property | `FlowActionSpecs` | `dist/nodes/conversation/flow/spec.d.ts:51-54` |
|
|
1157
1157
|
| `waitForTimer` | method | `TaskBuilder` | `dist/case/case-sdk.d.ts:877-883` |
|
|
1158
|
-
| `waypoints` | property | `EdgeRoute` | `dist/flow-sdk.d.ts:
|
|
1158
|
+
| `waypoints` | property | `EdgeRoute` | `dist/flow-sdk.d.ts:659-664` |
|
|
1159
1159
|
| `when` | property | `SlaOpts` | `dist/case/case-sdk.d.ts:176-182` |
|
|
1160
1160
|
| `when` | property | `SwitchArm` | `dist/flow-sdk.d.ts:362-367` |
|
|
1161
1161
|
| `where` | property | `EventSubscription` | `dist/core/actions.d.ts:2139-2157` |
|
|
1162
1162
|
| `where` | property | `TriggerOptions` | `dist/core/actions.d.ts:2092-2109` |
|
|
1163
1163
|
| `width` | property | `CaseNodeLayout` | `dist/case/case-sdk.d.ts:604-605` |
|
|
1164
|
-
| `width` | property | `StickyNote` | `dist/flow-sdk.d.ts:
|
|
1165
|
-
| `x` | property | `StickyNote` | `dist/flow-sdk.d.ts:
|
|
1166
|
-
| `y` | property | `StickyNote` | `dist/flow-sdk.d.ts:
|
|
1164
|
+
| `width` | property | `StickyNote` | `dist/flow-sdk.d.ts:714-715` |
|
|
1165
|
+
| `x` | property | `StickyNote` | `dist/flow-sdk.d.ts:710-711` |
|
|
1166
|
+
| `y` | property | `StickyNote` | `dist/flow-sdk.d.ts:712-713` |
|
|
1167
1167
|
| `zIndex` | property | `CaseNodeLayout` | `dist/case/case-sdk.d.ts:608-609` |
|
package/dist/check.js
CHANGED
|
@@ -26,6 +26,7 @@ import { compareSchemaVersions, schemaVersionRefusal } from './schema-version.js
|
|
|
26
26
|
import { planFlowGlobals, planSharedInputs, sharedInputRoots } from './flow-variables.js';
|
|
27
27
|
import { planOutputBacking } from './flow-output-backing.js';
|
|
28
28
|
import { ownEntry } from './core/own-entry.js';
|
|
29
|
+
import { terminateStepClashMessage, terminateTwiceMessage } from './flow-terminate-names.js';
|
|
29
30
|
import { endContentKey } from './flow-end-content.js';
|
|
30
31
|
import { FLOW_NODE_TYPES } from './flow-node-registry.js';
|
|
31
32
|
import { stepExits } from './flow-step-exits.js';
|
|
@@ -271,8 +272,24 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
271
272
|
// referenceable — registering it would report DUP_STEP the second time one
|
|
272
273
|
// appears. The port-edge kinds carry no name at all.
|
|
273
274
|
if ('name' in s && s.kind !== 'return') {
|
|
274
|
-
if (stepNames.has(s.name))
|
|
275
|
-
|
|
275
|
+
if (stepNames.has(s.name)) {
|
|
276
|
+
// Two `.terminate('<name>')` calls are two Terminate nodes: the second
|
|
277
|
+
// would be renamed `<name>2`, so paths that all stop at ONE Terminate
|
|
278
|
+
// come back with an extra node (#1239). Same code as any step clash (a
|
|
279
|
+
// Terminate's name is a step name), with the remedy spelled out.
|
|
280
|
+
// A step and a Terminate sharing a name (either order) get the same
|
|
281
|
+
// words serialize throws for them: rename one.
|
|
282
|
+
const twoTerminates = s.kind === 'terminate' && terminateNames.has(s.name);
|
|
283
|
+
const oneTerminate = (s.kind === 'terminate') !== terminateNames.has(s.name);
|
|
284
|
+
diags.push({
|
|
285
|
+
level: 'error', code: 'DUP_STEP', step: s.name,
|
|
286
|
+
message: twoTerminates
|
|
287
|
+
? terminateTwiceMessage(s.name)
|
|
288
|
+
: oneTerminate
|
|
289
|
+
? terminateStepClashMessage(s.name)
|
|
290
|
+
: `Duplicate step name "${s.name}".`,
|
|
291
|
+
});
|
|
292
|
+
}
|
|
276
293
|
stepNames.add(s.name);
|
|
277
294
|
declared.add(s.name); // a step's output is referenceable by name
|
|
278
295
|
}
|
|
@@ -898,7 +915,9 @@ function checkFlow(built, ancestors, opts = {}) {
|
|
|
898
915
|
+ `${conversationRoots.map((id) => `"${id}"`).join(', ')}. Keep one and give the others another trigger.`,
|
|
899
916
|
});
|
|
900
917
|
}
|
|
901
|
-
|
|
918
|
+
// The root trigger and entry points hold node ids of their own; a subflow's
|
|
919
|
+
// start is the SDK's to name, so it reserves nothing.
|
|
920
|
+
checkStepRefs(built, diags, ancestors.length === 0 ? [triggerId, ...(built.entryPoints ?? []).map((ep) => ep.id)] : []);
|
|
902
921
|
checkArmScopedReads(built, diags);
|
|
903
922
|
// A fire-and-forget dispatch publishes no output: any read of it would wait
|
|
904
923
|
// on a value the run will never produce. Error reads stay legal — dispatch
|
|
@@ -4551,7 +4570,7 @@ function checkArmScopedReads(built, diags) {
|
|
|
4551
4570
|
* Backward targets are ALLOWED. Flow JSON can express a backward edge, so the SDK
|
|
4552
4571
|
* can author one; refusing it would fence off something the wire format permits.
|
|
4553
4572
|
*/
|
|
4554
|
-
function checkStepRefs(built, diags) {
|
|
4573
|
+
function checkStepRefs(built, diags, reservedIds = []) {
|
|
4555
4574
|
const order = new Map();
|
|
4556
4575
|
/** Steps that live inside a port list — a path only that port reaches. */
|
|
4557
4576
|
const inPortList = new Set();
|
|
@@ -4576,6 +4595,12 @@ function checkStepRefs(built, diags) {
|
|
|
4576
4595
|
*/
|
|
4577
4596
|
const endContents = new Map();
|
|
4578
4597
|
const stepNamesSeen = new Set();
|
|
4598
|
+
/**
|
|
4599
|
+
* Every `.terminate('<name>')`. A Terminate is a step-named node (two with one
|
|
4600
|
+
* name are DUP_STEP), and, like an End, it runs nothing after itself, so it is
|
|
4601
|
+
* a ref target from any path, another port's path included (#1239).
|
|
4602
|
+
*/
|
|
4603
|
+
const terminateNames = new Set();
|
|
4579
4604
|
let seq = 0;
|
|
4580
4605
|
const index = (steps, portList, scope, arm) => {
|
|
4581
4606
|
for (const s of steps) {
|
|
@@ -4593,8 +4618,10 @@ function checkStepRefs(built, diags) {
|
|
|
4593
4618
|
}
|
|
4594
4619
|
else
|
|
4595
4620
|
stepNamesSeen.add(name);
|
|
4621
|
+
if (s.kind === 'terminate')
|
|
4622
|
+
terminateNames.add(name);
|
|
4596
4623
|
// Exactly the step rule from before, for steps. A named End only fills a
|
|
4597
|
-
// name nothing has claimed; a clash is
|
|
4624
|
+
// name nothing has claimed; a clash is STEP_ID_COLLISION below (#1253).
|
|
4598
4625
|
if (s.kind !== 'return' || !order.has(name)) {
|
|
4599
4626
|
if (!order.has(name))
|
|
4600
4627
|
order.set(name, seq);
|
|
@@ -4652,6 +4679,41 @@ function checkStepRefs(built, diags) {
|
|
|
4652
4679
|
+ `\`.stepToRef('${name}')\`; to have separate Ends, give each its own name.`,
|
|
4653
4680
|
});
|
|
4654
4681
|
}
|
|
4682
|
+
// A named End's node id is its name with every character outside
|
|
4683
|
+
// `[A-Za-z0-9_]` made `_`, as a step's is, and compile never renames it
|
|
4684
|
+
// (#1253): it is an id the author chose, or a decompiled file's own. So an End
|
|
4685
|
+
// whose name gives the id of another End, a step, the trigger or an entry
|
|
4686
|
+
// point is refused here, and `serialize` throws for it under `--no-check`.
|
|
4687
|
+
// Before, it was the End that moved (`.step('x').return({}, { name: 'x' })`
|
|
4688
|
+
// compiled to End `x2`), or, emitted first, the step.
|
|
4689
|
+
const safeId = (n) => n.replace(/[^A-Za-z0-9_]/g, '_') || 'node';
|
|
4690
|
+
const stepById = new Map();
|
|
4691
|
+
for (const n of stepNamesSeen)
|
|
4692
|
+
if (!stepById.has(safeId(n)))
|
|
4693
|
+
stepById.set(safeId(n), n);
|
|
4694
|
+
const endById = new Map();
|
|
4695
|
+
for (const name of endNames.keys()) {
|
|
4696
|
+
const id = safeId(name);
|
|
4697
|
+
const other = endById.get(id);
|
|
4698
|
+
if (other !== undefined) {
|
|
4699
|
+
diags.push({
|
|
4700
|
+
level: 'error', code: 'DUP_END_NAME', step: name,
|
|
4701
|
+
message: `Ends "${other}" and "${name}" would both get node id "${id}". Give them names that differ in `
|
|
4702
|
+
+ 'letters, digits or "_".',
|
|
4703
|
+
});
|
|
4704
|
+
continue;
|
|
4705
|
+
}
|
|
4706
|
+
endById.set(id, name);
|
|
4707
|
+
const step = stepById.get(id);
|
|
4708
|
+
if (step !== undefined || reservedIds.includes(id)) {
|
|
4709
|
+
diags.push({
|
|
4710
|
+
level: 'error', code: 'STEP_ID_COLLISION', step: name,
|
|
4711
|
+
message: `End "${name}" (\`.return({}, { name: '${name}' })\`) would get node id "${id}", which `
|
|
4712
|
+
+ `${step !== undefined ? `step "${step}"` : 'the trigger or an entry point'} has. Compile will not rename `
|
|
4713
|
+
+ 'either one, so give the End a name no step or trigger uses.',
|
|
4714
|
+
});
|
|
4715
|
+
}
|
|
4716
|
+
}
|
|
4655
4717
|
/** Every ref, with where it sits. */
|
|
4656
4718
|
const found = [];
|
|
4657
4719
|
const collect = (steps, from, scope, arm, enclosing = []) => {
|
|
@@ -4697,8 +4759,8 @@ function checkStepRefs(built, diags) {
|
|
|
4697
4759
|
if (!order.has(target)) {
|
|
4698
4760
|
const near = [...order.keys()].find((n) => n.toLowerCase() === target.toLowerCase());
|
|
4699
4761
|
say('error', 'REF_UNKNOWN_TARGET', `.stepToRef('${target}') ${where} names a step this flow does not have`
|
|
4700
|
-
+ `${near ? ` (did you mean "${near}"?)` : ''}. It takes the same name you passed to .step()
|
|
4701
|
-
+
|
|
4762
|
+
+ `${near ? ` (did you mean "${near}"?)` : ''}. It takes the same name you passed to .step() or `
|
|
4763
|
+
+ `.terminate(), or the \`name\` of a \`.return({}, { name })\` End.`, near ? `.stepToRef('${near}')` : undefined);
|
|
4702
4764
|
continue;
|
|
4703
4765
|
}
|
|
4704
4766
|
const ends = endNames.get(target) ?? 0;
|
|
@@ -4706,19 +4768,21 @@ function checkStepRefs(built, diags) {
|
|
|
4706
4768
|
// not a ref names them; this is the step-and-End clash.
|
|
4707
4769
|
if (ends > 1)
|
|
4708
4770
|
continue;
|
|
4709
|
-
|
|
4710
|
-
|
|
4711
|
-
|
|
4771
|
+
// A step and an End sharing the name are STEP_ID_COLLISION above, refused
|
|
4772
|
+
// where they are declared, so the ref has nothing more to say (#1253).
|
|
4773
|
+
if (ends > 0 && stepNamesSeen.has(target))
|
|
4712
4774
|
continue;
|
|
4713
|
-
}
|
|
4714
4775
|
/**
|
|
4715
4776
|
* The target is an End and nothing else. An End has no "runs only when its
|
|
4716
4777
|
* port fired" meaning past itself: it ends the run, whichever path arrives.
|
|
4717
4778
|
* So a ref into an End that sits inside another port's path (two HTTP
|
|
4718
4779
|
* branches, two outcomes, a prefix and a branch, all ending at one End) is
|
|
4719
4780
|
* the product's own shape, one End with several incoming edges (#1231).
|
|
4781
|
+
* A Terminate is the same: it stops the run whichever path arrives, so two
|
|
4782
|
+
* side paths stopping at one Terminate is one node with two incoming edges
|
|
4783
|
+
* (#1239). A step sharing a Terminate's name is DUP_STEP, reported apart.
|
|
4720
4784
|
*/
|
|
4721
|
-
const
|
|
4785
|
+
const terminal = ends > 0 || terminateNames.has(target);
|
|
4722
4786
|
// A ref to a container the path is INSIDE names it as a step, so the edge
|
|
4723
4787
|
// enters it from its outer input: it starts the loop over from its first
|
|
4724
4788
|
// item, while the iteration the path was in never finishes. What the author
|
|
@@ -4729,10 +4793,11 @@ function checkStepRefs(built, diags) {
|
|
|
4729
4793
|
+ `next iteration, or .break() to leave the loop.`, '.continue()');
|
|
4730
4794
|
continue;
|
|
4731
4795
|
}
|
|
4732
|
-
if (inPortList.has(target) && !
|
|
4796
|
+
if (inPortList.has(target) && !terminal) {
|
|
4733
4797
|
say('error', 'REF_INTO_PORT_LIST', `.stepToRef('${target}') ${where} targets a step inside another port's path. That path runs only when ITS `
|
|
4734
4798
|
+ `port fired — it is not somewhere another edge can jump into. Point at a step on the main path, or end `
|
|
4735
|
-
+ `this one with .return() / .terminate(). (A named End is the exception: any path may end
|
|
4799
|
+
+ `this one with .return() / .terminate(). (A named End or a Terminate is the exception: any path may end `
|
|
4800
|
+
+ `there.)`);
|
|
4736
4801
|
continue;
|
|
4737
4802
|
}
|
|
4738
4803
|
const targetScope = scopeOf.get(target) ?? '';
|
|
@@ -4760,7 +4825,10 @@ function checkStepRefs(built, diags) {
|
|
|
4760
4825
|
// Best effort from here: the mechanism is understood, the runtime's behaviour
|
|
4761
4826
|
// is not measured, so these WARN and leave the verdict to `validate`.
|
|
4762
4827
|
const targetArm = armOf.get(target);
|
|
4763
|
-
|
|
4828
|
+
// A Terminate stops the whole run, every branch with it, so no Merge is left
|
|
4829
|
+
// waiting: a ref into or out of an arm that ends at one cannot hang a join
|
|
4830
|
+
// (#1239). An End stops only its own path, so it keeps the warnings.
|
|
4831
|
+
if (targetArm !== arm && !terminateNames.has(target)) {
|
|
4764
4832
|
if (targetArm !== undefined) {
|
|
4765
4833
|
say('warning', 'REF_INTO_PARALLEL_ARM', `.stepToRef('${target}') ${where} points INTO a parallel arm from outside it. The Merge those arms join `
|
|
4766
4834
|
+ `on is a bpmn:ParallelGateway, which waits for every branch it forked — an extra token arriving inside `
|
package/dist/decompile.js
CHANGED
|
@@ -2405,9 +2405,12 @@ function region(cursor, stop, scope, ipdom, ctx, refInto) {
|
|
|
2405
2405
|
// (`<id>2`); a ref names the one End. `decompile()` seeded `ctx.refTargets`
|
|
2406
2406
|
// with every End more than one edge enters, so the `.return(...)` emitted
|
|
2407
2407
|
// first already carries the End's `name` (only a named End is a ref target).
|
|
2408
|
-
//
|
|
2409
|
-
|
|
2410
|
-
|
|
2408
|
+
//
|
|
2409
|
+
// And a Terminate another path already stopped at (#1239). A Terminate is
|
|
2410
|
+
// always named (its id is its `.terminate('<name>')`), so it needs no
|
|
2411
|
+
// seeding: a second `.terminate(...)` there compiled to a second Terminate
|
|
2412
|
+
// (`<id>2`), or failed check as DUP_STEP; a ref names the one Terminate.
|
|
2413
|
+
if (ctx.emitted.has(cursor) && (node.type !== T.end || ctx.refTargets?.has(cursor))) {
|
|
2411
2414
|
segs.push(`.stepToRef(${tsLiteral(cursor)})`);
|
|
2412
2415
|
return segs;
|
|
2413
2416
|
}
|
package/dist/flow-sdk.d.ts
CHANGED
|
@@ -467,12 +467,14 @@ export interface ReturnOptions extends NodeOptions {
|
|
|
467
467
|
* same values, label, version and updates are one End reached from both paths.
|
|
468
468
|
* Two that differ in any of these, or that sit in different scopes (a loop body
|
|
469
469
|
* and the main path), are refused (`check`: DUP_END_NAME; `compile --no-check`
|
|
470
|
-
* throws) rather than renamed `done2`.
|
|
470
|
+
* throws) rather than renamed `done2`. The name is never renamed to make it
|
|
471
|
+
* unique: a name that gives the node id of a step, the trigger or an entry
|
|
472
|
+
* point is refused too (STEP_ID_COLLISION), as is a second End whose name gives
|
|
473
|
+
* the same id (`a b` and `a_b`, DUP_END_NAME).
|
|
471
474
|
*
|
|
472
475
|
* A named End is also a {@link StepList.stepToRef} target: another path can
|
|
473
476
|
* end at this End rather than at one of its own, from anywhere in the flow,
|
|
474
|
-
* including another port's path (an End runs nothing after itself).
|
|
475
|
-
* refuses the ref (REF_AMBIGUOUS_TARGET) when a step has the same name.
|
|
477
|
+
* including another port's path (an End runs nothing after itself).
|
|
476
478
|
*
|
|
477
479
|
* ```ts
|
|
478
480
|
* .branch('checkTemperature', js`${input('tempF')} > 60`,
|
|
@@ -1163,6 +1165,14 @@ declare class StepList {
|
|
|
1163
1165
|
* What aborts, what the run reports, and what each local rung can prove:
|
|
1164
1166
|
* `references/terminate.md`.
|
|
1165
1167
|
*
|
|
1168
|
+
* The name is a step name, so a Terminate is also a {@link StepList.stepToRef}
|
|
1169
|
+
* target: another path can stop at this Terminate rather than at one of its
|
|
1170
|
+
* own, from anywhere in the flow, including another port's path. To stop
|
|
1171
|
+
* several paths at one Terminate, spell its `.terminate` once and end the
|
|
1172
|
+
* other paths with `.stepToRef('<name>')`. Two `.terminate`s asking for the
|
|
1173
|
+
* same name are refused (`check`: DUP_STEP; `compile --no-check` throws)
|
|
1174
|
+
* rather than renamed `<name>2`.
|
|
1175
|
+
*
|
|
1166
1176
|
* @example
|
|
1167
1177
|
* **Abort the sibling arm from inside a parallel**
|
|
1168
1178
|
* ```ts
|
|
@@ -1208,7 +1218,8 @@ declare class StepList {
|
|
|
1208
1218
|
* incoming edges, as the canvas draws it. Unlike a step, an End inside another
|
|
1209
1219
|
* port's path is a valid target: two HTTP branches or two outcomes can end at
|
|
1210
1220
|
* one End. To end several paths at one End, spell its `.return` once and end
|
|
1211
|
-
* the other paths with `.stepToRef('<name>')`.
|
|
1221
|
+
* the other paths with `.stepToRef('<name>')`. A `.terminate('<name>')` is a
|
|
1222
|
+
* target in the same way: any path may stop at it.
|
|
1212
1223
|
*
|
|
1213
1224
|
* ```ts
|
|
1214
1225
|
* .step('fetch', http({ …, branches: [{ name: 'missing', condition: … }] }))
|
|
@@ -1217,8 +1228,8 @@ declare class StepList {
|
|
|
1217
1228
|
* .return({}, { name: 'done' }) // both paths end at this one End
|
|
1218
1229
|
* ```
|
|
1219
1230
|
*
|
|
1220
|
-
* @param target - The step to continue at, named as it was in `.step(...)
|
|
1221
|
-
* the `name` of a `.return(...)` End.
|
|
1231
|
+
* @param target - The step to continue at, named as it was in `.step(...)` or
|
|
1232
|
+
* `.terminate(...)`, or the `name` of a `.return(...)` End.
|
|
1222
1233
|
* @returns This builder. Nothing may follow: the path has been handed off.
|
|
1223
1234
|
* @see stepToList
|
|
1224
1235
|
*/
|
|
@@ -1238,8 +1249,8 @@ declare class StepList {
|
|
|
1238
1249
|
* ```
|
|
1239
1250
|
*
|
|
1240
1251
|
* @param port - The port of this step to leave, e.g. `'error'`.
|
|
1241
|
-
* @param target - The step to continue at, named as it was in `.step(...)
|
|
1242
|
-
* the `name` of a `.return(...)` End.
|
|
1252
|
+
* @param target - The step to continue at, named as it was in `.step(...)` or
|
|
1253
|
+
* `.terminate(...)`, or the `name` of a `.return(...)` End.
|
|
1243
1254
|
* @returns This builder, so calls chain — a side exit ends nothing.
|
|
1244
1255
|
* @see stepToList
|
|
1245
1256
|
*/
|
package/dist/flow-sdk.js
CHANGED
|
@@ -816,6 +816,14 @@ class StepList {
|
|
|
816
816
|
* What aborts, what the run reports, and what each local rung can prove:
|
|
817
817
|
* `references/terminate.md`.
|
|
818
818
|
*
|
|
819
|
+
* The name is a step name, so a Terminate is also a {@link StepList.stepToRef}
|
|
820
|
+
* target: another path can stop at this Terminate rather than at one of its
|
|
821
|
+
* own, from anywhere in the flow, including another port's path. To stop
|
|
822
|
+
* several paths at one Terminate, spell its `.terminate` once and end the
|
|
823
|
+
* other paths with `.stepToRef('<name>')`. Two `.terminate`s asking for the
|
|
824
|
+
* same name are refused (`check`: DUP_STEP; `compile --no-check` throws)
|
|
825
|
+
* rather than renamed `<name>2`.
|
|
826
|
+
*
|
|
819
827
|
* @example
|
|
820
828
|
* **Abort the sibling arm from inside a parallel**
|
|
821
829
|
* ```ts
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words for a `.terminate('<name>')` whose name is already taken (#1239).
|
|
3
|
+
* `check` (DUP_STEP) and `serialize` (the `--no-check` backstop) both use them,
|
|
4
|
+
* so one clash gets one explanation whichever reports it.
|
|
5
|
+
*/
|
|
6
|
+
/** Two `.terminate('<name>')` calls: keep one and end the other paths at it. */
|
|
7
|
+
export declare function terminateTwiceMessage(name: string): string;
|
|
8
|
+
/** A step and a `.terminate('<name>')` share a name: they are different nodes, so rename one. */
|
|
9
|
+
export declare function terminateStepClashMessage(name: string): string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The words for a `.terminate('<name>')` whose name is already taken (#1239).
|
|
3
|
+
* `check` (DUP_STEP) and `serialize` (the `--no-check` backstop) both use them,
|
|
4
|
+
* so one clash gets one explanation whichever reports it.
|
|
5
|
+
*/
|
|
6
|
+
/** Two `.terminate('<name>')` calls: keep one and end the other paths at it. */
|
|
7
|
+
export function terminateTwiceMessage(name) {
|
|
8
|
+
return `Duplicate step name "${name}": two \`.terminate('${name}')\` calls ask for the same Terminate. Each `
|
|
9
|
+
+ `\`.terminate\` makes a Terminate node of its own. To stop several paths at one Terminate, keep one `
|
|
10
|
+
+ `\`.terminate('${name}')\` and end the other paths with \`.stepToRef('${name}')\`; to have separate `
|
|
11
|
+
+ `Terminates, give each its own name.`;
|
|
12
|
+
}
|
|
13
|
+
/** A step and a `.terminate('<name>')` share a name: they are different nodes, so rename one. */
|
|
14
|
+
export function terminateStepClashMessage(name) {
|
|
15
|
+
return `Duplicate step name "${name}": a step and a \`.terminate('${name}')\` both use it, and a node id names `
|
|
16
|
+
+ `one node. Rename one of them.`;
|
|
17
|
+
}
|
package/dist/serialize.js
CHANGED
|
@@ -66,6 +66,7 @@ import { types } from './core/expr.js';
|
|
|
66
66
|
import { SUBFLOW_START_LABEL } from './core/subflow-start.js';
|
|
67
67
|
import { ownEntry } from './core/own-entry.js';
|
|
68
68
|
import { endContentKey } from './flow-end-content.js';
|
|
69
|
+
import { terminateStepClashMessage, terminateTwiceMessage } from './flow-terminate-names.js';
|
|
69
70
|
import { jsonClone } from './core/json-clone.js';
|
|
70
71
|
// core-definitions.json is an object keyed by "<nodeType>@<version>".
|
|
71
72
|
const DEFS = BUNDLED_DEFINITIONS;
|
|
@@ -4214,6 +4215,54 @@ function stepNamesOf(steps, out = []) {
|
|
|
4214
4215
|
}
|
|
4215
4216
|
return out;
|
|
4216
4217
|
}
|
|
4218
|
+
/**
|
|
4219
|
+
* The node names one scope declares, walked the way `check`'s `.stepToRef`
|
|
4220
|
+
* index walks them: port paths (`.stepToList`, `.onError`) and `.stepSwitch`
|
|
4221
|
+
* arms included, since their nodes live in this scope too.
|
|
4222
|
+
*
|
|
4223
|
+
* `steps` are step names (a terminate included); `ends` are the `name`s of
|
|
4224
|
+
* NAMED Ends, `.return({}, { name })`. An unnamed `.return()` is the SDK's to
|
|
4225
|
+
* name (`end`, `end2`, ...) and is not listed.
|
|
4226
|
+
*/
|
|
4227
|
+
function namedNodesOf(steps, out = { steps: [], ends: [] }, seenEnds = new Set()) {
|
|
4228
|
+
for (const s of steps) {
|
|
4229
|
+
if (s.kind === 'return') {
|
|
4230
|
+
// Two `.return`s with one name and the same content are ONE End reached
|
|
4231
|
+
// from two paths (#1234), so the name is listed once. One that differs is
|
|
4232
|
+
// listed again, and `claimEndIds` refuses it as DUP_END_NAME.
|
|
4233
|
+
const name = s.options?.name;
|
|
4234
|
+
// `endContentKey` is the key `check` counts DUP_END_NAME on, so the two agree.
|
|
4235
|
+
const key = JSON.stringify([name, endContentKey(s)]);
|
|
4236
|
+
if (name !== undefined && !seenEnds.has(key)) {
|
|
4237
|
+
seenEnds.add(key);
|
|
4238
|
+
out.ends.push(name);
|
|
4239
|
+
}
|
|
4240
|
+
}
|
|
4241
|
+
else if ('name' in s)
|
|
4242
|
+
out.steps.push(s.name);
|
|
4243
|
+
if (s.kind === 'stepToList')
|
|
4244
|
+
namedNodesOf(s.body, out, seenEnds);
|
|
4245
|
+
else if (s.kind === 'branch') {
|
|
4246
|
+
namedNodesOf(s.then, out, seenEnds);
|
|
4247
|
+
namedNodesOf(s.otherwise, out, seenEnds);
|
|
4248
|
+
}
|
|
4249
|
+
else if (s.kind === 'switch') {
|
|
4250
|
+
s.cases.forEach((c) => namedNodesOf(c.body, out, seenEnds));
|
|
4251
|
+
namedNodesOf(s.default ?? [], out, seenEnds);
|
|
4252
|
+
}
|
|
4253
|
+
else if (s.kind === 'stepSwitch')
|
|
4254
|
+
s.cases.forEach((c) => namedNodesOf(c.body, out, seenEnds));
|
|
4255
|
+
else if (s.kind === 'parallel')
|
|
4256
|
+
s.arms.forEach((a) => namedNodesOf(a, out, seenEnds));
|
|
4257
|
+
else if (s.kind === 'loop' || s.kind === 'doWhile')
|
|
4258
|
+
namedNodesOf(s.body, out, seenEnds);
|
|
4259
|
+
}
|
|
4260
|
+
return out;
|
|
4261
|
+
}
|
|
4262
|
+
/** A name as the node id `claimId` would give it before any de-duplication. */
|
|
4263
|
+
function safeNodeId(name) {
|
|
4264
|
+
return name.replace(/[^A-Za-z0-9_]/g, '_') || 'node';
|
|
4265
|
+
}
|
|
4217
4266
|
export function serialize(built, opts = {}) {
|
|
4218
4267
|
/**
|
|
4219
4268
|
* Definitions the flow carries (`.definitions()`, #1128), by `type@version` —
|
|
@@ -4368,6 +4417,8 @@ export function serialize(built, opts = {}) {
|
|
|
4368
4417
|
const takenIds = new Set([built.triggerId ?? 'start']);
|
|
4369
4418
|
/** Per scope, each named `.return` End emitted so far and its content. */
|
|
4370
4419
|
const namedEnds = new Map();
|
|
4420
|
+
/** Per scope, the names a `.terminate` claimed: which remedy a later clash gets (#1239). */
|
|
4421
|
+
const terminateNames = new Map();
|
|
4371
4422
|
let edgeSeq = 0;
|
|
4372
4423
|
/** Claim a globally unique node id, honouring the scope's rename map. */
|
|
4373
4424
|
function uid(scope, base) {
|
|
@@ -4396,6 +4447,57 @@ export function serialize(built, opts = {}) {
|
|
|
4396
4447
|
}
|
|
4397
4448
|
return claimId(base);
|
|
4398
4449
|
}
|
|
4450
|
+
/**
|
|
4451
|
+
* Claim the node id of every NAMED End of one scope, before anything in the
|
|
4452
|
+
* scope is emitted (#1253).
|
|
4453
|
+
*
|
|
4454
|
+
* A named End's id is the author's choice, or a decompiled file's own node
|
|
4455
|
+
* id, so it is never quietly renamed. Before this it went through `uid`, the
|
|
4456
|
+
* allocator for ids the SDK makes up, which settles a clash by emission order
|
|
4457
|
+
* with a numeric suffix: `.step('x').return({}, { name: 'x' })` came out as
|
|
4458
|
+
* End `x2`, and an unnamed `.return()` emitted first turned a named `end`
|
|
4459
|
+
* into `end2`. Now:
|
|
4460
|
+
*
|
|
4461
|
+
* - two Ends whose names give one id are refused (`check`: DUP_END_NAME);
|
|
4462
|
+
* - an End whose name gives a step's id, the trigger's or an entry point's
|
|
4463
|
+
* is refused (`check`: STEP_ID_COLLISION);
|
|
4464
|
+
* - every other id is claimed here, so the ids the SDK makes up (`end`,
|
|
4465
|
+
* `end2`, an agent's context node, ...) are the ones that move.
|
|
4466
|
+
*
|
|
4467
|
+
* `check` reports these first; this is the backstop for `compile --no-check`,
|
|
4468
|
+
* the draft-tolerant merge compile and a direct `serialize()`. A subflow COPY
|
|
4469
|
+
* is the one place ids move: `copyPrefix` is set when the copy is prefixed.
|
|
4470
|
+
*/
|
|
4471
|
+
function claimEndIds(scope, nodes, where, reserved, copyPrefix = '') {
|
|
4472
|
+
const stepIds = new Map(nodes.steps.map((n) => [safeNodeId(n), n]));
|
|
4473
|
+
const endIds = new Map();
|
|
4474
|
+
for (const name of nodes.ends) {
|
|
4475
|
+
const id = safeNodeId(name);
|
|
4476
|
+
const end = endIds.get(id);
|
|
4477
|
+
if (end !== undefined) {
|
|
4478
|
+
throw new Error(end === name
|
|
4479
|
+
? `${where}: [DUP_END_NAME] Two .return({}, { name: '${name}' }) calls ask for the same End with different `
|
|
4480
|
+
+ `values, label, version or updates. To end several `
|
|
4481
|
+
+ `paths at one End, keep one .return and end the others with .stepToRef('${name}'); to have separate Ends, `
|
|
4482
|
+
+ 'give each its own name.'
|
|
4483
|
+
: `${where}: [DUP_END_NAME] Ends "${end}" and "${name}" would both get node id "${id}". Give them names `
|
|
4484
|
+
+ 'that differ in letters, digits or "_".');
|
|
4485
|
+
}
|
|
4486
|
+
const step = stepIds.get(id);
|
|
4487
|
+
if (step !== undefined || reserved.includes(id)) {
|
|
4488
|
+
throw new Error(`${where}: [STEP_ID_COLLISION] End "${name}" (.return({}, { name: '${name}' })) has the node id "${id}" of `
|
|
4489
|
+
+ `${step !== undefined ? `step "${step}"` : 'the trigger or an entry point'}, and compile will not rename it "${id}2". `
|
|
4490
|
+
+ 'Give the End a name no step or trigger uses.');
|
|
4491
|
+
}
|
|
4492
|
+
endIds.set(id, name);
|
|
4493
|
+
}
|
|
4494
|
+
for (const [id, name] of endIds) {
|
|
4495
|
+
if (!copyPrefix && takenIds.has(id)) {
|
|
4496
|
+
throw new Error(`${where}: End "${name}" has node id "${id}", which another node already holds (internal: claimEndIds ran late).`);
|
|
4497
|
+
}
|
|
4498
|
+
scope.endNodeId.set(name, claimId(copyPrefix + id));
|
|
4499
|
+
}
|
|
4500
|
+
}
|
|
4399
4501
|
/**
|
|
4400
4502
|
* `uid` for a node that IS an author's step, recording which id that step got.
|
|
4401
4503
|
*
|
|
@@ -4576,13 +4678,17 @@ export function serialize(built, opts = {}) {
|
|
|
4576
4678
|
// copy of the same child looks like — the whole copy is prefixed with the
|
|
4577
4679
|
// calling step's name, keeping the two bodies apart in the one flat
|
|
4578
4680
|
// namespace the `subflows` map keeps.
|
|
4681
|
+
// A child's named Ends belong to the copy too, so they decide the prefix
|
|
4682
|
+
// with its steps and move with it (#1253).
|
|
4579
4683
|
const names = stepNamesOf(child.steps);
|
|
4580
|
-
const
|
|
4684
|
+
const childNodes = namedNodesOf(child.steps);
|
|
4685
|
+
const prefix = [...names, ...childNodes.ends.map(safeNodeId)].some((n) => takenIds.has(n)) ? `${nodeId}_` : '';
|
|
4581
4686
|
for (const n of names) {
|
|
4582
4687
|
const id = claimId(prefix + n);
|
|
4583
4688
|
(scope.rename.nodeIds.get(n) ?? scope.rename.nodeIds.set(n, []).get(n)).push(id);
|
|
4584
4689
|
(scope.pending.get(n) ?? scope.pending.set(n, []).get(n)).push(id);
|
|
4585
4690
|
}
|
|
4691
|
+
claimEndIds(scope, childNodes, `subflow "${nodeId}"`, [], prefix);
|
|
4586
4692
|
const startId = uid(scope, `${nodeId}Start`);
|
|
4587
4693
|
// A CHILD's inputs are published as the child's own start node, whose id is
|
|
4588
4694
|
// `<caller>Start` — not `start`. `input('x')` lowers eagerly to
|
|
@@ -6425,6 +6531,20 @@ export function serialize(built, opts = {}) {
|
|
|
6425
6531
|
// version and its handleConfiguration has exactly one TARGET handle. Its
|
|
6426
6532
|
// terminal flow-output mappings are separate metadata required by the
|
|
6427
6533
|
// product validator; they do not create a readable node output.
|
|
6534
|
+
//
|
|
6535
|
+
// A Terminate is a `.stepToRef` target (its name is a step name), so a
|
|
6536
|
+
// second `.terminate` asking for a name this scope already holds is
|
|
6537
|
+
// refused, not renamed `<name>2`: that rename turned one Terminate two
|
|
6538
|
+
// paths share into two Terminates with no word said (#1239). `check`
|
|
6539
|
+
// reports it first as DUP_STEP; this is the backstop for `--no-check`.
|
|
6540
|
+
// The remedy depends on what holds the name: another Terminate (end the
|
|
6541
|
+
// other paths at it) or a step of another kind (rename one).
|
|
6542
|
+
if (scope.stepNodeId.has(step.name)) {
|
|
6543
|
+
throw new Error(terminateNames.get(scope)?.has(step.name)
|
|
6544
|
+
? terminateTwiceMessage(step.name)
|
|
6545
|
+
: terminateStepClashMessage(step.name));
|
|
6546
|
+
}
|
|
6547
|
+
(terminateNames.get(scope) ?? terminateNames.set(scope, new Set()).get(scope)).add(step.name);
|
|
6428
6548
|
const id = stepUid(scope, step.name);
|
|
6429
6549
|
const node = makeNode(NODE_TYPE.terminate, id, step.options?.label ?? step.label ?? step.name, { parentId, requestedVersion: step.options?.version });
|
|
6430
6550
|
node.inputs = {};
|
|
@@ -6515,15 +6635,17 @@ export function serialize(built, opts = {}) {
|
|
|
6515
6635
|
+ `To end several paths at one End, keep one .return and end the others with .stepToRef('${name}'); `
|
|
6516
6636
|
+ `to have separate Ends, give each its own name.`);
|
|
6517
6637
|
}
|
|
6518
|
-
|
|
6638
|
+
// A named End's id was claimed up front, exactly or refused, by
|
|
6639
|
+
// `claimEndIds` (#1253); only an unnamed End's id is the SDK's to make up.
|
|
6640
|
+
const id = name === undefined ? uid(scope, 'end') : scope.endNodeId.get(name);
|
|
6641
|
+
if (id === undefined) {
|
|
6642
|
+
throw new Error(`End "${name}" has no claimed node id (internal: namedNodesOf missed a step kind).`);
|
|
6643
|
+
}
|
|
6519
6644
|
emitEnd(scope, id, tails, { label: step.options?.label, parentId, requestedVersion: step.options?.version, explicit });
|
|
6520
6645
|
if (updates.length)
|
|
6521
6646
|
scope.variableUpdates[id] = updates;
|
|
6522
6647
|
if (name !== undefined && !prior) {
|
|
6523
6648
|
(namedEnds.get(scope) ?? namedEnds.set(scope, new Map()).get(scope)).set(name, { id, sig });
|
|
6524
|
-
// A NAMED End can be a `.stepToRef` target (#1223); an unnamed one
|
|
6525
|
-
// cannot, since its id (`end`, `end2`, …) depends on emission order.
|
|
6526
|
-
scope.endNodeId.set(name, id);
|
|
6527
6649
|
}
|
|
6528
6650
|
}
|
|
6529
6651
|
tails = [];
|
|
@@ -6531,6 +6653,16 @@ export function serialize(built, opts = {}) {
|
|
|
6531
6653
|
}
|
|
6532
6654
|
return tails;
|
|
6533
6655
|
}
|
|
6656
|
+
// The flow's named Ends (entry-point prefixes included: they emit into the
|
|
6657
|
+
// root scope) are claimed before anything is emitted, so an id the SDK makes
|
|
6658
|
+
// up is the one that moves (#1253).
|
|
6659
|
+
{
|
|
6660
|
+
const seenEnds = new Set();
|
|
6661
|
+
const rootNodes = namedNodesOf(built.steps, undefined, seenEnds);
|
|
6662
|
+
for (const ep of built.entryPoints ?? [])
|
|
6663
|
+
namedNodesOf(ep.steps, rootNodes, seenEnds);
|
|
6664
|
+
claimEndIds(root, rootNodes, `flow "${built.id}"`, [built.triggerId ?? 'start', ...(built.entryPoints ?? []).map((ep) => ep.id)]);
|
|
6665
|
+
}
|
|
6534
6666
|
const finalTails = emit(built.steps, [{ node: built.triggerId ?? 'start', port: 'output' }], root);
|
|
6535
6667
|
// The implicit End a flow falls off the bottom into still terminates the
|
|
6536
6668
|
// flow, so it maps the flow's outputs — each to itself, since no `.return`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.32.
|
|
3
|
+
"version": "6.32.3",
|
|
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",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"@types/node": "^22.7.0",
|
|
94
94
|
"esbuild": "^0.28.1"
|
|
95
95
|
},
|
|
96
|
-
"gitref": "
|
|
96
|
+
"gitref": "ae1239906aef3bdd220cbea1ba2a09845f9fd4c7"
|
|
97
97
|
}
|