@uipath/skills 1.207.0-preview.2339 → 1.207.0-preview.2383
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-planner/SKILL.md +11 -0
- package/skills/uipath-planner/references/design/case-review-and-conformance-guide.md +4 -1
- package/skills/uipath-planner/references/design/scope-recommendation-guide.md +1 -1
- package/skills/uipath-planner/references/design/sdd-writing-guide.md +2 -2
- package/skills/uipath-planner/scripts/case-sdd-check.mjs +68 -1
- package/skills/uipath-planner/scripts/scope-check.mjs +22 -2
- package/skills/uipath-rules/SKILL.md +2 -0
- package/skills/uipath-rules/references/failure-modes-guide.md +9 -1
- package/version-manifest.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/skills",
|
|
3
|
-
"version": "1.207.0-preview.
|
|
3
|
+
"version": "1.207.0-preview.2383",
|
|
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"
|
|
@@ -73,9 +73,20 @@ they NEVER write automation code (XAML, C#, Python) or project or scaffold files
|
|
|
73
73
|
7. **Never invent selectors or UI targets.** Selectors need the application inspected at development time; an SDD, a plan and an authored genome leave them to the specialist. A target carried over from the source is not invented: `extract` records where the source's targets live (objects, ids, counts) in the Source Map, and `uipath-genome` migrates them at build.
|
|
74
74
|
8. **Gate every product by the platform.** The delivery model (Automation Cloud, Automation Suite, standalone Orchestrator) blocks unavailable products through [platform-availability-guide.md](references/shared/platform-availability-guide.md), in every verb that chooses a product (`design`, `decompose`, `author` without an SDD, `extract` for its targets); a product the user excluded is never offered again in the session.
|
|
75
75
|
9. **Prompt budget.** `design` runs its own checkpoint model ([design-guide.md](references/design/design-guide.md)); `decompose` caps at **5 structured questions**. `design`, `author` and `extract` offer the interview once; accepted, its rounds count against no cap ([interview-guide.md](references/interview/interview-guide.md)). Ask execution autonomy **exactly once**, at `design` entry — never when a caller's request carries `execution` — and write it into the handoff header; `author` on an SDD reads it and never asks again. Scope and UI answers resolved in `design` flow forward through the SDD.
|
|
76
|
+
10. **No turn ends on an SDD whose checks have not printed `OK`.** Every SDD file `design` writes or changes, a `*.draft.md` included, runs its § Check scripts before the turn ends — also when the request says not to validate or polish it: those words set how much detail the blocks carry, never whether the template's mechanical rules hold.
|
|
76
77
|
|
|
77
78
|
## Check
|
|
78
79
|
|
|
80
|
+
SDD — run each that applies on every SDD file written or changed, repair each `FAIL:` line in the file, and run it again until it prints `OK`:
|
|
81
|
+
|
|
82
|
+
```bash
|
|
83
|
+
node "<SKILL_DIR>/scripts/scope-check.mjs" "<SDD_PATH>" # every SDD
|
|
84
|
+
node "<SKILL_DIR>/scripts/case-sdd-check.mjs" "<NAME>.md" # Case Management SDD
|
|
85
|
+
node "<SKILL_DIR>/scripts/case-sdd-check.mjs" --draft "<NAME>.draft.md" # Case Management draft
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Genome:
|
|
89
|
+
|
|
79
90
|
```bash
|
|
80
91
|
node "<SKILL_DIR>/scripts/check-genome.mjs" <component|process> "<GENOME_MD>" --profile strict
|
|
81
92
|
```
|
|
@@ -44,7 +44,7 @@ Start the final as a copy of the draft (`cp <NAME>.draft.md <NAME>.md`, the draf
|
|
|
44
44
|
node "<SKILL_DIR>/scripts/case-draft-parity.mjs" "<NAME>.draft.md" "<NAME>.md"
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
(`<SKILL_DIR>` is the folder holding planner's `SKILL.md`). It compares the stages in order with their kinds, the tasks under each stage, the Case Variables rows and every `=js:` expression, finds every comparator + amount policy (repair 3) without its `=js:` cell, and checks each Tasks table row's cell count and each `Role:` Recipient against its task's Persona; each `FAIL:` line is a defect your edits introduced — repair it in place from the draft and run it again until it prints `OK`. Then run `node "<SKILL_DIR>/scripts/case-sdd-check.mjs" "<NAME>.md"` the same way: it finds the template markers a stage or task block lost (`**Design Rationale:**`, `**Activation Mode:**`, `**Entry Condition:**`, `**Task envelope**`), a `**Type:**` outside the task types,
|
|
47
|
+
(`<SKILL_DIR>` is the folder holding planner's `SKILL.md`). It compares the stages in order with their kinds, the tasks under each stage, the Case Variables rows and every `=js:` expression, finds every comparator + amount policy (repair 3) without its `=js:` cell, and checks each Tasks table row's cell count and each `Role:` Recipient against its task's Persona; each `FAIL:` line is a defect your edits introduced — repair it in place from the draft and run it again until it prints `OK`. Then run `node "<SKILL_DIR>/scripts/case-sdd-check.mjs" "<NAME>.md"` the same way: it finds the template markers a stage or task block lost (`**Design Rationale:**`, `**Activation Mode:**`, `**Entry Condition:**`, `**Task envelope**`), a `**Type:**` outside the task types, an SLA Response Map row that breaks the template's cell rules, a Personas row off the template's six cells or permission keys, an action task's `**HITL Implementation:**` that is not `Action App: <title>` or names another task, and a Tasks-table Activation Mode that differs from its task block's. Repairs:
|
|
48
48
|
|
|
49
49
|
1. `user-selected-stage` repair per [case-product-guide.md](case-product-guide.md) § Repairing a `user-selected-stage` lane; wording such as "any active case" means every primary stage.
|
|
50
50
|
2. Every `=js:` expression in the draft appears verbatim in the output, inside the same owning task or stage block, with its field names, variable references, and output mapping intact — an equivalent-looking shorthand that drops an input, predicate, or intermediate field is a failure, not a simplification.
|
|
@@ -54,6 +54,9 @@ node "<SKILL_DIR>/scripts/case-draft-parity.mjs" "<NAME>.draft.md" "<NAME>.md"
|
|
|
54
54
|
- Persona prose and Design Rationale alone are not final.
|
|
55
55
|
4. Secondary-stage task headings normalize to `##### Task S{secondaryStageIndex}.{taskIndex}: {Task Name}`; never keep draft letter prefixes (`R.1`, `W.1`, `CC.1`, `ESC.1`).
|
|
56
56
|
5. A draft's per-stage SLA table may carry `At-Risk Action` / `Breach Action` columns; the final SDD does not. Move each response into the § SLA Response Map row for that `(scope, SLA, status)` — never drop it, never keep the column.
|
|
57
|
+
6. A draft's `**HITL Implementation:**` cell (`JSON Schema`, a form, a schema) becomes `Action App: <this task's own name>` — the name in the `##### Task` heading of the block the cell sits in, never the stage's first task or the previous block's. A script that rewrites these cells reads the heading of each block, not the last one it matched.
|
|
58
|
+
7. A draft's Personas table (`| Persona | Stage Scope | Permissions | Description |` or any other shape) is re-rendered row by row into the template's `| Persona | Scope | Stages | Permissions | Description | Notes |`: stage scope `All` → Scope `Case`, Stages `—`; named stages → Scope `Stages`, those exact stage names; Permissions keep only the template's keys (`Act` is dropped — task work comes from each task's Recipient; `Reassign` → `Assign`), a `Stages` row only View, Assign, ManageSLA, RunAdhocTasks; the dropped prose goes to Notes. The persona names stay verbatim.
|
|
59
|
+
8. A task's Activation Mode is one literal, written the same in its stage's Tasks table and in its block's `**Activation Mode:**` line; where they differ, the block's Entry Condition decides (a task that starts after another is never `parallel`).
|
|
57
60
|
|
|
58
61
|
## SDD Conformance Checklist
|
|
59
62
|
|
|
@@ -106,7 +106,7 @@ Emit this block as the Phase 1 summary content:
|
|
|
106
106
|
|
|
107
107
|
**`Blocked by platform:` names every gated product the source signals**, by its matrix name — not only the one the design would have picked. A PDD with a dashboard, an approval orchestration, and an AS 2024.10 constraint lists Coded Apps AND Maestro (Flow / BPMN), each with its alternative. Dropping a blocked product from this line hides the gate outcome; `none` only when no signaled product is blocked. `node "<SKILL_DIR>/scripts/scope-check.mjs" "<SDD_PATH>"` fails an SDD on Automation Suite older than 2.2510.2 whose line does not name Maestro.
|
|
108
108
|
|
|
109
|
-
**Durable home.** This block is conversation output at the Phase 1 checkpoint, but the `## Recommended Scope` lines (`Recommendation:`, `Delivery model:`, `Blocked by platform:`) must also survive into the SDD — every template hosts a `## Recommended Scope` section between `## Decisions Made` and `## Action Required`, emitted in BOTH execution modes ([sdd-writing-guide.md](sdd-writing-guide.md) Step 2 item 3). Autonomous mode skips the checkpoint presentation, so the SDD copy is the only durable record of the Constraint Gate outcome.
|
|
109
|
+
**Durable home.** This block is conversation output at the Phase 1 checkpoint, but the `## Recommended Scope` lines (`Recommendation:`, `Delivery model:`, `Blocked by platform:`, `Need profile:`) must also survive into the SDD — every template hosts a `## Recommended Scope` section between `## Decisions Made` and `## Action Required`, emitted in BOTH execution modes ([sdd-writing-guide.md](sdd-writing-guide.md) Step 2 item 3). Autonomous mode skips the checkpoint presentation, so the SDD copy is the only durable record of the Constraint Gate outcome.
|
|
110
110
|
|
|
111
111
|
### Confirmation question
|
|
112
112
|
|
|
@@ -119,7 +119,7 @@ This step runs in BOTH Autonomous and Interactive modes — it is a hard blocker
|
|
|
119
119
|
- For non-RPA scopes (e.g., Single-product Agent), rows 3-5 are replaced by the template's own product row (framework choice, app type, trigger) — never `N/A` rows. A Flow or BPMN SDD also carries the **Maestro engine** row: the row-5 structures the process needs, counted ([product-selection-guide.md § Maestro disambiguation](../shared/product-selection-guide.md#maestro-disambiguation--bpmn-vs-flow-vs-case)); two or more on a Flow template means the wrong template — rewrite it on the BPMN template.
|
|
120
120
|
- The block does NOT replace the per-section detail later in the SDD — the product body still carries the full justification in its architecture, stage/task, framework, or project-structure sections. The block is the **scannable index** of those decisions.
|
|
121
121
|
|
|
122
|
-
In BOTH modes, also emit the `## Recommended Scope` block directly after `## Decisions Made` (directly after the Planner Handoff header when that block is absent — interactive runs): copy the Phase 1 summary's `Recommendation:`, `Delivery model:`,
|
|
122
|
+
In BOTH modes, also emit the `## Recommended Scope` block directly after `## Decisions Made` (directly after the Planner Handoff header when that block is absent — interactive runs): copy the Phase 1 summary's `Recommendation:`, `Delivery model:`, `Blocked by platform:`, and `Need profile:` lines (see [scope-recommendation-guide.md → Summary block](scope-recommendation-guide.md#summary-block)). Autonomous mode skips the Phase 1 presentation, so this copy is the only durable record of the Constraint Gate outcome. Then run `node "<SKILL_DIR>/scripts/scope-check.mjs" "<SDD_PATH>"` on every SDD file written; a `FAIL:` line is a defect — fix the line or table it names (`Blocked by platform:`, `Need profile:`, an RPA SDD's §11 `### Project Mode Decision`) and rerun until it prints `OK`.
|
|
123
123
|
|
|
124
124
|
4. If any `[SME REVIEW]` items remain, add the `## Action Required — SME Review Items` section after the Planner Handoff header (and after the `## Decisions Made` / `## Recommended Scope` blocks if present) and before the product body, before the Table of Contents in every template. It is written in the item form of [open-questions-guide.md](../shared/open-questions-guide.md), one item per decision, as the template's block shows:
|
|
125
125
|
- each item is numbered `D1`, `D2`, … in the order of the sections it concerns;
|
|
@@ -160,7 +160,7 @@ This step runs in BOTH Autonomous and Interactive modes — it is a hard blocker
|
|
|
160
160
|
8. **Template-superset check (mandatory before the item 9 summary).** After writing each SDD file, re-read it and extract every H2 (`## `) and H3 (`### `) heading. Compare against the template's Table of Contents and required subsections. The generated SDD's heading set MUST be a superset — extra subsections are fine, missing template sections are an SDD defect. A template heading is not required when the template itself makes it conditional: an alternative the design did not pick ("Generate EITHER Option A OR Option B — delete the other"), and a subsection whose own note sets a condition that does not hold ("Include only when…", "omit when…", "Master Project only"). A subsection the template repeats per sub-project ("repeat this section per sub-project") may sit one heading level deeper. Every other template H2 and H3 is required.
|
|
161
161
|
|
|
162
162
|
Minimum required H2 headings per template:
|
|
163
|
-
- **RPA template:** every H2 its Table of Contents lists; §12 Queue Architecture may be omitted only when the design defines or consumes no Orchestrator queue.
|
|
163
|
+
- **RPA template:** every H2 its Table of Contents lists; §12 Queue Architecture may be omitted only when the design defines or consumes no Orchestrator queue. §11 Project Structure always carries `### Project Type`, `### Project Mode Decision` (its ten-column table, one row per project) and `### Recommended Structure`, for a Single Project too. Run `node "<SKILL_DIR>/scripts/scope-check.mjs" "<SDD_PATH>"` after this check; it fails an RPA SDD whose Project Mode Decision is missing or compressed.
|
|
164
164
|
- **Case template:** §1 Case Definition, §2 Stages & Tasks, §3 Personas & App Views, §4 Integrations, plus the unnumbered H2s `## Document History`, `## Planner Handoff`, `## Table of Contents`, `## Non-Functional Requirements`, `## Testing Strategy`, `## Next Steps`. Also verify every modeled stage has a `### Stage ...` or `### Secondary Stage ...` block, every modeled task has a `##### Task ...` detail block, and every task detail block contains the exact marker `**Task envelope**` before its Required / Run Only Once / Skip Condition table. Run `node "<SKILL_DIR>/scripts/case-sdd-check.mjs" "<NAME>.md"` on the written file (a `*.draft.md` takes `--draft`); each `FAIL:` line is a defect in the file: repair it in place and run it again until it prints `OK`. Then walk [case-review-and-conformance-guide.md](case-review-and-conformance-guide.md) § SDD Conformance Checklist against the file (items 30–33 only when finalizing a draft); `Template validation: passed` needs every item PASS.
|
|
165
165
|
- **Other templates:** every H2 the template's Table of Contents lists.
|
|
166
166
|
|
|
@@ -10,7 +10,9 @@
|
|
|
10
10
|
// holds **Type:**, **Activation Mode:**, **Design Rationale:**, **Entry Condition:** and **Task envelope**; every
|
|
11
11
|
// **Type:** is `Stage` or one of the 17 task types, written bare; **Stage Kind:** is primary or secondary; no stage,
|
|
12
12
|
// task or SLA title holds a ':'; every § SLA Response Map row follows the template's cell rules and closes both ways
|
|
13
|
-
// with the SDD's `sla-status-change(...)` rows
|
|
13
|
+
// with the SDD's `sla-status-change(...)` rows; § Personas has the template's six cells, Scope Case or Stages and only the
|
|
14
|
+
// template's permission keys; an action task's **HITL Implementation:** is `Action App: <title>`, never another task's;
|
|
15
|
+
// a task's Activation Mode is the same in its Tasks table row and its block. Exit 1 with one FAIL line per defect.
|
|
14
16
|
import { existsSync, readFileSync } from "node:fs";
|
|
15
17
|
|
|
16
18
|
const TASK_TYPES = new Set([
|
|
@@ -120,6 +122,71 @@ for (const b of text.split(/^(?=#{3,5} )/m)) {
|
|
|
120
122
|
if (p && personas.has(p) && rc && dash(rc[1])) fails.push(`task '${strip(t[1])}': Persona ${p}, Recipient — (write **Recipient:** Role:${p})`);
|
|
121
123
|
}
|
|
122
124
|
|
|
125
|
+
// § Personas: the template's six columns, Scope Case or Stages, Permissions from the template's key set
|
|
126
|
+
{
|
|
127
|
+
const KEYS = new Set(["View", "Create", "Edit", "Close", "Reopen", "Assign", "ManageSLA", "RunAdhocTasks", "SelectStage",
|
|
128
|
+
"ViewSummary", "LogsView", "TasksView", "TasksCreate", "TasksEdit", "TasksDelete", "TaskAssignmentView",
|
|
129
|
+
"TaskAssignmentCreate", "TaskAssignmentEdit", "TaskAssignmentDelete", "TaskSelfAssignmentCreate",
|
|
130
|
+
"TaskSelfAssignmentEdit", "TaskSelfAssignmentDelete"]);
|
|
131
|
+
const STAGE_KEYS = new Set(["View", "Assign", "ManageSLA", "RunAdhocTasks"]);
|
|
132
|
+
const block = text.match(/^### Personas\s*\n([\s\S]*?)(?=^#{2,3} |(?![\s\S]))/m)?.[1] ?? "";
|
|
133
|
+
const lines = block.split("\n").map((l) => l.trim()).filter((l) => l.startsWith("|") && !/^\|[\s|:-]+\|$/.test(l));
|
|
134
|
+
const want = "| Persona | Scope | Stages | Permissions | Description | Notes |";
|
|
135
|
+
if (lines.length && lines[0].replace(/\s+/g, " ") !== want) {
|
|
136
|
+
fails.push(`Personas header is '${lines[0]}' — write the template's '${want}' and re-render every row into its six cells`);
|
|
137
|
+
} else {
|
|
138
|
+
for (const l of lines.slice(1)) {
|
|
139
|
+
const c = l.replace(/^\||\|$/g, "").split("|").map((x) => x.trim());
|
|
140
|
+
const who = c[0]?.replace(/`/g, "") || "?";
|
|
141
|
+
if (c.length !== 6) { fails.push(`persona '${who}': ${c.length} cells, the header 6`); continue; }
|
|
142
|
+
if (c[0].startsWith("<")) continue; // the template's own placeholder row
|
|
143
|
+
if (c[1] !== "Case" && c[1] !== "Stages") fails.push(`persona '${who}': Scope '${c[1]}' — write Case (every stage, Stages —) or Stages`);
|
|
144
|
+
const bad = c[3].split(",").map((k) => k.trim()).filter((k) => k && !dash(k) && !KEYS.has(k));
|
|
145
|
+
if (bad.length) fails.push(`persona '${who}': Permissions ${bad.join(", ")} not a template permission key — task work comes from each task's Recipient, so drop it (Reassign → Assign) and keep the prose in Notes`);
|
|
146
|
+
const wide = c[1] === "Stages" ? c[3].split(",").map((k) => k.trim()).filter((k) => KEYS.has(k) && !STAGE_KEYS.has(k)) : [];
|
|
147
|
+
if (wide.length) fails.push(`persona '${who}': a Stages persona holds only View, Assign, ManageSLA, RunAdhocTasks — not ${wide.join(", ")}`);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
// action tasks: the HITL cell is `Action App: <title>` and the title is never another task's
|
|
153
|
+
{
|
|
154
|
+
const blocks = text.split(/^(?=#{3,5} )/m)
|
|
155
|
+
.map((b) => ({ b, h: b.split("\n")[0].match(/^#####\s+Task\s+S?\d+\.\d+:\s*(.+?)\s*$/) }))
|
|
156
|
+
.filter((x) => x.h)
|
|
157
|
+
.map(({ b, h }) => ({ b, name: strip(h[1]), id: h[1].match(/\(`?(t\d+)`?\)/)?.[1] }));
|
|
158
|
+
const names = new Set(blocks.map((x) => x.name));
|
|
159
|
+
for (const { b, name, id } of blocks) {
|
|
160
|
+
const cell = b.match(/^\*\*HITL Implementation:\*\*\s*(.*?)\s*$/m)?.[1];
|
|
161
|
+
if (cell == null) continue;
|
|
162
|
+
if (!/^Action App:/.test(cell)) { fails.push(`task '${name}': **HITL Implementation:** ${cell} — the only form is 'Action App: <title>', the title from this task's own name`); continue; }
|
|
163
|
+
const title = cell.replace(/^Action App:\s*/, "");
|
|
164
|
+
const ids = [...title.matchAll(/\(`?(t\d+)`?\)/g)].map((m) => m[1]).filter((x) => x !== id);
|
|
165
|
+
const other = strip(title.replace(/\s+Action App\s*$/i, "").replace(/\s*\(`?t\d+`?\)/g, ""));
|
|
166
|
+
if (ids.length || (other !== name && names.has(other))) {
|
|
167
|
+
fails.push(`task '${name}': **HITL Implementation:** names another task's Action App (${title}) — write 'Action App: ${name}'`);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// Activation Mode: a Tasks table cell and its task block's **Activation Mode:** line say the same literal
|
|
173
|
+
{
|
|
174
|
+
const modeOf = new Map();
|
|
175
|
+
for (const table of text.match(/^\|[^\n]*\bTask Name\b[^\n]*\bActivation Mode\b[^\n]*\|\n(?:\|[^\n]*\|\n?)+/gm) ?? []) {
|
|
176
|
+
const rows = table.trim().split("\n").map((r) => r.split("|").slice(1, -1).map((c) => c.trim().replace(/`/g, "")));
|
|
177
|
+
const ni = rows[0].indexOf("Task Name"), ai = rows[0].indexOf("Activation Mode");
|
|
178
|
+
for (const r of rows.slice(2)) if (r[ni] && r[ai]) modeOf.set(strip(r[ni]), r[ai]);
|
|
179
|
+
}
|
|
180
|
+
for (const b of text.split(/^(?=#{3,5} )/m)) {
|
|
181
|
+
const t = b.split("\n")[0].match(/^#####\s+Task\s+S?\d+\.\d+:\s*(.+?)\s*$/);
|
|
182
|
+
const m = t && b.match(/^\*\*Activation Mode:\*\*\s*`?([^`\s]+)/m);
|
|
183
|
+
if (!m) continue;
|
|
184
|
+
const row = modeOf.get(strip(t[1]));
|
|
185
|
+
const lit = (s) => s.toLowerCase().match(/[a-z-]+/)?.[0] ?? "";
|
|
186
|
+
if (row && lit(row) !== lit(m[1])) fails.push(`task '${strip(t[1])}': Tasks table Activation Mode '${row}', task block '${m[1]}' — one literal in both (a task that starts after another is never parallel)`);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
123
190
|
// **Type:** values: written bare, no backticks or prose — the build reads the token as written
|
|
124
191
|
for (const [, t] of text.matchAll(/^\*\*Type:\*\*\s*(\S+)/gm)) {
|
|
125
192
|
if (t === "Stage" || t === "ExceptionStage" || TASK_TYPES.has(t)) continue;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
// Checks an SDD's Constraint Gate record: on Automation Suite older than 2.2510.2 the
|
|
3
|
-
// `## Recommended Scope` block's `Blocked by platform:` line names Maestro
|
|
3
|
+
// `## Recommended Scope` block's `Blocked by platform:` line names Maestro, and the block carries its
|
|
4
|
+
// `**Need profile:**` line. An RPA SDD (its `## Master Project Architecture` / `## Implementation Mode`
|
|
5
|
+
// sections) also keeps §11's `### Project Mode Decision` table with its Attendance and Initiation columns.
|
|
4
6
|
// Usage: node scope-check.mjs <NAME>-sdd.md
|
|
5
7
|
// Prints `OK: ...` (exit 0) or one `FAIL: ...` line per defect (exit 1).
|
|
6
8
|
import { readFileSync } from "node:fs";
|
|
@@ -31,8 +33,26 @@ if (as && olderThanMaestro(as[1]) && !/maestro/i.test(blocked)) {
|
|
|
31
33
|
fails.push(`Delivery model is Automation Suite ${as[1]}, older than 2.2510.2, and '**Blocked by platform:**' does not name Maestro — add 'Maestro (Flow, BPMN, Case) → <alternative the design applies>' even when no Maestro product was picked`);
|
|
32
34
|
}
|
|
33
35
|
|
|
36
|
+
if (/^## Recommended Scope\s*$/m.test(text) && !line("Need profile")) {
|
|
37
|
+
fails.push("'## Recommended Scope' has no '**Need profile:** <core need and target KPI>' line — copy it from the Phase 1 summary (design-guide.md Step 3.5)");
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (/^##\s+.*\b(Master Project Architecture|Implementation Mode)\s*$/m.test(text)) {
|
|
41
|
+
const at = text.search(/^###\s+.*Project Mode Decision\s*$/m);
|
|
42
|
+
if (at < 0) {
|
|
43
|
+
fails.push("RPA SDD has no '### Project Mode Decision' under §11 Project Structure — write the template's ten-column table (Project | Type | Compatibility | Authoring | Attendance | Initiation | Framework | Persistence | Packaging), one row per project");
|
|
44
|
+
} else {
|
|
45
|
+
const body = text.slice(at).split("\n").slice(1);
|
|
46
|
+
const end = body.findIndex((l) => /^#{1,3}\s/.test(l));
|
|
47
|
+
const section = (end < 0 ? body : body.slice(0, end)).join("\n");
|
|
48
|
+
const header = section.split("\n").find((l) => /^\|/.test(l.trim())) ?? "";
|
|
49
|
+
const missing = ["Attendance", "Initiation", "Framework", "Packaging"].filter((c) => !header.includes(c));
|
|
50
|
+
if (missing.length) fails.push(`'### Project Mode Decision' table lacks the ${missing.join(", ")} column(s) — write the template's ten-column table, never a Decision / Selected mode / Reason table`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
34
54
|
if (fails.length) {
|
|
35
55
|
for (const f of fails) console.log(`FAIL: ${f}`);
|
|
36
56
|
process.exit(1);
|
|
37
57
|
}
|
|
38
|
-
console.log(`OK: Constraint Gate record${as ? `; Automation Suite ${as[1]}` : ""}${blocked ? `; blocked: ${blocked.slice(0, 80)}` : ""}`);
|
|
58
|
+
console.log(`OK: Constraint Gate record and template lines${as ? `; Automation Suite ${as[1]}` : ""}${blocked ? `; blocked: ${blocked.slice(0, 80)}` : ""}`);
|
|
@@ -95,6 +95,8 @@ uip rules describe <RULE_NAME> --folder-path <FOLDER_PATH> --output json
|
|
|
95
95
|
|
|
96
96
|
Each command takes `--folder-path` or `--folder-key`, never both. Exception: `list --all-folders` spans every folder you can see (mutually exclusive with the folder flags) — use it to locate a rule when its folder is unknown. `describe` returns the active version's entry points, with `InputArguments` and `OutputArguments` as JSON Schema strings. `OutputArguments` carrying `"x-uipath-decision-keyed": true` nests each output under its decision's name.
|
|
97
97
|
|
|
98
|
+
A deployed rule is held by the Business Rules service, or still by Orchestrator when it was deployed before rules moved there; each row's `Source` (`BusinessRules` or `Orchestrator`) says which. `get`, `versions`, `describe` and `list --all-folders` find a rule in either. `list` on one folder shows the service's rules there, or Orchestrator's when the service holds none in that folder. When it leaves Orchestrator's rules out, it says so on stderr: read those by name with `get`, or find them with `list --all-folders`.
|
|
99
|
+
|
|
98
100
|
Binding a rule into a process, workflow, or case belongs to that artifact's skill.
|
|
99
101
|
|
|
100
102
|
## Reference Navigation
|
|
@@ -54,5 +54,13 @@ No `Data.traceId` means the engine did not trace the run (tracing is off for the
|
|
|
54
54
|
| `Missing required option --folder-path, --folder-key or --all-folders.` | Pass the rule's folder (`uip or folders list` finds folder paths), or `--all-folders` on `list`. |
|
|
55
55
|
| `Option --all-folders cannot be used with --folder-path or --folder-key.` | Pass only one of them. |
|
|
56
56
|
| `Options --folder-path and --folder-key cannot be used together.` | Pass one of them. |
|
|
57
|
-
| `Business rule '<NAME>' was not found in folder '<FOLDER_PATH>'.` | Run `uip rules list --folder-path "<FOLDER_PATH>"` to see the rules in that folder. |
|
|
57
|
+
| `Business rule '<NAME>' was not found in folder '<FOLDER_PATH>'.` | Run `uip rules list --folder-path "<FOLDER_PATH>"` to see the rules in that folder, or `uip rules list --all-folders` to find the rule when its folder is unknown. |
|
|
58
|
+
| `Business rule '<NAME>' is not in the resource catalog for folder '<FOLDER_PATH>' yet.` | Normal right after a deploy; wait a minute and run the command again. If it fails again, show the user the error and stop. |
|
|
59
|
+
| `Business rule '<NAME>' is in the resource catalog for folder '<FOLDER_PATH>', but the Business Rules service could not export it (404).` | Normal for a few minutes after a deploy; run it again shortly. If it keeps failing, the rule was deleted and the catalog has not caught up. |
|
|
60
|
+
| `Business rule '<NAME>' is in the resource catalog for folder '<FOLDER_PATH>', but Orchestrator could not export it (404).` | Same as the row above. |
|
|
61
|
+
| `Business Rules isn't supported on the connected environment.` | Stop; this environment has no Business Rules service. |
|
|
62
|
+
| `The Business Rules service did not accept this login (401).` | Log in as a user with `uip login`; an external application login cannot read business rules. |
|
|
63
|
+
| `Forbidden (403). Reading business rules needs the BusinessRules.View permission in the folder, on an environment with Business Rules turned on.` (in `Instructions`) | Stop; the user needs that permission in the rule's folder. No login or tenant change fixes it. |
|
|
64
|
+
| `The Business Rules service did not answer within <SECONDS> seconds.` | Run the command again once; if it times out again, show the user the error and stop. |
|
|
65
|
+
| `The Business Rules service answered with a body that is not a page of rules (<STATUS>).` | Run the command again once; if it fails again, show the user the error and stop. |
|
|
58
66
|
| `Business rule '<NAME>' has no argument contract on its resource.` | The rule was deployed without `entry-points.json`; redeploy it from its solution with `uip solution publish` and `uip solution deploy run`. |
|
package/version-manifest.json
CHANGED