@uipath/skills 1.207.0-preview.2043 → 1.207.0-preview.2083
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-ixp/SKILL.md +1 -1
- package/skills/uipath-maestro-bpmn/SKILL.md +4 -4
- package/skills/uipath-maestro-bpmn/references/bpmn-runtime.md +2 -2
- package/skills/uipath-maestro-bpmn/references/connectors.md +3 -1
- package/skills/uipath-maestro-bpmn/references/draft-skeleton.md +7 -4
- package/skills/uipath-maestro-bpmn/references/final-report-template.md +3 -2
- package/skills/uipath-maestro-bpmn/references/gate-reply-template.md +7 -3
- package/skills/uipath-maestro-case/SKILL.md +1 -1
- package/skills/uipath-maestro-case/examples/CreditDecision.case.ts +1 -1
- package/skills/uipath-maestro-case/references/case-runtime.md +22 -2
- package/skills/uipath-maestro-flow/references/connector-params.md +3 -3
- package/skills/uipath-maestro-flow/references/script.md +2 -0
- 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.2083",
|
|
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"
|
|
@@ -58,7 +58,7 @@ Do not answer these from this skill. Re-activate `uipath-maestro-flow` and follo
|
|
|
58
58
|
18. **Confirm against the version you reviewed — pass `--model-version`.** Confirming triggers a retrain, so predictions can drift between your `get-predictions` read and your `confirm`. Pass the read's `ModelVersion` as `confirm -m <N>`; if a retrain changed the version since, the confirm is rejected (`PredictionVersionChangedError`) rather than stamping values you never reviewed as ground truth. On that error, re-read `get-predictions`, re-review, and confirm against the new version. Confirming on a user-supplied review (Rule 14) is no exemption: pin the `ModelVersion` the user names, or run one `get-predictions` to capture it — a read for the version alone is not a re-review.
|
|
59
59
|
19. **`DeploymentName` ≠ `DeploymentTitle`, and `create` never repoints.** `deployments create --title` sets a free-form `DeploymentTitle`; the name the **runtime** resolves is `DeploymentName`, which is the slugged title plus a per-deployment suffix (`invoices` → `invoices-08963f00-ixp`) and which **cannot be predicted** — read it off the create response or `deployments list`, never construct it. `create` only ever ADDS: repointing an existing deployment to another version is `deployments upgrade <project-name> <deployment-name>`, which takes `DeploymentName` (passing a title there is a `404`). Run `deployments list` before every `upgrade`. Upgrading changes which model version **every runtime caller of that folder and name** gets — confirm intent before touching a shared folder. See [CLI Reference § Deployments](references/cli-reference.md#deployments).
|
|
60
60
|
20. **`get-metrics` defaults to LATEST, not LIVE — always name the version you report.** A project keeps accumulating trained versions long after its live one was pinned, and the latest can score *worse* than what's deployed — so a bare `get-metrics` pairs the latest version's numbers with the live version identity you read from `list-models`. Resolve the version FIRST, from what the user is asking — **how is it performing / production**: the live version (`list-models` → `Tags[]` Name=`live`, else highest `Models[]` `Pinned: true`, else latest); **baseline for improving instructions**: the LATEST trained version, because that is the model your edits retrain ([Improve Prompts Guide § 1a](references/improve-prompts-guide.md#1a-get-baseline-metrics)) — then pass it as `get-metrics --model-version <N>`, and state which version the scores belong to.
|
|
61
|
-
21. **Compare metrics fields on `FieldId`, report them by `Name`.** `Fields[]` carries `FieldGroup`, `FieldId` and `Name`, so no taxonomy read is needed — do NOT fetch one. Display names are unique only within a group, so when two fields share a `Name`,
|
|
61
|
+
21. **Compare metrics fields on `FieldId`, report them by `Name`.** `Fields[]` carries `FieldGroup`, `FieldId` and `Name`, so no taxonomy read is needed — do NOT fetch one. Display names are unique only within a group, so when two fields share a `Name`, name each as `<FieldGroup> / <Name>` everywhere you name it: in replies, tables, and `name` values in files you write, even when the requested schema asks only for the field's name. `Name` is that version's name for the field, so two versions can return different names for the same field — join versions on `FieldId`, never on `Name`, and report the current version's name. See [CLI Reference § `get-metrics`](references/cli-reference.md#projects).
|
|
62
62
|
22. **Never switch projects without being asked. Always work on the project you were instructed to work with.** Resolve its `Name` once, keep it for the session, and pass it in every command — `Title`s get renamed, `Name`s don't (Rule 7). If you were not asked to, do not modify or continue the task on another project, however similar it looks to yours. Reading another project to diagnose is fine; moving the task to it needs the user's explicit go-ahead. If you can't ask, report the blocker and stop. Never report another project's results as this task's.
|
|
63
63
|
23. **Never change a taxonomy by importing one** — the import merges by name, so it cannot rename or remove anything, and it overwrites a same-name entry's instructions. Use `projects import-taxonomy` only to give a project that has no taxonomy the same one as another. Change an existing taxonomy with `groups`/`fields`/`data-types` and `projects update-prompt`; `groups delete` + `groups add` is not a replace either. If no targeted command covers the request, report that and route in-product ([Unsupported Capabilities](#unsupported-capabilities)) — never substitute an import, even when asked for one directly. Full mechanics: [CLI Reference § `import-taxonomy`](references/cli-reference.md#projects).
|
|
64
64
|
|
|
@@ -24,7 +24,7 @@ need, then let TypeScript and `bpmn check` provide the detailed contract.
|
|
|
24
24
|
After a `merge` into an existing process, run `refresh` and `validate` only; run `format` only when `refresh` or `validate` reports `BPMN_PARSE_ERROR` with `No diagrams found`, `MISSING_DI_SHAPE` or `MISSING_DI_EDGE`, because it lays out the whole diagram again and drops the user's pools, lanes, colors and placement; after that `format`, run `refresh` and `validate` again and, unless the report was `No diagrams found`, tell the user the canvas layout was reset ([Brownfield](references/bpmn-runtime.md#brownfield-editing)).
|
|
25
25
|
6. A different target system (Document Understanding → agent, Outlook → Gmail) changes a node's type and binding, not the graph; reshape only when the process differs.
|
|
26
26
|
7. You author the process; you never take part in it. Where a step reasons, classifies or extracts at run time, place and bind the node that does it (a UiPath agent, Document Understanding, a business rule); never do that work while authoring or hardcode its result. A bare "agent" in a request means a UiPath agent, never you.
|
|
27
|
-
8.
|
|
27
|
+
8. Build a design you are given (an approved SDD, a BPMN diagram, an image) 1:1: every item a node, every connector a flow, each rule on the element the design names for it, each stated default kept (a value the design calls unknown until assessed stays unknown, never `false` or available). Never merge, drop or collapse its nodes on your own, for example into one script task; ask first. A gap in the design is a question for the user, never a step you invent; add only what it needs to compile or validate (start and end events, a join). A retry loop the design draws becomes the activity's `retry` option (rule 9). In a draft, ask at the gate and name each addition in its reply; in a build, name each on the final report's `Assumed:` line. When the request says nobody will answer, take the most literal reading of the design and name each choice the same way. An image needs a confirmed inventory first: read [Authoring from an image](references/image-transcription-guide.md).
|
|
28
28
|
9. Retry a failing activity with its `retry` option ([Retry](references/bpmn-runtime.md#events-and-timers)), never a drawn loop of gateways, timers or `.goto()`.
|
|
29
29
|
10. Pick an Orchestrator node by the target's `ProcessType`, never by its label ([Orchestrator work](references/bpmn-runtime.md#http-and-orchestrator-work)).
|
|
30
30
|
11. A process returns only what its end event maps: compute into a `.var()` and map it onto each `.output()` in the `BPMN.Variables` payload of every end event that finishes the process (root scope, not a sub-process body); a task that writes an `.output()` directly returns `null` to the caller, and every check passes ([Process contract](references/bpmn-runtime.md#variables-and-the-process-contract)).
|
|
@@ -148,8 +148,8 @@ A discovery-only request (discover types or save registry evidence, no authoring
|
|
|
148
148
|
No `.bpmn` other than the target goes in the workspace: no intermediate copy, probe or second scaffold.
|
|
149
149
|
When the project sits in a solution this run did not create, check its Studio Web copy before editing, so an upload never overwrites edits made there ([Operate](references/operate.md#check-the-cloud-copy-before-editing)).
|
|
150
150
|
9. **End every build with the final report.**
|
|
151
|
-
A plain request to build or edit a process (`(auto mode)`) and *Build it* after a [draft gate](#draft-first) (`(draft mode)`) both end the turn with **[`references/final-report-template.md`](references/final-report-template.md)
|
|
152
|
-
|
|
151
|
+
A plain request to build or edit a process (`(auto mode)`) and *Build it* after a [draft gate](#draft-first) (`(draft mode)`) both end the turn with **[`references/final-report-template.md`](references/final-report-template.md)**, also when validation fails only because tenant resources are missing: read it in full once `validate` passes or fails only that way, before any upload or other closing tool call.
|
|
152
|
+
Resume only: when the turn carries no new user instruction and only continues after an interruption that came after the report or a gate reply was written, resend that message unchanged and whole and do nothing else. Any new user message (*Build it*, *Change it: …*, a question) is a normal turn.
|
|
153
153
|
|
|
154
154
|
## Draft first
|
|
155
155
|
|
|
@@ -177,7 +177,7 @@ Match one name — do not read either end to end — then read the span it gives
|
|
|
177
177
|
|---|---|---|---|
|
|
178
178
|
| Show the shape before building it (sketch it, show me first, plan mode) | bare `task`, `choose` | [Draft first](references/draft-skeleton.md) | — |
|
|
179
179
|
| Discover types or save registry evidence only, no authoring | `registry` pull, list, search, get | [Discovery only](references/bpmn-runtime.md#registry-extension-types) | — |
|
|
180
|
-
| Build or draft from
|
|
180
|
+
| Build or draft from a given design: approved SDD, BPMN diagram, sketch, whiteboard photo, diagram screenshot | built 1:1 | [Critical Rule 8](#critical-rules); an image: [Authoring from an image](references/image-transcription-guide.md) | — |
|
|
181
181
|
| Process and nested scopes | `bpmn`, `subProcess` | [Builders](#api-index) | `examples/NotifyChannel.bpmn.ts` |
|
|
182
182
|
| Variables, inputs, and outputs | `vars`, `var`, `input`, `output`, `schemas`, `schema` | [Process contract](references/bpmn-runtime.md#variables-and-the-process-contract) | `examples/NotifyChannel.bpmn.ts` |
|
|
183
183
|
| A node's own output | the node's `outputRows` — **not** a `.var()` beside it | [Process contract](references/bpmn-runtime.md#variables-and-the-process-contract) | `examples/InvoiceApproval.bpmn.ts` |
|
|
@@ -50,7 +50,7 @@ make from syntax alone. Exact signatures remain in the generated API.
|
|
|
50
50
|
|
|
51
51
|
<!-- RULE:bpmn.expression.js-for-methods -->
|
|
52
52
|
- A plain `=` expression is evaluated C#-style, not as JavaScript: comparisons, arithmetic and
|
|
53
|
-
`vars.x` reads work, a JS method call does not. `=vars.d.toLowerCase() == "approve"` passes
|
|
53
|
+
`vars.x` reads work, a JS method call does not, and a JS property such as `.length` reads back `null` with no incident (use `.Count`). `=vars.d.toLowerCase() == "approve"` passes
|
|
54
54
|
validate, then faults the run (incident `400302`); in a gateway `when` it evaluates `false` and the
|
|
55
55
|
run takes the wrong branch. Prefix any expression that calls a JavaScript
|
|
56
56
|
method (`toLowerCase`, `includes`, `concat`, `map`, `JSON.parse`) with `=js:`; .NET methods
|
|
@@ -277,7 +277,7 @@ make from syntax alone. Exact signatures remain in the generated API.
|
|
|
277
277
|
<!-- RULE:bpmn.http.connector -->
|
|
278
278
|
- An endpoint the connector catalog has no activity for, called through an existing connection, is
|
|
279
279
|
`.http(id, { method, url, connection, folder, connectorKey })`.
|
|
280
|
-
- `url` is relative to the connection's base URL (`uip is connections base-url <CONNECTION_ID> --output json`)
|
|
280
|
+
- `url` is the vendor API's own endpoint, relative to the connection's base URL (`uip is connections base-url <CONNECTION_ID> --output json`), such as Slack's `/team.info` under `https://slack.com/api`. Never use an Integration Service resource `Path` from `uip is resources list` or `describe`, which belongs to `.connector()`: the request reaches the vendor as written, so an Integration Service path that differs from the vendor's returns the vendor's 404 (`[102021] Received failure from vendor system`). An absolute URL to another host gets 400 "Invalid request URL" (`check`: `MANAGED_HTTP_ABSOLUTE_URL`).
|
|
281
281
|
- `connectorKey` is the connection's connector key from `uip is connections list --all-folders --output json`; omit it only for a `uipath-uipath-http` connection. A wrong or missing one passes `check` and fails `validate` with `MISSING_BINDING`.
|
|
282
282
|
- `connection` and `folder` name `.binding()`s holding the connection's `Id` and its `FolderKey` (or what `prepare` wrote); `folder` is required (`EMPTY_REQUIRED_FIELD folderKey`).
|
|
283
283
|
- `outputVar` (`<id>_response`) is the body; `<id>_code`, `<id>_headers` and `<id>_Error` hold the rest.
|
|
@@ -43,6 +43,8 @@ The **action** is `nodeType`'s last segment — `create-issue` — not the label
|
|
|
43
43
|
`markdownPath` is that operation's field reference: read it rather than guessing input names.
|
|
44
44
|
|
|
45
45
|
`"total": 0` is a real miss, and means either `http()` or a connector the catalog searched does not carry (see §4).
|
|
46
|
+
A connector-mode `http()`'s `url` is the vendor's endpoint, never an Integration Service resource `Path`: [HTTP and Orchestrator work](bpmn-runtime.md#http-and-orchestrator-work).
|
|
47
|
+
When several Integration Service resources match an `http()` request, describe each and pick the one that does what the user asked.
|
|
46
48
|
With no library pulled the search answers from the tenant's live catalog through `uip` (`"source": "tenant"`), and its rows carry no `markdownPath`: read the page with `uip maestro registry describe <nodeType>`, which fetches it.
|
|
47
49
|
A failed search gives `uip`'s reason; fix what it names: log in again for a session problem, or run the upgrade it names for an old SDK.
|
|
48
50
|
|
|
@@ -65,7 +67,7 @@ A failed search gives `uip`'s reason; fix what it names: log in again for a sess
|
|
|
65
67
|
- OneDrive and SharePoint file and folder fields (`referenceID`, `parentFolderId`) are picker lookups: `lookup('uipath-microsoft-onedrive', '<ACTION>', 'referenceID').by('FullName', '<ITEM_PATH>')`, then `uip maestro registry prepare uipath-microsoft-onedrive --action <ACTION> --resolve referenceID:FullName=<ITEM_PATH>`. Never paste an item id.
|
|
66
68
|
- Outlook `send-email`: `message.toRecipients`, `ccRecipients` and `bccRecipients` are ONE comma-separated string, never an array (`CONNECTOR_INPUT … expected string, got object`). Always set `saveAsDraft`: `false` to send, `true` to draft. The definition's default (`true`) is not compiled into the task, and the response (`status: "success"`) does not say which happened.
|
|
67
69
|
- An `=`-expression is left alone; a plain string is checked against the field's declared type.
|
|
68
|
-
- The response lands in `outputVar` (default `<id>_response`) and the failure in `errorVar` (default `<id>_Error`); `outputs: { poCount: { source: '=response.
|
|
70
|
+
- The response lands in `outputVar` (default `<id>_response`) and the failure in `errorVar` (default `<id>_Error`); `outputs: { poCount: { source: '=response.Count', name: 'POCount', type: 'integer' } }` adds a mapped output row per extra variable, each declared by the task like the two standard ones. These are what a decompiled import's `.connector()` calls carry, so an edit keeps the variables the process already reads. `.Count` counts an array, and on an object silently returns its field count: a list operation's runtime response is the bare array, even where `uip is resources run` prints `{ items, Pagination }`.
|
|
69
71
|
|
|
70
72
|
Authoring never waits on discovery beyond §1.
|
|
71
73
|
Write the node from the task's own words and let `check` tell you what is missing.
|
|
@@ -52,12 +52,14 @@ A skeleton is not a working process and must never be reported as one.
|
|
|
52
52
|
When several kinds could fit, pick the one a Studio Web user would most likely choose; the user changes it at the gate if they disagree.
|
|
53
53
|
6. **Label each decision arm** with the outcome it carries (`label: 'Approved'`), so the routing reads off the picture.
|
|
54
54
|
`fork` branches take no label: every branch runs.
|
|
55
|
-
7. **Declare the variables the decisions read, for real**, with `.var()`.
|
|
55
|
+
7. **Declare the variables the decisions read, for real**, with `.var()`, or `.input()` for a value the process is given at start.
|
|
56
56
|
The basis a gateway routes on is part of what the user approves: three arms out of a diamond with no stated basis could mean anything.
|
|
57
57
|
A skeleton reads a variable but cannot assign it, because the assignment lives in the payload of the node that produces it.
|
|
58
58
|
Name the producer in the box upstream instead: `Classify ticket [Agent] → category`.
|
|
59
|
+
What the process is given when it starts (an order's weight, a flag) is a process input, declared with `.input(<id>, '<type>')`: never draw a box whose only job is to receive, read or capture it, since the steps that use it read `vars.<id>`.
|
|
60
|
+
Data a person supplies after the process has started is a real step: draw its box (`[Action app]`).
|
|
59
61
|
8. **Mark a step that runs once per item on its own box.**
|
|
60
|
-
When the request says a step runs for each item ("for every line item", "notify each supplier"), pass `loop: { collection, itemVar }` on that `.task()`, and declare the collection with `.var(<id>, 'array')`.
|
|
62
|
+
When the request says a step runs for each item ("for every line item", "notify each supplier"), pass `loop: { collection, itemVar }` on that `.task()`, and declare the collection with `.var(<id>, 'array')` (`.input(<id>, 'array')` when the process is given it at start).
|
|
61
63
|
Add `sequential: true` when the items go one after another, and leave it out when they run all at once or the request does not say.
|
|
62
64
|
When the step stops early ("stop at the first failed document"), add `completion: '=vars.<flag>'` and declare that boolean flag too.
|
|
63
65
|
Do not hand-roll a loop from a gateway and a `.goto()` for a per-item step, and do not leave the marker to *Build it*: it is structure, and the user is approving it.
|
|
@@ -212,7 +214,7 @@ A box whose kind runs a deployed resource cannot be built without one: every kin
|
|
|
212
214
|
When this run already found no `uip login` (the upload failed for it), skip the lookup and mark each such box `not checked`.
|
|
213
215
|
Otherwise run every lookup in **one** Bash call.
|
|
214
216
|
The lookups only read the tenant, so a request that forbids uploading or running anything does not forbid them.
|
|
215
|
-
It is the turn's last tool call: read [gate-reply-template.md](gate-reply-template.md) and send any progress note
|
|
217
|
+
It is the turn's last tool call: before it, read [gate-reply-template.md](gate-reply-template.md), search the target for each box's `id="<id>"` as its [End the turn](gate-reply-template.md#end-the-turn) says, and send any progress note; when it returns, send the gate reply as your next and final message, starting with its first line.
|
|
216
218
|
|
|
217
219
|
- **Processes and queues:** `uip solution resources list --kind <Process|Queue> --search "<term>" --output json`.
|
|
218
220
|
It lists what the solution already holds (`Source: Local`) and what the tenant has (`Source: Remote`).
|
|
@@ -270,6 +272,7 @@ Before you edit it again, download the cloud copy and compare it, as [Check the
|
|
|
270
272
|
In a sequence scope, deleting a `.task()` line removes the box and rewires its neighbours; read `check --graph` after the edit.
|
|
271
273
|
- **Build it**: replace each `.task()` with the typed method its label names, keeping its id, and author the real payloads as the rest of this skill describes — registry calls, bindings and connections included.
|
|
272
274
|
Bind each box that needs a resource to the resource the gate named, by its name and folder (a connector box through its connection binding, as [Connectors and bindings](bpmn-runtime.md#connectors-and-bindings) says), and ask nothing more about structure or resources.
|
|
275
|
+
A value the request leaves open, such as a rate, a threshold or a formula, is not a question either: *Build it* hands it to you, so pick a plausible one, build with it, and name it under `Assumed`; an identifier or URL part is never invented.
|
|
273
276
|
When this turn's source was decompiled from the current target (the user's canvas copy), or an earlier `merge` wrote the target, finish through `merge` as for any existing process. Only a skeleton that reached the target through `compile` alone is compiled and formatted again as the loop does: its source carries the `init` stub's decompile stamp, so `merge` refuses it (`MERGE_ORIGINAL_CHANGED`).
|
|
274
277
|
An Action app box becomes an inline-form `.humanTask`, as [Human task outcomes](bpmn-runtime.md#human-task-outcomes) says, never `.humanTask(id, { app })`.
|
|
275
278
|
When the user named an Action App, say under `Assumed` that the task is an inline form, not their app, and that Studio Web can switch it to the app.
|
|
@@ -277,7 +280,7 @@ Before you edit it again, download the cloud copy and compare it, as [Check the
|
|
|
277
280
|
An unanswered which-of-two takes the first resource named, reported under `Assumed`.
|
|
278
281
|
A `not checked` box is looked up now, with the commands of [Find the resources](#find-the-resources).
|
|
279
282
|
A real start trigger, a renamed start event or a new entry point now needs `uip maestro bpmn refresh` before `validate`, as [SKILL.md](../SKILL.md#workflow) step 7 says.
|
|
280
|
-
End the turn with the [final report](final-report-template.md); its first line says `(draft mode)`, because this run stopped at a gate.
|
|
283
|
+
End the turn with the [final report](final-report-template.md), read as [SKILL.md](../SKILL.md#workflow) step 9 says; its first line says `(draft mode)`, because this run stopped at a gate.
|
|
281
284
|
- **Keep it**: stop, and report the file as an outline, not a working process.
|
|
282
285
|
|
|
283
286
|
Only *Build it* authorizes the build.
|
|
@@ -20,7 +20,7 @@ Reply in this shape, dropping lines that do not apply:
|
|
|
20
20
|
|
|
21
21
|
```text
|
|
22
22
|
<Name>: built, validated<, uploaded><, run> (<draft|auto> mode). <One sentence when this file calls for it, or when you kept the user's Studio Web edits.>
|
|
23
|
-
<the Studio Web link (Data.DesignerUrl) on its own line when the upload returned one, else the local <Project>/<Name>.bpmn path as plain text, never a link>
|
|
23
|
+
<the Studio Web link (Data.DesignerUrl) on its own line when the upload returned one, else the local <Project>/<Name>.bpmn path as plain text, never a link or in backticks>
|
|
24
24
|
|
|
25
25
|
- <what changed, one line each, at most 5 lines in all>
|
|
26
26
|
|
|
@@ -39,12 +39,13 @@ Drop `Needs:` when nothing is missing.
|
|
|
39
39
|
|
|
40
40
|
The path line belongs to this final message.
|
|
41
41
|
A Studio Web link shown earlier in the turn, before a tool call, does not count: write it again here, on its own line.
|
|
42
|
-
When the path line is the local path, write the plain path, such as
|
|
42
|
+
When the path line is the local path, write the plain path, such as InvoiceIntake/InvoiceIntake.bpmn, not a Markdown link with the file name as its text and not in backticks.
|
|
43
43
|
|
|
44
44
|
Write every line in the user's words: say what each step now does.
|
|
45
45
|
No element type ids (`Orchestrator.StartAgentJob`), connector keys, object or operation names, payload, binding or placeholder terms, and no file names other than the path line.
|
|
46
46
|
|
|
47
47
|
This reply is your whole final message, and its first characters are the process name: write no status sentence or introduction before the `<Name>:` line.
|
|
48
|
+
When a turn carries no new user instruction and only resumes after an interruption that came after you wrote this report, send that report again, unchanged and whole, as this turn's final message; any new user message is a normal turn.
|
|
48
49
|
Send nothing beyond these lines: no extra sections, headings, tables, numbered lists, questions or suggested next steps.
|
|
49
50
|
**Write at most five change lines. A sixth line is a defect, not a judgment call.**
|
|
50
51
|
Count the `-` change lines before you send: when there are more than five, merge related steps into one line each, and fold anything else the user must act on into `Needs`, `Assumed` or `Unverified`.
|
|
@@ -6,7 +6,7 @@ Reply in this shape and keep every line; only the first line's second sentence i
|
|
|
6
6
|
|
|
7
7
|
```text
|
|
8
8
|
<Name>: outline ready<, uploaded> (draft mode). <One sentence if the upload or a lookup failed, the upload to an existing solution waits for the user's go-ahead, you kept the user's Studio Web edits, or you put the project in a new solution because the request named none, or the new solution took another name because its default was taken.>
|
|
9
|
-
<the Studio Web link (Data.DesignerUrl) on its own line when it uploaded, else the local <Project>/<Name>.bpmn path as plain text, never a link>
|
|
9
|
+
<the Studio Web link (Data.DesignerUrl) on its own line when it uploaded, else the local <Project>/<Name>.bpmn path as plain text, never a link or in backticks>
|
|
10
10
|
|
|
11
11
|
- <box label exactly as its .task() name spells it>: <resource and folder | which of two | none yet, create it or name one | not checked | no resource needed>
|
|
12
12
|
|
|
@@ -29,13 +29,13 @@ A progress note belongs in a message before your last tool call; the message aft
|
|
|
29
29
|
|
|
30
30
|
## The path line
|
|
31
31
|
|
|
32
|
-
When the path line is the local path, write the plain path, such as
|
|
32
|
+
When the path line is the local path, write the plain path, such as InvoiceIntake/InvoiceIntake.bpmn, never a Markdown link, whatever its text, and never in backticks.
|
|
33
33
|
|
|
34
34
|
## The box lines
|
|
35
35
|
|
|
36
36
|
List every task box, in order, including a box that needs no resource, and nothing else: not the start event, a timer, a gateway or the end event.
|
|
37
37
|
A box line is the box's label exactly as its `.task()` name spells it, `→ variable` suffix included, and never a branch condition, an arm label or a route: `- Manager review [Action app]`, not `- Manager review [Action app] (amount 1000 or more)`.
|
|
38
|
-
After the label, write `: ` and exactly one status: the resource's name with its folder, the two candidates
|
|
38
|
+
After the label, write `: ` and exactly one status: the resource's name with its folder, the two candidates ending in `which one?` (`<A> in <folder> or <B> in <folder>, which one?`, leaving out ` in <folder>` for a row with no folder name), or one of the fixed phrases `none yet, create it or name one`, `not checked` and `no resource needed`, word for word.
|
|
39
39
|
Give each box one short clause: no element type ids, no build-time plans, and no alternatives for the kind.
|
|
40
40
|
Write `not checked` only for a box whose lookup ran and failed, or when this run found no `uip login`; a box you have not looked up is not a reply line yet, so run its lookup first.
|
|
41
41
|
When a lookup failed, say why once, in the first line's one sentence, not on the box lines.
|
|
@@ -52,7 +52,11 @@ Before you send it, compare the message with the template line by line and delet
|
|
|
52
52
|
|
|
53
53
|
## End the turn
|
|
54
54
|
|
|
55
|
+
Send this reply only when, in this turn or the interrupted turn it resumes, `validate` reported `Status: Valid` on the target `.bpmn` and the target contains `id="<id>"` for every box's `.task()` id, on whatever element the user may have retyped it to; `merge`'s counts cannot show this.
|
|
56
|
+
On a *Change it* round, also check that each changed box's `name` attribute, decoded (`compile` writes `&` as `&`), equals its new `.task()` name.
|
|
57
|
+
When a box is missing, run the [Steps](draft-skeleton.md#steps) loop into the target once more (upload again when this turn uploaded) and search again; when one is still missing, send no gate reply and tell the user in one sentence that the outline did not reach the process file.
|
|
55
58
|
Send this reply as your final message and end the turn.
|
|
59
|
+
When a turn carries no new user instruction and only resumes after an interruption that came after you wrote this reply, send that reply again, unchanged and whole, as this turn's final message; any new user message is a normal turn.
|
|
56
60
|
Ask the gate question in the message, not with a pick-list or question tool: a pending question keeps the turn open, and Studio Web locks the canvas while a turn runs, so the user could not review the shape they are asked to approve.
|
|
57
61
|
The user answers in their next message, with a number, an option name, or the change they want.
|
|
58
62
|
Never leave the outline only in your reasoning: a user who sees only the question cannot judge the shape.
|
|
@@ -43,7 +43,7 @@ three entry points; each file's header spells the paths its rows resolve against
|
|
|
43
43
|
| Surface | Builder/API | Reference | Example |
|
|
44
44
|
|---|---|---|---|
|
|
45
45
|
| Case, stages, and completion | `casePlan`, `stage`, `completeWhen` | [CaseBuilder](#api-index) | `examples/ClaimReviewSLA.case.ts` |
|
|
46
|
-
| Variables and arguments | `var`, `input`, `output`, `jsonSchema` | [CaseBuilder](#api-index) | `examples/IntakeBinding.case.ts` |
|
|
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; 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` |
|
|
@@ -170,8 +170,10 @@ make from syntax alone. Exact signatures remain in the generated API.
|
|
|
170
170
|
`escalationId: "any"` wildcard, makes the rule at-risk; one to an
|
|
171
171
|
`sla-breached` escalation is Breached. The wildcard is valid and fires on
|
|
172
172
|
every at-risk escalation of that SLA (in SDK source,
|
|
173
|
-
`escalation: ANY_ESCALATION`).
|
|
174
|
-
|
|
173
|
+
`escalation: ANY_ESCALATION`). In `caseplan.json` do not write `"any"` by
|
|
174
|
+
hand; in `.case.ts` use `ANY_ESCALATION` only when the requirement means
|
|
175
|
+
every at-risk escalation. When the SDD names one escalation, name it.
|
|
176
|
+
Repair an existing rule by the requirement's status, never
|
|
175
177
|
by what the plan already carries: a breach response drops the reference and
|
|
176
178
|
leaves a plain breach rule on the SLA; repointing it at an at-risk escalation
|
|
177
179
|
keeps it at-risk, which fires at a different time. Only an at-risk response
|
|
@@ -275,6 +277,24 @@ make from syntax alone. Exact signatures remain in the generated API.
|
|
|
275
277
|
expression), keep the SDD's casing and null-guard it:
|
|
276
278
|
`vars.analysisResult?.unusualClauses`.
|
|
277
279
|
|
|
280
|
+
## Metadata fidelity
|
|
281
|
+
|
|
282
|
+
<!-- RULE:case.metadata.intsvc-activity-config -->
|
|
283
|
+
- A new case carries `metadata.intsvcActivityConfig: "v2"`. `case init` writes
|
|
284
|
+
it on a new case; `decompile` → `compile` preserves whatever the plan's
|
|
285
|
+
metadata carried. Never add `"v2"` to a decompiled plan that lacks
|
|
286
|
+
it — a V1 plan must stay V1. Tasks that call Integration Service use V2 I/O
|
|
287
|
+
negotiation when the marker is present.
|
|
288
|
+
|
|
289
|
+
<!-- RULE:case.variable.closed-types -->
|
|
290
|
+
- Case variable `type` values are a closed set: `string`, `integer`, `float`,
|
|
291
|
+
`double`, `boolean`, `datetime`, `date`, `time`, `object`, `file`, `array`,
|
|
292
|
+
`jsonSchema`. These apply to `variables.inputs`, `variables.outputs`, and
|
|
293
|
+
`variables.inputOutputs`. Do not use `number` (that is a Flow SDK type, not
|
|
294
|
+
a Case type); use `integer` for whole numbers, `float` or `double` for
|
|
295
|
+
decimals. `case validate` warns `number` (`CASE_MGMT_VARIABLE_TYPE_ALIAS`);
|
|
296
|
+
write `double`.
|
|
297
|
+
|
|
278
298
|
## Brownfield editing
|
|
279
299
|
|
|
280
300
|
<!-- RULE:case.brownfield.pipeline -->
|
|
@@ -100,11 +100,11 @@ Older environments expose bare `prepare-connector` with identical arguments exce
|
|
|
100
100
|
Use the library action id and object option directly:
|
|
101
101
|
|
|
102
102
|
```ts
|
|
103
|
-
.step('users', connector('uipath-servicenow-servicenow', 'list-
|
|
103
|
+
.step('users', connector('uipath-servicenow-servicenow', 'list-records',
|
|
104
104
|
{}, { connection: 'sn', folder: 'shared', object: 'acr_user' }))
|
|
105
105
|
```
|
|
106
106
|
|
|
107
|
-
This generic form needs no live resolution and compiles from the baked library. `registry prepare` is for curated schema-dynamic operations; for a generic operation use it only when a needed field is genuinely missing (a generic list usually has none, so preparing resolves nothing).
|
|
107
|
+
This generic form needs no live resolution and compiles from the baked library. `registry prepare` is for curated schema-dynamic operations; for a generic operation use it only when a needed field is genuinely missing (a generic list usually has none, so preparing resolves nothing). The library and the registry use the same id, `list-records`. Older libraries called it `list-all-records`; against the current library that id is `CONNECTOR_NOT_IN_LIBRARY`. ServiceNow's `list-records` is one object-less entry, so `object: 'acr_user'` is accepted with a warning and the tenant resolves it at dispatch; a connector with static objects (Coupa) has one `list-records` entry per object.
|
|
108
108
|
|
|
109
109
|
### Finding the object id for a Generic operation
|
|
110
110
|
|
|
@@ -210,7 +210,7 @@ uip maestro registry prepare <connector-key> --action <action> \
|
|
|
210
210
|
|
|
211
211
|
Prepare separately reports service rejection and accepted values that resolve only to parents. Values are parent-scoped (Jira `Task` is `10620` in `IN`, `10005` in `AP`): never copy ids between projects, connections, or tasks; resolve against the connection bound by the flow. Standard `summary` and `description` are portable; custom fields such as `fields.storyPointEstimate_Customfield10016` may not be.
|
|
212
212
|
|
|
213
|
-
Use the generated descriptor import and `connector(...)` call; it carries connection-resolved operation/object identity even when action ids differ. `connectors-local/` is authoring input; emitted Flow is self-contained. Prefer curated operations
|
|
213
|
+
Use the generated descriptor import and `connector(...)` call; it carries connection-resolved operation/object identity even when action ids differ. `connectors-local/` is authoring input; emitted Flow is self-contained. Prefer curated operations. For a raw call the curated surface lacks, use the managed HTTP node (`core.action.http.v2`) with the connector's connection and `targetConnector: '<connector-key>'` ([http.md](http.md)); the library has no per-connector `*-http-request` operation.
|
|
214
214
|
|
|
215
215
|
Preparation needs a live connection. For explicitly offline/validate-only evidence without connection-specific fields, use the baked descriptor and published static inputs; do not invent fields or use placeholder discovery. If the published list is empty, pass `{}`; offline evidence then proves operation identity/control-flow routing, not provider payload/dispatch.
|
|
216
216
|
|
|
@@ -80,3 +80,5 @@ A script has modern syntax (`?.`, `??`, arrow functions), built-in objects, `con
|
|
|
80
80
|
The engine declares `console`, `uipath`, `aggregate`, `_aggregate`, and `_pipe` with `const` before the body. Do not declare any at top level with `const`, `let`, `var`, `function`, or `class`, or assign to it: the run fails with `Identifier '…' has already been declared` or `Assignment to constant variable.` A `let`, `const`, `function`, or `class` in a nested block/function, and a `var` inside a nested function, is your own. A `var` in a plain block hoists and fails; assigning one of these names anywhere also fails unless your own declaration is in scope.
|
|
81
81
|
|
|
82
82
|
`flow validate` types scripts against ES2020 and warns `EXPRESSION_DIAGNOSTIC` for later members such as `replaceAll`, although the run executes them. Use `replace` with a global regular expression (`s.replace(/-/g, '+')`). It also warns `EXPRESSION_DIAGNOSTIC Cannot find name 'randomUUID'` and `Cannot find name 'crypto'` because its library does not declare them (`btoa` and `atob` are known). The `randomUUID` and `crypto` warnings are expected: the flow remains `Valid`, the run provides the names, and the script should remain unchanged.
|
|
83
|
+
|
|
84
|
+
The Studio Web canvas also type-checks each script body as TypeScript and marks a type error red, although the run executes the body as JavaScript. The common case is an object built up after an empty literal: `const t = {}; t.field = 1` is marked `Property 'field' does not exist on type '{}'`. `flow validate` reports it as the warning `EXPRESSION_DIAGNOSTIC`, and `flow check` as the warning `SCRIPT_TYPE_DIAGNOSTIC` (an SDK that includes builder-sdk#2100; an older `check` reports nothing). Build the object in one literal (`const t = { field: 1 }`), or add fields with a spread (`t = { ...t, field: 1 }` on a `let`). A type annotation does not help: in a `script({ code })` string, `const t: any = {}` fails the run; in a function, compile erases it, so the canvas still sees `const t = {}`.
|
package/version-manifest.json
CHANGED