@uipath/skills 1.207.0-preview.2016 → 1.207.0-preview.2036
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/references/diagnose.md +9 -8
- package/skills/uipath-maestro-bpmn/references/operate.md +6 -3
- package/skills/uipath-maestro-bpmn/references/patterns/high-volume-batch-guide.md +1 -1
- package/skills/uipath-maestro-case/SKILL.md +1 -0
- package/skills/uipath-maestro-case/examples/DocumentExtractionCase.case.ts +41 -0
- package/skills/uipath-maestro-case/references/case-runtime.md +32 -0
- package/skills/uipath-maestro-flow/SKILL.md +8 -9
- package/skills/uipath-maestro-flow/examples/SeedPacketReader.flow.ts +5 -11
- package/skills/uipath-maestro-flow/references/author.md +2 -2
- package/skills/uipath-maestro-flow/references/brownfield.md +14 -3
- package/skills/uipath-maestro-flow/references/connector-params.md +6 -4
- package/skills/uipath-maestro-flow/references/document-pipeline.md +42 -29
- package/skills/uipath-maestro-flow/references/external-agent.md +15 -12
- package/skills/uipath-maestro-flow/references/extract-document-node.md +2 -2
- package/skills/uipath-maestro-flow/references/extract-document-taxonomy.md +1 -1
- package/skills/uipath-maestro-flow/references/patterns/composing-guide.md +5 -1
- package/skills/uipath-maestro-flow/references/transform.md +6 -0
- package/skills/uipath-maestro-flow/references/voice.md +5 -0
- package/skills/uipath-planner/references/design/case-data-and-time-guide.md +1 -1
- package/skills/uipath-planner/references/design/case-product-guide.md +1 -1
- package/skills/uipath-planner/references/design/sdd-writing-guide.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.2036",
|
|
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"
|
|
@@ -50,8 +50,9 @@ uip maestro bpmn job status <JOB_KEY> --folder-key <FOLDER_KEY> --output json
|
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
For a **debug** run, the `instanceId` the debug command returned is the handle,
|
|
53
|
-
and the `debug-
|
|
54
|
-
|
|
53
|
+
and the `debug-instances` commands read it (see below;
|
|
54
|
+
[`uip` version note](operate.md#debug--a-controlled-studio-web-run)). Keep
|
|
55
|
+
deployed-instance reads and debug-session reads separate.
|
|
55
56
|
|
|
56
57
|
## Step 2 — read incidents
|
|
57
58
|
|
|
@@ -141,9 +142,9 @@ with the commands below. The debug command's own output lists each
|
|
|
141
142
|
element's status, never a variable's value.
|
|
142
143
|
|
|
143
144
|
```bash
|
|
144
|
-
uip maestro bpmn debug-
|
|
145
|
-
uip maestro bpmn debug-
|
|
146
|
-
uip maestro bpmn debug-
|
|
145
|
+
uip maestro bpmn debug-instances incidents <INSTANCE_ID> --output json
|
|
146
|
+
uip maestro bpmn debug-instances variables <INSTANCE_ID> --output json
|
|
147
|
+
uip maestro bpmn debug-instances variables-all <INSTANCE_ID> --output json
|
|
147
148
|
```
|
|
148
149
|
|
|
149
150
|
## The diagnosis
|
|
@@ -263,9 +264,9 @@ uip maestro bpmn processes incidents <PROCESS_DEFINITION_KEY> --folder-key <FOLD
|
|
|
263
264
|
```
|
|
264
265
|
|
|
265
266
|
```bash
|
|
266
|
-
uip maestro bpmn debug-
|
|
267
|
-
uip maestro bpmn debug-
|
|
268
|
-
uip maestro bpmn debug-
|
|
267
|
+
uip maestro bpmn debug-instances incidents <INSTANCE_ID> --output json
|
|
268
|
+
uip maestro bpmn debug-instances variables <INSTANCE_ID> --output json
|
|
269
|
+
uip maestro bpmn debug-instances variables-all <INSTANCE_ID> --output json
|
|
269
270
|
```
|
|
270
271
|
|
|
271
272
|
Lifecycle commands are deliberately absent from this list; they are in
|
|
@@ -204,11 +204,14 @@ end event's `Outputs` in that response, not by `Globals`: a value set in
|
|
|
204
204
|
`Globals` that the end event does not map reaches the caller as `null`.
|
|
205
205
|
|
|
206
206
|
```bash
|
|
207
|
-
uip maestro bpmn debug-
|
|
208
|
-
uip maestro bpmn debug-
|
|
209
|
-
uip maestro bpmn debug-
|
|
207
|
+
uip maestro bpmn debug-instances variables-all <INSTANCE_ID> --output json
|
|
208
|
+
uip maestro bpmn debug-instances variables <INSTANCE_ID> --output json
|
|
209
|
+
uip maestro bpmn debug-instances incidents <INSTANCE_ID> --output json
|
|
210
210
|
```
|
|
211
211
|
|
|
212
|
+
`debug-instances` needs `uip` 1.206 or later; on older versions the group is
|
|
213
|
+
`debug-instance`.
|
|
214
|
+
|
|
212
215
|
Never use `debug` as validation. `check`, `validate` and the local engine
|
|
213
216
|
(`flow-debug`, which runs the compiled `.bpmn` on this machine with every
|
|
214
217
|
service mocked) are the offline checks; `debug` executes against real services.
|
|
@@ -73,7 +73,7 @@ A looped task outside any looped sub-process carries no `inputElement` on the ca
|
|
|
73
73
|
Any other `itemVar` (`'invoice'`) is the outer key, and the inner key stays `item`: `iterator["invoice"]["item"]`, while `iterator[0]` and `iterator["invoice"]["invoice"]` read `null`.
|
|
74
74
|
A script does not see `iterator`: its scope holds only the `args` envelope, and the engine builds a script's `iterator` only from `iterator[N]` keys in it.
|
|
75
75
|
To read the item in a script, pass it in with `inputs: { 'iterator[0]': '=iterator[0]' }`, which is what the designer writes, and read `iterator[0].item`; `validate` still warns that `iterator` is undefined, a false positive once the key is there.
|
|
76
|
-
A wrong iterator read fails nothing: it yields `null` (or `"undefined"` after `String()`), every check passes and the run completes. Prove a loop by reading the per-item results with `debug-
|
|
76
|
+
A wrong iterator read fails nothing: it yields `null` (or `"undefined"` after `String()`), every check passes and the run completes. Prove a loop by reading the per-item results with `debug-instances variables-all` after a Maestro debug run; local `flow-debug` reads loops differently ([offline checks](../operate.md#debug--a-controlled-studio-web-run)).
|
|
77
77
|
The body is its own sequence scope: give it its own `.flowMode('sequence')`, start event and end event.
|
|
78
78
|
|
|
79
79
|
| Node | Builder | Role |
|
|
@@ -51,6 +51,7 @@ three entry points; each file's header spells the paths its rows resolve against
|
|
|
51
51
|
| Published UiPath work | `process`, `agent`, `rpa`, `apiWorkflow`, `caseManagement`, `flowProcess`, `unresolved` | [TaskBuilder](#api-index) | `examples/ClaimReviewSLA.case.ts` |
|
|
52
52
|
| Business rules (decision tables) | `businessRule` (SDK 6.34.0+) | [TaskBuilder](#api-index) | `examples/CreditDecision.case.ts` |
|
|
53
53
|
| Deployed Coded Functions | `function` (SDK 6.47.1+) | [TaskBuilder](#api-index) | — |
|
|
54
|
+
| Document extraction | `documentExtraction(model, { deployment, folderKey, folder, deploymentKey, file, pageRange? })` (SDK 6.82.0+, uip 1.206.0+) | [Document extraction](references/case-runtime.md#document-extraction) | `examples/DocumentExtractionCase.case.ts` |
|
|
54
55
|
| Script tasks | `script(fn \| body)` (SDK 6.81.0+) | [Script tasks](references/case-runtime.md#script-tasks) | `examples/ScriptCase.case.ts` |
|
|
55
56
|
| Resolving SDD resources against the tenant | `uip maestro case registry pull`, `uip maestro case sdd resolve` | [Registry resolution](references/registry-resolution.md) | — |
|
|
56
57
|
| Human work and its Action App | `action`; `app: { name, folder }` (SDK 6.46.4+) names the app (`actionCatalogName` is a task catalog, not the app) | [Human tasks](references/case-runtime.md#human-and-on-demand-work) | `examples/NotifyOnApproval.case.ts` |
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A Case document-extraction task: an invoice file case variable run through
|
|
3
|
+
* an IXP deployment, its extraction mapped to the `extracted` variable.
|
|
4
|
+
* `=result` is the whole extraction, `{ ExtractionResult, Taxonomy }`; read
|
|
5
|
+
* the fields from `extracted.ExtractionResult`.
|
|
6
|
+
*
|
|
7
|
+
* The deployment's values are stand-ins, not a tenant's. Read real ones from
|
|
8
|
+
* `uip ixp deployments list <project-name> --output json`, given the IXP
|
|
9
|
+
* project's Name (model, deployment, folderKey), and from the row of `uip
|
|
10
|
+
* solution resources list --kind IxpDeployment --source remote --output json`
|
|
11
|
+
* whose Name is the deployment and whose FolderKey matches (deploymentKey,
|
|
12
|
+
* folder).
|
|
13
|
+
*/
|
|
14
|
+
import { casePlan, rule } from '@uipath/maestro-builder-sdk/case';
|
|
15
|
+
|
|
16
|
+
export default casePlan('DocumentExtractionCase')
|
|
17
|
+
.name('DocumentExtractionCase')
|
|
18
|
+
.identifier('DXC')
|
|
19
|
+
.var('invoice', 'file')
|
|
20
|
+
.var('extracted', 'object', '{}')
|
|
21
|
+
.stage('Read', (s) =>
|
|
22
|
+
s
|
|
23
|
+
.required()
|
|
24
|
+
.entryWhen(rule('case-entered'))
|
|
25
|
+
.exitWhen(rule('required-tasks-completed'), { marksStageComplete: true })
|
|
26
|
+
.task('Extract', (t) =>
|
|
27
|
+
t
|
|
28
|
+
.documentExtraction('invoice-model-0a1b2c3d-ixp', {
|
|
29
|
+
deployment: 'Invoice Model',
|
|
30
|
+
folderKey: 'bbbbbbbb-2222-4222-8222-bbbbbbbbbbbb',
|
|
31
|
+
folder: 'Shared',
|
|
32
|
+
deploymentKey: 'aaaaaaaa-1111-4111-8111-aaaaaaaaaaaa',
|
|
33
|
+
file: '=vars.invoice',
|
|
34
|
+
})
|
|
35
|
+
.outputs({ extracted: '=result' })
|
|
36
|
+
.required()
|
|
37
|
+
.entryWhen(rule('current-stage-entered')),
|
|
38
|
+
),
|
|
39
|
+
)
|
|
40
|
+
.completeWhen(rule('required-stages-completed'))
|
|
41
|
+
.build();
|
|
@@ -85,6 +85,38 @@ make from syntax alone. Exact signatures remain in the generated API.
|
|
|
85
85
|
- Outputs are the fixed four: `code`, `headers`, `body`, `Error`.
|
|
86
86
|
`.outputs({ v: '=response.body' })` maps one to a case variable.
|
|
87
87
|
|
|
88
|
+
## Document extraction
|
|
89
|
+
|
|
90
|
+
<!-- RULE:case.docextraction.discovery -->
|
|
91
|
+
- Discovery: `uip ixp projects list --output json` first. Pass the project's
|
|
92
|
+
**`Name`** (not `Title`) to `uip ixp deployments list <Name> --output json`.
|
|
93
|
+
That listing gives model (`DeploymentName`), deployment (`DeploymentTitle`),
|
|
94
|
+
and `folderKey`. For `deploymentKey` and `folder`: run
|
|
95
|
+
`uip solution resources list --kind IxpDeployment --source remote
|
|
96
|
+
--output json` and take the row whose `Name` equals `DeploymentTitle` and
|
|
97
|
+
whose `FolderKey` matches — its `Key` is `deploymentKey`, its `Folder` is
|
|
98
|
+
`folder`. Ask the user if no match. `sdd resolve` does not resolve them.
|
|
99
|
+
After discovery, add the deployment to the solution:
|
|
100
|
+
`uip solution resources add --source remote --kind IxpDeployment
|
|
101
|
+
--name "<DeploymentTitle>" --folder-key "<FOLDER_KEY>" --output json`
|
|
102
|
+
Then refresh:
|
|
103
|
+
`uip solution resources refresh --solution-folder <SOLUTION_DIR> --output json`
|
|
104
|
+
|
|
105
|
+
<!-- RULE:case.docextraction.check -->
|
|
106
|
+
- Compile refuses a missing `deploymentKey`; `check` reports blank model,
|
|
107
|
+
deployment, folder, folderKey, and file individually.
|
|
108
|
+
|
|
109
|
+
<!-- RULE:case.docextraction.legacy -->
|
|
110
|
+
- Decompile emits `.savedDocumentExtraction()` for the older flat format.
|
|
111
|
+
It is read-only: no `.outputs()`, no deployment edit. `check` warns
|
|
112
|
+
`DOCUMENT_EXTRACTION_OLDER_SHAPE`.
|
|
113
|
+
|
|
114
|
+
<!-- RULE:case.docextraction.floor -->
|
|
115
|
+
- `uip maestro case validate` needs uip 1.206.0+ for document-extraction
|
|
116
|
+
tasks. Older versions reject with `CASE_MGMT_BINDING_PAIR_INCOMPLETE`.
|
|
117
|
+
On an older `uip`, report the floor requirement and stop. Do not rewrite
|
|
118
|
+
bindings or strip the extraction task to silence the error.
|
|
119
|
+
|
|
88
120
|
## Connections and external work
|
|
89
121
|
|
|
90
122
|
<!-- RULE:case.connector.bindings -->
|
|
@@ -16,11 +16,10 @@ UiPath Flow uses `@uipath/maestro-builder-sdk` to build type-safe graphs compile
|
|
|
16
16
|
2. Before writing a node, read its `Reference` in [Supported node types](#supported-node-types), including signature, example, and hazards.
|
|
17
17
|
3. Choose every node from a registry search, never a brand name.
|
|
18
18
|
4. Ask when the request leaves a finite decision open, including an input value, range, or combination no stated rule covers; never fold it into a stated value. When the request says no one will answer (headless, CI), use the most defensible stated value and list it under Open questions as **[REQUIRED]**.
|
|
19
|
-
5.
|
|
20
|
-
6.
|
|
21
|
-
7.
|
|
22
|
-
8.
|
|
23
|
-
9. Run the final pass with the workspace's selected [Lifecycle](#lifecycle) loop after the last edit.
|
|
19
|
+
5. Handle an error only when the request specifies what should happen.
|
|
20
|
+
6. Never re-run `flow debug` to inspect a failed run.
|
|
21
|
+
7. Simulate every side-effecting component before an eval set; never `solution upload` in an eval workflow without asking.
|
|
22
|
+
8. Run the final pass with the workspace's selected [Lifecycle](#lifecycle) loop after the last edit.
|
|
24
23
|
|
|
25
24
|
## Project layout
|
|
26
25
|
|
|
@@ -38,7 +37,7 @@ uip solution init "<Solution>"
|
|
|
38
37
|
# edit <Solution>/<Name>/.flow-sdk/<Name>.flow.ts, then run the Lifecycle loop below
|
|
39
38
|
```
|
|
40
39
|
|
|
41
|
-
Do not hand-write the skeleton. `--sdk-source` decompiles the trigger-only artifact into `.flow-sdk/<Name>.flow.ts`, creates the folder, and preserves the product-assigned flow id/name; a hand-written `flow('<name>')` invents an id. The first `compile -o` overwrites the stub. `init` answering "already exists and is not empty. Use --force to overwrite" means it exists: never pass `--force`; edit it.
|
|
40
|
+
Do not hand-write the skeleton. `--sdk-source` decompiles the trigger-only artifact into `.flow-sdk/<Name>.flow.ts`, creates the folder, and preserves the product-assigned flow id/name; a hand-written `flow('<name>')` invents an id. The first `compile -o` overwrites the stub. `init` answering "already exists and is not empty. Use --force to overwrite" means it exists: never pass `--force`; edit it. An Extract document node is `dynamicExtract()` ([`references/document-pipeline.md`](references/document-pipeline.md)); it needs SDK 6.118.0 or later, else use the CLI.
|
|
42
41
|
|
|
43
42
|
When the request names **Maestro Automate** as the product, run `( cd "<Solution>" && uip maestro flow init <Name> --automate --sdk-source )`; bare "automate invoice intake" means a plain Flow. Nothing after `init` changes: it writes `runtimeOptions.profile` to `operate.json` and a `.maestro_automate` marker; `compile -o` rewrites only `.flow`, so both survive.
|
|
44
43
|
|
|
@@ -172,11 +171,11 @@ This table is authoritative; read each node's `Reference` before writing it ([Cr
|
|
|
172
171
|
| API workflow | `uipath.core.api-workflow.<key>` | `apiWorkflow(...)` | [api-workflow.md](references/api-workflow.md) | `examples/BirdCountLookup.flow.ts` |
|
|
173
172
|
| Agentic process | `uipath.core.agentic-process.<key>` | `agenticProcess(...)` | [agentic-process.md](references/agentic-process.md) | `examples/NeighborhoodWalkPlanner.flow.ts` |
|
|
174
173
|
| Agent resource | `uipath.core.agent.<key>` | `agent(...)` | [agent.md](references/agent.md) | `examples/PlantNameAdvisor.flow.ts` |
|
|
175
|
-
| External agent or automation | `uipath.connector.<key>.<operation>` | `connector(...)
|
|
174
|
+
| External agent or automation | `uipath.connector.<key>.<operation>` | `connector(...)`; `registry prepare` first when absent from library | [external-agent.md](references/external-agent.md) | — |
|
|
176
175
|
| Inline agent | `uipath.agent.autonomous` | `inlineAgent(...)` | [inline-agent.md](references/inline-agent.md) | `examples/PostcardCaption.flow.ts` |
|
|
177
176
|
| IxP extraction | `uipath.ixp.<project>.<version>-<folder>` | `ixpExtract(...)` | [ixp.md](references/ixp.md) | `examples/ArchiveCardExtract.flow.ts` |
|
|
178
177
|
| Document classify | `uipath.document.classify` | `documentClassify(...)` | [document-pipeline.md](references/document-pipeline.md) | `examples/SeedPacketReader.flow.ts` |
|
|
179
|
-
| Extract document | `uipath.ixp.extract-document-builder` |
|
|
178
|
+
| Extract document | `uipath.ixp.extract-document-builder` | `dynamicExtract(...)` | [document-pipeline.md](references/document-pipeline.md), [extract-document-node.md](references/extract-document-node.md) | `examples/SeedPacketReader.flow.ts` |
|
|
180
179
|
| Published function | `uipath.core.function.<key>` | `publishedFunction(...)` | [published-function.md](references/published-function.md) | `examples/TideTableConverter.flow.ts` |
|
|
181
180
|
| Conversation message wait | `uipath.conversational.wait-for-message` | `waitForMessage(...)` | [conversational.md](references/conversational.md) | `examples/LibraryDeskChat.flow.ts` |
|
|
182
181
|
| Conversational agent | `uipath.agent.conversational` | `conversationalAgent(...)` | [conversational.md](references/conversational.md) | `examples/LibraryDeskChat.flow.ts` |
|
|
@@ -187,7 +186,7 @@ This table is authoritative; read each node's `Reference` before writing it ([Cr
|
|
|
187
186
|
|
|
188
187
|
## Authoring a flow
|
|
189
188
|
|
|
190
|
-
[Critical Rules](#critical-rules) govern node choice, open decisions,
|
|
189
|
+
[Critical Rules](#critical-rules) govern node choice, open decisions, and errors; details are in **[`references/author.md`](references/author.md)**. A requested canvas arrangement uses `.layout()` with `at()`/`dim()`: [`references/operate.md`](references/operate.md#lay-out-from-source-instead-layout-at-dim).
|
|
191
190
|
|
|
192
191
|
## Operating a deployed flow
|
|
193
192
|
|
|
@@ -6,12 +6,10 @@
|
|
|
6
6
|
* node) extracts against the taxonomy it carries instead of a published IxP
|
|
7
7
|
* project's trained fields.
|
|
8
8
|
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* the factory emits `schema` verbatim and nothing mints them. The default route
|
|
14
|
-
* is the CLI (references/extract-document-node.md), which needs neither.
|
|
9
|
+
* It takes no `model` argument: compile gives the step its IDP processor, named after the
|
|
10
|
+
* step's label, and writes the processor's resource file into the solution
|
|
11
|
+
* (references/document-pipeline.md). The taxonomy's stable ids are written by
|
|
12
|
+
* hand here, because an SDK without builder-sdk#2054 emits `schema` verbatim.
|
|
15
13
|
*
|
|
16
14
|
* Generic scenario: read the sowing details off a scanned seed packet.
|
|
17
15
|
*/
|
|
@@ -68,11 +66,7 @@ export default flow('seed-packet-reader')
|
|
|
68
66
|
.step('extractSowing', dynamicExtract({
|
|
69
67
|
fileRef: out('start', 'packetScan'),
|
|
70
68
|
schema: sowingTaxonomy,
|
|
71
|
-
|
|
72
|
-
modelName: 'seedpackets-9c41e7b2-ixp',
|
|
73
|
-
folderKey: '4c9d1f70-6b2e-4a58-9f13-2ad5c8e0b741',
|
|
74
|
-
},
|
|
75
|
-
}))
|
|
69
|
+
}), { label: 'Extract sowing details' })
|
|
76
70
|
.step('summarize', script(summarize))
|
|
77
71
|
.return({ summary: out('summarize') })
|
|
78
72
|
.build();
|
|
@@ -12,7 +12,7 @@ The builder owns `.flow` JSON: `compile` emits node definitions, `variables.node
|
|
|
12
12
|
4. **Edit the source, not the artifact.** Change `<Name>.flow.ts` and re-emit with `compile -o` for a new flow; for a non-empty `.flow` that existed before this turn, use decompile and merge ([`brownfield.md`](brownfield.md)).
|
|
13
13
|
Never hand-edit emitted `.flow`, `content/*.bpmn`, `bindings_v2.json`, `entry-points.json`, `operate.json`, or `package-descriptor.json`; the CLI regenerates them and compile undoes edits. Route brownfield JSON through `decompile` ([`brownfield.md`](brownfield.md)). Non-interactive runs take the same route (nobody can approve a script over the `.flow`): write large node definitions into source; an inexpressible node is an SDK gap to report, not JSON to splice, unless its reference names a CLI route.
|
|
14
14
|
5. **Run the loop once the source is complete.** Use `check --source` while writing; run `compile` and `validate` on finished source and again after the last edit. `compile` does not run `check`: run a clean `check` before every `compile`; for brownfield edits use `--baseline <original.flow>` ([`brownfield.md`](brownfield.md#check-only-what-you-changed-check---baseline)). Ignore an error only when its message says to do so and that case applies (for example, false-positive `INLINE_AGENT_PROMPT_JSON_TEXT` when JSON is mentioned only as data). In emit-only mode `check` refuses and `validate` is the gate. Treat every `validate` warning as failure unless the loop reference names it reviewed.
|
|
15
|
-
6. **Bind every declared output on every path.**
|
|
15
|
+
6. **Bind every declared output on every path.** An output that only `.return()` sets (no `default`, `{ updates }` or shared input) comes back `null` from every `.return({...})` that leaves it out. `check` reports that as `RETURN_OUTPUT_MISSING` on `@uipath/maestro-builder-sdk` 6.100.0 or later; an older SDK misses it. Write `lit(null)` when null is the answer. `check` still misses an output set with `{ updates }` on only some paths: a `.return()` on a path that skipped the update returns its default, or `null`. Name the output in that `.return()`, or set it before the paths split.
|
|
16
16
|
7. **Handle errors only when requested.** Add `.onError(...)` only for stated failure behavior ("if the call fails…", invalid-input return, or timeout handling); otherwise let failure fault the run. A handler must recover genuinely or reach a terminal the caller can tell apart from success: a distinct `.return` or `.terminate`. Add `hitl` only when the request says the run waits for a person; post-run review of output, such as a drafted reply, is not hitl. This overrides `uipath-human-in-the-loop` Step 2b and its pattern guide; put unstated signals under Open questions.
|
|
17
17
|
8. **Never invent a named output's meaning or an uncovered input case—ask.** If derivation, pass-through, or reformatting of a named output (`caseKey`, `severity`, `ticketId`) is unspecified, ask or state and confirm an assumption; a guessed format compiles and validates and returns the wrong value. Check coverage over the valid values, ranges, and combinations of the inputs the stated rules read (`High` for refunds over $500 and `Low` under $50 leave $50 to $500 unassigned; `Expedite` for an overdue order from a Gold customer leaves overdue orders from every other tier unassigned); list each uncovered case and ask—never fold it into a stated value or an unprovided default. Invalid input remains under rule 7. When the request says no one will answer (headless, CI), the no-folding rule lifts: map each uncovered case to the most defensible stated value rather than stopping and list each under Open questions as **[REQUIRED]**.
|
|
18
18
|
9. **Present finite decisions as options, with "Something else" last.** For solution, connector, trigger, or resource choices, ask with enumerated options, never open-ended; without a structured-question tool, use a numbered chat list. If nobody can answer (CI, headless), choose the recommended option and record it prominently; without a recommendation, stop and report the open decision, except an uncovered rule-8 case, which you still decide. Never auto-answer consent gates (destructive operations or tenant writes).
|
|
@@ -74,7 +74,7 @@ Inputs, outputs, and vars take one of the six types the Flow CLI and Workbench o
|
|
|
74
74
|
- **Never replace a registered connector with `mock()` or a script because it is not configured.** Write `connector(...)`, run the `prepare` named by `check`, and if no live connection exists, report "prepare pending" as an open question. Reviewers and Studio Web need the real connector.
|
|
75
75
|
- **Never reuse a reference id from another flow/session** (mailbox folder, Slack channel, Jira project). IDs are scoped to the account behind the connection: a reused one compiles, validates, and faults at runtime. Resolve again with a `lookup()` token and the `prepare` named by `check`.
|
|
76
76
|
- **Never write an unresolved reference field.** On lookup failure (401/403 expired grant or 5xx), do not substitute display name, alias, or remembered value; stop and report the failed resolve.
|
|
77
|
-
- **Never reference parent values inside a subflow.** Pass them through `subflow(child, {...})` and read with `input(...)
|
|
77
|
+
- **Never reference parent values inside a subflow.** Pass them through `subflow(child, {...})` and read with `input(...)`. On `@uipath/maestro-builder-sdk` 6.100.0 or later, `check` on the calling flow reports a child's `$vars.start.output.<name>` or `input('<name>')` for any `<name>` the child does not declare, the parent's inputs included, as `SUBFLOW_PARENT_SCOPE_READ`; an older SDK compiles it, and it resolves to nothing.
|
|
78
78
|
- **Never debug a script with `console.log`.** `console.log` and its
|
|
79
79
|
siblings exist but do nothing, so the output goes nowhere
|
|
80
80
|
([script runtime](script.md#the-javascript-runtime)). Return the value to
|
|
@@ -92,7 +92,9 @@ skip it there, `validate` is the gate.
|
|
|
92
92
|
|
|
93
93
|
Require `@uipath/maestro-builder-sdk` 6.64.0 or later. If baseline compile stops on a check code (for example pre-existing `HTTP_READ_WITHOUT_RETURNS`), `uip` reports `--baseline on flow check needs @uipath/maestro-builder-sdk >= 6.64.0; found <version>`, or older `uip` reports `error: unknown option '--baseline'`, the SDK is too old,
|
|
94
94
|
so upgrade with `npm install -g @uipath/maestro-builder-sdk@latest`.
|
|
95
|
-
For `unknown option '--baseline'`, check the SDK with `npm ls -g @uipath/maestro-builder-sdk` or the project's `node_modules`. Below 6.64.0, upgrade it.
|
|
95
|
+
For `unknown option '--baseline'`, check the SDK with `npm ls -g @uipath/maestro-builder-sdk` or the project's `node_modules`. Below 6.64.0, upgrade it. With 6.64.0+ and the same error, `uip` is too old (1.205.0 is): run the same check through the SDK's own bin, which takes the same flags and exits the same way:
|
|
96
|
+
`flow-sdk flow check .flow-sdk/Deployed.flow.ts --source --baseline Deployed.flow` (global SDK), or `npx --no-install flow-sdk flow check .flow-sdk/Deployed.flow.ts --source --baseline Deployed.flow` when the SDK is in the project's `node_modules`.
|
|
97
|
+
The bin finds the connector library itself (`--library`, `FLOW_SDK_LIBRARY_JSON`, or the cache `uip maestro registry pull` fills), not through `uip`, so a library only `uip` passes is not used and connector findings (`CONNECTOR_INPUT`, `LOOKUP_UNRESOLVED`) can be missing. If you used a library other than the pulled one, pass it: `--library <dir>`.
|
|
96
98
|
|
|
97
99
|
```text
|
|
98
100
|
$ uip maestro flow check <Name>.flow.ts --source --baseline <original>.flow
|
|
@@ -128,6 +130,9 @@ flow-merge: wrote Deployed.flow (12 nodes, 13 edges)
|
|
|
128
130
|
flow-merge: wrote <source-uuid>/agent.json (carries messages[0].content)
|
|
129
131
|
```
|
|
130
132
|
|
|
133
|
+
To add an instruction to a prompt, write it as a new line. Keep every existing
|
|
134
|
+
line exactly as it is: add no words to it, and do not re-wrap it.
|
|
135
|
+
|
|
131
136
|
Merge writes the `.flow` and every agent file it carried into the project;
|
|
132
137
|
there is nothing to copy. Fields the round trip does not reproduce (such as
|
|
133
138
|
`maxIterations`, or a `description` on an agent input) keep the project's values.
|
|
@@ -140,7 +145,7 @@ Merge warns, omits carrying, and refuses with `--strict` when:
|
|
|
140
145
|
differs from the original's ... The change is NOT carried`). Keep a baseline
|
|
141
146
|
file in a directory of its own, as [a supplied source](#a-supplied-source) does.
|
|
142
147
|
- an agent resource changed/removed cannot pair with a project resource because the canvas gave its node an id compile does not reproduce and its `resource.json` has fields compile does not write; make the change on the canvas;
|
|
143
|
-
- an older canvas save embeds prompts on the agent node
|
|
148
|
+
- with an SDK older than 6.117.2, an older canvas save embeds prompts on the agent node, so an `agent.json` edit would not change runtime behavior; edit on the canvas. From 6.117.2, merge carries a prompt, model or settings edit onto such a node; see [the embedded-agent warning](#merge-warnings-what-the-round-trip-changed).
|
|
144
149
|
|
|
145
150
|
Never copy a compiled `<source>/` directory into the project by hand: it
|
|
146
151
|
carries the round trip's changes along with yours.
|
|
@@ -251,7 +256,13 @@ flow-merge: warning: the merged edge route1@case-case_1 -> review1@input leaves
|
|
|
251
256
|
|
|
252
257
|
`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).
|
|
253
258
|
|
|
254
|
-
`agent "<id>" carries its prompts, model and settings on the node (embedded) …` means configuration is in `.flow`, not `<source>/agent.json`; merge
|
|
259
|
+
`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).
|
|
260
|
+
From SDK 6.117.2, merge also writes a prompt, model or settings edit to an embedded agent onto the node and prints `flow-merge: carried the agent.json edit onto embedded agent "<id>"`.
|
|
261
|
+
If merge prints no such line for your edit, the SDK does not carry it; edit it on the canvas.
|
|
262
|
+
Deleting a setting from the source is carried as its default value when compile writes one (for example `maxTokenPerResponse` becomes 16384); to keep a value, leave the setting in the source.
|
|
263
|
+
A deletion merge cannot carry, such as `model`, warns `NOT carried`, and the node keeps its value.
|
|
264
|
+
`--strict` refuses an edit merge cannot carry onto the node, a merged node that drops or changes configuration you did not edit, a prompt you edited that uses a new `{{input.X}}` the node does not declare, or a prompt that still uses an input your edit removed.
|
|
265
|
+
An undeclared placeholder the original prompt already had is not refused.
|
|
255
266
|
- Pass `--strict` to make merge refuse (exit 1, no file written) instead of
|
|
256
267
|
warning. The benign End line never refuses. Every merge on this page has a
|
|
257
268
|
baseline, which `--strict` needs: `uip maestro flow merge
|
|
@@ -243,15 +243,17 @@ The compiler emits `multipartParameters`; `uip is resources run` has no multipar
|
|
|
243
243
|
Lookup fields store ids, not display names. If marked LOOKUP, author its helper and do not guess or manually resolve it:
|
|
244
244
|
|
|
245
245
|
```ts
|
|
246
|
-
channel: lookup(SendMessageToUser, 'channel').
|
|
246
|
+
channel: lookup(SendMessageToUser, 'channel').byRealName('Ada Lovelace')
|
|
247
247
|
```
|
|
248
248
|
|
|
249
|
+
Slack omits `profile.email` unless the connection's app may read emails, so `.byEmail(…)` can match no one; prefer `.byRealName(…)` or `.byId(…)`. When prepare says `none carries '<field>'` (an SDK with builder-sdk#2096), the value is not wrong: search by a field the message lists after `Search by`. A real name need not be unique; prepare takes the first exact match without warning, so use `.byId(…)` when two users may share it.
|
|
250
|
+
|
|
249
251
|
| form | when | helpers |
|
|
250
252
|
|---|---|---|
|
|
251
|
-
| `lookup(SendMessageToUser, 'channel')` | prepared descriptor | `.byEmail(v)`, `.byRealName(v)`, … and `.by(name, v)` |
|
|
253
|
+
| `lookup(SendMessageToUser, 'channel')` | prepared descriptor | `.byEmail(v)`, `.byRealName(v)`, … (as the descriptor's `LOOKUP:` header lists them) and `.by(name, v)` |
|
|
252
254
|
| `lookup('uipath-salesforce-slack', 'send-message-to-user', 'channel')` | generic CRUD/no descriptor | `.by(name, v)` only |
|
|
253
255
|
|
|
254
|
-
Never use an alias (`.byEmail`, `.byRealName`, generated onto the descriptor) in the second form; it throws. Use `.by('profile.
|
|
256
|
+
Never use an alias (`.byEmail`, `.byRealName`, generated onto the descriptor) in the second form; it throws. Use `.by('profile.real_name', …)` there. Searchable names are in the descriptor `LOOKUP:` header and `check` diagnostics.
|
|
255
257
|
|
|
256
258
|
A folder-tree lookup (OneDrive's `referenceID` by `FullName`) matches a bare name only at the top or one level below; deeper paths start at the root picker's top entry, not drive root:
|
|
257
259
|
|
|
@@ -269,7 +271,7 @@ Drop `parentReference` at top level. When source contains unresolved tokens, run
|
|
|
269
271
|
|
|
270
272
|
```bash
|
|
271
273
|
uip maestro registry prepare uipath-salesforce-slack --action send-message-to-user \
|
|
272
|
-
--resolve channel:profile.
|
|
274
|
+
--resolve 'channel:profile.real_name=Ada Lovelace'
|
|
273
275
|
```
|
|
274
276
|
|
|
275
277
|
Do not find the connection first: prepare searches `uip is connections list` (own folder then tenant), writes connection id and folder key, and accepts `--connection <name>` only to disambiguate candidates. If a value is absent, it tries other enabled connections and re-runs itself against the one that resolves (which `bindings.json` then names), unless `--connection-id` or `--connection` pinned one; it does not retry transport/permission failures or choose between two resolving connections. When one was pinned or two resolve, the message names alternatives; choose and re-run with the printed `--connection-id`.
|
|
@@ -5,22 +5,19 @@
|
|
|
5
5
|
Two document steps that need no trained IxP fields: classification
|
|
6
6
|
(`uipath.document.classify`) labels a document, and the Extract document node
|
|
7
7
|
(`uipath.ixp.extract-document-builder`) pulls fields against a taxonomy you
|
|
8
|
-
author INLINE
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
author INLINE ([Two ways to author it](#two-ways-to-author-it)). It is
|
|
9
|
+
opt-in: add it only when the user names the Extract document node. Any other
|
|
10
|
+
extraction request, one with no trained model included, goes to a published
|
|
11
|
+
IXP model or an IXP project ([ixp.md](ixp.md)), never to this node.
|
|
11
12
|
|
|
12
13
|
Signatures: `documentClassify({ fileRef, pageRange?, splitPages?, modelConfig? })`;
|
|
13
|
-
`dynamicExtract({ fileRef, schema
|
|
14
|
+
`dynamicExtract({ fileRef, schema?, pageRange?, modelConfig? })`.
|
|
14
15
|
|
|
15
16
|
```ts
|
|
16
17
|
.input({ file: types.file })
|
|
17
18
|
.step('classify', documentClassify({ fileRef: input('file'), splitPages: true }))
|
|
18
|
-
.step('extract', dynamicExtract({
|
|
19
|
-
|
|
20
|
-
schema: invoiceTaxonomy,
|
|
21
|
-
model: { modelName: 'invoiceixp-cef0d447-ixp',
|
|
22
|
-
folderKey: 'c4359cde-55f0-4f0e-9322-c6cdce74ab4c' },
|
|
23
|
-
}))
|
|
19
|
+
.step('extract', dynamicExtract({ fileRef: input('file'), schema: invoiceTaxonomy }),
|
|
20
|
+
{ label: 'Extract invoice' })
|
|
24
21
|
.step('total', script({ code: 'return $vars.extract.output.result.output;' })) // warns until the SDK typing catches up
|
|
25
22
|
```
|
|
26
23
|
|
|
@@ -30,32 +27,48 @@ Classify a document (`uipath.document.classify`), or extract fields against an
|
|
|
30
27
|
INLINE taxonomy (`uipath.ixp.extract-document-builder`) instead of a published
|
|
31
28
|
IxP project's trained fields.
|
|
32
29
|
Signatures: `documentClassify({ fileRef, pageRange?, splitPages?, modelConfig? })`;
|
|
33
|
-
`dynamicExtract({ fileRef, schema
|
|
30
|
+
`dynamicExtract({ fileRef, schema?, pageRange?, modelConfig? })`.
|
|
34
31
|
|
|
35
32
|
```ts
|
|
36
33
|
.step('classify', documentClassify({ fileRef: input('file'), splitPages: true }))
|
|
37
|
-
.step('extract', dynamicExtract({ fileRef: input('file'), schema: invoiceTaxonomy,
|
|
38
|
-
|
|
34
|
+
.step('extract', dynamicExtract({ fileRef: input('file'), schema: invoiceTaxonomy }),
|
|
35
|
+
{ label: 'Extract invoice' })
|
|
39
36
|
```
|
|
40
37
|
|
|
41
38
|
## Two ways to author it
|
|
42
39
|
|
|
43
|
-
**The SDK factory**, `dynamicExtract()`,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
40
|
+
**The SDK factory**, `dynamicExtract()`, takes no `model` argument. Compile
|
|
41
|
+
gives each step its processor, as `uip maestro flow nodes create` does:
|
|
42
|
+
|
|
43
|
+
- it writes `inputs.processorKey`, one per step, the same on every recompile;
|
|
44
|
+
- when it compiles the project's main flow inside a local solution (a folder
|
|
45
|
+
whose `.uipx` lists the project), it writes the processor's resource file
|
|
46
|
+
(`resources/solution_folder/idpProcessor/extraction/<Label>.json`), keeps
|
|
47
|
+
it in step with the node on every compile, and declares it in
|
|
48
|
+
`bindings_v2.json`. A compile with no `.uipx` above it, such as Studio
|
|
49
|
+
Web's candidates under `/tmp`, writes no file: the designer creates it.
|
|
50
|
+
|
|
51
|
+
So validate and packing pass with no CLI step after compile, and
|
|
52
|
+
decompile -> compile keeps the node and its key. Give the
|
|
53
|
+
step a `label` that says what it extracts: the processor is named after it.
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
.step('extract', dynamicExtract({ fileRef: input('invoice'), schema: invoiceTaxonomy }),
|
|
57
|
+
{ label: 'Extract invoice' })
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Needs `@uipath/maestro-builder-sdk` 6.118.0 or later. An older SDK requires
|
|
61
|
+
`model` (compile fails reading `modelName` without it) and writes no
|
|
62
|
+
`inputs.processorKey`.
|
|
63
|
+
Upgrade the copy in use: `npm install @uipath/maestro-builder-sdk@latest` in a
|
|
64
|
+
workspace that has its own `node_modules` copy, else
|
|
65
|
+
`npm install -g @uipath/maestro-builder-sdk@latest`. Where that is not
|
|
66
|
+
possible, use the CLI.
|
|
67
|
+
|
|
68
|
+
**The CLI commands** author the same node in a flow that has no TypeScript
|
|
69
|
+
source: add it and wire `fileRef` per
|
|
70
|
+
[extract-document-node.md](extract-document-node.md). Never mix the two on
|
|
71
|
+
one flow: the next compile overwrites what the commands wrote.
|
|
59
72
|
|
|
60
73
|
Both routes need the same taxonomy, and
|
|
61
74
|
[extract-document-taxonomy.md](extract-document-taxonomy.md) is where it is designed and
|
|
@@ -13,21 +13,24 @@ uip is connections list <connector-key> --all-folders --output json #
|
|
|
13
13
|
Search a short name (`'Cortex'`, not `'Snowflake Cortex'`): a full product name can match only a connector's HTTP-request tool.
|
|
14
14
|
|
|
15
15
|
- **In the connector library** (Snowflake Cortex is): author it with `connector(...)` like any connector ([connector-params.md](connector-params.md)).
|
|
16
|
-
- **Not in the library** (CrewAI returns `"total": 0`):
|
|
16
|
+
- **Not in the library** (CrewAI returns `"total": 0`): prepare it, then author it with `connector(...)` like a library operation. `rawNode` is not an option for a `uipath.connector.*` type.
|
|
17
17
|
|
|
18
|
-
##
|
|
18
|
+
## Prepare it when the library lacks it
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
uip maestro
|
|
22
|
-
uip is resources describe <connector-key> <objectName> --operation Create --connection-id <id> --output json
|
|
23
|
-
uip maestro flow nodes create <Name>/<Name>.flow <node-type> --label "<label>" --position <x>,<y> --output json
|
|
24
|
-
uip maestro flow nodes configure <Name>/<Name>.flow <node-id> --detail '{"connectionId":"<id>","folderKey":"<folder-key>","method":"POST","endpoint":"<path>","bodyParameters":{"<field>":"<value>"}}' --output json
|
|
25
|
-
uip maestro flow edges create <Name>/<Name>.flow <source-node-id> <node-id> --output json
|
|
26
|
-
uip maestro flow validate <Name>/<Name>.flow --output json
|
|
21
|
+
uip maestro registry prepare <connector-key> --action <operation>
|
|
27
22
|
```
|
|
28
23
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
24
|
+
`prepare` reads the tenant's node (`uip maestro flow registry get`) and the object's request fields (`uip is resources describe`). It writes the operation to `./.flow-sdk/connectors-local/`, adds the connection to `.flow-sdk/bindings.json`, and prints the `connector(...)` call to paste. The source in `.flow-sdk/` imports the module as `./connectors-local/<connector-key>.ts`. For example, Salesforce Agentforce's Execute Salesforce Agent:
|
|
25
|
+
|
|
26
|
+
```ts
|
|
27
|
+
import { ExecuteSalesforceAgent } from './connectors-local/uipath-salesforce-agent.ts';
|
|
28
|
+
|
|
29
|
+
.step('ask', connector(ExecuteSalesforceAgent, { message: { text: input('question') }, agent_id: lookup(ExecuteSalesforceAgent, 'agent_id').byDeveloperName('<agent name>') },
|
|
30
|
+
{ connection: 'agent', folder: 'shared' }))
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
- Required inputs are the describe's `RequestFields` with `Required: true`, and the descriptor types them as required; `registry get` may not list them (CrewAI's `inputs.email_content`). A dotted field is a nested object in the source (`inputs: { email_content: ... }`); compile writes it back as the one key `inputs.email_content`.
|
|
34
|
+
- A picker input such as `agent_id` is a lookup: author `lookup(...)` as above, and record its id with the `--resolve agent_id:DeveloperName=<agent name>` that `prepare` prints, rather than pasting an id ([connector-params.md](connector-params.md#resolving-connection-scoped-reference-values)).
|
|
35
|
+
- The node runs as the connector object says (`sync`, `async` or `hybrid`). With `@uipath/maestro-builder-sdk` 6.116.0 or later, compile writes that as `inputs.detail.executionType`, as `nodes configure` does, and the runtime picks the sync or async service type from it. Leave the definition's service type alone (`Intsvc.AsyncAgentExecution` even for a sync agent). If `prepare` warns that Integration Service reported no execution type, run `uip update` and prepare again. If it warns that an async or hybrid object names no event, the node has nothing to wait on: tell the user it may never finish. An older SDK writes no execution type, so the node runs under the definition's service type: upgrade with `npm install -g @uipath/maestro-builder-sdk@latest`.
|
|
33
36
|
- To run it, `uip solution resources refresh` and `uip maestro flow debug <Name>` ([CLI-LOOP.md](CLI-LOOP.md)); ask first ([operate.md](operate.md#debug--a-real-end-to-end-run)).
|
|
@@ -68,7 +68,7 @@ No other CLI command answers this question. `registry search` reports `Available
|
|
|
68
68
|
|
|
69
69
|
## Adding the node
|
|
70
70
|
|
|
71
|
-
**These commands edit the `.flow` file, so they do not mix with a project built from TypeScript source.** A project initialized with `--sdk-source` compiles `.flow.ts` over CLI edits. Check for `.flow-sdk/`; if present,
|
|
71
|
+
**These commands edit the `.flow` file, so they do not mix with a project built from TypeScript source.** A project initialized with `--sdk-source` compiles `.flow.ts` over CLI edits. Check for `.flow-sdk/`; if present, author the node in the source with `dynamicExtract()`: compile gives it its processor as `nodes create` does ([document-pipeline.md](document-pipeline.md#two-ways-to-author-it)). On an SDK older than 6.118.0 (compile fails reading `modelName` with no `model`, or writes no `processorKey`), build this flow in a separate project without source and use only the CLI. Do not alternate between the two and re-apply CLI edits after each compile.
|
|
72
72
|
|
|
73
73
|
`--label` sets the canvas name and seeds the node id; name the document and fields, not "Extract", since flows often have two extraction nodes. Run `uip maestro flow nodes list <file> --output json` to obtain the minted id; later commands use it. `nodes create` supplies `inputs.schemaDocument` (empty taxonomy with six built-in field types), `inputs.modelConfig` (working model defaults), `inputs.source` (minted extraction identifier), `inputs.processorKey` and `inputs.processorName` (processor; in a solution its resource file is written, otherwise output says `ResourcePending` and pack creates it later ([Making it actually extract](#making-it-actually-extract))), and `outputs.output` and `outputs.error` (named instance ports for downstream `$vars`). It has no top-level `model` block: the slim manifest model belongs in `definitions[]`; validation rejects an instance copy.
|
|
74
74
|
|
|
@@ -165,7 +165,7 @@ Validation requires `fileRef` to be a `$vars` reference, both output ports to be
|
|
|
165
165
|
|
|
166
166
|
At runtime, the service resolves `inputs.processorKey` to a solution resource containing its taxonomy. The CLI provisions it while you author: `nodes create` mints the key and writes the resource; `nodes schema set` writes it for a node without a processor or updates it in place; `uip solution pack` regenerates it from the node so the deployed processor matches the latest taxonomy. Keep the `.flow` and `resources/` file together when storing, uploading, or versioning the solution.
|
|
167
167
|
|
|
168
|
-
A node from before CLI provisioning, written by hand, or compiled
|
|
168
|
+
A node from before CLI provisioning, written by hand, or compiled by an SDK older than 6.118.0 (no `inputs.processorKey` after compile) arrives without a processor; `validate` reports an error. Repair the whole file by running:
|
|
169
169
|
|
|
170
170
|
```bash
|
|
171
171
|
uip maestro flow nodes provision <file> --output json
|
|
@@ -199,7 +199,7 @@ These limits are not CLI-enforced but improve extraction:
|
|
|
199
199
|
- **Stable ids:** Groups and fields carry `x-uipath-field-group-id` and `x-uipath-field-id`, used by annotations, evaluator settings, and taxonomy history. First writes mint ids; later writes preserve supplied ids and assign a missing entry the id of the same-named replaced entry.
|
|
200
200
|
- **Model settings:** It rebuilds them from `inputs.modelConfig`.
|
|
201
201
|
- **Validation:** A non-schema or limit violation returns exit 3 and changes nothing on disk.
|
|
202
|
-
- **Draft protection:** When someone left an editing session open in Studio Web, the node carries that draft and `set` stops. `--discard-draft` proceeds and throws the draft away; pass it only when the user asked in this conversation. Headless or CI: leave the node unchanged, report the draft and `DraftIssueMessages`, and stop; the request is not done. Never hand-edit `inputs.schemaDocument` to bypass this.
|
|
202
|
+
- **Draft protection:** When someone left an editing session open in Studio Web, the node carries that draft and `set` stops. `--discard-draft` proceeds and throws the draft away; pass it only when the user asked in this conversation. Headless or CI: leave the node unchanged, report the draft and `DraftIssueMessages`, and stop; the request is not done. Run no `nodes provision` either: it writes `inputs.processorKey` into the node. Report a missing processor instead. Never hand-edit `inputs.schemaDocument` to bypass this.
|
|
203
203
|
|
|
204
204
|
## Editing a taxonomy that already exists
|
|
205
205
|
|
|
@@ -33,7 +33,11 @@ pattern's End nodes become `body.continue()`, so the item ends and the loop
|
|
|
33
33
|
moves on; record the item's outcome in its result. Every step that can fail
|
|
34
34
|
inside the body keeps its own `.onError` continuation if one item must not stop
|
|
35
35
|
the batch. A step inside the body cannot be a `.stepToRef` target from outside
|
|
36
|
-
it (`REF_INTO_LOOP`).
|
|
36
|
+
it (`REF_INTO_LOOP`). When the pattern's routes meet at one shared step (the
|
|
37
|
+
human-review pattern's apply step), keep that step inside the body and end each
|
|
38
|
+
other route with `.stepToRef('<SHARED_STEP>')`. Record every outcome: the shared
|
|
39
|
+
step records the items it applies, and a reject or failure path records its
|
|
40
|
+
outcome before `body.continue()`.
|
|
37
41
|
|
|
38
42
|
### As a subflow
|
|
39
43
|
|
|
@@ -36,3 +36,9 @@ items and assert the resulting values, not merely that the node ran.
|
|
|
36
36
|
|
|
37
37
|
Omit `variant` for the generic node. Set `variant: 'map' | 'filter' | 'group-by'`
|
|
38
38
|
for a single-purpose node; `operations` must then contain exactly one entry.
|
|
39
|
+
|
|
40
|
+
Use `transform()` for every Transform node. To use a newer registry version,
|
|
41
|
+
pass it on the step: `.step('g', transform({ ... }), { version: '1.1' })`. The
|
|
42
|
+
factory writes `collection` as a plain `$vars` path and puts each operation's
|
|
43
|
+
settings under `config`. A `rawNode` copy of the manifest keeps `v()` as an
|
|
44
|
+
expression object, and the runtime reads that as an empty collection.
|
|
@@ -60,6 +60,11 @@ code and subscriber number, 7–15 digits in all. `from` must be a number provis
|
|
|
60
60
|
telephony provider; anything else is rejected when the call is placed, not when
|
|
61
61
|
the flow is validated. `endCall` reads `out('<step>', 'ended')`.
|
|
62
62
|
|
|
63
|
+
When the request asks for placeholder numbers or an offline build, pass a
|
|
64
|
+
placeholder E.164 string literal for each: a `+`, then 7–15 digits. Otherwise
|
|
65
|
+
bind `to` to the recipient's data, and set `from` to the provisioned caller
|
|
66
|
+
number; ask for it when you do not know it.
|
|
67
|
+
|
|
63
68
|
## How the agent sounds
|
|
64
69
|
|
|
65
70
|
`voice` takes a VOICE model (a live/realtime one — not the text models
|
|
@@ -234,7 +234,7 @@ ONE checklist. Settle every item before the Phase 2 Step 5 review and re-walk it
|
|
|
234
234
|
|
|
235
235
|
**Blocking — the design is unbuildable or unreviewable until fixed:**
|
|
236
236
|
|
|
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 with declared target + titles; never duplicate a global-event entry or exit across primary stages.
|
|
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
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.
|
|
@@ -191,7 +191,7 @@ Entry shape follows the lane's trigger source:
|
|
|
191
191
|
|---|---|
|
|
192
192
|
| A person launches it | `user-selected-stage`, paired with an upstream `wait-for-user` exit |
|
|
193
193
|
| External / global event | ONE `wait-for-connector` entry on the destination lane — never duplicated per origin stage |
|
|
194
|
-
| SLA response | ONE `sla-status-change` entry ([Layer 4](case-data-and-time-guide.md#layer-4--time-slas--escalations)) |
|
|
194
|
+
| SLA response | ONE `sla-status-change` entry row per SLA the lane answers ([Layer 4](case-data-and-time-guide.md#layer-4--time-slas--escalations)) — five phase SLAs into one lane are five rows on that lane, never one WHEN cell joined with `OR` |
|
|
195
195
|
| Decision / signal divert | The origin stage carries a gated diverting exit — `Marks Stage Complete: No`, WHEN `selected-tasks-completed("<decider task>")`, `IF` on the signal, exit target → the lane — and the origin's completion exit carries the exact inverse `IF`. The lane enters via `selected-stage-exited("<origin>")` + the same `IF`. |
|
|
196
196
|
|
|
197
197
|
Omitting the diverting exit makes a decision path dual-fire (ungated completion → the next stage AND the lane both enter) or deadlock (gated completion with no alternative exit). Only a `selected-stage-exited` lane entry needs a diverting exit; a `selected-stage-completed("<origin>")` + `IF` lane keys off the origin's normal completion — guard only.
|
|
@@ -19,6 +19,8 @@ Phase 3 of `design` writes the full SDD to disk incrementally, resolves the SME
|
|
|
19
19
|
|
|
20
20
|
**Write the file to disk now, before generating any Phase 3 section.** This is an action, not advice: Step 1 does not begin until a file write has created the SDD file (Step 2 item 7 resolves the path and the Solution-scope file set). Do NOT hold the entire SDD in context and write only at the very end.
|
|
21
21
|
|
|
22
|
+
**A lighter request keeps the template's shape.** A request that limits effort — a draft (`*.draft.md`), a first pass, "a version to review", "keep it compact", "just the outline", "don't polish or validate it yet" — sets how much detail each block carries, never which blocks exist. Write every heading, table and per-item block the product template defines, one block per item it inventories (each project, step, stage, task, gateway, integration), and every trigger, entry, exit and business rule as the executable condition the template asks for; missing detail is shorter prose or an `[SME REVIEW]` marker inside its block. Never merge per-item blocks into one summary table, drop a section because it is thin (one with nothing to record says so), or leave a rule only in prose: every later step — finalize, the template check, the genome — adds detail to the structure the SDD already has and cannot rebuild a structure it never had.
|
|
23
|
+
|
|
22
24
|
**First, run the collision check — the skeleton write is the write that can clobber.** Before writing anything, apply the re-run handling in Step 2 item 6: if a target file already exists, resolve it with that structured question (keep / regenerate / resume / write as `-v2-`) and honour the answer here. "Keep the existing SDD and stop" ends `design` with no write at all; "Resume generation" patches the existing draft instead of overwriting it. Only "Regenerate" and the no-file-exists case write a fresh skeleton. Item 6 then has nothing left to ask. A caller's `existing-output: replace` is the answer "Regenerate": ask nothing ([caller-request-guide.md](caller-request-guide.md)).
|
|
23
25
|
|
|
24
26
|
The skeleton write contains, in this order:
|
package/version-manifest.json
CHANGED