@uipath/skills 1.206.0 → 1.206.1
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/.claude-plugin/marketplace.json +1 -1
- package/.claude-plugin/plugin.json +1 -1
- package/.cursor-plugin/plugin.json +1 -1
- package/CODEOWNERS +34 -7
- package/README.md +2 -2
- package/package.json +2 -2
- package/skills/uipath-genome/SKILL.md +35 -88
- package/skills/uipath-genome/references/build-guide.md +61 -0
- package/skills/uipath-genome/references/completion-report-guide.md +93 -0
- package/skills/uipath-genome/references/composite-interactions-guide.md +39 -0
- package/skills/uipath-genome/references/configuration-questions-guide.md +68 -0
- package/skills/uipath-genome/references/execution-guide.md +45 -166
- package/skills/uipath-genome/references/execution-parts-guide.md +84 -17
- package/skills/uipath-genome/references/genome-reading-guide.md +153 -0
- package/skills/uipath-genome/references/live-application-guide.md +23 -9
- package/skills/uipath-genome/references/offline-definition-workarounds-guide.md +4 -4
- package/skills/uipath-genome/references/open-items-guide.md +3 -3
- package/skills/uipath-genome/references/package-doc-errata-guide.md +8 -0
- package/skills/uipath-genome/references/refactor-guide.md +38 -39
- package/skills/uipath-genome/references/selector-matching-guide.md +59 -0
- package/skills/uipath-genome/references/selector-translation-guide.md +13 -66
- package/skills/uipath-genome/references/selector-translation-sap-guide.md +7 -5
- package/skills/uipath-genome/references/selector-translation-web-guide.md +2 -2
- package/skills/uipath-genome/references/source-frameworks-guide.md +21 -0
- package/skills/uipath-genome/references/source-migration-guide.md +48 -19
- package/skills/uipath-genome/references/test-execution-guide.md +8 -7
- package/skills/uipath-genome/references/transactional-execution-guide.md +41 -13
- package/skills/uipath-genome/references/ui-target-migration-guide.md +12 -49
- package/skills/uipath-genome/references/ui-verification-guide.md +9 -1
- package/skills/uipath-maestro-case/SKILL.md +7 -7
- package/skills/uipath-maestro-case/references/evals/evals.json +5 -5
- package/skills/uipath-maestro-case/references/planning.md +5 -5
- package/skills/uipath-maestro-case/references/plugins/conditions/task-entry-conditions/planning.md +2 -2
- package/skills/uipath-maestro-case/references/plugins/sla/planning.md +1 -1
- package/skills/uipath-maestro-case/references/registry-discovery.md +3 -3
- package/skills/uipath-planner/SKILL.md +80 -199
- package/skills/uipath-planner/assets/templates/agent-sdd-template.md +17 -17
- package/skills/uipath-planner/assets/templates/api-workflow-sdd-template.md +15 -13
- package/skills/uipath-planner/assets/templates/bpmn-sdd-template.md +19 -19
- package/skills/uipath-planner/assets/templates/case-sdd-task-details-template.md +173 -0
- package/skills/uipath-planner/assets/templates/{case/case-sdd-template.md → case-sdd-template.md} +51 -229
- package/skills/uipath-planner/assets/templates/coded-app-sdd-template.md +16 -14
- package/skills/{uipath-genome → uipath-planner}/assets/templates/component-genome-template.md +9 -5
- package/skills/uipath-planner/assets/templates/flow-sdd-template.md +17 -15
- package/skills/{uipath-genome → uipath-planner}/assets/templates/process-genome-template.md +11 -7
- package/skills/uipath-planner/assets/templates/rpa-sdd-template.md +50 -73
- package/skills/uipath-planner/references/author/author-guide.md +119 -0
- package/skills/uipath-planner/references/author/genome-from-sdd-guide.md +36 -0
- package/skills/uipath-planner/references/author/scenario-proposal-guide.md +30 -0
- package/skills/uipath-planner/references/decompose/decompose-guide.md +223 -0
- package/skills/uipath-planner/references/{asdd-crosswalk-guide.md → design/asdd-crosswalk-guide.md} +6 -4
- package/skills/uipath-planner/references/{business-rules-guide.md → design/business-rules-guide.md} +3 -3
- package/skills/uipath-planner/references/design/caller-request-guide.md +92 -0
- package/skills/uipath-planner/references/design/case-data-and-time-guide.md +292 -0
- package/skills/uipath-planner/references/design/case-product-guide.md +243 -0
- package/skills/uipath-planner/references/design/case-review-and-conformance-guide.md +166 -0
- package/skills/uipath-planner/references/design/design-guide.md +296 -0
- package/skills/uipath-planner/references/{package-selection-guide.md → design/package-selection-guide.md} +16 -13
- package/skills/uipath-planner/references/{rpa-product-guide.md → design/rpa-product-guide.md} +23 -53
- package/skills/uipath-planner/references/design/scope-recommendation-guide.md +134 -0
- package/skills/uipath-planner/references/design/sdd-writing-guide.md +235 -0
- package/skills/uipath-planner/references/design/solution-composition-guide.md +153 -0
- package/skills/uipath-planner/references/edit/edit-guide.md +66 -0
- package/skills/uipath-planner/references/extract/extract-guide.md +230 -0
- package/skills/uipath-planner/references/extract/source-frameworks-guide.md +22 -0
- package/skills/uipath-planner/references/extract/uipath-non-rpa-signals-guide.md +121 -0
- package/skills/uipath-planner/references/extract/uipath-rpa-signals-guide.md +88 -0
- package/skills/uipath-planner/references/extract/uipath-source-guide.md +193 -0
- package/skills/uipath-planner/references/shared/component-placement-guide.md +99 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/defect-verification-guide.md +4 -4
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/extracted-genome-guide.md +15 -14
- package/skills/uipath-planner/references/shared/extraction-parts-guide.md +66 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/genome-format-guide.md +63 -34
- package/skills/uipath-planner/references/{multi-skill-patterns-guide.md → shared/multi-skill-patterns-guide.md} +28 -27
- package/skills/uipath-planner/references/{pdd-analysis-guide.md → shared/pdd-analysis-guide.md} +27 -72
- package/skills/uipath-planner/references/{plan-and-tasks-format.md → shared/plan-and-tasks-format.md} +43 -67
- package/skills/uipath-planner/references/{platform-availability-guide.md → shared/platform-availability-guide.md} +56 -1
- package/skills/uipath-planner/references/shared/product-selection-guide.md +202 -0
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/skill-mapping-guide.md +24 -4
- package/skills/uipath-planner/references/{tenant-library-search-guide.md → shared/tenant-library-search-guide.md} +10 -8
- package/skills/{uipath-genome/references → uipath-planner/references/shared}/transactional-shape-guide.md +39 -8
- package/skills/uipath-planner/scripts/check-genome.mjs +801 -0
- package/skills/uipath-planner/scripts/sdd-fingerprint.mjs +71 -0
- package/skills/uipath-planner/scripts/sdd-to-docx.mjs +87 -0
- package/skills/uipath-test/SKILL.md +3 -3
- package/version-manifest.json +1 -1
- package/skills/uipath-genome/CLAUDE.md +0 -85
- package/skills/uipath-genome/assets/examples/artemis-2-mission-monitor-genome.md +0 -126
- package/skills/uipath-genome/assets/examples/classify-document-and-create-validation-genome.md +0 -117
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/exception-triage-agent-genome.md +0 -96
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-extraction-genome.md +0 -128
- package/skills/uipath-genome/assets/examples/invoice-processing-genome/invoice-orchestration-genome.md +0 -115
- package/skills/uipath-genome/assets/examples/invoice-processing-genome.md +0 -136
- package/skills/uipath-genome/assets/examples/purchase-requisition-entry-genome.md +0 -224
- package/skills/uipath-genome/assets/examples/salesforce-accounts-and-contacts-genome.md +0 -151
- package/skills/uipath-genome/references/authoring-guide.md +0 -98
- package/skills/uipath-genome/references/editing-guide.md +0 -57
- package/skills/uipath-genome/references/extraction-guide.md +0 -166
- package/skills/uipath-genome/references/extraction-parts-guide.md +0 -45
- package/skills/uipath-genome/references/parts-guide.md +0 -22
- package/skills/uipath-genome/references/uipath-source-guide.md +0 -404
- package/skills/uipath-genome/scripts/check-genome.py +0 -670
- package/skills/uipath-planner/assets/templates/case/sdd-viewer.html +0 -1530
- package/skills/uipath-planner/references/case/case-design-lane-guide.md +0 -327
- package/skills/uipath-planner/references/case/case-design-layers-guide.md +0 -503
- package/skills/uipath-planner/references/case/case-sdd-conformance-checklist.md +0 -123
- package/skills/uipath-planner/references/non-pdd-lane-guide.md +0 -196
- package/skills/uipath-planner/references/pdd-driven-lane-guide.md +0 -210
- package/skills/uipath-planner/references/product-selection-guide.md +0 -673
- package/skills/uipath-planner/references/sdd-generation-guide.md +0 -613
- package/skills/uipath-planner/scripts/docx-extract.ps1 +0 -59
- package/skills/uipath-planner/scripts/docx-extract.sh +0 -54
- package/skills/uipath-planner/scripts/sdd-to-docx.ps1 +0 -74
- package/skills/uipath-planner/scripts/sdd-to-docx.sh +0 -76
- /package/skills/uipath-planner/references/{attended-reauth-pattern-guide.md → design/attended-reauth-pattern-guide.md} +0 -0
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Prints the fingerprint a genome's `Designed in:` line records for its SDD (Node.js built-ins only).
|
|
3
|
+
//
|
|
4
|
+
// node sdd-fingerprint.mjs <sdd.md>
|
|
5
|
+
//
|
|
6
|
+
// sha256 of the SDD with LF line endings and without its `Genome` handoff row, which `author` writes
|
|
7
|
+
// after the SDD is agreed, or an older SDD's `Tasks file` row. A solution root SDD (`Project SDD role`
|
|
8
|
+
// root) is hashed followed by each child SDD it lists, each normalized the same way. check-genome.mjs imports
|
|
9
|
+
// sddFingerprint; its strict profile fails a genome whose SDD changed since the genome was written.
|
|
10
|
+
//
|
|
11
|
+
// Exit codes: 0 success · 1 usage error, unreadable file or missing child SDD
|
|
12
|
+
|
|
13
|
+
import { createHash } from 'node:crypto';
|
|
14
|
+
import { readFileSync, realpathSync } from 'node:fs';
|
|
15
|
+
import { dirname, resolve } from 'node:path';
|
|
16
|
+
import { pathToFileURL } from 'node:url';
|
|
17
|
+
|
|
18
|
+
const LATE_ROWS = /^\|\s*\*\*(Tasks file|Genome)\*\*\s*\|.*\n?/gm;
|
|
19
|
+
const ROOT_ROLE = /^\|\s*\*\*Project SDD role\*\*\s*\|\s*root\s*\|/im;
|
|
20
|
+
// children: every `*-sdd.md` link target or backticked path in the root, and every bare one in a table row or
|
|
21
|
+
// list item, resolved against the root's folder, in order, once each, the root excluded
|
|
22
|
+
const REF = /\[[^\]]*\]\(([^)\s#]*)[^)]*\)|`([^`\s]*)`|([^\s|`()[\]<>*,;]+)/g;
|
|
23
|
+
const INDEX_ROW = /^\s*(?:\||[-*+]\s|\d+[.)]\s)/;
|
|
24
|
+
const SDD_FILE = /-sdd\.md$/;
|
|
25
|
+
|
|
26
|
+
/** The child SDD paths a root lists, as written, in order. */
|
|
27
|
+
function childRefs(text) {
|
|
28
|
+
return text.split('\n').flatMap((line) => {
|
|
29
|
+
const row = INDEX_ROW.test(line);
|
|
30
|
+
return [...line.matchAll(REF)]
|
|
31
|
+
.map((m) => m[1] ?? m[2] ?? (row && !m[3].includes('://') ? m[3].replace(/[.:]+$/, '') : ''))
|
|
32
|
+
.filter((ref) => SDD_FILE.test(ref));
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const normalize = (text) => text.replace(/^/, '').replace(/\r\n?/g, '\n').replace(LATE_ROWS, '');
|
|
37
|
+
|
|
38
|
+
function read(path, what) {
|
|
39
|
+
try {
|
|
40
|
+
return normalize(readFileSync(path, 'utf8'));
|
|
41
|
+
} catch (e) {
|
|
42
|
+
throw new Error(`cannot read ${what}: ${e.message}`);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/** The fingerprint of an SDD, a solution root's covering every child it lists; throws when the SDD or a child cannot be read. */
|
|
47
|
+
export function sddFingerprint(file) {
|
|
48
|
+
const root = read(file, file);
|
|
49
|
+
const hash = createHash('sha256').update(root);
|
|
50
|
+
if (ROOT_ROLE.test(root)) {
|
|
51
|
+
const self = resolve(file);
|
|
52
|
+
const children = [...new Set(childRefs(root).map((ref) => resolve(dirname(self), ref)))].filter((p) => p !== self);
|
|
53
|
+
for (const child of children) hash.update(read(child, `child SDD ${child} listed by ${file}`));
|
|
54
|
+
}
|
|
55
|
+
return hash.digest('hex');
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
const entry = (() => { try { return pathToFileURL(realpathSync(process.argv[1])).href; } catch { return ''; } })();
|
|
59
|
+
if (import.meta.url === entry) {
|
|
60
|
+
const file = process.argv[2];
|
|
61
|
+
if (!file || process.argv.length > 3) {
|
|
62
|
+
console.error('Usage: node sdd-fingerprint.mjs <sdd.md>');
|
|
63
|
+
process.exit(1);
|
|
64
|
+
}
|
|
65
|
+
try {
|
|
66
|
+
process.stdout.write(sddFingerprint(file) + '\n');
|
|
67
|
+
} catch (e) {
|
|
68
|
+
console.error(`ERROR: ${e.message}`);
|
|
69
|
+
process.exit(1);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// SDD markdown to Word through pandoc (Node.js built-ins only, every platform).
|
|
3
|
+
//
|
|
4
|
+
// node sdd-to-docx.mjs <sdd.md> [output.docx] [--reference-doc <template.docx>]
|
|
5
|
+
// node sdd-to-docx.mjs --headings <template.docx>
|
|
6
|
+
//
|
|
7
|
+
// Convert mode writes a .docx with a table of contents; --reference-doc applies the template's
|
|
8
|
+
// styles. --headings prints the template's Markdown headings, one per line, to map its sections.
|
|
9
|
+
// Mermaid blocks stay as code: pandoc does not render them. --sandbox keeps pandoc from reading
|
|
10
|
+
// any file or URL the documents reference; only the files named here are read.
|
|
11
|
+
//
|
|
12
|
+
// Exit codes: 0 success · 1 usage error · 2 pandoc missing · 3 conversion failed
|
|
13
|
+
|
|
14
|
+
import { spawnSync } from 'node:child_process';
|
|
15
|
+
import { existsSync } from 'node:fs';
|
|
16
|
+
import { basename, extname } from 'node:path';
|
|
17
|
+
|
|
18
|
+
const USAGE = [
|
|
19
|
+
'Usage: node sdd-to-docx.mjs <sdd.md> [output.docx] [--reference-doc <template.docx>]',
|
|
20
|
+
' node sdd-to-docx.mjs --headings <template.docx>',
|
|
21
|
+
].join('\n');
|
|
22
|
+
|
|
23
|
+
function fail(code, message) {
|
|
24
|
+
console.error(message);
|
|
25
|
+
process.exit(code);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function requireFile(file, label) {
|
|
29
|
+
if (!file) fail(1, USAGE);
|
|
30
|
+
if (!existsSync(file)) fail(1, `ERROR: ${label} not found: ${file}`);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function pandoc(args, capture) {
|
|
34
|
+
const result = spawnSync('pandoc', args, {
|
|
35
|
+
encoding: 'utf-8',
|
|
36
|
+
stdio: capture ? ['ignore', 'pipe', 'inherit'] : 'inherit',
|
|
37
|
+
maxBuffer: 64 * 1024 * 1024,
|
|
38
|
+
});
|
|
39
|
+
if (result.error?.code === 'ENOENT') {
|
|
40
|
+
fail(2, 'ERROR: pandoc is not installed. Install it, then re-run.');
|
|
41
|
+
}
|
|
42
|
+
if (result.error || result.status !== 0) {
|
|
43
|
+
fail(3, `ERROR: pandoc failed: ${result.error?.message ?? `exit ${result.status}`}`);
|
|
44
|
+
}
|
|
45
|
+
return result.stdout;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
function parse(argv) {
|
|
49
|
+
const options = { headings: false, reference: '', positional: [] };
|
|
50
|
+
for (let i = 0; i < argv.length; i++) {
|
|
51
|
+
const arg = argv[i];
|
|
52
|
+
if (arg === '--help' || arg === '-h') {
|
|
53
|
+
console.log(USAGE);
|
|
54
|
+
process.exit(0);
|
|
55
|
+
} else if (arg === '--headings') {
|
|
56
|
+
options.headings = true;
|
|
57
|
+
} else if (arg === '--reference-doc') {
|
|
58
|
+
if (i + 1 >= argv.length) fail(1, 'ERROR: --reference-doc needs a path');
|
|
59
|
+
options.reference = argv[++i];
|
|
60
|
+
} else {
|
|
61
|
+
options.positional.push(arg);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
return options;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
const { headings, reference, positional } = parse(process.argv.slice(2));
|
|
68
|
+
|
|
69
|
+
if (headings) {
|
|
70
|
+
const [template] = positional;
|
|
71
|
+
requireFile(template, 'template');
|
|
72
|
+
const markdown = pandoc([template, '-f', 'docx', '-t', 'gfm', '--wrap=none', '--sandbox'], true);
|
|
73
|
+
for (const line of markdown.split(/\r?\n/)) {
|
|
74
|
+
if (/^#{1,6}\s/.test(line)) console.log(line);
|
|
75
|
+
}
|
|
76
|
+
process.exit(0);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
const [input, output = `${basename(input ?? '', extname(input ?? ''))}.docx`] = positional;
|
|
80
|
+
requireFile(input, 'input file');
|
|
81
|
+
const args = [input, '-f', 'gfm', '-t', 'docx', '--toc', '--toc-depth=2', '--sandbox', '-o', output];
|
|
82
|
+
if (reference) {
|
|
83
|
+
requireFile(reference, 'reference doc');
|
|
84
|
+
args.push(`--reference-doc=${reference}`);
|
|
85
|
+
}
|
|
86
|
+
pandoc(args, false);
|
|
87
|
+
console.log(`Word document: ${output}`);
|
|
@@ -32,7 +32,7 @@ Use `uip tm`; discover syntax with `uip tm --help` and `uip tm <command> <subcom
|
|
|
32
32
|
- To find which project is the default, run `uip tm project list --limit 1 --output json` without `--filter`. Test Manager lists the default first, so it is the default only when `Data[0].IsDefault` is `true`. Otherwise this login sees no default: the tenant has none yet, or it has one this login cannot open (the list leaves out projects the caller cannot open). Report that as "no default visible", not as "the tenant has none".
|
|
33
33
|
- `uip tm project get-default --output json` returns the default and **creates one when there is none**: `Default Project` (key `TMDP`), opened to the tenant's Everyone group. Run it only when the user needs a project to work in, never just to look.
|
|
34
34
|
<!-- Intended: get-default may create the tenant's default without asking; the agent then says which project it used. -->
|
|
35
|
-
- **New work with no project named goes to the default project.** When the user asks to create test cases, test sets or requirements
|
|
35
|
+
- **New work with no project named goes to the default project.** When the user asks to create test cases, test sets or requirements and names no project, run `get-default`, use its `ProjectKey`, and tell the user the work went into that project (name and key). To run a package with no project named, leave out `--project-key` (see Run an uploaded package). Only for new work: to read, change or delete existing items, ask for the project (Quick Start step 2).
|
|
36
36
|
- `uip tm project update --project-key <PROJECT_KEY> --set-default --output json` makes an existing project the default (needs `TM.Administration`, or a tenant administrator). Who can open that project does not change, so callers without access to it then get `permission_denied` from `get-default`. There is no `project create --set-default`.
|
|
37
37
|
- `permission_denied` from either command: report its `Message` and `Instructions` and stop (Rule 10).
|
|
38
38
|
- Permissions: `uip tm project-permissions get` returns `Data.Permissions` (the permission names the **caller** holds on that project) and `Data.Count`. Gated on `Project.Read`, so a successful `get` always carries at least `Project.Read` (`Count >= 1`); no read access fails with a 403 (or 404 for a project you cannot see), never a `Success` with an empty array. Only `get` is exposed.
|
|
@@ -102,9 +102,9 @@ Recording a by-hand test session (manual results produced outside any robot) fol
|
|
|
102
102
|
- `--cron` is **6 or 7 fields starting with seconds**, not Unix cron (daily at 02:00 is `0 0 2 1/1 * ? *`; the CLI refuses a five-field expression client-side). `--cron-details` is the recurrence JSON and is **required for every recurrence type**. `--start-time`/`--disable-time` are wall-clock `YYYY-MM-DDTHH:mm` read in `--timezone` — seconds or a `Z` are refused. Pass `next-runs` the ids `list` prints — the endpoint underneath is keyed by a different GUID and answers `200` with an empty list for a bad id. Cron/recurrence rules and gotchas: [references/schedules-guide.md](references/schedules-guide.md).
|
|
103
103
|
### Run an uploaded package (CI)
|
|
104
104
|
|
|
105
|
-
`uip tm run --type package --package-name <PACKAGE_NAME> --package-version <VERSION> --folder-path <FOLDER_PATH> --project-key <PROJECT_KEY> --output json` runs every test in a package already uploaded to Orchestrator, re-runs failures with `--max-retries <N>`, and writes a report. Pack and upload first with `uip rpa pack` / `uip or packages upload`.
|
|
105
|
+
`uip tm run --type package --package-name <PACKAGE_NAME> --package-version <VERSION> --folder-path <FOLDER_PATH> [--project-key <PROJECT_KEY>] --output json` runs every test in a package already uploaded to Orchestrator, re-runs failures with `--max-retries <N>`, and writes a report. Pack and upload first with `uip rpa pack` / `uip or packages upload`.
|
|
106
106
|
|
|
107
|
-
- No project named:
|
|
107
|
+
- No project named: leave out `--project-key`. The command runs in the tenant's default project (creating it if there is none, like `get-default`) and `Data.ProjectKey` names it; tell the user that project. A `permission_denied` about the default project stops (Rule 10).
|
|
108
108
|
- Get `<VERSION>` from `uip or packages versions <PACKAGE_NAME> --folder-path <FOLDER_PATH> --output json`. An app version (`1.0`) runs its latest `1.0.x` patch; an exact version must be the latest patch, and an older one exits 3 with nothing created.
|
|
109
109
|
- Under a CI step time limit, pass `--timeout <SECONDS>` below that limit (default 7200): a step killed first leaves no report.
|
|
110
110
|
- Exit 1 with `RunPackageTestsFailed` or `RunPackageCancelled` is a test result: report it, see Rule 10(d). Exit 4 is a timeout: the execution may still be running and `Data.OutputPath` holds a partial report with unfinished tests marked skipped. Report the timeout; never count skipped tests as passed. Every other non-zero exit stops (Rule 10).
|
package/version-manifest.json
CHANGED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
# uipath-genome — Subject Homes
|
|
2
|
-
|
|
3
|
-
Every subject is stated in full in exactly one file; every other mention is a one-line pointer to that file and section. Edit the home; leave the pointers. A change touching more than the home plus its pointers is putting content in the wrong file.
|
|
4
|
-
|
|
5
|
-
## Home per subject
|
|
6
|
-
|
|
7
|
-
| Subject | Home |
|
|
8
|
-
|---|---|
|
|
9
|
-
| Genome levels (component / process), test-components-are-one-test-project exception, section rules, stubs, population matrix, `*[Inferred]*`, write-then-offer-edits, complexity inference | `references/genome-format-guide.md` |
|
|
10
|
-
| Composite UI interaction **contract** (what a substep must carry) | `genome-format-guide.md` § Workflow |
|
|
11
|
-
| Credential asset per login account, Secret asset per secret with no account, a secret crossing no component boundary; secrets never in genome, data file or report; values the platform keeps per environment as assets | `genome-format-guide.md` § Platform Dependencies; at build: `execution-guide.md` § 2.2, credentials |
|
|
12
|
-
| Source Map contract rows and the step table (its columns and rules), how extracted unused parts are written and where those left out go; "genome files are the only output" (locators and rows stay in export) | `references/extracted-genome-guide.md` § Source Map |
|
|
13
|
-
| The kinds of source fact read from the source, never from its rendering (literals and case rules, counts, lengths, waits and budgets, set or typed, control-flow flags, formats, built-ins, parameter documentation, log texts, file kinds and the field a filter uses) | `extracted-genome-guide.md` § Source values |
|
|
14
|
-
| The source-defect marker, the evident intent, which behaviour the rebuild follows, user rulings, the defect index | `extracted-genome-guide.md` § Source Defects |
|
|
15
|
-
| What `scripts/check-genome.py` checks (its docstring), which the genome tasks also grade with; when each mode runs it | the script; the extraction guide Step 6b, the authoring guide Step 8, the editing guide § Check after every edit, the source-migration guide § Migration preflight |
|
|
16
|
-
| Transactional Shape: the unit-of-work test and its granularity (alternative unit of work), flows versus nested levels (the two tests of rule 12), producer and consumer roles and the Type-cell role word, queue-vs-direct choice, per-item state a queue cannot hold and the record store beside it, the three outcomes and the conditional Postponed row, step groups, two-level sources folded into one unit of work, configuration split, traceability, one Recommendation verdict, stub | `references/transactional-shape-guide.md` |
|
|
17
|
-
| Extraction pipeline, the questions of its first message (related resources, unused parts, subagents), sizing and the reading plan with what unused parts are, evidence policy for blanket screen captures, completing and checking Source Map | `references/extraction-guide.md` |
|
|
18
|
-
| Verifying a suspected source defect: the two passes, the classification table, vendor-settled semantics, verdicts from subagents, writing while verdicts are out | `references/defect-verification-guide.md` |
|
|
19
|
-
| Authoring steps, scenario proposals for a goal, platform-capability suggestions, bounded follow-ups | `references/authoring-guide.md` |
|
|
20
|
-
| Edit requests and what each updates, for any genome and for extracted genomes; the check after every edit; partial re-extraction | `references/editing-guide.md` |
|
|
21
|
-
| Build With skill names, decision tree, operate-only skills, common combinations by shape | `references/skill-mapping-guide.md` |
|
|
22
|
-
| Configuration and scaffolding questions (the source-fidelity question, the Live application and Healing pass questions among them), project/solution resolution, library gating, skill groups, owning-skill contract, what the names and texts a build writes say and never cite (run records, source ids), acceptance verdicts, the hand-off folder (its files and where each is written) and its README, the completion report with its split line | `references/execution-guide.md` |
|
|
23
|
-
| Applying or declining the transactional shape at build: split questions and their answer line, autonomous split defaults, projects a split materialises, REFramework template creation, groups and surfaces, the REFramework build items (the record store's writes and fetch, children kept in it), alternative unit of work, four-exit verification | `references/transactional-execution-guide.md` |
|
|
24
|
-
| Work in parts in either mode: the orchestrator, shared decisions before fan-out, the brief and its rulings, a ledger per part with its Resume block, resuming, per-part read plans, forks (when, fork or fresh subagent, what a fork does, review), returns as verdicts checked against the disk, one owner per shared artifact, the Subagents question with its defaults (the parts' model per mode, the cap of four at once) | `references/parts-guide.md` |
|
|
25
|
-
| What extraction's parts add: one part per component, who writes, the shared-decision list, the extraction fork's shared reads, the part's read plan, own defect verification, the return contract, reconciliation | `references/extraction-parts-guide.md` |
|
|
26
|
-
| What a build's parts add: the project owner and its shared operations, the project ledger contract and progress file, planning parts, per-activity discovery in the read plan, one host per project, linking order, solution mutations, the run brief's contents, the part report and its mechanical checks | `references/execution-parts-guide.md` |
|
|
27
|
-
| Open-items files: target-environment setup steps for the engineer (per project and per solution, in the hand-off folder) | `references/open-items-guide.md` |
|
|
28
|
-
| Migration preflight (including the secret scrub and what the build follows when the genome and the source disagree), credentials from the source's accounts, what each **kind** of source step becomes at build time, the source's names and shape kept in the rebuild and the correspondence table, executor records | `references/source-migration-guide.md` |
|
|
29
|
-
| UI target migration: the migrated-target rules, the three phases (exploration, the offline migration, the live healing pass) and that no part drives the application between them, the target spec, link ordering and idempotency, Object Repository identity, composite **patterns** (build), Element Scope, the three verification labels, the live checks every UI migration writes | `references/ui-target-migration-guide.md` |
|
|
30
|
-
| The two live phases of a migration, with a reachable application: driving it read-only and probes, exploration with its application notes, the verdict per interaction family, the seeds and the contract probe, the live healing pass (the read-only check of every target once linked, then the runs on the user's yes) | `references/live-application-guide.md` |
|
|
31
|
-
| Where a UI check goes in every build (`VerifyOptions` on the acting activity, a Check activity only for a branch, a test project's checkpoints), failure handling and logging once | `references/ui-verification-guide.md` |
|
|
32
|
-
| Test components at build: test-case shape, the test-data rules and pipeline (store → entity, files → variations), result parity, checkpoint titles and the checkpoint map per component | `references/test-execution-guide.md` |
|
|
33
|
-
| Every technology-neutral UiPath-side selector fact: tag chain per technology, attribute tiers and roles, `wnd`, matching semantics, rules 1–16 (criteria, purpose, `aaname`, captions and `<nav>` paths, position, tables, scope, identifiers, description, confidence, no-selector, one tag one node, driver verification, widget roles), § Checking a definition | `references/selector-translation-guide.md` |
|
|
34
|
-
| A technology's tags and its part of rules 4–16: web (`html`, `webctrl`, the `aaname` test, web grids and scopes, web widget anatomy) | `references/selector-translation-web-guide.md` |
|
|
35
|
-
| SAP GUI (`wnd` session attributes, `sap`, SAP tables and session windows) | `references/selector-translation-sap-guide.md` |
|
|
36
|
-
| Desktop (`uia`, `ctrl`, `java`, other tags) | `references/selector-translation-desktop-guide.md` |
|
|
37
|
-
| The definitions the offline migration builds from the target spec: seeds, shapes, the order of commands, what offline authoring cannot know; the workaround for a number attribute bound to a selector variable (temporary: the file is deleted once the UIA CLI creates a first definition offline and registers a number attribute bound to a selector variable) | `references/offline-definition-workarounds-guide.md` |
|
|
38
|
-
| Corrections to an installed package's per-activity docs until the corrected package ships, and tool defects met in builds with what the build does instead, until fixed (temporary: a package's section is deleted once that package's shipped docs carry the corrected text, a tool's row once the tool behaves as its docs say, the file once no section is left) | `references/package-doc-errata-guide.md` |
|
|
39
|
-
| UiPath source facts: reading order and designer-noise filter with the connector schema caches and the compressed connector configuration (no inventory script), detection, inventory, signals per artifact type (project settings, test projects), platform resources, the deployed state (processes, versions, binding overrides, connection identities, triggers, job history, the other processes sharing its resources) and its Source Map rows, provenance, pitfalls, which REFramework file feeds which Transactional Shape row | `references/uipath-source-guide.md` — the reference implementation of a source guide, with the sections the pack's `CONTRACT.md` gives every source guide |
|
|
40
|
-
| A refactor (executing a genome extracted from a UiPath source, or from another framework when the request asks for one): the contract (kept, changed with a reason, carried over), the refactor questions (retire, fold, target, rulings on source defects, run modes, run record, connections) and their answer line, choosing the target (steps typed by the mapping guide's decision tree, one host, coordination replaced by the target's means, capabilities confirmed without a tenant, shape-deciding probes), the refactor plan, characterization tests, shadow and write-test modes and the comparison, the Cutover section of the open items, done and its report line | `references/refactor-guide.md` |
|
|
41
|
-
| What a framework pack must contain | `CONTRACT.md` in the framework migration pack — ask the user for its location |
|
|
42
|
-
| Framework facts only: detection, inventory, signals, composite-action wording, locator formats, per-field translation tables, framework pitfalls, inventory scripts, worked examples | `<PACK_DIR>/<framework>/source-guide.md`, `selectors-guide.md`, `scripts/`, `examples/` in the framework migration pack — never in this skill |
|
|
43
|
-
| Mode detection and the boundaries with sibling skills (planner, activity-migrator), framework pack resolution (ask for location, select row, run then read), one- or two-sentence rules naming subject and home | `SKILL.md` |
|
|
44
|
-
| What each mode reads at each phase and the condition that opens each guide, the three-turn reading rule | `SKILL.md` § Read Plans |
|
|
45
|
-
|
|
46
|
-
## Rules
|
|
47
|
-
|
|
48
|
-
1. **Generic first, framework second, never application-only.** A rule that holds for any source lives in a generic guide; a source guide keeps only what is specific to its framework and points to the generic rule. Application material (Workday, SAP, …) survives only as a worked example inside the generic rule it illustrates, and only when it shows what the generic wording cannot, or in that framework's guides. Values from the run that prompted an edit (hosts, project and asset names, counts) are not examples.
|
|
49
|
-
2. **A procedure lives in the guide of the mode that runs it.** Extraction-time steps in the extraction guide, execution-time steps in the execution or migration guide, even when both run the same script.
|
|
50
|
-
3. **SKILL.md is a router.** A Critical Rule names the subject and its home in one or two sentences; it never restates conditions, numbers or examples. Anti-patterns in SKILL.md route; the prohibition in full lives with the subject.
|
|
51
|
-
4. **Anti-pattern lists hold only the file's own subjects.** Everything else is a pointer, or is deleted when the home already states the prohibition.
|
|
52
|
-
5. **A pointer may add detail only when that detail exists nowhere else.** Prefer adding it to the home.
|
|
53
|
-
6. **Catalog files are read by section, rule files in full.** The per-technology tables in a framework selectors guide are a catalog: list headings, read the sections for the technologies in play. The UiPath side's tags live in one selector guide per technology, each read whole when its technology is in play. Rules, procedures and contracts are read whole. Say which kind a file is at its top.
|
|
54
|
-
7. **Keep the external contracts** unchanged unless the change is the point: frontmatter `description`, the pack resolution steps and the pack's README § Frameworks table shape, the Source Map contract rows, script names and flags.
|
|
55
|
-
8. **No meta-commentary.** Do not write sentences about the document's own editorial behaviour or reconcile differences between files in prose; if two files disagree, fix one.
|
|
56
|
-
9. **What another skill, a CLI or an activity package's docs own is named, never restated.** A file layout, schema, field or type list owned by another skill or a CLI changes with that owner, and so do an activity's settings, modes and limits, which its package doc owns. Name the artefact or capability (the REFramework template's configuration file, the shape the entity-create command accepts, the driver default) and let the build read the details from the owner. UIA CLI syntax is the strictest case: `uip rpa uia` subcommands, their flags and artifact filenames are co-versioned with `UiPath.UIAutomation.Activities` and drift. Name the capability (driver default, attribute listing, selector evaluator, snapshot reload, the OR CLI's listing / replace / create commands, element-interaction probes) and route syntax to the package guide `{PROJECT_DIR}/.local/docs/packages/UiPath.UIAutomation.Activities/ui-automation-guide.md` § Documentation. The vocabulary is defined once in selector-translation-guide rule 15. Generic `uip rpa` commands (`validate`, `activities get-default-xaml`, …) are stable and allowed. `offline-definition-workarounds-guide.md` is the labelled temporary exception.
|
|
57
|
-
10. **Conflicts resolve toward the most recently verified statement** (a live driver pass beats a first-pass inference beats a vendor document), and the resolution is recorded in the PR.
|
|
58
|
-
11. **Name the subject, not the step.** Refer to another part of a procedure by what it is — "once every verdict on a suspected source defect is edited in", not "once every Step 4b verdict is edited in" — so the reader need not look the step up. Keep a step number only in a pointer the reader follows to that section.
|
|
59
|
-
12. **UiPath behaviour is written as the latest version shows it.** The newest package source and prerelease and the current CLI are the ground truth, with no per-version conditions; a rule that holds on every version carries the older versions' safety. `package-doc-errata-guide.md` is the labelled temporary exception: it bridges released packages until their corrected docs ship.
|
|
60
|
-
13. **The skill ships no selector checker and no target tool.** A structural selector check proves shape, not that anything matches the screen, and a maintained rule set drifts from the selector guide; the registration and linking commands follow the installed UI Automation package (rule 9). A run writes its own script where it needs one, as selector-translation-guide § Checking a definition and source-migration-guide § UI targets state.
|
|
61
|
-
|
|
62
|
-
14. **A file's boundary is its audience: mode × condition.** A rule sits in the file every session that needs it reads, and in no file a session reads without needing it. A file every session of a mode reads holds no conditional block above about 5 KB; a block under about 5 KB whose condition is common stays where it is.
|
|
63
|
-
15. **Every reference file has its row in SKILL.md § Read Plans,** keyed by a condition decidable at that phase, written in the same change as the file. Reads are named by the plan, never discovered by following pointers; a pointer into a section of a file the plan did not open is a section read.
|
|
64
|
-
16. **The framework migration pack cites this skill's rules by their subject**, in the skill's own words — a section heading or a bold rule head ("the skill's rule that one tag is one node", "the skill's Source Map contract") — never by file name or number, so files here move, split and renumber without touching the pack. Renaming a subject the pack quotes updates the pack in a paired pack PR.
|
|
65
|
-
17. **Check each added sentence against what its reader reads in that mode** (SKILL.md § Read Plans and § Source Frameworks), and cut it when those reads already give it. At Execute the pack's source guide is read only in the sections the skill points to, so a pack fact a build needs reaches it through one pointer in a file the build reads. What the owning skill's routing already opens for the work being built needs no pointer. A step that says where its output goes is not listed again among the run brief's contents or a read plan's reads.
|
|
66
|
-
|
|
67
|
-
## Where to put new content
|
|
68
|
-
|
|
69
|
-
| New content | Home |
|
|
70
|
-
|---|---|
|
|
71
|
-
| UiPath selector fact (new attribute, tier, matching quirk, node rule) | the selector guide of its technology — a new driver tag or attribute family with its tier source (package reference, or *derived*); selector-translation-guide when it holds for every technology — then reference from framework guide |
|
|
72
|
-
| New build pattern for a composite interaction that holds across technologies | ui-target-migration-guide § Composite interactions (+ source guide's wording row) |
|
|
73
|
-
| A rule for where a UI check goes, in any build | ui-verification-guide |
|
|
74
|
-
| A rule for exploring, checking or healing against a reachable application in a migration | live-application-guide; what every UI migration owes the live application, reachable or not: ui-target-migration-guide § Verifying targets |
|
|
75
|
-
| A rule for building test components or migrating their data | test-execution-guide |
|
|
76
|
-
| A build or selector fact for one technology (SAP GUI tables, a Java grid) | that technology's selector guide, read only when the technology is in play; a pointer where a package doc owns the detail |
|
|
77
|
-
| Framework's new action, locator format or pitfall | that framework's source or selectors guide |
|
|
78
|
-
| New genome section or content rule | genome-format-guide (+ templates); a Transactional Shape rule: transactional-shape-guide; a Source Map, source-value or source-defect rule: extracted-genome-guide |
|
|
79
|
-
| New edit request or a rule for edits | editing-guide |
|
|
80
|
-
| A rule for verifying suspected source defects | defect-verification-guide |
|
|
81
|
-
| A rule for parts, subagents, forks or resuming that holds in both modes | parts-guide; what one mode adds: extraction-parts-guide or execution-parts-guide |
|
|
82
|
-
| New scaffolding question or report line | execution-guide |
|
|
83
|
-
| A rule for rebuilding a UiPath automation — what a refactor keeps, asks, plans, tests, builds for verification or hands over for the cutover | refactor-guide; a fact about reading a UiPath source or its deployed state: uipath-source-guide |
|
|
84
|
-
| A framework's transactional construct (queue, work list, per-item loop, framework template) | UiPath: uipath-source-guide § Signals — XAML › REFramework projects; any other framework: its source guide in the framework migration pack, pointing to genome-format-guide § Transactional Shape — nothing in this skill |
|
|
85
|
-
| New framework | A `<framework>/` pack in the framework migration pack (source guide, selectors guide, script, example, smoke task) plus its row in its README § Frameworks — in one change there; nothing in this skill |
|
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
<!-- UIPATH-AUTOMATION-GENOME: component | This file is a build specification for one UiPath automation project.
|
|
2
|
-
To build it, invoke the uipath-genome skill (Execute mode): it asks the configuration questions,
|
|
3
|
-
then invokes the skills referenced in Build With. Do NOT execute these steps directly, and do NOT
|
|
4
|
-
start from a Build With skill. -->
|
|
5
|
-
|
|
6
|
-
# Genome: Artemis 2 Mission Monitor
|
|
7
|
-
|
|
8
|
-
> Polls NASA data sources every few minutes during the live Artemis 2 mission and sends email alerts on milestone transitions, status changes, and anomalies.
|
|
9
|
-
|
|
10
|
-
> **This is a UiPath automation blueprint.** Do not execute these steps directly. Build it with the **uipath-genome** skill, which hands each part to the skill listed in **Build With** below.
|
|
11
|
-
|
|
12
|
-
## Overview
|
|
13
|
-
|
|
14
|
-
This automation monitors the live Artemis 2 mission by polling NASA's public APIs and status feeds at short intervals, detecting when the mission transitions between key milestones (trans-lunar injection, lunar flyby, return trajectory, reentry, splashdown) or when anomalies and schedule changes are reported. When a change is detected, it composes a concise status email and sends it to a configured recipient list.
|
|
15
|
-
|
|
16
|
-
The automation maintains a lightweight state file tracking the last known mission phase and timestamp so it can distinguish new events from already-reported ones. It runs unattended on an Orchestrator time trigger every 3-5 minutes for the duration of the active mission.
|
|
17
|
-
|
|
18
|
-
## Target Applications
|
|
19
|
-
|
|
20
|
-
| Application | Role | Notes |
|
|
21
|
-
|-------------|------|-------|
|
|
22
|
-
| NASA Open APIs / Spaceflight News API | Data source | Public REST APIs for mission status, events, and news articles |
|
|
23
|
-
| NASA Artemis mission status page | Fallback data source | Web scrape fallback when API data lags behind the official page |
|
|
24
|
-
| SMTP / Email service | Notification channel | Sends alert emails on milestone changes and anomalies |
|
|
25
|
-
| Local JSON state file | State persistence | Last known milestone, last poll timestamp, reported event IDs |
|
|
26
|
-
|
|
27
|
-
## Build With
|
|
28
|
-
|
|
29
|
-
| Step | Skill | Rationale |
|
|
30
|
-
|------|-------|-----------|
|
|
31
|
-
| Steps 2, 3, 5-10: load state, poll APIs, detect changes, compose and send email, update state, log | `uipath-rpa` | Pure REST calls, JSON parsing, and file I/O — coded (C#) workflows inside the RPA project, no UI |
|
|
32
|
-
| Step 4: scrape NASA mission status page (fallback) | `uipath-rpa` | Browser UI automation with selectors — a XAML workflow in the same project, invoked from the coded entry point |
|
|
33
|
-
|
|
34
|
-
## Platform Dependencies
|
|
35
|
-
|
|
36
|
-
| Resource | Type | Purpose |
|
|
37
|
-
|----------|------|---------|
|
|
38
|
-
| ArtemisMonitor-Schedule | Time trigger | Fires the process every 3 minutes |
|
|
39
|
-
| SMTP credentials | Credential asset | Authenticates the outgoing mail server when a custom SMTP server is configured |
|
|
40
|
-
|
|
41
|
-
## Interface
|
|
42
|
-
|
|
43
|
-
- **Inputs:** none (unattended, scheduled); reads the local state file
|
|
44
|
-
- **Outputs:** alert emails to the configured recipients; updated state file; one summary log line per run
|
|
45
|
-
- **Side effects:** files written under `unsent/` when email delivery fails
|
|
46
|
-
|
|
47
|
-
## Configuration Questions
|
|
48
|
-
|
|
49
|
-
1. Which email address(es) should receive mission alerts? (setting; default: none — must be provided)
|
|
50
|
-
2. Which mail server sends the alerts? (setting; default: Orchestrator's mail configuration; alternative: custom SMTP host with credential asset)
|
|
51
|
-
3. How far back should the first poll look for events, to avoid flooding the inbox on first run? (constant; default: 1 hour)
|
|
52
|
-
4. Should the state file persist across Orchestrator restarts? (constant; default: yes — avoids duplicate notifications)
|
|
53
|
-
5. Which email format? (constant; default: HTML with mission phase icons; alternative: plain text)
|
|
54
|
-
|
|
55
|
-
## Workflow
|
|
56
|
-
|
|
57
|
-
1. **Trigger**: Orchestrator time trigger fires every 3 minutes.
|
|
58
|
-
2. **Load state** (input: state file; output: last phase, last poll timestamp, reported event IDs): read the local JSON state file. If it does not exist (first run), initialize defaults and set the last poll timestamp to the configured lookback (default 1 hour ago).
|
|
59
|
-
3. **Poll NASA APIs** (input: last poll timestamp; output: current phase, list of events with ID, description, timestamp):
|
|
60
|
-
a. Query the Spaceflight News API articles and events filtered to "Artemis II" and newer than the last poll timestamp
|
|
61
|
-
b. Query the NASA Open API for Artemis-related updates
|
|
62
|
-
c. Collect mission phase, event descriptions, and timestamps from both responses
|
|
63
|
-
4. **Fallback scrape** (conditional; input: age of last successful API result; output: scraped phase text): if both APIs returned no new data and the last successful API result is older than 15 minutes, open the NASA Artemis mission status page and read the current phase text. Guards against API lag during critical moments.
|
|
64
|
-
5. **Detect changes** (input: current phase and events, stored phase; output: change type):
|
|
65
|
-
a. **Milestone transition** — phase differs from the stored phase
|
|
66
|
-
b. **Status update** — new event or article while the phase is unchanged
|
|
67
|
-
c. **Anomaly/delay** — any event text contains an anomaly keyword (see Business Rules)
|
|
68
|
-
6. **Filter duplicates**: drop events whose IDs already appear in the reported-events list.
|
|
69
|
-
7. **Compose email** (input: change type, phase, events; output: subject and body): subject names the change type and current phase; body carries the timestamp, change summary, and a link to NASA's live mission page. Milestone transitions include the previous and new phase names.
|
|
70
|
-
8. **Send email**: deliver to the configured recipient list via the configured mail server.
|
|
71
|
-
9. **Update state**: write the new phase, current timestamp, and newly reported event IDs to the state file.
|
|
72
|
-
10. **Log**: write one summary line to the job log (phase, change type, email sent yes/no).
|
|
73
|
-
|
|
74
|
-
## Business Rules
|
|
75
|
-
|
|
76
|
-
### Step 5: Detect changes
|
|
77
|
-
- Milestone phases are ordered: Launch → Trans-Lunar Injection → Outbound Coast → Lunar Flyby → Return Coast → Reentry → Splashdown → Recovery. A transition is valid only when the new phase is later in the sequence, or is an anomaly override.
|
|
78
|
-
- Anomaly keywords trigger a notification regardless of phase change: "anomaly", "delay", "hold", "abort", "contingency", "scrub", "off-nominal".
|
|
79
|
-
- A detected phase outside the known sequence is reported as an anomaly with the raw phase text.
|
|
80
|
-
|
|
81
|
-
### Step 4: Fallback scrape
|
|
82
|
-
- Activates only after 15+ minutes without new API data. If the scraped phase equals the stored phase, no action is taken.
|
|
83
|
-
|
|
84
|
-
### Step 6: Filter duplicates
|
|
85
|
-
- A reported event ID is never re-sent. The reported-events list is capped at 500 entries, oldest evicted first.
|
|
86
|
-
|
|
87
|
-
### Step 8: Send email
|
|
88
|
-
- At most one email per 5-minute window, except anomaly alerts, which bypass the rate limit.
|
|
89
|
-
|
|
90
|
-
## Error Handling
|
|
91
|
-
|
|
92
|
-
### Step 3: Poll NASA APIs
|
|
93
|
-
- Non-200 status or 30-second timeout: log the error and continue to the next data source. If every source fails, log a warning and exit without sending. No in-run retry — the next scheduled run is the retry.
|
|
94
|
-
|
|
95
|
-
### Step 4: Fallback scrape
|
|
96
|
-
- Element not found or page structure changed: log the error with the failing target and continue without scrape data.
|
|
97
|
-
|
|
98
|
-
### Step 2: Load state
|
|
99
|
-
- State file is not valid JSON: rename it to `state-corrupt-{timestamp}.json`, initialize a fresh state, log a warning. The next poll treats current events as new (one-time duplicate notification accepted).
|
|
100
|
-
|
|
101
|
-
### Step 8: Send email
|
|
102
|
-
- Delivery failure: log recipient, subject, and error; write the unsent body to the `unsent/` folder. Mark the event IDs as reported anyway so the next run does not retry.
|
|
103
|
-
|
|
104
|
-
## Transactional Shape
|
|
105
|
-
|
|
106
|
-
Not transactional: the run is one unit of work — one poll, one change decision, at most one email; a failed poll is retried by the next scheduled run, not per item.
|
|
107
|
-
|
|
108
|
-
## Acceptance Criteria
|
|
109
|
-
|
|
110
|
-
1. Given the Spaceflight News API returns a new Artemis II event not present in the state file, the automation sends an email containing the event description and timestamp to the configured recipients.
|
|
111
|
-
2. Given the mission phase changes from "Trans-Lunar Injection" to "Lunar Flyby" between two consecutive polls, the email subject includes "Milestone: Lunar Flyby" and the body shows the phase transition.
|
|
112
|
-
3. Given an event description containing "anomaly", the automation sends an email immediately regardless of the 5-minute rate limit.
|
|
113
|
-
4. Given both APIs return no new data for 15+ minutes, the automation reads the NASA mission status page and uses the scraped phase for change detection.
|
|
114
|
-
5. Given no state file exists, the automation initializes state and polls events from the configured lookback without crashing.
|
|
115
|
-
6. Given a state file with invalid JSON, the automation renames it, initializes fresh state, and logs a warning.
|
|
116
|
-
7. Given an event ID reported in a previous run, no duplicate email is sent for that event.
|
|
117
|
-
8. Given the mail server rejects the email, the automation writes the unsent body to `unsent/` and logs the failure details.
|
|
118
|
-
9. Given an API returns HTTP 500, the automation logs the error and continues to the next data source without failing the job.
|
|
119
|
-
|
|
120
|
-
## Complexity
|
|
121
|
-
|
|
122
|
-
medium
|
|
123
|
-
|
|
124
|
-
## Tags
|
|
125
|
-
|
|
126
|
-
nasa, artemis, space, mission-monitoring, email-alerts, api-polling, scheduled, notifications
|
package/skills/uipath-genome/assets/examples/classify-document-and-create-validation-genome.md
DELETED
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
<!-- UIPATH-AUTOMATION-GENOME: component | This file is a build specification for one UiPath automation project.
|
|
2
|
-
To build it, invoke the uipath-genome skill (Execute mode): it asks the configuration questions,
|
|
3
|
-
then invokes the skills referenced in Build With. Do NOT execute these steps directly, and do NOT
|
|
4
|
-
start from a Build With skill. -->
|
|
5
|
-
|
|
6
|
-
# Genome: Classify Document and Create Validation
|
|
7
|
-
|
|
8
|
-
> Classify documents using a generative AI classifier and route low-confidence results to human reviewers via Action Center.
|
|
9
|
-
|
|
10
|
-
> **This is a UiPath automation blueprint.** Do not execute these steps directly. Build it with the **uipath-genome** skill, which hands each part to the skill listed in **Build With** below.
|
|
11
|
-
|
|
12
|
-
## Overview
|
|
13
|
-
|
|
14
|
-
This automation classifies documents using Document Understanding's generative classifier against a configurable set of document types. Each document type is matched using a natural-language prompt, and the classifier returns the best-matching type along with a confidence score.
|
|
15
|
-
|
|
16
|
-
When the classification confidence falls below a configurable threshold, the automation creates a validation task in Action Center, suspends execution, and waits for a human reviewer to confirm or correct the classification. High-confidence classifications are accepted automatically. Orchestrator persistence keeps the process state while suspended, and execution resumes when the reviewer completes the task.
|
|
17
|
-
|
|
18
|
-
## Target Applications
|
|
19
|
-
|
|
20
|
-
| Application | Role | Notes |
|
|
21
|
-
|-------------|------|-------|
|
|
22
|
-
| Document Understanding | Document classification | Generative classifier with per-type natural-language prompts |
|
|
23
|
-
| Action Center | Human-in-the-loop validation | Validation tasks for low-confidence classifications |
|
|
24
|
-
| Orchestrator | Process persistence and storage | Storage bucket for documents, folder for Action Center task routing |
|
|
25
|
-
|
|
26
|
-
## Build With
|
|
27
|
-
|
|
28
|
-
| Step | Skill | Rationale |
|
|
29
|
-
|------|-------|-----------|
|
|
30
|
-
| Steps 1-2: load and classify the document | `uipath-rpa` | Document Understanding generative classifier is an activity-based XAML workflow |
|
|
31
|
-
| Steps 3-5: evaluate confidence, create validation task, wait for reviewer | `uipath-rpa` | Conditional logic plus Action Center create/wait activities with process persistence in XAML; consult `uipath-human-in-the-loop` for the validation gate design |
|
|
32
|
-
|
|
33
|
-
## Platform Dependencies
|
|
34
|
-
|
|
35
|
-
| Resource | Type | Purpose |
|
|
36
|
-
|----------|------|---------|
|
|
37
|
-
| du_storage_bucket | Storage bucket | Holds the document while the validation task is open |
|
|
38
|
-
| Validation folder | Orchestrator folder | Folder where Action Center tasks are created and assigned |
|
|
39
|
-
|
|
40
|
-
## Interface
|
|
41
|
-
|
|
42
|
-
- **Inputs:** `DocumentPath` (string) — path to the document file to classify
|
|
43
|
-
- **Outputs:** `DocumentType` (string), `Confidence` (number 0-100), `ValidatedByHuman` (boolean)
|
|
44
|
-
- **Side effects:** an Action Center task when confidence is below the threshold; the document uploaded to the storage bucket
|
|
45
|
-
|
|
46
|
-
## Configuration Questions
|
|
47
|
-
|
|
48
|
-
1. Which document types should the classifier recognise? (constant; default: Receipt, Invoice, W-9, Certificate of Filing, Form 1040)
|
|
49
|
-
2. What minimum confidence must the classifier reach to return a result at all? (constant; default: 50%)
|
|
50
|
-
3. What confidence threshold triggers human validation? (constant; default: 70%)
|
|
51
|
-
4. Which Orchestrator storage bucket holds documents during validation? (setting; default: du_storage_bucket)
|
|
52
|
-
5. Which Orchestrator folder receives the Action Center tasks? (setting; default: the process's own folder)
|
|
53
|
-
6. What task priority for validation tasks? (constant; default: Medium)
|
|
54
|
-
|
|
55
|
-
## Workflow
|
|
56
|
-
|
|
57
|
-
1. **Receive document** (input: file path; output: document reference):
|
|
58
|
-
a. Accept the document path as an input argument
|
|
59
|
-
b. Load the document from the local file system
|
|
60
|
-
2. **Classify document** (input: document reference; output: document type and confidence 0-100%):
|
|
61
|
-
a. Submit the document to the generative classifier
|
|
62
|
-
b. Evaluate it against each configured document type using that type's natural-language prompt (e.g. "Is this an Invoice?")
|
|
63
|
-
c. Return the best-matching type and its confidence; results under the minimum confidence are not returned
|
|
64
|
-
3. **Evaluate confidence** (input: type and confidence; output: routing decision):
|
|
65
|
-
a. If confidence is at or above the validation threshold, accept the result — no human review
|
|
66
|
-
b. Otherwise continue to human validation
|
|
67
|
-
4. **Create validation task** (input: low-confidence result; output: Action Center task):
|
|
68
|
-
a. Create a classification validation task titled with the document file name
|
|
69
|
-
b. Attach the classifier's suggested type so the reviewer sees it
|
|
70
|
-
c. Route the task to the configured folder and store the document in the configured bucket
|
|
71
|
-
d. Set the configured priority
|
|
72
|
-
e. Log document type and confidence for audit
|
|
73
|
-
5. **Wait for validation** (input: task; output: validated type):
|
|
74
|
-
a. Suspend the process; Orchestrator persistence holds the state
|
|
75
|
-
b. Resume when the reviewer completes the task
|
|
76
|
-
c. Read the reviewer's confirmed or corrected type
|
|
77
|
-
|
|
78
|
-
## Business Rules
|
|
79
|
-
|
|
80
|
-
### Step 3: Evaluate confidence
|
|
81
|
-
- If classification confidence is below the threshold (default 70%), route to human validation; otherwise accept without review.
|
|
82
|
-
|
|
83
|
-
### General
|
|
84
|
-
- One natural-language prompt per document type; adding or removing a type does not affect the others.
|
|
85
|
-
|
|
86
|
-
## Error Handling
|
|
87
|
-
|
|
88
|
-
### Step 2: Classify document
|
|
89
|
-
- Classifier unavailable or times out: retry once, then fail the item with the error message in the job log.
|
|
90
|
-
|
|
91
|
-
### Step 5: Wait for validation
|
|
92
|
-
- Platform interruption while suspended: persistence restores the wait; no state is lost.
|
|
93
|
-
|
|
94
|
-
### Global
|
|
95
|
-
- Unhandled exception: log the document path and error, mark the job faulted.
|
|
96
|
-
|
|
97
|
-
## Transactional Shape
|
|
98
|
-
|
|
99
|
-
Not transactional: one item's work started per item by the caller that passes the document path; a caller that iterates over documents is the candidate consumer and carries the shape.
|
|
100
|
-
|
|
101
|
-
## Acceptance Criteria
|
|
102
|
-
|
|
103
|
-
1. Given a document file, the automation returns a document type from the configured set with a confidence score.
|
|
104
|
-
2. Given a classification at or above the threshold, no validation task is created and the result is returned as final.
|
|
105
|
-
3. Given a classification below the threshold, a validation task appears in Action Center with the document name and the suggested type.
|
|
106
|
-
4. Given a validation task is created, the process suspends and resumes only after the reviewer completes it.
|
|
107
|
-
5. Given a low-confidence classification, the job log contains the document type and confidence before suspension.
|
|
108
|
-
6. Given a completed validation task, the automation returns the reviewer's confirmed or corrected type with `ValidatedByHuman` true.
|
|
109
|
-
7. Given the classifier is unavailable twice in a row, the job fails with the classifier error in the log.
|
|
110
|
-
|
|
111
|
-
## Complexity
|
|
112
|
-
|
|
113
|
-
medium
|
|
114
|
-
|
|
115
|
-
## Tags
|
|
116
|
-
|
|
117
|
-
document-understanding, document-classification, generative-ai, action-center, human-in-the-loop, validation, orchestrator, persistence
|