@uipath/skills 1.200.0 → 1.201.0-preview.433

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.
Files changed (205) hide show
  1. package/.claude-plugin/marketplace.json +1 -1
  2. package/.claude-plugin/plugin.json +1 -1
  3. package/.cursor-plugin/plugin.json +32 -0
  4. package/CODEOWNERS +25 -4
  5. package/README.md +1 -0
  6. package/assets/skill-status.json +8 -0
  7. package/assets/uip-catalog-snapshot.json +113 -41
  8. package/assets/uipath-icon.png +0 -0
  9. package/commands/install-permissions.md +1 -0
  10. package/package.json +3 -2
  11. package/skills/uipath-admin/SKILL.md +1 -1
  12. package/skills/uipath-admin/references/authorization/permission-catalog.md +61 -1
  13. package/skills/uipath-admin/references/authorization/role-management.md +3 -1
  14. package/skills/uipath-admin/references/diagnose/references/failure-modes.md +29 -4
  15. package/skills/uipath-admin/references/diagnose/references/troubleshooting-guide.md +13 -0
  16. package/skills/uipath-agents/SKILL.md +1 -0
  17. package/skills/uipath-agents/references/coded/capabilities/context-grounding.md +3 -3
  18. package/skills/uipath-agents/references/coded/capabilities/guardrails/guardrails-recommend.md +6 -1
  19. package/skills/uipath-agents/references/coded/capabilities/guardrails/guardrails.md +89 -1
  20. package/skills/uipath-agents/references/coded/embedding-in-flows.md +17 -1
  21. package/skills/uipath-agents/references/coded/frameworks/llamaindex-integration.md +64 -2
  22. package/skills/uipath-agents/references/coded/lifecycle/deployment.md +3 -0
  23. package/skills/uipath-agents/references/coded/lifecycle/environment-variables.md +90 -0
  24. package/skills/uipath-agents/references/coded/lifecycle/file-sync.md +3 -1
  25. package/skills/uipath-agents/references/coded/quickstart.md +10 -6
  26. package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails-recommend.md +20 -5
  27. package/skills/uipath-agents/references/lowcode/capabilities/guardrails/guardrails.md +13 -0
  28. package/skills/uipath-agents/references/lowcode/capabilities/inline-in-flow/inline-in-flow.md +1 -3
  29. package/skills/uipath-api-workflow/references/operating-published-workflows.md +17 -6
  30. package/skills/uipath-automationhub/SKILL.md +58 -0
  31. package/skills/uipath-automationhub/references/api-endpoints.md +140 -0
  32. package/skills/uipath-automationhub/references/get-process.md +69 -0
  33. package/skills/uipath-automationhub/references/publish-process.md +171 -0
  34. package/skills/uipath-coded-apps/SKILL.md +24 -11
  35. package/skills/uipath-coded-apps/references/commands-reference.md +29 -29
  36. package/skills/uipath-coded-apps/references/create-action-app.md +4 -0
  37. package/skills/uipath-coded-apps/references/create-web-app.md +10 -0
  38. package/skills/uipath-coded-apps/references/debug.md +16 -0
  39. package/skills/uipath-coded-apps/references/oauth-client-setup.md +3 -1
  40. package/skills/uipath-coded-apps/references/oauth-scopes.md +39 -4
  41. package/skills/uipath-coded-apps/references/pack-publish-deploy.md +37 -21
  42. package/skills/uipath-coded-apps/references/sdk/conversational-agent.md +2 -0
  43. package/skills/uipath-coded-apps/references/sdk/data-fabric.md +2 -0
  44. package/skills/uipath-coded-apps/references/sdk/orchestrator.md +2 -0
  45. package/skills/uipath-coded-apps/references/widgets/conversational-agent-chat.md +90 -0
  46. package/skills/uipath-coded-apps/references/widgets/datatable.md +97 -0
  47. package/skills/uipath-coded-apps/references/widgets/external-auth.md +97 -0
  48. package/skills/uipath-coded-apps/references/widgets/multi-file-upload.md +98 -0
  49. package/skills/uipath-coded-apps/references/widgets/pdf-viewer.md +122 -0
  50. package/skills/uipath-coded-apps/references/widgets/validation-station.md +1 -1
  51. package/skills/uipath-functions/SKILL.md +11 -0
  52. package/skills/uipath-insights/SKILL.md +52 -247
  53. package/skills/uipath-insights/references/filter-discovery-guide.md +106 -0
  54. package/skills/uipath-insights/references/investigation-playbook-guide.md +24 -16
  55. package/skills/uipath-insights/references/jobs-commands-guide.md +196 -53
  56. package/skills/uipath-ixp/SKILL.md +10 -4
  57. package/skills/uipath-ixp/references/cli-reference.md +59 -5
  58. package/skills/uipath-ixp/references/label-documents-guide.md +12 -5
  59. package/skills/uipath-maestro-bpmn/SKILL.md +27 -9
  60. package/skills/uipath-maestro-bpmn/references/diagnose/references/failure-modes.md +6 -3
  61. package/skills/uipath-maestro-bpmn/references/operate/CAPABILITY.md +1 -1
  62. package/skills/uipath-maestro-bpmn/references/operate/references/ship.md +9 -3
  63. package/skills/uipath-maestro-bpmn/references/registry-workflow.md +1 -1
  64. package/skills/uipath-maestro-bpmn/references/shared/local-metadata-regeneration-guide.md +18 -11
  65. package/skills/uipath-maestro-bpmn/references/structural-bpmn.md +13 -7
  66. package/skills/uipath-maestro-case/SKILL.md +138 -170
  67. package/skills/uipath-maestro-case/references/bindings-and-expressions.md +14 -1
  68. package/skills/uipath-maestro-case/references/bindings-v2-sync.md +25 -1
  69. package/skills/uipath-maestro-case/references/brownfield.md +7 -3
  70. package/skills/uipath-maestro-case/references/case-commands.md +63 -8
  71. package/skills/uipath-maestro-case/references/case-editing-operations.md +11 -8
  72. package/skills/uipath-maestro-case/references/case-schema.md +5 -3
  73. package/skills/uipath-maestro-case/references/case-spec-input-details.md +4 -0
  74. package/skills/uipath-maestro-case/references/connector-integration.md +3 -1
  75. package/skills/uipath-maestro-case/references/connector-trigger-impl.md +236 -0
  76. package/skills/uipath-maestro-case/references/connector-trigger-planning.md +300 -0
  77. package/skills/uipath-maestro-case/references/entry-points-sync.md +2 -0
  78. package/skills/uipath-maestro-case/references/evals/evals.json +33 -40
  79. package/skills/uipath-maestro-case/references/implementation.md +58 -13
  80. package/skills/uipath-maestro-case/references/phased-execution.md +87 -20
  81. package/skills/uipath-maestro-case/references/placeholder-tasks.md +3 -1
  82. package/skills/uipath-maestro-case/references/planning.md +26 -16
  83. package/skills/uipath-maestro-case/references/plugins/case/impl-json.md +2 -5
  84. package/skills/uipath-maestro-case/references/plugins/case/planning.md +3 -1
  85. package/skills/uipath-maestro-case/references/plugins/conditions/case-exit-conditions/impl-json.md +3 -1
  86. package/skills/uipath-maestro-case/references/plugins/conditions/case-exit-conditions/planning.md +5 -3
  87. package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/impl-json.md +4 -2
  88. package/skills/uipath-maestro-case/references/plugins/conditions/stage-entry-conditions/planning.md +6 -4
  89. package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/impl-json.md +6 -4
  90. package/skills/uipath-maestro-case/references/plugins/conditions/stage-exit-conditions/planning.md +6 -4
  91. package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/impl-json.md +42 -3
  92. package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +6 -4
  93. package/skills/uipath-maestro-case/references/plugins/logging/impl-json.md +50 -32
  94. package/skills/uipath-maestro-case/references/plugins/sla/impl-json.md +2 -4
  95. package/skills/uipath-maestro-case/references/plugins/sla/planning.md +3 -1
  96. package/skills/uipath-maestro-case/references/plugins/stages/impl-json.md +1 -4
  97. package/skills/uipath-maestro-case/references/plugins/stages/planning.md +2 -0
  98. package/skills/uipath-maestro-case/references/plugins/tasks/action/impl-json.md +2 -0
  99. package/skills/uipath-maestro-case/references/plugins/tasks/action/planning.md +2 -0
  100. package/skills/uipath-maestro-case/references/plugins/tasks/agent/impl-json.md +2 -0
  101. package/skills/uipath-maestro-case/references/plugins/tasks/agent/planning.md +2 -0
  102. package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/impl-json.md +2 -0
  103. package/skills/uipath-maestro-case/references/plugins/tasks/api-workflow/planning.md +5 -3
  104. package/skills/uipath-maestro-case/references/plugins/tasks/case-management/impl-json.md +2 -0
  105. package/skills/uipath-maestro-case/references/plugins/tasks/case-management/planning.md +2 -0
  106. package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/impl-json.md +43 -13
  107. package/skills/uipath-maestro-case/references/plugins/tasks/connector-activity/planning.md +4 -2
  108. package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/impl-json.md +10 -7
  109. package/skills/uipath-maestro-case/references/plugins/tasks/connector-trigger/planning.md +5 -3
  110. package/skills/uipath-maestro-case/references/plugins/tasks/create-inline-common.md +3 -1
  111. package/skills/uipath-maestro-case/references/plugins/tasks/process/impl-json.md +2 -0
  112. package/skills/uipath-maestro-case/references/plugins/tasks/process/planning.md +2 -0
  113. package/skills/uipath-maestro-case/references/plugins/tasks/rpa/impl-json.md +2 -0
  114. package/skills/uipath-maestro-case/references/plugins/tasks/rpa/planning.md +2 -0
  115. package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/impl-json.md +2 -0
  116. package/skills/uipath-maestro-case/references/plugins/tasks/wait-for-timer/planning.md +2 -0
  117. package/skills/uipath-maestro-case/references/plugins/triggers/event/impl-json.md +9 -6
  118. package/skills/uipath-maestro-case/references/plugins/triggers/event/planning.md +5 -3
  119. package/skills/uipath-maestro-case/references/plugins/triggers/manual/impl-json.md +1 -4
  120. package/skills/uipath-maestro-case/references/plugins/triggers/manual/planning.md +2 -0
  121. package/skills/uipath-maestro-case/references/plugins/triggers/timer/impl-json.md +1 -4
  122. package/skills/uipath-maestro-case/references/plugins/triggers/timer/planning.md +2 -0
  123. package/skills/uipath-maestro-case/references/plugins/variables/bindings/impl-json.md +3 -1
  124. package/skills/uipath-maestro-case/references/plugins/variables/global-vars/impl-json.md +40 -2
  125. package/skills/uipath-maestro-case/references/plugins/variables/global-vars/planning.md +12 -2
  126. package/skills/uipath-maestro-case/references/plugins/variables/io-binding/impl-json.md +8 -6
  127. package/skills/uipath-maestro-case/references/plugins/variables/io-binding/planning.md +17 -3
  128. package/skills/uipath-maestro-case/references/registry-discovery.md +9 -5
  129. package/skills/uipath-maestro-case/references/sla-response-shapes.md +3 -1
  130. package/skills/uipath-maestro-case/references/troubleshooting-guide.md +2 -0
  131. package/skills/uipath-maestro-case/scripts/audit_plan.py +231 -0
  132. package/skills/uipath-maestro-flow/references/author/CAPABILITY.md +8 -4
  133. package/skills/uipath-maestro-flow/references/author/references/editing-operations-cli.md +5 -3
  134. package/skills/uipath-maestro-flow/references/author/references/editing-operations-json.md +14 -4
  135. package/skills/uipath-maestro-flow/references/author/references/editing-operations.md +3 -3
  136. package/skills/uipath-maestro-flow/references/author/references/greenfield.md +12 -3
  137. package/skills/uipath-maestro-flow/references/author/references/planning-arch.md +17 -13
  138. package/skills/uipath-maestro-flow/references/author/references/planning-impl.md +1 -1
  139. package/skills/uipath-maestro-flow/references/author/references/plugins/agent/impl.md +49 -4
  140. package/skills/uipath-maestro-flow/references/author/references/plugins/connector/impl.md +59 -17
  141. package/skills/uipath-maestro-flow/references/author/references/plugins/connector-trigger/impl.md +3 -3
  142. package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl-connector.md +3 -1
  143. package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl-manual.md +3 -1
  144. package/skills/uipath-maestro-flow/references/author/references/plugins/http/impl.md +5 -2
  145. package/skills/uipath-maestro-flow/references/author/references/plugins/inline-agent/impl.md +31 -16
  146. package/skills/uipath-maestro-flow/references/author/references/plugins/ixp/impl.md +13 -4
  147. package/skills/uipath-maestro-flow/references/author/references/plugins/loop/impl.md +185 -25
  148. package/skills/uipath-maestro-flow/references/author/references/plugins/loop/planning.md +18 -10
  149. package/skills/uipath-maestro-flow/references/author/references/plugins/rpa/impl.md +9 -3
  150. package/skills/uipath-maestro-flow/references/author/references/plugins/terminate/impl.md +6 -3
  151. package/skills/uipath-maestro-flow/references/diagnose/references/failure-modes.md +68 -0
  152. package/skills/uipath-maestro-flow/references/shared/cli-commands.md +2 -1
  153. package/skills/uipath-maestro-flow/references/shared/file-format.md +36 -9
  154. package/skills/uipath-maestro-flow/references/shared/node-output-wiring.md +1 -1
  155. package/skills/uipath-maestro-flow/references/shared/ux-narration-and-todos.md +1 -1
  156. package/skills/uipath-maestro-flow/references/shared/variables-and-expressions.md +77 -20
  157. package/skills/uipath-planner/SKILL.md +30 -12
  158. package/skills/{uipath-maestro-case/assets/templates/sdd-template-examples.md → uipath-planner/assets/templates/case-sdd-examples.md} +18 -32
  159. package/skills/uipath-planner/assets/templates/case-sdd-template.md +289 -309
  160. package/skills/uipath-planner/references/case-design-lane-guide.md +288 -0
  161. package/skills/uipath-planner/references/multi-skill-patterns-guide.md +1 -1
  162. package/skills/uipath-planner/references/package-selection-guide.md +2 -2
  163. package/skills/uipath-planner/references/pdd-driven-lane-guide.md +5 -1
  164. package/skills/uipath-planner/references/product-selection-guide.md +2 -2
  165. package/skills/uipath-planner/references/sdd-generation-guide.md +16 -15
  166. package/skills/uipath-planner/scripts/audit_sdd.py +437 -0
  167. package/skills/uipath-platform/SKILL.md +7 -2
  168. package/skills/uipath-platform/references/data-fabric/choice-sets.md +1 -1
  169. package/skills/uipath-platform/references/data-fabric/data-fabric.md +1 -1
  170. package/skills/uipath-platform/references/data-fabric/entity-schema.md +37 -21
  171. package/skills/uipath-platform/references/data-fabric/file-attachments.md +1 -1
  172. package/skills/uipath-platform/references/guardrails/byo-configurations.md +205 -0
  173. package/skills/uipath-platform/references/traces/feedback.md +4 -2
  174. package/skills/uipath-platform/references/uip-commands.md +2 -2
  175. package/skills/uipath-review/SKILL.md +55 -52
  176. package/skills/uipath-review/references/agents/agent-grading-rubric.md +62 -40
  177. package/skills/uipath-review/references/agents/agents-coded-rules.md +7 -1
  178. package/skills/uipath-review/references/agents/agents-lowcode-rules.md +21 -2
  179. package/skills/uipath-review/references/agents/guardrails/coded-guardrails-review.md +78 -13
  180. package/skills/uipath-review/references/agents/guardrails/guardrails-review.md +11 -4
  181. package/skills/uipath-review/references/architecture-assessment-guide.md +1 -1
  182. package/skills/uipath-review/references/review-workflow-guide.md +19 -10
  183. package/skills/uipath-review/references/rule-catalog-workflow.md +6 -6
  184. package/skills/uipath-review/references/rule-format.md +1 -1
  185. package/skills/uipath-rpa/SKILL.md +1 -1
  186. package/skills/uipath-solution/SKILL.md +4 -4
  187. package/skills/uipath-solution/references/solution-overview.md +7 -2
  188. package/skills/uipath-tasks/SKILL.md +27 -1
  189. package/skills/uipath-tasks/references/task-catalogs.md +79 -0
  190. package/skills/uipath-tasks/references/task-data.md +45 -0
  191. package/skills/uipath-tasks/references/task-metadata.md +69 -0
  192. package/skills/uipath-test/SKILL.md +3 -3
  193. package/skills/uipath-test/references/test-result-report-guide.md +16 -1
  194. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/ambiguous-selector.md +1 -1
  195. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/scope-container-wrong-page.md +1 -1
  196. package/skills/uipath-troubleshoot/references/activity-packages/ui-automation/playbooks/verify-execution-failure.md +2 -2
  197. package/skills/uipath-troubleshoot/references/products/agents/playbooks/guardrail-violation.md +12 -0
  198. package/version-manifest.json +2 -2
  199. package/skills/uipath-maestro-case/assets/templates/sdd-template.md +0 -667
  200. package/skills/uipath-maestro-case/references/connector-trigger-common.md +0 -511
  201. package/skills/uipath-maestro-case/references/phase-0-interview.md +0 -279
  202. package/skills/uipath-maestro-case/references/sdd-generation-rules.md +0 -1026
  203. package/skills/uipath-review/references/agents/agent-common-issues.md +0 -401
  204. package/skills/uipath-review/references/agents/agent-review-checklist.md +0 -379
  205. /package/skills/{uipath-maestro-case → uipath-planner}/assets/templates/sdd-viewer.html +0 -0
@@ -11,6 +11,10 @@ uip maestro flow registry pull --force
11
11
  uip maestro flow registry search "uipath.core.rpa-workflow" --output json
12
12
  ```
13
13
 
14
+ Search the **node-type token** `uipath.core.rpa-workflow` — this lists every published RPA workflow — then pick the one you need by its `resourceKey` / folder path and description. Do **not** search by the process name from the request: `registry search` matches the Orchestrator **release name**, which is frequently unrelated to the name the user uses or the folder the process lives in. The requested name often appears only in the folder path, so a keyword search for it returns nothing even though the process exists. Match on the folder path inside `resourceKey`, not on a name keyword.
15
+
16
+ **An empty result is not authoritative — do not conclude the process is unpublished.** Before treating "not found" as real, confirm all three hold: (a) you searched the `uipath.core.rpa-workflow` token, not a name keyword; (b) `registry pull --force` ran first; (c) you scanned the returned folder paths and descriptions for the target, not just the display names. Only then is the process genuinely absent. Jumping to the local-scaffold fallback on a name-search miss builds a flow that validates but has nothing real to run.
17
+
14
18
  **In-solution (local, no login required):**
15
19
 
16
20
  ```bash
@@ -101,15 +105,17 @@ Add one entry per `(resourceKey, propertyAttribute)` pair. Share entries across
101
105
 
102
106
  > For the resolution mechanics and why these entries are required, see [file-format.md — Bindings](../../../../shared/file-format.md#bindings--orchestrator-resource-bindings-top-level-bindings).
103
107
 
104
- ## If the RPA Process Does Not Exist Yet
108
+ ## If the RPA Process Is Genuinely Not Published
109
+
110
+ Reach this path only after the empty-result confirmation in [Discovery](#discovery) — a brand-name search miss does not qualify. When the process truly does not exist on the tenant and no sibling RPA project provides it, tell the user to create the RPA project inside the same solution using `uipath-rpa`. Once the project exists as a sibling in the `.uipx` solution, discover it with `uip maestro flow registry list --local --output json` and wire it directly — no publish required.
105
111
 
106
- Tell the user to create the RPA project inside the same solution using `uipath-rpa`. Once the project exists as a sibling in the `.uipx` solution, discover it with `uip maestro flow registry list --local --output json` and wire it directly — no publish required.
112
+ A freshly scaffolded RPA project has no implementation, so the wired flow will pass `flow validate` but fault the moment it is debugged or run (`Robot.JobUnexpectedExitCode`) until `uipath-rpa` fills in the actual workflow. A validated flow is not a working one.
107
113
 
108
114
  ## Debug
109
115
 
110
116
  | Error | Cause | Fix |
111
117
  | --- | --- | --- |
112
- | Node type not found in registry | Process not published or registry stale | If in same solution: run `registry list --local`. Otherwise: run `uip login` then `uip maestro flow registry pull --force` |
118
+ | Node type not found in registry | Searched by process name (matches release name, not folder), process not published, or registry stale | Search the `uipath.core.rpa-workflow` token and match on folder path — not a name keyword. If in same solution: run `registry list --local`. Otherwise: run `uip login` then `uip maestro flow registry pull --force` |
113
119
  | Input schema mismatch | Inputs don't match `inputDefinition` | Run `registry get` and check required inputs in `inputDefinition.properties` |
114
120
  | Process execution failed | Underlying RPA process errored | Check `$vars.{nodeId}.error` for details |
115
121
  | Mock placeholder still in flow | Process not yet replaced | Follow the mock replacement workflow above |
@@ -31,11 +31,14 @@ For step-by-step add, delete, and wiring procedures, see [editing-operations.md]
31
31
  ## Common Pattern — Error Handler
32
32
 
33
33
  ```text
34
- HTTP Request -> Decision (error?) -> true -> Log Error (Script) -> Terminate
35
- -> false -> Process -> End
34
+ HTTP Request
35
+ |-- default -> Process -> End
36
+ |-- error -> Log Error (Script) -> Terminate
36
37
  ```
37
38
 
38
- The Decision node checks `$vars.httpCall.error`, routes to a Script that logs the error, then Terminate aborts the flow.
39
+ Wire the action node's implicit `error` source port straight to the handler; the Script logs `$vars.httpCall.error`, then Terminate aborts the flow. Do **not** put a Decision downstream to test for an error — a failing node has already faulted the flow before execution reaches it.
40
+
41
+ Add this pattern only when the requirements state what a failure should do. With no error edge the failure faults the flow on its own, which is the correct default — and never set `inputs.errorHandlingEnabled: true` without the edge. See [file-format.md — Implicit error port on action nodes](../../../../shared/file-format.md#implicit-error-port-on-action-nodes).
39
42
 
40
43
  ## Debug
41
44
 
@@ -12,6 +12,7 @@ Lookup table for known recurring failure modes in Maestro Flow projects. Each en
12
12
  | [MST-9972](#mst-9972--variablesnodes-missing-vars-resolves-to-undefined) | `Cannot read property 'output' of undefined` on a downstream node | Direct-authored `.flow` skipped `variables.nodes[]`; `flow validate` accepts it but the BPMN has no process-level variable declaration for the upstream node. |
13
13
  | [MST-9061](#mst-9061--misshapen-rectangle-nodes-in-studio-web) | Nodes render at the wrong size for their shape | `flow format` not run before publish |
14
14
  | [HITL `completed` port unwired](#hitl-completed-port-unwired) | Flow hangs indefinitely after a HITL node | No outgoing edge from the node's `completed` source port |
15
+ | [Run reports `Completed`, work not done](#run-reports-completed-but-the-work-never-happened) | Run finishes `Completed`, but the API call / node it depended on failed | `inputs.errorHandlingEnabled: true` on a node with no handler, or an `error` edge routed back into the happy path |
15
16
  | [Reused reference ID](#reused-reference-id--cross-connection-id-leakage) | Connector node faults silently at runtime | Reference ID copied from a prior flow's connection |
16
17
  | [Single-nested layout](#single-nested-layout) | Studio Web upload fails; `flow init` auto-registration is skipped | `uip maestro flow init` was run with `--skip-solution-registration` (opts out of auto-scaffold + registration) |
17
18
  | [Missing `bindings[]` on resource node](#missing-bindings-on-resource-node) | `Folder does not exist or the user does not have access to the folder` | Top-level `bindings[]` entries not added for a `uipath.core.*` resource node |
@@ -146,6 +147,73 @@ Add an edge from the HITL node's `completed` port to the next node in the flow.
146
147
 
147
148
  ---
148
149
 
150
+ ## Run reports `Completed` but the work never happened
151
+
152
+ ### Symptom
153
+
154
+ `finalStatus` is `Completed` and no incident is raised, yet the flow's real effect is missing — the record was never created, the message never sent, the downstream node ran on empty or stale data. The flow "always looks successful," including on runs where a dependency was demonstrably down. Nothing shows up in `instance incidents` because, as far as the engine is concerned, nothing failed.
155
+
156
+ ### Cause
157
+
158
+ The failing node has `inputs.errorHandlingEnabled: true`, which suppresses its fault instead of faulting the run. Two shapes:
159
+
160
+ 1. **Flag with no handler** — the flag is set on a node with no outgoing `sourcePort: "error"` edge. The node swallows the exception and execution continues down `default` with missing output.
161
+ 2. **Error path rejoins the happy path** — an `error` edge targets the next happy-path node, or reaches the same End node the success path reaches. The failure then runs the success path's output mappings against the failed node's empty output.
162
+
163
+ Both pass `uip maestro flow validate` — it checks structure, never whether an error path is meaningful.
164
+
165
+ ### Fix
166
+
167
+ Report every node carrying the flag, and where its error path ends:
168
+
169
+ ```bash
170
+ python3 - "<ProjectName>.flow" <<'PY'
171
+ import json, sys
172
+ d = json.load(open(sys.argv[1]))
173
+ E = d.get("edges", []); N = {n["id"]: n for n in d.get("nodes", [])}
174
+
175
+ def targets(nid, port=None, exclude=None):
176
+ return [e["targetNodeId"] for e in E if e["sourceNodeId"] == nid
177
+ and (port is None or e.get("sourcePort") == port)
178
+ and (exclude is None or e.get("sourcePort") != exclude)]
179
+
180
+ def terminals(start, seen=None):
181
+ seen = seen or set()
182
+ if start in seen: return set()
183
+ seen.add(start)
184
+ if (N.get(start) or {}).get("type") in ("core.control.end", "core.logic.terminate"):
185
+ return {start}
186
+ return set().union(*[terminals(t, seen) for t in targets(start)] or [set()])
187
+
188
+ for nid, n in N.items():
189
+ if (n.get("inputs") or {}).get("errorHandlingEnabled") is not True: continue
190
+ err, ok = targets(nid, "error"), targets(nid, exclude="error")
191
+ if not err:
192
+ print(f"{nid}: flag set, NO error edge"); continue
193
+ ok_term = set().union(*[terminals(t) for t in ok]) if ok else set()
194
+ for t in err:
195
+ if t in ok: print(f"{nid}: error -> {t} REJOINS the happy path")
196
+ elif terminals(t) and terminals(t) <= ok_term:
197
+ print(f"{nid}: error -> {t} shares success terminal(s) {sorted(terminals(t))}")
198
+ else: print(f"{nid}: error -> {t} distinct terminal(s) {sorted(terminals(t))} - ok")
199
+ PY
200
+ ```
201
+
202
+ No output means no node has the flag set — the flow is clean. Otherwise act per line:
203
+
204
+ - **`flag set, NO error edge`** (shape 1) — remove `inputs.errorHandlingEnabled` from that node. The failure then faults the run, which is the visible, correct outcome.
205
+ - **`REJOINS the happy path`** / **`shares success terminal(s)`** (shape 2) — repoint the `error` edge at a terminal the caller can distinguish from success: a distinct End node mapping an error/status `out` variable, or `core.logic.terminate` when recovery is impossible.
206
+ - **`distinct terminal(s) … - ok`** — this node's error handling is wired correctly; look elsewhere.
207
+
208
+ Re-run `uip maestro flow validate` and `uip maestro flow format` after either fix.
209
+
210
+ ### Reference
211
+
212
+ - [shared/file-format.md — Default: off](../../shared/file-format.md#default-off--enable-only-for-a-failure-the-flow-actually-handles) and [Do not swallow the failure](../../shared/file-format.md#do-not-swallow-the-failure)
213
+ - [Author capability — rule #16](../../author/CAPABILITY.md#critical-rules)
214
+
215
+ ---
216
+
149
217
  ## Reused reference ID — cross-connection ID leakage
150
218
 
151
219
  ### Symptom
@@ -299,7 +299,8 @@ See the [Author CLI editing strategy](../author/references/editing-operations-cl
299
299
 
300
300
  ## uip maestro flow eval
301
301
 
302
- Evaluation surface — evaluator CRUD, eval set CRUD, data point CRUD, Studio Web run start/status/results/list/compare. Local CRUD requires no login; `eval run *` requires `uip login` and a Flow solution that already exists in Studio Web. **Never auto-run `uip solution upload` to satisfy the Studio Web prerequisite** — see [evaluate/references/upload-safety.md](../evaluate/references/upload-safety.md).
302
+ Evaluation surface — evaluator CRUD, eval set CRUD, data point CRUD, Studio Web run start/status/results/list/compare. Local CRUD requires no login; `eval run *` requires `uip login` and a Flow solution that already exists in Studio Web.
303
+ **Never auto-run `uip solution upload` to satisfy the Studio Web prerequisite** — see [evaluate/references/upload-safety.md](../evaluate/references/upload-safety.md).
303
304
 
304
305
  ```bash
305
306
  # Data points (test cases) — inline inside eval set JSON
@@ -5,7 +5,7 @@ The `.flow` file is a JSON document at `<ProjectName>.flow` in the project root.
5
5
  ## Table of contents
6
6
 
7
7
  - [Top-level structure](#top-level-structure)
8
- - [Project structure (from `uip maestro flow init`)](#project-structure-from-uip-maestro-flow-init)
8
+ - [Project structure (generated scaffold)](#project-structure-generated-scaffold)
9
9
  - [Node instance](#node-instance)
10
10
  - [Layout](#layout)
11
11
  - [Edge — both ports required](#edge--both-ports-required)
@@ -23,7 +23,7 @@ The `.flow` file is a JSON document at `<ProjectName>.flow` in the project root.
23
23
  ```json
24
24
  {
25
25
  "id": "<uuid>",
26
- "version": "<version from `uip maestro flow init`>",
26
+ "version": "<scaffolded file-format version>",
27
27
  "name": "MyFlow",
28
28
  "nodes": [],
29
29
  "edges": [],
@@ -44,11 +44,11 @@ Optional top-level `runtime`: a CLI-managed object that appears on some flows (e
44
44
 
45
45
  > **Don't confuse top-level `version` with `definitions[].version` / `typeVersion`.** Node-definition `version` (and matching node-instance `typeVersion`) are validated by `versionSchema`, a regex that accepts both `x.y` and `x.y.z` (`/^\d+\.\d+(\.\d+)?$/`, error `'Version must be in format "x.y" or "x.y.z"'`). Both layers are canonically `x.y`, but the node-level regex still accepts legacy 3-part strings so registry definitions (`"1.0"`) and older scaffolded nodes (`"1.0.0"`) both parse. The two layers report distinct errors, but Zod may collapse a node-level mismatch to path `(root)`. If you see a version-related error at `(root)`, audit the top-level `version` first; if it's correct, check each node's `typeVersion` against the matching `definitions[].version`.
46
46
 
47
- `solutionId` and `projectId` may also appear at the top level — these are auto-populated by `uip maestro flow init` and packaging. Do not add them manually.
47
+ `solutionId` and `projectId` may also appear at the top level — these are auto-populated by the project scaffold and packaging. Preserve the generated values.
48
48
 
49
49
  > **`bindings[]`** holds Orchestrator resource references for `uipath.core.*` resource nodes (rpa, agent, flow, agentic-process, api-workflow, hitl) and for connector-node connections. See [Bindings — Orchestrator resource bindings](#bindings--orchestrator-resource-bindings-top-level-bindings) below and the [connector plugin](../author/references/plugins/connector/impl.md) for the connector-binding shape.
50
50
 
51
- ## Project structure (from `uip maestro flow init`)
51
+ ## Project structure (generated scaffold)
52
52
 
53
53
  ```
54
54
  <ProjectName>/
@@ -287,7 +287,7 @@ uip maestro flow registry search <keyword>
287
287
  | `core.action.transform` | `output`, `error` | `input` |
288
288
  | `core.logic.decision` | `true`, `false` | `input` |
289
289
  | `core.logic.switch` | `case-{id}` (dynamic), `default` | `input` |
290
- | `core.logic.loop` | `success`, `output` | `input`, `loopBack` |
290
+ | `core.logic.loop` | `success`, `error` (outer), `start` (inner) | `input` (outer), `continue`, `break` (inner) |
291
291
  | `core.logic.merge` | `output` | `input` |
292
292
  | `core.control.end` | — | `input` |
293
293
  | `core.logic.terminate` | — | `input` |
@@ -307,6 +307,33 @@ Any node with `supportsErrorHandling: true` in the registry exposes an implicit
307
307
 
308
308
  The port is **not** listed in the registry's `handleConfiguration`. Studio Web only exposes it when the source node has `inputs.errorHandlingEnabled: true`; when the flow contains an outgoing edge with `sourcePort: "error"` from that node, the serializer emits a BPMN boundary error event attached to the node. Because of this gate, `uip maestro flow validate` reports an error when a node has an outgoing `sourcePort: "error"` edge but `inputs.errorHandlingEnabled` is not `true` — so the inconsistency is caught before publish rather than surfacing as a hidden edge in Studio Web.
309
309
 
310
+ ### Default: off — enable only for a failure the flow actually handles
311
+
312
+ `inputs.errorHandlingEnabled` is **opt-in, and stays off unless the requirements name a failure fallback.** Turning it on suppresses the node's fault: the node returns instead of faulting and execution continues. Enable it only when both hold:
313
+
314
+ 1. The requirements state what should happen when this node fails ("if the call fails, …", "return X for invalid input", "handle timeouts") — **and**
315
+ 2. You wire the node's `error` port to a handler that produces an outcome distinguishable from success.
316
+
317
+ Never set the flag on a node that has no outgoing `error` edge — it suppresses the fault with nothing to catch it, converting a real failure into a run that reports success. Let the CLI own the flag: `uip maestro flow edge add --source-port error` and `uip maestro flow format` set it from the error edges actually present. If you find the flag on a node with no error edge, remove it.
318
+
319
+ ### Do not swallow the failure
320
+
321
+ An `error` edge must not rejoin the happy path. When it does, every failure walks the success route and the run reports `Completed` while the work never happened — the flow "always looks successful."
322
+
323
+ | | Error-path target | Result |
324
+ | --- | --- | --- |
325
+ | ✗ | The next node on the happy path | Failure is invisible; downstream nodes run on missing data |
326
+ | ✗ | The same End node the success path reaches | Success path's output mappings run against the failed node's empty output |
327
+ | ✓ | A **distinct** End node mapping an error/status `out` variable | Caller can tell failure from success |
328
+ | ✓ | `core.logic.terminate` | Aborts the flow when recovery is impossible — see [terminate/impl.md](../author/references/plugins/terminate/impl.md) |
329
+ | ✓ | A recovery branch that rejoins **only after obtaining valid data** — a retry that succeeded, or a fallback source that returned data | Downstream runs on real data, not on the failed node's empty output |
330
+
331
+ ```text
332
+ Trigger -> HTTP Request
333
+ |-- default -> Process -> End (success — status: "ok")
334
+ |-- error -> Log Error -> End (failure — status: "failed", message from $vars.httpCall.error)
335
+ ```
336
+
310
337
  ### When the error port fires
311
338
 
312
339
  - Network failures, DNS errors, TLS errors
@@ -316,7 +343,7 @@ The port is **not** listed in the registry's `handleConfiguration`. Studio Web o
316
343
  - Transform operation failures (invalid collection, missing field)
317
344
  - Any unhandled runtime exception inside the node
318
345
 
319
- Without a wired error edge, any of these fails the whole flow with `finalStatus: "Faulted"`.
346
+ Without a wired error edge, any of these fails the whole flow with `finalStatus: "Faulted"`. **That is the correct default, not a defect to design around** — a faulted run is visible to the operator; a swallowed failure is not. Only trade the fault for an error path when the requirements say what that path should do.
320
347
 
321
348
  ### Wiring the error port
322
349
 
@@ -329,7 +356,7 @@ uip maestro flow edge add <Project>.flow <actionNodeId> <errorHandlerId> \
329
356
  --source-port error --target-port input --output json
330
357
  ```
331
358
 
332
- `uip maestro flow edge add --source-port error` and `uip maestro flow format` set `inputs.errorHandlingEnabled: true` on the source node automatically. When editing `.flow` JSON directly, set the flag yourself:
359
+ `uip maestro flow edge add --source-port error` and `uip maestro flow format` set `inputs.errorHandlingEnabled: true` on the source node automatically — only for nodes that have an error edge. When editing `.flow` JSON directly, set the flag yourself **on those nodes only**:
333
360
 
334
361
  ```json
335
362
  {
@@ -362,7 +389,7 @@ Replace `<uuid>` with any generated UUID (e.g. `crypto.randomUUID()` in Node.js,
362
389
  ```json
363
390
  {
364
391
  "id": "3d4a8c34-5682-4ebe-a6bc-d92a18830bb5",
365
- "version": "<version from `uip maestro flow init`>",
392
+ "version": "<scaffolded file-format version>",
366
393
  "name": "DiceRoller",
367
394
  "nodes": [
368
395
  {
@@ -470,7 +497,7 @@ The `definitions` array must contain exactly one entry per unique `type:typeVers
470
497
 
471
498
  ## entry-points.json — auto-generated, do not edit
472
499
 
473
- `entry-points.json` declares the flow's external interface (input/output schemas and trigger entry points). **Do not edit this file directly** — it is auto-generated by `uip maestro flow init` and regenerated by `uip maestro flow debug` before upload. Manual edits will be overwritten.
500
+ `entry-points.json` declares the flow's external interface (input/output schemas and trigger entry points). Preserve its lifecycle-generated contents; project scaffolding creates it, and the Flow lifecycle regenerates it before execution or publication.
474
501
 
475
502
  Flow input and output parameters are declared through **variables** in the `.flow` file:
476
503
  - **Flow inputs**: Add entries to `variables.nodes[]` whose `binding.nodeId` is the start node and whose `binding.outputId` names each input value — the start node "outputs" input values to downstream nodes
@@ -67,7 +67,7 @@ Three failure modes observed in agent-generated `.flow` files:
67
67
  | **Decision** (`core.logic.decision`) | `inputs.expression` | **NO** — already JS, do not prefix |
68
68
  | **Switch** (`core.logic.switch`) | `inputs.cases[].expression` | **NO** — already JS, do not prefix |
69
69
  | **End nodes** (`core.control.end`) | `outputs.<varId>.source` | **YES** |
70
- | **Variable updates** | `variables.variableUpdates.<nodeId>[].expression` | **YES** (the CLI auto-prefixes if missing, but write it explicitly) |
70
+ | **Variable updates** | `variables.variableUpdates.<nodeId>[].expression` | **NO** — not a string field. Write the object form `{ "type": "jsExpression", "expression": "<bare JS>", "fieldType": "<target variable type>" }`. A `=js:` string fails `flow validate` at the 1.9→1.10 migration. See [variables-and-expressions.md § Variable Updates](variables-and-expressions.md#variable-updates-variableupdates). |
71
71
  | **Loop nodes** (`core.logic.loop`) | `inputs.collection` | **YES** |
72
72
  | **Subflow nodes** (`core.subflow`) | `inputs.<inputId>.source` | **YES** |
73
73
  | **Script nodes** (`core.action.script`) | `inputs.script` body — `$vars.*` is read inside JS, no `=js:` wrapping | **NO** — the body is already JS |
@@ -108,7 +108,7 @@ A todo is a **state-changing outcome the user cares about**. One logical step
108
108
 
109
109
  **Counts as a todo:**
110
110
  - Solution scaffolded
111
- - Flow project initialized
111
+ - Flow project created
112
112
  - Node added and wired
113
113
  - Edges connected
114
114
  - Variables defined and mapped
@@ -77,10 +77,17 @@ Workflow variables are declared in `variables.globals`. Each has a **direction**
77
77
  schema?: object // JSON Schema (draft-07) for complex types
78
78
  defaultValue?: unknown // Initial value (must match type)
79
79
  description?: string // Human-readable description
80
- triggerNodeId?: string // Trigger node this input is associated with (works in both root flows and subflows)
80
+ triggerNodeId?: string // REQUIRED on `in` globals — see below (works in both root flows and subflows)
81
81
  }
82
82
  ```
83
83
 
84
+ > **Set `triggerNodeId` on every `in` global** — omit it and the input is silently dropped from the packed entry point.
85
+ >
86
+ > - **What to set** — the `id` of the trigger that supplies the value; `"start"` in a single-trigger flow.
87
+ > - **Why** — packaging reads the input contract from the trigger manifest's output schema when it declares one, and otherwise keeps only globals where `direction === "in"` and `triggerNodeId` matches the start node's `id`. Core triggers declare no output schema, so that second branch is the live one.
88
+ > - **Failure mode** — `flow pack` emits an empty `input.properties` while `flow validate` and `flow format` both stay green, so nothing warns you.
89
+ > - **Via CLI** — `uip maestro flow variable add --direction in` sets it for you.
90
+
84
91
  ### Examples
85
92
 
86
93
  **String input with default:**
@@ -90,7 +97,8 @@ Workflow variables are declared in `variables.globals`. Each has a **direction**
90
97
  "direction": "in",
91
98
  "type": "string",
92
99
  "defaultValue": "Unknown",
93
- "description": "Name of the customer to process"
100
+ "description": "Name of the customer to process",
101
+ "triggerNodeId": "start"
94
102
  }
95
103
  ```
96
104
 
@@ -132,7 +140,8 @@ Workflow variables are declared in `variables.globals`. Each has a **direction**
132
140
  }
133
141
  },
134
142
  "additionalProperties": false
135
- }
143
+ },
144
+ "triggerNodeId": "start"
136
145
  }
137
146
  ```
138
147
 
@@ -143,7 +152,8 @@ Workflow variables are declared in `variables.globals`. Each has a **direction**
143
152
  "direction": "in",
144
153
  "type": "array",
145
154
  "subType": "string",
146
- "defaultValue": ["admin@example.com"]
155
+ "defaultValue": ["admin@example.com"],
156
+ "triggerNodeId": "start"
147
157
  }
148
158
  ```
149
159
 
@@ -262,19 +272,39 @@ Variable updates assign new values to `inout` (state) variables at specific node
262
272
 
263
273
  ### Schema
264
274
 
275
+ `expression` is an **object**, not a `=js:` string. This is the one expression site in the file format that is strictly typed — `nodes[].inputs`, `nodes[].outputs[].source`, and edge conditions still accept legacy `=js:` strings, but `variableUpdates` does not.
276
+
265
277
  ```typescript
266
278
  {
267
279
  "variableUpdates": {
268
280
  "{nodeId}": [
269
281
  {
270
- "variableId": string, // ID of the inout variable to update
271
- "expression": string // =js: expression to evaluate and assign
282
+ "variableId": string, // ID of the inout variable to update
283
+ "expression": {
284
+ "type": "jsExpression", // or "literal" for a static value
285
+ "expression": string, // BARE JS body — NO "=js:" prefix
286
+ "fieldType": "number" // the target variable's declared type
287
+ }
272
288
  }
273
289
  ]
274
290
  }
275
291
  }
276
292
  ```
277
293
 
294
+ | Field | Value |
295
+ | --- | --- |
296
+ | `type` | `"jsExpression"` for an evaluated expression, `"literal"` for a static value |
297
+ | `expression` | The JS body **without** the `=js:` prefix. For object-form expressions the prefix is *not* stripped, so `"=js:$vars.x"` here leaves `=js:` in the evaluated body. |
298
+ | `fieldType` | Set it to the target variable's `type` from `variables.globals`, mapped `integer` → `number`. One of `array`, `boolean`, `null`, `number`, `object`, `string`. |
299
+
300
+ > **The three keys are structurally required, but their *values* are not cross-checked.** `flow validate` rejects a missing or extra key (the object is strict), and rejects the legacy string form outright — but it accepts a `fieldType` that disagrees with the target variable, and accepts a stray `=js:` inside `expression`. Get these right by construction; validation will not tell you.
301
+
302
+ > **Symptom of the legacy string form:** `uip maestro flow validate` fails with
303
+ > `[MIGRATION] Workflow migration failed at 1.9→1.10 … Offending field(s): variables.variableUpdates.<nodeId>.0.expression`
304
+ > and `"Retry": "RetryWillNotFix"`. The string form was dropped in file-format version 1.3; `uip maestro flow init` scaffolds 1.9.
305
+
306
+ > **There is no CLI command for variable updates.** Write them with `Edit` against the `.flow` file.
307
+
278
308
  ### Example
279
309
 
280
310
  ```json
@@ -298,11 +328,19 @@ Variable updates assign new values to `inout` (state) variables at specific node
298
328
  "processItem": [
299
329
  {
300
330
  "variableId": "counter",
301
- "expression": "=js:$vars.counter + 1"
331
+ "expression": {
332
+ "type": "jsExpression",
333
+ "expression": "$vars.counter + 1",
334
+ "fieldType": "number"
335
+ }
302
336
  },
303
337
  {
304
338
  "variableId": "lastStatus",
305
- "expression": "=js:$vars.processItem.output.status"
339
+ "expression": {
340
+ "type": "jsExpression",
341
+ "expression": "$vars.processItem.output.status",
342
+ "fieldType": "string"
343
+ }
306
344
  }
307
345
  ]
308
346
  }
@@ -312,7 +350,7 @@ Variable updates assign new values to `inout` (state) variables at specific node
312
350
 
313
351
  > **Only `inout` variables can be updated.** Updating an `in` or `out` variable is invalid.
314
352
 
315
- > **Inside loops:** variableUpdate expressions cannot access loop iteration variables like `$vars.<loopId>.currentItem`. Those are only available inside the body node's script. The variableUpdate must reference the body node's output (e.g., `=js:$vars.bodyNode.output`).
353
+ > **Inside loops:** variableUpdate expressions cannot access loop iteration variables like `$vars.<loopId>.currentItem`. Those are only available inside the body node's script. The variableUpdate must reference the body node's output (e.g., `$vars.bodyNode.output` as the object's `expression`).
316
354
 
317
355
  ---
318
356
 
@@ -320,6 +358,8 @@ Variable updates assign new values to `inout` (state) variables at specific node
320
358
 
321
359
  Workflow output variables (`direction: "out"`) must be mapped on End nodes. The End node's `outputs` object maps each output variable ID to a source expression.
322
360
 
361
+ `inout` variables are mapped the same way — an unmapped `inout` global raises a `MISSING_OUTPUT_MAPPING` warning on every End node, so map accumulators alongside the `out` variables.
362
+
323
363
  ### Structure
324
364
 
325
365
  ```json
@@ -400,7 +440,7 @@ These variables are available in all expression contexts:
400
440
  | `$vars` | All workflow and node variables | `$vars.{variableId}` or `$vars.{nodeId}.{outputId}` |
401
441
  | `$metadata` | Workflow metadata (instanceId, executionId) | `$metadata.instanceId` |
402
442
  | `$self` | Current node's output (HTTP branch conditions only) | `$self.output.statusCode` |
403
- | `$vars.<loopId>.*` | Loop iteration context (inside loops only) | `$vars.loop1.currentItem`, `$vars.loop1.currentIndex` |
443
+ | `$vars.<loopId>.*` | Loop iteration context (inside loops only) | `$vars.loop1.currentItem`, `$vars.loop1.currentIteration` |
404
444
 
405
445
  ### `$vars` Access Patterns
406
446
 
@@ -487,11 +527,11 @@ $self.output.statusCode >= 200 && $self.output.statusCode < 300
487
527
 
488
528
  ### Variable Update Expressions
489
529
 
490
- Evaluate to the new value for the target variable.
530
+ Evaluate to the new value for the target variable. **Not a `=js:` string** — this is the one expression site that takes an object. The JS body goes in `expression` without the prefix, and `fieldType` is the target variable's declared type. See [Variable Updates](#variable-updates-variableupdates).
491
531
 
492
- ```
493
- =js:$vars.counter + 1
494
- =js:$vars.items.concat([$vars.newItem.output])
532
+ ```json
533
+ { "type": "jsExpression", "expression": "$vars.counter + 1", "fieldType": "number" }
534
+ { "type": "jsExpression", "expression": "$vars.items.concat([$vars.newItem.output])", "fieldType": "array" }
495
535
  ```
496
536
 
497
537
  ### Loop Collection Expression
@@ -503,7 +543,7 @@ The `inputs.collection` field on a Loop node resolves to an array to iterate ove
503
543
  =js:$vars.inputArray.filter(x => x.active)
504
544
  ```
505
545
 
506
- Inside the loop body, use `$vars.<loopId>.currentItem` and `$vars.<loopId>.currentIndex` (e.g., `$vars.loop1.currentItem`).
546
+ Inside the loop body, use `$vars.<loopId>.currentItem` and `$vars.<loopId>.currentIteration` (e.g., `$vars.loop1.currentItem`).
507
547
 
508
548
  ---
509
549
 
@@ -551,14 +591,14 @@ A node's output (`$vars.{nodeId}.output`) is available to **all downstream nodes
551
591
  Inside a loop body, you have access to:
552
592
  - All parent-scope `$vars` (read-only from loop's perspective)
553
593
  - `$vars.<loopId>.currentItem` — current array element
554
- - `$vars.<loopId>.currentIndex` — zero-based index
594
+ - `$vars.<loopId>.currentIteration` — 1-based iteration number
555
595
  - `$vars.<loopId>.collection` — the original array
556
596
 
557
597
  Where `<loopId>` is the loop node's `id` (e.g., `$vars.loop1.currentItem`).
558
598
 
559
599
  > **Important:** Loop body nodes must have `"parentId": "<loopId>"` set in their JSON. Without this, the runtime does not know the node is inside the loop and `$vars.<loopId>.currentItem` will be undefined.
560
600
 
561
- After loop completion, `$vars.<loopId>.output` contains aggregated results from all iterations.
601
+ After loop completion, `$vars.<loopId>.output` holds one entry per iteration — **each entry keyed by body node id, with that node's outputs nested underneath**, NOT the body node's bare return value. See [loop/impl.md § Aggregated loop output](../author/references/plugins/loop/impl.md#aggregated-loop-output-varsloopidoutput).
562
602
 
563
603
  ### Subflow Scope
564
604
 
@@ -568,7 +608,19 @@ Subflows have their own variable scope. Parent variables are **not** automatical
568
608
 
569
609
  ## Variable Management via CLI
570
610
 
571
- There are **no CLI commands** for adding or removing variables. Manage variables with `Edit` against the `.flow` file.
611
+ **Authoring a flow: use `Edit`.** Add, remove, and update `variables.globals` and `variables.variableUpdates` directly in the `.flow` file. `variableUpdates` has no CLI command at all.
612
+
613
+ **Declaring an eval input: use the CLI.** Globals have a narrow CLI surface that the evaluate capability depends on, because `eval add` validates its `--inputs` keys against the flow's declared inputs:
614
+
615
+ | Command | Use |
616
+ | --- | --- |
617
+ | `uip maestro flow variable add <flow> <id> --direction in --type <type>` | Declare an input the eval set will supply |
618
+ | `uip maestro flow variable list <flow> --output json` | Check what the flow already declares |
619
+ | `uip maestro flow variable remove <flow> <id>` | Drop a declared global |
620
+
621
+ See [evaluate/references/eval-sets-guide.md](../evaluate/references/eval-sets-guide.md).
622
+
623
+ > **`variable add --direction in` binds the variable to a trigger** by writing `triggerNodeId`. That binding is what puts the input in the packed entry point's contract — without it `flow pack` emits an empty `input.properties` while `validate` and `format` stay green. The CLI infers the flow's single trigger; if a flow has more than one, it fails and asks for `--trigger-node-id <nodeId>` to say which entry point the input belongs to. Hand-authored globals need the same field — see [Workflow Variables](#workflow-variables).
572
624
 
573
625
  ### Adding a workflow input variable
574
626
 
@@ -623,7 +675,8 @@ A flow with input, state, and output variables:
623
675
  "type": "array",
624
676
  "subType": "object",
625
677
  "defaultValue": [],
626
- "description": "Items to process"
678
+ "description": "Items to process",
679
+ "triggerNodeId": "start"
627
680
  },
628
681
  {
629
682
  "id": "processedCount",
@@ -649,7 +702,11 @@ A flow with input, state, and output variables:
649
702
  "transform1": [
650
703
  {
651
704
  "variableId": "processedCount",
652
- "expression": "=js:$vars.processedCount + $vars.transform1.output.count"
705
+ "expression": {
706
+ "type": "jsExpression",
707
+ "expression": "$vars.processedCount + $vars.transform1.output.count",
708
+ "fieldType": "number"
709
+ }
653
710
  }
654
711
  ]
655
712
  }