@uipath/skills 1.207.0-preview.2100 → 1.207.0-preview.2114

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/skills",
3
- "version": "1.207.0-preview.2100",
3
+ "version": "1.207.0-preview.2114",
4
4
  "description": "UiPath agent skills for Claude Code, Codex, Cursor, GitHub Copilot, OpenCode, UiPath Autopilot, Kiro, Windsurf, Antigravity and Devin — RPA, UI automation, UI testing, coded agents/apps/workflows, and troubleshooting. Distributed as the UiPath Claude Code plugin.",
5
5
  "author": {
6
6
  "name": "UiPath"
@@ -25,7 +25,7 @@ Use this as a router: read only the capability reference you need, then let Type
25
25
  3. If the request requires `tasks/tasks.md`, write it before code and treat explicit stage/task rules, required flags, routing, and unresolved resources as authoritative and pre-approved.
26
26
  4. Import from `@uipath/maestro-builder-sdk/case`; default-export a chain ending in `.build()`.
27
27
  5. Seed the source by decompiling the plan `case init` seeded (`caseplan.case`, or an older `caseplan.json`) instead of hand-writing the skeleton: `uip maestro case decompile <project>/<plan> -o <Name>.case.ts --no-pipeline`. It carries the case id, `.name`, `.identifier` and `trigger_1` the product already assigned; `entry-points.json` references that trigger id. Compile back into that same `<plan>`, never a second plan beside it: pack and debug read only one. Compile with plain `-o <project>/<plan>` and no `--bindings <plan>`; it needs `@uipath/maestro-builder-sdk` 6.50.1 or later to keep a Designer-saved plan's binding map ([Brownfield](references/case-runtime.md#brownfield-editing)). Author inside the chain; the trailing `preserveCaseJson(...)` is decompiler-owned wire data — never hand-edit it, and leave it in place. For shape, copy the closest staged `examples/*.case.ts`.
28
- 6. Run `uip maestro case check <Name>.case.ts --source` before every compile, gate edits included (`skipWhen`, a rule `expression`); fix every error (non-zero exit) first. For instance, `check` reports a `vars.<id>` read of an undeclared variable as `EXPR_UNDECLARED_REF`. Editing an existing plan, copy it aside once per editing session before your first compile (`mkdir -p .flow-sdk/original && cp <project>/<plan> .flow-sdk/original/`), then add `--baseline .flow-sdk/original/<plan>` so defects the plan already had on stages and tasks you did not touch do not fail the check. Never pass `<project>/<plan>` itself: after the first compile it is your edit, and checking it against itself hides every error ([Brownfield](references/case-runtime.md#check-only-what-you-changed-check---baseline)).
28
+ 6. Run `uip maestro case check <Name>.case.ts --source` before every compile, gate edits included (`skipWhen`, a rule `expression`); fix every error (non-zero exit) first. For instance, `check` reports a `vars.<id>` read of an undeclared variable as `EXPR_UNDECLARED_REF`. One exception: `REFERENCE_OUTPUT_SOURCE` on `=response.<field>` when the task's own output argument is an object named `response`; keep that source and compile (the `outputs` row). Editing an existing plan, copy it aside once per editing session before your first compile (`mkdir -p .flow-sdk/original && cp <project>/<plan> .flow-sdk/original/`), then add `--baseline .flow-sdk/original/<plan>` so defects the plan already had on stages and tasks you did not touch do not fail the check. Never pass `<project>/<plan>` itself: after the first compile it is your edit, and checking it against itself hides every error ([Brownfield](references/case-runtime.md#check-only-what-you-changed-check---baseline)).
29
29
  7. Compile into the scaffolded Case project, then validate. Compile syncs existing sidecars; refresh added bindings and remove orphaned resources before refreshing.
30
30
  8. Run live debug only when requested and tenant resources are available.
31
31
 
@@ -42,10 +42,10 @@ three entry points; each file's header spells the paths its rows resolve against
42
42
 
43
43
  | Surface | Builder/API | Reference | Example |
44
44
  |---|---|---|---|
45
- | Case, stages, and completion | `casePlan`, `stage`, `completeWhen` | [CaseBuilder](#api-index) | `examples/ClaimReviewSLA.case.ts` |
45
+ | Case, stages, and completion | `casePlan`, `stage`, `completeWhen`; SDD `Stage Kind: secondary` is `exceptionStage`, an optional task or stage (SDD `Required` / `Required for Case Completion: No`) gets `.required(false)`, and a gating one `.required()` ([optionality](references/case-runtime.md#completion-and-optionality)) | [CaseBuilder](#api-index) | `examples/ClaimReviewSLA.case.ts` |
46
46
  | Variables and arguments | `var`, `input`, `output`, `jsonSchema`. A numeric case variable is `'integer'`, `'float'` or `'double'`, never `'number'` ([closed types](references/case-runtime.md#metadata-fidelity)) | [CaseBuilder](#api-index) | `examples/IntakeBinding.case.ts`, `examples/CreditDecision.case.ts` |
47
47
  | Manual, timer, and event starts | `manualTrigger`, `timerTrigger`, `eventTrigger` | [Trigger decisions](references/case-runtime.md#triggers-and-live-payloads) | `examples/NightlyRollup.case.ts` |
48
- | A task's outputs, and reading them from a later task or gate (SDK 6.70.7+) | `outputs`: the source is the result field as the Designer saves it, `=<Field>` on every task that runs published work (agent, process, RPA, API workflow, case management, flow process, function, business rule: `AgentExpenseRequest: '=AgentExpenseRequest'`) and `=response.<field>` only on a connector or wait-for-connector task; a key equal to the source's last segment (`app_id: '=response.app_id'`) keeps the output on the task, with no case variable, unless a `.var()` of that name exists or another task uses the same key (then both write one shared case variable; give the second task the suffixed key, `Result2: '=Result'`, to keep it on its task); `taskOutput('<stage>', '<task>', '<output>')`, or the SDD's `vars.$xref(...)` as written, reads it, where `<output>` is the result field it reads or its `outputs` key, and an unknown name is refused (`TASK_OUTPUT_REF_UNRESOLVED`) | [TaskBuilder, taskOutput](#api-index) | — |
48
+ | A task's outputs, and reading them from a later task or gate (SDK 6.70.7+) | `outputs`: the source is the result field as the Designer saves it, `=<Field>` on every task that runs published work (agent, process, RPA, API workflow, case management, flow process, function, business rule: `AgentExpenseRequest: '=AgentExpenseRequest'`) and `=response.<field>` only on a connector or wait-for-connector task, or on a task whose own output argument is an object named `response` ([Design fidelity](references/case-runtime.md#design-fidelity)); a key equal to the source's last segment (`app_id: '=response.app_id'`) keeps the output on the task, with no case variable, unless a `.var()` of that name exists or another task uses the same key (then both write one shared case variable; give the second task the suffixed key, `Result2: '=Result'`, to keep it on its task); `taskOutput('<stage>', '<task>', '<output>')`, or the SDD's `vars.$xref(...)` as written, reads it, where `<output>` is the result field it reads or its `outputs` key, and an unknown name is refused (`TASK_OUTPUT_REF_UNRESOLVED`) | [TaskBuilder, taskOutput](#api-index) | — |
49
49
  | Entry, exit, and data gates | `rule`, `when` | [Rules](#api-index) | `examples/ClaimReviewSLA.case.ts` |
50
50
  | Business events an outside system sends to a running case | `businessEvent`, `rule('api-event', { businessEvent })` (SDK 6.47.0+) | [CaseBuilder, Rules](#api-index) | — |
51
51
  | Published UiPath work | `process`, `agent`, `rpa`, `apiWorkflow`, `caseManagement`, `flowProcess`, `unresolved` | [TaskBuilder](#api-index) | `examples/ClaimReviewSLA.case.ts` |
@@ -93,6 +93,13 @@ export default casePlan('loan-approval')
93
93
  .build();
94
94
  ```
95
95
 
96
+ An array in one `entryWhen`, `exitWhen` or `completeWhen` call ANDs its rules; every call is another OR condition. Write one call per SDD Entry/Exit Rule row, and an IF expression on a row is that rule's `expression`. `[rule('case-entered'), <rule on a later event>]` can never fire (`case-entered` holds only at case start), so the stage is never entered.
97
+
98
+ ```ts
99
+ .entryWhen(rule('case-entered')) // Entry Rule 1
100
+ .entryWhen(rule('selected-stage-exited', { stage: 'Manager Approval', expression: '=js:vars.managerDecision === "Return"' })) // Entry Rule 2
101
+ ```
102
+
96
103
  ## Validation loop
97
104
 
98
105
  ```bash
@@ -206,8 +206,8 @@ make from syntax alone. Exact signatures remain in the generated API.
206
206
 
207
207
  - An `sla-status-change` breach response uses only `{ sla }`; an at-risk response
208
208
  also names `{ escalation }`. Put an enter-stage response on an
209
- `exceptionStage(...)` and call `.required(false)` so the secondary stage does
210
- not gate `required-stages-completed`.
209
+ `exceptionStage(...)` with `.required(false)` ([Completion and
210
+ optionality](#completion-and-optionality)).
211
211
 
212
212
  <!-- RULE:case.sla.escalation-absent -->
213
213
  - An ABSENT `escalation` is the persisted representation of Breached — not a
@@ -258,14 +258,17 @@ make from syntax alone. Exact signatures remain in the generated API.
258
258
  ```
259
259
 
260
260
  <!-- RULE:case.optionality.explicit -->
261
- - Declare optionality when something consumes it. `.required(false)` and
262
- omitting `.required()` are different statements in the emitted plan — the
263
- builder writes `isRequired` only when you call it — and a
264
- `required-stages-completed` exit reads that flag to decide which stages gate
265
- completion. When a stage or task is deliberately optional, say so explicitly
266
- rather than relying on a default the schema leaves unstated. Secondary lanes
267
- are the common case: an `exceptionStage(...)` that gates normal completion is
268
- almost never what was meant.
261
+ - A task or stage the request (or SDD `Required` / `Required for Case
262
+ Completion: No`) calls optional gets `.required(false)`; one that must gate
263
+ gets `.required()`. Omitting it writes no `isRequired`, which the plan
264
+ compiler reads as not required: `required-tasks-completed` waits only on
265
+ tasks, and `required-stages-completed` only on primary stages, marked
266
+ `isRequired: true`.
267
+ The Designer writes the flag explicitly, so write it either way.
268
+ - SDD `Stage Kind: secondary` is `.exceptionStage(label, fn)`, never
269
+ `.stage()`: only `exceptionStage` writes `stageType: secondary`. Add
270
+ `.required(false)`: the Designer forces it false on a secondary stage it
271
+ edits, and `check` warns `EXCEPTION_STAGE_REQUIRED` without it.
269
272
 
270
273
  ## Activation modes
271
274
 
@@ -318,6 +321,12 @@ make from syntax alone. Exact signatures remain in the generated API.
318
321
  the SDD declares a sub-property dereference, extract it from the
319
322
  producing task's own output root: `=response.<field>` on a connector
320
323
  or wait-for-connector task, `=<OutputName>.<field>` on other types.
324
+ An output argument that is an object named `response` is therefore
325
+ read `=response.<field>` on any type: `uip maestro case tasks describe
326
+ --type <TASK_TYPE> --id <ENTITY_KEY> --output json` lists it in
327
+ `Data.Outputs[]` as `name: "response"`, `type: "jsonSchema"`,
328
+ `_jsonSchema.type: "object"`. Keep that source through `check`'s
329
+ `REFERENCE_OUTPUT_SOURCE`, which compile does not run.
321
330
  When the SDD dereferences in place (e.g. inside a `$xref`
322
331
  expression), keep the SDD's casing and null-guard it:
323
332
  `vars.analysisResult?.unusualClauses`.
@@ -73,7 +73,7 @@ Both need `@uipath/maestro-builder-sdk` 6.101.0 or later (UiPath/builder-sdk#200
73
73
 
74
74
  ## Local authoring hard gates
75
75
 
76
- Use this section only with emit-only disabled. Use source `check` as the fast no-output loop; with a library and `.flow-sdk/bindings.json` beside the source it reports every connector-input and binding refusal that `compile` would raise. Compile to emit, then run product static check on the artifact. There is no compiled-artifact `check`; `validate` is that rung. `compile` does not run `check` and writes any serializable flow, so never compile with a `check` error. Ignore only an error whose own message says to ignore it, when applicable (for example `INLINE_AGENT_PROMPT_JSON_TEXT` when JSON is mentioned only as data). For a brownfield edit, add `--baseline <original.flow>` ([brownfield.md](brownfield.md#check-only-what-you-changed-check---baseline)).
76
+ Use this section only with emit-only disabled. Use source `check` as the fast no-output loop; with a library and `.flow-sdk/bindings.json` beside the source it reports every connector-input and binding refusal that `compile` would raise. Compile to emit, then run product static check on the artifact. There is no compiled-artifact `check`; `validate` is that rung. `validate` needs no login or `registry pull`; the pull serves `check`, so a validate failure is never fixed by re-pulling. `compile` does not run `check` and writes any serializable flow, so never compile with a `check` error. Ignore only an error whose own message says to ignore it, when applicable (for example `INLINE_AGENT_PROMPT_JSON_TEXT` when JSON is mentioned only as data). For a brownfield edit, add `--baseline <original.flow>` ([brownfield.md](brownfield.md#check-only-what-you-changed-check---baseline)).
77
77
 
78
78
  Run this sequence in order; run `registry prepare` only when `check` names it:
79
79
 
@@ -18,7 +18,7 @@ Signatures: `documentClassify({ fileRef, pageRange?, splitPages?, modelConfig? }
18
18
  .step('classify', documentClassify({ fileRef: input('file'), splitPages: true }))
19
19
  .step('extract', dynamicExtract({ fileRef: input('file'), schema: invoiceTaxonomy }),
20
20
  { label: 'Extract invoice' })
21
- .step('total', script({ code: 'return $vars.extract.output.result.output;' })) // warns until the SDK typing catches up
21
+ .step('total', script({ code: 'return $vars.extract.output.result.output;' }))
22
22
  ```
23
23
 
24
24
  ## At a glance
@@ -91,14 +91,17 @@ with `properties` alone for you — the format, with a worked example, is in
91
91
 
92
92
  Classification lands at `out('classify', ...)`. What the node emits at run time
93
93
  is a processed document, with the extracted values at `result.output`, one
94
- property per taxonomy field, and their page provenance under
94
+ property per field group holding its fields, and their page provenance under
95
95
  `result.attribution` ([Reading what it extracts](extract-document-node.md#reading-what-it-extracts)).
96
- The two routes embed different typings for it, though: `nodes create` embeds
97
- that current shape, while the SDK factory still embeds the older
98
- `ExtractionResult` shape — so on a factory-built flow, a read of
99
- `result.output` validates with an `EXPRESSION_DIAGNOSTIC` warning until the SDK
100
- catches up. `ExtractionResult` as a runtime shape belongs to the
101
- published-model node ([ixp.md](ixp.md)), not this one.
96
+ Read a value with `out('extract', 'result.output.<group>.<field>')`. `check`
97
+ verifies the processed document's fixed keys (`version`, `type`, `result`,
98
+ `taxonomy`, `metadata` and the keys under them): a read of a key the document
99
+ does not have is `EXTRACT_READ_UNKNOWN_FIELD`, with the spelling to use.
100
+ `ExtractionResult` is one of those keys: it is the published-model node's
101
+ shape ([ixp.md](ixp.md)), not this one. Group and field names under
102
+ `result.output` are not checked against the taxonomy, so a misspelt one
103
+ (`result.output.Invoice.Totl`) still passes `check`. Copy them from the
104
+ taxonomy.
102
105
 
103
106
  ## Evidence boundary
104
107
 
@@ -40,6 +40,21 @@ again this way, naming the `.parallel` `<node>Fork` after the node the arms
40
40
  leave. A canvas arm that runs a step before its Terminate is the exception: it
41
41
  stays an unstructured fan-out (see [brownfield.md](brownfield.md)).
42
42
 
43
+ ## A Merge after a branch never completes
44
+
45
+ A Merge waits for every edge into it, and a `.branch()` or `.switch()` takes one arm.
46
+ So a Merge that only one Decision's or Switch's arms reach stops the run there: `check` refuses it (`MERGE_NEVER_COMPLETES`), and so does `uip maestro flow validate`.
47
+ Do not put a Merge after a `.branch()`: its arms meet at the next step on their own.
48
+ Inside a `.parallel` arm, put a step after the `.branch()` so its arms meet there before the join.
49
+
50
+ ```ts
51
+ .branch('d', cond, (t) => t.step('A', work), (e) => e.step('B', work))
52
+ .step('after', work) // A and B both lead here; no Merge
53
+ ```
54
+
55
+ Decompile keeps a canvas Merge drawn after a Decision as a `rawNode('core.logic.merge')` step, so a brownfield file with one reports this finding on an unchanged node.
56
+ The run of the original never finishes either; tell the user, and remove the Merge step only if they ask for the fix.
57
+
43
58
  ## At a glance
44
59
 
45
60
  Fan out independent arms and join them at a Merge.
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "schemaVersion": 2,
3
- "skillsVersion": "1.207.0-preview.2100",
3
+ "skillsVersion": "1.207.0-preview.2114",
4
4
  "targetCli": "^1.207.0"
5
5
  }