@uipath/skills 1.207.0-preview.2100 → 1.207.0-preview.2133
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 +1 -1
- package/skills/uipath-maestro-case/SKILL.md +10 -3
- package/skills/uipath-maestro-case/references/case-runtime.md +19 -10
- package/skills/uipath-maestro-flow/references/CLI-LOOP.md +1 -1
- package/skills/uipath-maestro-flow/references/document-pipeline.md +11 -8
- package/skills/uipath-maestro-flow/references/parallel-merge.md +15 -0
- package/skills/uipath-planner/references/design/case-data-and-time-guide.md +2 -2
- package/skills/uipath-planner/references/design/case-product-guide.md +1 -1
- package/version-manifest.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/skills",
|
|
3
|
-
"version": "1.207.0-preview.
|
|
3
|
+
"version": "1.207.0-preview.2133",
|
|
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(...)`
|
|
210
|
-
|
|
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
|
-
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
`required-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
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;' }))
|
|
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
|
|
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
|
-
|
|
97
|
-
|
|
98
|
-
`
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
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.
|
|
@@ -237,9 +237,9 @@ ONE checklist. Settle every item before the Phase 2 Step 5 review and re-walk it
|
|
|
237
237
|
1. **Other-path trigger source** — every modeled path's entry shape matches its trigger source ([case-product-guide.md](case-product-guide.md) § Secondary-lane entry shapes); interrupting flags set on the stage AND on every entry row; terminal `exit-only` vs returning `return-to-origin` chosen; a warning-only escalation stays a notification; an SLA response needing case work carries ONE `sla-status-change` entry row per SLA, with declared target + titles — one trigger per WHEN cell, never `OR`-joined; never duplicate a global-event entry or exit across primary stages.
|
|
238
238
|
2. **Reachability walk** — every stage reachable from a trigger or SLA source: walk entries forward, and walk every conditional entry's FALSE branch too. A stage that does not enter never completes, so a downstream stage keying solely off its completion is unreachable on that branch — when a rule SKIPS a stage and the case continues, the bypass is an explicit extra entry row on the downstream stage (its own condition, negated); when the rule ENDS the case, that branch needs a terminal lane. Never write that a skipped stage "auto-completes" or "counts as complete" — that is an assertion, not a route, and the path stays dead. Every primary stage's completion consumed downstream, referenced by another entry, or feeding a lane; ≥ 1 primary stage `Required: Yes`; `adhoc` never a stage entry. Decision-reachable lanes and duplicate-entry ambiguity per § Secondary-lane entry shapes.
|
|
239
239
|
3. **Entry producer** — every non-start entry names its concrete producer (source stage/task, connector event, paired `wait-for-user` exit, declared SLA reference); at-risk rows name the escalation, breach rows the SLA alone.
|
|
240
|
-
4. **Decision-routing closure** — every decision outcome routes somewhere: no dead-end status values; an outcome targeting a lane keys that lane's entry; every routing button's variable+value is consumed downstream or a declared terminal; a fully-orphaned decision variable on a decision task is blocking.
|
|
240
|
+
4. **Decision-routing closure** — every decision outcome routes somewhere: no dead-end status values; an outcome targeting a lane keys that lane's entry AND has its own guarded exit row on the deciding stage — a lane keyed on `selected-stage-exited` of a stage that never exits on that value never enters ([case-product-guide.md](case-product-guide.md) § Repairing a `user-selected-stage` lane, Decision-routed edit 2); every `Marks Stage Complete: No` exit has a consumer: a lane entry or a case-exit row keyed on that stage and value; every routing button's variable+value is consumed downstream or a declared terminal; a fully-orphaned decision variable on a decision task is blocking.
|
|
241
241
|
5. **Gate reads the producer** — no condition whose WHEN names a task reads a case variable that task writes (§ Gate on the producer).
|
|
242
|
-
6. **Data closure** — every configure/decide output lands in a variable or direct reference; every send/connector/agent required input maps to variables/literals/upstream outputs as far as knowable without schemas (rest resolves at build); thresholded policy in executable cells (§ Expressions).
|
|
242
|
+
6. **Data closure** — every configure/decide output lands in a variable or direct reference; every `vars.<name>` a condition reads is spelled exactly as the Case Variables row or upstream output that produces it — a reference under any other name has no producer; every send/connector/agent required input maps to variables/literals/upstream outputs as far as knowable without schemas (rest resolves at build); thresholded policy in executable cells (§ Expressions).
|
|
243
243
|
7. **Task-surface classification** — human-performed required work `action`, optional user-launched `adhoc`; no compliance trigger phrase paired with a non-`action` type without explicit user reconciliation ([case-product-guide.md](case-product-guide.md) § Task-type override priority).
|
|
244
244
|
8. **Required-task presence** — a `required-tasks-completed` completion over a stage with zero `Required: Yes` tasks fails validate: `Stage exit rule '<name>' has no task(s) marked as required`; offer marking the terminal task required.
|
|
245
245
|
9. **Resources** — intended names concrete everywhere (`Resolved Resource`, Action App title, `Child Case` — never `<UNRESOLVED>`); identities per § Resources and Identities, unresolved only with a paired high review item; when a live contract is in memory: required inputs bound, extract fields exist verbatim, declared action-app fields ⊆ app schema.
|
|
@@ -172,7 +172,7 @@ Diagnose first; the two repairs are opposites.
|
|
|
172
172
|
| Entry is automatic from a decision, event, or SLA | The picker rule itself | Decision-routed |
|
|
173
173
|
| Nothing either way | Assume person-launched — re-keying on an unstated fact invents a business rule | Person-launched |
|
|
174
174
|
|
|
175
|
-
**Person-launched.** Give every eligible upstream primary stage a completing
|
|
175
|
+
**Person-launched.** Give every eligible upstream primary stage a completing exit row `| required-tasks-completed | — | wait-for-user | Yes |` (WHEN, IF, Exit Type, Marks Stage Complete — `wait-for-user` is the Exit Type, never a WHEN) ("any active case" means every primary stage). This REPLACES that stage's existing `required-tasks-completed | exit-only | Yes` row — never a second completion row, never a `Marks Stage Complete: No` row. Add no event, SLA, or decision trigger.
|
|
176
176
|
|
|
177
177
|
**Decision-routed.** All four edits, or the branch dual-fires or deadlocks:
|
|
178
178
|
|
package/version-manifest.json
CHANGED