@uipath/skills 1.207.0-preview.2325 → 1.207.0-preview.2339
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-bpmn/SKILL.md +1 -1
- package/skills/uipath-maestro-bpmn/references/bpmn-runtime.md +6 -0
- package/skills/uipath-maestro-bpmn/references/connectors.md +2 -0
- package/skills/uipath-maestro-case/SKILL.md +12 -3
- package/skills/uipath-maestro-case/references/case-runtime.md +106 -0
- package/skills/uipath-maestro-flow/references/CLI-LOOP.md +14 -1
- package/skills/uipath-maestro-flow/references/brownfield.md +12 -0
- package/skills/uipath-maestro-flow/references/connector-params.md +1 -1
- package/skills/uipath-maestro-flow/references/ixp.md +1 -1
- package/skills/uipath-maestro-flow/references/operate.md +1 -1
- package/skills/uipath-maestro-flow/references/patterns/voice-agents-guide.md +3 -1
- package/skills/uipath-maestro-flow/references/switch.md +3 -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.2339",
|
|
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"
|
|
@@ -190,7 +190,7 @@ Match one name — do not read either end to end — then read the span it gives
|
|
|
190
190
|
| Exclusive, inclusive, parallel, event-based | gateway methods | [GatewayOpts](#api-index) | `examples/NotifyChannel.bpmn.ts` |
|
|
191
191
|
| Decision, parallel split, or wait-for-first, written in place | `choose`, `fork`, `race`, `goto` | [ChooseArm](#api-index) | `examples/InvoiceEscalation.bpmn.ts` |
|
|
192
192
|
| Safety net for a whole scope | `eventSubProcess` | [Event sub-process scope](references/bpmn-runtime.md#events-and-timers) | `examples/InvoiceEscalation.bpmn.ts` |
|
|
193
|
-
| Script and assignment tasks | `scriptTask`, `task` | [Script tasks](references/bpmn-runtime.md#script-tasks) | `examples/ContractRegistry.bpmn.ts` |
|
|
193
|
+
| Script and assignment tasks (`scriptTask` computes: totals, counts, decisions; `task` only assigns) | `scriptTask`, `task` | [Script tasks](references/bpmn-runtime.md#script-tasks) | `examples/ContractRegistry.bpmn.ts` |
|
|
194
194
|
| HTTP requests | `http` | [HTTP](references/bpmn-runtime.md#http-and-orchestrator-work) | `examples/InvoiceEscalation.bpmn.ts` |
|
|
195
195
|
| Orchestrator jobs and queues | start/execute/queue methods | [Work dispatch](references/bpmn-runtime.md#http-and-orchestrator-work) | `examples/InvoiceApproval.bpmn.ts` |
|
|
196
196
|
| A deployed business rule | `businessRule` | [Work dispatch](references/bpmn-runtime.md#http-and-orchestrator-work) | — |
|
|
@@ -135,6 +135,10 @@ make from syntax alone. Exact signatures remain in the generated API.
|
|
|
135
135
|
|
|
136
136
|
## Script tasks
|
|
137
137
|
|
|
138
|
+
<!-- RULE:bpmn.script.compute-step -->
|
|
139
|
+
- A new step whose job is computation (totalling or counting over a collection, filtering, combining several values, deciding) is a `.scriptTask()`, in any pattern or composition outside a draft skeleton (bare `.task()` only there).
|
|
140
|
+
`.task()` with `set` assigns or copies values (a per-item append, a status flag, one simple expression). The designer shows a `set` task as an Assign step, so a computation hidden in it is not visible as a Script step. Leave existing `.task()`/`set` steps in an imported file as they are.
|
|
141
|
+
|
|
138
142
|
<!-- RULE:bpmn.script.result-response -->
|
|
139
143
|
- A script task (`scriptVersion` v3, what `.scriptTask()` writes) returns its value and the runtime wraps it as `result.response`.
|
|
140
144
|
Read it as `=result.response` for a scalar, or `=result.response.<field>` for one field of a returned object; never `=result.<field>`, which reads nothing.
|
|
@@ -294,6 +298,8 @@ make from syntax alone. Exact signatures remain in the generated API.
|
|
|
294
298
|
These builders take no `outputRows`, and only `.startAgenticProcess()` / `.startCaseProcess()` take `async`: an older SDK drops either silently, a newer one refuses it (`BPMN_UNKNOWN_OPTION`).
|
|
295
299
|
`outputVar` (default `<id>_processResponse`) holds the job envelope, not the arguments; do not read an argument out of it with a `=js:` chain.
|
|
296
300
|
The argument name is the workflow's own output argument, as the deployed process declares it; when no live run has shown it, say the mapping is unverified.
|
|
301
|
+
The source is an expression, not a key: a name that is not an identifier (`test-123`, a space, unicode) is read with brackets, `outputs: { test123: '=this["test-123"]' }`, which writes `source="=this["test-123"]"`.
|
|
302
|
+
The expression holds the name exactly as declared, with no escaping (a TypeScript string literal still needs its own escapes); an empty name or one containing `"` or `]` cannot be mapped, so report it as unsupported. A bare `=result.test-123` is subtraction: it stores a wrong number (`27` when `result.test` is `150`) or leaves the variable empty, with no error.
|
|
297
303
|
|
|
298
304
|
<!-- RULE:bpmn.http.manual -->
|
|
299
305
|
- A plain HTTP call with no connection is `.http(id, { url, method, parameters, headers, body })` with no `connection`.
|
|
@@ -104,6 +104,8 @@ uip maestro registry prepare uipath-atlassian-jira --action create-issue \
|
|
|
104
104
|
`--object`, `--resolve` and `-f NAME=VALUE` compose in a single invocation.
|
|
105
105
|
It discovers the connection itself (`--connection` or `--connection-folder` picks among several), writes `./.flow-sdk/bindings.json` under the names your source already uses, and writes the resolved schema and the recorded ids to `./.flow-sdk/connectors-local/` (its `--help` names `./bindings.json` and `./connectors-local/`, but it writes under `.flow-sdk/`).
|
|
106
106
|
|
|
107
|
+
When `--resolve` reports no matching record, the value is absent on that connection only. Re-run the same `prepare` with `--connection-id <ID>` (or `--connection-folder`) for each other Enabled connection (its error lists them; else `uip is connections list`), and treat the value as absent (ask the user, or `Assumed:` as above) only after every one misses. `prepare` scans every page. Never decide a value is absent from `uip is resources run list`: it returns one page, and `Data.Pagination.HasMore: true` means more records exist.
|
|
108
|
+
|
|
107
109
|
Then re-run `check` and compile from the directory you ran `prepare` in. `compile` reads `.flow-sdk/bindings.json` and both read `.flow-sdk/connectors-local/` under the current directory, not beside the source: from any other directory, `compile` writes a stand-in connection id, not the one `prepare` bound. When you must run from elsewhere, pass the paths explicitly:
|
|
108
110
|
|
|
109
111
|
```bash
|
|
@@ -42,12 +42,13 @@ 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`; 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` |
|
|
45
|
+
| Case, stages, and completion | `casePlan`, `identifier`, `stage`, `completeWhen`; the SDD row labelled exactly `Case Identifier` replaces the `.identifier` decompile seeded (`Type: constant` with `Prefix: X` is `.identifier('X')`, `Type: external` with `Source: <expr>` is `.identifier('<expr>', 'external')`; the `Case Identifier source` row is not an identifier); 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
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
|
-
| Entry, exit, and data gates | `rule`, `when` | [Rules](#api-index) | `examples/ClaimReviewSLA.case.ts` |
|
|
49
|
+
| Entry, exit, and data gates; a stage that exits to several stages | `rule`, `when`, `exitToStage` | [Rules](#api-index), [Stage routing](references/case-runtime.md#stage-routing) | `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
|
+
| A task that failed, or that a person ended: start a fallback task, or leave the stage for review | `rule('task-exited', { tasks, exitReasons?, errorCategories? })` on a task entry or a non-completing stage exit; `exitOnTaskFailure`, `taskExitRules` (SDK 6.125.0+ and `uip` 1.207.0+; an older SDK answers `UNKNOWN_RULE`) | [Task exit rules](references/case-runtime.md#task-exit-rules) | — |
|
|
51
52
|
| Published UiPath work | `process`, `agent`, `rpa`, `apiWorkflow`, `caseManagement`, `flowProcess`, `unresolved` | [TaskBuilder](#api-index) | `examples/ClaimReviewSLA.case.ts` |
|
|
52
53
|
| Business rules (decision tables) | `businessRule` (SDK 6.34.0+) | [TaskBuilder](#api-index) | `examples/CreditDecision.case.ts` |
|
|
53
54
|
| Deployed Coded Functions | `function` (SDK 6.47.1+) | [TaskBuilder](#api-index) | — |
|
|
@@ -62,7 +63,7 @@ three entry points; each file's header spells the paths its rows resolve against
|
|
|
62
63
|
| Deadlines and escalation | `sla`, `escalation`, `toUser`, `toGroup` | [SLA](references/case-runtime.md#sla-and-runtime-semantics) | `examples/ClaimReviewSLA.case.ts` |
|
|
63
64
|
| Case App and layout | `caseApp`, `layout` | [CaseBuilder](#api-index) | `examples/ClaimReviewSLA.case.ts` |
|
|
64
65
|
| Existing Case plans | `case decompile --no-pipeline`, then `compile -o <plan>` | [Brownfield](references/case-runtime.md#brownfield-editing) | `examples/ClaimReviewSLA.case.ts` |
|
|
65
|
-
| Task activation modes (parallel, parallel-after-predecessor, sequential) | `rule('runs-sequentially')`, `.task(name, fn, { lane })` | [Activation modes](references/case-runtime.md#activation-modes) | `examples/PermitIssuance.case.ts` |
|
|
66
|
+
| Task activation modes (parallel, parallel-after-predecessor, sequential) | `rule('runs-sequentially')`, `.task(name, fn, { lane })`; chain: [one `lane` per task](#minimal-shape) | [Activation modes](references/case-runtime.md#activation-modes) | `examples/PermitIssuance.case.ts` |
|
|
66
67
|
|
|
67
68
|
## Minimal shape
|
|
68
69
|
|
|
@@ -100,6 +101,14 @@ An array in one `entryWhen`, `exitWhen` or `completeWhen` call ANDs its rules; e
|
|
|
100
101
|
.entryWhen(rule('selected-stage-exited', { stage: 'Manager Approval', expression: '=js:vars.managerDecision === "Return"' })) // Entry Rule 2
|
|
101
102
|
```
|
|
102
103
|
|
|
104
|
+
`runs-sequentially` orders tasks only across lanes. For SDD tasks whose Entry Condition is `runs-sequentially`, pass `{ lane: N }` as the third argument of `.task()`, numbering each stage's sets 0, 1, 2… in SDD order with no gaps: one number per task of a chain. `runs-sequentially` tasks with the same `lane`, or with none (lane 0), start together: never give a chain one shared `lane`. Share a number only among siblings the SDD's Activation Mode marks `parallel-after-predecessor`; a `parallel` task (no `runs-sequentially`) takes none ([Activation modes](references/case-runtime.md#activation-modes)).
|
|
105
|
+
|
|
106
|
+
```ts
|
|
107
|
+
.task('Validate', t => t.process('validate').entryWhen(rule('runs-sequentially')), { lane: 0 })
|
|
108
|
+
.task('Enrich', t => t.process('enrich').entryWhen(rule('runs-sequentially')), { lane: 1 })
|
|
109
|
+
.task('Notify', t => t.process('notify').entryWhen(rule('runs-sequentially')), { lane: 2 })
|
|
110
|
+
```
|
|
111
|
+
|
|
103
112
|
## Validation loop
|
|
104
113
|
|
|
105
114
|
```bash
|
|
@@ -255,6 +255,43 @@ make from syntax alone. Exact signatures remain in the generated API.
|
|
|
255
255
|
- Whether a skipped task satisfies a completion rule is runtime behavior. For a
|
|
256
256
|
critical bypass, use a separate expression-gated exit or prove the path live.
|
|
257
257
|
|
|
258
|
+
## Stage routing
|
|
259
|
+
|
|
260
|
+
<!-- RULE:case.exit.branch-entry -->
|
|
261
|
+
- `exitToStage` on an `exit-only` exit does not route at run time: the
|
|
262
|
+
runtime drops the target and, when a stage completes or exits, enters every
|
|
263
|
+
stage whose entry holds. A destination enters on `selected-stage-completed`
|
|
264
|
+
when its exit marks the stage complete, and on `selected-stage-exited` when
|
|
265
|
+
it does not. Without an expression, either holds for every exit of its kind
|
|
266
|
+
out of that stage, so a stage that branches several ways opens every
|
|
267
|
+
destination at once. Gate each destination's entry so only its own branch
|
|
268
|
+
opens it:
|
|
269
|
+
|
|
270
|
+
```ts
|
|
271
|
+
.stage('Review', s => s
|
|
272
|
+
.entryWhen(rule('selected-stage-completed', { stage: 'Triage', expression: '=js:vars.route === "review"' })))
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
Copy each exit's expression when the exits' expressions exclude one
|
|
276
|
+
another; otherwise rewrite the gates until they do. A fallback exit with no
|
|
277
|
+
expression gates its destination on the negation of the others
|
|
278
|
+
(`=js:!(vars.amount > 1000)`). When the exits differ only by which task
|
|
279
|
+
completed, have every deciding task write one shared variable, each its own
|
|
280
|
+
value, and gate on that value. A variable only one task writes keeps its
|
|
281
|
+
value when the stage runs again, so that task's destination opens again on
|
|
282
|
+
a later pass. The SDK's `exitToStage` doc comments say the exit routes and
|
|
283
|
+
suggest a `selected-tasks-completed` stage entry; `validate` refuses that
|
|
284
|
+
rule in a stage entry (`CASE_MGMT_RULE_SLOT_MISMATCH`).
|
|
285
|
+
|
|
286
|
+
A `wait-for-user` exit's destination enters on `user-selected-stage`, since
|
|
287
|
+
a person picks the onward stage; this rule does not gate it.
|
|
288
|
+
|
|
289
|
+
With an SDD, each entry row's IF is that entry's gate, and
|
|
290
|
+
`validate --strict --sdd` refuses an expression on a row whose IF is blank
|
|
291
|
+
(`STRICT_SDD_CONDITION_EXPRESSION_UNDECLARED`). When the SDD leaves IF blank
|
|
292
|
+
on a destination this rule gates, send the SDD back through the planner to
|
|
293
|
+
add the IF before building that stage.
|
|
294
|
+
|
|
258
295
|
## Completion and optionality
|
|
259
296
|
|
|
260
297
|
<!-- RULE:case.exit.non-completing -->
|
|
@@ -310,6 +347,75 @@ make from syntax alone. Exact signatures remain in the generated API.
|
|
|
310
347
|
task gets the same explicit `lane`. Every `runs-sequentially` task needs an
|
|
311
348
|
explicit `lane`.
|
|
312
349
|
|
|
350
|
+
## Task exit rules
|
|
351
|
+
|
|
352
|
+
<!-- RULE:case.task-exit.semantics -->
|
|
353
|
+
- A `task-exited` rule reacts to a task of its own stage that ended without
|
|
354
|
+
completing: `failed` (the task failed on its own, after its retries) or
|
|
355
|
+
`userExited` (a person ended the running task through the exit API). A task
|
|
356
|
+
the case itself cancelled (an interrupting stage) is neither and fires no
|
|
357
|
+
rule. The rule fires once EVERY task it names has exited; for "any one of
|
|
358
|
+
them", write one rule per task. An exited task does not satisfy
|
|
359
|
+
`required-tasks-completed`: the stage stays open until a rule moves the case
|
|
360
|
+
on, or an operator re-runs the task.
|
|
361
|
+
|
|
362
|
+
<!-- RULE:case.task-exit.placement -->
|
|
363
|
+
- Put the rule on the entry of the task that should start (a manual fallback),
|
|
364
|
+
or on an exit of the failing task's stage with `{ marksStageComplete: false }`
|
|
365
|
+
and enter the next stage with `rule('selected-stage-exited', { stage })`.
|
|
366
|
+
Elsewhere the rule is written and never fires: at a stage entry, on an exit
|
|
367
|
+
that marks the stage complete (unless `type: 'wait-for-user'`), or at case
|
|
368
|
+
completion (`check`: `TASK_EXITED_PLACEMENT`;
|
|
369
|
+
`validate`: `CASE_MGMT_CASE_CONDITION_RULE_TASK_EXITED_NOT_HERE`; at a stage
|
|
370
|
+
entry `validate` also refuses it, `CASE_MGMT_RULE_SLOT_MISMATCH`). Name only
|
|
371
|
+
tasks of the rule's own stage (`TASK_EXITED_TASK_OUTSIDE_STAGE`), and never
|
|
372
|
+
the task whose entry holds the rule: that re-runs it after every failure
|
|
373
|
+
until the case guardrail stops the loop (`TASK_EXITED_SELF_RERUN`).
|
|
374
|
+
|
|
375
|
+
```ts
|
|
376
|
+
// --- stage 'Intake' ---
|
|
377
|
+
.exitWhen(rule('task-exited', { tasks: ['Fetch Policy'], exitReasons: ['failed'], errorCategories: ['Deployment'] }),
|
|
378
|
+
{ displayName: 'Fetch failed to deploy', marksStageComplete: false })
|
|
379
|
+
.task('Enter Policy By Hand', t => t.action({ title: 'Enter the policy' }).required(false)
|
|
380
|
+
.entryWhen(rule('task-exited', { tasks: ['Fetch Policy'] })))
|
|
381
|
+
// --- stage 'Review' ---
|
|
382
|
+
.entryWhen(rule('selected-stage-exited', { stage: 'Intake' }))
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
<!-- RULE:case.task-exit.filters -->
|
|
386
|
+
- `exitReasons` narrows the rule to `failed`, `userExited`, or both; omit it
|
|
387
|
+
for either. `errorCategories` (`User`, `System`, `Deployment`) applies only
|
|
388
|
+
to a failures-only rule (`exitReasons: ['failed']`): only a failure carries an
|
|
389
|
+
error, and the platform ignores the filter on any other rule
|
|
390
|
+
(`TASK_EXITED_FILTER_IGNORED`). Anything finer than the category, such as the
|
|
391
|
+
error code or message, is an `expression` over the task's error, not a
|
|
392
|
+
filter.
|
|
393
|
+
|
|
394
|
+
<!-- RULE:case.task-exit.flags -->
|
|
395
|
+
- A plan with a `task-exited` rule compiles with both case flags on,
|
|
396
|
+
`caseExecutionExitsOnTaskFailure` (a failing task exits and the case keeps
|
|
397
|
+
running instead of faulting) and `caseExecutionUsesTaskExitRules` (the rules
|
|
398
|
+
react to exits). Call `.exitOnTaskFailure()` on the `casePlan()` chain alone
|
|
399
|
+
for a case that wants the exit behaviour without a rule. Call
|
|
400
|
+
`.exitOnTaskFailure(false)` or `.taskExitRules(false)` only to keep the old
|
|
401
|
+
behaviour, which makes every `task-exited` rule a no-op
|
|
402
|
+
(`TASK_EXITED_IGNORED`). A decompiled plan carries the calls explicitly, so
|
|
403
|
+
keep them.
|
|
404
|
+
|
|
405
|
+
<!-- RULE:case.task-exit.cli -->
|
|
406
|
+
- The rule needs an SDK and a `uip` that both know it: SDK 6.125.0 or later
|
|
407
|
+
and `uip` 1.207.0 or later. An SDK without it answers `UNKNOWN_RULE`
|
|
408
|
+
(`Unknown rule "task-exited"`) at `check --source`.
|
|
409
|
+
A `uip` that knows it lists `task-exited` under `task-entry` and `stage-exit`
|
|
410
|
+
in `uip maestro case rule-types list --output json`; one that does not
|
|
411
|
+
rejects the rule at `validate` as an invalid discriminator.
|
|
412
|
+
Upgrade the one that is behind (the SDK with `npm install -g
|
|
413
|
+
@uipath/maestro-builder-sdk@latest`), then compile. If `uip` still does not
|
|
414
|
+
list `task-exited` after the upgrade, no `uip` on this machine supports the
|
|
415
|
+
rule yet: stop and tell the user. Do not author the rule, and never write a
|
|
416
|
+
different rule in its place. Never remove a rule the plan already has to
|
|
417
|
+
pass.
|
|
418
|
+
|
|
313
419
|
## Design fidelity
|
|
314
420
|
|
|
315
421
|
<!-- RULE:case.sdd.declared-shapes -->
|
|
@@ -112,13 +112,26 @@ Emit-only rules—mode selection by `package.json`, and `compile`/`check` behavi
|
|
|
112
112
|
|
|
113
113
|
The JSON envelope has top-level `Result`; successful validation also reports `Data.Status: "Valid"` and may contain `Data.Warnings`. Treat warnings as failures except the reviewed shared-connection advisory and `err()` read diagnostics in [`error-handling.md`](error-handling.md#reading-the-failure). Preserve an exception's exact code/text and rationale; do not broaden the allowlist.
|
|
114
114
|
|
|
115
|
+
`[UNRESOLVED_BINDING]`: the `.flow` lacks the `bindings[]` row a step's `<bindings.NAME>` placeholder needs, and Studio Web refuses to publish it. Re-emit once through the loop in use, then validate again:
|
|
116
|
+
|
|
117
|
+
- A new flow: `compile` its source.
|
|
118
|
+
- An existing `.flow`, connection placeholder: decompile it (`--no-pipeline`) and `merge` it back ([the safe project loop](brownfield.md#the-safe-project-loop)).
|
|
119
|
+
- An existing `.flow`, any other placeholder (queue, IxP): merge does not restore those rows; report the node and placeholder.
|
|
120
|
+
- [A supplied source](brownfield.md#a-supplied-source): rerun its merge. Do not decompile, even though the warning says to: decompile overwrites the supplied source.
|
|
121
|
+
|
|
122
|
+
Merge's warning that it writes a missing binding row is [that repair](brownfield.md#merge-warnings-what-the-round-trip-changed), not a failure. Validate reads only the `.flow`, so `bindings.json`, `bindings_v2.json` and solution resources cannot explain it.
|
|
123
|
+
|
|
124
|
+
A connection placeholder still there after the merge: update the SDK copy `uip` runs, `npm install --save-dev @uipath/maestro-builder-sdk@latest` when the workspace has `node_modules/@uipath/maestro-builder-sdk` (that copy runs first), else `npm install -g @uipath/maestro-builder-sdk@latest`, and merge once more. Any other placeholder, or still there: report the node and placeholder.
|
|
125
|
+
|
|
126
|
+
A warning with no fix in this skill gets one bounded experiment ([below](#bounded-completion)), then is reported as a failure with its code and node.
|
|
127
|
+
|
|
115
128
|
### Bounded completion
|
|
116
129
|
|
|
117
130
|
Match final evidence to the acceptance bar after the last edit:
|
|
118
131
|
|
|
119
132
|
- Validate-only: require `Data.Status: "Valid"` plus the required structural self-check, then stop; do not debug merely for confidence.
|
|
120
133
|
- For each distinct behavior claim named by the bar, plan at most one bounded debug with inputs/attachments that exercise it; combine compatible claims and do not repeat equivalent inputs.
|
|
121
|
-
- If one unknown blocks final wiring, run one bounded experiment distinguishing the choices, apply its answer, and return to final emit/validate. Do not create scratch-solution families.
|
|
134
|
+
- If one unknown blocks final wiring, run one bounded experiment distinguishing the choices, apply its answer, and return to final emit/validate. If it does not settle the choice, stop experimenting: ask, or headless, take the most defensible choice and list it under Open questions. Do not create scratch-solution families.
|
|
122
135
|
|
|
123
136
|
If evidence cannot be obtained within the bound, report the evidence boundary rather than repeating debug launches.
|
|
124
137
|
|
|
@@ -168,6 +168,16 @@ flow-merge: wrote bindings_v2.json (connection and agent resource rows, re-deriv
|
|
|
168
168
|
- In a Flow project, copy `bindings_v2.json` with the merged `.flow`; it contains re-derived connection and agent rows, so removed indexes or swapped connections are no longer declared.
|
|
169
169
|
- A stub connection label (`connection: "jira"`) resolves through edited-source `bindings.json`. Edit it to the connection id or fill `bindings.json`; merge writes the id and drops stub rows.
|
|
170
170
|
|
|
171
|
+
### Swapping a connection
|
|
172
|
+
|
|
173
|
+
A swap edits only the step's `connection:` and `folder:`:
|
|
174
|
+
|
|
175
|
+
1. `uip is connections list <CONNECTOR_KEY> --all-folders --output json`: take the requested connection's `Id` and `FolderKey`. A folder name or several matches: [where both values come from](bindings.md#where-both-values-come-from).
|
|
176
|
+
2. Decompile, set that step's `connection:` to the `Id` and `folder:` to the `FolderKey`, then check, merge and validate as in [the safe project loop](#the-safe-project-loop). Merge rewrites the step's `bindings[]` rows and `bindings_v2.json`.
|
|
177
|
+
3. An input holding an id looked up through the old connection (a Slack channel, a Jira issue type) may not exist behind the new one: re-run `uip maestro registry prepare <CONNECTOR_KEY> --action <ACTION> --connection-id <ID>`, picking each such value again by name (`--resolve <field>:name=<display name>`, [connector-params.md](connector-params.md#resolving-connection-scoped-reference-values)); the decompiled source holds only the old id.
|
|
178
|
+
|
|
179
|
+
No other step: do not read solution resource files or compile a scratch copy.
|
|
180
|
+
|
|
171
181
|
## Flows with draft nodes: let merge compile
|
|
172
182
|
|
|
173
183
|
A canvas flow may contain draft nodes: connector without connection, empty required input, generic operation without object, `waitForEvent` without connection, Transform without collection, or decision without condition. A draft trigger or connector tool still must be finished. Decompile carries each saved definition and marks `{ draft: true }`; compile warns `⚠ [CONNECTOR_INPUT_MISSING] ... Written as a draft`. Leave drafts unless requested. Examples: decision becomes `.branch("decision1", undefined, (t) => ..., (e) => ..., { draft: true })`; Transform becomes `transform({ operations: [] })` with `{ draft: true }`. `waitForEvent`, Transform, and decision drafts require SDK 6.86.5+; older SDKs refuse with `BINDING_MISSING`, `TRANSFORM_COLLECTION_LITERAL`, or `EXPR_SYNTAX`.
|
|
@@ -254,6 +264,8 @@ flow-merge: warning: the merged edge route1@case-case_1 -> review1@input leaves
|
|
|
254
264
|
writing. A warning about a merged edge's handle means `validate` will refuse
|
|
255
265
|
the merged file.
|
|
256
266
|
|
|
267
|
+
`node "<id>" spells <bindings.NAME> but the original has no binding row for it, … merge writes the row …` is a repair, not a failure: the original lacked a row Studio Web needs to publish. Keep it; `validate` is the check.
|
|
268
|
+
|
|
257
269
|
`the round trip appends End "<id>" after …` is benign: compile caps a path that simply stops and does not change behavior. A `.openTails()` flow gets it only after a human task; see [A path without an End stays open](#a-path-without-an-end-stays-open).
|
|
258
270
|
|
|
259
271
|
`agent "<id>" carries its prompts, model and settings on the node (embedded) …` means configuration is in `.flow`, not `<source>/agent.json`; merge keeps it embedded and applies node edits (input, output, label).
|
|
@@ -130,7 +130,7 @@ connector('uipath-microsoft-azureactivedirectory', 'list-groups',
|
|
|
130
130
|
The artifact must contain both runtime `inputs.detail.queryParameters.where` and design-time `configuration.essentialConfiguration.savedFilterTrees.where`. Studio Web renders the FilterBuilder from the tree; product
|
|
131
131
|
validation rejects a literal filter that has only one of the two, so a
|
|
132
132
|
hand-written literal without its tree fails `validate` even though the run
|
|
133
|
-
would have worked (a runtime `tmpl` filter is exempt; see below). If the task asks for the filter tree as a separate
|
|
133
|
+
would have worked (a runtime `tmpl` filter is exempt; see below). If the task asks for the filter, or its tree, as a separate file, compile first and copy `configuration.essentialConfiguration.savedFilterTrees.<parameter>` verbatim, directly or under a named top-level property, never an ad hoc `{ field, operator, value }` object or only the CEQL string; retain numeric `groupOperator` and `filters`.
|
|
134
134
|
|
|
135
135
|
Supported operators: `=` `!=` `<` `<=` `>` `>=`, `Contains`, `Starts With`, `Ends With`, `Like`, their `Not` forms, and `Is Null` / `Is Not Null`; combine with `AND` or `OR`, and parenthesise to nest — `(a = 1 OR b = 2) AND c = 'x'`. Mixing `AND` and `OR` at one level is refused.
|
|
136
136
|
|
|
@@ -62,7 +62,7 @@ uip maestro flow registry get '<node-type>' \
|
|
|
62
62
|
|
|
63
63
|
Scalar results are `ExtractionResult.ResultsDocument.Fields[]`; table results are `ExtractionResult.ResultsDocument.Tables[]`. In both, `FieldName` identifies the model field and `Values` carries extracted values.
|
|
64
64
|
|
|
65
|
-
If no suitable published extractor exists: for a runtime or published-model requirement, report the missing capability and ask whether to build one with `uipath-ixp`; for a validate-only topology showing where extraction belongs, put `mock()` in the extraction position, complete and validate the surrounding flow, and report the placeholder as the capability gap. Do not block validate-only topology on unavailable extractors or downstream endpoints when placeholders preserve the requested graph. `pageRange` is a product string; `1-5` is illustrative because no local grammar is published.
|
|
65
|
+
If no suitable published extractor exists: for a runtime or published-model requirement, report the missing capability and ask whether to build one with `uipath-ixp`; headless, with no one to ask, invoke `uipath-ixp` yourself, and use the Extract document node only when the request names it; for a validate-only topology showing where extraction belongs, put `mock()` in the extraction position, complete and validate the surrounding flow, and report the placeholder as the capability gap. Do not block validate-only topology on unavailable extractors or downstream endpoints when placeholders preserve the requested graph. `pageRange` is a product string; `1-5` is illustrative because no local grammar is published.
|
|
66
66
|
|
|
67
67
|
## File input from a connector event
|
|
68
68
|
|
|
@@ -102,7 +102,7 @@ Then run `uip solution publish`—see the `uipath-solution` skill. `uip maestro
|
|
|
102
102
|
UIP_LOG_LEVEL=info uip maestro flow debug <project-dir> --output json
|
|
103
103
|
```
|
|
104
104
|
|
|
105
|
-
Pass the PROJECT directory containing `project.uiproj`. `flow debug` executes the flow for real; it is not validation (`validate` is). If the user can answer and did not request a run, ask once before the first run, even when the request is for a flow that works; that yes covers the fix-and-re-run loop on the flow the user asked to get working this turn. With nobody to ask, run it when the request is for a flow that works, unless a connection was guessed ([bindings.md](bindings.md#where-both-values-come-from)); otherwise report the flow as unverified rather than letting a passing `validate` stand as the result. Debug overwrites the Studio Web solution whose `SolutionId` matches local `.uipx
|
|
105
|
+
Pass the PROJECT directory containing `project.uiproj`. `flow debug` executes the flow for real; it is not validation (`validate` is). If the user can answer and did not request a run, ask once before the first run, even when the request is for a flow that works; that yes covers the fix-and-re-run loop on the flow the user asked to get working this turn. With nobody to ask, run it when the request is for a flow that works, unless a connection was guessed ([bindings.md](bindings.md#where-both-values-come-from)); otherwise report the flow as unverified rather than letting a passing `validate` stand as the result. Debug overwrites the Studio Web solution whose `SolutionId` matches local `.uipx`. A request to run or debug the flow covers that overwrite; when you ask before the first run on a solution not scaffolded this turn, the question names it. Headless, never debug a solution not scaffolded this turn.
|
|
106
106
|
|
|
107
107
|
Operational constraints:
|
|
108
108
|
|
|
@@ -50,7 +50,9 @@ caller said is lost if they hang up before the agent ends the session.
|
|
|
50
50
|
session, not the call, with `reason` set to a route name. `routeCall`, a switch
|
|
51
51
|
on `$vars.triageAgent.output.uipath__voice_session.reason`, sends each route to
|
|
52
52
|
its specialist voice agent and `default` to a general agent. Every specialist
|
|
53
|
-
reads the same `callContext` and converges on one `endCall
|
|
53
|
+
reads the same `callContext` and converges on one `endCall`: add
|
|
54
|
+
`.step('hangUp', endCall({ callContext }))` once, after `.switch(...)`, and no
|
|
55
|
+
`endCall` inside a case. Change a route name
|
|
54
56
|
in the triage prompt and the switch together. The canvas version places the call
|
|
55
57
|
with `createOutgoingCall`; for an incoming call, start with `voiceTrigger()` and
|
|
56
58
|
bind every `callContext` to the trigger.
|
|
@@ -15,7 +15,9 @@ a case may use `when: Expr` instead of `value` (below).
|
|
|
15
15
|
|
|
16
16
|
Prefer Switch when one discriminant selects three or more paths; Branch is
|
|
17
17
|
usually clearer for two. Decide whether cases end independently or rejoin a
|
|
18
|
-
shared successor.
|
|
18
|
+
shared successor. Cases that do not `.return()` rejoin the step after
|
|
19
|
+
`.switch(...)`: put a shared last step there once (one `endCall`, one log),
|
|
20
|
+
not a copy inside every case.
|
|
19
21
|
|
|
20
22
|
Cases are tried top to bottom; a `value` case compares strictly (`===`) with
|
|
21
23
|
`on`. Each case gets a generated `case-<id>` port; the optional final callback
|
package/version-manifest.json
CHANGED